@openvtc/trust-tasks 0.26.17 → 0.26.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +222 -0
- package/dist/_shared/components.d.ts +867 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
- package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
- package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.2/payload.js +140 -0
- package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.js +468 -0
- package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.js +140 -0
- package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +2 -0
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +2 -0
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +2 -0
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +2 -0
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +61 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
- package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
- package/dist/keys/sign-document/0.1/payload.js +341 -0
- package/dist/keys/sign-document/0.1/payload.js.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
- package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
- package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.1/payload.js +804 -0
- package/dist/persona/contact/get/1.1/payload.js.map +1 -0
- package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.1/payload.js +417 -0
- package/dist/persona/contact/list/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
- package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
- package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.1/payload.js +850 -0
- package/dist/persona/contact/put/1.1/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.1/payload.js +12 -2
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +12 -2
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/owner/group/add/0.3/payload.d.ts +417 -0
- package/dist/rooms/owner/group/add/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/add/0.3/payload.js +218 -0
- package/dist/rooms/owner/group/add/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/group/renew/0.2/payload.d.ts +299 -0
- package/dist/rooms/owner/group/renew/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/renew/0.2/payload.js +163 -0
- package/dist/rooms/owner/group/renew/0.2/payload.js.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.js +335 -0
- package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.1/payload.js +12 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +12 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.1/payload.js +12 -2
- package/dist/rooms/records/put/0.1/payload.js.map +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.2/payload.js +12 -2
- package/dist/rooms/records/put/0.2/payload.js.map +1 -1
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
- package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts +18 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.js +6 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/public/0.1/payload.d.ts +348 -0
- package/dist/vtc/directory/card/public/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/public/0.1/payload.js +197 -0
- package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/publish/0.1/payload.d.ts +384 -0
- package/dist/vtc/directory/card/publish/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/publish/0.1/payload.js +222 -0
- package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts +1276 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.js +775 -0
- package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts +1423 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.js +845 -0
- package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/disclosure/0.1/payload.d.ts +951 -0
- package/dist/vtc/directory/disclosure/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/disclosure/0.1/payload.js +613 -0
- package/dist/vtc/directory/disclosure/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.js +192 -0
- package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/images/get/0.1/payload.d.ts +484 -0
- package/dist/vtc/directory/images/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/images/get/0.1/payload.js +273 -0
- package/dist/vtc/directory/images/get/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/images/upload/0.1/payload.d.ts +441 -0
- package/dist/vtc/directory/images/upload/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/images/upload/0.1/payload.js +262 -0
- package/dist/vtc/directory/images/upload/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
- package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
- package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.js +6 -0
- package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.js +631 -0
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.js +182 -0
- package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.js +758 -0
- package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.js +179 -0
- package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.js +674 -0
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
- package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
- package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.js +619 -0
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.js +633 -0
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.d.ts +2303 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.js +1293 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +912 -1
- package/src/auth/oob/_shared/0.1/oob.ts +1 -1
- package/src/auth/oob/grant/0.2/payload.ts +186 -0
- package/src/auth/oob/prove/0.2/payload.ts +523 -0
- package/src/auth/oob/respond/0.2/payload.ts +178 -0
- package/src/device/list/0.1/payload.ts +2 -0
- package/src/device/list/0.2/payload.ts +2 -0
- package/src/device/register/0.1/payload.ts +2 -0
- package/src/device/register/0.2/payload.ts +2 -0
- package/src/index.ts +61 -0
- package/src/keys/sign-document/0.1/payload.ts +437 -0
- package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
- package/src/persona/contact/get/1.1/payload.ts +876 -0
- package/src/persona/contact/list/1.1/payload.ts +497 -0
- package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
- package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
- package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
- package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
- package/src/persona/contact/put/1.1/payload.ts +958 -0
- package/src/rooms/keys/seal/0.1/payload.ts +12 -2
- package/src/rooms/keys/seal/0.2/payload.ts +12 -2
- package/src/rooms/owner/group/add/0.3/payload.ts +288 -0
- package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
- package/src/rooms/owner/group/renew/0.2/payload.ts +213 -0
- package/src/rooms/owner/register/0.2/payload.ts +415 -0
- package/src/rooms/records/get/0.1/payload.ts +12 -2
- package/src/rooms/records/get/0.2/payload.ts +12 -2
- package/src/rooms/records/put/0.1/payload.ts +12 -2
- package/src/rooms/records/put/0.2/payload.ts +12 -2
- package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
- package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
- package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
- package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
- package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
- package/src/vtc/directory/_shared/0.1/disclosure-statement.ts +19 -0
- package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
- package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
- package/src/vtc/directory/card/public/0.1/payload.ts +238 -0
- package/src/vtc/directory/card/publish/0.1/payload.ts +261 -0
- package/src/vtc/directory/card/show/0.1/payload.ts +812 -0
- package/src/vtc/directory/card/update/0.1/payload.ts +907 -0
- package/src/vtc/directory/disclosure/0.1/payload.ts +645 -0
- package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
- package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
- package/src/vtc/directory/export/0.1/payload.ts +241 -0
- package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
- package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
- package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
- package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
- package/src/vtc/directory/images/get/0.1/payload.ts +320 -0
- package/src/vtc/directory/images/upload/0.1/payload.ts +308 -0
- package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
- package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
- package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
- package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
- package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
- package/src/vtc/groups/_shared/0.1/group.ts +23 -0
- package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
- package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
- package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
- package/src/vtc/groups/create/0.1/payload.ts +683 -0
- package/src/vtc/groups/delete/0.1/payload.ts +224 -0
- package/src/vtc/groups/join/0.1/payload.ts +807 -0
- package/src/vtc/groups/leave/0.1/payload.ts +219 -0
- package/src/vtc/groups/list/0.1/payload.ts +728 -0
- package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
- package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
- package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
- package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
- package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
- package/src/vtc/groups/show/0.1/payload.ts +652 -0
- package/src/vtc/groups/update/0.1/payload.ts +682 -0
- package/src/vtc/join-requests/manifest/0.4/payload.ts +1490 -0
|
@@ -0,0 +1,1018 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/groups/members/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, GroupMember, MembershipSource, VerifiedValue } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* List a group's members, a page at a time, each projected for the caller as the directory projects them — only where the group shows its members to the caller. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCGroupsMembersListPayload {
|
|
10
|
+
groupId: GroupId;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Page size; clamped to 1..=200 (default 50).
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
ext?: Ext;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The success response to a vtc/groups/members/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/list/0.1#response.
|
|
20
|
+
*/
|
|
21
|
+
export interface VTCGroupsMembersListResponsePayload {
|
|
22
|
+
/**
|
|
23
|
+
* @maxItems 200
|
|
24
|
+
*/
|
|
25
|
+
items: GroupMember[];
|
|
26
|
+
nextCursor?: string | null;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
30
|
+
export type { CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, GroupMember, MembershipSource, VerifiedValue };
|
|
31
|
+
/** Trust Task type URI. */
|
|
32
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/groups/members/list/0.1";
|
|
33
|
+
/** Stable alias for this specification's request payload shape. */
|
|
34
|
+
export type Payload = VTCGroupsMembersListPayload;
|
|
35
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
36
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/groups/members/list/0.1#response";
|
|
37
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
38
|
+
export type Response = VTCGroupsMembersListResponsePayload;
|
|
39
|
+
/**
|
|
40
|
+
* This specification's payload schema, as a value.
|
|
41
|
+
*
|
|
42
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
43
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
44
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
45
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
46
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
47
|
+
*/
|
|
48
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
49
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
50
|
+
readonly $id: "https://trusttasks.org/spec/vtc/groups/members/list/0.1";
|
|
51
|
+
readonly title: "VTC Groups — Members — List — payload";
|
|
52
|
+
readonly description: "List a group's members, a page at a time, each projected for the caller as the directory projects them — only where the group shows its members to the caller. The outer document members are owned by the framework — SPEC §6.3.";
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly additionalProperties: false;
|
|
55
|
+
readonly required: readonly ["groupId"];
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly groupId: {
|
|
58
|
+
readonly $ref: "#/$defs/GroupId";
|
|
59
|
+
};
|
|
60
|
+
readonly cursor: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly minLength: 1;
|
|
63
|
+
readonly maxLength: 1024;
|
|
64
|
+
};
|
|
65
|
+
readonly limit: {
|
|
66
|
+
readonly type: "integer";
|
|
67
|
+
readonly minimum: 1;
|
|
68
|
+
readonly maximum: 200;
|
|
69
|
+
readonly description: "Page size; clamped to 1..=200 (default 50).";
|
|
70
|
+
};
|
|
71
|
+
readonly ext: {
|
|
72
|
+
readonly $ref: "#/$defs/Ext";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly $defs: {
|
|
76
|
+
readonly Response: {
|
|
77
|
+
readonly $anchor: "response";
|
|
78
|
+
readonly title: "VTC Groups — Members — List — response payload";
|
|
79
|
+
readonly description: "The success response to a vtc/groups/members/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/list/0.1#response.";
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
readonly required: readonly ["items"];
|
|
83
|
+
readonly properties: {
|
|
84
|
+
readonly items: {
|
|
85
|
+
readonly type: "array";
|
|
86
|
+
readonly maxItems: 200;
|
|
87
|
+
readonly items: {
|
|
88
|
+
readonly $ref: "#/$defs/GroupMember";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly nextCursor: {
|
|
92
|
+
readonly type: readonly ["string", "null"];
|
|
93
|
+
readonly maxLength: 1024;
|
|
94
|
+
};
|
|
95
|
+
readonly ext: {
|
|
96
|
+
readonly $ref: "#/$defs/Ext";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly Ext: {
|
|
101
|
+
readonly title: "Ext";
|
|
102
|
+
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.";
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly minProperties: 1;
|
|
105
|
+
readonly additionalProperties: true;
|
|
106
|
+
readonly propertyNames: {
|
|
107
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly GroupMember: {
|
|
111
|
+
readonly title: "GroupMember";
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly additionalProperties: false;
|
|
114
|
+
readonly required: readonly ["entryId", "source", "since", "state"];
|
|
115
|
+
readonly properties: {
|
|
116
|
+
readonly entryId: {
|
|
117
|
+
readonly $ref: "#/$defs/EntryId";
|
|
118
|
+
};
|
|
119
|
+
readonly source: {
|
|
120
|
+
readonly $ref: "#/$defs/MembershipSource";
|
|
121
|
+
};
|
|
122
|
+
readonly since: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly format: "date-time";
|
|
125
|
+
};
|
|
126
|
+
readonly state: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly enum: readonly ["active", "pending"];
|
|
129
|
+
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.";
|
|
130
|
+
};
|
|
131
|
+
readonly fields: {
|
|
132
|
+
readonly $ref: "#/$defs/EntryFields";
|
|
133
|
+
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.";
|
|
134
|
+
};
|
|
135
|
+
readonly credentialId: {
|
|
136
|
+
readonly anyOf: readonly [{
|
|
137
|
+
readonly $ref: "#/$defs/GroupCredentialId";
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "null";
|
|
140
|
+
}];
|
|
141
|
+
readonly description: "The member's current group membership credential, or null when the group issues none.";
|
|
142
|
+
};
|
|
143
|
+
readonly credentialValidUntil: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly format: "date-time";
|
|
146
|
+
readonly description: "When the member's current group credential expires. Shown to the member themselves and to managers only.";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly GroupCredentialId: {
|
|
151
|
+
readonly title: "GroupCredentialId";
|
|
152
|
+
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.";
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly minLength: 1;
|
|
155
|
+
readonly maxLength: 512;
|
|
156
|
+
};
|
|
157
|
+
readonly MembershipSource: {
|
|
158
|
+
readonly title: "MembershipSource";
|
|
159
|
+
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.";
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly enum: readonly ["added", "joined", "requestApproved", "rule"];
|
|
162
|
+
};
|
|
163
|
+
readonly EntryFields: {
|
|
164
|
+
readonly title: "EntryFields";
|
|
165
|
+
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.";
|
|
166
|
+
readonly type: "object";
|
|
167
|
+
readonly maxProperties: 64;
|
|
168
|
+
readonly propertyNames: {
|
|
169
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
170
|
+
};
|
|
171
|
+
readonly additionalProperties: {
|
|
172
|
+
readonly $ref: "#/$defs/FieldValue";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly FieldValue: {
|
|
176
|
+
readonly title: "FieldValue";
|
|
177
|
+
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.";
|
|
178
|
+
readonly anyOf: readonly [{
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly maxLength: 2000;
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "boolean";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "array";
|
|
185
|
+
readonly maxItems: 32;
|
|
186
|
+
readonly items: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly maxLength: 500;
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
readonly $ref: "#/$defs/CardBlobRef";
|
|
192
|
+
}, {
|
|
193
|
+
readonly $ref: "#/$defs/VerifiedValue";
|
|
194
|
+
}];
|
|
195
|
+
};
|
|
196
|
+
readonly VerifiedValue: {
|
|
197
|
+
readonly title: "VerifiedValue";
|
|
198
|
+
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.";
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly additionalProperties: false;
|
|
201
|
+
readonly required: readonly ["value", "issuer", "verifiedAt"];
|
|
202
|
+
readonly properties: {
|
|
203
|
+
readonly value: {
|
|
204
|
+
readonly anyOf: readonly [{
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly maxLength: 2000;
|
|
207
|
+
}, {
|
|
208
|
+
readonly type: "boolean";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "number";
|
|
211
|
+
}];
|
|
212
|
+
readonly description: "The disclosed claim value.";
|
|
213
|
+
};
|
|
214
|
+
readonly issuer: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly pattern: "^did:";
|
|
217
|
+
readonly maxLength: 2048;
|
|
218
|
+
readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
|
|
219
|
+
};
|
|
220
|
+
readonly credentialType: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly minLength: 1;
|
|
223
|
+
readonly maxLength: 128;
|
|
224
|
+
readonly description: "The most specific `type` of the credential the claim came from.";
|
|
225
|
+
};
|
|
226
|
+
readonly verifiedAt: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly format: "date-time";
|
|
229
|
+
readonly description: "When the community verified the presentation.";
|
|
230
|
+
};
|
|
231
|
+
readonly validUntil: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly format: "date-time";
|
|
234
|
+
readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly CardBlobRef: {
|
|
239
|
+
readonly title: "CardBlobRef";
|
|
240
|
+
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 (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
readonly required: readonly ["sha256", "mediaType"];
|
|
244
|
+
readonly properties: {
|
|
245
|
+
readonly sha256: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
248
|
+
readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
|
|
249
|
+
};
|
|
250
|
+
readonly mediaType: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
|
|
253
|
+
readonly description: "Media type of the stored bytes.";
|
|
254
|
+
};
|
|
255
|
+
readonly size: {
|
|
256
|
+
readonly type: "integer";
|
|
257
|
+
readonly minimum: 1;
|
|
258
|
+
readonly maximum: 262144;
|
|
259
|
+
readonly description: "Size in bytes of the stored bytes.";
|
|
260
|
+
};
|
|
261
|
+
readonly url: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly format: "uri";
|
|
264
|
+
readonly maxLength: 2048;
|
|
265
|
+
readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
|
|
266
|
+
};
|
|
267
|
+
readonly urlExpiresAt: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly format: "date-time";
|
|
270
|
+
readonly description: "Projection only: when `url` stops working.";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
readonly FieldKey: {
|
|
275
|
+
readonly title: "FieldKey";
|
|
276
|
+
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.";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly minLength: 1;
|
|
279
|
+
readonly maxLength: 128;
|
|
280
|
+
readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
|
|
281
|
+
};
|
|
282
|
+
readonly EntryId: {
|
|
283
|
+
readonly title: "EntryId";
|
|
284
|
+
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.";
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
287
|
+
};
|
|
288
|
+
readonly GroupId: {
|
|
289
|
+
readonly title: "GroupId";
|
|
290
|
+
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.";
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
297
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
298
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
299
|
+
readonly $ref: "#/$defs/Response";
|
|
300
|
+
readonly $defs: {
|
|
301
|
+
readonly Response: {
|
|
302
|
+
readonly $anchor: "response";
|
|
303
|
+
readonly title: "VTC Groups — Members — List — response payload";
|
|
304
|
+
readonly description: "The success response to a vtc/groups/members/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/list/0.1#response.";
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly additionalProperties: false;
|
|
307
|
+
readonly required: readonly ["items"];
|
|
308
|
+
readonly properties: {
|
|
309
|
+
readonly items: {
|
|
310
|
+
readonly type: "array";
|
|
311
|
+
readonly maxItems: 200;
|
|
312
|
+
readonly items: {
|
|
313
|
+
readonly $ref: "#/$defs/GroupMember";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly nextCursor: {
|
|
317
|
+
readonly type: readonly ["string", "null"];
|
|
318
|
+
readonly maxLength: 1024;
|
|
319
|
+
};
|
|
320
|
+
readonly ext: {
|
|
321
|
+
readonly $ref: "#/$defs/Ext";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly Ext: {
|
|
326
|
+
readonly title: "Ext";
|
|
327
|
+
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.";
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly minProperties: 1;
|
|
330
|
+
readonly additionalProperties: true;
|
|
331
|
+
readonly propertyNames: {
|
|
332
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly GroupMember: {
|
|
336
|
+
readonly title: "GroupMember";
|
|
337
|
+
readonly type: "object";
|
|
338
|
+
readonly additionalProperties: false;
|
|
339
|
+
readonly required: readonly ["entryId", "source", "since", "state"];
|
|
340
|
+
readonly properties: {
|
|
341
|
+
readonly entryId: {
|
|
342
|
+
readonly $ref: "#/$defs/EntryId";
|
|
343
|
+
};
|
|
344
|
+
readonly source: {
|
|
345
|
+
readonly $ref: "#/$defs/MembershipSource";
|
|
346
|
+
};
|
|
347
|
+
readonly since: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly format: "date-time";
|
|
350
|
+
};
|
|
351
|
+
readonly state: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly enum: readonly ["active", "pending"];
|
|
354
|
+
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.";
|
|
355
|
+
};
|
|
356
|
+
readonly fields: {
|
|
357
|
+
readonly $ref: "#/$defs/EntryFields";
|
|
358
|
+
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.";
|
|
359
|
+
};
|
|
360
|
+
readonly credentialId: {
|
|
361
|
+
readonly anyOf: readonly [{
|
|
362
|
+
readonly $ref: "#/$defs/GroupCredentialId";
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "null";
|
|
365
|
+
}];
|
|
366
|
+
readonly description: "The member's current group membership credential, or null when the group issues none.";
|
|
367
|
+
};
|
|
368
|
+
readonly credentialValidUntil: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly format: "date-time";
|
|
371
|
+
readonly description: "When the member's current group credential expires. Shown to the member themselves and to managers only.";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly GroupCredentialId: {
|
|
376
|
+
readonly title: "GroupCredentialId";
|
|
377
|
+
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.";
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly minLength: 1;
|
|
380
|
+
readonly maxLength: 512;
|
|
381
|
+
};
|
|
382
|
+
readonly MembershipSource: {
|
|
383
|
+
readonly title: "MembershipSource";
|
|
384
|
+
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.";
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
readonly enum: readonly ["added", "joined", "requestApproved", "rule"];
|
|
387
|
+
};
|
|
388
|
+
readonly EntryFields: {
|
|
389
|
+
readonly title: "EntryFields";
|
|
390
|
+
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.";
|
|
391
|
+
readonly type: "object";
|
|
392
|
+
readonly maxProperties: 64;
|
|
393
|
+
readonly propertyNames: {
|
|
394
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
395
|
+
};
|
|
396
|
+
readonly additionalProperties: {
|
|
397
|
+
readonly $ref: "#/$defs/FieldValue";
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
readonly FieldValue: {
|
|
401
|
+
readonly title: "FieldValue";
|
|
402
|
+
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.";
|
|
403
|
+
readonly anyOf: readonly [{
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
readonly maxLength: 2000;
|
|
406
|
+
}, {
|
|
407
|
+
readonly type: "boolean";
|
|
408
|
+
}, {
|
|
409
|
+
readonly type: "array";
|
|
410
|
+
readonly maxItems: 32;
|
|
411
|
+
readonly items: {
|
|
412
|
+
readonly type: "string";
|
|
413
|
+
readonly maxLength: 500;
|
|
414
|
+
};
|
|
415
|
+
}, {
|
|
416
|
+
readonly $ref: "#/$defs/CardBlobRef";
|
|
417
|
+
}, {
|
|
418
|
+
readonly $ref: "#/$defs/VerifiedValue";
|
|
419
|
+
}];
|
|
420
|
+
};
|
|
421
|
+
readonly VerifiedValue: {
|
|
422
|
+
readonly title: "VerifiedValue";
|
|
423
|
+
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.";
|
|
424
|
+
readonly type: "object";
|
|
425
|
+
readonly additionalProperties: false;
|
|
426
|
+
readonly required: readonly ["value", "issuer", "verifiedAt"];
|
|
427
|
+
readonly properties: {
|
|
428
|
+
readonly value: {
|
|
429
|
+
readonly anyOf: readonly [{
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly maxLength: 2000;
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "boolean";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "number";
|
|
436
|
+
}];
|
|
437
|
+
readonly description: "The disclosed claim value.";
|
|
438
|
+
};
|
|
439
|
+
readonly issuer: {
|
|
440
|
+
readonly type: "string";
|
|
441
|
+
readonly pattern: "^did:";
|
|
442
|
+
readonly maxLength: 2048;
|
|
443
|
+
readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
|
|
444
|
+
};
|
|
445
|
+
readonly credentialType: {
|
|
446
|
+
readonly type: "string";
|
|
447
|
+
readonly minLength: 1;
|
|
448
|
+
readonly maxLength: 128;
|
|
449
|
+
readonly description: "The most specific `type` of the credential the claim came from.";
|
|
450
|
+
};
|
|
451
|
+
readonly verifiedAt: {
|
|
452
|
+
readonly type: "string";
|
|
453
|
+
readonly format: "date-time";
|
|
454
|
+
readonly description: "When the community verified the presentation.";
|
|
455
|
+
};
|
|
456
|
+
readonly validUntil: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly format: "date-time";
|
|
459
|
+
readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly CardBlobRef: {
|
|
464
|
+
readonly title: "CardBlobRef";
|
|
465
|
+
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 (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
|
|
466
|
+
readonly type: "object";
|
|
467
|
+
readonly additionalProperties: false;
|
|
468
|
+
readonly required: readonly ["sha256", "mediaType"];
|
|
469
|
+
readonly properties: {
|
|
470
|
+
readonly sha256: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
473
|
+
readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
|
|
474
|
+
};
|
|
475
|
+
readonly mediaType: {
|
|
476
|
+
readonly type: "string";
|
|
477
|
+
readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
|
|
478
|
+
readonly description: "Media type of the stored bytes.";
|
|
479
|
+
};
|
|
480
|
+
readonly size: {
|
|
481
|
+
readonly type: "integer";
|
|
482
|
+
readonly minimum: 1;
|
|
483
|
+
readonly maximum: 262144;
|
|
484
|
+
readonly description: "Size in bytes of the stored bytes.";
|
|
485
|
+
};
|
|
486
|
+
readonly url: {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly format: "uri";
|
|
489
|
+
readonly maxLength: 2048;
|
|
490
|
+
readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
|
|
491
|
+
};
|
|
492
|
+
readonly urlExpiresAt: {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
readonly format: "date-time";
|
|
495
|
+
readonly description: "Projection only: when `url` stops working.";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly FieldKey: {
|
|
500
|
+
readonly title: "FieldKey";
|
|
501
|
+
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.";
|
|
502
|
+
readonly type: "string";
|
|
503
|
+
readonly minLength: 1;
|
|
504
|
+
readonly maxLength: 128;
|
|
505
|
+
readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
|
|
506
|
+
};
|
|
507
|
+
readonly EntryId: {
|
|
508
|
+
readonly title: "EntryId";
|
|
509
|
+
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.";
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
512
|
+
};
|
|
513
|
+
readonly GroupId: {
|
|
514
|
+
readonly title: "GroupId";
|
|
515
|
+
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.";
|
|
516
|
+
readonly type: "string";
|
|
517
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
523
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
524
|
+
* per-specification and cannot be derived from the document alone, and
|
|
525
|
+
* item 2 needs the schema this carries.
|
|
526
|
+
*/
|
|
527
|
+
export declare const SPEC: {
|
|
528
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/groups/members/list/0.1";
|
|
529
|
+
readonly isBearer: false;
|
|
530
|
+
readonly isProofRequired: false;
|
|
531
|
+
readonly isRecipientRequired: true;
|
|
532
|
+
readonly isIssuedAtRequired: false;
|
|
533
|
+
readonly payloadSchema: {
|
|
534
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
535
|
+
readonly $id: "https://trusttasks.org/spec/vtc/groups/members/list/0.1";
|
|
536
|
+
readonly title: "VTC Groups — Members — List — payload";
|
|
537
|
+
readonly description: "List a group's members, a page at a time, each projected for the caller as the directory projects them — only where the group shows its members to the caller. The outer document members are owned by the framework — SPEC §6.3.";
|
|
538
|
+
readonly type: "object";
|
|
539
|
+
readonly additionalProperties: false;
|
|
540
|
+
readonly required: readonly ["groupId"];
|
|
541
|
+
readonly properties: {
|
|
542
|
+
readonly groupId: {
|
|
543
|
+
readonly $ref: "#/$defs/GroupId";
|
|
544
|
+
};
|
|
545
|
+
readonly cursor: {
|
|
546
|
+
readonly type: "string";
|
|
547
|
+
readonly minLength: 1;
|
|
548
|
+
readonly maxLength: 1024;
|
|
549
|
+
};
|
|
550
|
+
readonly limit: {
|
|
551
|
+
readonly type: "integer";
|
|
552
|
+
readonly minimum: 1;
|
|
553
|
+
readonly maximum: 200;
|
|
554
|
+
readonly description: "Page size; clamped to 1..=200 (default 50).";
|
|
555
|
+
};
|
|
556
|
+
readonly ext: {
|
|
557
|
+
readonly $ref: "#/$defs/Ext";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly $defs: {
|
|
561
|
+
readonly Response: {
|
|
562
|
+
readonly $anchor: "response";
|
|
563
|
+
readonly title: "VTC Groups — Members — List — response payload";
|
|
564
|
+
readonly description: "The success response to a vtc/groups/members/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/list/0.1#response.";
|
|
565
|
+
readonly type: "object";
|
|
566
|
+
readonly additionalProperties: false;
|
|
567
|
+
readonly required: readonly ["items"];
|
|
568
|
+
readonly properties: {
|
|
569
|
+
readonly items: {
|
|
570
|
+
readonly type: "array";
|
|
571
|
+
readonly maxItems: 200;
|
|
572
|
+
readonly items: {
|
|
573
|
+
readonly $ref: "#/$defs/GroupMember";
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly nextCursor: {
|
|
577
|
+
readonly type: readonly ["string", "null"];
|
|
578
|
+
readonly maxLength: 1024;
|
|
579
|
+
};
|
|
580
|
+
readonly ext: {
|
|
581
|
+
readonly $ref: "#/$defs/Ext";
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
readonly Ext: {
|
|
586
|
+
readonly title: "Ext";
|
|
587
|
+
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.";
|
|
588
|
+
readonly type: "object";
|
|
589
|
+
readonly minProperties: 1;
|
|
590
|
+
readonly additionalProperties: true;
|
|
591
|
+
readonly propertyNames: {
|
|
592
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
readonly GroupMember: {
|
|
596
|
+
readonly title: "GroupMember";
|
|
597
|
+
readonly type: "object";
|
|
598
|
+
readonly additionalProperties: false;
|
|
599
|
+
readonly required: readonly ["entryId", "source", "since", "state"];
|
|
600
|
+
readonly properties: {
|
|
601
|
+
readonly entryId: {
|
|
602
|
+
readonly $ref: "#/$defs/EntryId";
|
|
603
|
+
};
|
|
604
|
+
readonly source: {
|
|
605
|
+
readonly $ref: "#/$defs/MembershipSource";
|
|
606
|
+
};
|
|
607
|
+
readonly since: {
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly format: "date-time";
|
|
610
|
+
};
|
|
611
|
+
readonly state: {
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
readonly enum: readonly ["active", "pending"];
|
|
614
|
+
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.";
|
|
615
|
+
};
|
|
616
|
+
readonly fields: {
|
|
617
|
+
readonly $ref: "#/$defs/EntryFields";
|
|
618
|
+
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.";
|
|
619
|
+
};
|
|
620
|
+
readonly credentialId: {
|
|
621
|
+
readonly anyOf: readonly [{
|
|
622
|
+
readonly $ref: "#/$defs/GroupCredentialId";
|
|
623
|
+
}, {
|
|
624
|
+
readonly type: "null";
|
|
625
|
+
}];
|
|
626
|
+
readonly description: "The member's current group membership credential, or null when the group issues none.";
|
|
627
|
+
};
|
|
628
|
+
readonly credentialValidUntil: {
|
|
629
|
+
readonly type: "string";
|
|
630
|
+
readonly format: "date-time";
|
|
631
|
+
readonly description: "When the member's current group credential expires. Shown to the member themselves and to managers only.";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
readonly GroupCredentialId: {
|
|
636
|
+
readonly title: "GroupCredentialId";
|
|
637
|
+
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.";
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
readonly minLength: 1;
|
|
640
|
+
readonly maxLength: 512;
|
|
641
|
+
};
|
|
642
|
+
readonly MembershipSource: {
|
|
643
|
+
readonly title: "MembershipSource";
|
|
644
|
+
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.";
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
readonly enum: readonly ["added", "joined", "requestApproved", "rule"];
|
|
647
|
+
};
|
|
648
|
+
readonly EntryFields: {
|
|
649
|
+
readonly title: "EntryFields";
|
|
650
|
+
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.";
|
|
651
|
+
readonly type: "object";
|
|
652
|
+
readonly maxProperties: 64;
|
|
653
|
+
readonly propertyNames: {
|
|
654
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
655
|
+
};
|
|
656
|
+
readonly additionalProperties: {
|
|
657
|
+
readonly $ref: "#/$defs/FieldValue";
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
readonly FieldValue: {
|
|
661
|
+
readonly title: "FieldValue";
|
|
662
|
+
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.";
|
|
663
|
+
readonly anyOf: readonly [{
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
readonly maxLength: 2000;
|
|
666
|
+
}, {
|
|
667
|
+
readonly type: "boolean";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "array";
|
|
670
|
+
readonly maxItems: 32;
|
|
671
|
+
readonly items: {
|
|
672
|
+
readonly type: "string";
|
|
673
|
+
readonly maxLength: 500;
|
|
674
|
+
};
|
|
675
|
+
}, {
|
|
676
|
+
readonly $ref: "#/$defs/CardBlobRef";
|
|
677
|
+
}, {
|
|
678
|
+
readonly $ref: "#/$defs/VerifiedValue";
|
|
679
|
+
}];
|
|
680
|
+
};
|
|
681
|
+
readonly VerifiedValue: {
|
|
682
|
+
readonly title: "VerifiedValue";
|
|
683
|
+
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.";
|
|
684
|
+
readonly type: "object";
|
|
685
|
+
readonly additionalProperties: false;
|
|
686
|
+
readonly required: readonly ["value", "issuer", "verifiedAt"];
|
|
687
|
+
readonly properties: {
|
|
688
|
+
readonly value: {
|
|
689
|
+
readonly anyOf: readonly [{
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
readonly maxLength: 2000;
|
|
692
|
+
}, {
|
|
693
|
+
readonly type: "boolean";
|
|
694
|
+
}, {
|
|
695
|
+
readonly type: "number";
|
|
696
|
+
}];
|
|
697
|
+
readonly description: "The disclosed claim value.";
|
|
698
|
+
};
|
|
699
|
+
readonly issuer: {
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
readonly pattern: "^did:";
|
|
702
|
+
readonly maxLength: 2048;
|
|
703
|
+
readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
|
|
704
|
+
};
|
|
705
|
+
readonly credentialType: {
|
|
706
|
+
readonly type: "string";
|
|
707
|
+
readonly minLength: 1;
|
|
708
|
+
readonly maxLength: 128;
|
|
709
|
+
readonly description: "The most specific `type` of the credential the claim came from.";
|
|
710
|
+
};
|
|
711
|
+
readonly verifiedAt: {
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
readonly format: "date-time";
|
|
714
|
+
readonly description: "When the community verified the presentation.";
|
|
715
|
+
};
|
|
716
|
+
readonly validUntil: {
|
|
717
|
+
readonly type: "string";
|
|
718
|
+
readonly format: "date-time";
|
|
719
|
+
readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
readonly CardBlobRef: {
|
|
724
|
+
readonly title: "CardBlobRef";
|
|
725
|
+
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 (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
|
|
726
|
+
readonly type: "object";
|
|
727
|
+
readonly additionalProperties: false;
|
|
728
|
+
readonly required: readonly ["sha256", "mediaType"];
|
|
729
|
+
readonly properties: {
|
|
730
|
+
readonly sha256: {
|
|
731
|
+
readonly type: "string";
|
|
732
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
733
|
+
readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
|
|
734
|
+
};
|
|
735
|
+
readonly mediaType: {
|
|
736
|
+
readonly type: "string";
|
|
737
|
+
readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
|
|
738
|
+
readonly description: "Media type of the stored bytes.";
|
|
739
|
+
};
|
|
740
|
+
readonly size: {
|
|
741
|
+
readonly type: "integer";
|
|
742
|
+
readonly minimum: 1;
|
|
743
|
+
readonly maximum: 262144;
|
|
744
|
+
readonly description: "Size in bytes of the stored bytes.";
|
|
745
|
+
};
|
|
746
|
+
readonly url: {
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
readonly format: "uri";
|
|
749
|
+
readonly maxLength: 2048;
|
|
750
|
+
readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
|
|
751
|
+
};
|
|
752
|
+
readonly urlExpiresAt: {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
readonly format: "date-time";
|
|
755
|
+
readonly description: "Projection only: when `url` stops working.";
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
readonly FieldKey: {
|
|
760
|
+
readonly title: "FieldKey";
|
|
761
|
+
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.";
|
|
762
|
+
readonly type: "string";
|
|
763
|
+
readonly minLength: 1;
|
|
764
|
+
readonly maxLength: 128;
|
|
765
|
+
readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
|
|
766
|
+
};
|
|
767
|
+
readonly EntryId: {
|
|
768
|
+
readonly title: "EntryId";
|
|
769
|
+
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.";
|
|
770
|
+
readonly type: "string";
|
|
771
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
772
|
+
};
|
|
773
|
+
readonly GroupId: {
|
|
774
|
+
readonly title: "GroupId";
|
|
775
|
+
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.";
|
|
776
|
+
readonly type: "string";
|
|
777
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
784
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
785
|
+
* parties (§7.3 item 5).
|
|
786
|
+
*/
|
|
787
|
+
export declare const RESPONSE_SPEC: {
|
|
788
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/groups/members/list/0.1#response";
|
|
789
|
+
readonly isBearer: false;
|
|
790
|
+
readonly isProofRequired: false;
|
|
791
|
+
readonly isRecipientRequired: true;
|
|
792
|
+
readonly isIssuedAtRequired: false;
|
|
793
|
+
readonly payloadSchema: {
|
|
794
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
795
|
+
readonly $ref: "#/$defs/Response";
|
|
796
|
+
readonly $defs: {
|
|
797
|
+
readonly Response: {
|
|
798
|
+
readonly $anchor: "response";
|
|
799
|
+
readonly title: "VTC Groups — Members — List — response payload";
|
|
800
|
+
readonly description: "The success response to a vtc/groups/members/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/list/0.1#response.";
|
|
801
|
+
readonly type: "object";
|
|
802
|
+
readonly additionalProperties: false;
|
|
803
|
+
readonly required: readonly ["items"];
|
|
804
|
+
readonly properties: {
|
|
805
|
+
readonly items: {
|
|
806
|
+
readonly type: "array";
|
|
807
|
+
readonly maxItems: 200;
|
|
808
|
+
readonly items: {
|
|
809
|
+
readonly $ref: "#/$defs/GroupMember";
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
readonly nextCursor: {
|
|
813
|
+
readonly type: readonly ["string", "null"];
|
|
814
|
+
readonly maxLength: 1024;
|
|
815
|
+
};
|
|
816
|
+
readonly ext: {
|
|
817
|
+
readonly $ref: "#/$defs/Ext";
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
readonly Ext: {
|
|
822
|
+
readonly title: "Ext";
|
|
823
|
+
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.";
|
|
824
|
+
readonly type: "object";
|
|
825
|
+
readonly minProperties: 1;
|
|
826
|
+
readonly additionalProperties: true;
|
|
827
|
+
readonly propertyNames: {
|
|
828
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
readonly GroupMember: {
|
|
832
|
+
readonly title: "GroupMember";
|
|
833
|
+
readonly type: "object";
|
|
834
|
+
readonly additionalProperties: false;
|
|
835
|
+
readonly required: readonly ["entryId", "source", "since", "state"];
|
|
836
|
+
readonly properties: {
|
|
837
|
+
readonly entryId: {
|
|
838
|
+
readonly $ref: "#/$defs/EntryId";
|
|
839
|
+
};
|
|
840
|
+
readonly source: {
|
|
841
|
+
readonly $ref: "#/$defs/MembershipSource";
|
|
842
|
+
};
|
|
843
|
+
readonly since: {
|
|
844
|
+
readonly type: "string";
|
|
845
|
+
readonly format: "date-time";
|
|
846
|
+
};
|
|
847
|
+
readonly state: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
readonly enum: readonly ["active", "pending"];
|
|
850
|
+
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.";
|
|
851
|
+
};
|
|
852
|
+
readonly fields: {
|
|
853
|
+
readonly $ref: "#/$defs/EntryFields";
|
|
854
|
+
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.";
|
|
855
|
+
};
|
|
856
|
+
readonly credentialId: {
|
|
857
|
+
readonly anyOf: readonly [{
|
|
858
|
+
readonly $ref: "#/$defs/GroupCredentialId";
|
|
859
|
+
}, {
|
|
860
|
+
readonly type: "null";
|
|
861
|
+
}];
|
|
862
|
+
readonly description: "The member's current group membership credential, or null when the group issues none.";
|
|
863
|
+
};
|
|
864
|
+
readonly credentialValidUntil: {
|
|
865
|
+
readonly type: "string";
|
|
866
|
+
readonly format: "date-time";
|
|
867
|
+
readonly description: "When the member's current group credential expires. Shown to the member themselves and to managers only.";
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly GroupCredentialId: {
|
|
872
|
+
readonly title: "GroupCredentialId";
|
|
873
|
+
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.";
|
|
874
|
+
readonly type: "string";
|
|
875
|
+
readonly minLength: 1;
|
|
876
|
+
readonly maxLength: 512;
|
|
877
|
+
};
|
|
878
|
+
readonly MembershipSource: {
|
|
879
|
+
readonly title: "MembershipSource";
|
|
880
|
+
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.";
|
|
881
|
+
readonly type: "string";
|
|
882
|
+
readonly enum: readonly ["added", "joined", "requestApproved", "rule"];
|
|
883
|
+
};
|
|
884
|
+
readonly EntryFields: {
|
|
885
|
+
readonly title: "EntryFields";
|
|
886
|
+
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.";
|
|
887
|
+
readonly type: "object";
|
|
888
|
+
readonly maxProperties: 64;
|
|
889
|
+
readonly propertyNames: {
|
|
890
|
+
readonly $ref: "#/$defs/FieldKey";
|
|
891
|
+
};
|
|
892
|
+
readonly additionalProperties: {
|
|
893
|
+
readonly $ref: "#/$defs/FieldValue";
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly FieldValue: {
|
|
897
|
+
readonly title: "FieldValue";
|
|
898
|
+
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.";
|
|
899
|
+
readonly anyOf: readonly [{
|
|
900
|
+
readonly type: "string";
|
|
901
|
+
readonly maxLength: 2000;
|
|
902
|
+
}, {
|
|
903
|
+
readonly type: "boolean";
|
|
904
|
+
}, {
|
|
905
|
+
readonly type: "array";
|
|
906
|
+
readonly maxItems: 32;
|
|
907
|
+
readonly items: {
|
|
908
|
+
readonly type: "string";
|
|
909
|
+
readonly maxLength: 500;
|
|
910
|
+
};
|
|
911
|
+
}, {
|
|
912
|
+
readonly $ref: "#/$defs/CardBlobRef";
|
|
913
|
+
}, {
|
|
914
|
+
readonly $ref: "#/$defs/VerifiedValue";
|
|
915
|
+
}];
|
|
916
|
+
};
|
|
917
|
+
readonly VerifiedValue: {
|
|
918
|
+
readonly title: "VerifiedValue";
|
|
919
|
+
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.";
|
|
920
|
+
readonly type: "object";
|
|
921
|
+
readonly additionalProperties: false;
|
|
922
|
+
readonly required: readonly ["value", "issuer", "verifiedAt"];
|
|
923
|
+
readonly properties: {
|
|
924
|
+
readonly value: {
|
|
925
|
+
readonly anyOf: readonly [{
|
|
926
|
+
readonly type: "string";
|
|
927
|
+
readonly maxLength: 2000;
|
|
928
|
+
}, {
|
|
929
|
+
readonly type: "boolean";
|
|
930
|
+
}, {
|
|
931
|
+
readonly type: "number";
|
|
932
|
+
}];
|
|
933
|
+
readonly description: "The disclosed claim value.";
|
|
934
|
+
};
|
|
935
|
+
readonly issuer: {
|
|
936
|
+
readonly type: "string";
|
|
937
|
+
readonly pattern: "^did:";
|
|
938
|
+
readonly maxLength: 2048;
|
|
939
|
+
readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
|
|
940
|
+
};
|
|
941
|
+
readonly credentialType: {
|
|
942
|
+
readonly type: "string";
|
|
943
|
+
readonly minLength: 1;
|
|
944
|
+
readonly maxLength: 128;
|
|
945
|
+
readonly description: "The most specific `type` of the credential the claim came from.";
|
|
946
|
+
};
|
|
947
|
+
readonly verifiedAt: {
|
|
948
|
+
readonly type: "string";
|
|
949
|
+
readonly format: "date-time";
|
|
950
|
+
readonly description: "When the community verified the presentation.";
|
|
951
|
+
};
|
|
952
|
+
readonly validUntil: {
|
|
953
|
+
readonly type: "string";
|
|
954
|
+
readonly format: "date-time";
|
|
955
|
+
readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
readonly CardBlobRef: {
|
|
960
|
+
readonly title: "CardBlobRef";
|
|
961
|
+
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 (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
|
|
962
|
+
readonly type: "object";
|
|
963
|
+
readonly additionalProperties: false;
|
|
964
|
+
readonly required: readonly ["sha256", "mediaType"];
|
|
965
|
+
readonly properties: {
|
|
966
|
+
readonly sha256: {
|
|
967
|
+
readonly type: "string";
|
|
968
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
969
|
+
readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
|
|
970
|
+
};
|
|
971
|
+
readonly mediaType: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
|
|
974
|
+
readonly description: "Media type of the stored bytes.";
|
|
975
|
+
};
|
|
976
|
+
readonly size: {
|
|
977
|
+
readonly type: "integer";
|
|
978
|
+
readonly minimum: 1;
|
|
979
|
+
readonly maximum: 262144;
|
|
980
|
+
readonly description: "Size in bytes of the stored bytes.";
|
|
981
|
+
};
|
|
982
|
+
readonly url: {
|
|
983
|
+
readonly type: "string";
|
|
984
|
+
readonly format: "uri";
|
|
985
|
+
readonly maxLength: 2048;
|
|
986
|
+
readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
|
|
987
|
+
};
|
|
988
|
+
readonly urlExpiresAt: {
|
|
989
|
+
readonly type: "string";
|
|
990
|
+
readonly format: "date-time";
|
|
991
|
+
readonly description: "Projection only: when `url` stops working.";
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
readonly FieldKey: {
|
|
996
|
+
readonly title: "FieldKey";
|
|
997
|
+
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.";
|
|
998
|
+
readonly type: "string";
|
|
999
|
+
readonly minLength: 1;
|
|
1000
|
+
readonly maxLength: 128;
|
|
1001
|
+
readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
|
|
1002
|
+
};
|
|
1003
|
+
readonly EntryId: {
|
|
1004
|
+
readonly title: "EntryId";
|
|
1005
|
+
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.";
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
|
|
1008
|
+
};
|
|
1009
|
+
readonly GroupId: {
|
|
1010
|
+
readonly title: "GroupId";
|
|
1011
|
+
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.";
|
|
1012
|
+
readonly type: "string";
|
|
1013
|
+
readonly pattern: "^grp_[A-Za-z0-9_-]{16,64}$";
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
//# sourceMappingURL=payload.d.ts.map
|