@openvtc/trust-tasks 0.26.17 → 0.26.19

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 (368) hide show
  1. package/CHANGELOG.md +222 -0
  2. package/dist/_shared/components.d.ts +867 -3
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
  5. package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
  6. package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
  7. package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
  8. package/dist/auth/oob/grant/0.2/payload.js +140 -0
  9. package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
  10. package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
  11. package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
  12. package/dist/auth/oob/prove/0.2/payload.js +468 -0
  13. package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
  14. package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
  15. package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
  16. package/dist/auth/oob/respond/0.2/payload.js +140 -0
  17. package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
  18. package/dist/device/list/0.1/payload.d.ts +4 -4
  19. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  20. package/dist/device/list/0.1/payload.js +2 -0
  21. package/dist/device/list/0.1/payload.js.map +1 -1
  22. package/dist/device/list/0.2/payload.d.ts +4 -4
  23. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  24. package/dist/device/list/0.2/payload.js +2 -0
  25. package/dist/device/list/0.2/payload.js.map +1 -1
  26. package/dist/device/register/0.1/payload.d.ts +4 -4
  27. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  28. package/dist/device/register/0.1/payload.js +2 -0
  29. package/dist/device/register/0.1/payload.js.map +1 -1
  30. package/dist/device/register/0.2/payload.d.ts +4 -4
  31. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  32. package/dist/device/register/0.2/payload.js +2 -0
  33. package/dist/device/register/0.2/payload.js.map +1 -1
  34. package/dist/index.d.ts +61 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +61 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
  39. package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
  40. package/dist/keys/sign-document/0.1/payload.js +341 -0
  41. package/dist/keys/sign-document/0.1/payload.js.map +1 -0
  42. package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
  43. package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
  44. package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
  45. package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
  46. package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
  47. package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
  48. package/dist/persona/contact/get/1.1/payload.js +804 -0
  49. package/dist/persona/contact/get/1.1/payload.js.map +1 -0
  50. package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
  51. package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
  52. package/dist/persona/contact/list/1.1/payload.js +417 -0
  53. package/dist/persona/contact/list/1.1/payload.js.map +1 -0
  54. package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
  55. package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
  56. package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
  57. package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
  58. package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
  59. package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
  60. package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
  61. package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
  62. package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
  63. package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
  64. package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
  65. package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
  66. package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
  67. package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
  68. package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
  69. package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
  70. package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
  71. package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
  72. package/dist/persona/contact/put/1.1/payload.js +850 -0
  73. package/dist/persona/contact/put/1.1/payload.js.map +1 -0
  74. package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
  75. package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
  76. package/dist/rooms/keys/seal/0.1/payload.js +12 -2
  77. package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
  78. package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
  79. package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
  80. package/dist/rooms/keys/seal/0.2/payload.js +12 -2
  81. package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
  82. package/dist/rooms/owner/group/add/0.3/payload.d.ts +417 -0
  83. package/dist/rooms/owner/group/add/0.3/payload.d.ts.map +1 -0
  84. package/dist/rooms/owner/group/add/0.3/payload.js +218 -0
  85. package/dist/rooms/owner/group/add/0.3/payload.js.map +1 -0
  86. package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
  87. package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
  88. package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
  89. package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
  90. package/dist/rooms/owner/group/renew/0.2/payload.d.ts +299 -0
  91. package/dist/rooms/owner/group/renew/0.2/payload.d.ts.map +1 -0
  92. package/dist/rooms/owner/group/renew/0.2/payload.js +163 -0
  93. package/dist/rooms/owner/group/renew/0.2/payload.js.map +1 -0
  94. package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
  95. package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
  96. package/dist/rooms/owner/register/0.2/payload.js +335 -0
  97. package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
  98. package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
  99. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
  100. package/dist/rooms/records/get/0.1/payload.js +12 -2
  101. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  102. package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
  103. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
  104. package/dist/rooms/records/get/0.2/payload.js +12 -2
  105. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  106. package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
  107. package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
  108. package/dist/rooms/records/put/0.1/payload.js +12 -2
  109. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  110. package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
  111. package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
  112. package/dist/rooms/records/put/0.2/payload.js +12 -2
  113. package/dist/rooms/records/put/0.2/payload.js.map +1 -1
  114. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
  115. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
  116. package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
  117. package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
  118. package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
  119. package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
  120. package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
  121. package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
  122. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
  123. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
  124. package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
  125. package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
  126. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
  127. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
  128. package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
  129. package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
  130. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
  131. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
  132. package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
  133. package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
  134. package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts +18 -0
  135. package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts.map +1 -0
  136. package/dist/vtc/directory/_shared/0.1/disclosure-statement.js +6 -0
  137. package/dist/vtc/directory/_shared/0.1/disclosure-statement.js.map +1 -0
  138. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
  139. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
  140. package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
  141. package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
  142. package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
  143. package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
  145. package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
  146. package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
  147. package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
  149. package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
  150. package/dist/vtc/directory/card/public/0.1/payload.d.ts +348 -0
  151. package/dist/vtc/directory/card/public/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/directory/card/public/0.1/payload.js +197 -0
  153. package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -0
  154. package/dist/vtc/directory/card/publish/0.1/payload.d.ts +384 -0
  155. package/dist/vtc/directory/card/publish/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/directory/card/publish/0.1/payload.js +222 -0
  157. package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -0
  158. package/dist/vtc/directory/card/show/0.1/payload.d.ts +1276 -0
  159. package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/directory/card/show/0.1/payload.js +775 -0
  161. package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
  162. package/dist/vtc/directory/card/update/0.1/payload.d.ts +1423 -0
  163. package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/directory/card/update/0.1/payload.js +845 -0
  165. package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
  166. package/dist/vtc/directory/disclosure/0.1/payload.d.ts +951 -0
  167. package/dist/vtc/directory/disclosure/0.1/payload.d.ts.map +1 -0
  168. package/dist/vtc/directory/disclosure/0.1/payload.js +613 -0
  169. package/dist/vtc/directory/disclosure/0.1/payload.js.map +1 -0
  170. package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
  171. package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
  172. package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
  173. package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
  174. package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
  175. package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
  176. package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
  177. package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
  178. package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
  179. package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
  180. package/dist/vtc/directory/export/0.1/payload.js +192 -0
  181. package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
  182. package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
  183. package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
  184. package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
  185. package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
  186. package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
  187. package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
  188. package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
  189. package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
  190. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
  191. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
  192. package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
  193. package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
  194. package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
  195. package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
  196. package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
  197. package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
  198. package/dist/vtc/directory/images/get/0.1/payload.d.ts +484 -0
  199. package/dist/vtc/directory/images/get/0.1/payload.d.ts.map +1 -0
  200. package/dist/vtc/directory/images/get/0.1/payload.js +273 -0
  201. package/dist/vtc/directory/images/get/0.1/payload.js.map +1 -0
  202. package/dist/vtc/directory/images/upload/0.1/payload.d.ts +441 -0
  203. package/dist/vtc/directory/images/upload/0.1/payload.d.ts.map +1 -0
  204. package/dist/vtc/directory/images/upload/0.1/payload.js +262 -0
  205. package/dist/vtc/directory/images/upload/0.1/payload.js.map +1 -0
  206. package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
  207. package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
  208. package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
  209. package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
  210. package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
  211. package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
  212. package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
  213. package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
  214. package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
  215. package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
  216. package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
  217. package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
  218. package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
  219. package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
  220. package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
  221. package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
  222. package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
  223. package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
  224. package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
  225. package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
  226. package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
  227. package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
  228. package/dist/vtc/groups/_shared/0.1/group.js +6 -0
  229. package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
  230. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
  231. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
  232. package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
  233. package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
  234. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
  235. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
  236. package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
  237. package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
  238. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
  239. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
  240. package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
  241. package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
  242. package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
  243. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
  244. package/dist/vtc/groups/create/0.1/payload.js +631 -0
  245. package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
  246. package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
  247. package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
  248. package/dist/vtc/groups/delete/0.1/payload.js +182 -0
  249. package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
  250. package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
  251. package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
  252. package/dist/vtc/groups/join/0.1/payload.js +758 -0
  253. package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
  254. package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
  255. package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
  256. package/dist/vtc/groups/leave/0.1/payload.js +179 -0
  257. package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
  258. package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
  259. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
  260. package/dist/vtc/groups/list/0.1/payload.js +674 -0
  261. package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
  262. package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
  263. package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
  264. package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
  265. package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
  266. package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
  267. package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
  268. package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
  269. package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
  270. package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
  271. package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
  272. package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
  273. package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
  274. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
  275. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
  276. package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
  277. package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
  278. package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
  279. package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
  280. package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
  281. package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
  282. package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
  283. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
  284. package/dist/vtc/groups/show/0.1/payload.js +619 -0
  285. package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
  286. package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
  287. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
  288. package/dist/vtc/groups/update/0.1/payload.js +633 -0
  289. package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
  290. package/dist/vtc/join-requests/manifest/0.4/payload.d.ts +2303 -0
  291. package/dist/vtc/join-requests/manifest/0.4/payload.d.ts.map +1 -0
  292. package/dist/vtc/join-requests/manifest/0.4/payload.js +1293 -0
  293. package/dist/vtc/join-requests/manifest/0.4/payload.js.map +1 -0
  294. package/package.json +1 -1
  295. package/src/_shared/components.ts +912 -1
  296. package/src/auth/oob/_shared/0.1/oob.ts +1 -1
  297. package/src/auth/oob/grant/0.2/payload.ts +186 -0
  298. package/src/auth/oob/prove/0.2/payload.ts +523 -0
  299. package/src/auth/oob/respond/0.2/payload.ts +178 -0
  300. package/src/device/list/0.1/payload.ts +2 -0
  301. package/src/device/list/0.2/payload.ts +2 -0
  302. package/src/device/register/0.1/payload.ts +2 -0
  303. package/src/device/register/0.2/payload.ts +2 -0
  304. package/src/index.ts +61 -0
  305. package/src/keys/sign-document/0.1/payload.ts +437 -0
  306. package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
  307. package/src/persona/contact/get/1.1/payload.ts +876 -0
  308. package/src/persona/contact/list/1.1/payload.ts +497 -0
  309. package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
  310. package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
  311. package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
  312. package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
  313. package/src/persona/contact/put/1.1/payload.ts +958 -0
  314. package/src/rooms/keys/seal/0.1/payload.ts +12 -2
  315. package/src/rooms/keys/seal/0.2/payload.ts +12 -2
  316. package/src/rooms/owner/group/add/0.3/payload.ts +288 -0
  317. package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
  318. package/src/rooms/owner/group/renew/0.2/payload.ts +213 -0
  319. package/src/rooms/owner/register/0.2/payload.ts +415 -0
  320. package/src/rooms/records/get/0.1/payload.ts +12 -2
  321. package/src/rooms/records/get/0.2/payload.ts +12 -2
  322. package/src/rooms/records/put/0.1/payload.ts +12 -2
  323. package/src/rooms/records/put/0.2/payload.ts +12 -2
  324. package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
  325. package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
  326. package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
  327. package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
  328. package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
  329. package/src/vtc/directory/_shared/0.1/disclosure-statement.ts +19 -0
  330. package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
  331. package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
  332. package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
  333. package/src/vtc/directory/card/public/0.1/payload.ts +238 -0
  334. package/src/vtc/directory/card/publish/0.1/payload.ts +261 -0
  335. package/src/vtc/directory/card/show/0.1/payload.ts +812 -0
  336. package/src/vtc/directory/card/update/0.1/payload.ts +907 -0
  337. package/src/vtc/directory/disclosure/0.1/payload.ts +645 -0
  338. package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
  339. package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
  340. package/src/vtc/directory/export/0.1/payload.ts +241 -0
  341. package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
  342. package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
  343. package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
  344. package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
  345. package/src/vtc/directory/images/get/0.1/payload.ts +320 -0
  346. package/src/vtc/directory/images/upload/0.1/payload.ts +308 -0
  347. package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
  348. package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
  349. package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
  350. package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
  351. package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
  352. package/src/vtc/groups/_shared/0.1/group.ts +23 -0
  353. package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
  354. package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
  355. package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
  356. package/src/vtc/groups/create/0.1/payload.ts +683 -0
  357. package/src/vtc/groups/delete/0.1/payload.ts +224 -0
  358. package/src/vtc/groups/join/0.1/payload.ts +807 -0
  359. package/src/vtc/groups/leave/0.1/payload.ts +219 -0
  360. package/src/vtc/groups/list/0.1/payload.ts +728 -0
  361. package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
  362. package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
  363. package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
  364. package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
  365. package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
  366. package/src/vtc/groups/show/0.1/payload.ts +652 -0
  367. package/src/vtc/groups/update/0.1/payload.ts +682 -0
  368. package/src/vtc/join-requests/manifest/0.4/payload.ts +1490 -0
