@openvtc/trust-tasks 0.26.17 → 0.26.18

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 (323) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/_shared/components.d.ts +755 -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 +52 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +52 -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/remove/0.3/payload.d.ts +600 -0
  83. package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
  84. package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
  85. package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
  86. package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
  87. package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
  88. package/dist/rooms/owner/register/0.2/payload.js +335 -0
  89. package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
  90. package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
  91. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
  92. package/dist/rooms/records/get/0.1/payload.js +12 -2
  93. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  94. package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
  95. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
  96. package/dist/rooms/records/get/0.2/payload.js +12 -2
  97. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  98. package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
  99. package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
  100. package/dist/rooms/records/put/0.1/payload.js +12 -2
  101. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  102. package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
  103. package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
  104. package/dist/rooms/records/put/0.2/payload.js +12 -2
  105. package/dist/rooms/records/put/0.2/payload.js.map +1 -1
  106. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
  107. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
  108. package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
  109. package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
  110. package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
  111. package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
  112. package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
  113. package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
  114. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
  115. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
  116. package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
  117. package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
  118. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
  119. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
  120. package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
  121. package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
  122. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
  123. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
  124. package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
  125. package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
  126. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
  127. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
  128. package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
  129. package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
  130. package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
  131. package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
  133. package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
  134. package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
  135. package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
  137. package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
  138. package/dist/vtc/directory/card/show/0.1/payload.d.ts +1144 -0
  139. package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/directory/card/show/0.1/payload.js +695 -0
  141. package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
  142. package/dist/vtc/directory/card/update/0.1/payload.d.ts +1291 -0
  143. package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/directory/card/update/0.1/payload.js +765 -0
  145. package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
  146. package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
  147. package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
  149. package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
  150. package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
  151. package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
  153. package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
  154. package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
  155. package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/directory/export/0.1/payload.js +192 -0
  157. package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
  158. package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
  159. package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
  161. package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
  162. package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
  163. package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
  165. package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
  166. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
  167. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
  168. package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
  169. package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
  170. package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
  171. package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
  172. package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
  173. package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
  174. package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
  175. package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
  176. package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
  177. package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
  178. package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
  179. package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
  180. package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
  181. package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
  182. package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
  183. package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
  184. package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
  185. package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
  186. package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
  187. package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
  188. package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
  189. package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
  190. package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
  191. package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
  192. package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
  193. package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
  194. package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
  195. package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
  196. package/dist/vtc/groups/_shared/0.1/group.js +6 -0
  197. package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
  198. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
  199. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
  200. package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
  201. package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
  202. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
  203. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
  204. package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
  205. package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
  206. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
  207. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
  208. package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
  209. package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
  210. package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
  211. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
  212. package/dist/vtc/groups/create/0.1/payload.js +631 -0
  213. package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
  214. package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
  215. package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
  216. package/dist/vtc/groups/delete/0.1/payload.js +182 -0
  217. package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
  218. package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
  219. package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
  220. package/dist/vtc/groups/join/0.1/payload.js +758 -0
  221. package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
  222. package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
  223. package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
  224. package/dist/vtc/groups/leave/0.1/payload.js +179 -0
  225. package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
  226. package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
  227. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
  228. package/dist/vtc/groups/list/0.1/payload.js +674 -0
  229. package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
  230. package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
  231. package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
  232. package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
  233. package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
  234. package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
  235. package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
  236. package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
  237. package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
  238. package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
  239. package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
  240. package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
  241. package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
  242. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
  243. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
  244. package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
  245. package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
  246. package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
  247. package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
  248. package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
  249. package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
  250. package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
  251. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
  252. package/dist/vtc/groups/show/0.1/payload.js +619 -0
  253. package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
  254. package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
  255. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
  256. package/dist/vtc/groups/update/0.1/payload.js +633 -0
  257. package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
  258. package/package.json +1 -1
  259. package/src/_shared/components.ts +800 -1
  260. package/src/auth/oob/_shared/0.1/oob.ts +1 -1
  261. package/src/auth/oob/grant/0.2/payload.ts +186 -0
  262. package/src/auth/oob/prove/0.2/payload.ts +523 -0
  263. package/src/auth/oob/respond/0.2/payload.ts +178 -0
  264. package/src/device/list/0.1/payload.ts +2 -0
  265. package/src/device/list/0.2/payload.ts +2 -0
  266. package/src/device/register/0.1/payload.ts +2 -0
  267. package/src/device/register/0.2/payload.ts +2 -0
  268. package/src/index.ts +52 -0
  269. package/src/keys/sign-document/0.1/payload.ts +437 -0
  270. package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
  271. package/src/persona/contact/get/1.1/payload.ts +876 -0
  272. package/src/persona/contact/list/1.1/payload.ts +497 -0
  273. package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
  274. package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
  275. package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
  276. package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
  277. package/src/persona/contact/put/1.1/payload.ts +958 -0
  278. package/src/rooms/keys/seal/0.1/payload.ts +12 -2
  279. package/src/rooms/keys/seal/0.2/payload.ts +12 -2
  280. package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
  281. package/src/rooms/owner/register/0.2/payload.ts +415 -0
  282. package/src/rooms/records/get/0.1/payload.ts +12 -2
  283. package/src/rooms/records/get/0.2/payload.ts +12 -2
  284. package/src/rooms/records/put/0.1/payload.ts +12 -2
  285. package/src/rooms/records/put/0.2/payload.ts +12 -2
  286. package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
  287. package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
  288. package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
  289. package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
  290. package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
  291. package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
  292. package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
  293. package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
  294. package/src/vtc/directory/card/show/0.1/payload.ts +732 -0
  295. package/src/vtc/directory/card/update/0.1/payload.ts +827 -0
  296. package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
  297. package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
  298. package/src/vtc/directory/export/0.1/payload.ts +241 -0
  299. package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
  300. package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
  301. package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
  302. package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
  303. package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
  304. package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
  305. package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
  306. package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
  307. package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
  308. package/src/vtc/groups/_shared/0.1/group.ts +23 -0
  309. package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
  310. package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
  311. package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
  312. package/src/vtc/groups/create/0.1/payload.ts +683 -0
  313. package/src/vtc/groups/delete/0.1/payload.ts +224 -0
  314. package/src/vtc/groups/join/0.1/payload.ts +807 -0
  315. package/src/vtc/groups/leave/0.1/payload.ts +219 -0
  316. package/src/vtc/groups/list/0.1/payload.ts +728 -0
  317. package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
  318. package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
  319. package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
  320. package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
  321. package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
  322. package/src/vtc/groups/show/0.1/payload.ts +652 -0
  323. package/src/vtc/groups/update/0.1/payload.ts +682 -0
