@openvtc/trust-tasks 0.27.3 → 0.27.4

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 (482) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_shared/components.d.ts +272 -50
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/acl/list/0.3/payload.d.ts +1833 -0
  5. package/dist/acl/list/0.3/payload.d.ts.map +1 -0
  6. package/dist/acl/list/0.3/payload.js +1031 -0
  7. package/dist/acl/list/0.3/payload.js.map +1 -0
  8. package/dist/audit/list/0.2/payload.d.ts +633 -0
  9. package/dist/audit/list/0.2/payload.d.ts.map +1 -0
  10. package/dist/audit/list/0.2/payload.js +342 -0
  11. package/dist/audit/list/0.2/payload.js.map +1 -0
  12. package/dist/auth/oob/claim/0.2/payload.d.ts +463 -0
  13. package/dist/auth/oob/claim/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/oob/claim/0.2/payload.js +264 -0
  15. package/dist/auth/oob/claim/0.2/payload.js.map +1 -0
  16. package/dist/auth/oob/grant/0.3/payload.d.ts +262 -0
  17. package/dist/auth/oob/grant/0.3/payload.d.ts.map +1 -0
  18. package/dist/auth/oob/grant/0.3/payload.js +140 -0
  19. package/dist/auth/oob/grant/0.3/payload.js.map +1 -0
  20. package/dist/auth/oob/prove/0.3/payload.d.ts +836 -0
  21. package/dist/auth/oob/prove/0.3/payload.d.ts.map +1 -0
  22. package/dist/auth/oob/prove/0.3/payload.js +468 -0
  23. package/dist/auth/oob/prove/0.3/payload.js.map +1 -0
  24. package/dist/auth/oob/redeem/0.2/payload.d.ts +364 -0
  25. package/dist/auth/oob/redeem/0.2/payload.d.ts.map +1 -0
  26. package/dist/auth/oob/redeem/0.2/payload.js +199 -0
  27. package/dist/auth/oob/redeem/0.2/payload.js.map +1 -0
  28. package/dist/auth/oob/request/0.2/payload.d.ts +330 -0
  29. package/dist/auth/oob/request/0.2/payload.d.ts.map +1 -0
  30. package/dist/auth/oob/request/0.2/payload.js +193 -0
  31. package/dist/auth/oob/request/0.2/payload.js.map +1 -0
  32. package/dist/auth/oob/respond/0.3/payload.d.ts +235 -0
  33. package/dist/auth/oob/respond/0.3/payload.d.ts.map +1 -0
  34. package/dist/auth/oob/respond/0.3/payload.js +140 -0
  35. package/dist/auth/oob/respond/0.3/payload.js.map +1 -0
  36. package/dist/consent/list/1.1/payload.d.ts +613 -0
  37. package/dist/consent/list/1.1/payload.d.ts.map +1 -0
  38. package/dist/consent/list/1.1/payload.js +353 -0
  39. package/dist/consent/list/1.1/payload.js.map +1 -0
  40. package/dist/device/list/0.3/payload.d.ts +1229 -0
  41. package/dist/device/list/0.3/payload.d.ts.map +1 -0
  42. package/dist/device/list/0.3/payload.js +796 -0
  43. package/dist/device/list/0.3/payload.js.map +1 -0
  44. package/dist/did-management/did/list/0.2/payload.d.ts +521 -0
  45. package/dist/did-management/did/list/0.2/payload.d.ts.map +1 -0
  46. package/dist/did-management/did/list/0.2/payload.js +285 -0
  47. package/dist/did-management/did/list/0.2/payload.js.map +1 -0
  48. package/dist/git-ns/account/list/0.2/payload.d.ts +598 -0
  49. package/dist/git-ns/account/list/0.2/payload.d.ts.map +1 -0
  50. package/dist/git-ns/account/list/0.2/payload.js +311 -0
  51. package/dist/git-ns/account/list/0.2/payload.js.map +1 -0
  52. package/dist/git-ns/activity/list/0.2/payload.d.ts +663 -0
  53. package/dist/git-ns/activity/list/0.2/payload.d.ts.map +1 -0
  54. package/dist/git-ns/activity/list/0.2/payload.js +345 -0
  55. package/dist/git-ns/activity/list/0.2/payload.js.map +1 -0
  56. package/dist/git-ns/bridge/job/list/0.3/payload.d.ts +733 -0
  57. package/dist/git-ns/bridge/job/list/0.3/payload.d.ts.map +1 -0
  58. package/dist/git-ns/bridge/job/list/0.3/payload.js +402 -0
  59. package/dist/git-ns/bridge/job/list/0.3/payload.js.map +1 -0
  60. package/dist/git-ns/projection/show/0.2/payload.d.ts +705 -0
  61. package/dist/git-ns/projection/show/0.2/payload.d.ts.map +1 -0
  62. package/dist/git-ns/projection/show/0.2/payload.js +371 -0
  63. package/dist/git-ns/projection/show/0.2/payload.js.map +1 -0
  64. package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts +862 -0
  65. package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts.map +1 -0
  66. package/dist/git-ns/right/issued-by-departed/0.2/payload.js +481 -0
  67. package/dist/git-ns/right/issued-by-departed/0.2/payload.js.map +1 -0
  68. package/dist/git-ns/right/list/0.2/payload.d.ts +773 -0
  69. package/dist/git-ns/right/list/0.2/payload.d.ts.map +1 -0
  70. package/dist/git-ns/right/list/0.2/payload.js +433 -0
  71. package/dist/git-ns/right/list/0.2/payload.js.map +1 -0
  72. package/dist/index.d.ts +80 -0
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +80 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/keys/list/0.2/payload.d.ts +627 -0
  77. package/dist/keys/list/0.2/payload.d.ts.map +1 -0
  78. package/dist/keys/list/0.2/payload.js +358 -0
  79. package/dist/keys/list/0.2/payload.js.map +1 -0
  80. package/dist/messaging/_shared/0.1/messaging.d.ts +1 -1
  81. package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -1
  82. package/dist/messaging/_shared/0.2/messaging.d.ts +16 -0
  83. package/dist/messaging/_shared/0.2/messaging.d.ts.map +1 -0
  84. package/dist/messaging/_shared/0.2/messaging.js +6 -0
  85. package/dist/messaging/_shared/0.2/messaging.js.map +1 -0
  86. package/dist/messaging/account/add/0.1/payload.d.ts +1 -1
  87. package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -1
  88. package/dist/messaging/account/add/0.2/payload.d.ts +1156 -0
  89. package/dist/messaging/account/add/0.2/payload.d.ts.map +1 -0
  90. package/dist/messaging/account/add/0.2/payload.js +611 -0
  91. package/dist/messaging/account/add/0.2/payload.js.map +1 -0
  92. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +1 -1
  93. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -1
  94. package/dist/messaging/account/change-type/0.1/payload.d.ts +1 -1
  95. package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -1
  96. package/dist/messaging/account/get/0.1/payload.d.ts +1 -1
  97. package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -1
  98. package/dist/messaging/account/get/0.2/payload.d.ts +1142 -0
  99. package/dist/messaging/account/get/0.2/payload.d.ts.map +1 -0
  100. package/dist/messaging/account/get/0.2/payload.js +606 -0
  101. package/dist/messaging/account/get/0.2/payload.js.map +1 -0
  102. package/dist/messaging/account/list/0.1/payload.d.ts +1 -1
  103. package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -1
  104. package/dist/messaging/account/list/0.2/payload.d.ts +1206 -0
  105. package/dist/messaging/account/list/0.2/payload.d.ts.map +1 -0
  106. package/dist/messaging/account/list/0.2/payload.js +630 -0
  107. package/dist/messaging/account/list/0.2/payload.js.map +1 -0
  108. package/dist/messaging/account/update/0.1/payload.d.ts +1 -1
  109. package/dist/messaging/account/update/0.1/payload.d.ts.map +1 -1
  110. package/dist/messaging/account/update/0.2/payload.d.ts +1154 -0
  111. package/dist/messaging/account/update/0.2/payload.d.ts.map +1 -0
  112. package/dist/messaging/account/update/0.2/payload.js +610 -0
  113. package/dist/messaging/account/update/0.2/payload.js.map +1 -0
  114. package/dist/persona/attribute/promote/1.1/payload.d.ts +506 -0
  115. package/dist/persona/attribute/promote/1.1/payload.d.ts.map +1 -0
  116. package/dist/persona/attribute/promote/1.1/payload.js +263 -0
  117. package/dist/persona/attribute/promote/1.1/payload.js.map +1 -0
  118. package/dist/persona/attribute/put/1.1/payload.d.ts +1190 -0
  119. package/dist/persona/attribute/put/1.1/payload.d.ts.map +1 -0
  120. package/dist/persona/attribute/put/1.1/payload.js +687 -0
  121. package/dist/persona/attribute/put/1.1/payload.js.map +1 -0
  122. package/dist/persona/contact/lists/put/1.1/payload.d.ts +629 -0
  123. package/dist/persona/contact/lists/put/1.1/payload.d.ts.map +1 -0
  124. package/dist/persona/contact/lists/put/1.1/payload.js +366 -0
  125. package/dist/persona/contact/lists/put/1.1/payload.js.map +1 -0
  126. package/dist/persona/contact/put/1.2/payload.d.ts +1470 -0
  127. package/dist/persona/contact/put/1.2/payload.d.ts.map +1 -0
  128. package/dist/persona/contact/put/1.2/payload.js +880 -0
  129. package/dist/persona/contact/put/1.2/payload.js.map +1 -0
  130. package/dist/persona/local/profile/put/1.1/payload.d.ts +587 -0
  131. package/dist/persona/local/profile/put/1.1/payload.d.ts.map +1 -0
  132. package/dist/persona/local/profile/put/1.1/payload.js +331 -0
  133. package/dist/persona/local/profile/put/1.1/payload.js.map +1 -0
  134. package/dist/persona/profile/compose/1.1/payload.d.ts +979 -0
  135. package/dist/persona/profile/compose/1.1/payload.d.ts.map +1 -0
  136. package/dist/persona/profile/compose/1.1/payload.js +536 -0
  137. package/dist/persona/profile/compose/1.1/payload.js.map +1 -0
  138. package/dist/persona/profile/put/1.1/payload.d.ts +1411 -0
  139. package/dist/persona/profile/put/1.1/payload.d.ts.map +1 -0
  140. package/dist/persona/profile/put/1.1/payload.js +847 -0
  141. package/dist/persona/profile/put/1.1/payload.js.map +1 -0
  142. package/dist/persona/world/put/1.1/payload.d.ts +490 -0
  143. package/dist/persona/world/put/1.1/payload.d.ts.map +1 -0
  144. package/dist/persona/world/put/1.1/payload.js +272 -0
  145. package/dist/persona/world/put/1.1/payload.js.map +1 -0
  146. package/dist/policy/list/0.3/payload.d.ts +516 -0
  147. package/dist/policy/list/0.3/payload.d.ts.map +1 -0
  148. package/dist/policy/list/0.3/payload.js +286 -0
  149. package/dist/policy/list/0.3/payload.js.map +1 -0
  150. package/dist/policy/upsert/0.3/payload.d.ts +540 -0
  151. package/dist/policy/upsert/0.3/payload.d.ts.map +1 -0
  152. package/dist/policy/upsert/0.3/payload.js +304 -0
  153. package/dist/policy/upsert/0.3/payload.js.map +1 -0
  154. package/dist/registry/record/put/0.2/payload.d.ts +443 -0
  155. package/dist/registry/record/put/0.2/payload.d.ts.map +1 -0
  156. package/dist/registry/record/put/0.2/payload.js +255 -0
  157. package/dist/registry/record/put/0.2/payload.js.map +1 -0
  158. package/dist/registry/record/query/0.2/payload.d.ts +486 -0
  159. package/dist/registry/record/query/0.2/payload.d.ts.map +1 -0
  160. package/dist/registry/record/query/0.2/payload.js +265 -0
  161. package/dist/registry/record/query/0.2/payload.js.map +1 -0
  162. package/dist/rooms/records/list/0.4/payload.d.ts +970 -0
  163. package/dist/rooms/records/list/0.4/payload.d.ts.map +1 -0
  164. package/dist/rooms/records/list/0.4/payload.js +526 -0
  165. package/dist/rooms/records/list/0.4/payload.js.map +1 -0
  166. package/dist/vault/list/0.4/payload.d.ts +1537 -0
  167. package/dist/vault/list/0.4/payload.d.ts.map +1 -0
  168. package/dist/vault/list/0.4/payload.js +841 -0
  169. package/dist/vault/list/0.4/payload.js.map +1 -0
  170. package/dist/vault/sync/0.3/payload.d.ts +1790 -0
  171. package/dist/vault/sync/0.3/payload.d.ts.map +1 -0
  172. package/dist/vault/sync/0.3/payload.js +1069 -0
  173. package/dist/vault/sync/0.3/payload.js.map +1 -0
  174. package/dist/vault/upsert/0.4/payload.d.ts +1755 -0
  175. package/dist/vault/upsert/0.4/payload.d.ts.map +1 -0
  176. package/dist/vault/upsert/0.4/payload.js +1013 -0
  177. package/dist/vault/upsert/0.4/payload.js.map +1 -0
  178. package/dist/vault/usage/0.3/payload.d.ts +586 -0
  179. package/dist/vault/usage/0.3/payload.d.ts.map +1 -0
  180. package/dist/vault/usage/0.3/payload.js +326 -0
  181. package/dist/vault/usage/0.3/payload.js.map +1 -0
  182. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  183. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  184. package/dist/vta/_shared/0.1/webvh-records.d.ts +1 -1
  185. package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -1
  186. package/dist/vta/_shared/0.7/app-state-record.d.ts +22 -0
  187. package/dist/vta/_shared/0.7/app-state-record.d.ts.map +1 -0
  188. package/dist/vta/_shared/0.7/app-state-record.js +6 -0
  189. package/dist/vta/_shared/0.7/app-state-record.js.map +1 -0
  190. package/dist/vta/_shared/0.7/did-template.d.ts +16 -0
  191. package/dist/vta/_shared/0.7/did-template.d.ts.map +1 -0
  192. package/dist/vta/_shared/0.7/did-template.js +6 -0
  193. package/dist/vta/_shared/0.7/did-template.js.map +1 -0
  194. package/dist/vta/_shared/0.7/webvh-records.d.ts +16 -0
  195. package/dist/vta/_shared/0.7/webvh-records.d.ts.map +1 -0
  196. package/dist/vta/_shared/0.7/webvh-records.js +6 -0
  197. package/dist/vta/_shared/0.7/webvh-records.js.map +1 -0
  198. package/dist/vta/app-state/list/1.1/payload.d.ts +705 -0
  199. package/dist/vta/app-state/list/1.1/payload.d.ts.map +1 -0
  200. package/dist/vta/app-state/list/1.1/payload.js +360 -0
  201. package/dist/vta/app-state/list/1.1/payload.js.map +1 -0
  202. package/dist/vta/app-state/put/1.1/payload.d.ts +549 -0
  203. package/dist/vta/app-state/put/1.1/payload.d.ts.map +1 -0
  204. package/dist/vta/app-state/put/1.1/payload.js +293 -0
  205. package/dist/vta/app-state/put/1.1/payload.js.map +1 -0
  206. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  207. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  208. package/dist/vta/app-state/put-many/1.1/payload.d.ts +807 -0
  209. package/dist/vta/app-state/put-many/1.1/payload.d.ts.map +1 -0
  210. package/dist/vta/app-state/put-many/1.1/payload.js +457 -0
  211. package/dist/vta/app-state/put-many/1.1/payload.js.map +1 -0
  212. package/dist/vta/credentials/list/0.2/payload.d.ts +610 -0
  213. package/dist/vta/credentials/list/0.2/payload.d.ts.map +1 -0
  214. package/dist/vta/credentials/list/0.2/payload.js +312 -0
  215. package/dist/vta/credentials/list/0.2/payload.js.map +1 -0
  216. package/dist/vta/did-templates/create/3.1/payload.d.ts +1100 -0
  217. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -0
  218. package/dist/vta/did-templates/create/3.1/payload.js +686 -0
  219. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -0
  220. package/dist/vta/did-templates/get/3.1/payload.d.ts +750 -0
  221. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -0
  222. package/dist/vta/did-templates/get/3.1/payload.js +465 -0
  223. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -0
  224. package/dist/vta/did-templates/list/3.1/payload.d.ts +807 -0
  225. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -0
  226. package/dist/vta/did-templates/list/3.1/payload.js +491 -0
  227. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -0
  228. package/dist/vta/did-templates/update/3.1/payload.d.ts +1114 -0
  229. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -0
  230. package/dist/vta/did-templates/update/3.1/payload.js +692 -0
  231. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -0
  232. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +1 -1
  233. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -1
  234. package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts +358 -0
  235. package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts.map +1 -0
  236. package/dist/vta/webvh/agent-name/list/1.1/payload.js +203 -0
  237. package/dist/vta/webvh/agent-name/list/1.1/payload.js.map +1 -0
  238. package/dist/vta/witness/list/0.2/payload.d.ts +653 -0
  239. package/dist/vta/witness/list/0.2/payload.d.ts.map +1 -0
  240. package/dist/vta/witness/list/0.2/payload.js +341 -0
  241. package/dist/vta/witness/list/0.2/payload.js.map +1 -0
  242. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  243. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  244. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  245. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  246. package/dist/vtc/_shared/0.3/community-room.d.ts +16 -0
  247. package/dist/vtc/_shared/0.3/community-room.d.ts.map +1 -0
  248. package/dist/vtc/_shared/0.3/community-room.js +6 -0
  249. package/dist/vtc/_shared/0.3/community-room.js.map +1 -0
  250. package/dist/vtc/_shared/0.3/room-storage.d.ts +16 -0
  251. package/dist/vtc/_shared/0.3/room-storage.d.ts.map +1 -0
  252. package/dist/vtc/_shared/0.3/room-storage.js +6 -0
  253. package/dist/vtc/_shared/0.3/room-storage.js.map +1 -0
  254. package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts +409 -0
  255. package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts.map +1 -0
  256. package/dist/vtc/admin/events/subscribe/0.5/payload.js +238 -0
  257. package/dist/vtc/admin/events/subscribe/0.5/payload.js.map +1 -0
  258. package/dist/vtc/auth/admin-session/0.2/payload.d.ts +249 -0
  259. package/dist/vtc/auth/admin-session/0.2/payload.d.ts.map +1 -0
  260. package/dist/vtc/auth/admin-session/0.2/payload.js +144 -0
  261. package/dist/vtc/auth/admin-session/0.2/payload.js.map +1 -0
  262. package/dist/vtc/auth/recognise/0.3/payload.d.ts +325 -0
  263. package/dist/vtc/auth/recognise/0.3/payload.d.ts.map +1 -0
  264. package/dist/vtc/auth/recognise/0.3/payload.js +187 -0
  265. package/dist/vtc/auth/recognise/0.3/payload.js.map +1 -0
  266. package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts +233 -0
  267. package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts.map +1 -0
  268. package/dist/vtc/auth/recognise/challenge/0.2/payload.js +136 -0
  269. package/dist/vtc/auth/recognise/challenge/0.2/payload.js.map +1 -0
  270. package/dist/vtc/directory/entries/list/0.2/payload.d.ts +5525 -0
  271. package/dist/vtc/directory/entries/list/0.2/payload.d.ts.map +1 -0
  272. package/dist/vtc/directory/entries/list/0.2/payload.js +650 -0
  273. package/dist/vtc/directory/entries/list/0.2/payload.js.map +1 -0
  274. package/dist/vtc/directory/export/0.2/payload.d.ts +358 -0
  275. package/dist/vtc/directory/export/0.2/payload.d.ts.map +1 -0
  276. package/dist/vtc/directory/export/0.2/payload.js +189 -0
  277. package/dist/vtc/directory/export/0.2/payload.js.map +1 -0
  278. package/dist/vtc/directory/notes/list/0.2/payload.d.ts +540 -0
  279. package/dist/vtc/directory/notes/list/0.2/payload.d.ts.map +1 -0
  280. package/dist/vtc/directory/notes/list/0.2/payload.js +291 -0
  281. package/dist/vtc/directory/notes/list/0.2/payload.js.map +1 -0
  282. package/dist/vtc/elections/list/0.2/payload.d.ts +521 -0
  283. package/dist/vtc/elections/list/0.2/payload.d.ts.map +1 -0
  284. package/dist/vtc/elections/list/0.2/payload.js +290 -0
  285. package/dist/vtc/elections/list/0.2/payload.js.map +1 -0
  286. package/dist/vtc/endorsement-types/list/0.2/payload.d.ts +382 -0
  287. package/dist/vtc/endorsement-types/list/0.2/payload.d.ts.map +1 -0
  288. package/dist/vtc/endorsement-types/list/0.2/payload.js +210 -0
  289. package/dist/vtc/endorsement-types/list/0.2/payload.js.map +1 -0
  290. package/dist/vtc/endorsements/list/0.2/payload.d.ts +612 -0
  291. package/dist/vtc/endorsements/list/0.2/payload.d.ts.map +1 -0
  292. package/dist/vtc/endorsements/list/0.2/payload.js +347 -0
  293. package/dist/vtc/endorsements/list/0.2/payload.js.map +1 -0
  294. package/dist/vtc/groups/list/0.2/payload.d.ts +1139 -0
  295. package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -0
  296. package/dist/vtc/groups/list/0.2/payload.js +671 -0
  297. package/dist/vtc/groups/list/0.2/payload.js.map +1 -0
  298. package/dist/vtc/groups/members/list/0.2/payload.d.ts +1030 -0
  299. package/dist/vtc/groups/members/list/0.2/payload.d.ts.map +1 -0
  300. package/dist/vtc/groups/members/list/0.2/payload.js +603 -0
  301. package/dist/vtc/groups/members/list/0.2/payload.js.map +1 -0
  302. package/dist/vtc/groups/requests/list/0.2/payload.d.ts +1080 -0
  303. package/dist/vtc/groups/requests/list/0.2/payload.d.ts.map +1 -0
  304. package/dist/vtc/groups/requests/list/0.2/payload.js +620 -0
  305. package/dist/vtc/groups/requests/list/0.2/payload.js.map +1 -0
  306. package/dist/vtc/join-requests/list/0.2/payload.d.ts +653 -0
  307. package/dist/vtc/join-requests/list/0.2/payload.d.ts.map +1 -0
  308. package/dist/vtc/join-requests/list/0.2/payload.js +405 -0
  309. package/dist/vtc/join-requests/list/0.2/payload.js.map +1 -0
  310. package/dist/vtc/members/list/0.2/payload.d.ts +596 -0
  311. package/dist/vtc/members/list/0.2/payload.d.ts.map +1 -0
  312. package/dist/vtc/members/list/0.2/payload.js +381 -0
  313. package/dist/vtc/members/list/0.2/payload.js.map +1 -0
  314. package/dist/vtc/registry/records/list/0.2/payload.d.ts +576 -0
  315. package/dist/vtc/registry/records/list/0.2/payload.d.ts.map +1 -0
  316. package/dist/vtc/registry/records/list/0.2/payload.js +306 -0
  317. package/dist/vtc/registry/records/list/0.2/payload.js.map +1 -0
  318. package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts +584 -0
  319. package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts.map +1 -0
  320. package/dist/vtc/registry/sync-jobs/list/0.2/payload.js +337 -0
  321. package/dist/vtc/registry/sync-jobs/list/0.2/payload.js.map +1 -0
  322. package/dist/vtc/relationships/list/0.3/payload.d.ts +444 -0
  323. package/dist/vtc/relationships/list/0.3/payload.d.ts.map +1 -0
  324. package/dist/vtc/relationships/list/0.3/payload.js +254 -0
  325. package/dist/vtc/relationships/list/0.3/payload.js.map +1 -0
  326. package/dist/vtc/rooms/community/create/0.1/payload.d.ts +1 -1
  327. package/dist/vtc/rooms/community/create/0.1/payload.d.ts.map +1 -1
  328. package/dist/vtc/rooms/community/create/0.2/payload.d.ts +1 -1
  329. package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -1
  330. package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1 -1
  331. package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -1
  332. package/dist/vtc/rooms/community/create/0.4/payload.d.ts +1013 -0
  333. package/dist/vtc/rooms/community/create/0.4/payload.d.ts.map +1 -0
  334. package/dist/vtc/rooms/community/create/0.4/payload.js +577 -0
  335. package/dist/vtc/rooms/community/create/0.4/payload.js.map +1 -0
  336. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +1 -1
  337. package/dist/vtc/rooms/community/get/0.1/payload.d.ts.map +1 -1
  338. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +1 -1
  339. package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -1
  340. package/dist/vtc/rooms/community/get/0.3/payload.d.ts +887 -0
  341. package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -0
  342. package/dist/vtc/rooms/community/get/0.3/payload.js +517 -0
  343. package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -0
  344. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +1 -1
  345. package/dist/vtc/rooms/community/list/0.1/payload.d.ts.map +1 -1
  346. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +1 -1
  347. package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -1
  348. package/dist/vtc/rooms/community/list/0.3/payload.d.ts +960 -0
  349. package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -0
  350. package/dist/vtc/rooms/community/list/0.3/payload.js +544 -0
  351. package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -0
  352. package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1 -1
  353. package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -1
  354. package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1 -1
  355. package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -1
  356. package/dist/vtc/rooms/community/update/0.3/payload.d.ts +1037 -0
  357. package/dist/vtc/rooms/community/update/0.3/payload.d.ts.map +1 -0
  358. package/dist/vtc/rooms/community/update/0.3/payload.js +593 -0
  359. package/dist/vtc/rooms/community/update/0.3/payload.js.map +1 -0
  360. package/dist/vtc/rooms/get/0.1/payload.d.ts +1 -1
  361. package/dist/vtc/rooms/get/0.1/payload.d.ts.map +1 -1
  362. package/dist/vtc/rooms/get/0.2/payload.d.ts +1 -1
  363. package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -1
  364. package/dist/vtc/rooms/get/0.3/payload.d.ts +1966 -0
  365. package/dist/vtc/rooms/get/0.3/payload.d.ts.map +1 -0
  366. package/dist/vtc/rooms/get/0.3/payload.js +976 -0
  367. package/dist/vtc/rooms/get/0.3/payload.js.map +1 -0
  368. package/dist/vtc/rooms/list/0.2/payload.d.ts +653 -0
  369. package/dist/vtc/rooms/list/0.2/payload.d.ts.map +1 -0
  370. package/dist/vtc/rooms/list/0.2/payload.js +360 -0
  371. package/dist/vtc/rooms/list/0.2/payload.js.map +1 -0
  372. package/dist/vtc/website/files/list/0.2/payload.d.ts +371 -0
  373. package/dist/vtc/website/files/list/0.2/payload.d.ts.map +1 -0
  374. package/dist/vtc/website/files/list/0.2/payload.js +198 -0
  375. package/dist/vtc/website/files/list/0.2/payload.js.map +1 -0
  376. package/package.json +1 -1
  377. package/src/_shared/components.ts +274 -50
  378. package/src/acl/list/0.3/payload.ts +1111 -0
  379. package/src/audit/list/0.2/payload.ts +406 -0
  380. package/src/auth/oob/claim/0.2/payload.ts +306 -0
  381. package/src/auth/oob/grant/0.3/payload.ts +186 -0
  382. package/src/auth/oob/prove/0.3/payload.ts +523 -0
  383. package/src/auth/oob/redeem/0.2/payload.ts +248 -0
  384. package/src/auth/oob/request/0.2/payload.ts +230 -0
  385. package/src/auth/oob/respond/0.3/payload.ts +178 -0
  386. package/src/consent/list/1.1/payload.ts +407 -0
  387. package/src/device/list/0.3/payload.ts +846 -0
  388. package/src/did-management/did/list/0.2/payload.ts +327 -0
  389. package/src/git-ns/account/list/0.2/payload.ts +386 -0
  390. package/src/git-ns/activity/list/0.2/payload.ts +438 -0
  391. package/src/git-ns/bridge/job/list/0.3/payload.ts +511 -0
  392. package/src/git-ns/projection/show/0.2/payload.ts +473 -0
  393. package/src/git-ns/right/issued-by-departed/0.2/payload.ts +544 -0
  394. package/src/git-ns/right/list/0.2/payload.ts +487 -0
  395. package/src/index.ts +80 -0
  396. package/src/keys/list/0.2/payload.ts +412 -0
  397. package/src/messaging/_shared/0.1/messaging.ts +1 -1
  398. package/src/messaging/_shared/0.2/messaging.ts +17 -0
  399. package/src/messaging/account/add/0.1/payload.ts +1 -1
  400. package/src/messaging/account/add/0.2/payload.ts +664 -0
  401. package/src/messaging/account/change-queue-limits/0.1/payload.ts +1 -1
  402. package/src/messaging/account/change-type/0.1/payload.ts +1 -1
  403. package/src/messaging/account/get/0.1/payload.ts +1 -1
  404. package/src/messaging/account/get/0.2/payload.ts +655 -0
  405. package/src/messaging/account/list/0.1/payload.ts +1 -1
  406. package/src/messaging/account/list/0.2/payload.ts +691 -0
  407. package/src/messaging/account/update/0.1/payload.ts +1 -1
  408. package/src/messaging/account/update/0.2/payload.ts +663 -0
  409. package/src/persona/attribute/promote/1.1/payload.ts +344 -0
  410. package/src/persona/attribute/put/1.1/payload.ts +792 -0
  411. package/src/persona/contact/lists/put/1.1/payload.ts +429 -0
  412. package/src/persona/contact/put/1.2/payload.ts +988 -0
  413. package/src/persona/local/profile/put/1.1/payload.ts +399 -0
  414. package/src/persona/profile/compose/1.1/payload.ts +659 -0
  415. package/src/persona/profile/put/1.1/payload.ts +917 -0
  416. package/src/persona/world/put/1.1/payload.ts +339 -0
  417. package/src/policy/list/0.3/payload.ts +325 -0
  418. package/src/policy/upsert/0.3/payload.ts +341 -0
  419. package/src/registry/record/put/0.2/payload.ts +299 -0
  420. package/src/registry/record/query/0.2/payload.ts +324 -0
  421. package/src/rooms/records/list/0.4/payload.ts +601 -0
  422. package/src/vault/list/0.4/payload.ts +945 -0
  423. package/src/vault/sync/0.3/payload.ts +1120 -0
  424. package/src/vault/upsert/0.4/payload.ts +1077 -0
  425. package/src/vault/usage/0.3/payload.ts +416 -0
  426. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  427. package/src/vta/_shared/0.1/webvh-records.ts +1 -1
  428. package/src/vta/_shared/0.7/app-state-record.ts +23 -0
  429. package/src/vta/_shared/0.7/did-template.ts +17 -0
  430. package/src/vta/_shared/0.7/webvh-records.ts +17 -0
  431. package/src/vta/app-state/list/1.1/payload.ts +444 -0
  432. package/src/vta/app-state/put/1.1/payload.ts +374 -0
  433. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
  434. package/src/vta/app-state/put-many/1.1/payload.ts +538 -0
  435. package/src/vta/credentials/list/0.2/payload.ts +406 -0
  436. package/src/vta/did-templates/create/3.1/payload.ts +721 -0
  437. package/src/vta/did-templates/get/3.1/payload.ts +500 -0
  438. package/src/vta/did-templates/list/3.1/payload.ts +535 -0
  439. package/src/vta/did-templates/update/3.1/payload.ts +731 -0
  440. package/src/vta/webvh/agent-name/list/1.0/payload.ts +1 -1
  441. package/src/vta/webvh/agent-name/list/1.1/payload.ts +242 -0
  442. package/src/vta/witness/list/0.2/payload.ts +427 -0
  443. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  444. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  445. package/src/vtc/_shared/0.3/community-room.ts +17 -0
  446. package/src/vtc/_shared/0.3/room-storage.ts +17 -0
  447. package/src/vtc/admin/events/subscribe/0.5/payload.ts +318 -0
  448. package/src/vtc/auth/admin-session/0.2/payload.ts +180 -0
  449. package/src/vtc/auth/recognise/0.3/payload.ts +233 -0
  450. package/src/vtc/auth/recognise/challenge/0.2/payload.ts +168 -0
  451. package/src/vtc/directory/entries/list/0.2/payload.ts +5670 -0
  452. package/src/vtc/directory/export/0.2/payload.ts +244 -0
  453. package/src/vtc/directory/notes/list/0.2/payload.ts +340 -0
  454. package/src/vtc/elections/list/0.2/payload.ts +371 -0
  455. package/src/vtc/endorsement-types/list/0.2/payload.ts +247 -0
  456. package/src/vtc/endorsements/list/0.2/payload.ts +400 -0
  457. package/src/vtc/groups/list/0.2/payload.ts +731 -0
  458. package/src/vtc/groups/members/list/0.2/payload.ts +650 -0
  459. package/src/vtc/groups/requests/list/0.2/payload.ts +677 -0
  460. package/src/vtc/join-requests/list/0.2/payload.ts +447 -0
  461. package/src/vtc/members/list/0.2/payload.ts +426 -0
  462. package/src/vtc/registry/records/list/0.2/payload.ts +401 -0
  463. package/src/vtc/registry/sync-jobs/list/0.2/payload.ts +427 -0
  464. package/src/vtc/relationships/list/0.3/payload.ts +309 -0
  465. package/src/vtc/rooms/community/create/0.1/payload.ts +1 -1
  466. package/src/vtc/rooms/community/create/0.2/payload.ts +1 -1
  467. package/src/vtc/rooms/community/create/0.3/payload.ts +1 -1
  468. package/src/vtc/rooms/community/create/0.4/payload.ts +635 -0
  469. package/src/vtc/rooms/community/get/0.1/payload.ts +1 -1
  470. package/src/vtc/rooms/community/get/0.2/payload.ts +1 -1
  471. package/src/vtc/rooms/community/get/0.3/payload.ts +549 -0
  472. package/src/vtc/rooms/community/list/0.1/payload.ts +1 -1
  473. package/src/vtc/rooms/community/list/0.2/payload.ts +1 -1
  474. package/src/vtc/rooms/community/list/0.3/payload.ts +591 -0
  475. package/src/vtc/rooms/community/update/0.1/payload.ts +1 -1
  476. package/src/vtc/rooms/community/update/0.2/payload.ts +1 -1
  477. package/src/vtc/rooms/community/update/0.3/payload.ts +653 -0
  478. package/src/vtc/rooms/get/0.1/payload.ts +1 -1
  479. package/src/vtc/rooms/get/0.2/payload.ts +1 -1
  480. package/src/vtc/rooms/get/0.3/payload.ts +1372 -0
  481. package/src/vtc/rooms/list/0.2/payload.ts +449 -0
  482. package/src/vtc/website/files/list/0.2/payload.ts +252 -0
