@openvtc/trust-tasks 0.28.13 → 0.28.15

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 (319) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +5 -0
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +344 -1
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/did-management/stats/set-resolution/0.1/payload.d.ts +398 -0
  8. package/dist/did-management/stats/set-resolution/0.1/payload.d.ts.map +1 -0
  9. package/dist/did-management/stats/set-resolution/0.1/payload.js +247 -0
  10. package/dist/did-management/stats/set-resolution/0.1/payload.js.map +1 -0
  11. package/dist/index.d.ts +76 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +76 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/process-attestation/0.1/payload.d.ts +73 -7
  16. package/dist/process-attestation/0.1/payload.d.ts.map +1 -1
  17. package/dist/process-attestation/0.1/payload.js +40 -6
  18. package/dist/process-attestation/0.1/payload.js.map +1 -1
  19. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  20. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  21. package/dist/rooms/_shared/0.2/room.d.ts +1 -1
  22. package/dist/rooms/_shared/0.2/room.d.ts.map +1 -1
  23. package/dist/rooms/_shared/0.3/member-profile.d.ts +11 -0
  24. package/dist/rooms/_shared/0.3/member-profile.d.ts.map +1 -0
  25. package/dist/rooms/_shared/0.3/member-profile.js +6 -0
  26. package/dist/rooms/_shared/0.3/member-profile.js.map +1 -0
  27. package/dist/rooms/changed/0.1/payload.d.ts +139 -0
  28. package/dist/rooms/changed/0.1/payload.d.ts.map +1 -0
  29. package/dist/rooms/changed/0.1/payload.js +84 -0
  30. package/dist/rooms/changed/0.1/payload.js.map +1 -0
  31. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  32. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  33. package/dist/rooms/keys/act/0.10/payload.d.ts +14 -2
  34. package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -1
  35. package/dist/rooms/keys/act/0.10/payload.js +1 -1
  36. package/dist/rooms/keys/act/0.10/payload.js.map +1 -1
  37. package/dist/rooms/keys/act/0.11/payload.d.ts +572 -0
  38. package/dist/rooms/keys/act/0.11/payload.d.ts.map +1 -0
  39. package/dist/rooms/keys/act/0.11/payload.js +319 -0
  40. package/dist/rooms/keys/act/0.11/payload.js.map +1 -0
  41. package/dist/rooms/keys/act/0.12/payload.d.ts +560 -0
  42. package/dist/rooms/keys/act/0.12/payload.d.ts.map +1 -0
  43. package/dist/rooms/keys/act/0.12/payload.js +319 -0
  44. package/dist/rooms/keys/act/0.12/payload.js.map +1 -0
  45. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  46. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  47. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  48. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  49. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  50. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  51. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  52. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  53. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  54. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  55. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  56. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  57. package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
  58. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  59. package/dist/rooms/keys/act/0.9/payload.d.ts +4 -4
  60. package/dist/rooms/keys/act/0.9/payload.js +1 -1
  61. package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
  62. package/dist/rooms/keys/browse/0.1/payload.js +1 -1
  63. package/dist/rooms/keys/browse/0.2/payload.d.ts +4 -4
  64. package/dist/rooms/keys/browse/0.2/payload.js +1 -1
  65. package/dist/rooms/keys/browse/0.3/payload.d.ts +14 -2
  66. package/dist/rooms/keys/browse/0.3/payload.d.ts.map +1 -1
  67. package/dist/rooms/keys/browse/0.3/payload.js +1 -1
  68. package/dist/rooms/keys/browse/0.3/payload.js.map +1 -1
  69. package/dist/rooms/keys/browse/0.4/payload.d.ts +1127 -0
  70. package/dist/rooms/keys/browse/0.4/payload.d.ts.map +1 -0
  71. package/dist/rooms/keys/browse/0.4/payload.js +658 -0
  72. package/dist/rooms/keys/browse/0.4/payload.js.map +1 -0
  73. package/dist/rooms/keys/changed/0.1/payload.d.ts +173 -0
  74. package/dist/rooms/keys/changed/0.1/payload.d.ts.map +1 -0
  75. package/dist/rooms/keys/changed/0.1/payload.js +99 -0
  76. package/dist/rooms/keys/changed/0.1/payload.js.map +1 -0
  77. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +56 -4
  78. package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -1
  79. package/dist/rooms/keys/profile/read/0.1/payload.js +28 -2
  80. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
  81. package/dist/rooms/keys/profile/write/0.1/payload.d.ts +56 -4
  82. package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -1
  83. package/dist/rooms/keys/profile/write/0.1/payload.js +28 -2
  84. package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -1
  85. package/dist/rooms/keys/read/0.1/payload.d.ts +14 -2
  86. package/dist/rooms/keys/read/0.1/payload.d.ts.map +1 -1
  87. package/dist/rooms/keys/read/0.1/payload.js +1 -1
  88. package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
  89. package/dist/rooms/keys/read/0.2/payload.d.ts +1287 -0
  90. package/dist/rooms/keys/read/0.2/payload.d.ts.map +1 -0
  91. package/dist/rooms/keys/read/0.2/payload.js +689 -0
  92. package/dist/rooms/keys/read/0.2/payload.js.map +1 -0
  93. package/dist/rooms/keys/seal/0.1/payload.d.ts +4 -4
  94. package/dist/rooms/keys/seal/0.1/payload.js +1 -1
  95. package/dist/rooms/keys/seal/0.2/payload.d.ts +13 -2
  96. package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
  97. package/dist/rooms/keys/seal/0.2/payload.js +1 -1
  98. package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
  99. package/dist/rooms/keys/seal/0.3/payload.d.ts +402 -0
  100. package/dist/rooms/keys/seal/0.3/payload.d.ts.map +1 -0
  101. package/dist/rooms/keys/seal/0.3/payload.js +229 -0
  102. package/dist/rooms/keys/seal/0.3/payload.js.map +1 -0
  103. package/dist/rooms/keys/watch/0.1/payload.d.ts +652 -0
  104. package/dist/rooms/keys/watch/0.1/payload.d.ts.map +1 -0
  105. package/dist/rooms/keys/watch/0.1/payload.js +343 -0
  106. package/dist/rooms/keys/watch/0.1/payload.js.map +1 -0
  107. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  108. package/dist/rooms/records/get/0.1/payload.js +1 -1
  109. package/dist/rooms/records/get/0.2/payload.d.ts +13 -2
  110. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
  111. package/dist/rooms/records/get/0.2/payload.js +1 -1
  112. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  113. package/dist/rooms/records/get/0.3/payload.d.ts +1064 -0
  114. package/dist/rooms/records/get/0.3/payload.d.ts.map +1 -0
  115. package/dist/rooms/records/get/0.3/payload.js +571 -0
  116. package/dist/rooms/records/get/0.3/payload.js.map +1 -0
  117. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  118. package/dist/rooms/records/list/0.1/payload.js +1 -1
  119. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  120. package/dist/rooms/records/list/0.2/payload.js +1 -1
  121. package/dist/rooms/records/list/0.3/payload.d.ts +4 -4
  122. package/dist/rooms/records/list/0.3/payload.js +1 -1
  123. package/dist/rooms/records/list/0.4/payload.d.ts +4 -4
  124. package/dist/rooms/records/list/0.4/payload.js +1 -1
  125. package/dist/rooms/records/list/0.5/payload.d.ts +13 -2
  126. package/dist/rooms/records/list/0.5/payload.d.ts.map +1 -1
  127. package/dist/rooms/records/list/0.5/payload.js +1 -1
  128. package/dist/rooms/records/list/0.5/payload.js.map +1 -1
  129. package/dist/rooms/records/list/0.6/payload.d.ts +1096 -0
  130. package/dist/rooms/records/list/0.6/payload.d.ts.map +1 -0
  131. package/dist/rooms/records/list/0.6/payload.js +596 -0
  132. package/dist/rooms/records/list/0.6/payload.js.map +1 -0
  133. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  134. package/dist/rooms/records/put/0.1/payload.js +1 -1
  135. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  136. package/dist/rooms/records/put/0.2/payload.js +1 -1
  137. package/dist/rooms/records/put/0.3/payload.d.ts +4 -4
  138. package/dist/rooms/records/put/0.3/payload.js +1 -1
  139. package/dist/rooms/records/put/0.4/payload.d.ts +146 -6
  140. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -1
  141. package/dist/rooms/records/put/0.4/payload.js +81 -3
  142. package/dist/rooms/records/put/0.4/payload.js.map +1 -1
  143. package/dist/rooms/records/put/0.5/payload.d.ts +1808 -0
  144. package/dist/rooms/records/put/0.5/payload.d.ts.map +1 -0
  145. package/dist/rooms/records/put/0.5/payload.js +984 -0
  146. package/dist/rooms/records/put/0.5/payload.js.map +1 -0
  147. package/dist/rooms/watch/0.1/payload.d.ts +497 -0
  148. package/dist/rooms/watch/0.1/payload.d.ts.map +1 -0
  149. package/dist/rooms/watch/0.1/payload.js +268 -0
  150. package/dist/rooms/watch/0.1/payload.js.map +1 -0
  151. package/dist/trust-task-discovery/0.1/payload.d.ts +4 -4
  152. package/dist/trust-task-discovery/0.1/payload.js +1 -1
  153. package/dist/trust-task-discovery/0.2/payload.d.ts +4 -4
  154. package/dist/trust-task-discovery/0.2/payload.js +1 -1
  155. package/dist/trust-task-discovery/0.3/payload.d.ts +14 -2
  156. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -1
  157. package/dist/trust-task-discovery/0.3/payload.js +1 -1
  158. package/dist/trust-task-discovery/0.3/payload.js.map +1 -1
  159. package/dist/trust-task-discovery/0.4/payload.d.ts +521 -0
  160. package/dist/trust-task-discovery/0.4/payload.d.ts.map +1 -0
  161. package/dist/trust-task-discovery/0.4/payload.js +266 -0
  162. package/dist/trust-task-discovery/0.4/payload.js.map +1 -0
  163. package/dist/vtc/_shared/0.7/network-membership.d.ts +16 -0
  164. package/dist/vtc/_shared/0.7/network-membership.d.ts.map +1 -0
  165. package/dist/vtc/_shared/0.7/network-membership.js +6 -0
  166. package/dist/vtc/_shared/0.7/network-membership.js.map +1 -0
  167. package/dist/vtc/boards/delete/0.1/payload.d.ts +416 -0
  168. package/dist/vtc/boards/delete/0.1/payload.d.ts.map +1 -0
  169. package/dist/vtc/boards/delete/0.1/payload.js +236 -0
  170. package/dist/vtc/boards/delete/0.1/payload.js.map +1 -0
  171. package/dist/vtc/boards/update/0.1/payload.d.ts +147 -2
  172. package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -1
  173. package/dist/vtc/boards/update/0.1/payload.js +72 -0
  174. package/dist/vtc/boards/update/0.1/payload.js.map +1 -1
  175. package/dist/vtc/elections/list/0.5/payload.d.ts +3 -3
  176. package/dist/vtc/elections/list/0.5/payload.js +1 -1
  177. package/dist/vtc/elections/list/0.5/payload.js.map +1 -1
  178. package/dist/vtc/elections/show/0.6/payload.d.ts +3 -3
  179. package/dist/vtc/elections/show/0.6/payload.js +1 -1
  180. package/dist/vtc/elections/show/0.6/payload.js.map +1 -1
  181. package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts +593 -0
  182. package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts.map +1 -0
  183. package/dist/vtc/elections/tombstones/show/0.1/payload.js +335 -0
  184. package/dist/vtc/elections/tombstones/show/0.1/payload.js.map +1 -0
  185. package/dist/vtc/networks/deliver/0.1/payload.d.ts +354 -0
  186. package/dist/vtc/networks/deliver/0.1/payload.d.ts.map +1 -0
  187. package/dist/vtc/networks/deliver/0.1/payload.js +213 -0
  188. package/dist/vtc/networks/deliver/0.1/payload.js.map +1 -0
  189. package/dist/vtc/networks/evidence/0.1/payload.d.ts +14 -2
  190. package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -1
  191. package/dist/vtc/networks/evidence/0.1/payload.js +1 -1
  192. package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -1
  193. package/dist/vtc/networks/evidence/0.2/payload.d.ts +412 -0
  194. package/dist/vtc/networks/evidence/0.2/payload.d.ts.map +1 -0
  195. package/dist/vtc/networks/evidence/0.2/payload.js +233 -0
  196. package/dist/vtc/networks/evidence/0.2/payload.js.map +1 -0
  197. package/dist/vtc/networks/groups/register/0.1/payload.d.ts +14 -2
  198. package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -1
  199. package/dist/vtc/networks/groups/register/0.1/payload.js +1 -1
  200. package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -1
  201. package/dist/vtc/networks/groups/register/0.2/payload.d.ts +680 -0
  202. package/dist/vtc/networks/groups/register/0.2/payload.d.ts.map +1 -0
  203. package/dist/vtc/networks/groups/register/0.2/payload.js +401 -0
  204. package/dist/vtc/networks/groups/register/0.2/payload.js.map +1 -0
  205. package/dist/vtc/networks/join/0.1/payload.d.ts +14 -2
  206. package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -1
  207. package/dist/vtc/networks/join/0.1/payload.js +1 -1
  208. package/dist/vtc/networks/join/0.1/payload.js.map +1 -1
  209. package/dist/vtc/networks/join/0.2/payload.d.ts +760 -0
  210. package/dist/vtc/networks/join/0.2/payload.d.ts.map +1 -0
  211. package/dist/vtc/networks/join/0.2/payload.js +445 -0
  212. package/dist/vtc/networks/join/0.2/payload.js.map +1 -0
  213. package/dist/vtc/networks/leave/0.1/payload.d.ts +14 -2
  214. package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -1
  215. package/dist/vtc/networks/leave/0.1/payload.js +1 -1
  216. package/dist/vtc/networks/leave/0.1/payload.js.map +1 -1
  217. package/dist/vtc/networks/leave/0.2/payload.d.ts +664 -0
  218. package/dist/vtc/networks/leave/0.2/payload.d.ts.map +1 -0
  219. package/dist/vtc/networks/leave/0.2/payload.js +393 -0
  220. package/dist/vtc/networks/leave/0.2/payload.js.map +1 -0
  221. package/dist/vtc/networks/list/0.1/payload.d.ts +14 -2
  222. package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -1
  223. package/dist/vtc/networks/list/0.1/payload.js +1 -1
  224. package/dist/vtc/networks/list/0.1/payload.js.map +1 -1
  225. package/dist/vtc/networks/list/0.2/payload.d.ts +713 -0
  226. package/dist/vtc/networks/list/0.2/payload.d.ts.map +1 -0
  227. package/dist/vtc/networks/list/0.2/payload.js +417 -0
  228. package/dist/vtc/networks/list/0.2/payload.js.map +1 -0
  229. package/dist/vtc/networks/repudiate/0.1/payload.d.ts +14 -2
  230. package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -1
  231. package/dist/vtc/networks/repudiate/0.1/payload.js +1 -1
  232. package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -1
  233. package/dist/vtc/networks/repudiate/0.2/payload.d.ts +680 -0
  234. package/dist/vtc/networks/repudiate/0.2/payload.d.ts.map +1 -0
  235. package/dist/vtc/networks/repudiate/0.2/payload.js +400 -0
  236. package/dist/vtc/networks/repudiate/0.2/payload.js.map +1 -0
  237. package/dist/vtc/networks/show/0.1/payload.d.ts +14 -2
  238. package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -1
  239. package/dist/vtc/networks/show/0.1/payload.js +1 -1
  240. package/dist/vtc/networks/show/0.1/payload.js.map +1 -1
  241. package/dist/vtc/networks/show/0.2/payload.d.ts +650 -0
  242. package/dist/vtc/networks/show/0.2/payload.d.ts.map +1 -0
  243. package/dist/vtc/networks/show/0.2/payload.js +388 -0
  244. package/dist/vtc/networks/show/0.2/payload.js.map +1 -0
  245. package/package.json +1 -1
  246. package/src/_extends.ts +5 -0
  247. package/src/_shared/components.ts +352 -1
  248. package/src/did-management/stats/set-resolution/0.1/payload.ts +312 -0
  249. package/src/index.ts +76 -0
  250. package/src/process-attestation/0.1/payload.ts +53 -9
  251. package/src/rooms/_shared/0.1/room.ts +1 -1
  252. package/src/rooms/_shared/0.2/room.ts +1 -1
  253. package/src/rooms/_shared/0.3/member-profile.ts +11 -0
  254. package/src/rooms/changed/0.1/payload.ts +115 -0
  255. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  256. package/src/rooms/keys/act/0.10/payload.ts +15 -3
  257. package/src/rooms/keys/act/0.11/payload.ts +408 -0
  258. package/src/rooms/keys/act/0.12/payload.ts +396 -0
  259. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  260. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  261. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  262. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  263. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  264. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  265. package/src/rooms/keys/act/0.8/payload.ts +5 -5
  266. package/src/rooms/keys/act/0.9/payload.ts +5 -5
  267. package/src/rooms/keys/browse/0.1/payload.ts +5 -5
  268. package/src/rooms/keys/browse/0.2/payload.ts +5 -5
  269. package/src/rooms/keys/browse/0.3/payload.ts +15 -3
  270. package/src/rooms/keys/browse/0.4/payload.ts +730 -0
  271. package/src/rooms/keys/changed/0.1/payload.ts +138 -0
  272. package/src/rooms/keys/profile/read/0.1/payload.ts +28 -2
  273. package/src/rooms/keys/profile/write/0.1/payload.ts +28 -2
  274. package/src/rooms/keys/read/0.1/payload.ts +15 -3
  275. package/src/rooms/keys/read/0.2/payload.ts +855 -0
  276. package/src/rooms/keys/seal/0.1/payload.ts +5 -5
  277. package/src/rooms/keys/seal/0.2/payload.ts +14 -3
  278. package/src/rooms/keys/seal/0.3/payload.ts +282 -0
  279. package/src/rooms/keys/watch/0.1/payload.ts +452 -0
  280. package/src/rooms/records/get/0.1/payload.ts +5 -5
  281. package/src/rooms/records/get/0.2/payload.ts +14 -3
  282. package/src/rooms/records/get/0.3/payload.ts +684 -0
  283. package/src/rooms/records/list/0.1/payload.ts +5 -5
  284. package/src/rooms/records/list/0.2/payload.ts +5 -5
  285. package/src/rooms/records/list/0.3/payload.ts +5 -5
  286. package/src/rooms/records/list/0.4/payload.ts +5 -5
  287. package/src/rooms/records/list/0.5/payload.ts +14 -3
  288. package/src/rooms/records/list/0.6/payload.ts +673 -0
  289. package/src/rooms/records/put/0.1/payload.ts +5 -5
  290. package/src/rooms/records/put/0.2/payload.ts +5 -5
  291. package/src/rooms/records/put/0.3/payload.ts +5 -5
  292. package/src/rooms/records/put/0.4/payload.ts +95 -5
  293. package/src/rooms/records/put/0.5/payload.ts +1095 -0
  294. package/src/rooms/watch/0.1/payload.ts +340 -0
  295. package/src/trust-task-discovery/0.1/payload.ts +5 -5
  296. package/src/trust-task-discovery/0.2/payload.ts +5 -5
  297. package/src/trust-task-discovery/0.3/payload.ts +15 -3
  298. package/src/trust-task-discovery/0.4/payload.ts +387 -0
  299. package/src/vtc/_shared/0.7/network-membership.ts +17 -0
  300. package/src/vtc/boards/delete/0.1/payload.ts +293 -0
  301. package/src/vtc/boards/update/0.1/payload.ts +91 -2
  302. package/src/vtc/elections/list/0.5/payload.ts +2 -2
  303. package/src/vtc/elections/show/0.6/payload.ts +2 -2
  304. package/src/vtc/elections/tombstones/show/0.1/payload.ts +401 -0
  305. package/src/vtc/networks/deliver/0.1/payload.ts +254 -0
  306. package/src/vtc/networks/evidence/0.1/payload.ts +15 -3
  307. package/src/vtc/networks/evidence/0.2/payload.ts +290 -0
  308. package/src/vtc/networks/groups/register/0.1/payload.ts +15 -3
  309. package/src/vtc/networks/groups/register/0.2/payload.ts +446 -0
  310. package/src/vtc/networks/join/0.1/payload.ts +15 -3
  311. package/src/vtc/networks/join/0.2/payload.ts +492 -0
  312. package/src/vtc/networks/leave/0.1/payload.ts +15 -3
  313. package/src/vtc/networks/leave/0.2/payload.ts +434 -0
  314. package/src/vtc/networks/list/0.1/payload.ts +15 -3
  315. package/src/vtc/networks/list/0.2/payload.ts +463 -0
  316. package/src/vtc/networks/repudiate/0.1/payload.ts +15 -3
  317. package/src/vtc/networks/repudiate/0.2/payload.ts +445 -0
  318. package/src/vtc/networks/show/0.1/payload.ts +15 -3
  319. package/src/vtc/networks/show/0.2/payload.ts +425 -0