@@ -0,0 +1,827 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/update/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Audience, CardBlobRef, CardValues, DirectoryCard, Discoverability, EntryId, Ext, FieldKey, FieldValue, FieldVisibility, GroupId, Introductions, Listing, VerifiedValue } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A member changes their own directory card: values they write themselves, the visibility of each field, their discoverability and who may ask to be introduced to them. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCDirectoryCardUpdatePayload {
13
+ /**
14
+ * Values to set, keyed by field; `null` clears one. Fields not named are unchanged. Only `member`-sourced fields.
15
+ */
16
+ values?: {
17
+ [k: string]: (FieldValue | null) | undefined;
18
+ };
19
+ /**
20
+ * Visibilities to set, keyed by field; `null` returns a field to its default. Applies to any non-derived field on the card, whoever wrote its value, and to the derived fields the community lets a member widen (`did`).
21
+ */
22
+ visibility?: {
23
+ [k: string]: (Audience | null) | undefined;
24
+ };
25
+ /**
26
+ * Replaces the member's discoverability whole.
27
+ */
28
+ discoverability?: Discoverability;
29
+ introductions?: Introductions;
30
+ /**
31
+ * Replaces the groups that count as the `groups` audience; `null` returns to every group the member is in.
32
+ *
33
+ * @maxItems 64
34
+ */
35
+ groupAudience?: GroupId[] | null;
36
+ /**
37
+ * Optional: apply only if the card is at this revision, else refuse with `superseded`.
38
+ */
39
+ expectedRevision?: number;
40
+ ext?: Ext;
41
+ }
42
+ /**
43
+ * The success response to a vtc/directory/card/update/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/update/0.1#response.
44
+ */
45
+ export interface VTCDirectoryCardUpdateResponsePayload {
46
+ card: DirectoryCard;
47
+ /**
48
+ * @maxItems 64
49
+ */
50
+ missingRequired: FieldKey[];
51
+ ext?: Ext;
52
+ }
53
+
54
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
55
+ export type { Audience, CardBlobRef, CardValues, DirectoryCard, Discoverability, EntryId, Ext, FieldKey, FieldValue, FieldVisibility, GroupId, Introductions, Listing, VerifiedValue };
56
+
57
+ /** Trust Task type URI. */
58
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/update/0.1" as const;
59
+
60
+ /** Stable alias for this specification's request payload shape. */
61
+ export type Payload = VTCDirectoryCardUpdatePayload;
62
+
63
+ /** Trust Task response type URI (request type URI + "#response"). */
64
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/update/0.1#response" as const;
65
+
66
+ /** Stable alias for this specification's success-response payload shape. */
67
+ export type Response = VTCDirectoryCardUpdateResponsePayload;
68
+
69
+ /**
70
+ * This specification's payload schema, as a value.
71
+ *
72
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
73
+ * rather than only as a `.json` file because TypeScript types are erased
74
+ * at runtime: without a schema a consumer has nothing to validate, and
75
+ * every REQUIRED payload member is optional in practice. Cross-file
76
+ * `$ref`s are already inlined, so it needs no resolver.
77
+ */
78
+ export const PAYLOAD_SCHEMA = {
79
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
80
+ "$id": "https://trusttasks.org/spec/vtc/directory/card/update/0.1",
81
+ "title": "VTC Directory — Card — Update — payload",
82
+ "description": "A member changes their own directory card: values they write themselves, the visibility of each field, their discoverability and who may ask to be introduced to them. The outer document members are owned by the framework — SPEC §6.3.",
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "properties": {
86
+ "values": {
87
+ "type": "object",
88
+ "maxProperties": 64,
89
+ "propertyNames": {
90
+ "$ref": "#/$defs/FieldKey"
91
+ },
92
+ "additionalProperties": {
93
+ "anyOf": [
94
+ {
95
+ "$ref": "#/$defs/FieldValue"
96
+ },
97
+ {
98
+ "type": "null"
99
+ }
100
+ ]
101
+ },
102
+ "description": "Values to set, keyed by field; `null` clears one. Fields not named are unchanged. Only `member`-sourced fields."
103
+ },
104
+ "visibility": {
105
+ "type": "object",
106
+ "maxProperties": 64,
107
+ "propertyNames": {
108
+ "$ref": "#/$defs/FieldKey"
109
+ },
110
+ "additionalProperties": {
111
+ "anyOf": [
112
+ {
113
+ "$ref": "#/$defs/Audience"
114
+ },
115
+ {
116
+ "type": "null"
117
+ }
118
+ ]
119
+ },
120
+ "description": "Visibilities to set, keyed by field; `null` returns a field to its default. Applies to any non-derived field on the card, whoever wrote its value, and to the derived fields the community lets a member widen (`did`)."
121
+ },
122
+ "discoverability": {
123
+ "$ref": "#/$defs/Discoverability",
124
+ "description": "Replaces the member's discoverability whole."
125
+ },
126
+ "introductions": {
127
+ "$ref": "#/$defs/Introductions"
128
+ },
129
+ "groupAudience": {
130
+ "type": [
131
+ "array",
132
+ "null"
133
+ ],
134
+ "maxItems": 64,
135
+ "uniqueItems": true,
136
+ "items": {
137
+ "$ref": "#/$defs/GroupId"
138
+ },
139
+ "description": "Replaces the groups that count as the `groups` audience; `null` returns to every group the member is in."
140
+ },
141
+ "expectedRevision": {
142
+ "type": "integer",
143
+ "minimum": 0,
144
+ "description": "Optional: apply only if the card is at this revision, else refuse with `superseded`."
145
+ },
146
+ "ext": {
147
+ "$ref": "#/$defs/Ext"
148
+ }
149
+ },
150
+ "$defs": {
151
+ "Response": {
152
+ "$anchor": "response",
153
+ "title": "VTC Directory — Card — Update — response payload",
154
+ "description": "The success response to a vtc/directory/card/update/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/update/0.1#response.",
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "required": [
158
+ "card",
159
+ "missingRequired"
160
+ ],
161
+ "properties": {
162
+ "card": {
163
+ "$ref": "#/$defs/DirectoryCard"
164
+ },
165
+ "missingRequired": {
166
+ "type": "array",
167
+ "maxItems": 64,
168
+ "items": {
169
+ "$ref": "#/$defs/FieldKey"
170
+ }
171
+ },
172
+ "ext": {
173
+ "$ref": "#/$defs/Ext"
174
+ }
175
+ }
176
+ },
177
+ "Ext": {
178
+ "title": "Ext",
179
+ "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.",
180
+ "type": "object",
181
+ "minProperties": 1,
182
+ "additionalProperties": true,
183
+ "propertyNames": {
184
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
185
+ }
186
+ },
187
+ "FieldKey": {
188
+ "title": "FieldKey",
189
+ "description": "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.",
190
+ "type": "string",
191
+ "minLength": 1,
192
+ "maxLength": 128,
193
+ "pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
194
+ },
195
+ "DirectoryCard": {
196
+ "title": "DirectoryCard",
197
+ "description": "A member's own directory record: their values, a visibility for each field, their discoverability and who may ask to be introduced. Returned whole only to its subject. Every other reader receives a `DirectoryEntry`.",
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "required": [
201
+ "entryId",
202
+ "values",
203
+ "visibility",
204
+ "discoverability",
205
+ "introductions",
206
+ "revision",
207
+ "updatedAt"
208
+ ],
209
+ "properties": {
210
+ "entryId": {
211
+ "$ref": "#/$defs/EntryId"
212
+ },
213
+ "values": {
214
+ "$ref": "#/$defs/CardValues"
215
+ },
216
+ "visibility": {
217
+ "$ref": "#/$defs/FieldVisibility"
218
+ },
219
+ "discoverability": {
220
+ "$ref": "#/$defs/Discoverability"
221
+ },
222
+ "introductions": {
223
+ "$ref": "#/$defs/Introductions"
224
+ },
225
+ "groupAudience": {
226
+ "type": "array",
227
+ "maxItems": 64,
228
+ "uniqueItems": true,
229
+ "items": {
230
+ "type": "string",
231
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
232
+ },
233
+ "description": "The community groups whose members count as the `groups` audience for this card. Absent: every community group the subject belongs to. A group the subject has left stops counting at once."
234
+ },
235
+ "revision": {
236
+ "type": "integer",
237
+ "minimum": 0,
238
+ "description": "Incremented on every accepted change to the card, by its subject or by an administrator's assertion."
239
+ },
240
+ "updatedAt": {
241
+ "type": "string",
242
+ "format": "date-time",
243
+ "description": "When the card last changed."
244
+ },
245
+ "ext": {
246
+ "$ref": "#/$defs/Ext",
247
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection."
248
+ }
249
+ }
250
+ },
251
+ "Introductions": {
252
+ "title": "Introductions",
253
+ "description": "Who may ask the community to introduce them to this member. `anyone`: any active member who can find the entry. `groups`: only members who share a community group with them. `connections`: only members holding an attributed, in-force verified relationship with them. `off`: nobody. A refused introduction is never reported to its sender.",
254
+ "type": "string",
255
+ "enum": [
256
+ "anyone",
257
+ "groups",
258
+ "connections",
259
+ "off"
260
+ ]
261
+ },
262
+ "Discoverability": {
263
+ "title": "Discoverability",
264
+ "description": "The member's three discoverability decisions, made separately.",
265
+ "type": "object",
266
+ "additionalProperties": false,
267
+ "required": [
268
+ "listing",
269
+ "search",
270
+ "external"
271
+ ],
272
+ "properties": {
273
+ "listing": {
274
+ "$ref": "#/$defs/Listing"
275
+ },
276
+ "search": {
277
+ "type": "string",
278
+ "enum": [
279
+ "byName",
280
+ "exactNickname",
281
+ "off"
282
+ ],
283
+ "description": "What a member's search may match. `byName`: `displayName` or `nickname`. `exactNickname`: only an exact `nickname`. `off`: nothing. A DID is never a search key for a non-administrator, whatever this says."
284
+ },
285
+ "external": {
286
+ "type": "boolean",
287
+ "description": "Whether the member publishes a public card — the fields whose visibility is `public`, signed by the member — through the community's trust registry. A second consent, separate from registry-publication consent (`publishConsent`), which it requires. A community that cannot yet publish external cards refuses `true` with `notAvailable`."
288
+ }
289
+ }
290
+ },
291
+ "Listing": {
292
+ "title": "Listing",
293
+ "description": "Whether members can find the entry. `listed`: it appears when members browse. `findable`: it does not appear when browsing, but a search that matches it under `search` returns it. `hidden`: no member finds it by browsing or searching; administrators still see it, and members who share a group that shows its members see it in that group's member list.",
294
+ "type": "string",
295
+ "enum": [
296
+ "listed",
297
+ "findable",
298
+ "hidden"
299
+ ]
300
+ },
301
+ "FieldVisibility": {
302
+ "title": "FieldVisibility",
303
+ "description": "The audience the member chose for each field. A field with no entry here takes its definition's `defaultVisibility`. The community MUST NOT widen a member's choice: widening a field's ceiling or default changes no visibility already recorded.",
304
+ "type": "object",
305
+ "maxProperties": 64,
306
+ "propertyNames": {
307
+ "$ref": "#/$defs/FieldKey"
308
+ },
309
+ "additionalProperties": {
310
+ "$ref": "#/$defs/Audience"
311
+ }
312
+ },
313
+ "Audience": {
314
+ "title": "Audience",
315
+ "description": "Who may see a directory field, ordered from narrowest to widest. `admins`: holders of `vtc.directory.admin` (and, for derived fields, `vtc.members.manage`). `groups`: members who share at least one community group with the subject (narrowed to the groups the subject names in `groupAudience`, where it names any). `connections`: members holding an attributed, in-force verified relationship with the subject at the community. `members`: every active member. `public`: anyone, and what the member's signed public card carries outside the community.\n\n`groups` and `connections` are not a chain: a viewer sees a field when they satisfy the audience the subject chose for it or any wider audience. Every audience includes the administrators, and the subject always sees their own whole card. There is no `onlyMe`: a value nobody else should see is not directory data.",
316
+ "type": "string",
317
+ "enum": [
318
+ "admins",
319
+ "groups",
320
+ "connections",
321
+ "members",
322
+ "public"
323
+ ]
324
+ },
325
+ "CardValues": {
326
+ "title": "CardValues",
327
+ "description": "A card's stored values, keyed by field. Holds `member`-, `admin`- and `credential`-sourced fields only; derived fields (`role`, `joinedAt`, `did`, `personhood`) are read from the community's own records when a projection is made, never stored here. At most 64 values, and at most 16 KiB serialized excluding the blobs a `CardBlobRef` names.",
328
+ "type": "object",
329
+ "maxProperties": 64,
330
+ "propertyNames": {
331
+ "$ref": "#/$defs/FieldKey"
332
+ },
333
+ "additionalProperties": {
334
+ "$ref": "#/$defs/FieldValue"
335
+ }
336
+ },
337
+ "FieldValue": {
338
+ "title": "FieldValue",
339
+ "description": "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.",
340
+ "anyOf": [
341
+ {
342
+ "type": "string",
343
+ "maxLength": 2000
344
+ },
345
+ {
346
+ "type": "boolean"
347
+ },
348
+ {
349
+ "type": "array",
350
+ "maxItems": 32,
351
+ "items": {
352
+ "type": "string",
353
+ "maxLength": 500
354
+ }
355
+ },
356
+ {
357
+ "$ref": "#/$defs/CardBlobRef"
358
+ },
359
+ {
360
+ "$ref": "#/$defs/VerifiedValue"
361
+ }
362
+ ]
363
+ },
364
+ "VerifiedValue": {
365
+ "title": "VerifiedValue",
366
+ "description": "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.",
367
+ "type": "object",
368
+ "additionalProperties": false,
369
+ "required": [
370
+ "value",
371
+ "issuer",
372
+ "verifiedAt"
373
+ ],
374
+ "properties": {
375
+ "value": {
376
+ "anyOf": [
377
+ {
378
+ "type": "string",
379
+ "maxLength": 2000
380
+ },
381
+ {
382
+ "type": "boolean"
383
+ },
384
+ {
385
+ "type": "number"
386
+ }
387
+ ],
388
+ "description": "The disclosed claim value."
389
+ },
390
+ "issuer": {
391
+ "type": "string",
392
+ "pattern": "^did:",
393
+ "maxLength": 2048,
394
+ "description": "DID of the credential's issuer, shown as the field's verification badge."
395
+ },
396
+ "credentialType": {
397
+ "type": "string",
398
+ "minLength": 1,
399
+ "maxLength": 128,
400
+ "description": "The most specific `type` of the credential the claim came from."
401
+ },
402
+ "verifiedAt": {
403
+ "type": "string",
404
+ "format": "date-time",
405
+ "description": "When the community verified the presentation."
406
+ },
407
+ "validUntil": {
408
+ "type": "string",
409
+ "format": "date-time",
410
+ "description": "When the credential expires, where it does. The community withdraws the value once it passes."
411
+ }
412
+ }
413
+ },
414
+ "CardBlobRef": {
415
+ "title": "CardBlobRef",
416
+ "description": "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (metadata stripped, dimensions capped) so its digest does not link the member across communities. `url` and `urlExpiresAt` appear only in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL.",
417
+ "type": "object",
418
+ "additionalProperties": false,
419
+ "required": [
420
+ "sha256",
421
+ "mediaType"
422
+ ],
423
+ "properties": {
424
+ "sha256": {
425
+ "type": "string",
426
+ "pattern": "^[0-9a-f]{64}$",
427
+ "description": "Lowercase hex SHA-256 of the stored, re-encoded bytes."
428
+ },
429
+ "mediaType": {
430
+ "type": "string",
431
+ "enum": [
432
+ "image/png",
433
+ "image/jpeg",
434
+ "image/webp",
435
+ "image/avif"
436
+ ],
437
+ "description": "Media type of the stored bytes."
438
+ },
439
+ "size": {
440
+ "type": "integer",
441
+ "minimum": 1,
442
+ "maximum": 262144,
443
+ "description": "Size in bytes of the stored bytes."
444
+ },
445
+ "url": {
446
+ "type": "string",
447
+ "format": "uri",
448
+ "maxLength": 2048,
449
+ "description": "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`."
450
+ },
451
+ "urlExpiresAt": {
452
+ "type": "string",
453
+ "format": "date-time",
454
+ "description": "Projection only: when `url` stops working."
455
+ }
456
+ }
457
+ },
458
+ "EntryId": {
459
+ "title": "EntryId",
460
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
461
+ "type": "string",
462
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
463
+ },
464
+ "GroupId": {
465
+ "title": "GroupId",
466
+ "description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
467
+ "type": "string",
468
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
469
+ }
470
+ }
471
+ } as const;
472
+
473
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
474
+ export const RESPONSE_PAYLOAD_SCHEMA = {
475
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
476
+ "$ref": "#/$defs/Response",
477
+ "$defs": {
478
+ "Response": {
479
+ "$anchor": "response",
480
+ "title": "VTC Directory — Card — Update — response payload",
481
+ "description": "The success response to a vtc/directory/card/update/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/update/0.1#response.",
482
+ "type": "object",
483
+ "additionalProperties": false,
484
+ "required": [
485
+ "card",
486
+ "missingRequired"
487
+ ],
488
+ "properties": {
489
+ "card": {
490
+ "$ref": "#/$defs/DirectoryCard"
491
+ },
492
+ "missingRequired": {
493
+ "type": "array",
494
+ "maxItems": 64,
495
+ "items": {
496
+ "$ref": "#/$defs/FieldKey"
497
+ }
498
+ },
499
+ "ext": {
500
+ "$ref": "#/$defs/Ext"
501
+ }
502
+ }
503
+ },
504
+ "Ext": {
505
+ "title": "Ext",
506
+ "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.",
507
+ "type": "object",
508
+ "minProperties": 1,
509
+ "additionalProperties": true,
510
+ "propertyNames": {
511
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
512
+ }
513
+ },
514
+ "FieldKey": {
515
+ "title": "FieldKey",
516
+ "description": "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.",
517
+ "type": "string",
518
+ "minLength": 1,
519
+ "maxLength": 128,
520
+ "pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
521
+ },
522
+ "DirectoryCard": {
523
+ "title": "DirectoryCard",
524
+ "description": "A member's own directory record: their values, a visibility for each field, their discoverability and who may ask to be introduced. Returned whole only to its subject. Every other reader receives a `DirectoryEntry`.",
525
+ "type": "object",
526
+ "additionalProperties": false,
527
+ "required": [
528
+ "entryId",
529
+ "values",
530
+ "visibility",
531
+ "discoverability",
532
+ "introductions",
533
+ "revision",
534
+ "updatedAt"
535
+ ],
536
+ "properties": {
537
+ "entryId": {
538
+ "$ref": "#/$defs/EntryId"
539
+ },
540
+ "values": {
541
+ "$ref": "#/$defs/CardValues"
542
+ },
543
+ "visibility": {
544
+ "$ref": "#/$defs/FieldVisibility"
545
+ },
546
+ "discoverability": {
547
+ "$ref": "#/$defs/Discoverability"
548
+ },
549
+ "introductions": {
550
+ "$ref": "#/$defs/Introductions"
551
+ },
552
+ "groupAudience": {
553
+ "type": "array",
554
+ "maxItems": 64,
555
+ "uniqueItems": true,
556
+ "items": {
557
+ "type": "string",
558
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
559
+ },
560
+ "description": "The community groups whose members count as the `groups` audience for this card. Absent: every community group the subject belongs to. A group the subject has left stops counting at once."
561
+ },
562
+ "revision": {
563
+ "type": "integer",
564
+ "minimum": 0,
565
+ "description": "Incremented on every accepted change to the card, by its subject or by an administrator's assertion."
566
+ },
567
+ "updatedAt": {
568
+ "type": "string",
569
+ "format": "date-time",
570
+ "description": "When the card last changed."
571
+ },
572
+ "ext": {
573
+ "$ref": "#/$defs/Ext",
574
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection."
575
+ }
576
+ }
577
+ },
578
+ "Introductions": {
579
+ "title": "Introductions",
580
+ "description": "Who may ask the community to introduce them to this member. `anyone`: any active member who can find the entry. `groups`: only members who share a community group with them. `connections`: only members holding an attributed, in-force verified relationship with them. `off`: nobody. A refused introduction is never reported to its sender.",
581
+ "type": "string",
582
+ "enum": [
583
+ "anyone",
584
+ "groups",
585
+ "connections",
586
+ "off"
587
+ ]
588
+ },
589
+ "Discoverability": {
590
+ "title": "Discoverability",
591
+ "description": "The member's three discoverability decisions, made separately.",
592
+ "type": "object",
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "listing",
596
+ "search",
597
+ "external"
598
+ ],
599
+ "properties": {
600
+ "listing": {
601
+ "$ref": "#/$defs/Listing"
602
+ },
603
+ "search": {
604
+ "type": "string",
605
+ "enum": [
606
+ "byName",
607
+ "exactNickname",
608
+ "off"
609
+ ],
610
+ "description": "What a member's search may match. `byName`: `displayName` or `nickname`. `exactNickname`: only an exact `nickname`. `off`: nothing. A DID is never a search key for a non-administrator, whatever this says."
611
+ },
612
+ "external": {
613
+ "type": "boolean",
614
+ "description": "Whether the member publishes a public card — the fields whose visibility is `public`, signed by the member — through the community's trust registry. A second consent, separate from registry-publication consent (`publishConsent`), which it requires. A community that cannot yet publish external cards refuses `true` with `notAvailable`."
615
+ }
616
+ }
617
+ },
618
+ "Listing": {
619
+ "title": "Listing",
620
+ "description": "Whether members can find the entry. `listed`: it appears when members browse. `findable`: it does not appear when browsing, but a search that matches it under `search` returns it. `hidden`: no member finds it by browsing or searching; administrators still see it, and members who share a group that shows its members see it in that group's member list.",
621
+ "type": "string",
622
+ "enum": [
623
+ "listed",
624
+ "findable",
625
+ "hidden"
626
+ ]
627
+ },
628
+ "FieldVisibility": {
629
+ "title": "FieldVisibility",
630
+ "description": "The audience the member chose for each field. A field with no entry here takes its definition's `defaultVisibility`. The community MUST NOT widen a member's choice: widening a field's ceiling or default changes no visibility already recorded.",
631
+ "type": "object",
632
+ "maxProperties": 64,
633
+ "propertyNames": {
634
+ "$ref": "#/$defs/FieldKey"
635
+ },
636
+ "additionalProperties": {
637
+ "$ref": "#/$defs/Audience"
638
+ }
639
+ },
640
+ "Audience": {
641
+ "title": "Audience",
642
+ "description": "Who may see a directory field, ordered from narrowest to widest. `admins`: holders of `vtc.directory.admin` (and, for derived fields, `vtc.members.manage`). `groups`: members who share at least one community group with the subject (narrowed to the groups the subject names in `groupAudience`, where it names any). `connections`: members holding an attributed, in-force verified relationship with the subject at the community. `members`: every active member. `public`: anyone, and what the member's signed public card carries outside the community.\n\n`groups` and `connections` are not a chain: a viewer sees a field when they satisfy the audience the subject chose for it or any wider audience. Every audience includes the administrators, and the subject always sees their own whole card. There is no `onlyMe`: a value nobody else should see is not directory data.",
643
+ "type": "string",
644
+ "enum": [
645
+ "admins",
646
+ "groups",
647
+ "connections",
648
+ "members",
649
+ "public"
650
+ ]
651
+ },
652
+ "CardValues": {
653
+ "title": "CardValues",
654
+ "description": "A card's stored values, keyed by field. Holds `member`-, `admin`- and `credential`-sourced fields only; derived fields (`role`, `joinedAt`, `did`, `personhood`) are read from the community's own records when a projection is made, never stored here. At most 64 values, and at most 16 KiB serialized excluding the blobs a `CardBlobRef` names.",
655
+ "type": "object",
656
+ "maxProperties": 64,
657
+ "propertyNames": {
658
+ "$ref": "#/$defs/FieldKey"
659
+ },
660
+ "additionalProperties": {
661
+ "$ref": "#/$defs/FieldValue"
662
+ }
663
+ },
664
+ "FieldValue": {
665
+ "title": "FieldValue",
666
+ "description": "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.",
667
+ "anyOf": [
668
+ {
669
+ "type": "string",
670
+ "maxLength": 2000
671
+ },
672
+ {
673
+ "type": "boolean"
674
+ },
675
+ {
676
+ "type": "array",
677
+ "maxItems": 32,
678
+ "items": {
679
+ "type": "string",
680
+ "maxLength": 500
681
+ }
682
+ },
683
+ {
684
+ "$ref": "#/$defs/CardBlobRef"
685
+ },
686
+ {
687
+ "$ref": "#/$defs/VerifiedValue"
688
+ }
689
+ ]
690
+ },
691
+ "VerifiedValue": {
692
+ "title": "VerifiedValue",
693
+ "description": "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.",
694
+ "type": "object",
695
+ "additionalProperties": false,
696
+ "required": [
697
+ "value",
698
+ "issuer",
699
+ "verifiedAt"
700
+ ],
701
+ "properties": {
702
+ "value": {
703
+ "anyOf": [
704
+ {
705
+ "type": "string",
706
+ "maxLength": 2000
707
+ },
708
+ {
709
+ "type": "boolean"
710
+ },
711
+ {
712
+ "type": "number"
713
+ }
714
+ ],
715
+ "description": "The disclosed claim value."
716
+ },
717
+ "issuer": {
718
+ "type": "string",
719
+ "pattern": "^did:",
720
+ "maxLength": 2048,
721
+ "description": "DID of the credential's issuer, shown as the field's verification badge."
722
+ },
723
+ "credentialType": {
724
+ "type": "string",
725
+ "minLength": 1,
726
+ "maxLength": 128,
727
+ "description": "The most specific `type` of the credential the claim came from."
728
+ },
729
+ "verifiedAt": {
730
+ "type": "string",
731
+ "format": "date-time",
732
+ "description": "When the community verified the presentation."
733
+ },
734
+ "validUntil": {
735
+ "type": "string",
736
+ "format": "date-time",
737
+ "description": "When the credential expires, where it does. The community withdraws the value once it passes."
738
+ }
739
+ }
740
+ },
741
+ "CardBlobRef": {
742
+ "title": "CardBlobRef",
743
+ "description": "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (metadata stripped, dimensions capped) so its digest does not link the member across communities. `url` and `urlExpiresAt` appear only in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL.",
744
+ "type": "object",
745
+ "additionalProperties": false,
746
+ "required": [
747
+ "sha256",
748
+ "mediaType"
749
+ ],
750
+ "properties": {
751
+ "sha256": {
752
+ "type": "string",
753
+ "pattern": "^[0-9a-f]{64}$",
754
+ "description": "Lowercase hex SHA-256 of the stored, re-encoded bytes."
755
+ },
756
+ "mediaType": {
757
+ "type": "string",
758
+ "enum": [
759
+ "image/png",
760
+ "image/jpeg",
761
+ "image/webp",
762
+ "image/avif"
763
+ ],
764
+ "description": "Media type of the stored bytes."
765
+ },
766
+ "size": {
767
+ "type": "integer",
768
+ "minimum": 1,
769
+ "maximum": 262144,
770
+ "description": "Size in bytes of the stored bytes."
771
+ },
772
+ "url": {
773
+ "type": "string",
774
+ "format": "uri",
775
+ "maxLength": 2048,
776
+ "description": "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`."
777
+ },
778
+ "urlExpiresAt": {
779
+ "type": "string",
780
+ "format": "date-time",
781
+ "description": "Projection only: when `url` stops working."
782
+ }
783
+ }
784
+ },
785
+ "EntryId": {
786
+ "title": "EntryId",
787
+ "description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
788
+ "type": "string",
789
+ "pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
790
+ },
791
+ "GroupId": {
792
+ "title": "GroupId",
793
+ "description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
794
+ "type": "string",
795
+ "pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
796
+ }
797
+ }
798
+ } as const;
799
+
800
+ /**
801
+ * SPEC.md §7.2 policy for the request variant, from this specification's
802
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
803
+ * per-specification and cannot be derived from the document alone, and
804
+ * item 2 needs the schema this carries.
805
+ */
806
+ export const SPEC = {
807
+ typeUri: TYPE_URI,
808
+ isBearer: false,
809
+ isProofRequired: true,
810
+ isRecipientRequired: true,
811
+ isIssuedAtRequired: true,
812
+ payloadSchema: PAYLOAD_SCHEMA,
813
+ } as const;
814
+
815
+ /**
816
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
817
+ * tracks the *issuer* party's requirement because a response swaps the
818
+ * parties (§7.3 item 5).
819
+ */
820
+ export const RESPONSE_SPEC = {
821
+ typeUri: RESPONSE_TYPE_URI,
822
+ isBearer: false,
823
+ isProofRequired: true,
824
+ isRecipientRequired: true,
825
+ isIssuedAtRequired: true,
826
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
827
+ } as const;