@@ -0,0 +1,384 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/publish/0.1/payload.schema.json
4
+ */
5
+ import type { DigestMultibase, Ext, ExternalCard, PublishedCard } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A member publishes their external card: their `public` values as a JSContact card they signed. The community serves it as signed and points its trust registry to it; it never signs or composes the card itself. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCDirectoryCardPublishPayload {
10
+ card: PublishedCard;
11
+ /**
12
+ * The card revision the member signed against. Where the card has changed since, the answer is `superseded` and nothing is published.
13
+ */
14
+ expectedRevision?: number;
15
+ ext?: Ext;
16
+ }
17
+ /**
18
+ * The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.
19
+ */
20
+ export interface VTCDirectoryCardPublishResponsePayload {
21
+ /**
22
+ * `published`, with the digest of the card now served.
23
+ */
24
+ externalCard: ExternalCard;
25
+ ext?: Ext;
26
+ }
27
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
28
+ export type { DigestMultibase, Ext, ExternalCard, PublishedCard };
29
+ /** Trust Task type URI. */
30
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1";
31
+ /** Stable alias for this specification's request payload shape. */
32
+ export type Payload = VTCDirectoryCardPublishPayload;
33
+ /** Trust Task response type URI (request type URI + "#response"). */
34
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response";
35
+ /** Stable alias for this specification's success-response payload shape. */
36
+ export type Response = VTCDirectoryCardPublishResponsePayload;
37
+ /**
38
+ * This specification's payload schema, as a value.
39
+ *
40
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
41
+ * rather than only as a `.json` file because TypeScript types are erased
42
+ * at runtime: without a schema a consumer has nothing to validate, and
43
+ * every REQUIRED payload member is optional in practice. Cross-file
44
+ * `$ref`s are already inlined, so it needs no resolver.
45
+ */
46
+ export declare const PAYLOAD_SCHEMA: {
47
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
48
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1";
49
+ readonly title: "VTC Directory — Card — Publish — payload";
50
+ readonly description: "A member publishes their external card: their `public` values as a JSContact card they signed. The community serves it as signed and points its trust registry to it; it never signs or composes the card itself. The outer document members are owned by the framework — SPEC §6.3.";
51
+ readonly type: "object";
52
+ readonly additionalProperties: false;
53
+ readonly required: readonly ["card"];
54
+ readonly properties: {
55
+ readonly card: {
56
+ readonly $ref: "#/$defs/PublishedCard";
57
+ };
58
+ readonly expectedRevision: {
59
+ readonly type: "integer";
60
+ readonly minimum: 0;
61
+ readonly description: "The card revision the member signed against. Where the card has changed since, the answer is `superseded` and nothing is published.";
62
+ };
63
+ readonly ext: {
64
+ readonly $ref: "#/$defs/Ext";
65
+ };
66
+ };
67
+ readonly $defs: {
68
+ readonly Response: {
69
+ readonly $anchor: "response";
70
+ readonly title: "VTC Directory — Card — Publish — response payload";
71
+ readonly description: "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.";
72
+ readonly type: "object";
73
+ readonly additionalProperties: false;
74
+ readonly required: readonly ["externalCard"];
75
+ readonly properties: {
76
+ readonly externalCard: {
77
+ readonly $ref: "#/$defs/ExternalCard";
78
+ readonly description: "`published`, with the digest of the card now served.";
79
+ };
80
+ readonly ext: {
81
+ readonly $ref: "#/$defs/Ext";
82
+ };
83
+ };
84
+ };
85
+ readonly Ext: {
86
+ readonly title: "Ext";
87
+ readonly 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.";
88
+ readonly type: "object";
89
+ readonly minProperties: 1;
90
+ readonly additionalProperties: true;
91
+ readonly propertyNames: {
92
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
93
+ };
94
+ };
95
+ readonly ExternalCard: {
96
+ readonly title: "ExternalCard";
97
+ readonly description: "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.";
98
+ readonly type: "object";
99
+ readonly additionalProperties: false;
100
+ readonly required: readonly ["state"];
101
+ readonly properties: {
102
+ readonly state: {
103
+ readonly type: "string";
104
+ readonly enum: readonly ["published", "awaitingSignature"];
105
+ };
106
+ readonly cardDigest: {
107
+ readonly $ref: "#/$defs/DigestMultibase";
108
+ readonly description: "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it.";
109
+ };
110
+ readonly publishedAt: {
111
+ readonly type: "string";
112
+ readonly format: "date-time";
113
+ readonly description: "Present while `published`: when the card now served was published.";
114
+ };
115
+ };
116
+ };
117
+ readonly DigestMultibase: {
118
+ readonly title: "DigestMultibase";
119
+ readonly 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`.";
120
+ readonly type: "string";
121
+ readonly minLength: 16;
122
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
123
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
124
+ };
125
+ readonly PublishedCard: {
126
+ readonly title: "PublishedCard";
127
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
128
+ readonly type: "object";
129
+ readonly additionalProperties: true;
130
+ };
131
+ };
132
+ };
133
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
134
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
135
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
136
+ readonly $ref: "#/$defs/Response";
137
+ readonly $defs: {
138
+ readonly Response: {
139
+ readonly $anchor: "response";
140
+ readonly title: "VTC Directory — Card — Publish — response payload";
141
+ readonly description: "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.";
142
+ readonly type: "object";
143
+ readonly additionalProperties: false;
144
+ readonly required: readonly ["externalCard"];
145
+ readonly properties: {
146
+ readonly externalCard: {
147
+ readonly $ref: "#/$defs/ExternalCard";
148
+ readonly description: "`published`, with the digest of the card now served.";
149
+ };
150
+ readonly ext: {
151
+ readonly $ref: "#/$defs/Ext";
152
+ };
153
+ };
154
+ };
155
+ readonly Ext: {
156
+ readonly title: "Ext";
157
+ readonly 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.";
158
+ readonly type: "object";
159
+ readonly minProperties: 1;
160
+ readonly additionalProperties: true;
161
+ readonly propertyNames: {
162
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
163
+ };
164
+ };
165
+ readonly ExternalCard: {
166
+ readonly title: "ExternalCard";
167
+ readonly description: "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.";
168
+ readonly type: "object";
169
+ readonly additionalProperties: false;
170
+ readonly required: readonly ["state"];
171
+ readonly properties: {
172
+ readonly state: {
173
+ readonly type: "string";
174
+ readonly enum: readonly ["published", "awaitingSignature"];
175
+ };
176
+ readonly cardDigest: {
177
+ readonly $ref: "#/$defs/DigestMultibase";
178
+ readonly description: "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it.";
179
+ };
180
+ readonly publishedAt: {
181
+ readonly type: "string";
182
+ readonly format: "date-time";
183
+ readonly description: "Present while `published`: when the card now served was published.";
184
+ };
185
+ };
186
+ };
187
+ readonly DigestMultibase: {
188
+ readonly title: "DigestMultibase";
189
+ readonly 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`.";
190
+ readonly type: "string";
191
+ readonly minLength: 16;
192
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
193
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
194
+ };
195
+ readonly PublishedCard: {
196
+ readonly title: "PublishedCard";
197
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
198
+ readonly type: "object";
199
+ readonly additionalProperties: true;
200
+ };
201
+ };
202
+ };
203
+ /**
204
+ * SPEC.md §7.2 policy for the request variant, from this specification's
205
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
206
+ * per-specification and cannot be derived from the document alone, and
207
+ * item 2 needs the schema this carries.
208
+ */
209
+ export declare const SPEC: {
210
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1";
211
+ readonly isBearer: false;
212
+ readonly isProofRequired: true;
213
+ readonly isRecipientRequired: true;
214
+ readonly isIssuedAtRequired: true;
215
+ readonly payloadSchema: {
216
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
217
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1";
218
+ readonly title: "VTC Directory — Card — Publish — payload";
219
+ readonly description: "A member publishes their external card: their `public` values as a JSContact card they signed. The community serves it as signed and points its trust registry to it; it never signs or composes the card itself. The outer document members are owned by the framework — SPEC §6.3.";
220
+ readonly type: "object";
221
+ readonly additionalProperties: false;
222
+ readonly required: readonly ["card"];
223
+ readonly properties: {
224
+ readonly card: {
225
+ readonly $ref: "#/$defs/PublishedCard";
226
+ };
227
+ readonly expectedRevision: {
228
+ readonly type: "integer";
229
+ readonly minimum: 0;
230
+ readonly description: "The card revision the member signed against. Where the card has changed since, the answer is `superseded` and nothing is published.";
231
+ };
232
+ readonly ext: {
233
+ readonly $ref: "#/$defs/Ext";
234
+ };
235
+ };
236
+ readonly $defs: {
237
+ readonly Response: {
238
+ readonly $anchor: "response";
239
+ readonly title: "VTC Directory — Card — Publish — response payload";
240
+ readonly description: "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.";
241
+ readonly type: "object";
242
+ readonly additionalProperties: false;
243
+ readonly required: readonly ["externalCard"];
244
+ readonly properties: {
245
+ readonly externalCard: {
246
+ readonly $ref: "#/$defs/ExternalCard";
247
+ readonly description: "`published`, with the digest of the card now served.";
248
+ };
249
+ readonly ext: {
250
+ readonly $ref: "#/$defs/Ext";
251
+ };
252
+ };
253
+ };
254
+ readonly Ext: {
255
+ readonly title: "Ext";
256
+ readonly 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.";
257
+ readonly type: "object";
258
+ readonly minProperties: 1;
259
+ readonly additionalProperties: true;
260
+ readonly propertyNames: {
261
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
262
+ };
263
+ };
264
+ readonly ExternalCard: {
265
+ readonly title: "ExternalCard";
266
+ readonly description: "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.";
267
+ readonly type: "object";
268
+ readonly additionalProperties: false;
269
+ readonly required: readonly ["state"];
270
+ readonly properties: {
271
+ readonly state: {
272
+ readonly type: "string";
273
+ readonly enum: readonly ["published", "awaitingSignature"];
274
+ };
275
+ readonly cardDigest: {
276
+ readonly $ref: "#/$defs/DigestMultibase";
277
+ readonly description: "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it.";
278
+ };
279
+ readonly publishedAt: {
280
+ readonly type: "string";
281
+ readonly format: "date-time";
282
+ readonly description: "Present while `published`: when the card now served was published.";
283
+ };
284
+ };
285
+ };
286
+ readonly DigestMultibase: {
287
+ readonly title: "DigestMultibase";
288
+ readonly 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`.";
289
+ readonly type: "string";
290
+ readonly minLength: 16;
291
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
292
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
293
+ };
294
+ readonly PublishedCard: {
295
+ readonly title: "PublishedCard";
296
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
297
+ readonly type: "object";
298
+ readonly additionalProperties: true;
299
+ };
300
+ };
301
+ };
302
+ };
303
+ /**
304
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
305
+ * tracks the *issuer* party's requirement because a response swaps the
306
+ * parties (§7.3 item 5).
307
+ */
308
+ export declare const RESPONSE_SPEC: {
309
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response";
310
+ readonly isBearer: false;
311
+ readonly isProofRequired: true;
312
+ readonly isRecipientRequired: true;
313
+ readonly isIssuedAtRequired: true;
314
+ readonly payloadSchema: {
315
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
316
+ readonly $ref: "#/$defs/Response";
317
+ readonly $defs: {
318
+ readonly Response: {
319
+ readonly $anchor: "response";
320
+ readonly title: "VTC Directory — Card — Publish — response payload";
321
+ readonly description: "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.";
322
+ readonly type: "object";
323
+ readonly additionalProperties: false;
324
+ readonly required: readonly ["externalCard"];
325
+ readonly properties: {
326
+ readonly externalCard: {
327
+ readonly $ref: "#/$defs/ExternalCard";
328
+ readonly description: "`published`, with the digest of the card now served.";
329
+ };
330
+ readonly ext: {
331
+ readonly $ref: "#/$defs/Ext";
332
+ };
333
+ };
334
+ };
335
+ readonly Ext: {
336
+ readonly title: "Ext";
337
+ readonly 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.";
338
+ readonly type: "object";
339
+ readonly minProperties: 1;
340
+ readonly additionalProperties: true;
341
+ readonly propertyNames: {
342
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
343
+ };
344
+ };
345
+ readonly ExternalCard: {
346
+ readonly title: "ExternalCard";
347
+ readonly description: "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.";
348
+ readonly type: "object";
349
+ readonly additionalProperties: false;
350
+ readonly required: readonly ["state"];
351
+ readonly properties: {
352
+ readonly state: {
353
+ readonly type: "string";
354
+ readonly enum: readonly ["published", "awaitingSignature"];
355
+ };
356
+ readonly cardDigest: {
357
+ readonly $ref: "#/$defs/DigestMultibase";
358
+ readonly description: "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it.";
359
+ };
360
+ readonly publishedAt: {
361
+ readonly type: "string";
362
+ readonly format: "date-time";
363
+ readonly description: "Present while `published`: when the card now served was published.";
364
+ };
365
+ };
366
+ };
367
+ readonly DigestMultibase: {
368
+ readonly title: "DigestMultibase";
369
+ readonly 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`.";
370
+ readonly type: "string";
371
+ readonly minLength: 16;
372
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
373
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
374
+ };
375
+ readonly PublishedCard: {
376
+ readonly title: "PublishedCard";
377
+ readonly description: "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.";
378
+ readonly type: "object";
379
+ readonly additionalProperties: true;
380
+ };
381
+ };
382
+ };
383
+ };
384
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
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;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,222 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/publish/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/publish/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vtc/directory/card/publish/0.1",
21
+ "title": "VTC Directory — Card — Publish — payload",
22
+ "description": "A member publishes their external card: their `public` values as a JSContact card they signed. The community serves it as signed and points its trust registry to it; it never signs or composes the card itself. The outer document members are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "card"
27
+ ],
28
+ "properties": {
29
+ "card": {
30
+ "$ref": "#/$defs/PublishedCard"
31
+ },
32
+ "expectedRevision": {
33
+ "type": "integer",
34
+ "minimum": 0,
35
+ "description": "The card revision the member signed against. Where the card has changed since, the answer is `superseded` and nothing is published."
36
+ },
37
+ "ext": {
38
+ "$ref": "#/$defs/Ext"
39
+ }
40
+ },
41
+ "$defs": {
42
+ "Response": {
43
+ "$anchor": "response",
44
+ "title": "VTC Directory — Card — Publish — response payload",
45
+ "description": "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "externalCard"
50
+ ],
51
+ "properties": {
52
+ "externalCard": {
53
+ "$ref": "#/$defs/ExternalCard",
54
+ "description": "`published`, with the digest of the card now served."
55
+ },
56
+ "ext": {
57
+ "$ref": "#/$defs/Ext"
58
+ }
59
+ }
60
+ },
61
+ "Ext": {
62
+ "title": "Ext",
63
+ "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.",
64
+ "type": "object",
65
+ "minProperties": 1,
66
+ "additionalProperties": true,
67
+ "propertyNames": {
68
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
69
+ }
70
+ },
71
+ "ExternalCard": {
72
+ "title": "ExternalCard",
73
+ "description": "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "state"
78
+ ],
79
+ "properties": {
80
+ "state": {
81
+ "type": "string",
82
+ "enum": [
83
+ "published",
84
+ "awaitingSignature"
85
+ ]
86
+ },
87
+ "cardDigest": {
88
+ "$ref": "#/$defs/DigestMultibase",
89
+ "description": "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it."
90
+ },
91
+ "publishedAt": {
92
+ "type": "string",
93
+ "format": "date-time",
94
+ "description": "Present while `published`: when the card now served was published."
95
+ }
96
+ }
97
+ },
98
+ "DigestMultibase": {
99
+ "title": "DigestMultibase",
100
+ "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`.",
101
+ "type": "string",
102
+ "minLength": 16,
103
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
104
+ "examples": [
105
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
106
+ ]
107
+ },
108
+ "PublishedCard": {
109
+ "title": "PublishedCard",
110
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
111
+ "type": "object",
112
+ "additionalProperties": true
113
+ }
114
+ }
115
+ };
116
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
117
+ export const RESPONSE_PAYLOAD_SCHEMA = {
118
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
119
+ "$ref": "#/$defs/Response",
120
+ "$defs": {
121
+ "Response": {
122
+ "$anchor": "response",
123
+ "title": "VTC Directory — Card — Publish — response payload",
124
+ "description": "The success response to a vtc/directory/card/publish/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/publish/0.1#response.",
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "externalCard"
129
+ ],
130
+ "properties": {
131
+ "externalCard": {
132
+ "$ref": "#/$defs/ExternalCard",
133
+ "description": "`published`, with the digest of the card now served."
134
+ },
135
+ "ext": {
136
+ "$ref": "#/$defs/Ext"
137
+ }
138
+ }
139
+ },
140
+ "Ext": {
141
+ "title": "Ext",
142
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
143
+ "type": "object",
144
+ "minProperties": 1,
145
+ "additionalProperties": true,
146
+ "propertyNames": {
147
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
148
+ }
149
+ },
150
+ "ExternalCard": {
151
+ "title": "ExternalCard",
152
+ "description": "Where the member's external card stands. Present on a card exactly when `discoverability.external` is true. `published`: the community is serving the card the member signed, and its trust registry points to it. `awaitingSignature`: the member's `public` values have changed since they signed, so the community has withdrawn the card it was serving and serves none until the member signs the current values (vtc/directory/card/publish). The community never serves a card the member did not sign, and never one that differs from their current `public` values.",
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "required": [
156
+ "state"
157
+ ],
158
+ "properties": {
159
+ "state": {
160
+ "type": "string",
161
+ "enum": [
162
+ "published",
163
+ "awaitingSignature"
164
+ ]
165
+ },
166
+ "cardDigest": {
167
+ "$ref": "#/$defs/DigestMultibase",
168
+ "description": "Present while `published`: digest of the card served, as vtc/directory/card/publish defines it."
169
+ },
170
+ "publishedAt": {
171
+ "type": "string",
172
+ "format": "date-time",
173
+ "description": "Present while `published`: when the card now served was published."
174
+ }
175
+ }
176
+ },
177
+ "DigestMultibase": {
178
+ "title": "DigestMultibase",
179
+ "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`.",
180
+ "type": "string",
181
+ "minLength": 16,
182
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
183
+ "examples": [
184
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
185
+ ]
186
+ },
187
+ "PublishedCard": {
188
+ "title": "PublishedCard",
189
+ "description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
190
+ "type": "object",
191
+ "additionalProperties": true
192
+ }
193
+ }
194
+ };
195
+ /**
196
+ * SPEC.md §7.2 policy for the request variant, from this specification's
197
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
198
+ * per-specification and cannot be derived from the document alone, and
199
+ * item 2 needs the schema this carries.
200
+ */
201
+ export const SPEC = {
202
+ typeUri: TYPE_URI,
203
+ isBearer: false,
204
+ isProofRequired: true,
205
+ isRecipientRequired: true,
206
+ isIssuedAtRequired: true,
207
+ payloadSchema: PAYLOAD_SCHEMA,
208
+ };
209
+ /**
210
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
211
+ * tracks the *issuer* party's requirement because a response swaps the
212
+ * parties (§7.3 item 5).
213
+ */
214
+ export const RESPONSE_SPEC = {
215
+ typeUri: RESPONSE_TYPE_URI,
216
+ isBearer: false,
217
+ isProofRequired: true,
218
+ isRecipientRequired: true,
219
+ isIssuedAtRequired: true,
220
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
221
+ };
222
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/direct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