@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,958 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/contact/put/1.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ClaimType, ContactDocument, DirectoryEntryId, DirectoryRef, Ext, ListId, ListIds, Petname, ProofRung, Provenance, Ulid, ValueType } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* File what a peer disclosed, or change the holder's own annotations on a contact, or both. Two forms. FILING (`subjectDid`, `knownByPersona`, `document`; no `contactId`) appends a revision, never overwrites, so a changed value is visible as a change rather than arriving silently — exactly as 1.0. ANNOTATING (`contactId`; no `subjectDid`, `knownByPersona`, `document` or `credentialRefs`) changes the holder's star, petname, lists, directory link or notes on an existing contact and appends no revision. In either form each annotation given replaces the stored one, each `removeX` removes one, and each annotation absent is unchanged. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export type PersonaContactPutPayload = {
|
|
13
|
+
contextId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Annotating form only: the existing contact whose annotations change. A filing never names one — the agent keys a filing on (contextId, subjectDid, knownByPersona) as in 1.0.
|
|
16
|
+
*/
|
|
17
|
+
contactId?: Ulid;
|
|
18
|
+
/**
|
|
19
|
+
* Filing form only. The DID the document is about, as disclosed. Normally pairwise, so it names this relationship and not the person across all of theirs.
|
|
20
|
+
*/
|
|
21
|
+
subjectDid?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Filing form only. Which of the holder's personas knows this contact. A contact belongs to the relationship, not to the holder at large — the same peer met through two personas is two contacts, and collapsing them would correlate the holder's own personas in their own address book.
|
|
24
|
+
*/
|
|
25
|
+
knownByPersona?: string;
|
|
26
|
+
document?: ContactDocument;
|
|
27
|
+
/**
|
|
28
|
+
* Filing form only. Vault identifiers of credentials the peer presented alongside the document. The credentials themselves belong in the credential vault and the contact holds references.
|
|
29
|
+
*
|
|
30
|
+
* @maxItems 256
|
|
31
|
+
*/
|
|
32
|
+
credentialRefs?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Star or unstar the contact. Absent: unchanged. A boolean rather than a remove member because `false` is a value the holder chose, not an absence.
|
|
35
|
+
*/
|
|
36
|
+
starred?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The holder's private name for the contact, replacing any they had. Absent: unchanged.
|
|
39
|
+
*/
|
|
40
|
+
petname?: Petname;
|
|
41
|
+
/**
|
|
42
|
+
* Remove the petname. Only `true` is meaningful, so only `true` is accepted. A separate member rather than `petname: null`, because a nullable optional member makes "unchanged" and "remove" the same value in libraries that map both to one absent option.
|
|
43
|
+
*/
|
|
44
|
+
removePetname?: true;
|
|
45
|
+
/**
|
|
46
|
+
* The lists the contact is on, replacing the whole set. Every identifier MUST name a list in this context. Absent: unchanged. Take the contact off every list with `removeLists`.
|
|
47
|
+
*/
|
|
48
|
+
lists?: ListIds;
|
|
49
|
+
/**
|
|
50
|
+
* Take the contact off every list. Only `true` is accepted.
|
|
51
|
+
*/
|
|
52
|
+
removeLists?: true;
|
|
53
|
+
/**
|
|
54
|
+
* Link the contact to a community directory entry, replacing any link it had. Absent: unchanged.
|
|
55
|
+
*/
|
|
56
|
+
directoryRef?: DirectoryRef;
|
|
57
|
+
/**
|
|
58
|
+
* Remove the contact's directory link. Only `true` is accepted.
|
|
59
|
+
*/
|
|
60
|
+
removeDirectoryRef?: true;
|
|
61
|
+
/**
|
|
62
|
+
* The holder's private note about this contact, replacing any they had. Absent: unchanged. Never disclosed to anyone, including the contact.
|
|
63
|
+
*/
|
|
64
|
+
notes?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Remove the note. Only `true` is accepted.
|
|
67
|
+
*/
|
|
68
|
+
removeNotes?: true;
|
|
69
|
+
ext?: Ext;
|
|
70
|
+
} & {
|
|
71
|
+
[k: string]: unknown | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Success response to persona/contact/put. Type https://trusttasks.org/spec/persona/contact/put/1.1#response. Identifiers, the current revision and what changed; no claim value and no annotation text is echoed.
|
|
76
|
+
*/
|
|
77
|
+
export interface PersonaContactPutResponsePayload {
|
|
78
|
+
contactId: Ulid;
|
|
79
|
+
/**
|
|
80
|
+
* The contact's current revision: the one a filing just appended, or, for an annotating request, the revision that was already current. Annotations never move it.
|
|
81
|
+
*/
|
|
82
|
+
rev: number;
|
|
83
|
+
/**
|
|
84
|
+
* True when this is the first revision for the subject. Always false for an annotating request.
|
|
85
|
+
*/
|
|
86
|
+
created: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* True when any annotation now differs from what was stored. False when every annotation given already matched and every one named for removal was already absent — including a filing that named none.
|
|
89
|
+
*/
|
|
90
|
+
annotationsChanged: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Claim types whose value differs from the previous revision. Present only on a filing that updated an existing contact.
|
|
93
|
+
*
|
|
94
|
+
* @maxItems 256
|
|
95
|
+
*/
|
|
96
|
+
changedClaims?: ClaimType[];
|
|
97
|
+
ext?: Ext;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
101
|
+
export type { ClaimType, ContactDocument, DirectoryEntryId, DirectoryRef, Ext, ListId, ListIds, Petname, ProofRung, Provenance, Ulid, ValueType };
|
|
102
|
+
|
|
103
|
+
/** Trust Task type URI. */
|
|
104
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/contact/put/1.1" as const;
|
|
105
|
+
|
|
106
|
+
/** Stable alias for this specification's request payload shape. */
|
|
107
|
+
export type Payload = PersonaContactPutPayload;
|
|
108
|
+
|
|
109
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
110
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/contact/put/1.1#response" as const;
|
|
111
|
+
|
|
112
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
113
|
+
export type Response = PersonaContactPutResponsePayload;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* This specification's payload schema, as a value.
|
|
117
|
+
*
|
|
118
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
119
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
120
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
121
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
122
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
123
|
+
*/
|
|
124
|
+
export const PAYLOAD_SCHEMA = {
|
|
125
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
126
|
+
"$id": "https://trusttasks.org/spec/persona/contact/put/1.1",
|
|
127
|
+
"title": "Persona Contact Put — payload",
|
|
128
|
+
"description": "File what a peer disclosed, or change the holder's own annotations on a contact, or both. Two forms. FILING (`subjectDid`, `knownByPersona`, `document`; no `contactId`) appends a revision, never overwrites, so a changed value is visible as a change rather than arriving silently — exactly as 1.0. ANNOTATING (`contactId`; no `subjectDid`, `knownByPersona`, `document` or `credentialRefs`) changes the holder's star, petname, lists, directory link or notes on an existing contact and appends no revision. In either form each annotation given replaces the stored one, each `removeX` removes one, and each annotation absent is unchanged. The outer document members are owned by the framework — SPEC §6.3.",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": [
|
|
132
|
+
"contextId"
|
|
133
|
+
],
|
|
134
|
+
"oneOf": [
|
|
135
|
+
{
|
|
136
|
+
"required": [
|
|
137
|
+
"subjectDid",
|
|
138
|
+
"knownByPersona",
|
|
139
|
+
"document"
|
|
140
|
+
],
|
|
141
|
+
"not": {
|
|
142
|
+
"required": [
|
|
143
|
+
"contactId"
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"required": [
|
|
149
|
+
"contactId"
|
|
150
|
+
],
|
|
151
|
+
"not": {
|
|
152
|
+
"anyOf": [
|
|
153
|
+
{
|
|
154
|
+
"required": [
|
|
155
|
+
"subjectDid"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"required": [
|
|
160
|
+
"knownByPersona"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"required": [
|
|
165
|
+
"document"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"required": [
|
|
170
|
+
"credentialRefs"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"required": [
|
|
178
|
+
"starred"
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"required": [
|
|
183
|
+
"petname"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"required": [
|
|
188
|
+
"removePetname"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"required": [
|
|
193
|
+
"lists"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"required": [
|
|
198
|
+
"removeLists"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"required": [
|
|
203
|
+
"directoryRef"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"required": [
|
|
208
|
+
"removeDirectoryRef"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"required": [
|
|
213
|
+
"notes"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"required": [
|
|
218
|
+
"removeNotes"
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"dependentSchemas": {
|
|
225
|
+
"removePetname": {
|
|
226
|
+
"not": {
|
|
227
|
+
"required": [
|
|
228
|
+
"petname"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"removeLists": {
|
|
233
|
+
"not": {
|
|
234
|
+
"required": [
|
|
235
|
+
"lists"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"removeDirectoryRef": {
|
|
240
|
+
"not": {
|
|
241
|
+
"required": [
|
|
242
|
+
"directoryRef"
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"removeNotes": {
|
|
247
|
+
"not": {
|
|
248
|
+
"required": [
|
|
249
|
+
"notes"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"properties": {
|
|
255
|
+
"contextId": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1
|
|
258
|
+
},
|
|
259
|
+
"contactId": {
|
|
260
|
+
"$ref": "#/$defs/Ulid",
|
|
261
|
+
"description": "Annotating form only: the existing contact whose annotations change. A filing never names one — the agent keys a filing on (contextId, subjectDid, knownByPersona) as in 1.0."
|
|
262
|
+
},
|
|
263
|
+
"subjectDid": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"minLength": 1,
|
|
266
|
+
"maxLength": 2048,
|
|
267
|
+
"description": "Filing form only. The DID the document is about, as disclosed. Normally pairwise, so it names this relationship and not the person across all of theirs."
|
|
268
|
+
},
|
|
269
|
+
"knownByPersona": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"minLength": 1,
|
|
272
|
+
"maxLength": 2048,
|
|
273
|
+
"description": "Filing form only. Which of the holder's personas knows this contact. A contact belongs to the relationship, not to the holder at large — the same peer met through two personas is two contacts, and collapsing them would correlate the holder's own personas in their own address book."
|
|
274
|
+
},
|
|
275
|
+
"document": {
|
|
276
|
+
"$ref": "#/$defs/ContactDocument"
|
|
277
|
+
},
|
|
278
|
+
"credentialRefs": {
|
|
279
|
+
"type": "array",
|
|
280
|
+
"maxItems": 256,
|
|
281
|
+
"items": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"minLength": 1
|
|
284
|
+
},
|
|
285
|
+
"description": "Filing form only. Vault identifiers of credentials the peer presented alongside the document. The credentials themselves belong in the credential vault and the contact holds references."
|
|
286
|
+
},
|
|
287
|
+
"starred": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"description": "Star or unstar the contact. Absent: unchanged. A boolean rather than a remove member because `false` is a value the holder chose, not an absence."
|
|
290
|
+
},
|
|
291
|
+
"petname": {
|
|
292
|
+
"$ref": "#/$defs/Petname",
|
|
293
|
+
"description": "The holder's private name for the contact, replacing any they had. Absent: unchanged."
|
|
294
|
+
},
|
|
295
|
+
"removePetname": {
|
|
296
|
+
"type": "boolean",
|
|
297
|
+
"const": true,
|
|
298
|
+
"description": "Remove the petname. Only `true` is meaningful, so only `true` is accepted. A separate member rather than `petname: null`, because a nullable optional member makes \"unchanged\" and \"remove\" the same value in libraries that map both to one absent option."
|
|
299
|
+
},
|
|
300
|
+
"lists": {
|
|
301
|
+
"$ref": "#/$defs/ListIds",
|
|
302
|
+
"description": "The lists the contact is on, replacing the whole set. Every identifier MUST name a list in this context. Absent: unchanged. Take the contact off every list with `removeLists`."
|
|
303
|
+
},
|
|
304
|
+
"removeLists": {
|
|
305
|
+
"type": "boolean",
|
|
306
|
+
"const": true,
|
|
307
|
+
"description": "Take the contact off every list. Only `true` is accepted."
|
|
308
|
+
},
|
|
309
|
+
"directoryRef": {
|
|
310
|
+
"$ref": "#/$defs/DirectoryRef",
|
|
311
|
+
"description": "Link the contact to a community directory entry, replacing any link it had. Absent: unchanged."
|
|
312
|
+
},
|
|
313
|
+
"removeDirectoryRef": {
|
|
314
|
+
"type": "boolean",
|
|
315
|
+
"const": true,
|
|
316
|
+
"description": "Remove the contact's directory link. Only `true` is accepted."
|
|
317
|
+
},
|
|
318
|
+
"notes": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"minLength": 1,
|
|
321
|
+
"maxLength": 4096,
|
|
322
|
+
"description": "The holder's private note about this contact, replacing any they had. Absent: unchanged. Never disclosed to anyone, including the contact."
|
|
323
|
+
},
|
|
324
|
+
"removeNotes": {
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"const": true,
|
|
327
|
+
"description": "Remove the note. Only `true` is accepted."
|
|
328
|
+
},
|
|
329
|
+
"ext": {
|
|
330
|
+
"$ref": "#/$defs/Ext"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"$defs": {
|
|
334
|
+
"Response": {
|
|
335
|
+
"$anchor": "response",
|
|
336
|
+
"title": "Persona Contact Put — response payload",
|
|
337
|
+
"description": "Success response to persona/contact/put. Type https://trusttasks.org/spec/persona/contact/put/1.1#response. Identifiers, the current revision and what changed; no claim value and no annotation text is echoed.",
|
|
338
|
+
"type": "object",
|
|
339
|
+
"additionalProperties": false,
|
|
340
|
+
"required": [
|
|
341
|
+
"contactId",
|
|
342
|
+
"rev",
|
|
343
|
+
"created",
|
|
344
|
+
"annotationsChanged"
|
|
345
|
+
],
|
|
346
|
+
"properties": {
|
|
347
|
+
"contactId": {
|
|
348
|
+
"$ref": "#/$defs/Ulid"
|
|
349
|
+
},
|
|
350
|
+
"rev": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"minimum": 1,
|
|
353
|
+
"description": "The contact's current revision: the one a filing just appended, or, for an annotating request, the revision that was already current. Annotations never move it."
|
|
354
|
+
},
|
|
355
|
+
"created": {
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"description": "True when this is the first revision for the subject. Always false for an annotating request."
|
|
358
|
+
},
|
|
359
|
+
"annotationsChanged": {
|
|
360
|
+
"type": "boolean",
|
|
361
|
+
"description": "True when any annotation now differs from what was stored. False when every annotation given already matched and every one named for removal was already absent — including a filing that named none."
|
|
362
|
+
},
|
|
363
|
+
"changedClaims": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"maxItems": 256,
|
|
366
|
+
"items": {
|
|
367
|
+
"$ref": "#/$defs/ClaimType"
|
|
368
|
+
},
|
|
369
|
+
"description": "Claim types whose value differs from the previous revision. Present only on a filing that updated an existing contact."
|
|
370
|
+
},
|
|
371
|
+
"ext": {
|
|
372
|
+
"$ref": "#/$defs/Ext"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"Ext": {
|
|
377
|
+
"title": "Ext",
|
|
378
|
+
"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.",
|
|
379
|
+
"type": "object",
|
|
380
|
+
"minProperties": 1,
|
|
381
|
+
"additionalProperties": true,
|
|
382
|
+
"propertyNames": {
|
|
383
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"ClaimType": {
|
|
387
|
+
"title": "ClaimType",
|
|
388
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
389
|
+
"type": "string",
|
|
390
|
+
"minLength": 1,
|
|
391
|
+
"maxLength": 128,
|
|
392
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
393
|
+
},
|
|
394
|
+
"Ulid": {
|
|
395
|
+
"title": "Ulid",
|
|
396
|
+
"description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
|
|
397
|
+
"type": "string",
|
|
398
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
399
|
+
},
|
|
400
|
+
"DirectoryRef": {
|
|
401
|
+
"title": "DirectoryRef",
|
|
402
|
+
"description": "Links a contact to the entry in a community's member directory it corresponds to, so the holder's own client can join that community's directory with the holder's address book — showing a star or a petname beside an entry — without either side telling the other. The community never learns the link exists; the contact never learns it either. A contact has at most one.",
|
|
403
|
+
"type": "object",
|
|
404
|
+
"additionalProperties": false,
|
|
405
|
+
"required": [
|
|
406
|
+
"vtcDid",
|
|
407
|
+
"entryId"
|
|
408
|
+
],
|
|
409
|
+
"properties": {
|
|
410
|
+
"vtcDid": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"minLength": 1,
|
|
413
|
+
"maxLength": 2048,
|
|
414
|
+
"pattern": "^did:[a-z0-9]+:",
|
|
415
|
+
"description": "The DID of the community whose directory holds the entry."
|
|
416
|
+
},
|
|
417
|
+
"entryId": {
|
|
418
|
+
"$ref": "#/$defs/DirectoryEntryId",
|
|
419
|
+
"description": "The entry, as that community's directory identifies it."
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"DirectoryEntryId": {
|
|
424
|
+
"title": "DirectoryEntryId",
|
|
425
|
+
"description": "A community directory entry's identifier, exactly as that community's directory returned it. Opaque and community-scoped: the agent stores and compares it as a string, never parses it, and never treats the same value under two communities as the same entry.",
|
|
426
|
+
"type": "string",
|
|
427
|
+
"minLength": 1,
|
|
428
|
+
"maxLength": 128,
|
|
429
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
430
|
+
},
|
|
431
|
+
"ListIds": {
|
|
432
|
+
"title": "ListIds",
|
|
433
|
+
"description": "The lists a contact is on, as a set: order carries no meaning. A contact on no list has no `lists` member, never an empty array, so there is one way to say \"none\".",
|
|
434
|
+
"type": "array",
|
|
435
|
+
"minItems": 1,
|
|
436
|
+
"maxItems": 64,
|
|
437
|
+
"uniqueItems": true,
|
|
438
|
+
"items": {
|
|
439
|
+
"$ref": "#/$defs/ListId"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"ListId": {
|
|
443
|
+
"title": "ListId",
|
|
444
|
+
"description": "Identifier of one of the holder's contact lists: a ULID in Crockford base32, uppercase, assigned by the agent when the list is created. Meaningful only inside the context that holds the list; it is never sent to anyone but the holder's own clients.",
|
|
445
|
+
"type": "string",
|
|
446
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
447
|
+
},
|
|
448
|
+
"Petname": {
|
|
449
|
+
"title": "Petname",
|
|
450
|
+
"description": "The holder's private name for a contact, on one line: no control characters, line breaks included. A petname in Zooko's sense — chosen by the holder, meaningful to the holder, and unforgeable by anyone else, because nobody else can write it. Distinct from the contact's own disclosed `nickname` or display name, which the contact chose and may change. Compared exactly, as a string: an agent does not case-fold or normalise it.",
|
|
451
|
+
"type": "string",
|
|
452
|
+
"minLength": 1,
|
|
453
|
+
"maxLength": 64,
|
|
454
|
+
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
|
|
455
|
+
},
|
|
456
|
+
"ContactDocument": {
|
|
457
|
+
"title": "ContactDocument",
|
|
458
|
+
"description": "What a peer disclosed, as received. Structurally the same claim set a holder composes and presents — a profile and a contact card are one schema seen from two sides — which is why a maintainer validates both with the same code and a consumer renders both with the same view.",
|
|
459
|
+
"type": "object",
|
|
460
|
+
"additionalProperties": false,
|
|
461
|
+
"required": [
|
|
462
|
+
"claims"
|
|
463
|
+
],
|
|
464
|
+
"properties": {
|
|
465
|
+
"publisher": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"maxLength": 2048,
|
|
468
|
+
"description": "The DID that published the document, as it appeared. Normally a pairwise identifier, so it names the relationship rather than the person."
|
|
469
|
+
},
|
|
470
|
+
"cardVersion": {
|
|
471
|
+
"type": "integer",
|
|
472
|
+
"minimum": 1,
|
|
473
|
+
"description": "The publisher's own monotonic counter, if they supplied one. Advisory: it orders the publisher's revisions relative to each other and MUST NOT be trusted to order them against anything else."
|
|
474
|
+
},
|
|
475
|
+
"claims": {
|
|
476
|
+
"type": "array",
|
|
477
|
+
"maxItems": 256,
|
|
478
|
+
"items": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"additionalProperties": false,
|
|
481
|
+
"required": [
|
|
482
|
+
"type",
|
|
483
|
+
"valueType",
|
|
484
|
+
"value"
|
|
485
|
+
],
|
|
486
|
+
"properties": {
|
|
487
|
+
"type": {
|
|
488
|
+
"$ref": "#/$defs/ClaimType"
|
|
489
|
+
},
|
|
490
|
+
"valueType": {
|
|
491
|
+
"$ref": "#/$defs/ValueType"
|
|
492
|
+
},
|
|
493
|
+
"value": {},
|
|
494
|
+
"provenance": {
|
|
495
|
+
"$ref": "#/$defs/Provenance",
|
|
496
|
+
"description": "As asserted by the publisher. A recipient MUST NOT treat a claimed credentialBacked provenance as verified — it is a statement about what the publisher says backs the claim, and verification is a separate act against the credential itself."
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"Provenance": {
|
|
504
|
+
"title": "Provenance",
|
|
505
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
506
|
+
"type": "object",
|
|
507
|
+
"required": [
|
|
508
|
+
"kind"
|
|
509
|
+
],
|
|
510
|
+
"oneOf": [
|
|
511
|
+
{
|
|
512
|
+
"additionalProperties": false,
|
|
513
|
+
"required": [
|
|
514
|
+
"kind"
|
|
515
|
+
],
|
|
516
|
+
"properties": {
|
|
517
|
+
"kind": {
|
|
518
|
+
"const": "selfAsserted"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"additionalProperties": false,
|
|
524
|
+
"required": [
|
|
525
|
+
"kind",
|
|
526
|
+
"credentialId",
|
|
527
|
+
"claimPath"
|
|
528
|
+
],
|
|
529
|
+
"properties": {
|
|
530
|
+
"kind": {
|
|
531
|
+
"const": "credentialBacked"
|
|
532
|
+
},
|
|
533
|
+
"credentialId": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"minLength": 1,
|
|
536
|
+
"description": "Vault identifier of the backing credential."
|
|
537
|
+
},
|
|
538
|
+
"claimPath": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
541
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
542
|
+
},
|
|
543
|
+
"issuerDid": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"minLength": 1,
|
|
546
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
547
|
+
},
|
|
548
|
+
"proof": {
|
|
549
|
+
"$ref": "#/$defs/ProofRung",
|
|
550
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"additionalProperties": false,
|
|
556
|
+
"required": [
|
|
557
|
+
"kind",
|
|
558
|
+
"generator"
|
|
559
|
+
],
|
|
560
|
+
"properties": {
|
|
561
|
+
"kind": {
|
|
562
|
+
"const": "generated"
|
|
563
|
+
},
|
|
564
|
+
"generator": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"minLength": 1,
|
|
567
|
+
"maxLength": 64,
|
|
568
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
569
|
+
},
|
|
570
|
+
"perVerifier": {
|
|
571
|
+
"type": "boolean",
|
|
572
|
+
"default": true,
|
|
573
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"additionalProperties": false,
|
|
579
|
+
"required": [
|
|
580
|
+
"kind",
|
|
581
|
+
"source",
|
|
582
|
+
"derivedAt"
|
|
583
|
+
],
|
|
584
|
+
"properties": {
|
|
585
|
+
"kind": {
|
|
586
|
+
"const": "derived"
|
|
587
|
+
},
|
|
588
|
+
"source": {
|
|
589
|
+
"type": "string",
|
|
590
|
+
"minLength": 1,
|
|
591
|
+
"maxLength": 64,
|
|
592
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
593
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
594
|
+
},
|
|
595
|
+
"derivedAt": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"format": "date-time",
|
|
598
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
"ProofRung": {
|
|
605
|
+
"title": "ProofRung",
|
|
606
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
607
|
+
"type": "string",
|
|
608
|
+
"enum": [
|
|
609
|
+
"predicate",
|
|
610
|
+
"derived",
|
|
611
|
+
"selectiveDisclosure",
|
|
612
|
+
"whole"
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
"ValueType": {
|
|
616
|
+
"title": "ValueType",
|
|
617
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
618
|
+
"type": "string",
|
|
619
|
+
"enum": [
|
|
620
|
+
"string",
|
|
621
|
+
"number",
|
|
622
|
+
"boolean",
|
|
623
|
+
"date",
|
|
624
|
+
"object"
|
|
625
|
+
]
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
} as const;
|
|
629
|
+
|
|
630
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
631
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
632
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
633
|
+
"$ref": "#/$defs/Response",
|
|
634
|
+
"$defs": {
|
|
635
|
+
"Response": {
|
|
636
|
+
"$anchor": "response",
|
|
637
|
+
"title": "Persona Contact Put — response payload",
|
|
638
|
+
"description": "Success response to persona/contact/put. Type https://trusttasks.org/spec/persona/contact/put/1.1#response. Identifiers, the current revision and what changed; no claim value and no annotation text is echoed.",
|
|
639
|
+
"type": "object",
|
|
640
|
+
"additionalProperties": false,
|
|
641
|
+
"required": [
|
|
642
|
+
"contactId",
|
|
643
|
+
"rev",
|
|
644
|
+
"created",
|
|
645
|
+
"annotationsChanged"
|
|
646
|
+
],
|
|
647
|
+
"properties": {
|
|
648
|
+
"contactId": {
|
|
649
|
+
"$ref": "#/$defs/Ulid"
|
|
650
|
+
},
|
|
651
|
+
"rev": {
|
|
652
|
+
"type": "integer",
|
|
653
|
+
"minimum": 1,
|
|
654
|
+
"description": "The contact's current revision: the one a filing just appended, or, for an annotating request, the revision that was already current. Annotations never move it."
|
|
655
|
+
},
|
|
656
|
+
"created": {
|
|
657
|
+
"type": "boolean",
|
|
658
|
+
"description": "True when this is the first revision for the subject. Always false for an annotating request."
|
|
659
|
+
},
|
|
660
|
+
"annotationsChanged": {
|
|
661
|
+
"type": "boolean",
|
|
662
|
+
"description": "True when any annotation now differs from what was stored. False when every annotation given already matched and every one named for removal was already absent — including a filing that named none."
|
|
663
|
+
},
|
|
664
|
+
"changedClaims": {
|
|
665
|
+
"type": "array",
|
|
666
|
+
"maxItems": 256,
|
|
667
|
+
"items": {
|
|
668
|
+
"$ref": "#/$defs/ClaimType"
|
|
669
|
+
},
|
|
670
|
+
"description": "Claim types whose value differs from the previous revision. Present only on a filing that updated an existing contact."
|
|
671
|
+
},
|
|
672
|
+
"ext": {
|
|
673
|
+
"$ref": "#/$defs/Ext"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"Ext": {
|
|
678
|
+
"title": "Ext",
|
|
679
|
+
"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.",
|
|
680
|
+
"type": "object",
|
|
681
|
+
"minProperties": 1,
|
|
682
|
+
"additionalProperties": true,
|
|
683
|
+
"propertyNames": {
|
|
684
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"ClaimType": {
|
|
688
|
+
"title": "ClaimType",
|
|
689
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
690
|
+
"type": "string",
|
|
691
|
+
"minLength": 1,
|
|
692
|
+
"maxLength": 128,
|
|
693
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
694
|
+
},
|
|
695
|
+
"Ulid": {
|
|
696
|
+
"title": "Ulid",
|
|
697
|
+
"description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
|
|
698
|
+
"type": "string",
|
|
699
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
700
|
+
},
|
|
701
|
+
"DirectoryRef": {
|
|
702
|
+
"title": "DirectoryRef",
|
|
703
|
+
"description": "Links a contact to the entry in a community's member directory it corresponds to, so the holder's own client can join that community's directory with the holder's address book — showing a star or a petname beside an entry — without either side telling the other. The community never learns the link exists; the contact never learns it either. A contact has at most one.",
|
|
704
|
+
"type": "object",
|
|
705
|
+
"additionalProperties": false,
|
|
706
|
+
"required": [
|
|
707
|
+
"vtcDid",
|
|
708
|
+
"entryId"
|
|
709
|
+
],
|
|
710
|
+
"properties": {
|
|
711
|
+
"vtcDid": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"minLength": 1,
|
|
714
|
+
"maxLength": 2048,
|
|
715
|
+
"pattern": "^did:[a-z0-9]+:",
|
|
716
|
+
"description": "The DID of the community whose directory holds the entry."
|
|
717
|
+
},
|
|
718
|
+
"entryId": {
|
|
719
|
+
"$ref": "#/$defs/DirectoryEntryId",
|
|
720
|
+
"description": "The entry, as that community's directory identifies it."
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"DirectoryEntryId": {
|
|
725
|
+
"title": "DirectoryEntryId",
|
|
726
|
+
"description": "A community directory entry's identifier, exactly as that community's directory returned it. Opaque and community-scoped: the agent stores and compares it as a string, never parses it, and never treats the same value under two communities as the same entry.",
|
|
727
|
+
"type": "string",
|
|
728
|
+
"minLength": 1,
|
|
729
|
+
"maxLength": 128,
|
|
730
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
731
|
+
},
|
|
732
|
+
"ListIds": {
|
|
733
|
+
"title": "ListIds",
|
|
734
|
+
"description": "The lists a contact is on, as a set: order carries no meaning. A contact on no list has no `lists` member, never an empty array, so there is one way to say \"none\".",
|
|
735
|
+
"type": "array",
|
|
736
|
+
"minItems": 1,
|
|
737
|
+
"maxItems": 64,
|
|
738
|
+
"uniqueItems": true,
|
|
739
|
+
"items": {
|
|
740
|
+
"$ref": "#/$defs/ListId"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"ListId": {
|
|
744
|
+
"title": "ListId",
|
|
745
|
+
"description": "Identifier of one of the holder's contact lists: a ULID in Crockford base32, uppercase, assigned by the agent when the list is created. Meaningful only inside the context that holds the list; it is never sent to anyone but the holder's own clients.",
|
|
746
|
+
"type": "string",
|
|
747
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
748
|
+
},
|
|
749
|
+
"Petname": {
|
|
750
|
+
"title": "Petname",
|
|
751
|
+
"description": "The holder's private name for a contact, on one line: no control characters, line breaks included. A petname in Zooko's sense — chosen by the holder, meaningful to the holder, and unforgeable by anyone else, because nobody else can write it. Distinct from the contact's own disclosed `nickname` or display name, which the contact chose and may change. Compared exactly, as a string: an agent does not case-fold or normalise it.",
|
|
752
|
+
"type": "string",
|
|
753
|
+
"minLength": 1,
|
|
754
|
+
"maxLength": 64,
|
|
755
|
+
"pattern": "^[^\\u0000-\\u001F\\u007F]+$"
|
|
756
|
+
},
|
|
757
|
+
"ContactDocument": {
|
|
758
|
+
"title": "ContactDocument",
|
|
759
|
+
"description": "What a peer disclosed, as received. Structurally the same claim set a holder composes and presents — a profile and a contact card are one schema seen from two sides — which is why a maintainer validates both with the same code and a consumer renders both with the same view.",
|
|
760
|
+
"type": "object",
|
|
761
|
+
"additionalProperties": false,
|
|
762
|
+
"required": [
|
|
763
|
+
"claims"
|
|
764
|
+
],
|
|
765
|
+
"properties": {
|
|
766
|
+
"publisher": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"maxLength": 2048,
|
|
769
|
+
"description": "The DID that published the document, as it appeared. Normally a pairwise identifier, so it names the relationship rather than the person."
|
|
770
|
+
},
|
|
771
|
+
"cardVersion": {
|
|
772
|
+
"type": "integer",
|
|
773
|
+
"minimum": 1,
|
|
774
|
+
"description": "The publisher's own monotonic counter, if they supplied one. Advisory: it orders the publisher's revisions relative to each other and MUST NOT be trusted to order them against anything else."
|
|
775
|
+
},
|
|
776
|
+
"claims": {
|
|
777
|
+
"type": "array",
|
|
778
|
+
"maxItems": 256,
|
|
779
|
+
"items": {
|
|
780
|
+
"type": "object",
|
|
781
|
+
"additionalProperties": false,
|
|
782
|
+
"required": [
|
|
783
|
+
"type",
|
|
784
|
+
"valueType",
|
|
785
|
+
"value"
|
|
786
|
+
],
|
|
787
|
+
"properties": {
|
|
788
|
+
"type": {
|
|
789
|
+
"$ref": "#/$defs/ClaimType"
|
|
790
|
+
},
|
|
791
|
+
"valueType": {
|
|
792
|
+
"$ref": "#/$defs/ValueType"
|
|
793
|
+
},
|
|
794
|
+
"value": {},
|
|
795
|
+
"provenance": {
|
|
796
|
+
"$ref": "#/$defs/Provenance",
|
|
797
|
+
"description": "As asserted by the publisher. A recipient MUST NOT treat a claimed credentialBacked provenance as verified — it is a statement about what the publisher says backs the claim, and verification is a separate act against the credential itself."
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"Provenance": {
|
|
805
|
+
"title": "Provenance",
|
|
806
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
807
|
+
"type": "object",
|
|
808
|
+
"required": [
|
|
809
|
+
"kind"
|
|
810
|
+
],
|
|
811
|
+
"oneOf": [
|
|
812
|
+
{
|
|
813
|
+
"additionalProperties": false,
|
|
814
|
+
"required": [
|
|
815
|
+
"kind"
|
|
816
|
+
],
|
|
817
|
+
"properties": {
|
|
818
|
+
"kind": {
|
|
819
|
+
"const": "selfAsserted"
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"additionalProperties": false,
|
|
825
|
+
"required": [
|
|
826
|
+
"kind",
|
|
827
|
+
"credentialId",
|
|
828
|
+
"claimPath"
|
|
829
|
+
],
|
|
830
|
+
"properties": {
|
|
831
|
+
"kind": {
|
|
832
|
+
"const": "credentialBacked"
|
|
833
|
+
},
|
|
834
|
+
"credentialId": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"minLength": 1,
|
|
837
|
+
"description": "Vault identifier of the backing credential."
|
|
838
|
+
},
|
|
839
|
+
"claimPath": {
|
|
840
|
+
"type": "string",
|
|
841
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
842
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
843
|
+
},
|
|
844
|
+
"issuerDid": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"minLength": 1,
|
|
847
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
848
|
+
},
|
|
849
|
+
"proof": {
|
|
850
|
+
"$ref": "#/$defs/ProofRung",
|
|
851
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"additionalProperties": false,
|
|
857
|
+
"required": [
|
|
858
|
+
"kind",
|
|
859
|
+
"generator"
|
|
860
|
+
],
|
|
861
|
+
"properties": {
|
|
862
|
+
"kind": {
|
|
863
|
+
"const": "generated"
|
|
864
|
+
},
|
|
865
|
+
"generator": {
|
|
866
|
+
"type": "string",
|
|
867
|
+
"minLength": 1,
|
|
868
|
+
"maxLength": 64,
|
|
869
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
870
|
+
},
|
|
871
|
+
"perVerifier": {
|
|
872
|
+
"type": "boolean",
|
|
873
|
+
"default": true,
|
|
874
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"additionalProperties": false,
|
|
880
|
+
"required": [
|
|
881
|
+
"kind",
|
|
882
|
+
"source",
|
|
883
|
+
"derivedAt"
|
|
884
|
+
],
|
|
885
|
+
"properties": {
|
|
886
|
+
"kind": {
|
|
887
|
+
"const": "derived"
|
|
888
|
+
},
|
|
889
|
+
"source": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"minLength": 1,
|
|
892
|
+
"maxLength": 64,
|
|
893
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
894
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
895
|
+
},
|
|
896
|
+
"derivedAt": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"format": "date-time",
|
|
899
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
},
|
|
905
|
+
"ProofRung": {
|
|
906
|
+
"title": "ProofRung",
|
|
907
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
908
|
+
"type": "string",
|
|
909
|
+
"enum": [
|
|
910
|
+
"predicate",
|
|
911
|
+
"derived",
|
|
912
|
+
"selectiveDisclosure",
|
|
913
|
+
"whole"
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
"ValueType": {
|
|
917
|
+
"title": "ValueType",
|
|
918
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
919
|
+
"type": "string",
|
|
920
|
+
"enum": [
|
|
921
|
+
"string",
|
|
922
|
+
"number",
|
|
923
|
+
"boolean",
|
|
924
|
+
"date",
|
|
925
|
+
"object"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
} as const;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
933
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
934
|
+
* per-specification and cannot be derived from the document alone, and
|
|
935
|
+
* item 2 needs the schema this carries.
|
|
936
|
+
*/
|
|
937
|
+
export const SPEC = {
|
|
938
|
+
typeUri: TYPE_URI,
|
|
939
|
+
isBearer: false,
|
|
940
|
+
isProofRequired: true,
|
|
941
|
+
isRecipientRequired: true,
|
|
942
|
+
isIssuedAtRequired: true,
|
|
943
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
944
|
+
} as const;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
948
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
949
|
+
* parties (§7.3 item 5).
|
|
950
|
+
*/
|
|
951
|
+
export const RESPONSE_SPEC = {
|
|
952
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
953
|
+
isBearer: false,
|
|
954
|
+
isProofRequired: true,
|
|
955
|
+
isRecipientRequired: true,
|
|
956
|
+
isIssuedAtRequired: true,
|
|
957
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
958
|
+
} as const;
|