@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,1144 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/directory/card/show/0.1/payload.schema.json
4
+ */
5
+ import type { Audience, CardBlobRef, CardValues, DirectoryCard, Discoverability, EntryId, Ext, FieldKey, FieldValue, FieldVisibility, Introductions, Listing, VerifiedValue } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A member reads their own directory card whole: every value, the visibility of each field, their discoverability and introduction settings, and its revision. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCDirectoryCardShowPayload {
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * The success response to a vtc/directory/card/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/show/0.1#response.
14
+ */
15
+ export interface VTCDirectoryCardShowResponsePayload {
16
+ card: DirectoryCard;
17
+ /**
18
+ * Required fields the card has no value for. While any is missing the entry is not listed, whatever `discoverability.listing` says.
19
+ *
20
+ * @maxItems 64
21
+ */
22
+ missingRequired: FieldKey[];
23
+ ext?: Ext;
24
+ }
25
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
26
+ export type { Audience, CardBlobRef, CardValues, DirectoryCard, Discoverability, EntryId, Ext, FieldKey, FieldValue, FieldVisibility, Introductions, Listing, VerifiedValue };
27
+ /** Trust Task type URI. */
28
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/show/0.1";
29
+ /** Stable alias for this specification's request payload shape. */
30
+ export type Payload = VTCDirectoryCardShowPayload;
31
+ /** Trust Task response type URI (request type URI + "#response"). */
32
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/directory/card/show/0.1#response";
33
+ /** Stable alias for this specification's success-response payload shape. */
34
+ export type Response = VTCDirectoryCardShowResponsePayload;
35
+ /**
36
+ * This specification's payload schema, as a value.
37
+ *
38
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
39
+ * rather than only as a `.json` file because TypeScript types are erased
40
+ * at runtime: without a schema a consumer has nothing to validate, and
41
+ * every REQUIRED payload member is optional in practice. Cross-file
42
+ * `$ref`s are already inlined, so it needs no resolver.
43
+ */
44
+ export declare const PAYLOAD_SCHEMA: {
45
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
46
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/show/0.1";
47
+ readonly title: "VTC Directory — Card — Show — payload";
48
+ readonly description: "A member reads their own directory card whole: every value, the visibility of each field, their discoverability and introduction settings, and its revision. The outer document members are owned by the framework — SPEC §6.3.";
49
+ readonly type: "object";
50
+ readonly additionalProperties: false;
51
+ readonly properties: {
52
+ readonly ext: {
53
+ readonly $ref: "#/$defs/Ext";
54
+ };
55
+ };
56
+ readonly $defs: {
57
+ readonly Response: {
58
+ readonly $anchor: "response";
59
+ readonly title: "VTC Directory — Card — Show — response payload";
60
+ readonly description: "The success response to a vtc/directory/card/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/show/0.1#response.";
61
+ readonly type: "object";
62
+ readonly additionalProperties: false;
63
+ readonly required: readonly ["card", "missingRequired"];
64
+ readonly properties: {
65
+ readonly card: {
66
+ readonly $ref: "#/$defs/DirectoryCard";
67
+ };
68
+ readonly missingRequired: {
69
+ readonly type: "array";
70
+ readonly maxItems: 64;
71
+ readonly items: {
72
+ readonly $ref: "#/$defs/FieldKey";
73
+ };
74
+ readonly description: "Required fields the card has no value for. While any is missing the entry is not listed, whatever `discoverability.listing` says.";
75
+ };
76
+ readonly ext: {
77
+ readonly $ref: "#/$defs/Ext";
78
+ };
79
+ };
80
+ };
81
+ readonly Ext: {
82
+ readonly title: "Ext";
83
+ 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.";
84
+ readonly type: "object";
85
+ readonly minProperties: 1;
86
+ readonly additionalProperties: true;
87
+ readonly propertyNames: {
88
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
89
+ };
90
+ };
91
+ readonly FieldKey: {
92
+ readonly title: "FieldKey";
93
+ readonly 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.";
94
+ readonly type: "string";
95
+ readonly minLength: 1;
96
+ readonly maxLength: 128;
97
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
98
+ };
99
+ readonly DirectoryCard: {
100
+ readonly title: "DirectoryCard";
101
+ readonly 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`.";
102
+ readonly type: "object";
103
+ readonly additionalProperties: false;
104
+ readonly required: readonly ["entryId", "values", "visibility", "discoverability", "introductions", "revision", "updatedAt"];
105
+ readonly properties: {
106
+ readonly entryId: {
107
+ readonly $ref: "#/$defs/EntryId";
108
+ };
109
+ readonly values: {
110
+ readonly $ref: "#/$defs/CardValues";
111
+ };
112
+ readonly visibility: {
113
+ readonly $ref: "#/$defs/FieldVisibility";
114
+ };
115
+ readonly discoverability: {
116
+ readonly $ref: "#/$defs/Discoverability";
117
+ };
118
+ readonly introductions: {
119
+ readonly $ref: "#/$defs/Introductions";
120
+ };
121
+ readonly groupAudience: {
122
+ readonly type: "array";
123
+ readonly maxItems: 64;
124
+ readonly uniqueItems: true;
125
+ readonly items: {
126
+ readonly type: "string";
127
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
128
+ };
129
+ readonly 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.";
130
+ };
131
+ readonly revision: {
132
+ readonly type: "integer";
133
+ readonly minimum: 0;
134
+ readonly description: "Incremented on every accepted change to the card, by its subject or by an administrator's assertion.";
135
+ };
136
+ readonly updatedAt: {
137
+ readonly type: "string";
138
+ readonly format: "date-time";
139
+ readonly description: "When the card last changed.";
140
+ };
141
+ readonly ext: {
142
+ readonly $ref: "#/$defs/Ext";
143
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection.";
144
+ };
145
+ };
146
+ };
147
+ readonly Introductions: {
148
+ readonly title: "Introductions";
149
+ readonly 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.";
150
+ readonly type: "string";
151
+ readonly enum: readonly ["anyone", "groups", "connections", "off"];
152
+ };
153
+ readonly Discoverability: {
154
+ readonly title: "Discoverability";
155
+ readonly description: "The member's three discoverability decisions, made separately.";
156
+ readonly type: "object";
157
+ readonly additionalProperties: false;
158
+ readonly required: readonly ["listing", "search", "external"];
159
+ readonly properties: {
160
+ readonly listing: {
161
+ readonly $ref: "#/$defs/Listing";
162
+ };
163
+ readonly search: {
164
+ readonly type: "string";
165
+ readonly enum: readonly ["byName", "exactNickname", "off"];
166
+ readonly 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.";
167
+ };
168
+ readonly external: {
169
+ readonly type: "boolean";
170
+ readonly 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`.";
171
+ };
172
+ };
173
+ };
174
+ readonly Listing: {
175
+ readonly title: "Listing";
176
+ readonly 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.";
177
+ readonly type: "string";
178
+ readonly enum: readonly ["listed", "findable", "hidden"];
179
+ };
180
+ readonly FieldVisibility: {
181
+ readonly title: "FieldVisibility";
182
+ readonly 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.";
183
+ readonly type: "object";
184
+ readonly maxProperties: 64;
185
+ readonly propertyNames: {
186
+ readonly $ref: "#/$defs/FieldKey";
187
+ };
188
+ readonly additionalProperties: {
189
+ readonly $ref: "#/$defs/Audience";
190
+ };
191
+ };
192
+ readonly Audience: {
193
+ readonly title: "Audience";
194
+ readonly 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.";
195
+ readonly type: "string";
196
+ readonly enum: readonly ["admins", "groups", "connections", "members", "public"];
197
+ };
198
+ readonly CardValues: {
199
+ readonly title: "CardValues";
200
+ readonly 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.";
201
+ readonly type: "object";
202
+ readonly maxProperties: 64;
203
+ readonly propertyNames: {
204
+ readonly $ref: "#/$defs/FieldKey";
205
+ };
206
+ readonly additionalProperties: {
207
+ readonly $ref: "#/$defs/FieldValue";
208
+ };
209
+ };
210
+ readonly FieldValue: {
211
+ readonly title: "FieldValue";
212
+ readonly 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.";
213
+ readonly anyOf: readonly [{
214
+ readonly type: "string";
215
+ readonly maxLength: 2000;
216
+ }, {
217
+ readonly type: "boolean";
218
+ }, {
219
+ readonly type: "array";
220
+ readonly maxItems: 32;
221
+ readonly items: {
222
+ readonly type: "string";
223
+ readonly maxLength: 500;
224
+ };
225
+ }, {
226
+ readonly $ref: "#/$defs/CardBlobRef";
227
+ }, {
228
+ readonly $ref: "#/$defs/VerifiedValue";
229
+ }];
230
+ };
231
+ readonly VerifiedValue: {
232
+ readonly title: "VerifiedValue";
233
+ readonly 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.";
234
+ readonly type: "object";
235
+ readonly additionalProperties: false;
236
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
237
+ readonly properties: {
238
+ readonly value: {
239
+ readonly anyOf: readonly [{
240
+ readonly type: "string";
241
+ readonly maxLength: 2000;
242
+ }, {
243
+ readonly type: "boolean";
244
+ }, {
245
+ readonly type: "number";
246
+ }];
247
+ readonly description: "The disclosed claim value.";
248
+ };
249
+ readonly issuer: {
250
+ readonly type: "string";
251
+ readonly pattern: "^did:";
252
+ readonly maxLength: 2048;
253
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
254
+ };
255
+ readonly credentialType: {
256
+ readonly type: "string";
257
+ readonly minLength: 1;
258
+ readonly maxLength: 128;
259
+ readonly description: "The most specific `type` of the credential the claim came from.";
260
+ };
261
+ readonly verifiedAt: {
262
+ readonly type: "string";
263
+ readonly format: "date-time";
264
+ readonly description: "When the community verified the presentation.";
265
+ };
266
+ readonly validUntil: {
267
+ readonly type: "string";
268
+ readonly format: "date-time";
269
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
270
+ };
271
+ };
272
+ };
273
+ readonly CardBlobRef: {
274
+ readonly title: "CardBlobRef";
275
+ readonly 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.";
276
+ readonly type: "object";
277
+ readonly additionalProperties: false;
278
+ readonly required: readonly ["sha256", "mediaType"];
279
+ readonly properties: {
280
+ readonly sha256: {
281
+ readonly type: "string";
282
+ readonly pattern: "^[0-9a-f]{64}$";
283
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
284
+ };
285
+ readonly mediaType: {
286
+ readonly type: "string";
287
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
288
+ readonly description: "Media type of the stored bytes.";
289
+ };
290
+ readonly size: {
291
+ readonly type: "integer";
292
+ readonly minimum: 1;
293
+ readonly maximum: 262144;
294
+ readonly description: "Size in bytes of the stored bytes.";
295
+ };
296
+ readonly url: {
297
+ readonly type: "string";
298
+ readonly format: "uri";
299
+ readonly maxLength: 2048;
300
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
301
+ };
302
+ readonly urlExpiresAt: {
303
+ readonly type: "string";
304
+ readonly format: "date-time";
305
+ readonly description: "Projection only: when `url` stops working.";
306
+ };
307
+ };
308
+ };
309
+ readonly EntryId: {
310
+ readonly title: "EntryId";
311
+ readonly 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.";
312
+ readonly type: "string";
313
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
314
+ };
315
+ };
316
+ };
317
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
318
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
319
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
320
+ readonly $ref: "#/$defs/Response";
321
+ readonly $defs: {
322
+ readonly Response: {
323
+ readonly $anchor: "response";
324
+ readonly title: "VTC Directory — Card — Show — response payload";
325
+ readonly description: "The success response to a vtc/directory/card/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/show/0.1#response.";
326
+ readonly type: "object";
327
+ readonly additionalProperties: false;
328
+ readonly required: readonly ["card", "missingRequired"];
329
+ readonly properties: {
330
+ readonly card: {
331
+ readonly $ref: "#/$defs/DirectoryCard";
332
+ };
333
+ readonly missingRequired: {
334
+ readonly type: "array";
335
+ readonly maxItems: 64;
336
+ readonly items: {
337
+ readonly $ref: "#/$defs/FieldKey";
338
+ };
339
+ readonly description: "Required fields the card has no value for. While any is missing the entry is not listed, whatever `discoverability.listing` says.";
340
+ };
341
+ readonly ext: {
342
+ readonly $ref: "#/$defs/Ext";
343
+ };
344
+ };
345
+ };
346
+ readonly Ext: {
347
+ readonly title: "Ext";
348
+ 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.";
349
+ readonly type: "object";
350
+ readonly minProperties: 1;
351
+ readonly additionalProperties: true;
352
+ readonly propertyNames: {
353
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
354
+ };
355
+ };
356
+ readonly FieldKey: {
357
+ readonly title: "FieldKey";
358
+ readonly 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.";
359
+ readonly type: "string";
360
+ readonly minLength: 1;
361
+ readonly maxLength: 128;
362
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
363
+ };
364
+ readonly DirectoryCard: {
365
+ readonly title: "DirectoryCard";
366
+ readonly 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`.";
367
+ readonly type: "object";
368
+ readonly additionalProperties: false;
369
+ readonly required: readonly ["entryId", "values", "visibility", "discoverability", "introductions", "revision", "updatedAt"];
370
+ readonly properties: {
371
+ readonly entryId: {
372
+ readonly $ref: "#/$defs/EntryId";
373
+ };
374
+ readonly values: {
375
+ readonly $ref: "#/$defs/CardValues";
376
+ };
377
+ readonly visibility: {
378
+ readonly $ref: "#/$defs/FieldVisibility";
379
+ };
380
+ readonly discoverability: {
381
+ readonly $ref: "#/$defs/Discoverability";
382
+ };
383
+ readonly introductions: {
384
+ readonly $ref: "#/$defs/Introductions";
385
+ };
386
+ readonly groupAudience: {
387
+ readonly type: "array";
388
+ readonly maxItems: 64;
389
+ readonly uniqueItems: true;
390
+ readonly items: {
391
+ readonly type: "string";
392
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
393
+ };
394
+ readonly 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.";
395
+ };
396
+ readonly revision: {
397
+ readonly type: "integer";
398
+ readonly minimum: 0;
399
+ readonly description: "Incremented on every accepted change to the card, by its subject or by an administrator's assertion.";
400
+ };
401
+ readonly updatedAt: {
402
+ readonly type: "string";
403
+ readonly format: "date-time";
404
+ readonly description: "When the card last changed.";
405
+ };
406
+ readonly ext: {
407
+ readonly $ref: "#/$defs/Ext";
408
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection.";
409
+ };
410
+ };
411
+ };
412
+ readonly Introductions: {
413
+ readonly title: "Introductions";
414
+ readonly 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.";
415
+ readonly type: "string";
416
+ readonly enum: readonly ["anyone", "groups", "connections", "off"];
417
+ };
418
+ readonly Discoverability: {
419
+ readonly title: "Discoverability";
420
+ readonly description: "The member's three discoverability decisions, made separately.";
421
+ readonly type: "object";
422
+ readonly additionalProperties: false;
423
+ readonly required: readonly ["listing", "search", "external"];
424
+ readonly properties: {
425
+ readonly listing: {
426
+ readonly $ref: "#/$defs/Listing";
427
+ };
428
+ readonly search: {
429
+ readonly type: "string";
430
+ readonly enum: readonly ["byName", "exactNickname", "off"];
431
+ readonly 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.";
432
+ };
433
+ readonly external: {
434
+ readonly type: "boolean";
435
+ readonly 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`.";
436
+ };
437
+ };
438
+ };
439
+ readonly Listing: {
440
+ readonly title: "Listing";
441
+ readonly 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.";
442
+ readonly type: "string";
443
+ readonly enum: readonly ["listed", "findable", "hidden"];
444
+ };
445
+ readonly FieldVisibility: {
446
+ readonly title: "FieldVisibility";
447
+ readonly 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.";
448
+ readonly type: "object";
449
+ readonly maxProperties: 64;
450
+ readonly propertyNames: {
451
+ readonly $ref: "#/$defs/FieldKey";
452
+ };
453
+ readonly additionalProperties: {
454
+ readonly $ref: "#/$defs/Audience";
455
+ };
456
+ };
457
+ readonly Audience: {
458
+ readonly title: "Audience";
459
+ readonly 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.";
460
+ readonly type: "string";
461
+ readonly enum: readonly ["admins", "groups", "connections", "members", "public"];
462
+ };
463
+ readonly CardValues: {
464
+ readonly title: "CardValues";
465
+ readonly 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.";
466
+ readonly type: "object";
467
+ readonly maxProperties: 64;
468
+ readonly propertyNames: {
469
+ readonly $ref: "#/$defs/FieldKey";
470
+ };
471
+ readonly additionalProperties: {
472
+ readonly $ref: "#/$defs/FieldValue";
473
+ };
474
+ };
475
+ readonly FieldValue: {
476
+ readonly title: "FieldValue";
477
+ readonly 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.";
478
+ readonly anyOf: readonly [{
479
+ readonly type: "string";
480
+ readonly maxLength: 2000;
481
+ }, {
482
+ readonly type: "boolean";
483
+ }, {
484
+ readonly type: "array";
485
+ readonly maxItems: 32;
486
+ readonly items: {
487
+ readonly type: "string";
488
+ readonly maxLength: 500;
489
+ };
490
+ }, {
491
+ readonly $ref: "#/$defs/CardBlobRef";
492
+ }, {
493
+ readonly $ref: "#/$defs/VerifiedValue";
494
+ }];
495
+ };
496
+ readonly VerifiedValue: {
497
+ readonly title: "VerifiedValue";
498
+ readonly 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.";
499
+ readonly type: "object";
500
+ readonly additionalProperties: false;
501
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
502
+ readonly properties: {
503
+ readonly value: {
504
+ readonly anyOf: readonly [{
505
+ readonly type: "string";
506
+ readonly maxLength: 2000;
507
+ }, {
508
+ readonly type: "boolean";
509
+ }, {
510
+ readonly type: "number";
511
+ }];
512
+ readonly description: "The disclosed claim value.";
513
+ };
514
+ readonly issuer: {
515
+ readonly type: "string";
516
+ readonly pattern: "^did:";
517
+ readonly maxLength: 2048;
518
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
519
+ };
520
+ readonly credentialType: {
521
+ readonly type: "string";
522
+ readonly minLength: 1;
523
+ readonly maxLength: 128;
524
+ readonly description: "The most specific `type` of the credential the claim came from.";
525
+ };
526
+ readonly verifiedAt: {
527
+ readonly type: "string";
528
+ readonly format: "date-time";
529
+ readonly description: "When the community verified the presentation.";
530
+ };
531
+ readonly validUntil: {
532
+ readonly type: "string";
533
+ readonly format: "date-time";
534
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
535
+ };
536
+ };
537
+ };
538
+ readonly CardBlobRef: {
539
+ readonly title: "CardBlobRef";
540
+ readonly 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.";
541
+ readonly type: "object";
542
+ readonly additionalProperties: false;
543
+ readonly required: readonly ["sha256", "mediaType"];
544
+ readonly properties: {
545
+ readonly sha256: {
546
+ readonly type: "string";
547
+ readonly pattern: "^[0-9a-f]{64}$";
548
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
549
+ };
550
+ readonly mediaType: {
551
+ readonly type: "string";
552
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
553
+ readonly description: "Media type of the stored bytes.";
554
+ };
555
+ readonly size: {
556
+ readonly type: "integer";
557
+ readonly minimum: 1;
558
+ readonly maximum: 262144;
559
+ readonly description: "Size in bytes of the stored bytes.";
560
+ };
561
+ readonly url: {
562
+ readonly type: "string";
563
+ readonly format: "uri";
564
+ readonly maxLength: 2048;
565
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
566
+ };
567
+ readonly urlExpiresAt: {
568
+ readonly type: "string";
569
+ readonly format: "date-time";
570
+ readonly description: "Projection only: when `url` stops working.";
571
+ };
572
+ };
573
+ };
574
+ readonly EntryId: {
575
+ readonly title: "EntryId";
576
+ readonly 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.";
577
+ readonly type: "string";
578
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
579
+ };
580
+ };
581
+ };
582
+ /**
583
+ * SPEC.md §7.2 policy for the request variant, from this specification's
584
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
585
+ * per-specification and cannot be derived from the document alone, and
586
+ * item 2 needs the schema this carries.
587
+ */
588
+ export declare const SPEC: {
589
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/show/0.1";
590
+ readonly isBearer: false;
591
+ readonly isProofRequired: false;
592
+ readonly isRecipientRequired: true;
593
+ readonly isIssuedAtRequired: false;
594
+ readonly payloadSchema: {
595
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
596
+ readonly $id: "https://trusttasks.org/spec/vtc/directory/card/show/0.1";
597
+ readonly title: "VTC Directory — Card — Show — payload";
598
+ readonly description: "A member reads their own directory card whole: every value, the visibility of each field, their discoverability and introduction settings, and its revision. The outer document members are owned by the framework — SPEC §6.3.";
599
+ readonly type: "object";
600
+ readonly additionalProperties: false;
601
+ readonly properties: {
602
+ readonly ext: {
603
+ readonly $ref: "#/$defs/Ext";
604
+ };
605
+ };
606
+ readonly $defs: {
607
+ readonly Response: {
608
+ readonly $anchor: "response";
609
+ readonly title: "VTC Directory — Card — Show — response payload";
610
+ readonly description: "The success response to a vtc/directory/card/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/show/0.1#response.";
611
+ readonly type: "object";
612
+ readonly additionalProperties: false;
613
+ readonly required: readonly ["card", "missingRequired"];
614
+ readonly properties: {
615
+ readonly card: {
616
+ readonly $ref: "#/$defs/DirectoryCard";
617
+ };
618
+ readonly missingRequired: {
619
+ readonly type: "array";
620
+ readonly maxItems: 64;
621
+ readonly items: {
622
+ readonly $ref: "#/$defs/FieldKey";
623
+ };
624
+ readonly description: "Required fields the card has no value for. While any is missing the entry is not listed, whatever `discoverability.listing` says.";
625
+ };
626
+ readonly ext: {
627
+ readonly $ref: "#/$defs/Ext";
628
+ };
629
+ };
630
+ };
631
+ readonly Ext: {
632
+ readonly title: "Ext";
633
+ 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.";
634
+ readonly type: "object";
635
+ readonly minProperties: 1;
636
+ readonly additionalProperties: true;
637
+ readonly propertyNames: {
638
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
639
+ };
640
+ };
641
+ readonly FieldKey: {
642
+ readonly title: "FieldKey";
643
+ readonly 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.";
644
+ readonly type: "string";
645
+ readonly minLength: 1;
646
+ readonly maxLength: 128;
647
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
648
+ };
649
+ readonly DirectoryCard: {
650
+ readonly title: "DirectoryCard";
651
+ readonly 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`.";
652
+ readonly type: "object";
653
+ readonly additionalProperties: false;
654
+ readonly required: readonly ["entryId", "values", "visibility", "discoverability", "introductions", "revision", "updatedAt"];
655
+ readonly properties: {
656
+ readonly entryId: {
657
+ readonly $ref: "#/$defs/EntryId";
658
+ };
659
+ readonly values: {
660
+ readonly $ref: "#/$defs/CardValues";
661
+ };
662
+ readonly visibility: {
663
+ readonly $ref: "#/$defs/FieldVisibility";
664
+ };
665
+ readonly discoverability: {
666
+ readonly $ref: "#/$defs/Discoverability";
667
+ };
668
+ readonly introductions: {
669
+ readonly $ref: "#/$defs/Introductions";
670
+ };
671
+ readonly groupAudience: {
672
+ readonly type: "array";
673
+ readonly maxItems: 64;
674
+ readonly uniqueItems: true;
675
+ readonly items: {
676
+ readonly type: "string";
677
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
678
+ };
679
+ readonly 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.";
680
+ };
681
+ readonly revision: {
682
+ readonly type: "integer";
683
+ readonly minimum: 0;
684
+ readonly description: "Incremented on every accepted change to the card, by its subject or by an administrator's assertion.";
685
+ };
686
+ readonly updatedAt: {
687
+ readonly type: "string";
688
+ readonly format: "date-time";
689
+ readonly description: "When the card last changed.";
690
+ };
691
+ readonly ext: {
692
+ readonly $ref: "#/$defs/Ext";
693
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection.";
694
+ };
695
+ };
696
+ };
697
+ readonly Introductions: {
698
+ readonly title: "Introductions";
699
+ readonly 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.";
700
+ readonly type: "string";
701
+ readonly enum: readonly ["anyone", "groups", "connections", "off"];
702
+ };
703
+ readonly Discoverability: {
704
+ readonly title: "Discoverability";
705
+ readonly description: "The member's three discoverability decisions, made separately.";
706
+ readonly type: "object";
707
+ readonly additionalProperties: false;
708
+ readonly required: readonly ["listing", "search", "external"];
709
+ readonly properties: {
710
+ readonly listing: {
711
+ readonly $ref: "#/$defs/Listing";
712
+ };
713
+ readonly search: {
714
+ readonly type: "string";
715
+ readonly enum: readonly ["byName", "exactNickname", "off"];
716
+ readonly 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.";
717
+ };
718
+ readonly external: {
719
+ readonly type: "boolean";
720
+ readonly 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`.";
721
+ };
722
+ };
723
+ };
724
+ readonly Listing: {
725
+ readonly title: "Listing";
726
+ readonly 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.";
727
+ readonly type: "string";
728
+ readonly enum: readonly ["listed", "findable", "hidden"];
729
+ };
730
+ readonly FieldVisibility: {
731
+ readonly title: "FieldVisibility";
732
+ readonly 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.";
733
+ readonly type: "object";
734
+ readonly maxProperties: 64;
735
+ readonly propertyNames: {
736
+ readonly $ref: "#/$defs/FieldKey";
737
+ };
738
+ readonly additionalProperties: {
739
+ readonly $ref: "#/$defs/Audience";
740
+ };
741
+ };
742
+ readonly Audience: {
743
+ readonly title: "Audience";
744
+ readonly 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.";
745
+ readonly type: "string";
746
+ readonly enum: readonly ["admins", "groups", "connections", "members", "public"];
747
+ };
748
+ readonly CardValues: {
749
+ readonly title: "CardValues";
750
+ readonly 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.";
751
+ readonly type: "object";
752
+ readonly maxProperties: 64;
753
+ readonly propertyNames: {
754
+ readonly $ref: "#/$defs/FieldKey";
755
+ };
756
+ readonly additionalProperties: {
757
+ readonly $ref: "#/$defs/FieldValue";
758
+ };
759
+ };
760
+ readonly FieldValue: {
761
+ readonly title: "FieldValue";
762
+ readonly 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.";
763
+ readonly anyOf: readonly [{
764
+ readonly type: "string";
765
+ readonly maxLength: 2000;
766
+ }, {
767
+ readonly type: "boolean";
768
+ }, {
769
+ readonly type: "array";
770
+ readonly maxItems: 32;
771
+ readonly items: {
772
+ readonly type: "string";
773
+ readonly maxLength: 500;
774
+ };
775
+ }, {
776
+ readonly $ref: "#/$defs/CardBlobRef";
777
+ }, {
778
+ readonly $ref: "#/$defs/VerifiedValue";
779
+ }];
780
+ };
781
+ readonly VerifiedValue: {
782
+ readonly title: "VerifiedValue";
783
+ readonly 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.";
784
+ readonly type: "object";
785
+ readonly additionalProperties: false;
786
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
787
+ readonly properties: {
788
+ readonly value: {
789
+ readonly anyOf: readonly [{
790
+ readonly type: "string";
791
+ readonly maxLength: 2000;
792
+ }, {
793
+ readonly type: "boolean";
794
+ }, {
795
+ readonly type: "number";
796
+ }];
797
+ readonly description: "The disclosed claim value.";
798
+ };
799
+ readonly issuer: {
800
+ readonly type: "string";
801
+ readonly pattern: "^did:";
802
+ readonly maxLength: 2048;
803
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
804
+ };
805
+ readonly credentialType: {
806
+ readonly type: "string";
807
+ readonly minLength: 1;
808
+ readonly maxLength: 128;
809
+ readonly description: "The most specific `type` of the credential the claim came from.";
810
+ };
811
+ readonly verifiedAt: {
812
+ readonly type: "string";
813
+ readonly format: "date-time";
814
+ readonly description: "When the community verified the presentation.";
815
+ };
816
+ readonly validUntil: {
817
+ readonly type: "string";
818
+ readonly format: "date-time";
819
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
820
+ };
821
+ };
822
+ };
823
+ readonly CardBlobRef: {
824
+ readonly title: "CardBlobRef";
825
+ readonly 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.";
826
+ readonly type: "object";
827
+ readonly additionalProperties: false;
828
+ readonly required: readonly ["sha256", "mediaType"];
829
+ readonly properties: {
830
+ readonly sha256: {
831
+ readonly type: "string";
832
+ readonly pattern: "^[0-9a-f]{64}$";
833
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
834
+ };
835
+ readonly mediaType: {
836
+ readonly type: "string";
837
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
838
+ readonly description: "Media type of the stored bytes.";
839
+ };
840
+ readonly size: {
841
+ readonly type: "integer";
842
+ readonly minimum: 1;
843
+ readonly maximum: 262144;
844
+ readonly description: "Size in bytes of the stored bytes.";
845
+ };
846
+ readonly url: {
847
+ readonly type: "string";
848
+ readonly format: "uri";
849
+ readonly maxLength: 2048;
850
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
851
+ };
852
+ readonly urlExpiresAt: {
853
+ readonly type: "string";
854
+ readonly format: "date-time";
855
+ readonly description: "Projection only: when `url` stops working.";
856
+ };
857
+ };
858
+ };
859
+ readonly EntryId: {
860
+ readonly title: "EntryId";
861
+ readonly 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.";
862
+ readonly type: "string";
863
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
864
+ };
865
+ };
866
+ };
867
+ };
868
+ /**
869
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
870
+ * tracks the *issuer* party's requirement because a response swaps the
871
+ * parties (§7.3 item 5).
872
+ */
873
+ export declare const RESPONSE_SPEC: {
874
+ readonly typeUri: "https://trusttasks.org/spec/vtc/directory/card/show/0.1#response";
875
+ readonly isBearer: false;
876
+ readonly isProofRequired: false;
877
+ readonly isRecipientRequired: true;
878
+ readonly isIssuedAtRequired: false;
879
+ readonly payloadSchema: {
880
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
881
+ readonly $ref: "#/$defs/Response";
882
+ readonly $defs: {
883
+ readonly Response: {
884
+ readonly $anchor: "response";
885
+ readonly title: "VTC Directory — Card — Show — response payload";
886
+ readonly description: "The success response to a vtc/directory/card/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/show/0.1#response.";
887
+ readonly type: "object";
888
+ readonly additionalProperties: false;
889
+ readonly required: readonly ["card", "missingRequired"];
890
+ readonly properties: {
891
+ readonly card: {
892
+ readonly $ref: "#/$defs/DirectoryCard";
893
+ };
894
+ readonly missingRequired: {
895
+ readonly type: "array";
896
+ readonly maxItems: 64;
897
+ readonly items: {
898
+ readonly $ref: "#/$defs/FieldKey";
899
+ };
900
+ readonly description: "Required fields the card has no value for. While any is missing the entry is not listed, whatever `discoverability.listing` says.";
901
+ };
902
+ readonly ext: {
903
+ readonly $ref: "#/$defs/Ext";
904
+ };
905
+ };
906
+ };
907
+ readonly Ext: {
908
+ readonly title: "Ext";
909
+ 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.";
910
+ readonly type: "object";
911
+ readonly minProperties: 1;
912
+ readonly additionalProperties: true;
913
+ readonly propertyNames: {
914
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
915
+ };
916
+ };
917
+ readonly FieldKey: {
918
+ readonly title: "FieldKey";
919
+ readonly 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.";
920
+ readonly type: "string";
921
+ readonly minLength: 1;
922
+ readonly maxLength: 128;
923
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
924
+ };
925
+ readonly DirectoryCard: {
926
+ readonly title: "DirectoryCard";
927
+ readonly 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`.";
928
+ readonly type: "object";
929
+ readonly additionalProperties: false;
930
+ readonly required: readonly ["entryId", "values", "visibility", "discoverability", "introductions", "revision", "updatedAt"];
931
+ readonly properties: {
932
+ readonly entryId: {
933
+ readonly $ref: "#/$defs/EntryId";
934
+ };
935
+ readonly values: {
936
+ readonly $ref: "#/$defs/CardValues";
937
+ };
938
+ readonly visibility: {
939
+ readonly $ref: "#/$defs/FieldVisibility";
940
+ };
941
+ readonly discoverability: {
942
+ readonly $ref: "#/$defs/Discoverability";
943
+ };
944
+ readonly introductions: {
945
+ readonly $ref: "#/$defs/Introductions";
946
+ };
947
+ readonly groupAudience: {
948
+ readonly type: "array";
949
+ readonly maxItems: 64;
950
+ readonly uniqueItems: true;
951
+ readonly items: {
952
+ readonly type: "string";
953
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
954
+ };
955
+ readonly 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.";
956
+ };
957
+ readonly revision: {
958
+ readonly type: "integer";
959
+ readonly minimum: 0;
960
+ readonly description: "Incremented on every accepted change to the card, by its subject or by an administrator's assertion.";
961
+ };
962
+ readonly updatedAt: {
963
+ readonly type: "string";
964
+ readonly format: "date-time";
965
+ readonly description: "When the card last changed.";
966
+ };
967
+ readonly ext: {
968
+ readonly $ref: "#/$defs/Ext";
969
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry directory data that bypasses the projection.";
970
+ };
971
+ };
972
+ };
973
+ readonly Introductions: {
974
+ readonly title: "Introductions";
975
+ readonly 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.";
976
+ readonly type: "string";
977
+ readonly enum: readonly ["anyone", "groups", "connections", "off"];
978
+ };
979
+ readonly Discoverability: {
980
+ readonly title: "Discoverability";
981
+ readonly description: "The member's three discoverability decisions, made separately.";
982
+ readonly type: "object";
983
+ readonly additionalProperties: false;
984
+ readonly required: readonly ["listing", "search", "external"];
985
+ readonly properties: {
986
+ readonly listing: {
987
+ readonly $ref: "#/$defs/Listing";
988
+ };
989
+ readonly search: {
990
+ readonly type: "string";
991
+ readonly enum: readonly ["byName", "exactNickname", "off"];
992
+ readonly 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.";
993
+ };
994
+ readonly external: {
995
+ readonly type: "boolean";
996
+ readonly 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`.";
997
+ };
998
+ };
999
+ };
1000
+ readonly Listing: {
1001
+ readonly title: "Listing";
1002
+ readonly 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.";
1003
+ readonly type: "string";
1004
+ readonly enum: readonly ["listed", "findable", "hidden"];
1005
+ };
1006
+ readonly FieldVisibility: {
1007
+ readonly title: "FieldVisibility";
1008
+ readonly 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.";
1009
+ readonly type: "object";
1010
+ readonly maxProperties: 64;
1011
+ readonly propertyNames: {
1012
+ readonly $ref: "#/$defs/FieldKey";
1013
+ };
1014
+ readonly additionalProperties: {
1015
+ readonly $ref: "#/$defs/Audience";
1016
+ };
1017
+ };
1018
+ readonly Audience: {
1019
+ readonly title: "Audience";
1020
+ readonly 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.";
1021
+ readonly type: "string";
1022
+ readonly enum: readonly ["admins", "groups", "connections", "members", "public"];
1023
+ };
1024
+ readonly CardValues: {
1025
+ readonly title: "CardValues";
1026
+ readonly 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.";
1027
+ readonly type: "object";
1028
+ readonly maxProperties: 64;
1029
+ readonly propertyNames: {
1030
+ readonly $ref: "#/$defs/FieldKey";
1031
+ };
1032
+ readonly additionalProperties: {
1033
+ readonly $ref: "#/$defs/FieldValue";
1034
+ };
1035
+ };
1036
+ readonly FieldValue: {
1037
+ readonly title: "FieldValue";
1038
+ readonly 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.";
1039
+ readonly anyOf: readonly [{
1040
+ readonly type: "string";
1041
+ readonly maxLength: 2000;
1042
+ }, {
1043
+ readonly type: "boolean";
1044
+ }, {
1045
+ readonly type: "array";
1046
+ readonly maxItems: 32;
1047
+ readonly items: {
1048
+ readonly type: "string";
1049
+ readonly maxLength: 500;
1050
+ };
1051
+ }, {
1052
+ readonly $ref: "#/$defs/CardBlobRef";
1053
+ }, {
1054
+ readonly $ref: "#/$defs/VerifiedValue";
1055
+ }];
1056
+ };
1057
+ readonly VerifiedValue: {
1058
+ readonly title: "VerifiedValue";
1059
+ readonly 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.";
1060
+ readonly type: "object";
1061
+ readonly additionalProperties: false;
1062
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
1063
+ readonly properties: {
1064
+ readonly value: {
1065
+ readonly anyOf: readonly [{
1066
+ readonly type: "string";
1067
+ readonly maxLength: 2000;
1068
+ }, {
1069
+ readonly type: "boolean";
1070
+ }, {
1071
+ readonly type: "number";
1072
+ }];
1073
+ readonly description: "The disclosed claim value.";
1074
+ };
1075
+ readonly issuer: {
1076
+ readonly type: "string";
1077
+ readonly pattern: "^did:";
1078
+ readonly maxLength: 2048;
1079
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
1080
+ };
1081
+ readonly credentialType: {
1082
+ readonly type: "string";
1083
+ readonly minLength: 1;
1084
+ readonly maxLength: 128;
1085
+ readonly description: "The most specific `type` of the credential the claim came from.";
1086
+ };
1087
+ readonly verifiedAt: {
1088
+ readonly type: "string";
1089
+ readonly format: "date-time";
1090
+ readonly description: "When the community verified the presentation.";
1091
+ };
1092
+ readonly validUntil: {
1093
+ readonly type: "string";
1094
+ readonly format: "date-time";
1095
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
1096
+ };
1097
+ };
1098
+ };
1099
+ readonly CardBlobRef: {
1100
+ readonly title: "CardBlobRef";
1101
+ readonly 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.";
1102
+ readonly type: "object";
1103
+ readonly additionalProperties: false;
1104
+ readonly required: readonly ["sha256", "mediaType"];
1105
+ readonly properties: {
1106
+ readonly sha256: {
1107
+ readonly type: "string";
1108
+ readonly pattern: "^[0-9a-f]{64}$";
1109
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
1110
+ };
1111
+ readonly mediaType: {
1112
+ readonly type: "string";
1113
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
1114
+ readonly description: "Media type of the stored bytes.";
1115
+ };
1116
+ readonly size: {
1117
+ readonly type: "integer";
1118
+ readonly minimum: 1;
1119
+ readonly maximum: 262144;
1120
+ readonly description: "Size in bytes of the stored bytes.";
1121
+ };
1122
+ readonly url: {
1123
+ readonly type: "string";
1124
+ readonly format: "uri";
1125
+ readonly maxLength: 2048;
1126
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
1127
+ };
1128
+ readonly urlExpiresAt: {
1129
+ readonly type: "string";
1130
+ readonly format: "date-time";
1131
+ readonly description: "Projection only: when `url` stops working.";
1132
+ };
1133
+ };
1134
+ };
1135
+ readonly EntryId: {
1136
+ readonly title: "EntryId";
1137
+ readonly 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.";
1138
+ readonly type: "string";
1139
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
1140
+ };
1141
+ };
1142
+ };
1143
+ };
1144
+ //# sourceMappingURL=payload.d.ts.map