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