@openvtc/trust-tasks 0.26.17 → 0.26.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +166 -0
- package/dist/_shared/components.d.ts +755 -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 +52 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
- package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
- package/dist/keys/sign-document/0.1/payload.js +341 -0
- package/dist/keys/sign-document/0.1/payload.js.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
- package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
- package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.1/payload.js +804 -0
- package/dist/persona/contact/get/1.1/payload.js.map +1 -0
- package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.1/payload.js +417 -0
- package/dist/persona/contact/list/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
- package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
- package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.1/payload.js +850 -0
- package/dist/persona/contact/put/1.1/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.1/payload.js +12 -2
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +12 -2
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/owner/group/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/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/package.json +1 -1
- package/src/_shared/components.ts +800 -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 +52 -0
- package/src/keys/sign-document/0.1/payload.ts +437 -0
- package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
- package/src/persona/contact/get/1.1/payload.ts +876 -0
- package/src/persona/contact/list/1.1/payload.ts +497 -0
- package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
- package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
- package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
- package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
- package/src/persona/contact/put/1.1/payload.ts +958 -0
- package/src/rooms/keys/seal/0.1/payload.ts +12 -2
- package/src/rooms/keys/seal/0.2/payload.ts +12 -2
- package/src/rooms/owner/group/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/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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/admin/events/_shared/0.3/topic.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared shapes for a Verifiable Trust Community's live administrative console events: a hint-only channel that tells an administrator's console WHEN to re-read, never WHAT changed.
|
|
8
|
+
*
|
|
9
|
+
* THE MODEL. A console subscribes once per session with `vtc/admin/events/subscribe`, naming the topics it renders. The community answers with a stream of `vtc/admin/events/event` documents, each naming one topic and, for a count topic, the caller's current count. An event carries no record and no personal data. The console reacts by re-fetching the topic's own signed read, so the read stays the only place authorization is decided and the only place data leaves the community: the stream can neither leak a record nor grant a read. Polling those reads remains the fallback whenever the stream is down.
|
|
10
|
+
*
|
|
11
|
+
* TOPICS AND THEIR READS. Each topic names one read. A community sends a topic's events only to a caller it would answer on that read.
|
|
12
|
+
*
|
|
13
|
+
* - `actions` — the caller's visible administrative actions (`vtc/admin/actions/list`). Count topic: the caller's `waitingForMe` count.
|
|
14
|
+
* - `acknowledgements` — the acknowledge-category actions awaiting the caller (`vtc/admin/actions/list`). Count topic: the open acknowledge actions the caller has not yet acknowledged.
|
|
15
|
+
* - `joinRequests` — the community's join requests (`vtc/join-requests/list`). Count topic: the join requests awaiting a decision.
|
|
16
|
+
* - `members` — the community's members (`vtc/members/list`). No count.
|
|
17
|
+
* - `singleAdminMode` — whether single-administrator mode is in effect. Every administrator may read it. No count.
|
|
18
|
+
* - `config` — the community's stored configuration (`vtc/config/export`). No count.
|
|
19
|
+
* - `rooms` — the rooms this community hosts and where their files are kept (`vtc/rooms/list`, `vtc/rooms/usage`, `vtc/storage/configs/list`), for holders of `vtc.rooms.admin`. No count. Added in 0.2.
|
|
20
|
+
* - `directory` — the community's member directory as administrators see it: its field schema, its entries, and the administrators' notes on them (the `vtc/directory/*` reads), for holders of `vtc.directory.admin` or `vtc.directory.notes`. No count. Added in 0.3.
|
|
21
|
+
* - `groups` — the community's groups, their members and bindings, and requests to join them (the `vtc/groups/*` reads), for holders of `vtc.groups.manage`. No count. Added in 0.3.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTCAdminEventsSharedDefinitions {
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
29
|
+
* See "../../../../../_shared/components.js".
|
|
30
|
+
*/
|
|
31
|
+
export type { ResumeToken, Topic_VtcAdminEventsV0_3 as Topic } from "../../../../../_shared/components.js";
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/admin/events/event/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, ResumeToken, Topic_VtcAdminEventsV0_3 as Topic } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* One hint, sent by a Verifiable Trust Community down an administrator console's live channel: something under `topic` changed, re-read it. It never carries the record that changed. Fire-and-forget: there is no response. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCAdminEventsEventPayload {
|
|
13
|
+
/**
|
|
14
|
+
* What changed. Always one of the effective topics the subscribe response named.
|
|
15
|
+
*/
|
|
16
|
+
topic: Topic;
|
|
17
|
+
/**
|
|
18
|
+
* When the community observed the change. Where it coalesced several changes into this hint, the latest of them.
|
|
19
|
+
*/
|
|
20
|
+
at: string;
|
|
21
|
+
/**
|
|
22
|
+
* Only on a count topic (`actions`, `acknowledgements`, `joinRequests`): the caller's current count for that topic as of `at` — what a console badge shows. Absent on every other topic. A console MAY show it until its re-fetch returns, and MUST prefer the read's own count once it does.
|
|
23
|
+
*/
|
|
24
|
+
count?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The stream position after this hint. A console keeps the latest one and passes it back as `since` when it re-subscribes.
|
|
27
|
+
*/
|
|
28
|
+
resumeToken: ResumeToken;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
33
|
+
export type { Ext, ResumeToken, Topic };
|
|
34
|
+
|
|
35
|
+
/** Trust Task type URI. */
|
|
36
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/admin/events/event/0.3" as const;
|
|
37
|
+
|
|
38
|
+
/** Stable alias for this specification's request payload shape. */
|
|
39
|
+
export type Payload = VTCAdminEventsEventPayload;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* This specification's payload schema, as a value.
|
|
43
|
+
*
|
|
44
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
45
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
46
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
47
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
48
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
49
|
+
*/
|
|
50
|
+
export const PAYLOAD_SCHEMA = {
|
|
51
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
52
|
+
"$id": "https://trusttasks.org/spec/vtc/admin/events/event/0.3",
|
|
53
|
+
"title": "VTC Admin Events — Event — payload",
|
|
54
|
+
"description": "One hint, sent by a Verifiable Trust Community down an administrator console's live channel: something under `topic` changed, re-read it. It never carries the record that changed. Fire-and-forget: there is no response. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": [
|
|
58
|
+
"topic",
|
|
59
|
+
"at",
|
|
60
|
+
"resumeToken"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"topic": {
|
|
64
|
+
"$ref": "#/$defs/Topic",
|
|
65
|
+
"description": "What changed. Always one of the effective topics the subscribe response named."
|
|
66
|
+
},
|
|
67
|
+
"at": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": "date-time",
|
|
70
|
+
"description": "When the community observed the change. Where it coalesced several changes into this hint, the latest of them."
|
|
71
|
+
},
|
|
72
|
+
"count": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": 0,
|
|
75
|
+
"description": "Only on a count topic (`actions`, `acknowledgements`, `joinRequests`): the caller's current count for that topic as of `at` — what a console badge shows. Absent on every other topic. A console MAY show it until its re-fetch returns, and MUST prefer the read's own count once it does."
|
|
76
|
+
},
|
|
77
|
+
"resumeToken": {
|
|
78
|
+
"$ref": "#/$defs/ResumeToken",
|
|
79
|
+
"description": "The stream position after this hint. A console keeps the latest one and passes it back as `since` when it re-subscribes."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"Ext": {
|
|
87
|
+
"title": "Ext",
|
|
88
|
+
"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.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"minProperties": 1,
|
|
91
|
+
"additionalProperties": true,
|
|
92
|
+
"propertyNames": {
|
|
93
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"ResumeToken": {
|
|
97
|
+
"title": "ResumeToken",
|
|
98
|
+
"description": "Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 256,
|
|
102
|
+
"pattern": "^[A-Za-z0-9._~-]+$"
|
|
103
|
+
},
|
|
104
|
+
"Topic": {
|
|
105
|
+
"title": "Topic",
|
|
106
|
+
"description": "One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"actions",
|
|
110
|
+
"acknowledgements",
|
|
111
|
+
"joinRequests",
|
|
112
|
+
"members",
|
|
113
|
+
"singleAdminMode",
|
|
114
|
+
"config",
|
|
115
|
+
"rooms",
|
|
116
|
+
"directory",
|
|
117
|
+
"groups"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} as const;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
125
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
126
|
+
* per-specification and cannot be derived from the document alone, and
|
|
127
|
+
* item 2 needs the schema this carries.
|
|
128
|
+
*/
|
|
129
|
+
export const SPEC = {
|
|
130
|
+
typeUri: TYPE_URI,
|
|
131
|
+
isBearer: false,
|
|
132
|
+
isProofRequired: false,
|
|
133
|
+
isRecipientRequired: true,
|
|
134
|
+
isIssuedAtRequired: false,
|
|
135
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
136
|
+
} as const;
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/admin/events/subscribe/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, ResumeToken, Topic_VtcAdminEventsV0_3 as Topic } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Open an administrator console's live channel of hint-only events. The success response is the first document on a stream that then carries vtc/admin/events/event/0.3 documents; over HTTPS that stream is the streamed response of bindings/https/0.3 §2.1. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCAdminEventsSubscribePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The topics the console renders. The community narrows this to the topics the caller may read and reports the result as the response's `topics`.
|
|
15
|
+
*
|
|
16
|
+
* @minItems 1
|
|
17
|
+
* @maxItems 9
|
|
18
|
+
*/
|
|
19
|
+
topics:
|
|
20
|
+
| [Topic]
|
|
21
|
+
| [Topic, Topic]
|
|
22
|
+
| [Topic, Topic, Topic]
|
|
23
|
+
| [Topic, Topic, Topic, Topic]
|
|
24
|
+
| [Topic, Topic, Topic, Topic, Topic]
|
|
25
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic]
|
|
26
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic]
|
|
27
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic]
|
|
28
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic];
|
|
29
|
+
/**
|
|
30
|
+
* The last `resumeToken` the console received on an earlier stream, to resume from. A token the community does not recognise, has expired, or minted for another caller is not an error: the stream starts fresh and the response says `resumed: false`.
|
|
31
|
+
*/
|
|
32
|
+
since?: ResumeToken;
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The subscription as granted, sent as the first document on the stream. Failures use trust-task-error and open no stream.
|
|
37
|
+
*/
|
|
38
|
+
export interface VTCAdminEventsSubscribeResponsePayload {
|
|
39
|
+
/**
|
|
40
|
+
* The effective topics: those requested that the caller may read. The community sends events for these and no others. A requested topic missing here is one the caller may not read, and the console MUST NOT present it as live.
|
|
41
|
+
*
|
|
42
|
+
* @minItems 1
|
|
43
|
+
* @maxItems 9
|
|
44
|
+
*/
|
|
45
|
+
topics:
|
|
46
|
+
| [Topic]
|
|
47
|
+
| [Topic, Topic]
|
|
48
|
+
| [Topic, Topic, Topic]
|
|
49
|
+
| [Topic, Topic, Topic, Topic]
|
|
50
|
+
| [Topic, Topic, Topic, Topic, Topic]
|
|
51
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic]
|
|
52
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic]
|
|
53
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic]
|
|
54
|
+
| [Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic, Topic];
|
|
55
|
+
/**
|
|
56
|
+
* The longest the community lets the stream go without sending anything. Over HTTPS the heartbeat is an SSE comment. A console that receives nothing for twice this interval MUST treat the stream as dead.
|
|
57
|
+
*/
|
|
58
|
+
heartbeatSeconds: number;
|
|
59
|
+
/**
|
|
60
|
+
* `true` when the community recognised `since` and will send a hint for every effective topic that changed after it. `false` when no `since` was given or it could not be honoured; the console MUST then re-fetch every effective topic, because it may have missed changes.
|
|
61
|
+
*/
|
|
62
|
+
resumed: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The stream position as of this response, so that a console that disconnects before its first event still has a token to resume from.
|
|
65
|
+
*/
|
|
66
|
+
resumeToken: ResumeToken;
|
|
67
|
+
ext?: Ext;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
71
|
+
export type { Ext, ResumeToken, Topic };
|
|
72
|
+
|
|
73
|
+
/** Trust Task type URI. */
|
|
74
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.3" as const;
|
|
75
|
+
|
|
76
|
+
/** Stable alias for this specification's request payload shape. */
|
|
77
|
+
export type Payload = VTCAdminEventsSubscribePayload;
|
|
78
|
+
|
|
79
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
80
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.3#response" as const;
|
|
81
|
+
|
|
82
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
83
|
+
export type Response = VTCAdminEventsSubscribeResponsePayload;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This specification's payload schema, as a value.
|
|
87
|
+
*
|
|
88
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
89
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
90
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
91
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
92
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
93
|
+
*/
|
|
94
|
+
export const PAYLOAD_SCHEMA = {
|
|
95
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
96
|
+
"$id": "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.3",
|
|
97
|
+
"title": "VTC Admin Events — Subscribe — payload",
|
|
98
|
+
"description": "Open an administrator console's live channel of hint-only events. The success response is the first document on a stream that then carries vtc/admin/events/event/0.3 documents; over HTTPS that stream is the streamed response of bindings/https/0.3 §2.1. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"topics"
|
|
103
|
+
],
|
|
104
|
+
"properties": {
|
|
105
|
+
"topics": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"minItems": 1,
|
|
108
|
+
"maxItems": 9,
|
|
109
|
+
"uniqueItems": true,
|
|
110
|
+
"items": {
|
|
111
|
+
"$ref": "#/$defs/Topic"
|
|
112
|
+
},
|
|
113
|
+
"description": "The topics the console renders. The community narrows this to the topics the caller may read and reports the result as the response's `topics`."
|
|
114
|
+
},
|
|
115
|
+
"since": {
|
|
116
|
+
"$ref": "#/$defs/ResumeToken",
|
|
117
|
+
"description": "The last `resumeToken` the console received on an earlier stream, to resume from. A token the community does not recognise, has expired, or minted for another caller is not an error: the stream starts fresh and the response says `resumed: false`."
|
|
118
|
+
},
|
|
119
|
+
"ext": {
|
|
120
|
+
"$ref": "#/$defs/Ext"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"$defs": {
|
|
124
|
+
"Response": {
|
|
125
|
+
"$anchor": "response",
|
|
126
|
+
"title": "VTC Admin Events — Subscribe — response payload",
|
|
127
|
+
"description": "The subscription as granted, sent as the first document on the stream. Failures use trust-task-error and open no stream.",
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": false,
|
|
130
|
+
"required": [
|
|
131
|
+
"topics",
|
|
132
|
+
"heartbeatSeconds",
|
|
133
|
+
"resumed",
|
|
134
|
+
"resumeToken"
|
|
135
|
+
],
|
|
136
|
+
"properties": {
|
|
137
|
+
"topics": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"minItems": 1,
|
|
140
|
+
"maxItems": 9,
|
|
141
|
+
"uniqueItems": true,
|
|
142
|
+
"items": {
|
|
143
|
+
"$ref": "#/$defs/Topic"
|
|
144
|
+
},
|
|
145
|
+
"description": "The effective topics: those requested that the caller may read. The community sends events for these and no others. A requested topic missing here is one the caller may not read, and the console MUST NOT present it as live."
|
|
146
|
+
},
|
|
147
|
+
"heartbeatSeconds": {
|
|
148
|
+
"type": "integer",
|
|
149
|
+
"minimum": 5,
|
|
150
|
+
"maximum": 60,
|
|
151
|
+
"description": "The longest the community lets the stream go without sending anything. Over HTTPS the heartbeat is an SSE comment. A console that receives nothing for twice this interval MUST treat the stream as dead."
|
|
152
|
+
},
|
|
153
|
+
"resumed": {
|
|
154
|
+
"type": "boolean",
|
|
155
|
+
"description": "`true` when the community recognised `since` and will send a hint for every effective topic that changed after it. `false` when no `since` was given or it could not be honoured; the console MUST then re-fetch every effective topic, because it may have missed changes."
|
|
156
|
+
},
|
|
157
|
+
"resumeToken": {
|
|
158
|
+
"$ref": "#/$defs/ResumeToken",
|
|
159
|
+
"description": "The stream position as of this response, so that a console that disconnects before its first event still has a token to resume from."
|
|
160
|
+
},
|
|
161
|
+
"ext": {
|
|
162
|
+
"$ref": "#/$defs/Ext"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"Ext": {
|
|
167
|
+
"title": "Ext",
|
|
168
|
+
"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.",
|
|
169
|
+
"type": "object",
|
|
170
|
+
"minProperties": 1,
|
|
171
|
+
"additionalProperties": true,
|
|
172
|
+
"propertyNames": {
|
|
173
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"ResumeToken": {
|
|
177
|
+
"title": "ResumeToken",
|
|
178
|
+
"description": "Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1,
|
|
181
|
+
"maxLength": 256,
|
|
182
|
+
"pattern": "^[A-Za-z0-9._~-]+$"
|
|
183
|
+
},
|
|
184
|
+
"Topic": {
|
|
185
|
+
"title": "Topic",
|
|
186
|
+
"description": "One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": [
|
|
189
|
+
"actions",
|
|
190
|
+
"acknowledgements",
|
|
191
|
+
"joinRequests",
|
|
192
|
+
"members",
|
|
193
|
+
"singleAdminMode",
|
|
194
|
+
"config",
|
|
195
|
+
"rooms",
|
|
196
|
+
"directory",
|
|
197
|
+
"groups"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
} as const;
|
|
202
|
+
|
|
203
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
204
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
205
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
206
|
+
"$ref": "#/$defs/Response",
|
|
207
|
+
"$defs": {
|
|
208
|
+
"Response": {
|
|
209
|
+
"$anchor": "response",
|
|
210
|
+
"title": "VTC Admin Events — Subscribe — response payload",
|
|
211
|
+
"description": "The subscription as granted, sent as the first document on the stream. Failures use trust-task-error and open no stream.",
|
|
212
|
+
"type": "object",
|
|
213
|
+
"additionalProperties": false,
|
|
214
|
+
"required": [
|
|
215
|
+
"topics",
|
|
216
|
+
"heartbeatSeconds",
|
|
217
|
+
"resumed",
|
|
218
|
+
"resumeToken"
|
|
219
|
+
],
|
|
220
|
+
"properties": {
|
|
221
|
+
"topics": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"minItems": 1,
|
|
224
|
+
"maxItems": 9,
|
|
225
|
+
"uniqueItems": true,
|
|
226
|
+
"items": {
|
|
227
|
+
"$ref": "#/$defs/Topic"
|
|
228
|
+
},
|
|
229
|
+
"description": "The effective topics: those requested that the caller may read. The community sends events for these and no others. A requested topic missing here is one the caller may not read, and the console MUST NOT present it as live."
|
|
230
|
+
},
|
|
231
|
+
"heartbeatSeconds": {
|
|
232
|
+
"type": "integer",
|
|
233
|
+
"minimum": 5,
|
|
234
|
+
"maximum": 60,
|
|
235
|
+
"description": "The longest the community lets the stream go without sending anything. Over HTTPS the heartbeat is an SSE comment. A console that receives nothing for twice this interval MUST treat the stream as dead."
|
|
236
|
+
},
|
|
237
|
+
"resumed": {
|
|
238
|
+
"type": "boolean",
|
|
239
|
+
"description": "`true` when the community recognised `since` and will send a hint for every effective topic that changed after it. `false` when no `since` was given or it could not be honoured; the console MUST then re-fetch every effective topic, because it may have missed changes."
|
|
240
|
+
},
|
|
241
|
+
"resumeToken": {
|
|
242
|
+
"$ref": "#/$defs/ResumeToken",
|
|
243
|
+
"description": "The stream position as of this response, so that a console that disconnects before its first event still has a token to resume from."
|
|
244
|
+
},
|
|
245
|
+
"ext": {
|
|
246
|
+
"$ref": "#/$defs/Ext"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"Ext": {
|
|
251
|
+
"title": "Ext",
|
|
252
|
+
"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.",
|
|
253
|
+
"type": "object",
|
|
254
|
+
"minProperties": 1,
|
|
255
|
+
"additionalProperties": true,
|
|
256
|
+
"propertyNames": {
|
|
257
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"ResumeToken": {
|
|
261
|
+
"title": "ResumeToken",
|
|
262
|
+
"description": "Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.",
|
|
263
|
+
"type": "string",
|
|
264
|
+
"minLength": 1,
|
|
265
|
+
"maxLength": 256,
|
|
266
|
+
"pattern": "^[A-Za-z0-9._~-]+$"
|
|
267
|
+
},
|
|
268
|
+
"Topic": {
|
|
269
|
+
"title": "Topic",
|
|
270
|
+
"description": "One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.",
|
|
271
|
+
"type": "string",
|
|
272
|
+
"enum": [
|
|
273
|
+
"actions",
|
|
274
|
+
"acknowledgements",
|
|
275
|
+
"joinRequests",
|
|
276
|
+
"members",
|
|
277
|
+
"singleAdminMode",
|
|
278
|
+
"config",
|
|
279
|
+
"rooms",
|
|
280
|
+
"directory",
|
|
281
|
+
"groups"
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
} as const;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
289
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
290
|
+
* per-specification and cannot be derived from the document alone, and
|
|
291
|
+
* item 2 needs the schema this carries.
|
|
292
|
+
*/
|
|
293
|
+
export const SPEC = {
|
|
294
|
+
typeUri: TYPE_URI,
|
|
295
|
+
isBearer: false,
|
|
296
|
+
isProofRequired: true,
|
|
297
|
+
isRecipientRequired: true,
|
|
298
|
+
isIssuedAtRequired: true,
|
|
299
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
300
|
+
} as const;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
304
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
305
|
+
* parties (§7.3 item 5).
|
|
306
|
+
*/
|
|
307
|
+
export const RESPONSE_SPEC = {
|
|
308
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
309
|
+
isBearer: false,
|
|
310
|
+
isProofRequired: false,
|
|
311
|
+
isRecipientRequired: true,
|
|
312
|
+
isIssuedAtRequired: true,
|
|
313
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
314
|
+
} as const;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/_shared/0.1/admin-note.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A community's administrative notes about a member. A separate record type from the card: an admin note is never on a card, never in any projection, and never shown to another member, whatever policy returns. Notes are append-only: an entry is never edited, and is withdrawn only by a later entry that redacts it. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface AdminNoteSharedDefinitionsForTheVtcDirectoryNotesTasks {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { AdminNote, NoteId, NoteText } from "../../../../_shared/components.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/_shared/0.1/directory-card.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Verifiable Trust Community's member directory: the card a member keeps about themselves, the projection of it another caller is shown, and the identifiers and audiences both are built from. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*
|
|
9
|
+
* THREE OWNERS. The community owns the field schema (`field-definition.schema.json`). The member owns their card: its values, a visibility per field, and their discoverability. The viewer owns what they think of others — stars, personal lists, private notes, petnames — and none of that is defined here, because none of it is stored by the community.
|
|
10
|
+
*
|
|
11
|
+
* PROJECTION. Another caller never reads a card; they read a projection of it. A field leaves the community only where all three hold: the visibility the MEMBER chose covers the viewer, the community's CEILING for the field covers the viewer, and the community's directory policy permits it. The three are intersected, never unioned. A withheld field is ABSENT from a projection, never present-and-null, and a subject with nothing visible is indistinguishable from no subject.
|
|
12
|
+
*
|
|
13
|
+
* NO DID IS NEEDED. Entries are addressed by `EntryId`, which is not derived from and does not reveal any DID of the member. Showing the member's DID is a field (`did`) like any other.
|
|
14
|
+
*/
|
|
15
|
+
export interface DirectoryCardSharedDefinitionsForTheVtcDirectorySpecFamily {
|
|
16
|
+
[k: string]: unknown | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
21
|
+
* See "../../../../_shared/components.js".
|
|
22
|
+
*/
|
|
23
|
+
export type { Audience, CardBlobRef, CardValues, DirectoryCard, DirectoryEntry, Discoverability, EntryFields, EntryId, FieldKey, FieldValue, FieldVisibility, Introductions, JSContactCard, Listing, VerifiedValue } from "../../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/_shared/0.1/field-definition.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The community's directory schema, one definition per field: what the field is, who writes its value, the widest audience it may ever reach (`ceiling`), the audience a new card gives it (`defaultVisibility`), and whether it is searchable or a facet. Every community has the same base fields, which it may disable and whose ceilings it may change; administrators define more. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface FieldDefinitionSharedDefinitionsForTheVtcDirectoryFieldsTasks {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { ClaimSelector, EnumOption, FieldConstraints, FieldDefinition, FieldDescription, FieldInput, FieldLabel, FieldSource, FieldState, FieldType, ListingDefaults } from "../../../../_shared/components.js";
|