@openvtc/trust-tasks 0.28.2 → 0.28.4

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 (264) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +9 -1
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +530 -3
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +66 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +66 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/peer-check/ask/0.1/payload.d.ts +397 -0
  12. package/dist/peer-check/ask/0.1/payload.d.ts.map +1 -0
  13. package/dist/peer-check/ask/0.1/payload.js +235 -0
  14. package/dist/peer-check/ask/0.1/payload.js.map +1 -0
  15. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  16. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  17. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  18. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  19. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  20. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  21. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  22. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  23. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  24. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  25. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  26. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  27. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  28. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  29. package/dist/rooms/keys/act/0.8/payload.d.ts +14 -2
  30. package/dist/rooms/keys/act/0.8/payload.d.ts.map +1 -1
  31. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  32. package/dist/rooms/keys/act/0.8/payload.js.map +1 -1
  33. package/dist/rooms/keys/act/0.9/payload.d.ts +560 -0
  34. package/dist/rooms/keys/act/0.9/payload.d.ts.map +1 -0
  35. package/dist/rooms/keys/act/0.9/payload.js +319 -0
  36. package/dist/rooms/keys/act/0.9/payload.js.map +1 -0
  37. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  38. package/dist/rooms/records/put/0.1/payload.js +1 -1
  39. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  40. package/dist/rooms/records/put/0.2/payload.js +1 -1
  41. package/dist/rooms/records/put/0.3/payload.d.ts +14 -2
  42. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -1
  43. package/dist/rooms/records/put/0.3/payload.js +1 -1
  44. package/dist/rooms/records/put/0.3/payload.js.map +1 -1
  45. package/dist/rooms/records/put/0.4/payload.d.ts +1474 -0
  46. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -0
  47. package/dist/rooms/records/put/0.4/payload.js +804 -0
  48. package/dist/rooms/records/put/0.4/payload.js.map +1 -0
  49. package/dist/vta/_shared/0.3/did-key-roles.d.ts +1 -1
  50. package/dist/vta/_shared/0.9/did-template.d.ts +16 -0
  51. package/dist/vta/_shared/0.9/did-template.d.ts.map +1 -0
  52. package/dist/vta/_shared/0.9/did-template.js +6 -0
  53. package/dist/vta/_shared/0.9/did-template.js.map +1 -0
  54. package/dist/vta/did-templates/create/2.0/payload.d.ts +3 -3
  55. package/dist/vta/did-templates/create/2.0/payload.js +1 -1
  56. package/dist/vta/did-templates/create/3.0/payload.d.ts +3 -3
  57. package/dist/vta/did-templates/create/3.0/payload.js +1 -1
  58. package/dist/vta/did-templates/create/3.1/payload.d.ts +12 -2
  59. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -1
  60. package/dist/vta/did-templates/create/3.1/payload.js +1 -1
  61. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -1
  62. package/dist/vta/did-templates/create/3.2/payload.d.ts +1310 -0
  63. package/dist/vta/did-templates/create/3.2/payload.d.ts.map +1 -0
  64. package/dist/vta/did-templates/create/3.2/payload.js +832 -0
  65. package/dist/vta/did-templates/create/3.2/payload.js.map +1 -0
  66. package/dist/vta/did-templates/get/2.0/payload.d.ts +3 -3
  67. package/dist/vta/did-templates/get/2.0/payload.js +1 -1
  68. package/dist/vta/did-templates/get/3.0/payload.d.ts +3 -3
  69. package/dist/vta/did-templates/get/3.0/payload.js +1 -1
  70. package/dist/vta/did-templates/get/3.1/payload.d.ts +12 -2
  71. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -1
  72. package/dist/vta/did-templates/get/3.1/payload.js +1 -1
  73. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -1
  74. package/dist/vta/did-templates/get/3.2/payload.d.ts +928 -0
  75. package/dist/vta/did-templates/get/3.2/payload.d.ts.map +1 -0
  76. package/dist/vta/did-templates/get/3.2/payload.js +593 -0
  77. package/dist/vta/did-templates/get/3.2/payload.js.map +1 -0
  78. package/dist/vta/did-templates/list/2.0/payload.d.ts +4 -4
  79. package/dist/vta/did-templates/list/2.0/payload.js +1 -1
  80. package/dist/vta/did-templates/list/3.0/payload.d.ts +4 -4
  81. package/dist/vta/did-templates/list/3.0/payload.js +1 -1
  82. package/dist/vta/did-templates/list/3.1/payload.d.ts +14 -2
  83. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -1
  84. package/dist/vta/did-templates/list/3.1/payload.js +1 -1
  85. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -1
  86. package/dist/vta/did-templates/list/3.2/payload.d.ts +985 -0
  87. package/dist/vta/did-templates/list/3.2/payload.d.ts.map +1 -0
  88. package/dist/vta/did-templates/list/3.2/payload.js +619 -0
  89. package/dist/vta/did-templates/list/3.2/payload.js.map +1 -0
  90. package/dist/vta/did-templates/update/2.0/payload.d.ts +3 -3
  91. package/dist/vta/did-templates/update/2.0/payload.js +1 -1
  92. package/dist/vta/did-templates/update/3.0/payload.d.ts +3 -3
  93. package/dist/vta/did-templates/update/3.0/payload.js +1 -1
  94. package/dist/vta/did-templates/update/3.1/payload.d.ts +12 -2
  95. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -1
  96. package/dist/vta/did-templates/update/3.1/payload.js +1 -1
  97. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -1
  98. package/dist/vta/did-templates/update/3.2/payload.d.ts +1324 -0
  99. package/dist/vta/did-templates/update/3.2/payload.d.ts.map +1 -0
  100. package/dist/vta/did-templates/update/3.2/payload.js +838 -0
  101. package/dist/vta/did-templates/update/3.2/payload.js.map +1 -0
  102. package/dist/vta/dids/_shared/0.1/key-roles.d.ts +16 -0
  103. package/dist/vta/dids/_shared/0.1/key-roles.d.ts.map +1 -0
  104. package/dist/vta/dids/_shared/0.1/key-roles.js +6 -0
  105. package/dist/vta/dids/_shared/0.1/key-roles.js.map +1 -0
  106. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts +11 -0
  107. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts.map +1 -0
  108. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js +6 -0
  109. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js.map +1 -0
  110. package/dist/vta/dids/create/1.0/payload.d.ts +2613 -0
  111. package/dist/vta/dids/create/1.0/payload.d.ts.map +1 -0
  112. package/dist/vta/dids/create/1.0/payload.js +1554 -0
  113. package/dist/vta/dids/create/1.0/payload.js.map +1 -0
  114. package/dist/vta/dids/keys/add/1.0/payload.d.ts +2447 -0
  115. package/dist/vta/dids/keys/add/1.0/payload.d.ts.map +1 -0
  116. package/dist/vta/dids/keys/add/1.0/payload.js +1469 -0
  117. package/dist/vta/dids/keys/add/1.0/payload.js.map +1 -0
  118. package/dist/vta/dids/keys/list/1.0/payload.d.ts +1855 -0
  119. package/dist/vta/dids/keys/list/1.0/payload.d.ts.map +1 -0
  120. package/dist/vta/dids/keys/list/1.0/payload.js +1116 -0
  121. package/dist/vta/dids/keys/list/1.0/payload.js.map +1 -0
  122. package/dist/vta/dids/keys/retire/1.0/payload.d.ts +2449 -0
  123. package/dist/vta/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  124. package/dist/vta/dids/keys/retire/1.0/payload.js +1469 -0
  125. package/dist/vta/dids/keys/retire/1.0/payload.js.map +1 -0
  126. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts +2701 -0
  127. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  128. package/dist/vta/dids/keys/revoke/1.0/payload.js +1597 -0
  129. package/dist/vta/dids/keys/revoke/1.0/payload.js.map +1 -0
  130. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts +2628 -0
  131. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts.map +1 -0
  132. package/dist/vta/dids/keys/rotate/1.0/payload.js +1555 -0
  133. package/dist/vta/dids/keys/rotate/1.0/payload.js.map +1 -0
  134. package/dist/vta/dids/recover/1.0/payload.d.ts +2702 -0
  135. package/dist/vta/dids/recover/1.0/payload.d.ts.map +1 -0
  136. package/dist/vta/dids/recover/1.0/payload.js +1597 -0
  137. package/dist/vta/dids/recover/1.0/payload.js.map +1 -0
  138. package/dist/vta/dids/update/1.0/payload.d.ts +1422 -0
  139. package/dist/vta/dids/update/1.0/payload.d.ts.map +1 -0
  140. package/dist/vta/dids/update/1.0/payload.js +861 -0
  141. package/dist/vta/dids/update/1.0/payload.js.map +1 -0
  142. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +14 -2
  143. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -1
  144. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1 -1
  145. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -1
  146. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +14 -2
  147. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -1
  148. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +1 -1
  149. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -1
  150. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +14 -2
  151. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -1
  152. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1 -1
  153. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -1
  154. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +14 -2
  155. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -1
  156. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1 -1
  157. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -1
  158. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +2 -14
  159. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -1
  160. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +1 -1
  161. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -1
  162. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +14 -2
  163. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -1
  164. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1 -1
  165. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -1
  166. package/dist/vta/webvh/dids/update/1.0/payload.d.ts +4 -4
  167. package/dist/vta/webvh/dids/update/1.0/payload.js +1 -1
  168. package/dist/vta/webvh/dids/update/1.1/payload.d.ts +511 -0
  169. package/dist/vta/webvh/dids/update/1.1/payload.d.ts.map +1 -0
  170. package/dist/vta/webvh/dids/update/1.1/payload.js +251 -0
  171. package/dist/vta/webvh/dids/update/1.1/payload.js.map +1 -0
  172. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +4 -4
  173. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -1
  174. package/dist/vta/webvh/dids/update/2.0/payload.js +1 -1
  175. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -1
  176. package/dist/vta/webvh/dids/update/2.1/payload.d.ts +14 -2
  177. package/dist/vta/webvh/dids/update/2.1/payload.d.ts.map +1 -1
  178. package/dist/vta/webvh/dids/update/2.1/payload.js +1 -1
  179. package/dist/vta/webvh/dids/update/2.1/payload.js.map +1 -1
  180. package/dist/vtc/_shared/0.2/invite.d.ts +16 -0
  181. package/dist/vtc/_shared/0.2/invite.d.ts.map +1 -0
  182. package/dist/vtc/_shared/0.2/invite.js +6 -0
  183. package/dist/vtc/_shared/0.2/invite.js.map +1 -0
  184. package/dist/vtc/admin/invites/create/0.1/payload.d.ts +12 -2
  185. package/dist/vtc/admin/invites/create/0.1/payload.d.ts.map +1 -1
  186. package/dist/vtc/admin/invites/create/0.1/payload.js +1 -1
  187. package/dist/vtc/admin/invites/create/0.1/payload.js.map +1 -1
  188. package/dist/vtc/admin/invites/create/0.2/payload.d.ts +404 -0
  189. package/dist/vtc/admin/invites/create/0.2/payload.d.ts.map +1 -0
  190. package/dist/vtc/admin/invites/create/0.2/payload.js +230 -0
  191. package/dist/vtc/admin/invites/create/0.2/payload.js.map +1 -0
  192. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +12 -2
  193. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  194. package/dist/vtc/admin/invites/list/0.1/payload.js +1 -1
  195. package/dist/vtc/admin/invites/list/0.1/payload.js.map +1 -1
  196. package/dist/vtc/admin/invites/list/0.2/payload.d.ts +431 -0
  197. package/dist/vtc/admin/invites/list/0.2/payload.d.ts.map +1 -0
  198. package/dist/vtc/admin/invites/list/0.2/payload.js +264 -0
  199. package/dist/vtc/admin/invites/list/0.2/payload.js.map +1 -0
  200. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +3 -3
  201. package/dist/vtc/credentials/reissue/0.1/payload.js +1 -1
  202. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -1
  203. package/package.json +1 -1
  204. package/src/_extends.ts +7 -0
  205. package/src/_shared/components.ts +556 -3
  206. package/src/index.ts +66 -0
  207. package/src/peer-check/ask/0.1/payload.ts +301 -0
  208. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  209. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  210. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  211. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  212. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  213. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  214. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  215. package/src/rooms/keys/act/0.8/payload.ts +15 -3
  216. package/src/rooms/keys/act/0.9/payload.ts +396 -0
  217. package/src/rooms/records/put/0.1/payload.ts +5 -5
  218. package/src/rooms/records/put/0.2/payload.ts +5 -5
  219. package/src/rooms/records/put/0.3/payload.ts +15 -3
  220. package/src/rooms/records/put/0.4/payload.ts +905 -0
  221. package/src/vta/_shared/0.3/did-key-roles.ts +1 -1
  222. package/src/vta/_shared/0.9/did-template.ts +17 -0
  223. package/src/vta/did-templates/create/2.0/payload.ts +4 -4
  224. package/src/vta/did-templates/create/3.0/payload.ts +4 -4
  225. package/src/vta/did-templates/create/3.1/payload.ts +13 -3
  226. package/src/vta/did-templates/create/3.2/payload.ts +869 -0
  227. package/src/vta/did-templates/get/2.0/payload.ts +4 -4
  228. package/src/vta/did-templates/get/3.0/payload.ts +4 -4
  229. package/src/vta/did-templates/get/3.1/payload.ts +13 -3
  230. package/src/vta/did-templates/get/3.2/payload.ts +630 -0
  231. package/src/vta/did-templates/list/2.0/payload.ts +5 -5
  232. package/src/vta/did-templates/list/3.0/payload.ts +5 -5
  233. package/src/vta/did-templates/list/3.1/payload.ts +15 -3
  234. package/src/vta/did-templates/list/3.2/payload.ts +665 -0
  235. package/src/vta/did-templates/update/2.0/payload.ts +4 -4
  236. package/src/vta/did-templates/update/3.0/payload.ts +4 -4
  237. package/src/vta/did-templates/update/3.1/payload.ts +13 -3
  238. package/src/vta/did-templates/update/3.2/payload.ts +879 -0
  239. package/src/vta/dids/_shared/0.1/key-roles.ts +17 -0
  240. package/src/vta/dids/_shared/0.1/method-profiles/webvh-parameters.ts +11 -0
  241. package/src/vta/dids/create/1.0/payload.ts +1648 -0
  242. package/src/vta/dids/keys/add/1.0/payload.ts +1553 -0
  243. package/src/vta/dids/keys/list/1.0/payload.ts +1178 -0
  244. package/src/vta/dids/keys/retire/1.0/payload.ts +1553 -0
  245. package/src/vta/dids/keys/revoke/1.0/payload.ts +1697 -0
  246. package/src/vta/dids/keys/rotate/1.0/payload.ts +1658 -0
  247. package/src/vta/dids/recover/1.0/payload.ts +1700 -0
  248. package/src/vta/dids/update/1.0/payload.ts +940 -0
  249. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +15 -3
  250. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +15 -3
  251. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +15 -3
  252. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +15 -3
  253. package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +3 -15
  254. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +15 -3
  255. package/src/vta/webvh/dids/update/1.0/payload.ts +5 -5
  256. package/src/vta/webvh/dids/update/1.1/payload.ts +351 -0
  257. package/src/vta/webvh/dids/update/2.0/payload.ts +5 -5
  258. package/src/vta/webvh/dids/update/2.1/payload.ts +15 -3
  259. package/src/vtc/_shared/0.2/invite.ts +17 -0
  260. package/src/vtc/admin/invites/create/0.1/payload.ts +13 -3
  261. package/src/vtc/admin/invites/create/0.2/payload.ts +289 -0
  262. package/src/vtc/admin/invites/list/0.1/payload.ts +13 -3
  263. package/src/vtc/admin/invites/list/0.2/payload.ts +294 -0
  264. package/src/vtc/credentials/reissue/0.1/payload.ts +2 -2
