@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,739 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/fields/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/fields/list/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/fields/list/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vtc/directory/fields/list/0.1",
|
|
21
|
+
"title": "VTC Directory — Fields — List — payload",
|
|
22
|
+
"description": "Read a community's directory schema — base and community-defined fields, their types, ceilings and default visibility — as the caller may see it. The outer document members are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"includeRetired": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Administrators only: also return retired fields. Ignored for any other caller."
|
|
29
|
+
},
|
|
30
|
+
"ext": {
|
|
31
|
+
"$ref": "#/$defs/Ext"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"$defs": {
|
|
35
|
+
"Response": {
|
|
36
|
+
"$anchor": "response",
|
|
37
|
+
"title": "VTC Directory — Fields — List — response payload",
|
|
38
|
+
"description": "The success response to a vtc/directory/fields/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/fields/list/0.1#response.",
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": [
|
|
42
|
+
"fields",
|
|
43
|
+
"listingDefaults"
|
|
44
|
+
],
|
|
45
|
+
"properties": {
|
|
46
|
+
"fields": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"maxItems": 256,
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "#/$defs/FieldDefinition"
|
|
51
|
+
},
|
|
52
|
+
"description": "The fields, in `order`."
|
|
53
|
+
},
|
|
54
|
+
"listingDefaults": {
|
|
55
|
+
"$ref": "#/$defs/ListingDefaults"
|
|
56
|
+
},
|
|
57
|
+
"ext": {
|
|
58
|
+
"$ref": "#/$defs/Ext"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"Ext": {
|
|
63
|
+
"title": "Ext",
|
|
64
|
+
"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.",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"minProperties": 1,
|
|
67
|
+
"additionalProperties": true,
|
|
68
|
+
"propertyNames": {
|
|
69
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"ListingDefaults": {
|
|
73
|
+
"title": "ListingDefaults",
|
|
74
|
+
"description": "The community's listing settings. `defaultListing`: the listing a new card starts with (default `listed`). There is no floor: every member may always choose `hidden`, and a community cannot hold an entry above its member's choice. Raising `defaultListing` affects new cards only.",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"defaultListing"
|
|
79
|
+
],
|
|
80
|
+
"properties": {
|
|
81
|
+
"defaultListing": {
|
|
82
|
+
"$ref": "#/$defs/Listing"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"Listing": {
|
|
87
|
+
"title": "Listing",
|
|
88
|
+
"description": "Whether members can find the entry. `listed`: it appears when members browse. `findable`: it does not appear when browsing, but a search that matches it under `search` returns it. `hidden`: no member finds it by browsing or searching; administrators still see it, and members who share a group that shows its members see it in that group's member list.",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"enum": [
|
|
91
|
+
"listed",
|
|
92
|
+
"findable",
|
|
93
|
+
"hidden"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"FieldDefinition": {
|
|
97
|
+
"title": "FieldDefinition",
|
|
98
|
+
"description": "One field of the community's directory schema, as the community holds it. The audience order `admins` < `groups`/`connections` < `members` < `public` applies to `ceiling` and `defaultVisibility`; `defaultVisibility` is never wider than `ceiling`.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"key",
|
|
103
|
+
"label",
|
|
104
|
+
"type",
|
|
105
|
+
"source",
|
|
106
|
+
"base",
|
|
107
|
+
"ceiling",
|
|
108
|
+
"defaultVisibility",
|
|
109
|
+
"required",
|
|
110
|
+
"searchable",
|
|
111
|
+
"facet",
|
|
112
|
+
"order",
|
|
113
|
+
"state"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"key": {
|
|
117
|
+
"$ref": "#/$defs/FieldKey"
|
|
118
|
+
},
|
|
119
|
+
"label": {
|
|
120
|
+
"$ref": "#/$defs/FieldLabel"
|
|
121
|
+
},
|
|
122
|
+
"description": {
|
|
123
|
+
"$ref": "#/$defs/FieldDescription"
|
|
124
|
+
},
|
|
125
|
+
"type": {
|
|
126
|
+
"$ref": "#/$defs/FieldType"
|
|
127
|
+
},
|
|
128
|
+
"constraints": {
|
|
129
|
+
"$ref": "#/$defs/FieldConstraints"
|
|
130
|
+
},
|
|
131
|
+
"source": {
|
|
132
|
+
"$ref": "#/$defs/FieldSource"
|
|
133
|
+
},
|
|
134
|
+
"base": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"description": "`true` for a base field, present in every community; `false` for a field this community defined."
|
|
137
|
+
},
|
|
138
|
+
"jsContactPath": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 1,
|
|
141
|
+
"maxLength": 128,
|
|
142
|
+
"description": "Where the field lands when an entry is exported as a JSContact Card (RFC 9553), e.g. `name.full`, `nicknames`, `speakToAs.pronouns`. Absent: a vendor-specific property named by the key."
|
|
143
|
+
},
|
|
144
|
+
"required": {
|
|
145
|
+
"type": "boolean"
|
|
146
|
+
},
|
|
147
|
+
"ceiling": {
|
|
148
|
+
"$ref": "#/$defs/Audience"
|
|
149
|
+
},
|
|
150
|
+
"defaultVisibility": {
|
|
151
|
+
"$ref": "#/$defs/Audience"
|
|
152
|
+
},
|
|
153
|
+
"searchable": {
|
|
154
|
+
"type": "boolean"
|
|
155
|
+
},
|
|
156
|
+
"facet": {
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"order": {
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"minimum": 0,
|
|
162
|
+
"maximum": 10000
|
|
163
|
+
},
|
|
164
|
+
"state": {
|
|
165
|
+
"$ref": "#/$defs/FieldState"
|
|
166
|
+
},
|
|
167
|
+
"retiredAt": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"format": "date-time",
|
|
170
|
+
"description": "When the field was retired. Present only on a retired field."
|
|
171
|
+
},
|
|
172
|
+
"purgeAfter": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"format": "date-time",
|
|
175
|
+
"description": "When the values of a retired field are purged. Present only on a retired field."
|
|
176
|
+
},
|
|
177
|
+
"updatedAt": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"format": "date-time"
|
|
180
|
+
},
|
|
181
|
+
"ext": {
|
|
182
|
+
"$ref": "#/$defs/Ext",
|
|
183
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT widen a ceiling."
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"FieldState": {
|
|
188
|
+
"title": "FieldState",
|
|
189
|
+
"description": "`active`: in use. `disabled`: a base field the community has switched off; hidden from every projection and re-enablable. `retired`: a community field withdrawn for good; hidden at once, its values purged after the community's retention period, and its key never reused.",
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"active",
|
|
193
|
+
"disabled",
|
|
194
|
+
"retired"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"FieldSource": {
|
|
198
|
+
"title": "FieldSource",
|
|
199
|
+
"description": "Who writes the value. `member`: self-asserted, through vtc/directory/card/update. `admin`: asserted by the community through vtc/directory/card/assert; the member reads it and cannot change it. `credential`: a claim the member discloses from a credential through vtc/directory/card/present, badged with its issuer. `derived`: a base field read from the community's own records (`role`, `joinedAt`, `did`, `personhood`) and never stored on a card. Each source is written only through its own path.",
|
|
200
|
+
"type": "string",
|
|
201
|
+
"enum": [
|
|
202
|
+
"member",
|
|
203
|
+
"admin",
|
|
204
|
+
"credential",
|
|
205
|
+
"derived"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"FieldConstraints": {
|
|
209
|
+
"title": "FieldConstraints",
|
|
210
|
+
"description": "Per-type constraints. A member that does not apply to the field's type is refused by the community with `valueInvalid` when the definition is written.",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"properties": {
|
|
214
|
+
"maxLength": {
|
|
215
|
+
"type": "integer",
|
|
216
|
+
"minimum": 1,
|
|
217
|
+
"maximum": 2000
|
|
218
|
+
},
|
|
219
|
+
"minLength": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 0,
|
|
222
|
+
"maximum": 2000
|
|
223
|
+
},
|
|
224
|
+
"pattern": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"minLength": 1,
|
|
227
|
+
"maxLength": 256,
|
|
228
|
+
"description": "ECMA-262 regular expression a text value MUST match."
|
|
229
|
+
},
|
|
230
|
+
"options": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"minItems": 1,
|
|
233
|
+
"maxItems": 128,
|
|
234
|
+
"items": {
|
|
235
|
+
"$ref": "#/$defs/EnumOption"
|
|
236
|
+
},
|
|
237
|
+
"description": "The permitted values of an `enum` or `multiEnum` field."
|
|
238
|
+
},
|
|
239
|
+
"maxItems": {
|
|
240
|
+
"type": "integer",
|
|
241
|
+
"minimum": 1,
|
|
242
|
+
"maximum": 32
|
|
243
|
+
},
|
|
244
|
+
"minDate": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"format": "date"
|
|
247
|
+
},
|
|
248
|
+
"maxDate": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"format": "date"
|
|
251
|
+
},
|
|
252
|
+
"claim": {
|
|
253
|
+
"$ref": "#/$defs/ClaimSelector"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"ClaimSelector": {
|
|
258
|
+
"title": "ClaimSelector",
|
|
259
|
+
"description": "Which claim a `claim` field accepts, from which credentials and issuers.",
|
|
260
|
+
"type": "object",
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"required": [
|
|
263
|
+
"credentialType",
|
|
264
|
+
"claimPath"
|
|
265
|
+
],
|
|
266
|
+
"properties": {
|
|
267
|
+
"credentialType": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"minLength": 1,
|
|
270
|
+
"maxLength": 128,
|
|
271
|
+
"description": "A `type` the presented credential MUST carry."
|
|
272
|
+
},
|
|
273
|
+
"claimPath": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"minLength": 1,
|
|
276
|
+
"maxLength": 256,
|
|
277
|
+
"description": "JSON Pointer (RFC 6901) to the claim within `credentialSubject`."
|
|
278
|
+
},
|
|
279
|
+
"issuers": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"maxItems": 32,
|
|
282
|
+
"uniqueItems": true,
|
|
283
|
+
"items": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"pattern": "^did:",
|
|
286
|
+
"maxLength": 2048
|
|
287
|
+
},
|
|
288
|
+
"description": "Issuers the community accepts for this field. Absent: the community's trusted issuers for the credential type, as its own policy decides."
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"EnumOption": {
|
|
293
|
+
"title": "EnumOption",
|
|
294
|
+
"type": "object",
|
|
295
|
+
"additionalProperties": false,
|
|
296
|
+
"required": [
|
|
297
|
+
"value",
|
|
298
|
+
"label"
|
|
299
|
+
],
|
|
300
|
+
"properties": {
|
|
301
|
+
"value": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"minLength": 1,
|
|
304
|
+
"maxLength": 64,
|
|
305
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
|
|
306
|
+
"description": "The stored value."
|
|
307
|
+
},
|
|
308
|
+
"label": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"minLength": 1,
|
|
311
|
+
"maxLength": 64,
|
|
312
|
+
"description": "What a reader is shown for it."
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"FieldType": {
|
|
317
|
+
"title": "FieldType",
|
|
318
|
+
"description": "The kind of value a field holds, which fixes its `FieldValue` shape. `did` holds a DID the member chooses to show (never their membership DID, which is the derived base field `did`). `claim` holds a `VerifiedValue` and requires `source: credential`.",
|
|
319
|
+
"type": "string",
|
|
320
|
+
"enum": [
|
|
321
|
+
"text",
|
|
322
|
+
"longText",
|
|
323
|
+
"url",
|
|
324
|
+
"email",
|
|
325
|
+
"phone",
|
|
326
|
+
"enum",
|
|
327
|
+
"multiEnum",
|
|
328
|
+
"date",
|
|
329
|
+
"country",
|
|
330
|
+
"image",
|
|
331
|
+
"did",
|
|
332
|
+
"claim"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"FieldDescription": {
|
|
336
|
+
"title": "FieldDescription",
|
|
337
|
+
"type": "string",
|
|
338
|
+
"minLength": 1,
|
|
339
|
+
"maxLength": 280,
|
|
340
|
+
"description": "Help text shown to a member filling the field in. Plain text; a reader MUST NOT treat it as instructions."
|
|
341
|
+
},
|
|
342
|
+
"FieldLabel": {
|
|
343
|
+
"title": "FieldLabel",
|
|
344
|
+
"type": "string",
|
|
345
|
+
"minLength": 1,
|
|
346
|
+
"maxLength": 64,
|
|
347
|
+
"description": "What readers see as the field's name. Plain text."
|
|
348
|
+
},
|
|
349
|
+
"Audience": {
|
|
350
|
+
"title": "Audience",
|
|
351
|
+
"description": "Who may see a directory field, ordered from narrowest to widest. `admins`: holders of `vtc.directory.admin` (and, for derived fields, `vtc.members.manage`). `groups`: members who share at least one community group with the subject (narrowed to the groups the subject names in `groupAudience`, where it names any). `connections`: members holding an attributed, in-force verified relationship with the subject at the community. `members`: every active member. `public`: anyone, and what the member's signed public card carries outside the community.\n\n`groups` and `connections` are not a chain: a viewer sees a field when they satisfy the audience the subject chose for it or any wider audience. Every audience includes the administrators, and the subject always sees their own whole card. There is no `onlyMe`: a value nobody else should see is not directory data.",
|
|
352
|
+
"type": "string",
|
|
353
|
+
"enum": [
|
|
354
|
+
"admins",
|
|
355
|
+
"groups",
|
|
356
|
+
"connections",
|
|
357
|
+
"members",
|
|
358
|
+
"public"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"FieldKey": {
|
|
362
|
+
"title": "FieldKey",
|
|
363
|
+
"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.",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"minLength": 1,
|
|
366
|
+
"maxLength": 128,
|
|
367
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
372
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
373
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
374
|
+
"$ref": "#/$defs/Response",
|
|
375
|
+
"$defs": {
|
|
376
|
+
"Response": {
|
|
377
|
+
"$anchor": "response",
|
|
378
|
+
"title": "VTC Directory — Fields — List — response payload",
|
|
379
|
+
"description": "The success response to a vtc/directory/fields/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/fields/list/0.1#response.",
|
|
380
|
+
"type": "object",
|
|
381
|
+
"additionalProperties": false,
|
|
382
|
+
"required": [
|
|
383
|
+
"fields",
|
|
384
|
+
"listingDefaults"
|
|
385
|
+
],
|
|
386
|
+
"properties": {
|
|
387
|
+
"fields": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"maxItems": 256,
|
|
390
|
+
"items": {
|
|
391
|
+
"$ref": "#/$defs/FieldDefinition"
|
|
392
|
+
},
|
|
393
|
+
"description": "The fields, in `order`."
|
|
394
|
+
},
|
|
395
|
+
"listingDefaults": {
|
|
396
|
+
"$ref": "#/$defs/ListingDefaults"
|
|
397
|
+
},
|
|
398
|
+
"ext": {
|
|
399
|
+
"$ref": "#/$defs/Ext"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"Ext": {
|
|
404
|
+
"title": "Ext",
|
|
405
|
+
"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.",
|
|
406
|
+
"type": "object",
|
|
407
|
+
"minProperties": 1,
|
|
408
|
+
"additionalProperties": true,
|
|
409
|
+
"propertyNames": {
|
|
410
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"ListingDefaults": {
|
|
414
|
+
"title": "ListingDefaults",
|
|
415
|
+
"description": "The community's listing settings. `defaultListing`: the listing a new card starts with (default `listed`). There is no floor: every member may always choose `hidden`, and a community cannot hold an entry above its member's choice. Raising `defaultListing` affects new cards only.",
|
|
416
|
+
"type": "object",
|
|
417
|
+
"additionalProperties": false,
|
|
418
|
+
"required": [
|
|
419
|
+
"defaultListing"
|
|
420
|
+
],
|
|
421
|
+
"properties": {
|
|
422
|
+
"defaultListing": {
|
|
423
|
+
"$ref": "#/$defs/Listing"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"Listing": {
|
|
428
|
+
"title": "Listing",
|
|
429
|
+
"description": "Whether members can find the entry. `listed`: it appears when members browse. `findable`: it does not appear when browsing, but a search that matches it under `search` returns it. `hidden`: no member finds it by browsing or searching; administrators still see it, and members who share a group that shows its members see it in that group's member list.",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"enum": [
|
|
432
|
+
"listed",
|
|
433
|
+
"findable",
|
|
434
|
+
"hidden"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
"FieldDefinition": {
|
|
438
|
+
"title": "FieldDefinition",
|
|
439
|
+
"description": "One field of the community's directory schema, as the community holds it. The audience order `admins` < `groups`/`connections` < `members` < `public` applies to `ceiling` and `defaultVisibility`; `defaultVisibility` is never wider than `ceiling`.",
|
|
440
|
+
"type": "object",
|
|
441
|
+
"additionalProperties": false,
|
|
442
|
+
"required": [
|
|
443
|
+
"key",
|
|
444
|
+
"label",
|
|
445
|
+
"type",
|
|
446
|
+
"source",
|
|
447
|
+
"base",
|
|
448
|
+
"ceiling",
|
|
449
|
+
"defaultVisibility",
|
|
450
|
+
"required",
|
|
451
|
+
"searchable",
|
|
452
|
+
"facet",
|
|
453
|
+
"order",
|
|
454
|
+
"state"
|
|
455
|
+
],
|
|
456
|
+
"properties": {
|
|
457
|
+
"key": {
|
|
458
|
+
"$ref": "#/$defs/FieldKey"
|
|
459
|
+
},
|
|
460
|
+
"label": {
|
|
461
|
+
"$ref": "#/$defs/FieldLabel"
|
|
462
|
+
},
|
|
463
|
+
"description": {
|
|
464
|
+
"$ref": "#/$defs/FieldDescription"
|
|
465
|
+
},
|
|
466
|
+
"type": {
|
|
467
|
+
"$ref": "#/$defs/FieldType"
|
|
468
|
+
},
|
|
469
|
+
"constraints": {
|
|
470
|
+
"$ref": "#/$defs/FieldConstraints"
|
|
471
|
+
},
|
|
472
|
+
"source": {
|
|
473
|
+
"$ref": "#/$defs/FieldSource"
|
|
474
|
+
},
|
|
475
|
+
"base": {
|
|
476
|
+
"type": "boolean",
|
|
477
|
+
"description": "`true` for a base field, present in every community; `false` for a field this community defined."
|
|
478
|
+
},
|
|
479
|
+
"jsContactPath": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"minLength": 1,
|
|
482
|
+
"maxLength": 128,
|
|
483
|
+
"description": "Where the field lands when an entry is exported as a JSContact Card (RFC 9553), e.g. `name.full`, `nicknames`, `speakToAs.pronouns`. Absent: a vendor-specific property named by the key."
|
|
484
|
+
},
|
|
485
|
+
"required": {
|
|
486
|
+
"type": "boolean"
|
|
487
|
+
},
|
|
488
|
+
"ceiling": {
|
|
489
|
+
"$ref": "#/$defs/Audience"
|
|
490
|
+
},
|
|
491
|
+
"defaultVisibility": {
|
|
492
|
+
"$ref": "#/$defs/Audience"
|
|
493
|
+
},
|
|
494
|
+
"searchable": {
|
|
495
|
+
"type": "boolean"
|
|
496
|
+
},
|
|
497
|
+
"facet": {
|
|
498
|
+
"type": "boolean"
|
|
499
|
+
},
|
|
500
|
+
"order": {
|
|
501
|
+
"type": "integer",
|
|
502
|
+
"minimum": 0,
|
|
503
|
+
"maximum": 10000
|
|
504
|
+
},
|
|
505
|
+
"state": {
|
|
506
|
+
"$ref": "#/$defs/FieldState"
|
|
507
|
+
},
|
|
508
|
+
"retiredAt": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"format": "date-time",
|
|
511
|
+
"description": "When the field was retired. Present only on a retired field."
|
|
512
|
+
},
|
|
513
|
+
"purgeAfter": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"format": "date-time",
|
|
516
|
+
"description": "When the values of a retired field are purged. Present only on a retired field."
|
|
517
|
+
},
|
|
518
|
+
"updatedAt": {
|
|
519
|
+
"type": "string",
|
|
520
|
+
"format": "date-time"
|
|
521
|
+
},
|
|
522
|
+
"ext": {
|
|
523
|
+
"$ref": "#/$defs/Ext",
|
|
524
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT widen a ceiling."
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"FieldState": {
|
|
529
|
+
"title": "FieldState",
|
|
530
|
+
"description": "`active`: in use. `disabled`: a base field the community has switched off; hidden from every projection and re-enablable. `retired`: a community field withdrawn for good; hidden at once, its values purged after the community's retention period, and its key never reused.",
|
|
531
|
+
"type": "string",
|
|
532
|
+
"enum": [
|
|
533
|
+
"active",
|
|
534
|
+
"disabled",
|
|
535
|
+
"retired"
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
"FieldSource": {
|
|
539
|
+
"title": "FieldSource",
|
|
540
|
+
"description": "Who writes the value. `member`: self-asserted, through vtc/directory/card/update. `admin`: asserted by the community through vtc/directory/card/assert; the member reads it and cannot change it. `credential`: a claim the member discloses from a credential through vtc/directory/card/present, badged with its issuer. `derived`: a base field read from the community's own records (`role`, `joinedAt`, `did`, `personhood`) and never stored on a card. Each source is written only through its own path.",
|
|
541
|
+
"type": "string",
|
|
542
|
+
"enum": [
|
|
543
|
+
"member",
|
|
544
|
+
"admin",
|
|
545
|
+
"credential",
|
|
546
|
+
"derived"
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
"FieldConstraints": {
|
|
550
|
+
"title": "FieldConstraints",
|
|
551
|
+
"description": "Per-type constraints. A member that does not apply to the field's type is refused by the community with `valueInvalid` when the definition is written.",
|
|
552
|
+
"type": "object",
|
|
553
|
+
"additionalProperties": false,
|
|
554
|
+
"properties": {
|
|
555
|
+
"maxLength": {
|
|
556
|
+
"type": "integer",
|
|
557
|
+
"minimum": 1,
|
|
558
|
+
"maximum": 2000
|
|
559
|
+
},
|
|
560
|
+
"minLength": {
|
|
561
|
+
"type": "integer",
|
|
562
|
+
"minimum": 0,
|
|
563
|
+
"maximum": 2000
|
|
564
|
+
},
|
|
565
|
+
"pattern": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"minLength": 1,
|
|
568
|
+
"maxLength": 256,
|
|
569
|
+
"description": "ECMA-262 regular expression a text value MUST match."
|
|
570
|
+
},
|
|
571
|
+
"options": {
|
|
572
|
+
"type": "array",
|
|
573
|
+
"minItems": 1,
|
|
574
|
+
"maxItems": 128,
|
|
575
|
+
"items": {
|
|
576
|
+
"$ref": "#/$defs/EnumOption"
|
|
577
|
+
},
|
|
578
|
+
"description": "The permitted values of an `enum` or `multiEnum` field."
|
|
579
|
+
},
|
|
580
|
+
"maxItems": {
|
|
581
|
+
"type": "integer",
|
|
582
|
+
"minimum": 1,
|
|
583
|
+
"maximum": 32
|
|
584
|
+
},
|
|
585
|
+
"minDate": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"format": "date"
|
|
588
|
+
},
|
|
589
|
+
"maxDate": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"format": "date"
|
|
592
|
+
},
|
|
593
|
+
"claim": {
|
|
594
|
+
"$ref": "#/$defs/ClaimSelector"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"ClaimSelector": {
|
|
599
|
+
"title": "ClaimSelector",
|
|
600
|
+
"description": "Which claim a `claim` field accepts, from which credentials and issuers.",
|
|
601
|
+
"type": "object",
|
|
602
|
+
"additionalProperties": false,
|
|
603
|
+
"required": [
|
|
604
|
+
"credentialType",
|
|
605
|
+
"claimPath"
|
|
606
|
+
],
|
|
607
|
+
"properties": {
|
|
608
|
+
"credentialType": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"minLength": 1,
|
|
611
|
+
"maxLength": 128,
|
|
612
|
+
"description": "A `type` the presented credential MUST carry."
|
|
613
|
+
},
|
|
614
|
+
"claimPath": {
|
|
615
|
+
"type": "string",
|
|
616
|
+
"minLength": 1,
|
|
617
|
+
"maxLength": 256,
|
|
618
|
+
"description": "JSON Pointer (RFC 6901) to the claim within `credentialSubject`."
|
|
619
|
+
},
|
|
620
|
+
"issuers": {
|
|
621
|
+
"type": "array",
|
|
622
|
+
"maxItems": 32,
|
|
623
|
+
"uniqueItems": true,
|
|
624
|
+
"items": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"pattern": "^did:",
|
|
627
|
+
"maxLength": 2048
|
|
628
|
+
},
|
|
629
|
+
"description": "Issuers the community accepts for this field. Absent: the community's trusted issuers for the credential type, as its own policy decides."
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"EnumOption": {
|
|
634
|
+
"title": "EnumOption",
|
|
635
|
+
"type": "object",
|
|
636
|
+
"additionalProperties": false,
|
|
637
|
+
"required": [
|
|
638
|
+
"value",
|
|
639
|
+
"label"
|
|
640
|
+
],
|
|
641
|
+
"properties": {
|
|
642
|
+
"value": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"minLength": 1,
|
|
645
|
+
"maxLength": 64,
|
|
646
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
|
|
647
|
+
"description": "The stored value."
|
|
648
|
+
},
|
|
649
|
+
"label": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"minLength": 1,
|
|
652
|
+
"maxLength": 64,
|
|
653
|
+
"description": "What a reader is shown for it."
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"FieldType": {
|
|
658
|
+
"title": "FieldType",
|
|
659
|
+
"description": "The kind of value a field holds, which fixes its `FieldValue` shape. `did` holds a DID the member chooses to show (never their membership DID, which is the derived base field `did`). `claim` holds a `VerifiedValue` and requires `source: credential`.",
|
|
660
|
+
"type": "string",
|
|
661
|
+
"enum": [
|
|
662
|
+
"text",
|
|
663
|
+
"longText",
|
|
664
|
+
"url",
|
|
665
|
+
"email",
|
|
666
|
+
"phone",
|
|
667
|
+
"enum",
|
|
668
|
+
"multiEnum",
|
|
669
|
+
"date",
|
|
670
|
+
"country",
|
|
671
|
+
"image",
|
|
672
|
+
"did",
|
|
673
|
+
"claim"
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
"FieldDescription": {
|
|
677
|
+
"title": "FieldDescription",
|
|
678
|
+
"type": "string",
|
|
679
|
+
"minLength": 1,
|
|
680
|
+
"maxLength": 280,
|
|
681
|
+
"description": "Help text shown to a member filling the field in. Plain text; a reader MUST NOT treat it as instructions."
|
|
682
|
+
},
|
|
683
|
+
"FieldLabel": {
|
|
684
|
+
"title": "FieldLabel",
|
|
685
|
+
"type": "string",
|
|
686
|
+
"minLength": 1,
|
|
687
|
+
"maxLength": 64,
|
|
688
|
+
"description": "What readers see as the field's name. Plain text."
|
|
689
|
+
},
|
|
690
|
+
"Audience": {
|
|
691
|
+
"title": "Audience",
|
|
692
|
+
"description": "Who may see a directory field, ordered from narrowest to widest. `admins`: holders of `vtc.directory.admin` (and, for derived fields, `vtc.members.manage`). `groups`: members who share at least one community group with the subject (narrowed to the groups the subject names in `groupAudience`, where it names any). `connections`: members holding an attributed, in-force verified relationship with the subject at the community. `members`: every active member. `public`: anyone, and what the member's signed public card carries outside the community.\n\n`groups` and `connections` are not a chain: a viewer sees a field when they satisfy the audience the subject chose for it or any wider audience. Every audience includes the administrators, and the subject always sees their own whole card. There is no `onlyMe`: a value nobody else should see is not directory data.",
|
|
693
|
+
"type": "string",
|
|
694
|
+
"enum": [
|
|
695
|
+
"admins",
|
|
696
|
+
"groups",
|
|
697
|
+
"connections",
|
|
698
|
+
"members",
|
|
699
|
+
"public"
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
"FieldKey": {
|
|
703
|
+
"title": "FieldKey",
|
|
704
|
+
"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.",
|
|
705
|
+
"type": "string",
|
|
706
|
+
"minLength": 1,
|
|
707
|
+
"maxLength": 128,
|
|
708
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
/**
|
|
713
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
714
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
715
|
+
* per-specification and cannot be derived from the document alone, and
|
|
716
|
+
* item 2 needs the schema this carries.
|
|
717
|
+
*/
|
|
718
|
+
export const SPEC = {
|
|
719
|
+
typeUri: TYPE_URI,
|
|
720
|
+
isBearer: false,
|
|
721
|
+
isProofRequired: false,
|
|
722
|
+
isRecipientRequired: true,
|
|
723
|
+
isIssuedAtRequired: false,
|
|
724
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
728
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
729
|
+
* parties (§7.3 item 5).
|
|
730
|
+
*/
|
|
731
|
+
export const RESPONSE_SPEC = {
|
|
732
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
733
|
+
isBearer: false,
|
|
734
|
+
isProofRequired: false,
|
|
735
|
+
isRecipientRequired: true,
|
|
736
|
+
isIssuedAtRequired: false,
|
|
737
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
738
|
+
};
|
|
739
|
+
//# sourceMappingURL=payload.js.map
|