@@ -0,0 +1,1139 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/groups/list/0.2/payload.schema.json
4
+ */
5
+ import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
6
+ /**
7
+ * List the community groups the caller may see — all of them for an administrator, the visible ones for a member — optionally only those they belong to or could join. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCGroupsListPayload {
10
+ /**
11
+ * Only groups the caller belongs to.
12
+ */
13
+ mine?: boolean;
14
+ /**
15
+ * Only static groups with `joinPolicy` `open` or `request` the caller does not belong to.
16
+ */
17
+ joinable?: boolean;
18
+ /**
19
+ * An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the filters; a responder MUST NOT accept a cursor it did not issue.
20
+ */
21
+ cursor?: string;
22
+ /**
23
+ * The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.
24
+ */
25
+ limit?: number;
26
+ ext?: Ext;
27
+ }
28
+ /**
29
+ * The success response to a vtc/groups/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/list/0.2#response.
30
+ */
31
+ export interface VTCGroupsListResponsePayload {
32
+ /**
33
+ * @maxItems 200
34
+ */
35
+ items: {
36
+ group: Group;
37
+ /**
38
+ * The caller's own standing in the group.
39
+ */
40
+ myMembership: "member" | "pending" | "requested" | "optedOut" | "none";
41
+ }[];
42
+ /**
43
+ * Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.
44
+ */
45
+ nextCursor?: string;
46
+ ext?: Ext;
47
+ }
48
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
49
+ export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
50
+ /** Trust Task type URI. */
51
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/groups/list/0.2";
52
+ /** Stable alias for this specification's request payload shape. */
53
+ export type Payload = VTCGroupsListPayload;
54
+ /** Trust Task response type URI (request type URI + "#response"). */
55
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/groups/list/0.2#response";
56
+ /** Stable alias for this specification's success-response payload shape. */
57
+ export type Response = VTCGroupsListResponsePayload;
58
+ /**
59
+ * This specification's payload schema, as a value.
60
+ *
61
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
62
+ * rather than only as a `.json` file because TypeScript types are erased
63
+ * at runtime: without a schema a consumer has nothing to validate, and
64
+ * every REQUIRED payload member is optional in practice. Cross-file
65
+ * `$ref`s are already inlined, so it needs no resolver.
66
+ */
67
+ export declare const PAYLOAD_SCHEMA: {
68
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
69
+ readonly $id: "https://trusttasks.org/spec/vtc/groups/list/0.2";
70
+ readonly title: "VTC Groups — List — payload";
71
+ readonly description: "List the community groups the caller may see — all of them for an administrator, the visible ones for a member — optionally only those they belong to or could join. The outer document members are owned by the framework — SPEC §6.3.";
72
+ readonly type: "object";
73
+ readonly additionalProperties: false;
74
+ readonly properties: {
75
+ readonly mine: {
76
+ readonly type: "boolean";
77
+ readonly description: "Only groups the caller belongs to.";
78
+ };
79
+ readonly joinable: {
80
+ readonly type: "boolean";
81
+ readonly description: "Only static groups with `joinPolicy` `open` or `request` the caller does not belong to.";
82
+ };
83
+ readonly cursor: {
84
+ readonly type: "string";
85
+ readonly minLength: 1;
86
+ readonly maxLength: 1024;
87
+ readonly description: "An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the filters; a responder MUST NOT accept a cursor it did not issue.";
88
+ };
89
+ readonly limit: {
90
+ readonly type: "integer";
91
+ readonly minimum: 1;
92
+ readonly maximum: 200;
93
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
94
+ };
95
+ readonly ext: {
96
+ readonly $ref: "#/$defs/Ext";
97
+ };
98
+ };
99
+ readonly $defs: {
100
+ readonly Response: {
101
+ readonly $anchor: "response";
102
+ readonly title: "VTC Groups — List — response payload";
103
+ readonly description: "The success response to a vtc/groups/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/list/0.2#response.";
104
+ readonly type: "object";
105
+ readonly additionalProperties: false;
106
+ readonly required: readonly ["items"];
107
+ readonly properties: {
108
+ readonly items: {
109
+ readonly type: "array";
110
+ readonly maxItems: 200;
111
+ readonly items: {
112
+ readonly type: "object";
113
+ readonly additionalProperties: false;
114
+ readonly required: readonly ["group", "myMembership"];
115
+ readonly properties: {
116
+ readonly group: {
117
+ readonly $ref: "#/$defs/Group";
118
+ };
119
+ readonly myMembership: {
120
+ readonly type: "string";
121
+ readonly enum: readonly ["member", "pending", "requested", "optedOut", "none"];
122
+ readonly description: "The caller's own standing in the group.";
123
+ };
124
+ };
125
+ };
126
+ };
127
+ readonly nextCursor: {
128
+ readonly type: "string";
129
+ readonly maxLength: 1024;
130
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
131
+ };
132
+ readonly ext: {
133
+ readonly $ref: "#/$defs/Ext";
134
+ };
135
+ };
136
+ };
137
+ readonly Ext: {
138
+ readonly title: "Ext";
139
+ 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.";
140
+ readonly type: "object";
141
+ readonly minProperties: 1;
142
+ readonly additionalProperties: true;
143
+ readonly propertyNames: {
144
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
145
+ };
146
+ };
147
+ readonly Group: {
148
+ readonly title: "Group";
149
+ readonly description: "A community group, as a caller who may see it sees it. Members a caller may not see are absent: `memberCount` only to those who may see the group's members, `managers` and `credentialAuthorityValidUntil` only to its managers.";
150
+ readonly type: "object";
151
+ readonly additionalProperties: false;
152
+ readonly required: readonly ["groupId", "groupDid", "name", "kind", "visibility", "showMembers", "issuesCredentials", "carriesAuthority", "createdAt"];
153
+ readonly properties: {
154
+ readonly groupId: {
155
+ readonly $ref: "#/$defs/GroupId";
156
+ };
157
+ readonly groupDid: {
158
+ readonly type: "string";
159
+ readonly pattern: "^did:";
160
+ readonly maxLength: 2048;
161
+ readonly description: "The group's own DID, minted by the community's VTA for this group alone. It issues the group's membership credentials. Its DID document carries no name or description.";
162
+ };
163
+ readonly name: {
164
+ readonly $ref: "#/$defs/GroupName";
165
+ };
166
+ readonly description: {
167
+ readonly $ref: "#/$defs/GroupDescription";
168
+ };
169
+ readonly kind: {
170
+ readonly $ref: "#/$defs/GroupKind";
171
+ };
172
+ readonly rule: {
173
+ readonly $ref: "#/$defs/DynamicRule";
174
+ readonly description: "Present exactly when `kind` is `dynamic`.";
175
+ };
176
+ readonly joinPolicy: {
177
+ readonly $ref: "#/$defs/JoinPolicy";
178
+ readonly description: "Present exactly when `kind` is `static`.";
179
+ };
180
+ readonly visibility: {
181
+ readonly $ref: "#/$defs/GroupAudience";
182
+ readonly description: "Who may see that the group exists, and its name and description.";
183
+ };
184
+ readonly showMembers: {
185
+ readonly $ref: "#/$defs/GroupAudience";
186
+ readonly description: "Who may see the group's member list. Separate from `visibility`: a group everyone sees may show its members only to administrators. Never wider than `visibility`.";
187
+ };
188
+ readonly issuesCredentials: {
189
+ readonly type: "boolean";
190
+ readonly description: "Whether the group's DID issues its members a membership credential. Default true.";
191
+ };
192
+ readonly carriesAuthority: {
193
+ readonly type: "boolean";
194
+ readonly description: "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does.";
195
+ };
196
+ readonly memberCount: {
197
+ readonly type: "integer";
198
+ readonly minimum: 0;
199
+ readonly description: "Active members. Only to callers who may see the member list.";
200
+ };
201
+ readonly managers: {
202
+ readonly type: "array";
203
+ readonly maxItems: 256;
204
+ readonly uniqueItems: true;
205
+ readonly items: {
206
+ readonly $ref: "#/$defs/EntryId";
207
+ };
208
+ readonly description: "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record.";
209
+ };
210
+ readonly credentialAuthorityValidUntil: {
211
+ readonly type: "string";
212
+ readonly format: "date-time";
213
+ readonly description: "When the community's authorization credential to the group expires. The community renews it well before.";
214
+ };
215
+ readonly createdAt: {
216
+ readonly type: "string";
217
+ readonly format: "date-time";
218
+ };
219
+ readonly createdBy: {
220
+ readonly $ref: "#/$defs/EntryId";
221
+ readonly description: "The creating administrator's directory entry, where they have one.";
222
+ };
223
+ readonly updatedAt: {
224
+ readonly type: "string";
225
+ readonly format: "date-time";
226
+ };
227
+ readonly ext: {
228
+ readonly $ref: "#/$defs/Ext";
229
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry authority.";
230
+ };
231
+ };
232
+ };
233
+ readonly GroupAudience: {
234
+ readonly title: "GroupAudience";
235
+ readonly description: "Who may see something about a group, narrowest first. `admins`: holders of `vtc.groups.manage` for the group (unqualified, or qualified `group:<groupId>`). `groupMembers`: the group's own members, and its managers. `members`: every active member of the community.";
236
+ readonly type: "string";
237
+ readonly enum: readonly ["admins", "groupMembers", "members"];
238
+ };
239
+ readonly JoinPolicy: {
240
+ readonly title: "JoinPolicy";
241
+ readonly description: "How a member enters a static group by themselves. `closed`: only a manager adds them. `request`: a member asks and a manager decides. `open`: a member joins at once, subject to the community's `groups` policy. A group carrying authority is always `closed`.";
242
+ readonly type: "string";
243
+ readonly enum: readonly ["closed", "request", "open"];
244
+ };
245
+ readonly DynamicRule: {
246
+ readonly title: "DynamicRule";
247
+ readonly description: "A dynamic group's membership rule: a member belongs when every condition holds and they have not opted out. The community evaluates it under its `groups` policy and recomputes membership whenever a fact it reads changes, always excluding opted-out entries.";
248
+ readonly type: "object";
249
+ readonly additionalProperties: false;
250
+ readonly required: readonly ["all"];
251
+ readonly properties: {
252
+ readonly all: {
253
+ readonly type: "array";
254
+ readonly minItems: 1;
255
+ readonly maxItems: 16;
256
+ readonly items: {
257
+ readonly $ref: "#/$defs/RuleCondition";
258
+ };
259
+ };
260
+ };
261
+ };
262
+ readonly RuleCondition: {
263
+ readonly title: "RuleCondition";
264
+ readonly description: "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.";
265
+ readonly type: "object";
266
+ readonly additionalProperties: false;
267
+ readonly required: readonly ["fact", "op"];
268
+ readonly properties: {
269
+ readonly fact: {
270
+ readonly type: "string";
271
+ readonly enum: readonly ["role", "field", "personhood", "joinedAt"];
272
+ };
273
+ readonly field: {
274
+ readonly $ref: "#/$defs/FieldKey";
275
+ readonly description: "Present exactly when `fact` is `field`.";
276
+ };
277
+ readonly op: {
278
+ readonly type: "string";
279
+ readonly enum: readonly ["equals", "oneOf", "exists", "before", "after"];
280
+ readonly description: "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`.";
281
+ };
282
+ readonly value: {
283
+ readonly anyOf: readonly [{
284
+ readonly type: "string";
285
+ readonly maxLength: 256;
286
+ }, {
287
+ readonly type: "boolean";
288
+ }];
289
+ };
290
+ readonly values: {
291
+ readonly type: "array";
292
+ readonly minItems: 1;
293
+ readonly maxItems: 64;
294
+ readonly items: {
295
+ readonly type: "string";
296
+ readonly maxLength: 256;
297
+ };
298
+ };
299
+ };
300
+ };
301
+ readonly FieldKey: {
302
+ readonly title: "FieldKey";
303
+ 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.";
304
+ readonly type: "string";
305
+ readonly minLength: 1;
306
+ readonly maxLength: 128;
307
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
308
+ };
309
+ readonly GroupKind: {
310
+ readonly title: "GroupKind";
311
+ readonly description: "`static`: membership is explicit — added, joined, or granted on request. `dynamic`: membership is computed from `rule` over verified facts only; nobody is added by hand, but a member may opt out (vtc/groups/leave), an exclusion the rule cannot override, and undo it (vtc/groups/join). A dynamic group never confers authority. Fixed for the group's life.";
312
+ readonly type: "string";
313
+ readonly enum: readonly ["static", "dynamic"];
314
+ };
315
+ readonly GroupDescription: {
316
+ readonly title: "GroupDescription";
317
+ readonly type: "string";
318
+ readonly minLength: 1;
319
+ readonly maxLength: 1000;
320
+ readonly description: "What the group is for. Plain text; a reader MUST NOT treat it as instructions. Same placement rules as `GroupName`.";
321
+ };
322
+ readonly GroupName: {
323
+ readonly title: "GroupName";
324
+ readonly type: "string";
325
+ readonly minLength: 1;
326
+ readonly maxLength: 128;
327
+ readonly description: "The group's name, shown to those who may see the group. The community's own record: never in the group's DID document or its credentials' subject beyond the group's DID. Plain text.";
328
+ };
329
+ readonly GroupId: {
330
+ readonly title: "GroupId";
331
+ 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.";
332
+ readonly type: "string";
333
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
334
+ };
335
+ readonly EntryId: {
336
+ readonly title: "EntryId";
337
+ 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.";
338
+ readonly type: "string";
339
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
340
+ };
341
+ };
342
+ };
343
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
344
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
345
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
346
+ readonly $ref: "#/$defs/Response";
347
+ readonly $defs: {
348
+ readonly Response: {
349
+ readonly $anchor: "response";
350
+ readonly title: "VTC Groups — List — response payload";
351
+ readonly description: "The success response to a vtc/groups/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/list/0.2#response.";
352
+ readonly type: "object";
353
+ readonly additionalProperties: false;
354
+ readonly required: readonly ["items"];
355
+ readonly properties: {
356
+ readonly items: {
357
+ readonly type: "array";
358
+ readonly maxItems: 200;
359
+ readonly items: {
360
+ readonly type: "object";
361
+ readonly additionalProperties: false;
362
+ readonly required: readonly ["group", "myMembership"];
363
+ readonly properties: {
364
+ readonly group: {
365
+ readonly $ref: "#/$defs/Group";
366
+ };
367
+ readonly myMembership: {
368
+ readonly type: "string";
369
+ readonly enum: readonly ["member", "pending", "requested", "optedOut", "none"];
370
+ readonly description: "The caller's own standing in the group.";
371
+ };
372
+ };
373
+ };
374
+ };
375
+ readonly nextCursor: {
376
+ readonly type: "string";
377
+ readonly maxLength: 1024;
378
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
379
+ };
380
+ readonly ext: {
381
+ readonly $ref: "#/$defs/Ext";
382
+ };
383
+ };
384
+ };
385
+ readonly Ext: {
386
+ readonly title: "Ext";
387
+ 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.";
388
+ readonly type: "object";
389
+ readonly minProperties: 1;
390
+ readonly additionalProperties: true;
391
+ readonly propertyNames: {
392
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
393
+ };
394
+ };
395
+ readonly Group: {
396
+ readonly title: "Group";
397
+ readonly description: "A community group, as a caller who may see it sees it. Members a caller may not see are absent: `memberCount` only to those who may see the group's members, `managers` and `credentialAuthorityValidUntil` only to its managers.";
398
+ readonly type: "object";
399
+ readonly additionalProperties: false;
400
+ readonly required: readonly ["groupId", "groupDid", "name", "kind", "visibility", "showMembers", "issuesCredentials", "carriesAuthority", "createdAt"];
401
+ readonly properties: {
402
+ readonly groupId: {
403
+ readonly $ref: "#/$defs/GroupId";
404
+ };
405
+ readonly groupDid: {
406
+ readonly type: "string";
407
+ readonly pattern: "^did:";
408
+ readonly maxLength: 2048;
409
+ readonly description: "The group's own DID, minted by the community's VTA for this group alone. It issues the group's membership credentials. Its DID document carries no name or description.";
410
+ };
411
+ readonly name: {
412
+ readonly $ref: "#/$defs/GroupName";
413
+ };
414
+ readonly description: {
415
+ readonly $ref: "#/$defs/GroupDescription";
416
+ };
417
+ readonly kind: {
418
+ readonly $ref: "#/$defs/GroupKind";
419
+ };
420
+ readonly rule: {
421
+ readonly $ref: "#/$defs/DynamicRule";
422
+ readonly description: "Present exactly when `kind` is `dynamic`.";
423
+ };
424
+ readonly joinPolicy: {
425
+ readonly $ref: "#/$defs/JoinPolicy";
426
+ readonly description: "Present exactly when `kind` is `static`.";
427
+ };
428
+ readonly visibility: {
429
+ readonly $ref: "#/$defs/GroupAudience";
430
+ readonly description: "Who may see that the group exists, and its name and description.";
431
+ };
432
+ readonly showMembers: {
433
+ readonly $ref: "#/$defs/GroupAudience";
434
+ readonly description: "Who may see the group's member list. Separate from `visibility`: a group everyone sees may show its members only to administrators. Never wider than `visibility`.";
435
+ };
436
+ readonly issuesCredentials: {
437
+ readonly type: "boolean";
438
+ readonly description: "Whether the group's DID issues its members a membership credential. Default true.";
439
+ };
440
+ readonly carriesAuthority: {
441
+ readonly type: "boolean";
442
+ readonly description: "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does.";
443
+ };
444
+ readonly memberCount: {
445
+ readonly type: "integer";
446
+ readonly minimum: 0;
447
+ readonly description: "Active members. Only to callers who may see the member list.";
448
+ };
449
+ readonly managers: {
450
+ readonly type: "array";
451
+ readonly maxItems: 256;
452
+ readonly uniqueItems: true;
453
+ readonly items: {
454
+ readonly $ref: "#/$defs/EntryId";
455
+ };
456
+ readonly description: "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record.";
457
+ };
458
+ readonly credentialAuthorityValidUntil: {
459
+ readonly type: "string";
460
+ readonly format: "date-time";
461
+ readonly description: "When the community's authorization credential to the group expires. The community renews it well before.";
462
+ };
463
+ readonly createdAt: {
464
+ readonly type: "string";
465
+ readonly format: "date-time";
466
+ };
467
+ readonly createdBy: {
468
+ readonly $ref: "#/$defs/EntryId";
469
+ readonly description: "The creating administrator's directory entry, where they have one.";
470
+ };
471
+ readonly updatedAt: {
472
+ readonly type: "string";
473
+ readonly format: "date-time";
474
+ };
475
+ readonly ext: {
476
+ readonly $ref: "#/$defs/Ext";
477
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry authority.";
478
+ };
479
+ };
480
+ };
481
+ readonly GroupAudience: {
482
+ readonly title: "GroupAudience";
483
+ readonly description: "Who may see something about a group, narrowest first. `admins`: holders of `vtc.groups.manage` for the group (unqualified, or qualified `group:<groupId>`). `groupMembers`: the group's own members, and its managers. `members`: every active member of the community.";
484
+ readonly type: "string";
485
+ readonly enum: readonly ["admins", "groupMembers", "members"];
486
+ };
487
+ readonly JoinPolicy: {
488
+ readonly title: "JoinPolicy";
489
+ readonly description: "How a member enters a static group by themselves. `closed`: only a manager adds them. `request`: a member asks and a manager decides. `open`: a member joins at once, subject to the community's `groups` policy. A group carrying authority is always `closed`.";
490
+ readonly type: "string";
491
+ readonly enum: readonly ["closed", "request", "open"];
492
+ };
493
+ readonly DynamicRule: {
494
+ readonly title: "DynamicRule";
495
+ readonly description: "A dynamic group's membership rule: a member belongs when every condition holds and they have not opted out. The community evaluates it under its `groups` policy and recomputes membership whenever a fact it reads changes, always excluding opted-out entries.";
496
+ readonly type: "object";
497
+ readonly additionalProperties: false;
498
+ readonly required: readonly ["all"];
499
+ readonly properties: {
500
+ readonly all: {
501
+ readonly type: "array";
502
+ readonly minItems: 1;
503
+ readonly maxItems: 16;
504
+ readonly items: {
505
+ readonly $ref: "#/$defs/RuleCondition";
506
+ };
507
+ };
508
+ };
509
+ };
510
+ readonly RuleCondition: {
511
+ readonly title: "RuleCondition";
512
+ readonly description: "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.";
513
+ readonly type: "object";
514
+ readonly additionalProperties: false;
515
+ readonly required: readonly ["fact", "op"];
516
+ readonly properties: {
517
+ readonly fact: {
518
+ readonly type: "string";
519
+ readonly enum: readonly ["role", "field", "personhood", "joinedAt"];
520
+ };
521
+ readonly field: {
522
+ readonly $ref: "#/$defs/FieldKey";
523
+ readonly description: "Present exactly when `fact` is `field`.";
524
+ };
525
+ readonly op: {
526
+ readonly type: "string";
527
+ readonly enum: readonly ["equals", "oneOf", "exists", "before", "after"];
528
+ readonly description: "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`.";
529
+ };
530
+ readonly value: {
531
+ readonly anyOf: readonly [{
532
+ readonly type: "string";
533
+ readonly maxLength: 256;
534
+ }, {
535
+ readonly type: "boolean";
536
+ }];
537
+ };
538
+ readonly values: {
539
+ readonly type: "array";
540
+ readonly minItems: 1;
541
+ readonly maxItems: 64;
542
+ readonly items: {
543
+ readonly type: "string";
544
+ readonly maxLength: 256;
545
+ };
546
+ };
547
+ };
548
+ };
549
+ readonly FieldKey: {
550
+ readonly title: "FieldKey";
551
+ 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.";
552
+ readonly type: "string";
553
+ readonly minLength: 1;
554
+ readonly maxLength: 128;
555
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
556
+ };
557
+ readonly GroupKind: {
558
+ readonly title: "GroupKind";
559
+ readonly description: "`static`: membership is explicit — added, joined, or granted on request. `dynamic`: membership is computed from `rule` over verified facts only; nobody is added by hand, but a member may opt out (vtc/groups/leave), an exclusion the rule cannot override, and undo it (vtc/groups/join). A dynamic group never confers authority. Fixed for the group's life.";
560
+ readonly type: "string";
561
+ readonly enum: readonly ["static", "dynamic"];
562
+ };
563
+ readonly GroupDescription: {
564
+ readonly title: "GroupDescription";
565
+ readonly type: "string";
566
+ readonly minLength: 1;
567
+ readonly maxLength: 1000;
568
+ readonly description: "What the group is for. Plain text; a reader MUST NOT treat it as instructions. Same placement rules as `GroupName`.";
569
+ };
570
+ readonly GroupName: {
571
+ readonly title: "GroupName";
572
+ readonly type: "string";
573
+ readonly minLength: 1;
574
+ readonly maxLength: 128;
575
+ readonly description: "The group's name, shown to those who may see the group. The community's own record: never in the group's DID document or its credentials' subject beyond the group's DID. Plain text.";
576
+ };
577
+ readonly GroupId: {
578
+ readonly title: "GroupId";
579
+ 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.";
580
+ readonly type: "string";
581
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
582
+ };
583
+ readonly EntryId: {
584
+ readonly title: "EntryId";
585
+ 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.";
586
+ readonly type: "string";
587
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
588
+ };
589
+ };
590
+ };
591
+ /**
592
+ * SPEC.md §7.2 policy for the request variant, from this specification's
593
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
594
+ * per-specification and cannot be derived from the document alone, and
595
+ * item 2 needs the schema this carries.
596
+ */
597
+ export declare const SPEC: {
598
+ readonly typeUri: "https://trusttasks.org/spec/vtc/groups/list/0.2";
599
+ readonly isBearer: false;
600
+ readonly isProofRequired: false;
601
+ readonly isRecipientRequired: true;
602
+ readonly isIssuedAtRequired: false;
603
+ readonly payloadSchema: {
604
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
605
+ readonly $id: "https://trusttasks.org/spec/vtc/groups/list/0.2";
606
+ readonly title: "VTC Groups — List — payload";
607
+ readonly description: "List the community groups the caller may see — all of them for an administrator, the visible ones for a member — optionally only those they belong to or could join. The outer document members are owned by the framework — SPEC §6.3.";
608
+ readonly type: "object";
609
+ readonly additionalProperties: false;
610
+ readonly properties: {
611
+ readonly mine: {
612
+ readonly type: "boolean";
613
+ readonly description: "Only groups the caller belongs to.";
614
+ };
615
+ readonly joinable: {
616
+ readonly type: "boolean";
617
+ readonly description: "Only static groups with `joinPolicy` `open` or `request` the caller does not belong to.";
618
+ };
619
+ readonly cursor: {
620
+ readonly type: "string";
621
+ readonly minLength: 1;
622
+ readonly maxLength: 1024;
623
+ readonly description: "An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the filters; a responder MUST NOT accept a cursor it did not issue.";
624
+ };
625
+ readonly limit: {
626
+ readonly type: "integer";
627
+ readonly minimum: 1;
628
+ readonly maximum: 200;
629
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
630
+ };
631
+ readonly ext: {
632
+ readonly $ref: "#/$defs/Ext";
633
+ };
634
+ };
635
+ readonly $defs: {
636
+ readonly Response: {
637
+ readonly $anchor: "response";
638
+ readonly title: "VTC Groups — List — response payload";
639
+ readonly description: "The success response to a vtc/groups/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/list/0.2#response.";
640
+ readonly type: "object";
641
+ readonly additionalProperties: false;
642
+ readonly required: readonly ["items"];
643
+ readonly properties: {
644
+ readonly items: {
645
+ readonly type: "array";
646
+ readonly maxItems: 200;
647
+ readonly items: {
648
+ readonly type: "object";
649
+ readonly additionalProperties: false;
650
+ readonly required: readonly ["group", "myMembership"];
651
+ readonly properties: {
652
+ readonly group: {
653
+ readonly $ref: "#/$defs/Group";
654
+ };
655
+ readonly myMembership: {
656
+ readonly type: "string";
657
+ readonly enum: readonly ["member", "pending", "requested", "optedOut", "none"];
658
+ readonly description: "The caller's own standing in the group.";
659
+ };
660
+ };
661
+ };
662
+ };
663
+ readonly nextCursor: {
664
+ readonly type: "string";
665
+ readonly maxLength: 1024;
666
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
667
+ };
668
+ readonly ext: {
669
+ readonly $ref: "#/$defs/Ext";
670
+ };
671
+ };
672
+ };
673
+ readonly Ext: {
674
+ readonly title: "Ext";
675
+ 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.";
676
+ readonly type: "object";
677
+ readonly minProperties: 1;
678
+ readonly additionalProperties: true;
679
+ readonly propertyNames: {
680
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
681
+ };
682
+ };
683
+ readonly Group: {
684
+ readonly title: "Group";
685
+ readonly description: "A community group, as a caller who may see it sees it. Members a caller may not see are absent: `memberCount` only to those who may see the group's members, `managers` and `credentialAuthorityValidUntil` only to its managers.";
686
+ readonly type: "object";
687
+ readonly additionalProperties: false;
688
+ readonly required: readonly ["groupId", "groupDid", "name", "kind", "visibility", "showMembers", "issuesCredentials", "carriesAuthority", "createdAt"];
689
+ readonly properties: {
690
+ readonly groupId: {
691
+ readonly $ref: "#/$defs/GroupId";
692
+ };
693
+ readonly groupDid: {
694
+ readonly type: "string";
695
+ readonly pattern: "^did:";
696
+ readonly maxLength: 2048;
697
+ readonly description: "The group's own DID, minted by the community's VTA for this group alone. It issues the group's membership credentials. Its DID document carries no name or description.";
698
+ };
699
+ readonly name: {
700
+ readonly $ref: "#/$defs/GroupName";
701
+ };
702
+ readonly description: {
703
+ readonly $ref: "#/$defs/GroupDescription";
704
+ };
705
+ readonly kind: {
706
+ readonly $ref: "#/$defs/GroupKind";
707
+ };
708
+ readonly rule: {
709
+ readonly $ref: "#/$defs/DynamicRule";
710
+ readonly description: "Present exactly when `kind` is `dynamic`.";
711
+ };
712
+ readonly joinPolicy: {
713
+ readonly $ref: "#/$defs/JoinPolicy";
714
+ readonly description: "Present exactly when `kind` is `static`.";
715
+ };
716
+ readonly visibility: {
717
+ readonly $ref: "#/$defs/GroupAudience";
718
+ readonly description: "Who may see that the group exists, and its name and description.";
719
+ };
720
+ readonly showMembers: {
721
+ readonly $ref: "#/$defs/GroupAudience";
722
+ readonly description: "Who may see the group's member list. Separate from `visibility`: a group everyone sees may show its members only to administrators. Never wider than `visibility`.";
723
+ };
724
+ readonly issuesCredentials: {
725
+ readonly type: "boolean";
726
+ readonly description: "Whether the group's DID issues its members a membership credential. Default true.";
727
+ };
728
+ readonly carriesAuthority: {
729
+ readonly type: "boolean";
730
+ readonly description: "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does.";
731
+ };
732
+ readonly memberCount: {
733
+ readonly type: "integer";
734
+ readonly minimum: 0;
735
+ readonly description: "Active members. Only to callers who may see the member list.";
736
+ };
737
+ readonly managers: {
738
+ readonly type: "array";
739
+ readonly maxItems: 256;
740
+ readonly uniqueItems: true;
741
+ readonly items: {
742
+ readonly $ref: "#/$defs/EntryId";
743
+ };
744
+ readonly description: "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record.";
745
+ };
746
+ readonly credentialAuthorityValidUntil: {
747
+ readonly type: "string";
748
+ readonly format: "date-time";
749
+ readonly description: "When the community's authorization credential to the group expires. The community renews it well before.";
750
+ };
751
+ readonly createdAt: {
752
+ readonly type: "string";
753
+ readonly format: "date-time";
754
+ };
755
+ readonly createdBy: {
756
+ readonly $ref: "#/$defs/EntryId";
757
+ readonly description: "The creating administrator's directory entry, where they have one.";
758
+ };
759
+ readonly updatedAt: {
760
+ readonly type: "string";
761
+ readonly format: "date-time";
762
+ };
763
+ readonly ext: {
764
+ readonly $ref: "#/$defs/Ext";
765
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry authority.";
766
+ };
767
+ };
768
+ };
769
+ readonly GroupAudience: {
770
+ readonly title: "GroupAudience";
771
+ readonly description: "Who may see something about a group, narrowest first. `admins`: holders of `vtc.groups.manage` for the group (unqualified, or qualified `group:<groupId>`). `groupMembers`: the group's own members, and its managers. `members`: every active member of the community.";
772
+ readonly type: "string";
773
+ readonly enum: readonly ["admins", "groupMembers", "members"];
774
+ };
775
+ readonly JoinPolicy: {
776
+ readonly title: "JoinPolicy";
777
+ readonly description: "How a member enters a static group by themselves. `closed`: only a manager adds them. `request`: a member asks and a manager decides. `open`: a member joins at once, subject to the community's `groups` policy. A group carrying authority is always `closed`.";
778
+ readonly type: "string";
779
+ readonly enum: readonly ["closed", "request", "open"];
780
+ };
781
+ readonly DynamicRule: {
782
+ readonly title: "DynamicRule";
783
+ readonly description: "A dynamic group's membership rule: a member belongs when every condition holds and they have not opted out. The community evaluates it under its `groups` policy and recomputes membership whenever a fact it reads changes, always excluding opted-out entries.";
784
+ readonly type: "object";
785
+ readonly additionalProperties: false;
786
+ readonly required: readonly ["all"];
787
+ readonly properties: {
788
+ readonly all: {
789
+ readonly type: "array";
790
+ readonly minItems: 1;
791
+ readonly maxItems: 16;
792
+ readonly items: {
793
+ readonly $ref: "#/$defs/RuleCondition";
794
+ };
795
+ };
796
+ };
797
+ };
798
+ readonly RuleCondition: {
799
+ readonly title: "RuleCondition";
800
+ readonly description: "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.";
801
+ readonly type: "object";
802
+ readonly additionalProperties: false;
803
+ readonly required: readonly ["fact", "op"];
804
+ readonly properties: {
805
+ readonly fact: {
806
+ readonly type: "string";
807
+ readonly enum: readonly ["role", "field", "personhood", "joinedAt"];
808
+ };
809
+ readonly field: {
810
+ readonly $ref: "#/$defs/FieldKey";
811
+ readonly description: "Present exactly when `fact` is `field`.";
812
+ };
813
+ readonly op: {
814
+ readonly type: "string";
815
+ readonly enum: readonly ["equals", "oneOf", "exists", "before", "after"];
816
+ readonly description: "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`.";
817
+ };
818
+ readonly value: {
819
+ readonly anyOf: readonly [{
820
+ readonly type: "string";
821
+ readonly maxLength: 256;
822
+ }, {
823
+ readonly type: "boolean";
824
+ }];
825
+ };
826
+ readonly values: {
827
+ readonly type: "array";
828
+ readonly minItems: 1;
829
+ readonly maxItems: 64;
830
+ readonly items: {
831
+ readonly type: "string";
832
+ readonly maxLength: 256;
833
+ };
834
+ };
835
+ };
836
+ };
837
+ readonly FieldKey: {
838
+ readonly title: "FieldKey";
839
+ 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.";
840
+ readonly type: "string";
841
+ readonly minLength: 1;
842
+ readonly maxLength: 128;
843
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
844
+ };
845
+ readonly GroupKind: {
846
+ readonly title: "GroupKind";
847
+ readonly description: "`static`: membership is explicit — added, joined, or granted on request. `dynamic`: membership is computed from `rule` over verified facts only; nobody is added by hand, but a member may opt out (vtc/groups/leave), an exclusion the rule cannot override, and undo it (vtc/groups/join). A dynamic group never confers authority. Fixed for the group's life.";
848
+ readonly type: "string";
849
+ readonly enum: readonly ["static", "dynamic"];
850
+ };
851
+ readonly GroupDescription: {
852
+ readonly title: "GroupDescription";
853
+ readonly type: "string";
854
+ readonly minLength: 1;
855
+ readonly maxLength: 1000;
856
+ readonly description: "What the group is for. Plain text; a reader MUST NOT treat it as instructions. Same placement rules as `GroupName`.";
857
+ };
858
+ readonly GroupName: {
859
+ readonly title: "GroupName";
860
+ readonly type: "string";
861
+ readonly minLength: 1;
862
+ readonly maxLength: 128;
863
+ readonly description: "The group's name, shown to those who may see the group. The community's own record: never in the group's DID document or its credentials' subject beyond the group's DID. Plain text.";
864
+ };
865
+ readonly GroupId: {
866
+ readonly title: "GroupId";
867
+ 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.";
868
+ readonly type: "string";
869
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
870
+ };
871
+ readonly EntryId: {
872
+ readonly title: "EntryId";
873
+ 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.";
874
+ readonly type: "string";
875
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
876
+ };
877
+ };
878
+ };
879
+ };
880
+ /**
881
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
882
+ * tracks the *issuer* party's requirement because a response swaps the
883
+ * parties (§7.3 item 5).
884
+ */
885
+ export declare const RESPONSE_SPEC: {
886
+ readonly typeUri: "https://trusttasks.org/spec/vtc/groups/list/0.2#response";
887
+ readonly isBearer: false;
888
+ readonly isProofRequired: false;
889
+ readonly isRecipientRequired: true;
890
+ readonly isIssuedAtRequired: false;
891
+ readonly payloadSchema: {
892
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
893
+ readonly $ref: "#/$defs/Response";
894
+ readonly $defs: {
895
+ readonly Response: {
896
+ readonly $anchor: "response";
897
+ readonly title: "VTC Groups — List — response payload";
898
+ readonly description: "The success response to a vtc/groups/list/0.2 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/list/0.2#response.";
899
+ readonly type: "object";
900
+ readonly additionalProperties: false;
901
+ readonly required: readonly ["items"];
902
+ readonly properties: {
903
+ readonly items: {
904
+ readonly type: "array";
905
+ readonly maxItems: 200;
906
+ readonly items: {
907
+ readonly type: "object";
908
+ readonly additionalProperties: false;
909
+ readonly required: readonly ["group", "myMembership"];
910
+ readonly properties: {
911
+ readonly group: {
912
+ readonly $ref: "#/$defs/Group";
913
+ };
914
+ readonly myMembership: {
915
+ readonly type: "string";
916
+ readonly enum: readonly ["member", "pending", "requested", "optedOut", "none"];
917
+ readonly description: "The caller's own standing in the group.";
918
+ };
919
+ };
920
+ };
921
+ };
922
+ readonly nextCursor: {
923
+ readonly type: "string";
924
+ readonly maxLength: 1024;
925
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
926
+ };
927
+ readonly ext: {
928
+ readonly $ref: "#/$defs/Ext";
929
+ };
930
+ };
931
+ };
932
+ readonly Ext: {
933
+ readonly title: "Ext";
934
+ 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.";
935
+ readonly type: "object";
936
+ readonly minProperties: 1;
937
+ readonly additionalProperties: true;
938
+ readonly propertyNames: {
939
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
940
+ };
941
+ };
942
+ readonly Group: {
943
+ readonly title: "Group";
944
+ readonly description: "A community group, as a caller who may see it sees it. Members a caller may not see are absent: `memberCount` only to those who may see the group's members, `managers` and `credentialAuthorityValidUntil` only to its managers.";
945
+ readonly type: "object";
946
+ readonly additionalProperties: false;
947
+ readonly required: readonly ["groupId", "groupDid", "name", "kind", "visibility", "showMembers", "issuesCredentials", "carriesAuthority", "createdAt"];
948
+ readonly properties: {
949
+ readonly groupId: {
950
+ readonly $ref: "#/$defs/GroupId";
951
+ };
952
+ readonly groupDid: {
953
+ readonly type: "string";
954
+ readonly pattern: "^did:";
955
+ readonly maxLength: 2048;
956
+ readonly description: "The group's own DID, minted by the community's VTA for this group alone. It issues the group's membership credentials. Its DID document carries no name or description.";
957
+ };
958
+ readonly name: {
959
+ readonly $ref: "#/$defs/GroupName";
960
+ };
961
+ readonly description: {
962
+ readonly $ref: "#/$defs/GroupDescription";
963
+ };
964
+ readonly kind: {
965
+ readonly $ref: "#/$defs/GroupKind";
966
+ };
967
+ readonly rule: {
968
+ readonly $ref: "#/$defs/DynamicRule";
969
+ readonly description: "Present exactly when `kind` is `dynamic`.";
970
+ };
971
+ readonly joinPolicy: {
972
+ readonly $ref: "#/$defs/JoinPolicy";
973
+ readonly description: "Present exactly when `kind` is `static`.";
974
+ };
975
+ readonly visibility: {
976
+ readonly $ref: "#/$defs/GroupAudience";
977
+ readonly description: "Who may see that the group exists, and its name and description.";
978
+ };
979
+ readonly showMembers: {
980
+ readonly $ref: "#/$defs/GroupAudience";
981
+ readonly description: "Who may see the group's member list. Separate from `visibility`: a group everyone sees may show its members only to administrators. Never wider than `visibility`.";
982
+ };
983
+ readonly issuesCredentials: {
984
+ readonly type: "boolean";
985
+ readonly description: "Whether the group's DID issues its members a membership credential. Default true.";
986
+ };
987
+ readonly carriesAuthority: {
988
+ readonly type: "boolean";
989
+ readonly description: "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does.";
990
+ };
991
+ readonly memberCount: {
992
+ readonly type: "integer";
993
+ readonly minimum: 0;
994
+ readonly description: "Active members. Only to callers who may see the member list.";
995
+ };
996
+ readonly managers: {
997
+ readonly type: "array";
998
+ readonly maxItems: 256;
999
+ readonly uniqueItems: true;
1000
+ readonly items: {
1001
+ readonly $ref: "#/$defs/EntryId";
1002
+ };
1003
+ readonly description: "Entries holding `vtc.groups.manage` qualified to this group, read from the access-control list. Informational: managers are appointed by an access-control grant (vtc/groups/managers/add), never by this record.";
1004
+ };
1005
+ readonly credentialAuthorityValidUntil: {
1006
+ readonly type: "string";
1007
+ readonly format: "date-time";
1008
+ readonly description: "When the community's authorization credential to the group expires. The community renews it well before.";
1009
+ };
1010
+ readonly createdAt: {
1011
+ readonly type: "string";
1012
+ readonly format: "date-time";
1013
+ };
1014
+ readonly createdBy: {
1015
+ readonly $ref: "#/$defs/EntryId";
1016
+ readonly description: "The creating administrator's directory entry, where they have one.";
1017
+ };
1018
+ readonly updatedAt: {
1019
+ readonly type: "string";
1020
+ readonly format: "date-time";
1021
+ };
1022
+ readonly ext: {
1023
+ readonly $ref: "#/$defs/Ext";
1024
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry authority.";
1025
+ };
1026
+ };
1027
+ };
1028
+ readonly GroupAudience: {
1029
+ readonly title: "GroupAudience";
1030
+ readonly description: "Who may see something about a group, narrowest first. `admins`: holders of `vtc.groups.manage` for the group (unqualified, or qualified `group:<groupId>`). `groupMembers`: the group's own members, and its managers. `members`: every active member of the community.";
1031
+ readonly type: "string";
1032
+ readonly enum: readonly ["admins", "groupMembers", "members"];
1033
+ };
1034
+ readonly JoinPolicy: {
1035
+ readonly title: "JoinPolicy";
1036
+ readonly description: "How a member enters a static group by themselves. `closed`: only a manager adds them. `request`: a member asks and a manager decides. `open`: a member joins at once, subject to the community's `groups` policy. A group carrying authority is always `closed`.";
1037
+ readonly type: "string";
1038
+ readonly enum: readonly ["closed", "request", "open"];
1039
+ };
1040
+ readonly DynamicRule: {
1041
+ readonly title: "DynamicRule";
1042
+ readonly description: "A dynamic group's membership rule: a member belongs when every condition holds and they have not opted out. The community evaluates it under its `groups` policy and recomputes membership whenever a fact it reads changes, always excluding opted-out entries.";
1043
+ readonly type: "object";
1044
+ readonly additionalProperties: false;
1045
+ readonly required: readonly ["all"];
1046
+ readonly properties: {
1047
+ readonly all: {
1048
+ readonly type: "array";
1049
+ readonly minItems: 1;
1050
+ readonly maxItems: 16;
1051
+ readonly items: {
1052
+ readonly $ref: "#/$defs/RuleCondition";
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ readonly RuleCondition: {
1058
+ readonly title: "RuleCondition";
1059
+ readonly description: "One test over a verified fact about a member. `fact: role` tests the member's community role; `fact: field` tests an `admin`- or `credential`-sourced directory field named by `field`; `fact: personhood` tests whether a personhood assertion is on file; `fact: joinedAt` tests when they joined. A rule never reads a self-asserted (`member`-sourced) field: a member must not be able to join a group by editing their card.";
1060
+ readonly type: "object";
1061
+ readonly additionalProperties: false;
1062
+ readonly required: readonly ["fact", "op"];
1063
+ readonly properties: {
1064
+ readonly fact: {
1065
+ readonly type: "string";
1066
+ readonly enum: readonly ["role", "field", "personhood", "joinedAt"];
1067
+ };
1068
+ readonly field: {
1069
+ readonly $ref: "#/$defs/FieldKey";
1070
+ readonly description: "Present exactly when `fact` is `field`.";
1071
+ };
1072
+ readonly op: {
1073
+ readonly type: "string";
1074
+ readonly enum: readonly ["equals", "oneOf", "exists", "before", "after"];
1075
+ readonly description: "`equals` compares with `value`; `oneOf` with any of `values`; `exists` needs neither; `before` and `after` compare a date fact with `value`.";
1076
+ };
1077
+ readonly value: {
1078
+ readonly anyOf: readonly [{
1079
+ readonly type: "string";
1080
+ readonly maxLength: 256;
1081
+ }, {
1082
+ readonly type: "boolean";
1083
+ }];
1084
+ };
1085
+ readonly values: {
1086
+ readonly type: "array";
1087
+ readonly minItems: 1;
1088
+ readonly maxItems: 64;
1089
+ readonly items: {
1090
+ readonly type: "string";
1091
+ readonly maxLength: 256;
1092
+ };
1093
+ };
1094
+ };
1095
+ };
1096
+ readonly FieldKey: {
1097
+ readonly title: "FieldKey";
1098
+ 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.";
1099
+ readonly type: "string";
1100
+ readonly minLength: 1;
1101
+ readonly maxLength: 128;
1102
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
1103
+ };
1104
+ readonly GroupKind: {
1105
+ readonly title: "GroupKind";
1106
+ readonly description: "`static`: membership is explicit — added, joined, or granted on request. `dynamic`: membership is computed from `rule` over verified facts only; nobody is added by hand, but a member may opt out (vtc/groups/leave), an exclusion the rule cannot override, and undo it (vtc/groups/join). A dynamic group never confers authority. Fixed for the group's life.";
1107
+ readonly type: "string";
1108
+ readonly enum: readonly ["static", "dynamic"];
1109
+ };
1110
+ readonly GroupDescription: {
1111
+ readonly title: "GroupDescription";
1112
+ readonly type: "string";
1113
+ readonly minLength: 1;
1114
+ readonly maxLength: 1000;
1115
+ readonly description: "What the group is for. Plain text; a reader MUST NOT treat it as instructions. Same placement rules as `GroupName`.";
1116
+ };
1117
+ readonly GroupName: {
1118
+ readonly title: "GroupName";
1119
+ readonly type: "string";
1120
+ readonly minLength: 1;
1121
+ readonly maxLength: 128;
1122
+ readonly description: "The group's name, shown to those who may see the group. The community's own record: never in the group's DID document or its credentials' subject beyond the group's DID. Plain text.";
1123
+ };
1124
+ readonly GroupId: {
1125
+ readonly title: "GroupId";
1126
+ 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.";
1127
+ readonly type: "string";
1128
+ readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
1129
+ };
1130
+ readonly EntryId: {
1131
+ readonly title: "EntryId";
1132
+ 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.";
1133
+ readonly type: "string";
1134
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1139
+ //# sourceMappingURL=payload.d.ts.map