@@ -0,0 +1,401 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/elections/tombstones/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { BoardHead, DigestMultibase, ElectionId, Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A member reads what the community keeps of an election on a deleted board — its tombstone — to check a receipt against the board heads the community kept. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCElectionsTombstonesShowPayload {
13
+ electionId: ElectionId;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.
18
+ */
19
+ export interface VTCElectionsTombstonesShowResponsePayload {
20
+ electionId: ElectionId;
21
+ /**
22
+ * The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.
23
+ */
24
+ manifestDigest: DigestMultibase;
25
+ /**
26
+ * The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.
27
+ */
28
+ ballotBox: string;
29
+ /**
30
+ * The board heads the community kept, oldest first; the last is the final head once voting closed.
31
+ *
32
+ * @maxItems 256
33
+ */
34
+ checkpoints: Checkpoint[];
35
+ /**
36
+ * When the board the election was opened on was deleted.
37
+ */
38
+ deletedAt: string;
39
+ /**
40
+ * When the community removes this tombstone. Absent: kept for ever.
41
+ */
42
+ removeAt?: string;
43
+ ext?: Ext;
44
+ }
45
+ /**
46
+ * A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.
47
+ */
48
+ export interface Checkpoint {
49
+ head: BoardHead;
50
+ /**
51
+ * The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.
52
+ */
53
+ document: {};
54
+ }
55
+
56
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
57
+ export type { BoardHead, DigestMultibase, ElectionId, Ext };
58
+
59
+ /** Trust Task type URI. */
60
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1" as const;
61
+
62
+ /**
63
+ * The earlier version of this specification that this one declares it
64
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
65
+ * `null`. Only the direct declaration — follow the chain with
66
+ * `extendsChain` / `readForSpec`.
67
+ */
68
+ export const EXTENDS: string | null = null;
69
+
70
+ /**
71
+ * Why this version is deprecated, or `null` while it is current. A
72
+ * superseded or retired version is still supported, and is withdrawn from
73
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
74
+ * Versions").
75
+ */
76
+ export const DEPRECATION: string | null = null;
77
+
78
+ /** Stable alias for this specification's request payload shape. */
79
+ export type Payload = VTCElectionsTombstonesShowPayload;
80
+
81
+ /** Trust Task response type URI (request type URI + "#response"). */
82
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response" as const;
83
+
84
+ /** Stable alias for this specification's success-response payload shape. */
85
+ export type Response = VTCElectionsTombstonesShowResponsePayload;
86
+
87
+ /**
88
+ * This specification's payload schema, as a value.
89
+ *
90
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
91
+ * rather than only as a `.json` file because TypeScript types are erased
92
+ * at runtime: without a schema a consumer has nothing to validate, and
93
+ * every REQUIRED payload member is optional in practice. Cross-file
94
+ * `$ref`s are already inlined, so it needs no resolver.
95
+ */
96
+ export const PAYLOAD_SCHEMA = {
97
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
98
+ "$id": "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1",
99
+ "title": "VTC Elections — Tombstones — Show — payload",
100
+ "description": "A member reads what the community keeps of an election on a deleted board — its tombstone — to check a receipt against the board heads the community kept. The outer document members are owned by the framework — SPEC §6.3.",
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "electionId"
105
+ ],
106
+ "properties": {
107
+ "electionId": {
108
+ "$ref": "#/$defs/ElectionId"
109
+ },
110
+ "ext": {
111
+ "$ref": "#/$defs/Ext"
112
+ }
113
+ },
114
+ "$defs": {
115
+ "Checkpoint": {
116
+ "title": "Checkpoint",
117
+ "description": "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.",
118
+ "type": "object",
119
+ "additionalProperties": false,
120
+ "required": [
121
+ "head",
122
+ "document"
123
+ ],
124
+ "properties": {
125
+ "head": {
126
+ "$ref": "#/$defs/BoardHead"
127
+ },
128
+ "document": {
129
+ "type": "object",
130
+ "description": "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community."
131
+ }
132
+ }
133
+ },
134
+ "Response": {
135
+ "$anchor": "response",
136
+ "title": "VTC Elections — Tombstones — Show — response payload",
137
+ "description": "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.",
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "electionId",
142
+ "manifestDigest",
143
+ "ballotBox",
144
+ "checkpoints",
145
+ "deletedAt"
146
+ ],
147
+ "properties": {
148
+ "electionId": {
149
+ "$ref": "#/$defs/ElectionId"
150
+ },
151
+ "manifestDigest": {
152
+ "$ref": "#/$defs/DigestMultibase",
153
+ "description": "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it."
154
+ },
155
+ "ballotBox": {
156
+ "type": "string",
157
+ "minLength": 1,
158
+ "maxLength": 2048,
159
+ "description": "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries."
160
+ },
161
+ "checkpoints": {
162
+ "type": "array",
163
+ "maxItems": 256,
164
+ "items": {
165
+ "$ref": "#/$defs/Checkpoint"
166
+ },
167
+ "description": "The board heads the community kept, oldest first; the last is the final head once voting closed."
168
+ },
169
+ "deletedAt": {
170
+ "type": "string",
171
+ "format": "date-time",
172
+ "description": "When the board the election was opened on was deleted."
173
+ },
174
+ "removeAt": {
175
+ "type": "string",
176
+ "format": "date-time",
177
+ "description": "When the community removes this tombstone. Absent: kept for ever."
178
+ },
179
+ "ext": {
180
+ "$ref": "#/$defs/Ext"
181
+ }
182
+ }
183
+ },
184
+ "Ext": {
185
+ "title": "Ext",
186
+ "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.",
187
+ "type": "object",
188
+ "minProperties": 1,
189
+ "additionalProperties": true,
190
+ "propertyNames": {
191
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
192
+ }
193
+ },
194
+ "DigestMultibase": {
195
+ "title": "DigestMultibase",
196
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
197
+ "type": "string",
198
+ "minLength": 16,
199
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
200
+ "examples": [
201
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
202
+ ]
203
+ },
204
+ "ElectionId": {
205
+ "title": "ElectionId",
206
+ "description": "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.",
207
+ "type": "string",
208
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
209
+ },
210
+ "BoardHead": {
211
+ "title": "BoardHead",
212
+ "description": "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.",
213
+ "type": "object",
214
+ "additionalProperties": false,
215
+ "required": [
216
+ "electionId",
217
+ "treeSize",
218
+ "rootHash",
219
+ "issuedAt"
220
+ ],
221
+ "properties": {
222
+ "electionId": {
223
+ "$ref": "#/$defs/ElectionId"
224
+ },
225
+ "treeSize": {
226
+ "type": "integer",
227
+ "minimum": 0
228
+ },
229
+ "rootHash": {
230
+ "$ref": "#/$defs/DigestMultibase",
231
+ "description": "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash."
232
+ },
233
+ "issuedAt": {
234
+ "type": "string",
235
+ "format": "date-time"
236
+ }
237
+ }
238
+ }
239
+ }
240
+ } as const;
241
+
242
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
243
+ export const RESPONSE_PAYLOAD_SCHEMA = {
244
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
245
+ "$ref": "#/$defs/Response",
246
+ "$defs": {
247
+ "Checkpoint": {
248
+ "title": "Checkpoint",
249
+ "description": "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.",
250
+ "type": "object",
251
+ "additionalProperties": false,
252
+ "required": [
253
+ "head",
254
+ "document"
255
+ ],
256
+ "properties": {
257
+ "head": {
258
+ "$ref": "#/$defs/BoardHead"
259
+ },
260
+ "document": {
261
+ "type": "object",
262
+ "description": "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community."
263
+ }
264
+ }
265
+ },
266
+ "Response": {
267
+ "$anchor": "response",
268
+ "title": "VTC Elections — Tombstones — Show — response payload",
269
+ "description": "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.",
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "required": [
273
+ "electionId",
274
+ "manifestDigest",
275
+ "ballotBox",
276
+ "checkpoints",
277
+ "deletedAt"
278
+ ],
279
+ "properties": {
280
+ "electionId": {
281
+ "$ref": "#/$defs/ElectionId"
282
+ },
283
+ "manifestDigest": {
284
+ "$ref": "#/$defs/DigestMultibase",
285
+ "description": "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it."
286
+ },
287
+ "ballotBox": {
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "maxLength": 2048,
291
+ "description": "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries."
292
+ },
293
+ "checkpoints": {
294
+ "type": "array",
295
+ "maxItems": 256,
296
+ "items": {
297
+ "$ref": "#/$defs/Checkpoint"
298
+ },
299
+ "description": "The board heads the community kept, oldest first; the last is the final head once voting closed."
300
+ },
301
+ "deletedAt": {
302
+ "type": "string",
303
+ "format": "date-time",
304
+ "description": "When the board the election was opened on was deleted."
305
+ },
306
+ "removeAt": {
307
+ "type": "string",
308
+ "format": "date-time",
309
+ "description": "When the community removes this tombstone. Absent: kept for ever."
310
+ },
311
+ "ext": {
312
+ "$ref": "#/$defs/Ext"
313
+ }
314
+ }
315
+ },
316
+ "Ext": {
317
+ "title": "Ext",
318
+ "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.",
319
+ "type": "object",
320
+ "minProperties": 1,
321
+ "additionalProperties": true,
322
+ "propertyNames": {
323
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
324
+ }
325
+ },
326
+ "DigestMultibase": {
327
+ "title": "DigestMultibase",
328
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
329
+ "type": "string",
330
+ "minLength": 16,
331
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
332
+ "examples": [
333
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
334
+ ]
335
+ },
336
+ "ElectionId": {
337
+ "title": "ElectionId",
338
+ "description": "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.",
339
+ "type": "string",
340
+ "pattern": "^[A-Za-z0-9._-]{1,128}$"
341
+ },
342
+ "BoardHead": {
343
+ "title": "BoardHead",
344
+ "description": "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.",
345
+ "type": "object",
346
+ "additionalProperties": false,
347
+ "required": [
348
+ "electionId",
349
+ "treeSize",
350
+ "rootHash",
351
+ "issuedAt"
352
+ ],
353
+ "properties": {
354
+ "electionId": {
355
+ "$ref": "#/$defs/ElectionId"
356
+ },
357
+ "treeSize": {
358
+ "type": "integer",
359
+ "minimum": 0
360
+ },
361
+ "rootHash": {
362
+ "$ref": "#/$defs/DigestMultibase",
363
+ "description": "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash."
364
+ },
365
+ "issuedAt": {
366
+ "type": "string",
367
+ "format": "date-time"
368
+ }
369
+ }
370
+ }
371
+ }
372
+ } as const;
373
+
374
+ /**
375
+ * SPEC.md §7.2 policy for the request variant, from this specification's
376
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
377
+ * per-specification and cannot be derived from the document alone, and
378
+ * item 2 needs the schema this carries.
379
+ */
380
+ export const SPEC = {
381
+ typeUri: TYPE_URI,
382
+ isBearer: false,
383
+ isProofRequired: false,
384
+ isRecipientRequired: true,
385
+ isIssuedAtRequired: false,
386
+ payloadSchema: PAYLOAD_SCHEMA,
387
+ } as const;
388
+
389
+ /**
390
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
391
+ * tracks the *issuer* party's requirement because a response swaps the
392
+ * parties (§7.3 item 5).
393
+ */
394
+ export const RESPONSE_SPEC = {
395
+ typeUri: RESPONSE_TYPE_URI,
396
+ isBearer: false,
397
+ isProofRequired: false,
398
+ isRecipientRequired: true,
399
+ isIssuedAtRequired: false,
400
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
401
+ } as const;
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/networks/deliver/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Credential, Envelope, Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A network's delivery of a broadcast envelope to the community's group registered for one of the network's roles. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCNetworksDeliverPayload {
13
+ /**
14
+ * The network's role whose registered community group the delivery addresses.
15
+ */
16
+ role: string;
17
+ envelope: Envelope;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.
22
+ */
23
+ export interface VTCNetworksDeliverResponsePayload {
24
+ /**
25
+ * `delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent.
26
+ */
27
+ status: "delivered" | "duplicate";
28
+ ext?: Ext;
29
+ }
30
+
31
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
32
+ export type { Credential, Envelope, Ext };
33
+
34
+ /** Trust Task type URI. */
35
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/networks/deliver/0.1" as const;
36
+
37
+ /**
38
+ * The earlier version of this specification that this one declares it
39
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
40
+ * `null`. Only the direct declaration — follow the chain with
41
+ * `extendsChain` / `readForSpec`.
42
+ */
43
+ export const EXTENDS: string | null = null;
44
+
45
+ /**
46
+ * Why this version is deprecated, or `null` while it is current. A
47
+ * superseded or retired version is still supported, and is withdrawn from
48
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
49
+ * Versions").
50
+ */
51
+ export const DEPRECATION: string | null = null;
52
+
53
+ /** Stable alias for this specification's request payload shape. */
54
+ export type Payload = VTCNetworksDeliverPayload;
55
+
56
+ /** Trust Task response type URI (request type URI + "#response"). */
57
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/networks/deliver/0.1#response" as const;
58
+
59
+ /** Stable alias for this specification's success-response payload shape. */
60
+ export type Response = VTCNetworksDeliverResponsePayload;
61
+
62
+ /**
63
+ * This specification's payload schema, as a value.
64
+ *
65
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
66
+ * rather than only as a `.json` file because TypeScript types are erased
67
+ * at runtime: without a schema a consumer has nothing to validate, and
68
+ * every REQUIRED payload member is optional in practice. Cross-file
69
+ * `$ref`s are already inlined, so it needs no resolver.
70
+ */
71
+ export const PAYLOAD_SCHEMA = {
72
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
73
+ "$id": "https://trusttasks.org/spec/vtc/networks/deliver/0.1",
74
+ "title": "VTC Networks — Deliver — payload",
75
+ "description": "A network's delivery of a broadcast envelope to the community's group registered for one of the network's roles. The outer document members are owned by the framework — SPEC §6.3.",
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "required": [
79
+ "role",
80
+ "envelope"
81
+ ],
82
+ "properties": {
83
+ "role": {
84
+ "type": "string",
85
+ "pattern": "^[a-z0-9_-]{1,64}$",
86
+ "description": "The network's role whose registered community group the delivery addresses."
87
+ },
88
+ "envelope": {
89
+ "$ref": "#/$defs/Envelope"
90
+ },
91
+ "ext": {
92
+ "$ref": "#/$defs/Ext"
93
+ }
94
+ },
95
+ "$defs": {
96
+ "Response": {
97
+ "$anchor": "response",
98
+ "title": "VTC Networks — Deliver — response payload",
99
+ "description": "Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.",
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": [
103
+ "status"
104
+ ],
105
+ "properties": {
106
+ "status": {
107
+ "type": "string",
108
+ "enum": [
109
+ "delivered",
110
+ "duplicate"
111
+ ],
112
+ "description": "`delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent."
113
+ },
114
+ "ext": {
115
+ "$ref": "#/$defs/Ext"
116
+ }
117
+ }
118
+ },
119
+ "Ext": {
120
+ "title": "Ext",
121
+ "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.",
122
+ "type": "object",
123
+ "minProperties": 1,
124
+ "additionalProperties": true,
125
+ "propertyNames": {
126
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
127
+ }
128
+ },
129
+ "Envelope": {
130
+ "description": "A broadcast in transit.",
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "message",
135
+ "hops"
136
+ ],
137
+ "properties": {
138
+ "message": {
139
+ "$ref": "#/$defs/Credential",
140
+ "description": "The message, signed by the origin network."
141
+ },
142
+ "hops": {
143
+ "type": "array",
144
+ "items": {
145
+ "$ref": "#/$defs/Credential"
146
+ },
147
+ "description": "One signed hop per relay step, each by the network that owns the previous hop's group.",
148
+ "maxItems": 16
149
+ }
150
+ }
151
+ },
152
+ "Credential": {
153
+ "type": "object",
154
+ "description": "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers."
155
+ }
156
+ }
157
+ } as const;
158
+
159
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
160
+ export const RESPONSE_PAYLOAD_SCHEMA = {
161
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
162
+ "$ref": "#/$defs/Response",
163
+ "$defs": {
164
+ "Response": {
165
+ "$anchor": "response",
166
+ "title": "VTC Networks — Deliver — response payload",
167
+ "description": "Whether the community passed the message on. Deliberately carries no count of the group's members, so the network does not learn the group's size.",
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": [
171
+ "status"
172
+ ],
173
+ "properties": {
174
+ "status": {
175
+ "type": "string",
176
+ "enum": [
177
+ "delivered",
178
+ "duplicate"
179
+ ],
180
+ "description": "`delivered`: accepted and passed on to the group's members. `duplicate`: the community had delivered this message before; nothing was sent."
181
+ },
182
+ "ext": {
183
+ "$ref": "#/$defs/Ext"
184
+ }
185
+ }
186
+ },
187
+ "Ext": {
188
+ "title": "Ext",
189
+ "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.",
190
+ "type": "object",
191
+ "minProperties": 1,
192
+ "additionalProperties": true,
193
+ "propertyNames": {
194
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
195
+ }
196
+ },
197
+ "Envelope": {
198
+ "description": "A broadcast in transit.",
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "message",
203
+ "hops"
204
+ ],
205
+ "properties": {
206
+ "message": {
207
+ "$ref": "#/$defs/Credential",
208
+ "description": "The message, signed by the origin network."
209
+ },
210
+ "hops": {
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "#/$defs/Credential"
214
+ },
215
+ "description": "One signed hop per relay step, each by the network that owns the previous hop's group.",
216
+ "maxItems": 16
217
+ }
218
+ }
219
+ },
220
+ "Credential": {
221
+ "type": "object",
222
+ "description": "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers."
223
+ }
224
+ }
225
+ } as const;
226
+
227
+ /**
228
+ * SPEC.md §7.2 policy for the request variant, from this specification's
229
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
230
+ * per-specification and cannot be derived from the document alone, and
231
+ * item 2 needs the schema this carries.
232
+ */
233
+ export const SPEC = {
234
+ typeUri: TYPE_URI,
235
+ isBearer: false,
236
+ isProofRequired: true,
237
+ isRecipientRequired: true,
238
+ isIssuedAtRequired: true,
239
+ payloadSchema: PAYLOAD_SCHEMA,
240
+ } as const;
241
+
242
+ /**
243
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
244
+ * tracks the *issuer* party's requirement because a response swaps the
245
+ * parties (§7.3 item 5).
246
+ */
247
+ export const RESPONSE_SPEC = {
248
+ typeUri: RESPONSE_TYPE_URI,
249
+ isBearer: false,
250
+ isProofRequired: true,
251
+ isRecipientRequired: true,
252
+ isIssuedAtRequired: true,
253
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
254
+ } as const;