@@ -8,6 +8,8 @@ import type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship
8
8
 
9
9
  /**
10
10
  * Add a newly generated key to one role of a did:webvh, without removing any — a post-quantum key beside a classical one, or a second operational key.
11
+ *
12
+ * @deprecated retired; use vta/dids/keys/add/1.0
11
13
  */
12
14
  export interface VTAWebVHDIDsKeysAddPayload {
13
15
  /**
@@ -46,6 +48,8 @@ export interface VTAWebVHDIDsKeysAddPayload {
46
48
  }
47
49
  /**
48
50
  * Success response. Type https://trusttasks.org/spec/vta/webvh/dids/keys/add/1.0#response. A refusal is a `trust-task-error` document, never this.
51
+ *
52
+ * @deprecated retired; use vta/dids/keys/add/1.0
49
53
  */
50
54
  export interface VTAWebVHDIDsKeysAddResponsePayload {
51
55
  did: string;
@@ -98,15 +102,23 @@ export const EXTENDS: string | null = null;
98
102
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
99
103
  * Versions").
100
104
  */
101
- export const DEPRECATION: string | null = null;
105
+ export const DEPRECATION: string | null = "retired; use vta/dids/keys/add/1.0";
102
106
 
103
- /** Stable alias for this specification's request payload shape. */
107
+ /**
108
+ * Stable alias for this specification's request payload shape.
109
+ *
110
+ * @deprecated retired; use vta/dids/keys/add/1.0
111
+ */
104
112
  export type Payload = VTAWebVHDIDsKeysAddPayload;
105
113
 
106
114
  /** Trust Task response type URI (request type URI + "#response"). */
107
115
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/keys/add/1.0#response" as const;
108
116
 
109
- /** Stable alias for this specification's success-response payload shape. */
117
+ /**
118
+ * Stable alias for this specification's success-response payload shape.
119
+ *
120
+ * @deprecated retired; use vta/dids/keys/add/1.0
121
+ */
110
122
  export type Response = VTAWebVHDIDsKeysAddResponsePayload;
111
123
 
112
124
  /**
@@ -8,6 +8,8 @@ import type { DidVerificationRelationship, Ext, KeyOrigin, KeyRole, KeyRoleAppro
8
8
 
9
9
  /**
10
10
  * List a did:webvh's keys by role, with their state, and optionally the DID's rotation history and any changes awaiting approval.
11
+ *
12
+ * @deprecated retired; use vta/dids/keys/list/1.0
11
13
  */
12
14
  export interface VTAWebVHDIDsKeysListPayload {
13
15
  /**
@@ -32,6 +34,8 @@ export interface VTAWebVHDIDsKeysListPayload {
32
34
  }
33
35
  /**
34
36
  * Success response to vta/webvh/dids/keys/list. Type https://trusttasks.org/spec/vta/webvh/dids/keys/list/1.0#response.
37
+ *
38
+ * @deprecated retired; use vta/dids/keys/list/1.0
35
39
  */
36
40
  export interface VTAWebVHDIDsKeysListResponsePayload {
37
41
  did: string;
@@ -71,15 +75,23 @@ export const EXTENDS: string | null = null;
71
75
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
72
76
  * Versions").
73
77
  */
74
- export const DEPRECATION: string | null = null;
78
+ export const DEPRECATION: string | null = "retired; use vta/dids/keys/list/1.0";
75
79
 
76
- /** Stable alias for this specification's request payload shape. */
80
+ /**
81
+ * Stable alias for this specification's request payload shape.
82
+ *
83
+ * @deprecated retired; use vta/dids/keys/list/1.0
84
+ */
77
85
  export type Payload = VTAWebVHDIDsKeysListPayload;
78
86
 
79
87
  /** Trust Task response type URI (request type URI + "#response"). */
80
88
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/keys/list/1.0#response" as const;
81
89
 
82
- /** Stable alias for this specification's success-response payload shape. */
90
+ /**
91
+ * Stable alias for this specification's success-response payload shape.
92
+ *
93
+ * @deprecated retired; use vta/dids/keys/list/1.0
94
+ */
83
95
  export type Response = VTAWebVHDIDsKeysListResponsePayload;
84
96
 
85
97
  /**
@@ -8,6 +8,8 @@ import type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship
8
8
 
9
9
  /**
10
10
  * Retire one key from a did:webvh by planned retirement: remove it from its role, its relationship, keyRoles and the document. Completes a rotation (retire the predecessor), aborts one (retire the successor), or removes an added key. What the key signed while published stays valid.
11
+ *
12
+ * @deprecated retired; use vta/dids/keys/retire/1.0
11
13
  */
12
14
  export interface VTAWebVHDIDsKeysRetirePayload {
13
15
  /**
@@ -46,6 +48,8 @@ export interface VTAWebVHDIDsKeysRetirePayload {
46
48
  }
47
49
  /**
48
50
  * Success response. Type https://trusttasks.org/spec/vta/webvh/dids/keys/retire/1.0#response. A refusal is a `trust-task-error` document, never this.
51
+ *
52
+ * @deprecated retired; use vta/dids/keys/retire/1.0
49
53
  */
50
54
  export interface VTAWebVHDIDsKeysRetireResponsePayload {
51
55
  did: string;
@@ -98,15 +102,23 @@ export const EXTENDS: string | null = null;
98
102
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
99
103
  * Versions").
100
104
  */
101
- export const DEPRECATION: string | null = null;
105
+ export const DEPRECATION: string | null = "retired; use vta/dids/keys/retire/1.0";
102
106
 
103
- /** Stable alias for this specification's request payload shape. */
107
+ /**
108
+ * Stable alias for this specification's request payload shape.
109
+ *
110
+ * @deprecated retired; use vta/dids/keys/retire/1.0
111
+ */
104
112
  export type Payload = VTAWebVHDIDsKeysRetirePayload;
105
113
 
106
114
  /** Trust Task response type URI (request type URI + "#response"). */
107
115
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/keys/retire/1.0#response" as const;
108
116
 
109
- /** Stable alias for this specification's success-response payload shape. */
117
+ /**
118
+ * Stable alias for this specification's success-response payload shape.
119
+ *
120
+ * @deprecated retired; use vta/dids/keys/retire/1.0
121
+ */
110
122
  export type Response = VTAWebVHDIDsKeysRetireResponsePayload;
111
123
 
112
124
  /**
@@ -8,6 +8,8 @@ import type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship
8
8
 
9
9
  /**
10
10
  * Revoke a did:webvh key for compromise: withdraw it from its role in one entry, without overlap, record the compromise time so verifiers judge its past signatures accordingly, and put a generated replacement in its place where the role would otherwise be empty.
11
+ *
12
+ * @deprecated retired; use vta/dids/keys/revoke/1.0
11
13
  */
12
14
  export interface VTAWebVHDIDsKeysRevokePayload {
13
15
  /**
@@ -52,6 +54,8 @@ export interface VTAWebVHDIDsKeysRevokePayload {
52
54
  }
53
55
  /**
54
56
  * Success response. Type https://trusttasks.org/spec/vta/webvh/dids/keys/revoke/1.0#response. A refusal is a `trust-task-error` document, never this.
57
+ *
58
+ * @deprecated retired; use vta/dids/keys/revoke/1.0
55
59
  */
56
60
  export interface VTAWebVHDIDsKeysRevokeResponsePayload {
57
61
  did: string;
@@ -117,15 +121,23 @@ export const EXTENDS: string | null = null;
117
121
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
118
122
  * Versions").
119
123
  */
120
- export const DEPRECATION: string | null = null;
124
+ export const DEPRECATION: string | null = "retired; use vta/dids/keys/revoke/1.0";
121
125
 
122
- /** Stable alias for this specification's request payload shape. */
126
+ /**
127
+ * Stable alias for this specification's request payload shape.
128
+ *
129
+ * @deprecated retired; use vta/dids/keys/revoke/1.0
130
+ */
123
131
  export type Payload = VTAWebVHDIDsKeysRevokePayload;
124
132
 
125
133
  /** Trust Task response type URI (request type URI + "#response"). */
126
134
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/keys/revoke/1.0#response" as const;
127
135
 
128
- /** Stable alias for this specification's success-response payload shape. */
136
+ /**
137
+ * Stable alias for this specification's success-response payload shape.
138
+ *
139
+ * @deprecated retired; use vta/dids/keys/revoke/1.0
140
+ */
129
141
  export type Response = VTAWebVHDIDsKeysRevokeResponsePayload;
130
142
 
131
143
  /**
@@ -8,8 +8,6 @@ import type { Ext } from "../../../../../_shared/components.js";
8
8
 
9
9
  /**
10
10
  * Rotate a did:webvh's signing keys by appending a log entry that moves to the pre-committed successor.
11
- *
12
- * @deprecated superseded by vta/webvh/dids/rotate-keys/2.0
13
11
  */
14
12
  export interface VTAWebVHDIDsRotateKeysPayload {
15
13
  did: string;
@@ -22,8 +20,6 @@ export interface VTAWebVHDIDsRotateKeysPayload {
22
20
  }
23
21
  /**
24
22
  * Success response to vta/webvh/dids/rotate-keys. Type https://trusttasks.org/spec/vta/webvh/dids/rotate-keys/1.0#response.
25
- *
26
- * @deprecated superseded by vta/webvh/dids/rotate-keys/2.0
27
23
  */
28
24
  export interface VTAWebVHDIDsRotateKeysResponsePayload {
29
25
  did: string;
@@ -68,23 +64,15 @@ export const EXTENDS: string | null = null;
68
64
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
69
65
  * Versions").
70
66
  */
71
- export const DEPRECATION: string | null = "superseded by vta/webvh/dids/rotate-keys/2.0";
67
+ export const DEPRECATION: string | null = null;
72
68
 
73
- /**
74
- * Stable alias for this specification's request payload shape.
75
- *
76
- * @deprecated superseded by vta/webvh/dids/rotate-keys/2.0
77
- */
69
+ /** Stable alias for this specification's request payload shape. */
78
70
  export type Payload = VTAWebVHDIDsRotateKeysPayload;
79
71
 
80
72
  /** Trust Task response type URI (request type URI + "#response"). */
81
73
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/rotate-keys/1.0#response" as const;
82
74
 
83
- /**
84
- * Stable alias for this specification's success-response payload shape.
85
- *
86
- * @deprecated superseded by vta/webvh/dids/rotate-keys/2.0
87
- */
75
+ /** Stable alias for this specification's success-response payload shape. */
88
76
  export type Response = VTAWebVHDIDsRotateKeysResponsePayload;
89
77
 
90
78
  /**
@@ -8,6 +8,8 @@ import type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship
8
8
 
9
9
  /**
10
10
  * Rotate one key role of a did:webvh: stage a successor, activate it no sooner than every cached copy of the document can have seen it, and retire the predecessor at the end of an overlap. For the update role, move the log's update key to its committed successor.
11
+ *
12
+ * @deprecated retired; use vta/dids/keys/rotate/1.0
11
13
  */
12
14
  export interface VTAWebVHDIDsRotateKeysPayload {
13
15
  /**
@@ -68,6 +70,8 @@ export interface VTAWebVHDIDsRotateKeysPayload {
68
70
  }
69
71
  /**
70
72
  * Success response. Type https://trusttasks.org/spec/vta/webvh/dids/rotate-keys/2.0#response. A refusal is a `trust-task-error` document, never this.
73
+ *
74
+ * @deprecated retired; use vta/dids/keys/rotate/1.0
71
75
  */
72
76
  export interface VTAWebVHDIDsRotateKeysResponsePayload {
73
77
  did: string;
@@ -120,15 +124,23 @@ export const EXTENDS: string | null = null;
120
124
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
121
125
  * Versions").
122
126
  */
123
- export const DEPRECATION: string | null = null;
127
+ export const DEPRECATION: string | null = "retired; use vta/dids/keys/rotate/1.0";
124
128
 
125
- /** Stable alias for this specification's request payload shape. */
129
+ /**
130
+ * Stable alias for this specification's request payload shape.
131
+ *
132
+ * @deprecated retired; use vta/dids/keys/rotate/1.0
133
+ */
126
134
  export type Payload = VTAWebVHDIDsRotateKeysPayload;
127
135
 
128
136
  /** Trust Task response type URI (request type URI + "#response"). */
129
137
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/rotate-keys/2.0#response" as const;
130
138
 
131
- /** Stable alias for this specification's success-response payload shape. */
139
+ /**
140
+ * Stable alias for this specification's success-response payload shape.
141
+ *
142
+ * @deprecated retired; use vta/dids/keys/rotate/1.0
143
+ */
132
144
  export type Response = VTAWebVHDIDsRotateKeysResponsePayload;
133
145
 
134
146
  /**
@@ -9,7 +9,7 @@ import type { Ext } from "../../../../../_shared/components.js";
9
9
  /**
10
10
  * Ask a Verifiable Trust Agent to publish a new entry in a did:webvh log it holds the update key for. The agent decides whether to do so; the caller proposes.
11
11
  *
12
- * @deprecated superseded by vta/webvh/dids/update/2.1
12
+ * @deprecated superseded by vta/webvh/dids/update/1.1
13
13
  */
14
14
  export interface WebVHDIDUpdatePayload {
15
15
  /**
@@ -51,7 +51,7 @@ export interface WebVHDIDUpdatePayload {
51
51
  /**
52
52
  * The published entry. camelCase per the framework convention — note the counts are the state AFTER the update, including the rotation the caller did not ask for.
53
53
  *
54
- * @deprecated superseded by vta/webvh/dids/update/2.1
54
+ * @deprecated superseded by vta/webvh/dids/update/1.1
55
55
  */
56
56
  export interface WebVHDIDUpdateResponsePayload {
57
57
  did: string;
@@ -99,12 +99,12 @@ export const EXTENDS: string | null = null;
99
99
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
100
100
  * Versions").
101
101
  */
102
- export const DEPRECATION: string | null = "superseded by vta/webvh/dids/update/2.1";
102
+ export const DEPRECATION: string | null = "superseded by vta/webvh/dids/update/1.1";
103
103
 
104
104
  /**
105
105
  * Stable alias for this specification's request payload shape.
106
106
  *
107
- * @deprecated superseded by vta/webvh/dids/update/2.1
107
+ * @deprecated superseded by vta/webvh/dids/update/1.1
108
108
  */
109
109
  export type Payload = WebVHDIDUpdatePayload;
110
110
 
@@ -114,7 +114,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/upd
114
114
  /**
115
115
  * Stable alias for this specification's success-response payload shape.
116
116
  *
117
- * @deprecated superseded by vta/webvh/dids/update/2.1
117
+ * @deprecated superseded by vta/webvh/dids/update/1.1
118
118
  */
119
119
  export type Response = WebVHDIDUpdateResponsePayload;
120
120
 
@@ -0,0 +1,351 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/webvh/dids/update/1.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Ask a Verifiable Trust Agent to publish a new entry in a did:webvh log it holds the update key for. The agent decides whether to do so; the caller proposes.
11
+ */
12
+ export interface WebVHDIDUpdatePayload {
13
+ /**
14
+ * The did:webvh being updated. The agent MUST verify it speaks for this subject.
15
+ */
16
+ did: string;
17
+ /**
18
+ * The new DID document. Omit to leave it unchanged. Supplying this ROTATES the DID's update key and refreshes its pre-rotation commitments, as a parallel consequence of the change — a consequence not visible anywhere in this payload, because it lives in the executing handler's semantics. A consent surface MUST therefore render effects the executor computed, and MUST NOT derive them from this document.
19
+ */
20
+ document?: {};
21
+ /**
22
+ * Number of pre-rotation commitments to publish. Omit to keep the current count; `0` disables pre-rotation going forward.
23
+ */
24
+ preRotationCount?: number;
25
+ /**
26
+ * New witness configuration. Omit to keep the current one.
27
+ */
28
+ witnesses?: {
29
+ [k: string]: unknown | undefined;
30
+ };
31
+ /**
32
+ * New watcher URLs. Omit to keep the current set; an empty array removes them.
33
+ */
34
+ watchers?: string[];
35
+ /**
36
+ * New TTL in seconds. Omit to keep the current value.
37
+ */
38
+ ttl?: number;
39
+ /**
40
+ * Operator-facing audit label.
41
+ */
42
+ label?: string;
43
+ /**
44
+ * Optimistic-concurrency precondition: the versionId the caller based this edit on. The agent MUST refuse the update if the DID's latest entry no longer matches. Without it a `get -> edit -> save` cycle silently overwrites a concurrent edit with a chain that is structurally valid, verifies perfectly, and is based on a stale read. Where a human approves the update the window is minutes wide, so this is a routine race rather than an exotic one. OPTIONAL because a scripted caller with no concurrent writers has nothing to protect against; not optional for anything a person looked at.
45
+ */
46
+ expectedVersionId?: string;
47
+ /**
48
+ * Whether the published document lists this log's `did:scid:vh:1:<scid>?src=<source>` DID URL in `alsoKnownAs`, linking the did:webvh and did:scid forms as one subject (VTI-KEY-164). `true` adds it, for the log's current location, after the entries the document already has; `false` removes every did:scid entry naming this log's SCID. Applied to `document` when one is supplied, otherwise to the current document. Omit to leave `alsoKnownAs` as `document` (or the current document) has it. The agent derives the DID URL itself — the caller never writes it. Changing it publishes an entry, and so ROTATES the update key exactly as supplying `document` does.
49
+ */
50
+ scidAlsoKnownAs?: boolean;
51
+ ext?: Ext;
52
+ }
53
+ /**
54
+ * The published entry. camelCase per the framework convention — note the counts are the state AFTER the update, including the rotation the caller did not ask for.
55
+ */
56
+ export interface WebVHDIDUpdateResponsePayload {
57
+ did: string;
58
+ /**
59
+ * versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`.
60
+ */
61
+ newVersionId: string;
62
+ newScid?: string;
63
+ /**
64
+ * The appended log entry, as JSON text.
65
+ */
66
+ newLogEntry?: string;
67
+ /**
68
+ * Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything.
69
+ */
70
+ updateKeysCount?: number;
71
+ /**
72
+ * Pre-rotation commitments published by this entry.
73
+ */
74
+ preRotationKeyCount?: number;
75
+ /**
76
+ * True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`.
77
+ */
78
+ serverless?: boolean;
79
+ /**
80
+ * Whether the published document lists `scidDidUrl` in `alsoKnownAs`. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0.
81
+ */
82
+ scidAlsoKnownAs?: boolean;
83
+ /**
84
+ * The `did:scid:vh:1:<scid>?src=<source>` DID URL of the log at its current location — the did:scid DID with the locator a recipient needs to resolve it. Reported whether or not it is listed. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0.
85
+ */
86
+ scidDidUrl?: string;
87
+ ext?: Ext;
88
+ }
89
+
90
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
91
+ export type { Ext };
92
+
93
+ /** Trust Task type URI. */
94
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/update/1.1" as const;
95
+
96
+ /**
97
+ * The earlier version of this specification that this one declares it
98
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
99
+ * `null`. Only the direct declaration — follow the chain with
100
+ * `extendsChain` / `readForSpec`.
101
+ */
102
+ export const EXTENDS: string | null = "1.0";
103
+
104
+ /**
105
+ * Why this version is deprecated, or `null` while it is current. A
106
+ * superseded or retired version is still supported, and is withdrawn from
107
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
108
+ * Versions").
109
+ */
110
+ export const DEPRECATION: string | null = null;
111
+
112
+ /** Stable alias for this specification's request payload shape. */
113
+ export type Payload = WebVHDIDUpdatePayload;
114
+
115
+ /** Trust Task response type URI (request type URI + "#response"). */
116
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/update/1.1#response" as const;
117
+
118
+ /** Stable alias for this specification's success-response payload shape. */
119
+ export type Response = WebVHDIDUpdateResponsePayload;
120
+
121
+ /**
122
+ * This specification's payload schema, as a value.
123
+ *
124
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
125
+ * rather than only as a `.json` file because TypeScript types are erased
126
+ * at runtime: without a schema a consumer has nothing to validate, and
127
+ * every REQUIRED payload member is optional in practice. Cross-file
128
+ * `$ref`s are already inlined, so it needs no resolver.
129
+ */
130
+ export const PAYLOAD_SCHEMA = {
131
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
132
+ "$id": "https://trusttasks.org/spec/vta/webvh/dids/update/1.1",
133
+ "title": "WebVH DID Update — payload",
134
+ "description": "Ask a Verifiable Trust Agent to publish a new entry in a did:webvh log it holds the update key for. The agent decides whether to do so; the caller proposes.",
135
+ "type": "object",
136
+ "additionalProperties": false,
137
+ "required": [
138
+ "did"
139
+ ],
140
+ "properties": {
141
+ "did": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "description": "The did:webvh being updated. The agent MUST verify it speaks for this subject."
145
+ },
146
+ "document": {
147
+ "type": "object",
148
+ "description": "The new DID document. Omit to leave it unchanged. Supplying this ROTATES the DID's update key and refreshes its pre-rotation commitments, as a parallel consequence of the change — a consequence not visible anywhere in this payload, because it lives in the executing handler's semantics. A consent surface MUST therefore render effects the executor computed, and MUST NOT derive them from this document."
149
+ },
150
+ "preRotationCount": {
151
+ "type": "integer",
152
+ "minimum": 0,
153
+ "description": "Number of pre-rotation commitments to publish. Omit to keep the current count; `0` disables pre-rotation going forward."
154
+ },
155
+ "witnesses": {
156
+ "description": "New witness configuration. Omit to keep the current one."
157
+ },
158
+ "watchers": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ },
163
+ "description": "New watcher URLs. Omit to keep the current set; an empty array removes them."
164
+ },
165
+ "ttl": {
166
+ "type": "integer",
167
+ "minimum": 0,
168
+ "description": "New TTL in seconds. Omit to keep the current value."
169
+ },
170
+ "label": {
171
+ "type": "string",
172
+ "maxLength": 256,
173
+ "description": "Operator-facing audit label."
174
+ },
175
+ "expectedVersionId": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "description": "Optimistic-concurrency precondition: the versionId the caller based this edit on. The agent MUST refuse the update if the DID's latest entry no longer matches. Without it a `get -> edit -> save` cycle silently overwrites a concurrent edit with a chain that is structurally valid, verifies perfectly, and is based on a stale read. Where a human approves the update the window is minutes wide, so this is a routine race rather than an exotic one. OPTIONAL because a scripted caller with no concurrent writers has nothing to protect against; not optional for anything a person looked at."
179
+ },
180
+ "scidAlsoKnownAs": {
181
+ "type": "boolean",
182
+ "description": "Whether the published document lists this log's `did:scid:vh:1:<scid>?src=<source>` DID URL in `alsoKnownAs`, linking the did:webvh and did:scid forms as one subject (VTI-KEY-164). `true` adds it, for the log's current location, after the entries the document already has; `false` removes every did:scid entry naming this log's SCID. Applied to `document` when one is supplied, otherwise to the current document. Omit to leave `alsoKnownAs` as `document` (or the current document) has it. The agent derives the DID URL itself — the caller never writes it. Changing it publishes an entry, and so ROTATES the update key exactly as supplying `document` does."
183
+ },
184
+ "ext": {
185
+ "$ref": "#/$defs/Ext"
186
+ }
187
+ },
188
+ "$defs": {
189
+ "Response": {
190
+ "$anchor": "response",
191
+ "title": "WebVH DID Update — response payload",
192
+ "description": "The published entry. camelCase per the framework convention — note the counts are the state AFTER the update, including the rotation the caller did not ask for.",
193
+ "type": "object",
194
+ "additionalProperties": false,
195
+ "required": [
196
+ "did",
197
+ "newVersionId"
198
+ ],
199
+ "properties": {
200
+ "did": {
201
+ "type": "string"
202
+ },
203
+ "newVersionId": {
204
+ "type": "string",
205
+ "description": "versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`."
206
+ },
207
+ "newScid": {
208
+ "type": "string"
209
+ },
210
+ "newLogEntry": {
211
+ "type": "string",
212
+ "description": "The appended log entry, as JSON text."
213
+ },
214
+ "updateKeysCount": {
215
+ "type": "integer",
216
+ "minimum": 0,
217
+ "description": "Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything."
218
+ },
219
+ "preRotationKeyCount": {
220
+ "type": "integer",
221
+ "minimum": 0,
222
+ "description": "Pre-rotation commitments published by this entry."
223
+ },
224
+ "serverless": {
225
+ "type": "boolean",
226
+ "description": "True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`."
227
+ },
228
+ "scidAlsoKnownAs": {
229
+ "type": "boolean",
230
+ "description": "Whether the published document lists `scidDidUrl` in `alsoKnownAs`. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0."
231
+ },
232
+ "scidDidUrl": {
233
+ "type": "string",
234
+ "description": "The `did:scid:vh:1:<scid>?src=<source>` DID URL of the log at its current location — the did:scid DID with the locator a recipient needs to resolve it. Reported whether or not it is listed. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0."
235
+ },
236
+ "ext": {
237
+ "$ref": "#/$defs/Ext"
238
+ }
239
+ }
240
+ },
241
+ "Ext": {
242
+ "title": "Ext",
243
+ "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.",
244
+ "type": "object",
245
+ "minProperties": 1,
246
+ "additionalProperties": true,
247
+ "propertyNames": {
248
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
249
+ }
250
+ }
251
+ }
252
+ } as const;
253
+
254
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
255
+ export const RESPONSE_PAYLOAD_SCHEMA = {
256
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
257
+ "$ref": "#/$defs/Response",
258
+ "$defs": {
259
+ "Response": {
260
+ "$anchor": "response",
261
+ "title": "WebVH DID Update — response payload",
262
+ "description": "The published entry. camelCase per the framework convention — note the counts are the state AFTER the update, including the rotation the caller did not ask for.",
263
+ "type": "object",
264
+ "additionalProperties": false,
265
+ "required": [
266
+ "did",
267
+ "newVersionId"
268
+ ],
269
+ "properties": {
270
+ "did": {
271
+ "type": "string"
272
+ },
273
+ "newVersionId": {
274
+ "type": "string",
275
+ "description": "versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`."
276
+ },
277
+ "newScid": {
278
+ "type": "string"
279
+ },
280
+ "newLogEntry": {
281
+ "type": "string",
282
+ "description": "The appended log entry, as JSON text."
283
+ },
284
+ "updateKeysCount": {
285
+ "type": "integer",
286
+ "minimum": 0,
287
+ "description": "Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything."
288
+ },
289
+ "preRotationKeyCount": {
290
+ "type": "integer",
291
+ "minimum": 0,
292
+ "description": "Pre-rotation commitments published by this entry."
293
+ },
294
+ "serverless": {
295
+ "type": "boolean",
296
+ "description": "True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`."
297
+ },
298
+ "scidAlsoKnownAs": {
299
+ "type": "boolean",
300
+ "description": "Whether the published document lists `scidDidUrl` in `alsoKnownAs`. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0."
301
+ },
302
+ "scidDidUrl": {
303
+ "type": "string",
304
+ "description": "The `did:scid:vh:1:<scid>?src=<source>` DID URL of the log at its current location — the did:scid DID with the locator a recipient needs to resolve it. Reported whether or not it is listed. A 1.1 consumer MUST report it; it is optional in the schema only because 1.1 extends 1.0."
305
+ },
306
+ "ext": {
307
+ "$ref": "#/$defs/Ext"
308
+ }
309
+ }
310
+ },
311
+ "Ext": {
312
+ "title": "Ext",
313
+ "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.",
314
+ "type": "object",
315
+ "minProperties": 1,
316
+ "additionalProperties": true,
317
+ "propertyNames": {
318
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
319
+ }
320
+ }
321
+ }
322
+ } as const;
323
+
324
+ /**
325
+ * SPEC.md §7.2 policy for the request variant, from this specification's
326
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
327
+ * per-specification and cannot be derived from the document alone, and
328
+ * item 2 needs the schema this carries.
329
+ */
330
+ export const SPEC = {
331
+ typeUri: TYPE_URI,
332
+ isBearer: false,
333
+ isProofRequired: true,
334
+ isRecipientRequired: true,
335
+ isIssuedAtRequired: true,
336
+ payloadSchema: PAYLOAD_SCHEMA,
337
+ } as const;
338
+
339
+ /**
340
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
341
+ * tracks the *issuer* party's requirement because a response swaps the
342
+ * parties (§7.3 item 5).
343
+ */
344
+ export const RESPONSE_SPEC = {
345
+ typeUri: RESPONSE_TYPE_URI,
346
+ isBearer: false,
347
+ isProofRequired: true,
348
+ isRecipientRequired: true,
349
+ isIssuedAtRequired: true,
350
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
351
+ } as const;