@openvtc/trust-tasks 0.28.1 → 0.28.3

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 (310) hide show
  1. package/CHANGELOG.md +284 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +7 -1
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_runtime/document.d.ts +13 -0
  6. package/dist/_runtime/document.d.ts.map +1 -1
  7. package/dist/_runtime/document.js +17 -2
  8. package/dist/_runtime/document.js.map +1 -1
  9. package/dist/_runtime/index.d.ts +1 -1
  10. package/dist/_runtime/index.d.ts.map +1 -1
  11. package/dist/_runtime/index.js +1 -1
  12. package/dist/_runtime/index.js.map +1 -1
  13. package/dist/_shared/components.d.ts +530 -3
  14. package/dist/_shared/components.d.ts.map +1 -1
  15. package/dist/auth/step-up/approve-request/0.5/payload.d.ts +3 -3
  16. package/dist/auth/step-up/approve-request/0.5/payload.js +1 -1
  17. package/dist/auth/step-up/approve-response/0.1/payload.d.ts +4 -4
  18. package/dist/auth/step-up/approve-response/0.1/payload.js +1 -1
  19. package/dist/auth/step-up/approve-response/0.2/payload.d.ts +4 -4
  20. package/dist/auth/step-up/approve-response/0.2/payload.js +1 -1
  21. package/dist/auth/step-up/approve-response/0.3/payload.d.ts +4 -4
  22. package/dist/auth/step-up/approve-response/0.3/payload.js +1 -1
  23. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +4 -4
  24. package/dist/auth/step-up/approve-response/0.4/payload.js +1 -1
  25. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +4 -4
  26. package/dist/auth/step-up/approve-response/0.5/payload.js +1 -1
  27. package/dist/auth/step-up/approve-response/0.6/payload.d.ts +14 -2
  28. package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -1
  29. package/dist/auth/step-up/approve-response/0.6/payload.js +1 -1
  30. package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -1
  31. package/dist/auth/step-up/approve-response/0.7/payload.d.ts +988 -0
  32. package/dist/auth/step-up/approve-response/0.7/payload.d.ts.map +1 -0
  33. package/dist/auth/step-up/approve-response/0.7/payload.js +566 -0
  34. package/dist/auth/step-up/approve-response/0.7/payload.js.map +1 -0
  35. package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +3 -3
  36. package/dist/auth/step-up/approver/attest/0.1/payload.js +1 -1
  37. package/dist/index.d.ts +72 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +72 -0
  40. package/dist/index.js.map +1 -1
  41. package/dist/rooms/owner/group/remove/0.1/payload.d.ts +4 -4
  42. package/dist/rooms/owner/group/remove/0.1/payload.js +1 -1
  43. package/dist/rooms/owner/group/remove/0.2/payload.d.ts +4 -4
  44. package/dist/rooms/owner/group/remove/0.2/payload.js +1 -1
  45. package/dist/rooms/owner/group/remove/0.3/payload.d.ts +14 -2
  46. package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -1
  47. package/dist/rooms/owner/group/remove/0.3/payload.js +1 -1
  48. package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -1
  49. package/dist/rooms/owner/group/remove/0.4/payload.d.ts +634 -0
  50. package/dist/rooms/owner/group/remove/0.4/payload.d.ts.map +1 -0
  51. package/dist/rooms/owner/group/remove/0.4/payload.js +331 -0
  52. package/dist/rooms/owner/group/remove/0.4/payload.js.map +1 -0
  53. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  54. package/dist/rooms/records/put/0.1/payload.js +1 -1
  55. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  56. package/dist/rooms/records/put/0.2/payload.js +1 -1
  57. package/dist/rooms/records/put/0.3/payload.d.ts +14 -2
  58. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -1
  59. package/dist/rooms/records/put/0.3/payload.js +1 -1
  60. package/dist/rooms/records/put/0.3/payload.js.map +1 -1
  61. package/dist/rooms/records/put/0.4/payload.d.ts +1474 -0
  62. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -0
  63. package/dist/rooms/records/put/0.4/payload.js +804 -0
  64. package/dist/rooms/records/put/0.4/payload.js.map +1 -0
  65. package/dist/task-consent/decision/0.2/payload.d.ts +5 -5
  66. package/dist/task-consent/decision/0.2/payload.js +2 -2
  67. package/dist/vta/_shared/0.3/did-key-roles.d.ts +1 -1
  68. package/dist/vta/_shared/0.9/did-template.d.ts +16 -0
  69. package/dist/vta/_shared/0.9/did-template.d.ts.map +1 -0
  70. package/dist/vta/_shared/0.9/did-template.js +6 -0
  71. package/dist/vta/_shared/0.9/did-template.js.map +1 -0
  72. package/dist/vta/did-templates/create/2.0/payload.d.ts +3 -3
  73. package/dist/vta/did-templates/create/2.0/payload.js +1 -1
  74. package/dist/vta/did-templates/create/3.0/payload.d.ts +3 -3
  75. package/dist/vta/did-templates/create/3.0/payload.js +1 -1
  76. package/dist/vta/did-templates/create/3.1/payload.d.ts +12 -2
  77. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -1
  78. package/dist/vta/did-templates/create/3.1/payload.js +1 -1
  79. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -1
  80. package/dist/vta/did-templates/create/3.2/payload.d.ts +1310 -0
  81. package/dist/vta/did-templates/create/3.2/payload.d.ts.map +1 -0
  82. package/dist/vta/did-templates/create/3.2/payload.js +832 -0
  83. package/dist/vta/did-templates/create/3.2/payload.js.map +1 -0
  84. package/dist/vta/did-templates/get/2.0/payload.d.ts +3 -3
  85. package/dist/vta/did-templates/get/2.0/payload.js +1 -1
  86. package/dist/vta/did-templates/get/3.0/payload.d.ts +3 -3
  87. package/dist/vta/did-templates/get/3.0/payload.js +1 -1
  88. package/dist/vta/did-templates/get/3.1/payload.d.ts +12 -2
  89. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -1
  90. package/dist/vta/did-templates/get/3.1/payload.js +1 -1
  91. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -1
  92. package/dist/vta/did-templates/get/3.2/payload.d.ts +928 -0
  93. package/dist/vta/did-templates/get/3.2/payload.d.ts.map +1 -0
  94. package/dist/vta/did-templates/get/3.2/payload.js +593 -0
  95. package/dist/vta/did-templates/get/3.2/payload.js.map +1 -0
  96. package/dist/vta/did-templates/list/2.0/payload.d.ts +4 -4
  97. package/dist/vta/did-templates/list/2.0/payload.js +1 -1
  98. package/dist/vta/did-templates/list/3.0/payload.d.ts +4 -4
  99. package/dist/vta/did-templates/list/3.0/payload.js +1 -1
  100. package/dist/vta/did-templates/list/3.1/payload.d.ts +14 -2
  101. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -1
  102. package/dist/vta/did-templates/list/3.1/payload.js +1 -1
  103. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -1
  104. package/dist/vta/did-templates/list/3.2/payload.d.ts +985 -0
  105. package/dist/vta/did-templates/list/3.2/payload.d.ts.map +1 -0
  106. package/dist/vta/did-templates/list/3.2/payload.js +619 -0
  107. package/dist/vta/did-templates/list/3.2/payload.js.map +1 -0
  108. package/dist/vta/did-templates/update/2.0/payload.d.ts +3 -3
  109. package/dist/vta/did-templates/update/2.0/payload.js +1 -1
  110. package/dist/vta/did-templates/update/3.0/payload.d.ts +3 -3
  111. package/dist/vta/did-templates/update/3.0/payload.js +1 -1
  112. package/dist/vta/did-templates/update/3.1/payload.d.ts +12 -2
  113. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -1
  114. package/dist/vta/did-templates/update/3.1/payload.js +1 -1
  115. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -1
  116. package/dist/vta/did-templates/update/3.2/payload.d.ts +1324 -0
  117. package/dist/vta/did-templates/update/3.2/payload.d.ts.map +1 -0
  118. package/dist/vta/did-templates/update/3.2/payload.js +838 -0
  119. package/dist/vta/did-templates/update/3.2/payload.js.map +1 -0
  120. package/dist/vta/dids/_shared/0.1/key-roles.d.ts +16 -0
  121. package/dist/vta/dids/_shared/0.1/key-roles.d.ts.map +1 -0
  122. package/dist/vta/dids/_shared/0.1/key-roles.js +6 -0
  123. package/dist/vta/dids/_shared/0.1/key-roles.js.map +1 -0
  124. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts +11 -0
  125. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts.map +1 -0
  126. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js +6 -0
  127. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js.map +1 -0
  128. package/dist/vta/dids/create/1.0/payload.d.ts +2613 -0
  129. package/dist/vta/dids/create/1.0/payload.d.ts.map +1 -0
  130. package/dist/vta/dids/create/1.0/payload.js +1554 -0
  131. package/dist/vta/dids/create/1.0/payload.js.map +1 -0
  132. package/dist/vta/dids/keys/add/1.0/payload.d.ts +2447 -0
  133. package/dist/vta/dids/keys/add/1.0/payload.d.ts.map +1 -0
  134. package/dist/vta/dids/keys/add/1.0/payload.js +1469 -0
  135. package/dist/vta/dids/keys/add/1.0/payload.js.map +1 -0
  136. package/dist/vta/dids/keys/list/1.0/payload.d.ts +1855 -0
  137. package/dist/vta/dids/keys/list/1.0/payload.d.ts.map +1 -0
  138. package/dist/vta/dids/keys/list/1.0/payload.js +1116 -0
  139. package/dist/vta/dids/keys/list/1.0/payload.js.map +1 -0
  140. package/dist/vta/dids/keys/retire/1.0/payload.d.ts +2449 -0
  141. package/dist/vta/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  142. package/dist/vta/dids/keys/retire/1.0/payload.js +1469 -0
  143. package/dist/vta/dids/keys/retire/1.0/payload.js.map +1 -0
  144. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts +2701 -0
  145. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  146. package/dist/vta/dids/keys/revoke/1.0/payload.js +1597 -0
  147. package/dist/vta/dids/keys/revoke/1.0/payload.js.map +1 -0
  148. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts +2628 -0
  149. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts.map +1 -0
  150. package/dist/vta/dids/keys/rotate/1.0/payload.js +1555 -0
  151. package/dist/vta/dids/keys/rotate/1.0/payload.js.map +1 -0
  152. package/dist/vta/dids/recover/1.0/payload.d.ts +2702 -0
  153. package/dist/vta/dids/recover/1.0/payload.d.ts.map +1 -0
  154. package/dist/vta/dids/recover/1.0/payload.js +1597 -0
  155. package/dist/vta/dids/recover/1.0/payload.js.map +1 -0
  156. package/dist/vta/dids/update/1.0/payload.d.ts +1422 -0
  157. package/dist/vta/dids/update/1.0/payload.d.ts.map +1 -0
  158. package/dist/vta/dids/update/1.0/payload.js +861 -0
  159. package/dist/vta/dids/update/1.0/payload.js.map +1 -0
  160. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +14 -2
  161. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -1
  162. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1 -1
  163. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -1
  164. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +14 -2
  165. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -1
  166. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +1 -1
  167. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -1
  168. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +14 -2
  169. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -1
  170. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1 -1
  171. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -1
  172. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +14 -2
  173. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -1
  174. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1 -1
  175. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -1
  176. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +2 -14
  177. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -1
  178. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +1 -1
  179. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -1
  180. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +14 -2
  181. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -1
  182. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1 -1
  183. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -1
  184. package/dist/vta/webvh/dids/update/1.0/payload.d.ts +2 -14
  185. package/dist/vta/webvh/dids/update/1.0/payload.d.ts.map +1 -1
  186. package/dist/vta/webvh/dids/update/1.0/payload.js +1 -1
  187. package/dist/vta/webvh/dids/update/1.0/payload.js.map +1 -1
  188. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +4 -4
  189. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -1
  190. package/dist/vta/webvh/dids/update/2.0/payload.js +1 -1
  191. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -1
  192. package/dist/vta/webvh/dids/update/2.1/payload.d.ts +14 -2
  193. package/dist/vta/webvh/dids/update/2.1/payload.d.ts.map +1 -1
  194. package/dist/vta/webvh/dids/update/2.1/payload.js +1 -1
  195. package/dist/vta/webvh/dids/update/2.1/payload.js.map +1 -1
  196. package/dist/vtc/_shared/0.2/invite.d.ts +16 -0
  197. package/dist/vtc/_shared/0.2/invite.d.ts.map +1 -0
  198. package/dist/vtc/_shared/0.2/invite.js +6 -0
  199. package/dist/vtc/_shared/0.2/invite.js.map +1 -0
  200. package/dist/vtc/admin/invites/create/0.1/payload.d.ts +12 -2
  201. package/dist/vtc/admin/invites/create/0.1/payload.d.ts.map +1 -1
  202. package/dist/vtc/admin/invites/create/0.1/payload.js +1 -1
  203. package/dist/vtc/admin/invites/create/0.1/payload.js.map +1 -1
  204. package/dist/vtc/admin/invites/create/0.2/payload.d.ts +404 -0
  205. package/dist/vtc/admin/invites/create/0.2/payload.d.ts.map +1 -0
  206. package/dist/vtc/admin/invites/create/0.2/payload.js +230 -0
  207. package/dist/vtc/admin/invites/create/0.2/payload.js.map +1 -0
  208. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +12 -2
  209. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  210. package/dist/vtc/admin/invites/list/0.1/payload.js +1 -1
  211. package/dist/vtc/admin/invites/list/0.1/payload.js.map +1 -1
  212. package/dist/vtc/admin/invites/list/0.2/payload.d.ts +431 -0
  213. package/dist/vtc/admin/invites/list/0.2/payload.d.ts.map +1 -0
  214. package/dist/vtc/admin/invites/list/0.2/payload.js +264 -0
  215. package/dist/vtc/admin/invites/list/0.2/payload.js.map +1 -0
  216. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +3 -3
  217. package/dist/vtc/credentials/reissue/0.1/payload.js +1 -1
  218. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -1
  219. package/dist/vtc/install/claim/finish/0.2/payload.d.ts +4 -4
  220. package/dist/vtc/install/claim/finish/0.2/payload.d.ts.map +1 -1
  221. package/dist/vtc/install/claim/finish/0.2/payload.js +1 -1
  222. package/dist/vtc/install/claim/finish/0.2/payload.js.map +1 -1
  223. package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts +306 -0
  224. package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts.map +1 -0
  225. package/dist/vtc/install/claim/passkey/finish/0.1/payload.js +175 -0
  226. package/dist/vtc/install/claim/passkey/finish/0.1/payload.js.map +1 -0
  227. package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts +302 -0
  228. package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts.map +1 -0
  229. package/dist/vtc/install/claim/passkey/start/0.1/payload.js +172 -0
  230. package/dist/vtc/install/claim/passkey/start/0.1/payload.js.map +1 -0
  231. package/dist/vtc/install/claim/start/0.2/payload.d.ts +4 -4
  232. package/dist/vtc/install/claim/start/0.2/payload.d.ts.map +1 -1
  233. package/dist/vtc/install/claim/start/0.2/payload.js +1 -1
  234. package/dist/vtc/install/claim/start/0.2/payload.js.map +1 -1
  235. package/dist/vtc/members/role/set/0.1/payload.d.ts +1867 -0
  236. package/dist/vtc/members/role/set/0.1/payload.d.ts.map +1 -0
  237. package/dist/vtc/members/role/set/0.1/payload.js +1060 -0
  238. package/dist/vtc/members/role/set/0.1/payload.js.map +1 -0
  239. package/package.json +1 -1
  240. package/src/_extends.ts +5 -0
  241. package/src/_runtime/document.ts +18 -2
  242. package/src/_runtime/index.ts +1 -0
  243. package/src/_shared/components.ts +556 -3
  244. package/src/auth/step-up/approve-request/0.5/payload.ts +2 -2
  245. package/src/auth/step-up/approve-response/0.1/payload.ts +5 -5
  246. package/src/auth/step-up/approve-response/0.2/payload.ts +5 -5
  247. package/src/auth/step-up/approve-response/0.3/payload.ts +5 -5
  248. package/src/auth/step-up/approve-response/0.4/payload.ts +5 -5
  249. package/src/auth/step-up/approve-response/0.5/payload.ts +5 -5
  250. package/src/auth/step-up/approve-response/0.6/payload.ts +15 -3
  251. package/src/auth/step-up/approve-response/0.7/payload.ts +664 -0
  252. package/src/auth/step-up/approver/attest/0.1/payload.ts +2 -2
  253. package/src/index.ts +72 -0
  254. package/src/rooms/owner/group/remove/0.1/payload.ts +5 -5
  255. package/src/rooms/owner/group/remove/0.2/payload.ts +5 -5
  256. package/src/rooms/owner/group/remove/0.3/payload.ts +15 -3
  257. package/src/rooms/owner/group/remove/0.4/payload.ts +442 -0
  258. package/src/rooms/records/put/0.1/payload.ts +5 -5
  259. package/src/rooms/records/put/0.2/payload.ts +5 -5
  260. package/src/rooms/records/put/0.3/payload.ts +15 -3
  261. package/src/rooms/records/put/0.4/payload.ts +905 -0
  262. package/src/task-consent/decision/0.2/payload.ts +3 -3
  263. package/src/vta/_shared/0.3/did-key-roles.ts +1 -1
  264. package/src/vta/_shared/0.9/did-template.ts +17 -0
  265. package/src/vta/did-templates/create/2.0/payload.ts +4 -4
  266. package/src/vta/did-templates/create/3.0/payload.ts +4 -4
  267. package/src/vta/did-templates/create/3.1/payload.ts +13 -3
  268. package/src/vta/did-templates/create/3.2/payload.ts +869 -0
  269. package/src/vta/did-templates/get/2.0/payload.ts +4 -4
  270. package/src/vta/did-templates/get/3.0/payload.ts +4 -4
  271. package/src/vta/did-templates/get/3.1/payload.ts +13 -3
  272. package/src/vta/did-templates/get/3.2/payload.ts +630 -0
  273. package/src/vta/did-templates/list/2.0/payload.ts +5 -5
  274. package/src/vta/did-templates/list/3.0/payload.ts +5 -5
  275. package/src/vta/did-templates/list/3.1/payload.ts +15 -3
  276. package/src/vta/did-templates/list/3.2/payload.ts +665 -0
  277. package/src/vta/did-templates/update/2.0/payload.ts +4 -4
  278. package/src/vta/did-templates/update/3.0/payload.ts +4 -4
  279. package/src/vta/did-templates/update/3.1/payload.ts +13 -3
  280. package/src/vta/did-templates/update/3.2/payload.ts +879 -0
  281. package/src/vta/dids/_shared/0.1/key-roles.ts +17 -0
  282. package/src/vta/dids/_shared/0.1/method-profiles/webvh-parameters.ts +11 -0
  283. package/src/vta/dids/create/1.0/payload.ts +1648 -0
  284. package/src/vta/dids/keys/add/1.0/payload.ts +1553 -0
  285. package/src/vta/dids/keys/list/1.0/payload.ts +1178 -0
  286. package/src/vta/dids/keys/retire/1.0/payload.ts +1553 -0
  287. package/src/vta/dids/keys/revoke/1.0/payload.ts +1697 -0
  288. package/src/vta/dids/keys/rotate/1.0/payload.ts +1658 -0
  289. package/src/vta/dids/recover/1.0/payload.ts +1700 -0
  290. package/src/vta/dids/update/1.0/payload.ts +940 -0
  291. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +15 -3
  292. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +15 -3
  293. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +15 -3
  294. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +15 -3
  295. package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +3 -15
  296. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +15 -3
  297. package/src/vta/webvh/dids/update/1.0/payload.ts +3 -15
  298. package/src/vta/webvh/dids/update/2.0/payload.ts +5 -5
  299. package/src/vta/webvh/dids/update/2.1/payload.ts +15 -3
  300. package/src/vtc/_shared/0.2/invite.ts +17 -0
  301. package/src/vtc/admin/invites/create/0.1/payload.ts +13 -3
  302. package/src/vtc/admin/invites/create/0.2/payload.ts +289 -0
  303. package/src/vtc/admin/invites/list/0.1/payload.ts +13 -3
  304. package/src/vtc/admin/invites/list/0.2/payload.ts +294 -0
  305. package/src/vtc/credentials/reissue/0.1/payload.ts +2 -2
  306. package/src/vtc/install/claim/finish/0.2/payload.ts +5 -5
  307. package/src/vtc/install/claim/passkey/finish/0.1/payload.ts +228 -0
  308. package/src/vtc/install/claim/passkey/start/0.1/payload.ts +225 -0
  309. package/src/vtc/install/claim/start/0.2/payload.ts +5 -5
  310. package/src/vtc/members/role/set/0.1/payload.ts +1142 -0
