@openvtc/trust-tasks 0.26.17 → 0.26.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +222 -0
- package/dist/_shared/components.d.ts +867 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
- package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
- package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.2/payload.js +140 -0
- package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.js +468 -0
- package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.js +140 -0
- package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +2 -0
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +2 -0
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +2 -0
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +2 -0
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +61 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
- package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
- package/dist/keys/sign-document/0.1/payload.js +341 -0
- package/dist/keys/sign-document/0.1/payload.js.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
- package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
- package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.1/payload.js +804 -0
- package/dist/persona/contact/get/1.1/payload.js.map +1 -0
- package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.1/payload.js +417 -0
- package/dist/persona/contact/list/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
- package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
- package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.1/payload.js +850 -0
- package/dist/persona/contact/put/1.1/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.1/payload.js +12 -2
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +12 -2
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/owner/group/add/0.3/payload.d.ts +417 -0
- package/dist/rooms/owner/group/add/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/add/0.3/payload.js +218 -0
- package/dist/rooms/owner/group/add/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/group/renew/0.2/payload.d.ts +299 -0
- package/dist/rooms/owner/group/renew/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/renew/0.2/payload.js +163 -0
- package/dist/rooms/owner/group/renew/0.2/payload.js.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.js +335 -0
- package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.1/payload.js +12 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +12 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.1/payload.js +12 -2
- package/dist/rooms/records/put/0.1/payload.js.map +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.2/payload.js +12 -2
- package/dist/rooms/records/put/0.2/payload.js.map +1 -1
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
- package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts +18 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.js +6 -0
- package/dist/vtc/directory/_shared/0.1/disclosure-statement.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/public/0.1/payload.d.ts +348 -0
- package/dist/vtc/directory/card/public/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/public/0.1/payload.js +197 -0
- package/dist/vtc/directory/card/public/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/publish/0.1/payload.d.ts +384 -0
- package/dist/vtc/directory/card/publish/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/publish/0.1/payload.js +222 -0
- package/dist/vtc/directory/card/publish/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts +1276 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.js +775 -0
- package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts +1423 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.js +845 -0
- package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/disclosure/0.1/payload.d.ts +951 -0
- package/dist/vtc/directory/disclosure/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/disclosure/0.1/payload.js +613 -0
- package/dist/vtc/directory/disclosure/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.js +192 -0
- package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/images/get/0.1/payload.d.ts +484 -0
- package/dist/vtc/directory/images/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/images/get/0.1/payload.js +273 -0
- package/dist/vtc/directory/images/get/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/images/upload/0.1/payload.d.ts +441 -0
- package/dist/vtc/directory/images/upload/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/images/upload/0.1/payload.js +262 -0
- package/dist/vtc/directory/images/upload/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
- package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
- package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.js +6 -0
- package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.js +631 -0
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.js +182 -0
- package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.js +758 -0
- package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.js +179 -0
- package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.js +674 -0
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
- package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
- package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.js +619 -0
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.js +633 -0
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.d.ts +2303 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.js +1293 -0
- package/dist/vtc/join-requests/manifest/0.4/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +912 -1
- package/src/auth/oob/_shared/0.1/oob.ts +1 -1
- package/src/auth/oob/grant/0.2/payload.ts +186 -0
- package/src/auth/oob/prove/0.2/payload.ts +523 -0
- package/src/auth/oob/respond/0.2/payload.ts +178 -0
- package/src/device/list/0.1/payload.ts +2 -0
- package/src/device/list/0.2/payload.ts +2 -0
- package/src/device/register/0.1/payload.ts +2 -0
- package/src/device/register/0.2/payload.ts +2 -0
- package/src/index.ts +61 -0
- package/src/keys/sign-document/0.1/payload.ts +437 -0
- package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
- package/src/persona/contact/get/1.1/payload.ts +876 -0
- package/src/persona/contact/list/1.1/payload.ts +497 -0
- package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
- package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
- package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
- package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
- package/src/persona/contact/put/1.1/payload.ts +958 -0
- package/src/rooms/keys/seal/0.1/payload.ts +12 -2
- package/src/rooms/keys/seal/0.2/payload.ts +12 -2
- package/src/rooms/owner/group/add/0.3/payload.ts +288 -0
- package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
- package/src/rooms/owner/group/renew/0.2/payload.ts +213 -0
- package/src/rooms/owner/register/0.2/payload.ts +415 -0
- package/src/rooms/records/get/0.1/payload.ts +12 -2
- package/src/rooms/records/get/0.2/payload.ts +12 -2
- package/src/rooms/records/put/0.1/payload.ts +12 -2
- package/src/rooms/records/put/0.2/payload.ts +12 -2
- package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
- package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
- package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
- package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
- package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
- package/src/vtc/directory/_shared/0.1/disclosure-statement.ts +19 -0
- package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
- package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
- package/src/vtc/directory/card/public/0.1/payload.ts +238 -0
- package/src/vtc/directory/card/publish/0.1/payload.ts +261 -0
- package/src/vtc/directory/card/show/0.1/payload.ts +812 -0
- package/src/vtc/directory/card/update/0.1/payload.ts +907 -0
- package/src/vtc/directory/disclosure/0.1/payload.ts +645 -0
- package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
- package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
- package/src/vtc/directory/export/0.1/payload.ts +241 -0
- package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
- package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
- package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
- package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
- package/src/vtc/directory/images/get/0.1/payload.ts +320 -0
- package/src/vtc/directory/images/upload/0.1/payload.ts +308 -0
- package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
- package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
- package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
- package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
- package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
- package/src/vtc/groups/_shared/0.1/group.ts +23 -0
- package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
- package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
- package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
- package/src/vtc/groups/create/0.1/payload.ts +683 -0
- package/src/vtc/groups/delete/0.1/payload.ts +224 -0
- package/src/vtc/groups/join/0.1/payload.ts +807 -0
- package/src/vtc/groups/leave/0.1/payload.ts +219 -0
- package/src/vtc/groups/list/0.1/payload.ts +728 -0
- package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
- package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
- package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
- package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
- package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
- package/src/vtc/groups/show/0.1/payload.ts +652 -0
- package/src/vtc/groups/update/0.1/payload.ts +682 -0
- package/src/vtc/join-requests/manifest/0.4/payload.ts +1490 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/card/present/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, FieldKey, VerifiedValue } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A member presents a credential so the community can fill credential-sourced directory fields with the disclosed claims, badged with their issuer; the community keeps the claims, never the presentation. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCDirectoryCardPresentPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The `credential`-sourced fields this presentation answers.
|
|
15
|
+
*
|
|
16
|
+
* @minItems 1
|
|
17
|
+
* @maxItems 16
|
|
18
|
+
*/
|
|
19
|
+
fields:
|
|
20
|
+
| [FieldKey]
|
|
21
|
+
| [FieldKey, FieldKey]
|
|
22
|
+
| [FieldKey, FieldKey, FieldKey]
|
|
23
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey]
|
|
24
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
25
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
26
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
27
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
28
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
29
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
30
|
+
| [FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey, FieldKey]
|
|
31
|
+
| [
|
|
32
|
+
FieldKey,
|
|
33
|
+
FieldKey,
|
|
34
|
+
FieldKey,
|
|
35
|
+
FieldKey,
|
|
36
|
+
FieldKey,
|
|
37
|
+
FieldKey,
|
|
38
|
+
FieldKey,
|
|
39
|
+
FieldKey,
|
|
40
|
+
FieldKey,
|
|
41
|
+
FieldKey,
|
|
42
|
+
FieldKey,
|
|
43
|
+
FieldKey
|
|
44
|
+
]
|
|
45
|
+
| [
|
|
46
|
+
FieldKey,
|
|
47
|
+
FieldKey,
|
|
48
|
+
FieldKey,
|
|
49
|
+
FieldKey,
|
|
50
|
+
FieldKey,
|
|
51
|
+
FieldKey,
|
|
52
|
+
FieldKey,
|
|
53
|
+
FieldKey,
|
|
54
|
+
FieldKey,
|
|
55
|
+
FieldKey,
|
|
56
|
+
FieldKey,
|
|
57
|
+
FieldKey,
|
|
58
|
+
FieldKey
|
|
59
|
+
]
|
|
60
|
+
| [
|
|
61
|
+
FieldKey,
|
|
62
|
+
FieldKey,
|
|
63
|
+
FieldKey,
|
|
64
|
+
FieldKey,
|
|
65
|
+
FieldKey,
|
|
66
|
+
FieldKey,
|
|
67
|
+
FieldKey,
|
|
68
|
+
FieldKey,
|
|
69
|
+
FieldKey,
|
|
70
|
+
FieldKey,
|
|
71
|
+
FieldKey,
|
|
72
|
+
FieldKey,
|
|
73
|
+
FieldKey,
|
|
74
|
+
FieldKey
|
|
75
|
+
]
|
|
76
|
+
| [
|
|
77
|
+
FieldKey,
|
|
78
|
+
FieldKey,
|
|
79
|
+
FieldKey,
|
|
80
|
+
FieldKey,
|
|
81
|
+
FieldKey,
|
|
82
|
+
FieldKey,
|
|
83
|
+
FieldKey,
|
|
84
|
+
FieldKey,
|
|
85
|
+
FieldKey,
|
|
86
|
+
FieldKey,
|
|
87
|
+
FieldKey,
|
|
88
|
+
FieldKey,
|
|
89
|
+
FieldKey,
|
|
90
|
+
FieldKey,
|
|
91
|
+
FieldKey
|
|
92
|
+
]
|
|
93
|
+
| [
|
|
94
|
+
FieldKey,
|
|
95
|
+
FieldKey,
|
|
96
|
+
FieldKey,
|
|
97
|
+
FieldKey,
|
|
98
|
+
FieldKey,
|
|
99
|
+
FieldKey,
|
|
100
|
+
FieldKey,
|
|
101
|
+
FieldKey,
|
|
102
|
+
FieldKey,
|
|
103
|
+
FieldKey,
|
|
104
|
+
FieldKey,
|
|
105
|
+
FieldKey,
|
|
106
|
+
FieldKey,
|
|
107
|
+
FieldKey,
|
|
108
|
+
FieldKey,
|
|
109
|
+
FieldKey
|
|
110
|
+
];
|
|
111
|
+
presentation: {} | string;
|
|
112
|
+
/**
|
|
113
|
+
* Optional: also clear any named field the presentation does not answer. Absent: false.
|
|
114
|
+
*/
|
|
115
|
+
clear?: boolean;
|
|
116
|
+
ext?: Ext;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The success response to a vtc/directory/card/present/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/present/0.1#response.
|
|
120
|
+
*/
|
|
121
|
+
export interface VTCDirectoryCardPresentResponsePayload {
|
|
122
|
+
/**
|
|
123
|
+
* The values now on the card, keyed by field.
|
|
124
|
+
*/
|
|
125
|
+
verified: {
|
|
126
|
+
[k: string]: VerifiedValue | undefined;
|
|
127
|
+
};
|
|
128
|
+
revision: number;
|
|
129
|
+
ext?: Ext;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
133
|
+
export type { Ext, FieldKey, VerifiedValue };
|
|
134
|
+
|
|
135
|
+
/** Trust Task type URI. */
|
|
136
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/present/0.1" as const;
|
|
137
|
+
|
|
138
|
+
/** Stable alias for this specification's request payload shape. */
|
|
139
|
+
export type Payload = VTCDirectoryCardPresentPayload;
|
|
140
|
+
|
|
141
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
142
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/present/0.1#response" as const;
|
|
143
|
+
|
|
144
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
145
|
+
export type Response = VTCDirectoryCardPresentResponsePayload;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* This specification's payload schema, as a value.
|
|
149
|
+
*
|
|
150
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
151
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
152
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
153
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
154
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
155
|
+
*/
|
|
156
|
+
export const PAYLOAD_SCHEMA = {
|
|
157
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
158
|
+
"$id": "https://trusttasks.org/spec/vtc/directory/card/present/0.1",
|
|
159
|
+
"title": "VTC Directory — Card — Present — payload",
|
|
160
|
+
"description": "A member presents a credential so the community can fill credential-sourced directory fields with the disclosed claims, badged with their issuer; the community keeps the claims, never the presentation. The outer document members are owned by the framework — SPEC §6.3.",
|
|
161
|
+
"type": "object",
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"required": [
|
|
164
|
+
"fields",
|
|
165
|
+
"presentation"
|
|
166
|
+
],
|
|
167
|
+
"properties": {
|
|
168
|
+
"fields": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"minItems": 1,
|
|
171
|
+
"maxItems": 16,
|
|
172
|
+
"uniqueItems": true,
|
|
173
|
+
"items": {
|
|
174
|
+
"$ref": "#/$defs/FieldKey"
|
|
175
|
+
},
|
|
176
|
+
"description": "The `credential`-sourced fields this presentation answers."
|
|
177
|
+
},
|
|
178
|
+
"presentation": {
|
|
179
|
+
"anyOf": [
|
|
180
|
+
{
|
|
181
|
+
"type": "object",
|
|
182
|
+
"description": "A W3C Verifiable Presentation with a Data Integrity proof whose `challenge` is this document's `id` and whose `domain` is the community's DID."
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1,
|
|
187
|
+
"maxLength": 65536,
|
|
188
|
+
"description": "A compact presentation (an SD-JWT with a key-binding JWT whose `nonce` is this document's `id` and `aud` the community's DID)."
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"clear": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "Optional: also clear any named field the presentation does not answer. Absent: false."
|
|
195
|
+
},
|
|
196
|
+
"ext": {
|
|
197
|
+
"$ref": "#/$defs/Ext"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"$defs": {
|
|
201
|
+
"Response": {
|
|
202
|
+
"$anchor": "response",
|
|
203
|
+
"title": "VTC Directory — Card — Present — response payload",
|
|
204
|
+
"description": "The success response to a vtc/directory/card/present/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/present/0.1#response.",
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"required": [
|
|
208
|
+
"verified",
|
|
209
|
+
"revision"
|
|
210
|
+
],
|
|
211
|
+
"properties": {
|
|
212
|
+
"verified": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"maxProperties": 16,
|
|
215
|
+
"propertyNames": {
|
|
216
|
+
"$ref": "#/$defs/FieldKey"
|
|
217
|
+
},
|
|
218
|
+
"additionalProperties": {
|
|
219
|
+
"$ref": "#/$defs/VerifiedValue"
|
|
220
|
+
},
|
|
221
|
+
"description": "The values now on the card, keyed by field."
|
|
222
|
+
},
|
|
223
|
+
"revision": {
|
|
224
|
+
"type": "integer",
|
|
225
|
+
"minimum": 0
|
|
226
|
+
},
|
|
227
|
+
"ext": {
|
|
228
|
+
"$ref": "#/$defs/Ext"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"Ext": {
|
|
233
|
+
"title": "Ext",
|
|
234
|
+
"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.",
|
|
235
|
+
"type": "object",
|
|
236
|
+
"minProperties": 1,
|
|
237
|
+
"additionalProperties": true,
|
|
238
|
+
"propertyNames": {
|
|
239
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"VerifiedValue": {
|
|
243
|
+
"title": "VerifiedValue",
|
|
244
|
+
"description": "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.",
|
|
245
|
+
"type": "object",
|
|
246
|
+
"additionalProperties": false,
|
|
247
|
+
"required": [
|
|
248
|
+
"value",
|
|
249
|
+
"issuer",
|
|
250
|
+
"verifiedAt"
|
|
251
|
+
],
|
|
252
|
+
"properties": {
|
|
253
|
+
"value": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "string",
|
|
257
|
+
"maxLength": 2000
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "boolean"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "number"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"description": "The disclosed claim value."
|
|
267
|
+
},
|
|
268
|
+
"issuer": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"pattern": "^did:",
|
|
271
|
+
"maxLength": 2048,
|
|
272
|
+
"description": "DID of the credential's issuer, shown as the field's verification badge."
|
|
273
|
+
},
|
|
274
|
+
"credentialType": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"minLength": 1,
|
|
277
|
+
"maxLength": 128,
|
|
278
|
+
"description": "The most specific `type` of the credential the claim came from."
|
|
279
|
+
},
|
|
280
|
+
"verifiedAt": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"format": "date-time",
|
|
283
|
+
"description": "When the community verified the presentation."
|
|
284
|
+
},
|
|
285
|
+
"validUntil": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"format": "date-time",
|
|
288
|
+
"description": "When the credential expires, where it does. The community withdraws the value once it passes."
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"FieldKey": {
|
|
293
|
+
"title": "FieldKey",
|
|
294
|
+
"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.",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"minLength": 1,
|
|
297
|
+
"maxLength": 128,
|
|
298
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
} as const;
|
|
302
|
+
|
|
303
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
304
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
305
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
306
|
+
"$ref": "#/$defs/Response",
|
|
307
|
+
"$defs": {
|
|
308
|
+
"Response": {
|
|
309
|
+
"$anchor": "response",
|
|
310
|
+
"title": "VTC Directory — Card — Present — response payload",
|
|
311
|
+
"description": "The success response to a vtc/directory/card/present/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/present/0.1#response.",
|
|
312
|
+
"type": "object",
|
|
313
|
+
"additionalProperties": false,
|
|
314
|
+
"required": [
|
|
315
|
+
"verified",
|
|
316
|
+
"revision"
|
|
317
|
+
],
|
|
318
|
+
"properties": {
|
|
319
|
+
"verified": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"maxProperties": 16,
|
|
322
|
+
"propertyNames": {
|
|
323
|
+
"$ref": "#/$defs/FieldKey"
|
|
324
|
+
},
|
|
325
|
+
"additionalProperties": {
|
|
326
|
+
"$ref": "#/$defs/VerifiedValue"
|
|
327
|
+
},
|
|
328
|
+
"description": "The values now on the card, keyed by field."
|
|
329
|
+
},
|
|
330
|
+
"revision": {
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"minimum": 0
|
|
333
|
+
},
|
|
334
|
+
"ext": {
|
|
335
|
+
"$ref": "#/$defs/Ext"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"Ext": {
|
|
340
|
+
"title": "Ext",
|
|
341
|
+
"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.",
|
|
342
|
+
"type": "object",
|
|
343
|
+
"minProperties": 1,
|
|
344
|
+
"additionalProperties": true,
|
|
345
|
+
"propertyNames": {
|
|
346
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"VerifiedValue": {
|
|
350
|
+
"title": "VerifiedValue",
|
|
351
|
+
"description": "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.",
|
|
352
|
+
"type": "object",
|
|
353
|
+
"additionalProperties": false,
|
|
354
|
+
"required": [
|
|
355
|
+
"value",
|
|
356
|
+
"issuer",
|
|
357
|
+
"verifiedAt"
|
|
358
|
+
],
|
|
359
|
+
"properties": {
|
|
360
|
+
"value": {
|
|
361
|
+
"anyOf": [
|
|
362
|
+
{
|
|
363
|
+
"type": "string",
|
|
364
|
+
"maxLength": 2000
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"type": "boolean"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "number"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"description": "The disclosed claim value."
|
|
374
|
+
},
|
|
375
|
+
"issuer": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"pattern": "^did:",
|
|
378
|
+
"maxLength": 2048,
|
|
379
|
+
"description": "DID of the credential's issuer, shown as the field's verification badge."
|
|
380
|
+
},
|
|
381
|
+
"credentialType": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"minLength": 1,
|
|
384
|
+
"maxLength": 128,
|
|
385
|
+
"description": "The most specific `type` of the credential the claim came from."
|
|
386
|
+
},
|
|
387
|
+
"verifiedAt": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"format": "date-time",
|
|
390
|
+
"description": "When the community verified the presentation."
|
|
391
|
+
},
|
|
392
|
+
"validUntil": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"format": "date-time",
|
|
395
|
+
"description": "When the credential expires, where it does. The community withdraws the value once it passes."
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"FieldKey": {
|
|
400
|
+
"title": "FieldKey",
|
|
401
|
+
"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.",
|
|
402
|
+
"type": "string",
|
|
403
|
+
"minLength": 1,
|
|
404
|
+
"maxLength": 128,
|
|
405
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
} as const;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
412
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
413
|
+
* per-specification and cannot be derived from the document alone, and
|
|
414
|
+
* item 2 needs the schema this carries.
|
|
415
|
+
*/
|
|
416
|
+
export const SPEC = {
|
|
417
|
+
typeUri: TYPE_URI,
|
|
418
|
+
isBearer: false,
|
|
419
|
+
isProofRequired: true,
|
|
420
|
+
isRecipientRequired: true,
|
|
421
|
+
isIssuedAtRequired: true,
|
|
422
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
423
|
+
} as const;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
427
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
428
|
+
* parties (§7.3 item 5).
|
|
429
|
+
*/
|
|
430
|
+
export const RESPONSE_SPEC = {
|
|
431
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
432
|
+
isBearer: false,
|
|
433
|
+
isProofRequired: true,
|
|
434
|
+
isRecipientRequired: true,
|
|
435
|
+
isIssuedAtRequired: true,
|
|
436
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
437
|
+
} as const;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/directory/card/public/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { DigestMultibase, EntryId, Ext, PublishedCard } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCDirectoryCardPublicPayload {
|
|
13
|
+
entryId: EntryId;
|
|
14
|
+
/**
|
|
15
|
+
* The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`.
|
|
16
|
+
*/
|
|
17
|
+
cardDigest?: DigestMultibase;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.
|
|
22
|
+
*/
|
|
23
|
+
export interface VTCDirectoryCardPublicResponsePayload {
|
|
24
|
+
/**
|
|
25
|
+
* Exactly as the member signed it.
|
|
26
|
+
*/
|
|
27
|
+
card: PublishedCard;
|
|
28
|
+
cardDigest: DigestMultibase;
|
|
29
|
+
publishedAt: string;
|
|
30
|
+
ext?: Ext;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
34
|
+
export type { DigestMultibase, EntryId, Ext, PublishedCard };
|
|
35
|
+
|
|
36
|
+
/** Trust Task type URI. */
|
|
37
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/public/0.1" as const;
|
|
38
|
+
|
|
39
|
+
/** Stable alias for this specification's request payload shape. */
|
|
40
|
+
export type Payload = VTCDirectoryCardPublicPayload;
|
|
41
|
+
|
|
42
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
43
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/directory/card/public/0.1#response" as const;
|
|
44
|
+
|
|
45
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
46
|
+
export type Response = VTCDirectoryCardPublicResponsePayload;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* This specification's payload schema, as a value.
|
|
50
|
+
*
|
|
51
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
52
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
53
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
54
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
55
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
56
|
+
*/
|
|
57
|
+
export const PAYLOAD_SCHEMA = {
|
|
58
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
59
|
+
"$id": "https://trusttasks.org/spec/vtc/directory/card/public/0.1",
|
|
60
|
+
"title": "VTC Directory — Card — Public — payload",
|
|
61
|
+
"description": "Read a member's external card, as they signed it. Anyone may ask; the request carries nothing about the reader. The outer document members are owned by the framework — SPEC §6.3.",
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": [
|
|
65
|
+
"entryId"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"entryId": {
|
|
69
|
+
"$ref": "#/$defs/EntryId"
|
|
70
|
+
},
|
|
71
|
+
"cardDigest": {
|
|
72
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
73
|
+
"description": "The card the reader expects, from a registry pointer. Where the card served now is another, the answer is `notFound`."
|
|
74
|
+
},
|
|
75
|
+
"ext": {
|
|
76
|
+
"$ref": "#/$defs/Ext"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"$defs": {
|
|
80
|
+
"Response": {
|
|
81
|
+
"$anchor": "response",
|
|
82
|
+
"title": "VTC Directory — Card — Public — response payload",
|
|
83
|
+
"description": "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.",
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": [
|
|
87
|
+
"card",
|
|
88
|
+
"cardDigest",
|
|
89
|
+
"publishedAt"
|
|
90
|
+
],
|
|
91
|
+
"properties": {
|
|
92
|
+
"card": {
|
|
93
|
+
"$ref": "#/$defs/PublishedCard",
|
|
94
|
+
"description": "Exactly as the member signed it."
|
|
95
|
+
},
|
|
96
|
+
"cardDigest": {
|
|
97
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
98
|
+
},
|
|
99
|
+
"publishedAt": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"format": "date-time"
|
|
102
|
+
},
|
|
103
|
+
"ext": {
|
|
104
|
+
"$ref": "#/$defs/Ext"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"Ext": {
|
|
109
|
+
"title": "Ext",
|
|
110
|
+
"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.",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"minProperties": 1,
|
|
113
|
+
"additionalProperties": true,
|
|
114
|
+
"propertyNames": {
|
|
115
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"DigestMultibase": {
|
|
119
|
+
"title": "DigestMultibase",
|
|
120
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 16,
|
|
123
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
124
|
+
"examples": [
|
|
125
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"PublishedCard": {
|
|
129
|
+
"title": "PublishedCard",
|
|
130
|
+
"description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": true
|
|
133
|
+
},
|
|
134
|
+
"EntryId": {
|
|
135
|
+
"title": "EntryId",
|
|
136
|
+
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} as const;
|
|
142
|
+
|
|
143
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
144
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
145
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
146
|
+
"$ref": "#/$defs/Response",
|
|
147
|
+
"$defs": {
|
|
148
|
+
"Response": {
|
|
149
|
+
"$anchor": "response",
|
|
150
|
+
"title": "VTC Directory — Card — Public — response payload",
|
|
151
|
+
"description": "The success response to a vtc/directory/card/public/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/directory/card/public/0.1#response.",
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": [
|
|
155
|
+
"card",
|
|
156
|
+
"cardDigest",
|
|
157
|
+
"publishedAt"
|
|
158
|
+
],
|
|
159
|
+
"properties": {
|
|
160
|
+
"card": {
|
|
161
|
+
"$ref": "#/$defs/PublishedCard",
|
|
162
|
+
"description": "Exactly as the member signed it."
|
|
163
|
+
},
|
|
164
|
+
"cardDigest": {
|
|
165
|
+
"$ref": "#/$defs/DigestMultibase"
|
|
166
|
+
},
|
|
167
|
+
"publishedAt": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"format": "date-time"
|
|
170
|
+
},
|
|
171
|
+
"ext": {
|
|
172
|
+
"$ref": "#/$defs/Ext"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"Ext": {
|
|
177
|
+
"title": "Ext",
|
|
178
|
+
"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.",
|
|
179
|
+
"type": "object",
|
|
180
|
+
"minProperties": 1,
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"propertyNames": {
|
|
183
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"DigestMultibase": {
|
|
187
|
+
"title": "DigestMultibase",
|
|
188
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 16,
|
|
191
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
192
|
+
"examples": [
|
|
193
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"PublishedCard": {
|
|
197
|
+
"title": "PublishedCard",
|
|
198
|
+
"description": "A member's external card: a JSContact `Card` (RFC 9553) holding exactly their values whose visibility is `public`, mapped as `JSContactCard` maps them, with the member's W3C Data Integrity `proof`. The community serves it as received and never signs, composes or edits it (VTI-REG-004 item 4).\n\nCarried as an open object, and deliberately so: the proof covers every member of the card, and a typed binding that kept only the members named here would drop the rest and break the signature. So this schema constrains none of its members, and a consumer MUST check them itself: `@type`, `version`, `uid` and `proof` are present; `@type` is `Card`; `version` is `1.0`; `uid` is `urn:vtc-directory:<EntryId>`; `proof` is a `DataIntegrityProof` with `cryptosuite` `eddsa-jcs-2022` or `ecdsa-jcs-2019`, `proofPurpose` `assertionMethod`, and a `verificationMethod` of the member's membership DID authorized for `assertionMethod`; and the proof verifies over the card without it, before any member is relied on.",
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": true
|
|
201
|
+
},
|
|
202
|
+
"EntryId": {
|
|
203
|
+
"title": "EntryId",
|
|
204
|
+
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
205
|
+
"type": "string",
|
|
206
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
} as const;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
213
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
214
|
+
* per-specification and cannot be derived from the document alone, and
|
|
215
|
+
* item 2 needs the schema this carries.
|
|
216
|
+
*/
|
|
217
|
+
export const SPEC = {
|
|
218
|
+
typeUri: TYPE_URI,
|
|
219
|
+
isBearer: false,
|
|
220
|
+
isProofRequired: false,
|
|
221
|
+
isRecipientRequired: true,
|
|
222
|
+
isIssuedAtRequired: false,
|
|
223
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
224
|
+
} as const;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
228
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
229
|
+
* parties (§7.3 item 5).
|
|
230
|
+
*/
|
|
231
|
+
export const RESPONSE_SPEC = {
|
|
232
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
233
|
+
isBearer: false,
|
|
234
|
+
isProofRequired: false,
|
|
235
|
+
isRecipientRequired: true,
|
|
236
|
+
isIssuedAtRequired: false,
|
|
237
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
238
|
+
} as const;
|