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