@@ -0,0 +1,1469 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/dids/keys/add/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/dids/keys/add/1.0";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/dids/keys/add/1.0#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/vta/dids/keys/add/1.0",
35
+ "title": "VTA DIDs — Keys Add — payload",
36
+ "description": "Add a newly minted key to a role of a key-role identity — a post-quantum attestation key beside a classical one, a second operational key. `update` and `authenticator` keys are not added.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "did",
41
+ "role",
42
+ "keyType"
43
+ ],
44
+ "properties": {
45
+ "did": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "description": "The key-role identity, by DID (for a `did:scid` identity, the DID without `src`)."
49
+ },
50
+ "role": {
51
+ "$ref": "#/$defs/IdentityKeyRole",
52
+ "description": "The role the key joins: `attestation`, `operational` or `messaging`. Any other is refused with `vta/dids:notApplicableToRole`."
53
+ },
54
+ "keyType": {
55
+ "$ref": "#/$defs/KeyType",
56
+ "description": "Algorithm of the key to mint; must suit the role (CONVENTIONS.md §2.2)."
57
+ },
58
+ "label": {
59
+ "type": "string",
60
+ "maxLength": 256,
61
+ "description": "Operator-facing label. Never published."
62
+ },
63
+ "expectedVersionId": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "description": "Optimistic-concurrency precondition: the version identifier (method profile §3) the caller based this change on, for example `keys/list`'s `versionId`. The VTA MUST refuse with `vta/dids:versionConflict` if the identity has moved past it. Not optional for anything a person looked at."
67
+ },
68
+ "dryRun": {
69
+ "type": "boolean",
70
+ "description": "Compute and return the preview without writing anything but the plan (CONVENTIONS.md §6.1). Absent reads as false."
71
+ },
72
+ "previewId": {
73
+ "type": "string",
74
+ "minLength": 16,
75
+ "description": "Apply exactly the plan a previous dry run of this same request returned, or nothing (CONVENTIONS.md §6.1); what every approval is bound to."
76
+ },
77
+ "reason": {
78
+ "type": "string",
79
+ "maxLength": 1024,
80
+ "description": "Why the change is being made, for the audit trail and for the other approvers. Never published."
81
+ },
82
+ "ext": {
83
+ "$ref": "#/$defs/Ext"
84
+ }
85
+ },
86
+ "$defs": {
87
+ "Response": {
88
+ "$anchor": "response",
89
+ "title": "VTA DIDs — Keys Add — response payload",
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": [
93
+ "did",
94
+ "outcome"
95
+ ],
96
+ "properties": {
97
+ "did": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ },
101
+ "outcome": {
102
+ "$ref": "#/$defs/KeyChangeOutcome"
103
+ },
104
+ "preview": {
105
+ "$ref": "#/$defs/IdentityChangePreview",
106
+ "description": "Present when `outcome` is `preview`, `pendingApproval` or `awaitingRecoveryProof`: the plan, and what an approval is bound to."
107
+ },
108
+ "approvals": {
109
+ "$ref": "#/$defs/KeyChangeApprovalState",
110
+ "description": "Present when `outcome` is `pendingApproval`."
111
+ },
112
+ "newVersionId": {
113
+ "type": "string",
114
+ "description": "Present when `outcome` is `applied`: the version identifier of the change. Pass it as the next change's `expectedVersionId`."
115
+ },
116
+ "keys": {
117
+ "type": "array",
118
+ "items": {
119
+ "$ref": "#/$defs/IdentityRoleKey"
120
+ },
121
+ "description": "Every key whose state this change sets or would set, after the change."
122
+ },
123
+ "rotation": {
124
+ "$ref": "#/$defs/KeyChangeRecord"
125
+ },
126
+ "publication": {
127
+ "$ref": "#/$defs/Publication",
128
+ "description": "Present when `outcome` is `applied`."
129
+ },
130
+ "ext": {
131
+ "$ref": "#/$defs/Ext"
132
+ }
133
+ }
134
+ },
135
+ "Ext": {
136
+ "title": "Ext",
137
+ "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.",
138
+ "type": "object",
139
+ "minProperties": 1,
140
+ "additionalProperties": true,
141
+ "propertyNames": {
142
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
143
+ }
144
+ },
145
+ "Publication": {
146
+ "title": "Publication",
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": [
150
+ "selfPublish"
151
+ ],
152
+ "description": "How the change reaches resolvers.",
153
+ "properties": {
154
+ "selfPublish": {
155
+ "type": "boolean",
156
+ "description": "True when no hosting service holds the identifier for the VTA: the caller must publish `artifacts`, and until it does resolvers see the previous version."
157
+ },
158
+ "artifacts": {
159
+ "type": "array",
160
+ "items": {
161
+ "$ref": "#/$defs/PublishedArtifact"
162
+ },
163
+ "description": "Present when `selfPublish` is true."
164
+ }
165
+ }
166
+ },
167
+ "PublishedArtifact": {
168
+ "title": "PublishedArtifact",
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [
172
+ "name",
173
+ "mediaType",
174
+ "content"
175
+ ],
176
+ "description": "A file the identifier's method publishes, as the method profile names it (`did.jsonl` for did:webvh, `did.json` and `keri.cesr` for did:webs).",
177
+ "properties": {
178
+ "name": {
179
+ "type": "string",
180
+ "minLength": 1,
181
+ "maxLength": 128
182
+ },
183
+ "mediaType": {
184
+ "type": "string",
185
+ "minLength": 1
186
+ },
187
+ "content": {
188
+ "type": "string",
189
+ "description": "The artefact's content, or for an append-only artefact the appended part, as text."
190
+ }
191
+ }
192
+ },
193
+ "KeyChangeRecord": {
194
+ "title": "KeyChangeRecord",
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "rotationId",
199
+ "role",
200
+ "kind",
201
+ "state"
202
+ ],
203
+ "description": "One change to a role's key set, from preview to completion. The identifier's history is the authority for what was published; this record adds which change was which and, in the custody projection, who asked, who approved, and why.",
204
+ "properties": {
205
+ "rotationId": {
206
+ "type": "string",
207
+ "minLength": 1
208
+ },
209
+ "role": {
210
+ "$ref": "#/$defs/IdentityKeyRole"
211
+ },
212
+ "kind": {
213
+ "$ref": "#/$defs/KeyChangeKind"
214
+ },
215
+ "state": {
216
+ "$ref": "#/$defs/KeyChangeState"
217
+ },
218
+ "predecessors": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string"
222
+ },
223
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) leaving the role."
224
+ },
225
+ "successors": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string"
229
+ },
230
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) entering the role."
231
+ },
232
+ "startedInVersionId": {
233
+ "type": "string"
234
+ },
235
+ "endedInVersionId": {
236
+ "type": "string"
237
+ },
238
+ "startedAt": {
239
+ "type": "string",
240
+ "format": "date-time"
241
+ },
242
+ "cacheHorizonAt": {
243
+ "type": "string",
244
+ "format": "date-time",
245
+ "description": "Planned rotations: the publishing change's cache horizon (CONVENTIONS.md §10.1). The switch and any retirement happen no earlier."
246
+ },
247
+ "activatesAt": {
248
+ "type": "string",
249
+ "format": "date-time",
250
+ "description": "When the successor becomes `active` and the predecessor `retiring`; never before `cacheHorizonAt`."
251
+ },
252
+ "overlapUntil": {
253
+ "type": "string",
254
+ "format": "date-time",
255
+ "description": "Custody projection only. End of the overlap."
256
+ },
257
+ "autoRetire": {
258
+ "type": "boolean",
259
+ "description": "Custody projection only. Whether the VTA retires the predecessor itself at `overlapUntil`."
260
+ },
261
+ "endedAt": {
262
+ "type": "string",
263
+ "format": "date-time"
264
+ },
265
+ "initiatedBy": {
266
+ "type": "string",
267
+ "description": "Custody projection only. VID of the administrator whose signed request started the change."
268
+ },
269
+ "approvals": {
270
+ "$ref": "#/$defs/KeyChangeApprovalState"
271
+ },
272
+ "reason": {
273
+ "type": "string",
274
+ "maxLength": 1024,
275
+ "description": "Custody projection only. The operator's stated reason. Never published."
276
+ },
277
+ "ext": {
278
+ "$ref": "#/$defs/Ext"
279
+ }
280
+ }
281
+ },
282
+ "KeyChangeApprovalState": {
283
+ "title": "KeyChangeApprovalState",
284
+ "type": "object",
285
+ "additionalProperties": false,
286
+ "required": [
287
+ "required",
288
+ "received",
289
+ "expiresAt"
290
+ ],
291
+ "description": "Approval progress of a change the VTA's policy gates on approvals (CONVENTIONS.md §6).",
292
+ "properties": {
293
+ "required": {
294
+ "type": "integer",
295
+ "minimum": 1,
296
+ "description": "Distinct approvals the VTA's policy requires."
297
+ },
298
+ "received": {
299
+ "type": "integer",
300
+ "minimum": 0,
301
+ "description": "Distinct approvals recorded so far, the initiator's own included."
302
+ },
303
+ "approvals": {
304
+ "type": "array",
305
+ "items": {
306
+ "$ref": "#/$defs/RecordedApproval"
307
+ },
308
+ "description": "The approvals recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
309
+ },
310
+ "expiresAt": {
311
+ "type": "string",
312
+ "format": "date-time",
313
+ "description": "When the preview, and every approval bound to it, stops being usable."
314
+ }
315
+ }
316
+ },
317
+ "RecordedApproval": {
318
+ "title": "RecordedApproval",
319
+ "type": "object",
320
+ "additionalProperties": false,
321
+ "required": [
322
+ "approver",
323
+ "evidence"
324
+ ],
325
+ "properties": {
326
+ "approver": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "description": "VID of the approver."
330
+ },
331
+ "evidence": {
332
+ "$ref": "#/$defs/ApprovalEvidenceKind"
333
+ },
334
+ "recordedAt": {
335
+ "type": "string",
336
+ "format": "date-time"
337
+ }
338
+ }
339
+ },
340
+ "ApprovalEvidenceKind": {
341
+ "title": "ApprovalEvidenceKind",
342
+ "type": "string",
343
+ "enum": [
344
+ "didSigned",
345
+ "webauthn",
346
+ "approverSigned"
347
+ ],
348
+ "description": "The evidence an approval was recorded on, as `auth/step-up/approve-response` names it. Only the approver's own evidence is ever recorded: a proof by a key the VTA records as acting for an approver — a console signing key or any other delegation — is never an approval (CONVENTIONS.md §6.3)."
349
+ },
350
+ "KeyChangeState": {
351
+ "title": "KeyChangeState",
352
+ "type": "string",
353
+ "enum": [
354
+ "pendingApproval",
355
+ "awaitingRecoveryProof",
356
+ "staged",
357
+ "overlapping",
358
+ "completed",
359
+ "aborted",
360
+ "expired"
361
+ ],
362
+ "description": "`pendingApproval` — awaiting the approvals the VTA's policy requires; nothing is published. `awaitingRecoveryProof` — approved, and waiting for the recovery custodian's proof over the change; nothing is published. `staged` — successor published, not yet used. `overlapping` — successor active, predecessor `retiring`. `completed` — every predecessor retired, or the change is published and any overlap it began has ended. `aborted` — the successor was retired instead of the predecessor, or a revocation superseded the change. `expired` — the approvals or the recovery proof did not arrive before the preview expired; nothing was published."
363
+ },
364
+ "KeyChangeKind": {
365
+ "title": "KeyChangeKind",
366
+ "type": "string",
367
+ "enum": [
368
+ "planned",
369
+ "compromise",
370
+ "addition",
371
+ "recovery"
372
+ ],
373
+ "description": "`planned` — a successor was staged, activated, and the predecessor retired on the operator's schedule. `compromise` — a key was revoked and, where the role would otherwise be empty, replaced in the same change. `addition` — a key joined a role without anything leaving it. `recovery` — the identifier's update authority moved to the committed recovery key, because the VTA's own update keys were lost or may be in someone else's hands."
374
+ },
375
+ "IdentityKeyRole": {
376
+ "title": "IdentityKeyRole",
377
+ "type": "string",
378
+ "enum": [
379
+ "attestation",
380
+ "operational",
381
+ "messaging",
382
+ "update",
383
+ "authenticator"
384
+ ],
385
+ "description": "The named key role a key occupies in an identity (CONVENTIONS.md §2; VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the identity's attestation artefacts (credentials, endorsements, status lists) through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys the identity's own process uses in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP signatures, invitations, notices, audit checkpoints). Derived. `messaging` — the only keys in `keyAgreement`; sign nothing. X25519, derived or generated in its own right and never converted from a signing key. `update` — the identifier's change authority as its DID method states it (a did:webvh log's `updateKeys` and `nextKeyHashes`, a KERI key event log's current and next keys); never a role-bound verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup, and always accompanied by a committed recovery key held outside the VTA's protection boundary. `authenticator` — a key held on a person's own authenticator (a WebAuthn passkey), listed in `authentication` of that person's identity only; used only to verify the person's WebAuthn assertions (sign-in and step-up evidence) and never to accept a Data Integrity proof. The VTA never holds its private half, so it is enrolled by the passkey ceremony and never generated, added or rotated by these tasks. Never permitted on the durable identity of a VTA, a VTC or a VTN. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075). The set is an extensible registry: a consumer that meets a role it does not implement MUST rely on the key for nothing, and MUST NOT map it onto a role it does know (VTI-KEY-074)."
386
+ },
387
+ "IdentityRoleKey": {
388
+ "title": "IdentityRoleKey",
389
+ "type": "object",
390
+ "additionalProperties": false,
391
+ "required": [
392
+ "role",
393
+ "keyType",
394
+ "state"
395
+ ],
396
+ "description": "One key in one role. A key is in exactly one role for its whole life; a change of role is a retirement from one and an addition to another, with fresh material under a fresh identifier.",
397
+ "properties": {
398
+ "verificationMethod": {
399
+ "type": "string",
400
+ "minLength": 1,
401
+ "description": "The full verification-method identifier (`did#fragment`) the document publishes the key under and lists in `keyRoles`. Absent for `update` keys, which are never role-bound verification methods (VTI-KEY-093). A VTA minting a method SHOULD derive its fragment from the key (VTI-KEY-150)."
402
+ },
403
+ "role": {
404
+ "$ref": "#/$defs/IdentityKeyRole"
405
+ },
406
+ "updateKeyClass": {
407
+ "$ref": "#/$defs/UpdateKeyClass"
408
+ },
409
+ "relationships": {
410
+ "type": "array",
411
+ "items": {
412
+ "$ref": "#/$defs/DidVerificationRelationship"
413
+ },
414
+ "uniqueItems": true,
415
+ "description": "The relationships the key is (or, while `pending`, will be) listed in: always exactly its role's one relationship. Empty for `update`, `retired` and `revoked` keys."
416
+ },
417
+ "keyType": {
418
+ "$ref": "#/$defs/KeyType"
419
+ },
420
+ "publicKeyMultibase": {
421
+ "type": "string",
422
+ "minLength": 1,
423
+ "description": "The public half, multibase-encoded, exactly as published. Absent for a `committed` update key, whose public half the identifier has not yet revealed."
424
+ },
425
+ "commitment": {
426
+ "type": "string",
427
+ "minLength": 1,
428
+ "description": "For a `committed` update key: the commitment the identifier publishes (a did:webvh `nextKeyHashes` entry, a KERI next-key digest), in the method's own encoding."
429
+ },
430
+ "state": {
431
+ "$ref": "#/$defs/KeyLifecycleState"
432
+ },
433
+ "publishedInVersionId": {
434
+ "type": "string",
435
+ "description": "The method's version identifier of the change that first published the key or its commitment (method-profiles/: a did:webvh `versionId`, a KERI event's sequence number and digest). Absent while `pending`."
436
+ },
437
+ "removedInVersionId": {
438
+ "type": "string",
439
+ "description": "Version identifier of the change that retired or revoked the key."
440
+ },
441
+ "activatesAt": {
442
+ "type": "string",
443
+ "format": "date-time",
444
+ "description": "For a `staged` key: when the VTA will begin using it — no earlier than the publishing change's cache horizon."
445
+ },
446
+ "retireAfter": {
447
+ "type": "string",
448
+ "format": "date-time",
449
+ "description": "For a `retiring` key: the end of its overlap. Custody projection only."
450
+ },
451
+ "compromisedSince": {
452
+ "type": "string",
453
+ "format": "date-time",
454
+ "description": "For a `revoked` key: the compromise time (VTI-KEY-121), published as the verification method's `revoked` value. Where it cannot be established, the time the key was first published."
455
+ },
456
+ "rotationId": {
457
+ "type": "string",
458
+ "description": "The rotation this key was introduced or retired by."
459
+ },
460
+ "label": {
461
+ "type": "string",
462
+ "maxLength": 256,
463
+ "description": "Operator-facing label. Custody projection only."
464
+ },
465
+ "custody": {
466
+ "$ref": "#/$defs/IdentityKeyCustody"
467
+ },
468
+ "ext": {
469
+ "$ref": "#/$defs/Ext"
470
+ }
471
+ }
472
+ },
473
+ "IdentityKeyCustody": {
474
+ "title": "IdentityKeyCustody",
475
+ "type": "object",
476
+ "additionalProperties": false,
477
+ "required": [
478
+ "exportable",
479
+ "neverExportable",
480
+ "inBackups",
481
+ "protection"
482
+ ],
483
+ "description": "How a key is held. Present only in the custody projection. Carries no key material, and a conforming VTA MUST NOT place any in `ext`.",
484
+ "properties": {
485
+ "keyId": {
486
+ "type": "string",
487
+ "minLength": 1,
488
+ "description": "The custodian record identifier (`keys/*`'s `keyId`) behind this key. Absent for a key this VTA does not hold (`protection: externalCustodian`)."
489
+ },
490
+ "origin": {
491
+ "$ref": "#/$defs/KeyOrigin"
492
+ },
493
+ "exportable": {
494
+ "type": "boolean",
495
+ "description": "Whether the custodian would release the private half. Always `false` for `attestation` and `update` keys. Stated explicitly, never absent."
496
+ },
497
+ "neverExportable": {
498
+ "type": "boolean",
499
+ "description": "True when no authority can make the key exportable. `true` implies `exportable: false`."
500
+ },
501
+ "inBackups": {
502
+ "type": "boolean",
503
+ "description": "Whether the key, or material it can be re-derived or decrypted from, is in the VTA's backups or any state transfer. Always `false` for `attestation` and `update` keys (VTI-KEY-112)."
504
+ },
505
+ "protection": {
506
+ "$ref": "#/$defs/ProtectionClass"
507
+ },
508
+ "boundary": {
509
+ "type": "string",
510
+ "minLength": 1,
511
+ "maxLength": 128,
512
+ "description": "Opaque, VTA-assigned label of the protection boundary holding the key (CONVENTIONS.md §5.2). Two keys with the same label are lost or compromised together. A recovery update key MUST carry a label different from every routine update key's. Custody projection only; never published."
513
+ },
514
+ "destroyed": {
515
+ "type": "boolean",
516
+ "description": "True once the private half has been destroyed — a retired `attestation` or `messaging` key. The record survives so the key's past signatures stay attributable."
517
+ }
518
+ }
519
+ },
520
+ "ProtectionClass": {
521
+ "title": "ProtectionClass",
522
+ "type": "string",
523
+ "enum": [
524
+ "software",
525
+ "encryptedAtRest",
526
+ "enclave",
527
+ "hardwareModule",
528
+ "externalCustodian"
529
+ ],
530
+ "description": "How a private half is protected (CONVENTIONS.md §5.2). `software` — stored by the VTA without encryption independent of the host (a plain VTA). `encryptedAtRest` — wrapped under a key the VTA holds outside its store (a hardened VTA). `enclave` — held only inside an attested trusted execution environment, wrapped under a key released only to its measurement (a TEE VTA). `hardwareModule` — held by a hardware security module or cloud key service that performs the operation without releasing the key. `externalCustodian` — not held by this VTA at all: a recovery update key, or an `authenticator` key on a person's device."
531
+ },
532
+ "KeyOrigin": {
533
+ "title": "KeyOrigin",
534
+ "type": "string",
535
+ "enum": [
536
+ "derived",
537
+ "imported",
538
+ "internal"
539
+ ],
540
+ "description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
541
+ "default": "derived"
542
+ },
543
+ "KeyLifecycleState": {
544
+ "title": "KeyLifecycleState",
545
+ "type": "string",
546
+ "enum": [
547
+ "pending",
548
+ "staged",
549
+ "active",
550
+ "retiring",
551
+ "retired",
552
+ "revoked",
553
+ "committed"
554
+ ],
555
+ "description": "Where a key is in its role's lifecycle (CONVENTIONS.md §8, §10). `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role but not yet used, until the publishing change's cache horizon. `active` — the key the VTA uses for new signatures (for `messaging`, advertises for new sessions; for `update`, the current authority). `retiring` — still published but never used to sign again; a retiring `messaging` key still decrypts until retirement. `retired` — removed by planned rotation; what it signed while published stays valid, judged against the identifier version current at issuance. `revoked` — withdrawn for compromise, recorded with `compromisedSince`; what it signed from then on establishes nothing. `committed` — an `update` key the identifier commits to as a successor but has not revealed (a did:webvh `nextKeyHashes` entry, a KERI next-key digest). `retired` and `revoked` are terminal."
556
+ },
557
+ "DidVerificationRelationship": {
558
+ "title": "DidVerificationRelationship",
559
+ "type": "string",
560
+ "enum": [
561
+ "authentication",
562
+ "assertionMethod",
563
+ "keyAgreement",
564
+ "capabilityInvocation",
565
+ "capabilityDelegation"
566
+ ],
567
+ "description": "A DID Core verification relationship."
568
+ },
569
+ "UpdateKeyClass": {
570
+ "title": "UpdateKeyClass",
571
+ "type": "string",
572
+ "enum": [
573
+ "routine",
574
+ "recovery"
575
+ ],
576
+ "description": "For an `update` key only (CONVENTIONS.md §5.3). `routine` — generated and held by the VTA, which authorizes the identity's ordinary changes with it. `recovery` — held by a recovery custodian in a protection boundary other than the VTA's; the VTA holds only its commitment, carries that commitment forward in every change it makes, and can use the key only by asking the custodian for a proof (`RecoverySigningRequest`)."
577
+ },
578
+ "KeyType": {
579
+ "title": "KeyType",
580
+ "type": "string",
581
+ "enum": [
582
+ "ed25519",
583
+ "x25519",
584
+ "p256",
585
+ "mldsa44",
586
+ "mldsa65"
587
+ ],
588
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
589
+ },
590
+ "IdentityChangePreview": {
591
+ "title": "IdentityChangePreview",
592
+ "type": "object",
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "previewId",
596
+ "method",
597
+ "expiresAt",
598
+ "changes",
599
+ "document",
600
+ "updateKeyRotates"
601
+ ],
602
+ "description": "What a change would publish, computed by the VTA by running the handler it would run to apply it (CONVENTIONS.md §6.1). This is what a consent surface renders and what an approval is bound to.",
603
+ "properties": {
604
+ "previewId": {
605
+ "type": "string",
606
+ "minLength": 16,
607
+ "description": "Opaque, unguessable identifier of this exact plan. Carried back by the apply request; every approval and any recovery proof is bound to it."
608
+ },
609
+ "method": {
610
+ "$ref": "#/$defs/DidMethodName"
611
+ },
612
+ "baseVersionId": {
613
+ "type": "string",
614
+ "description": "The version identifier the plan was computed against. Absent only for a creation. The plan is void once the identifier moves past it."
615
+ },
616
+ "expiresAt": {
617
+ "type": "string",
618
+ "format": "date-time"
619
+ },
620
+ "changes": {
621
+ "type": "array",
622
+ "items": {
623
+ "$ref": "#/$defs/IdentityChange"
624
+ },
625
+ "description": "Every change the plan would make, including the ones the caller did not ask for — in particular any movement of the update authority the method requires."
626
+ },
627
+ "document": {
628
+ "type": "object",
629
+ "description": "The complete identifier document the change would publish, `keyRoles` included. Public data by construction."
630
+ },
631
+ "warnings": {
632
+ "type": "array",
633
+ "items": {
634
+ "$ref": "#/$defs/PreviewWarning"
635
+ },
636
+ "uniqueItems": true
637
+ },
638
+ "updateKeyRotates": {
639
+ "type": "boolean",
640
+ "description": "True when applying the plan also moves the identifier's update authority to a committed successor — every change under did:webvh pre-rotation, never a KERI interaction event. Stated as its own member because it is the consequence a reviewer most often misses."
641
+ },
642
+ "recoverySigning": {
643
+ "$ref": "#/$defs/RecoverySigningRequest"
644
+ }
645
+ }
646
+ },
647
+ "RecoverySigningRequest": {
648
+ "title": "RecoverySigningRequest",
649
+ "type": "object",
650
+ "additionalProperties": false,
651
+ "required": [
652
+ "commitment",
653
+ "keyType",
654
+ "unsignedChange",
655
+ "proofOptions"
656
+ ],
657
+ "description": "What a recovery custodian must sign for a change that only the recovery key may authorize (CONVENTIONS.md §5.4, §9.4). The custodian MUST check `unsignedChange` itself — render it to its human, confirm that it reveals the recovery key it holds and commits to a fresh recovery key it also holds — and MUST NOT sign on the strength of this request's description alone.",
658
+ "properties": {
659
+ "commitment": {
660
+ "type": "string",
661
+ "minLength": 1,
662
+ "description": "The recovery commitment the identifier publishes; the custodian's key MUST be the one it commits to."
663
+ },
664
+ "keyType": {
665
+ "$ref": "#/$defs/KeyType"
666
+ },
667
+ "unsignedChange": {
668
+ "type": "string",
669
+ "minLength": 1,
670
+ "description": "The change exactly as it will be published, without the recovery proof, as JSON text in the method's own form (a did:webvh log entry, a KERI rotation event)."
671
+ },
672
+ "proofOptions": {
673
+ "type": "object",
674
+ "description": "The proof the method requires over `unsignedChange`, without its signature value, as the method profile defines it (for did:webvh, a Data Integrity proof configuration with `proofPurpose: assertionMethod` and the recovery key's `did:key` as `verificationMethod`)."
675
+ },
676
+ "expiresAt": {
677
+ "type": "string",
678
+ "format": "date-time"
679
+ }
680
+ }
681
+ },
682
+ "PreviewWarning": {
683
+ "title": "PreviewWarning",
684
+ "type": "string",
685
+ "enum": [
686
+ "singleKeyRole",
687
+ "algorithmNotInAcceptedSet",
688
+ "roleWillHaveNoClassicalKey",
689
+ "attestationReissuanceRequired",
690
+ "selfPublish",
691
+ "noWitnesses",
692
+ "protectionBelowPolicy",
693
+ "recoveryKeyRevealed"
694
+ ],
695
+ "description": "Conditions a human should be shown before approving. `singleKeyRole` — the role will hold one active key. `algorithmNotInAcceptedSet` — a verifier population the VTA knows of does not accept the new key's algorithm. `roleWillHaveNoClassicalKey` — every remaining key is post-quantum. `attestationReissuanceRequired` — revoking this attestation key obliges re-issuance and re-signed status lists (VTI-KEY-133). `selfPublish` — the VTA will not publish the change; the operator must. `noWitnesses` — the identifier has no witnesses, so a party holding the VTA's routine update key can drop the recovery commitment unobserved (CONVENTIONS.md §5.3). `protectionBelowPolicy` — a key will be held at a `ProtectionClass` below what the VTA's policy recommends for its role (a plain VTA holding an attestation key). `recoveryKeyRevealed` — this change uses the recovery key, which must be replaced by a fresh recovery commitment in the same change."
696
+ },
697
+ "IdentityChange": {
698
+ "title": "IdentityChange",
699
+ "type": "object",
700
+ "additionalProperties": false,
701
+ "required": [
702
+ "op",
703
+ "role"
704
+ ],
705
+ "properties": {
706
+ "op": {
707
+ "type": "string",
708
+ "enum": [
709
+ "addKey",
710
+ "retireKey",
711
+ "revokeKey",
712
+ "rotateUpdateKey",
713
+ "commitUpdateKey",
714
+ "replaceRecoveryCommitment",
715
+ "useRecoveryKey"
716
+ ],
717
+ "description": "`addKey` — a verification method joins its role's relationship and `keyRoles`. `retireKey` — a verification method leaves its relationship, `keyRoles` and the document. `revokeKey` — a verification method leaves its relationship and `keyRoles`, and stays in `verificationMethod` with `revoked` set to the compromise time (CONVENTIONS.md §9.1). `rotateUpdateKey` — the identifier's update authority moves to a committed routine successor. `commitUpdateKey` — a new routine successor is committed. `replaceRecoveryCommitment` — the recovery commitment changes. `useRecoveryKey` — the change is authorized by the recovery key, which the identifier then reveals."
718
+ },
719
+ "role": {
720
+ "$ref": "#/$defs/IdentityKeyRole"
721
+ },
722
+ "verificationMethod": {
723
+ "type": "string"
724
+ },
725
+ "keyType": {
726
+ "$ref": "#/$defs/KeyType"
727
+ },
728
+ "publicKeyMultibase": {
729
+ "type": "string"
730
+ },
731
+ "commitment": {
732
+ "type": "string"
733
+ },
734
+ "relationships": {
735
+ "type": "array",
736
+ "items": {
737
+ "$ref": "#/$defs/DidVerificationRelationship"
738
+ },
739
+ "uniqueItems": true
740
+ }
741
+ }
742
+ },
743
+ "DidMethodName": {
744
+ "title": "DidMethodName",
745
+ "type": "string",
746
+ "pattern": "^[a-z0-9]+(:[a-z0-9]+)*$",
747
+ "description": "The DID method an identity uses, as the method profile that governs it is named: `webvh` for a did:webvh identity, `scid:vh` for the did:scid:vh:1 form of one, `webs` for did:webs. Deliberately a pattern and not an enumeration: a method is added by publishing its profile under method-profiles/, never by changing this schema. A VTA MUST refuse a method it holds no profile for, or whose profile declares it ineligible, with `vta/dids:methodNotEligible`."
748
+ },
749
+ "KeyChangeOutcome": {
750
+ "title": "KeyChangeOutcome",
751
+ "type": "string",
752
+ "enum": [
753
+ "preview",
754
+ "applied",
755
+ "pendingApproval",
756
+ "awaitingRecoveryProof"
757
+ ],
758
+ "description": "`preview` — nothing was written; the response carries the plan. `applied` — the change was made (and published, unless `publication.selfPublish`). `pendingApproval` — the plan is recorded and awaits further approvals. `awaitingRecoveryProof` — the plan is approved and waits for the recovery custodian's proof (`preview.recoverySigning`); nothing is published until it arrives."
759
+ }
760
+ }
761
+ };
762
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
763
+ export const RESPONSE_PAYLOAD_SCHEMA = {
764
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
765
+ "$ref": "#/$defs/Response",
766
+ "$defs": {
767
+ "Response": {
768
+ "$anchor": "response",
769
+ "title": "VTA DIDs — Keys Add — response payload",
770
+ "type": "object",
771
+ "additionalProperties": false,
772
+ "required": [
773
+ "did",
774
+ "outcome"
775
+ ],
776
+ "properties": {
777
+ "did": {
778
+ "type": "string",
779
+ "minLength": 1
780
+ },
781
+ "outcome": {
782
+ "$ref": "#/$defs/KeyChangeOutcome"
783
+ },
784
+ "preview": {
785
+ "$ref": "#/$defs/IdentityChangePreview",
786
+ "description": "Present when `outcome` is `preview`, `pendingApproval` or `awaitingRecoveryProof`: the plan, and what an approval is bound to."
787
+ },
788
+ "approvals": {
789
+ "$ref": "#/$defs/KeyChangeApprovalState",
790
+ "description": "Present when `outcome` is `pendingApproval`."
791
+ },
792
+ "newVersionId": {
793
+ "type": "string",
794
+ "description": "Present when `outcome` is `applied`: the version identifier of the change. Pass it as the next change's `expectedVersionId`."
795
+ },
796
+ "keys": {
797
+ "type": "array",
798
+ "items": {
799
+ "$ref": "#/$defs/IdentityRoleKey"
800
+ },
801
+ "description": "Every key whose state this change sets or would set, after the change."
802
+ },
803
+ "rotation": {
804
+ "$ref": "#/$defs/KeyChangeRecord"
805
+ },
806
+ "publication": {
807
+ "$ref": "#/$defs/Publication",
808
+ "description": "Present when `outcome` is `applied`."
809
+ },
810
+ "ext": {
811
+ "$ref": "#/$defs/Ext"
812
+ }
813
+ }
814
+ },
815
+ "Ext": {
816
+ "title": "Ext",
817
+ "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.",
818
+ "type": "object",
819
+ "minProperties": 1,
820
+ "additionalProperties": true,
821
+ "propertyNames": {
822
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
823
+ }
824
+ },
825
+ "Publication": {
826
+ "title": "Publication",
827
+ "type": "object",
828
+ "additionalProperties": false,
829
+ "required": [
830
+ "selfPublish"
831
+ ],
832
+ "description": "How the change reaches resolvers.",
833
+ "properties": {
834
+ "selfPublish": {
835
+ "type": "boolean",
836
+ "description": "True when no hosting service holds the identifier for the VTA: the caller must publish `artifacts`, and until it does resolvers see the previous version."
837
+ },
838
+ "artifacts": {
839
+ "type": "array",
840
+ "items": {
841
+ "$ref": "#/$defs/PublishedArtifact"
842
+ },
843
+ "description": "Present when `selfPublish` is true."
844
+ }
845
+ }
846
+ },
847
+ "PublishedArtifact": {
848
+ "title": "PublishedArtifact",
849
+ "type": "object",
850
+ "additionalProperties": false,
851
+ "required": [
852
+ "name",
853
+ "mediaType",
854
+ "content"
855
+ ],
856
+ "description": "A file the identifier's method publishes, as the method profile names it (`did.jsonl` for did:webvh, `did.json` and `keri.cesr` for did:webs).",
857
+ "properties": {
858
+ "name": {
859
+ "type": "string",
860
+ "minLength": 1,
861
+ "maxLength": 128
862
+ },
863
+ "mediaType": {
864
+ "type": "string",
865
+ "minLength": 1
866
+ },
867
+ "content": {
868
+ "type": "string",
869
+ "description": "The artefact's content, or for an append-only artefact the appended part, as text."
870
+ }
871
+ }
872
+ },
873
+ "KeyChangeRecord": {
874
+ "title": "KeyChangeRecord",
875
+ "type": "object",
876
+ "additionalProperties": false,
877
+ "required": [
878
+ "rotationId",
879
+ "role",
880
+ "kind",
881
+ "state"
882
+ ],
883
+ "description": "One change to a role's key set, from preview to completion. The identifier's history is the authority for what was published; this record adds which change was which and, in the custody projection, who asked, who approved, and why.",
884
+ "properties": {
885
+ "rotationId": {
886
+ "type": "string",
887
+ "minLength": 1
888
+ },
889
+ "role": {
890
+ "$ref": "#/$defs/IdentityKeyRole"
891
+ },
892
+ "kind": {
893
+ "$ref": "#/$defs/KeyChangeKind"
894
+ },
895
+ "state": {
896
+ "$ref": "#/$defs/KeyChangeState"
897
+ },
898
+ "predecessors": {
899
+ "type": "array",
900
+ "items": {
901
+ "type": "string"
902
+ },
903
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) leaving the role."
904
+ },
905
+ "successors": {
906
+ "type": "array",
907
+ "items": {
908
+ "type": "string"
909
+ },
910
+ "description": "Verification-method identifiers (for `update`, public keys or commitments) entering the role."
911
+ },
912
+ "startedInVersionId": {
913
+ "type": "string"
914
+ },
915
+ "endedInVersionId": {
916
+ "type": "string"
917
+ },
918
+ "startedAt": {
919
+ "type": "string",
920
+ "format": "date-time"
921
+ },
922
+ "cacheHorizonAt": {
923
+ "type": "string",
924
+ "format": "date-time",
925
+ "description": "Planned rotations: the publishing change's cache horizon (CONVENTIONS.md §10.1). The switch and any retirement happen no earlier."
926
+ },
927
+ "activatesAt": {
928
+ "type": "string",
929
+ "format": "date-time",
930
+ "description": "When the successor becomes `active` and the predecessor `retiring`; never before `cacheHorizonAt`."
931
+ },
932
+ "overlapUntil": {
933
+ "type": "string",
934
+ "format": "date-time",
935
+ "description": "Custody projection only. End of the overlap."
936
+ },
937
+ "autoRetire": {
938
+ "type": "boolean",
939
+ "description": "Custody projection only. Whether the VTA retires the predecessor itself at `overlapUntil`."
940
+ },
941
+ "endedAt": {
942
+ "type": "string",
943
+ "format": "date-time"
944
+ },
945
+ "initiatedBy": {
946
+ "type": "string",
947
+ "description": "Custody projection only. VID of the administrator whose signed request started the change."
948
+ },
949
+ "approvals": {
950
+ "$ref": "#/$defs/KeyChangeApprovalState"
951
+ },
952
+ "reason": {
953
+ "type": "string",
954
+ "maxLength": 1024,
955
+ "description": "Custody projection only. The operator's stated reason. Never published."
956
+ },
957
+ "ext": {
958
+ "$ref": "#/$defs/Ext"
959
+ }
960
+ }
961
+ },
962
+ "KeyChangeApprovalState": {
963
+ "title": "KeyChangeApprovalState",
964
+ "type": "object",
965
+ "additionalProperties": false,
966
+ "required": [
967
+ "required",
968
+ "received",
969
+ "expiresAt"
970
+ ],
971
+ "description": "Approval progress of a change the VTA's policy gates on approvals (CONVENTIONS.md §6).",
972
+ "properties": {
973
+ "required": {
974
+ "type": "integer",
975
+ "minimum": 1,
976
+ "description": "Distinct approvals the VTA's policy requires."
977
+ },
978
+ "received": {
979
+ "type": "integer",
980
+ "minimum": 0,
981
+ "description": "Distinct approvals recorded so far, the initiator's own included."
982
+ },
983
+ "approvals": {
984
+ "type": "array",
985
+ "items": {
986
+ "$ref": "#/$defs/RecordedApproval"
987
+ },
988
+ "description": "The approvals recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
989
+ },
990
+ "expiresAt": {
991
+ "type": "string",
992
+ "format": "date-time",
993
+ "description": "When the preview, and every approval bound to it, stops being usable."
994
+ }
995
+ }
996
+ },
997
+ "RecordedApproval": {
998
+ "title": "RecordedApproval",
999
+ "type": "object",
1000
+ "additionalProperties": false,
1001
+ "required": [
1002
+ "approver",
1003
+ "evidence"
1004
+ ],
1005
+ "properties": {
1006
+ "approver": {
1007
+ "type": "string",
1008
+ "minLength": 1,
1009
+ "description": "VID of the approver."
1010
+ },
1011
+ "evidence": {
1012
+ "$ref": "#/$defs/ApprovalEvidenceKind"
1013
+ },
1014
+ "recordedAt": {
1015
+ "type": "string",
1016
+ "format": "date-time"
1017
+ }
1018
+ }
1019
+ },
1020
+ "ApprovalEvidenceKind": {
1021
+ "title": "ApprovalEvidenceKind",
1022
+ "type": "string",
1023
+ "enum": [
1024
+ "didSigned",
1025
+ "webauthn",
1026
+ "approverSigned"
1027
+ ],
1028
+ "description": "The evidence an approval was recorded on, as `auth/step-up/approve-response` names it. Only the approver's own evidence is ever recorded: a proof by a key the VTA records as acting for an approver — a console signing key or any other delegation — is never an approval (CONVENTIONS.md §6.3)."
1029
+ },
1030
+ "KeyChangeState": {
1031
+ "title": "KeyChangeState",
1032
+ "type": "string",
1033
+ "enum": [
1034
+ "pendingApproval",
1035
+ "awaitingRecoveryProof",
1036
+ "staged",
1037
+ "overlapping",
1038
+ "completed",
1039
+ "aborted",
1040
+ "expired"
1041
+ ],
1042
+ "description": "`pendingApproval` — awaiting the approvals the VTA's policy requires; nothing is published. `awaitingRecoveryProof` — approved, and waiting for the recovery custodian's proof over the change; nothing is published. `staged` — successor published, not yet used. `overlapping` — successor active, predecessor `retiring`. `completed` — every predecessor retired, or the change is published and any overlap it began has ended. `aborted` — the successor was retired instead of the predecessor, or a revocation superseded the change. `expired` — the approvals or the recovery proof did not arrive before the preview expired; nothing was published."
1043
+ },
1044
+ "KeyChangeKind": {
1045
+ "title": "KeyChangeKind",
1046
+ "type": "string",
1047
+ "enum": [
1048
+ "planned",
1049
+ "compromise",
1050
+ "addition",
1051
+ "recovery"
1052
+ ],
1053
+ "description": "`planned` — a successor was staged, activated, and the predecessor retired on the operator's schedule. `compromise` — a key was revoked and, where the role would otherwise be empty, replaced in the same change. `addition` — a key joined a role without anything leaving it. `recovery` — the identifier's update authority moved to the committed recovery key, because the VTA's own update keys were lost or may be in someone else's hands."
1054
+ },
1055
+ "IdentityKeyRole": {
1056
+ "title": "IdentityKeyRole",
1057
+ "type": "string",
1058
+ "enum": [
1059
+ "attestation",
1060
+ "operational",
1061
+ "messaging",
1062
+ "update",
1063
+ "authenticator"
1064
+ ],
1065
+ "description": "The named key role a key occupies in an identity (CONVENTIONS.md §2; VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the identity's attestation artefacts (credentials, endorsements, status lists) through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys the identity's own process uses in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP signatures, invitations, notices, audit checkpoints). Derived. `messaging` — the only keys in `keyAgreement`; sign nothing. X25519, derived or generated in its own right and never converted from a signing key. `update` — the identifier's change authority as its DID method states it (a did:webvh log's `updateKeys` and `nextKeyHashes`, a KERI key event log's current and next keys); never a role-bound verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup, and always accompanied by a committed recovery key held outside the VTA's protection boundary. `authenticator` — a key held on a person's own authenticator (a WebAuthn passkey), listed in `authentication` of that person's identity only; used only to verify the person's WebAuthn assertions (sign-in and step-up evidence) and never to accept a Data Integrity proof. The VTA never holds its private half, so it is enrolled by the passkey ceremony and never generated, added or rotated by these tasks. Never permitted on the durable identity of a VTA, a VTC or a VTN. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075). The set is an extensible registry: a consumer that meets a role it does not implement MUST rely on the key for nothing, and MUST NOT map it onto a role it does know (VTI-KEY-074)."
1066
+ },
1067
+ "IdentityRoleKey": {
1068
+ "title": "IdentityRoleKey",
1069
+ "type": "object",
1070
+ "additionalProperties": false,
1071
+ "required": [
1072
+ "role",
1073
+ "keyType",
1074
+ "state"
1075
+ ],
1076
+ "description": "One key in one role. A key is in exactly one role for its whole life; a change of role is a retirement from one and an addition to another, with fresh material under a fresh identifier.",
1077
+ "properties": {
1078
+ "verificationMethod": {
1079
+ "type": "string",
1080
+ "minLength": 1,
1081
+ "description": "The full verification-method identifier (`did#fragment`) the document publishes the key under and lists in `keyRoles`. Absent for `update` keys, which are never role-bound verification methods (VTI-KEY-093). A VTA minting a method SHOULD derive its fragment from the key (VTI-KEY-150)."
1082
+ },
1083
+ "role": {
1084
+ "$ref": "#/$defs/IdentityKeyRole"
1085
+ },
1086
+ "updateKeyClass": {
1087
+ "$ref": "#/$defs/UpdateKeyClass"
1088
+ },
1089
+ "relationships": {
1090
+ "type": "array",
1091
+ "items": {
1092
+ "$ref": "#/$defs/DidVerificationRelationship"
1093
+ },
1094
+ "uniqueItems": true,
1095
+ "description": "The relationships the key is (or, while `pending`, will be) listed in: always exactly its role's one relationship. Empty for `update`, `retired` and `revoked` keys."
1096
+ },
1097
+ "keyType": {
1098
+ "$ref": "#/$defs/KeyType"
1099
+ },
1100
+ "publicKeyMultibase": {
1101
+ "type": "string",
1102
+ "minLength": 1,
1103
+ "description": "The public half, multibase-encoded, exactly as published. Absent for a `committed` update key, whose public half the identifier has not yet revealed."
1104
+ },
1105
+ "commitment": {
1106
+ "type": "string",
1107
+ "minLength": 1,
1108
+ "description": "For a `committed` update key: the commitment the identifier publishes (a did:webvh `nextKeyHashes` entry, a KERI next-key digest), in the method's own encoding."
1109
+ },
1110
+ "state": {
1111
+ "$ref": "#/$defs/KeyLifecycleState"
1112
+ },
1113
+ "publishedInVersionId": {
1114
+ "type": "string",
1115
+ "description": "The method's version identifier of the change that first published the key or its commitment (method-profiles/: a did:webvh `versionId`, a KERI event's sequence number and digest). Absent while `pending`."
1116
+ },
1117
+ "removedInVersionId": {
1118
+ "type": "string",
1119
+ "description": "Version identifier of the change that retired or revoked the key."
1120
+ },
1121
+ "activatesAt": {
1122
+ "type": "string",
1123
+ "format": "date-time",
1124
+ "description": "For a `staged` key: when the VTA will begin using it — no earlier than the publishing change's cache horizon."
1125
+ },
1126
+ "retireAfter": {
1127
+ "type": "string",
1128
+ "format": "date-time",
1129
+ "description": "For a `retiring` key: the end of its overlap. Custody projection only."
1130
+ },
1131
+ "compromisedSince": {
1132
+ "type": "string",
1133
+ "format": "date-time",
1134
+ "description": "For a `revoked` key: the compromise time (VTI-KEY-121), published as the verification method's `revoked` value. Where it cannot be established, the time the key was first published."
1135
+ },
1136
+ "rotationId": {
1137
+ "type": "string",
1138
+ "description": "The rotation this key was introduced or retired by."
1139
+ },
1140
+ "label": {
1141
+ "type": "string",
1142
+ "maxLength": 256,
1143
+ "description": "Operator-facing label. Custody projection only."
1144
+ },
1145
+ "custody": {
1146
+ "$ref": "#/$defs/IdentityKeyCustody"
1147
+ },
1148
+ "ext": {
1149
+ "$ref": "#/$defs/Ext"
1150
+ }
1151
+ }
1152
+ },
1153
+ "IdentityKeyCustody": {
1154
+ "title": "IdentityKeyCustody",
1155
+ "type": "object",
1156
+ "additionalProperties": false,
1157
+ "required": [
1158
+ "exportable",
1159
+ "neverExportable",
1160
+ "inBackups",
1161
+ "protection"
1162
+ ],
1163
+ "description": "How a key is held. Present only in the custody projection. Carries no key material, and a conforming VTA MUST NOT place any in `ext`.",
1164
+ "properties": {
1165
+ "keyId": {
1166
+ "type": "string",
1167
+ "minLength": 1,
1168
+ "description": "The custodian record identifier (`keys/*`'s `keyId`) behind this key. Absent for a key this VTA does not hold (`protection: externalCustodian`)."
1169
+ },
1170
+ "origin": {
1171
+ "$ref": "#/$defs/KeyOrigin"
1172
+ },
1173
+ "exportable": {
1174
+ "type": "boolean",
1175
+ "description": "Whether the custodian would release the private half. Always `false` for `attestation` and `update` keys. Stated explicitly, never absent."
1176
+ },
1177
+ "neverExportable": {
1178
+ "type": "boolean",
1179
+ "description": "True when no authority can make the key exportable. `true` implies `exportable: false`."
1180
+ },
1181
+ "inBackups": {
1182
+ "type": "boolean",
1183
+ "description": "Whether the key, or material it can be re-derived or decrypted from, is in the VTA's backups or any state transfer. Always `false` for `attestation` and `update` keys (VTI-KEY-112)."
1184
+ },
1185
+ "protection": {
1186
+ "$ref": "#/$defs/ProtectionClass"
1187
+ },
1188
+ "boundary": {
1189
+ "type": "string",
1190
+ "minLength": 1,
1191
+ "maxLength": 128,
1192
+ "description": "Opaque, VTA-assigned label of the protection boundary holding the key (CONVENTIONS.md §5.2). Two keys with the same label are lost or compromised together. A recovery update key MUST carry a label different from every routine update key's. Custody projection only; never published."
1193
+ },
1194
+ "destroyed": {
1195
+ "type": "boolean",
1196
+ "description": "True once the private half has been destroyed — a retired `attestation` or `messaging` key. The record survives so the key's past signatures stay attributable."
1197
+ }
1198
+ }
1199
+ },
1200
+ "ProtectionClass": {
1201
+ "title": "ProtectionClass",
1202
+ "type": "string",
1203
+ "enum": [
1204
+ "software",
1205
+ "encryptedAtRest",
1206
+ "enclave",
1207
+ "hardwareModule",
1208
+ "externalCustodian"
1209
+ ],
1210
+ "description": "How a private half is protected (CONVENTIONS.md §5.2). `software` — stored by the VTA without encryption independent of the host (a plain VTA). `encryptedAtRest` — wrapped under a key the VTA holds outside its store (a hardened VTA). `enclave` — held only inside an attested trusted execution environment, wrapped under a key released only to its measurement (a TEE VTA). `hardwareModule` — held by a hardware security module or cloud key service that performs the operation without releasing the key. `externalCustodian` — not held by this VTA at all: a recovery update key, or an `authenticator` key on a person's device."
1211
+ },
1212
+ "KeyOrigin": {
1213
+ "title": "KeyOrigin",
1214
+ "type": "string",
1215
+ "enum": [
1216
+ "derived",
1217
+ "imported",
1218
+ "internal"
1219
+ ],
1220
+ "description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
1221
+ "default": "derived"
1222
+ },
1223
+ "KeyLifecycleState": {
1224
+ "title": "KeyLifecycleState",
1225
+ "type": "string",
1226
+ "enum": [
1227
+ "pending",
1228
+ "staged",
1229
+ "active",
1230
+ "retiring",
1231
+ "retired",
1232
+ "revoked",
1233
+ "committed"
1234
+ ],
1235
+ "description": "Where a key is in its role's lifecycle (CONVENTIONS.md §8, §10). `pending` — planned by a preview or a change awaiting approval; not published; custody projection only. `staged` — published and bound to its role but not yet used, until the publishing change's cache horizon. `active` — the key the VTA uses for new signatures (for `messaging`, advertises for new sessions; for `update`, the current authority). `retiring` — still published but never used to sign again; a retiring `messaging` key still decrypts until retirement. `retired` — removed by planned rotation; what it signed while published stays valid, judged against the identifier version current at issuance. `revoked` — withdrawn for compromise, recorded with `compromisedSince`; what it signed from then on establishes nothing. `committed` — an `update` key the identifier commits to as a successor but has not revealed (a did:webvh `nextKeyHashes` entry, a KERI next-key digest). `retired` and `revoked` are terminal."
1236
+ },
1237
+ "DidVerificationRelationship": {
1238
+ "title": "DidVerificationRelationship",
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "authentication",
1242
+ "assertionMethod",
1243
+ "keyAgreement",
1244
+ "capabilityInvocation",
1245
+ "capabilityDelegation"
1246
+ ],
1247
+ "description": "A DID Core verification relationship."
1248
+ },
1249
+ "UpdateKeyClass": {
1250
+ "title": "UpdateKeyClass",
1251
+ "type": "string",
1252
+ "enum": [
1253
+ "routine",
1254
+ "recovery"
1255
+ ],
1256
+ "description": "For an `update` key only (CONVENTIONS.md §5.3). `routine` — generated and held by the VTA, which authorizes the identity's ordinary changes with it. `recovery` — held by a recovery custodian in a protection boundary other than the VTA's; the VTA holds only its commitment, carries that commitment forward in every change it makes, and can use the key only by asking the custodian for a proof (`RecoverySigningRequest`)."
1257
+ },
1258
+ "KeyType": {
1259
+ "title": "KeyType",
1260
+ "type": "string",
1261
+ "enum": [
1262
+ "ed25519",
1263
+ "x25519",
1264
+ "p256",
1265
+ "mldsa44",
1266
+ "mldsa65"
1267
+ ],
1268
+ "description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
1269
+ },
1270
+ "IdentityChangePreview": {
1271
+ "title": "IdentityChangePreview",
1272
+ "type": "object",
1273
+ "additionalProperties": false,
1274
+ "required": [
1275
+ "previewId",
1276
+ "method",
1277
+ "expiresAt",
1278
+ "changes",
1279
+ "document",
1280
+ "updateKeyRotates"
1281
+ ],
1282
+ "description": "What a change would publish, computed by the VTA by running the handler it would run to apply it (CONVENTIONS.md §6.1). This is what a consent surface renders and what an approval is bound to.",
1283
+ "properties": {
1284
+ "previewId": {
1285
+ "type": "string",
1286
+ "minLength": 16,
1287
+ "description": "Opaque, unguessable identifier of this exact plan. Carried back by the apply request; every approval and any recovery proof is bound to it."
1288
+ },
1289
+ "method": {
1290
+ "$ref": "#/$defs/DidMethodName"
1291
+ },
1292
+ "baseVersionId": {
1293
+ "type": "string",
1294
+ "description": "The version identifier the plan was computed against. Absent only for a creation. The plan is void once the identifier moves past it."
1295
+ },
1296
+ "expiresAt": {
1297
+ "type": "string",
1298
+ "format": "date-time"
1299
+ },
1300
+ "changes": {
1301
+ "type": "array",
1302
+ "items": {
1303
+ "$ref": "#/$defs/IdentityChange"
1304
+ },
1305
+ "description": "Every change the plan would make, including the ones the caller did not ask for — in particular any movement of the update authority the method requires."
1306
+ },
1307
+ "document": {
1308
+ "type": "object",
1309
+ "description": "The complete identifier document the change would publish, `keyRoles` included. Public data by construction."
1310
+ },
1311
+ "warnings": {
1312
+ "type": "array",
1313
+ "items": {
1314
+ "$ref": "#/$defs/PreviewWarning"
1315
+ },
1316
+ "uniqueItems": true
1317
+ },
1318
+ "updateKeyRotates": {
1319
+ "type": "boolean",
1320
+ "description": "True when applying the plan also moves the identifier's update authority to a committed successor — every change under did:webvh pre-rotation, never a KERI interaction event. Stated as its own member because it is the consequence a reviewer most often misses."
1321
+ },
1322
+ "recoverySigning": {
1323
+ "$ref": "#/$defs/RecoverySigningRequest"
1324
+ }
1325
+ }
1326
+ },
1327
+ "RecoverySigningRequest": {
1328
+ "title": "RecoverySigningRequest",
1329
+ "type": "object",
1330
+ "additionalProperties": false,
1331
+ "required": [
1332
+ "commitment",
1333
+ "keyType",
1334
+ "unsignedChange",
1335
+ "proofOptions"
1336
+ ],
1337
+ "description": "What a recovery custodian must sign for a change that only the recovery key may authorize (CONVENTIONS.md §5.4, §9.4). The custodian MUST check `unsignedChange` itself — render it to its human, confirm that it reveals the recovery key it holds and commits to a fresh recovery key it also holds — and MUST NOT sign on the strength of this request's description alone.",
1338
+ "properties": {
1339
+ "commitment": {
1340
+ "type": "string",
1341
+ "minLength": 1,
1342
+ "description": "The recovery commitment the identifier publishes; the custodian's key MUST be the one it commits to."
1343
+ },
1344
+ "keyType": {
1345
+ "$ref": "#/$defs/KeyType"
1346
+ },
1347
+ "unsignedChange": {
1348
+ "type": "string",
1349
+ "minLength": 1,
1350
+ "description": "The change exactly as it will be published, without the recovery proof, as JSON text in the method's own form (a did:webvh log entry, a KERI rotation event)."
1351
+ },
1352
+ "proofOptions": {
1353
+ "type": "object",
1354
+ "description": "The proof the method requires over `unsignedChange`, without its signature value, as the method profile defines it (for did:webvh, a Data Integrity proof configuration with `proofPurpose: assertionMethod` and the recovery key's `did:key` as `verificationMethod`)."
1355
+ },
1356
+ "expiresAt": {
1357
+ "type": "string",
1358
+ "format": "date-time"
1359
+ }
1360
+ }
1361
+ },
1362
+ "PreviewWarning": {
1363
+ "title": "PreviewWarning",
1364
+ "type": "string",
1365
+ "enum": [
1366
+ "singleKeyRole",
1367
+ "algorithmNotInAcceptedSet",
1368
+ "roleWillHaveNoClassicalKey",
1369
+ "attestationReissuanceRequired",
1370
+ "selfPublish",
1371
+ "noWitnesses",
1372
+ "protectionBelowPolicy",
1373
+ "recoveryKeyRevealed"
1374
+ ],
1375
+ "description": "Conditions a human should be shown before approving. `singleKeyRole` — the role will hold one active key. `algorithmNotInAcceptedSet` — a verifier population the VTA knows of does not accept the new key's algorithm. `roleWillHaveNoClassicalKey` — every remaining key is post-quantum. `attestationReissuanceRequired` — revoking this attestation key obliges re-issuance and re-signed status lists (VTI-KEY-133). `selfPublish` — the VTA will not publish the change; the operator must. `noWitnesses` — the identifier has no witnesses, so a party holding the VTA's routine update key can drop the recovery commitment unobserved (CONVENTIONS.md §5.3). `protectionBelowPolicy` — a key will be held at a `ProtectionClass` below what the VTA's policy recommends for its role (a plain VTA holding an attestation key). `recoveryKeyRevealed` — this change uses the recovery key, which must be replaced by a fresh recovery commitment in the same change."
1376
+ },
1377
+ "IdentityChange": {
1378
+ "title": "IdentityChange",
1379
+ "type": "object",
1380
+ "additionalProperties": false,
1381
+ "required": [
1382
+ "op",
1383
+ "role"
1384
+ ],
1385
+ "properties": {
1386
+ "op": {
1387
+ "type": "string",
1388
+ "enum": [
1389
+ "addKey",
1390
+ "retireKey",
1391
+ "revokeKey",
1392
+ "rotateUpdateKey",
1393
+ "commitUpdateKey",
1394
+ "replaceRecoveryCommitment",
1395
+ "useRecoveryKey"
1396
+ ],
1397
+ "description": "`addKey` — a verification method joins its role's relationship and `keyRoles`. `retireKey` — a verification method leaves its relationship, `keyRoles` and the document. `revokeKey` — a verification method leaves its relationship and `keyRoles`, and stays in `verificationMethod` with `revoked` set to the compromise time (CONVENTIONS.md §9.1). `rotateUpdateKey` — the identifier's update authority moves to a committed routine successor. `commitUpdateKey` — a new routine successor is committed. `replaceRecoveryCommitment` — the recovery commitment changes. `useRecoveryKey` — the change is authorized by the recovery key, which the identifier then reveals."
1398
+ },
1399
+ "role": {
1400
+ "$ref": "#/$defs/IdentityKeyRole"
1401
+ },
1402
+ "verificationMethod": {
1403
+ "type": "string"
1404
+ },
1405
+ "keyType": {
1406
+ "$ref": "#/$defs/KeyType"
1407
+ },
1408
+ "publicKeyMultibase": {
1409
+ "type": "string"
1410
+ },
1411
+ "commitment": {
1412
+ "type": "string"
1413
+ },
1414
+ "relationships": {
1415
+ "type": "array",
1416
+ "items": {
1417
+ "$ref": "#/$defs/DidVerificationRelationship"
1418
+ },
1419
+ "uniqueItems": true
1420
+ }
1421
+ }
1422
+ },
1423
+ "DidMethodName": {
1424
+ "title": "DidMethodName",
1425
+ "type": "string",
1426
+ "pattern": "^[a-z0-9]+(:[a-z0-9]+)*$",
1427
+ "description": "The DID method an identity uses, as the method profile that governs it is named: `webvh` for a did:webvh identity, `scid:vh` for the did:scid:vh:1 form of one, `webs` for did:webs. Deliberately a pattern and not an enumeration: a method is added by publishing its profile under method-profiles/, never by changing this schema. A VTA MUST refuse a method it holds no profile for, or whose profile declares it ineligible, with `vta/dids:methodNotEligible`."
1428
+ },
1429
+ "KeyChangeOutcome": {
1430
+ "title": "KeyChangeOutcome",
1431
+ "type": "string",
1432
+ "enum": [
1433
+ "preview",
1434
+ "applied",
1435
+ "pendingApproval",
1436
+ "awaitingRecoveryProof"
1437
+ ],
1438
+ "description": "`preview` — nothing was written; the response carries the plan. `applied` — the change was made (and published, unless `publication.selfPublish`). `pendingApproval` — the plan is recorded and awaits further approvals. `awaitingRecoveryProof` — the plan is approved and waits for the recovery custodian's proof (`preview.recoverySigning`); nothing is published until it arrives."
1439
+ }
1440
+ }
1441
+ };
1442
+ /**
1443
+ * SPEC.md §7.2 policy for the request variant, from this specification's
1444
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
1445
+ * per-specification and cannot be derived from the document alone, and
1446
+ * item 2 needs the schema this carries.
1447
+ */
1448
+ export const SPEC = {
1449
+ typeUri: TYPE_URI,
1450
+ isBearer: false,
1451
+ isProofRequired: true,
1452
+ isRecipientRequired: true,
1453
+ isIssuedAtRequired: true,
1454
+ payloadSchema: PAYLOAD_SCHEMA,
1455
+ };
1456
+ /**
1457
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1458
+ * tracks the *issuer* party's requirement because a response swaps the
1459
+ * parties (§7.3 item 5).
1460
+ */
1461
+ export const RESPONSE_SPEC = {
1462
+ typeUri: RESPONSE_TYPE_URI,
1463
+ isBearer: false,
1464
+ isProofRequired: true,
1465
+ isRecipientRequired: true,
1466
+ isIssuedAtRequired: true,
1467
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
1468
+ };
1469
+ //# sourceMappingURL=payload.js.map