@openvtc/trust-tasks 0.26.17 → 0.26.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +166 -0
- package/dist/_shared/components.d.ts +755 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
- package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
- package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.2/payload.js +140 -0
- package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.js +468 -0
- package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.js +140 -0
- package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +2 -0
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +2 -0
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +2 -0
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +2 -0
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
- package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
- package/dist/keys/sign-document/0.1/payload.js +341 -0
- package/dist/keys/sign-document/0.1/payload.js.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
- package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
- package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.1/payload.js +804 -0
- package/dist/persona/contact/get/1.1/payload.js.map +1 -0
- package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.1/payload.js +417 -0
- package/dist/persona/contact/list/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
- package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
- package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.1/payload.js +850 -0
- package/dist/persona/contact/put/1.1/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.1/payload.js +12 -2
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +12 -2
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.js +335 -0
- package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.1/payload.js +12 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +12 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.1/payload.js +12 -2
- package/dist/rooms/records/put/0.1/payload.js.map +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.2/payload.js +12 -2
- package/dist/rooms/records/put/0.2/payload.js.map +1 -1
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
- package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts +1144 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.js +695 -0
- package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts +1291 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.js +765 -0
- package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.js +192 -0
- package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
- package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
- package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.js +6 -0
- package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.js +631 -0
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.js +182 -0
- package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.js +758 -0
- package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.js +179 -0
- package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.js +674 -0
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
- package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
- package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.js +619 -0
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.js +633 -0
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +800 -1
- package/src/auth/oob/_shared/0.1/oob.ts +1 -1
- package/src/auth/oob/grant/0.2/payload.ts +186 -0
- package/src/auth/oob/prove/0.2/payload.ts +523 -0
- package/src/auth/oob/respond/0.2/payload.ts +178 -0
- package/src/device/list/0.1/payload.ts +2 -0
- package/src/device/list/0.2/payload.ts +2 -0
- package/src/device/register/0.1/payload.ts +2 -0
- package/src/device/register/0.2/payload.ts +2 -0
- package/src/index.ts +52 -0
- package/src/keys/sign-document/0.1/payload.ts +437 -0
- package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
- package/src/persona/contact/get/1.1/payload.ts +876 -0
- package/src/persona/contact/list/1.1/payload.ts +497 -0
- package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
- package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
- package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
- package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
- package/src/persona/contact/put/1.1/payload.ts +958 -0
- package/src/rooms/keys/seal/0.1/payload.ts +12 -2
- package/src/rooms/keys/seal/0.2/payload.ts +12 -2
- package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
- package/src/rooms/owner/register/0.2/payload.ts +415 -0
- package/src/rooms/records/get/0.1/payload.ts +12 -2
- package/src/rooms/records/get/0.2/payload.ts +12 -2
- package/src/rooms/records/put/0.1/payload.ts +12 -2
- package/src/rooms/records/put/0.2/payload.ts +12 -2
- package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
- package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
- package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
- package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
- package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
- package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
- package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
- package/src/vtc/directory/card/show/0.1/payload.ts +732 -0
- package/src/vtc/directory/card/update/0.1/payload.ts +827 -0
- package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
- package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
- package/src/vtc/directory/export/0.1/payload.ts +241 -0
- package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
- package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
- package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
- package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
- package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
- package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
- package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
- package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
- package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
- package/src/vtc/groups/_shared/0.1/group.ts +23 -0
- package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
- package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
- package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
- package/src/vtc/groups/create/0.1/payload.ts +683 -0
- package/src/vtc/groups/delete/0.1/payload.ts +224 -0
- package/src/vtc/groups/join/0.1/payload.ts +807 -0
- package/src/vtc/groups/leave/0.1/payload.ts +219 -0
- package/src/vtc/groups/list/0.1/payload.ts +728 -0
- package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
- package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
- package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
- package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
- package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
- package/src/vtc/groups/show/0.1/payload.ts +652 -0
- package/src/vtc/groups/update/0.1/payload.ts +682 -0
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/groups/members/add/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, GroupMember, MembershipSource, VerifiedValue } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A group manager adds a community member to a static group; where the group issues credentials, the group's DID issues the member a membership credential first. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCGroupsMembersAddPayload {
|
|
13
|
+
groupId: GroupId;
|
|
14
|
+
entryId: EntryId;
|
|
15
|
+
/**
|
|
16
|
+
* Why, recorded with the change and shown to anyone who must approve it.
|
|
17
|
+
*/
|
|
18
|
+
reason?: string;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The success response to a vtc/groups/members/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/add/0.1#response.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTCGroupsMembersAddResponsePayload {
|
|
25
|
+
member: GroupMember;
|
|
26
|
+
/**
|
|
27
|
+
* The membership credential offered to the member, or null when the group issues none or the addition is pending.
|
|
28
|
+
*/
|
|
29
|
+
credentialId: GroupCredentialId | null;
|
|
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 { CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, GroupMember, MembershipSource, VerifiedValue };
|
|
35
|
+
|
|
36
|
+
/** Trust Task type URI. */
|
|
37
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/members/add/0.1" as const;
|
|
38
|
+
|
|
39
|
+
/** Stable alias for this specification's request payload shape. */
|
|
40
|
+
export type Payload = VTCGroupsMembersAddPayload;
|
|
41
|
+
|
|
42
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
43
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/groups/members/add/0.1#response" as const;
|
|
44
|
+
|
|
45
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
46
|
+
export type Response = VTCGroupsMembersAddResponsePayload;
|
|
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/groups/members/add/0.1",
|
|
60
|
+
"title": "VTC Groups — Members — Add — payload",
|
|
61
|
+
"description": "A group manager adds a community member to a static group; where the group issues credentials, the group's DID issues the member a membership credential first. The outer document members are owned by the framework — SPEC §6.3.",
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": [
|
|
65
|
+
"groupId",
|
|
66
|
+
"entryId"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"groupId": {
|
|
70
|
+
"$ref": "#/$defs/GroupId"
|
|
71
|
+
},
|
|
72
|
+
"entryId": {
|
|
73
|
+
"$ref": "#/$defs/EntryId"
|
|
74
|
+
},
|
|
75
|
+
"reason": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 1024,
|
|
79
|
+
"description": "Why, recorded with the change and shown to anyone who must approve it."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"Response": {
|
|
87
|
+
"$anchor": "response",
|
|
88
|
+
"title": "VTC Groups — Members — Add — response payload",
|
|
89
|
+
"description": "The success response to a vtc/groups/members/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/add/0.1#response.",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"member",
|
|
94
|
+
"credentialId"
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"member": {
|
|
98
|
+
"$ref": "#/$defs/GroupMember"
|
|
99
|
+
},
|
|
100
|
+
"credentialId": {
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"$ref": "#/$defs/GroupCredentialId"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"description": "The membership credential offered to the member, or null when the group issues none or the addition is pending."
|
|
110
|
+
},
|
|
111
|
+
"ext": {
|
|
112
|
+
"$ref": "#/$defs/Ext"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"Ext": {
|
|
117
|
+
"title": "Ext",
|
|
118
|
+
"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.",
|
|
119
|
+
"type": "object",
|
|
120
|
+
"minProperties": 1,
|
|
121
|
+
"additionalProperties": true,
|
|
122
|
+
"propertyNames": {
|
|
123
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"GroupCredentialId": {
|
|
127
|
+
"title": "GroupCredentialId",
|
|
128
|
+
"description": "Identifier (`id`) of a group membership credential issued to a member. Each renewal issues a new credential with a new identifier. Validity is the community's setting; a community SHOULD default to 30 days, renewed when 10 days remain.",
|
|
129
|
+
"type": "string",
|
|
130
|
+
"minLength": 1,
|
|
131
|
+
"maxLength": 512
|
|
132
|
+
},
|
|
133
|
+
"GroupMember": {
|
|
134
|
+
"title": "GroupMember",
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"entryId",
|
|
139
|
+
"source",
|
|
140
|
+
"since",
|
|
141
|
+
"state"
|
|
142
|
+
],
|
|
143
|
+
"properties": {
|
|
144
|
+
"entryId": {
|
|
145
|
+
"$ref": "#/$defs/EntryId"
|
|
146
|
+
},
|
|
147
|
+
"source": {
|
|
148
|
+
"$ref": "#/$defs/MembershipSource"
|
|
149
|
+
},
|
|
150
|
+
"since": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"format": "date-time"
|
|
153
|
+
},
|
|
154
|
+
"state": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"enum": [
|
|
157
|
+
"active",
|
|
158
|
+
"pending"
|
|
159
|
+
],
|
|
160
|
+
"description": "`active`: a member. `pending`: an addition to a group carrying authority that is waiting for the consent the community requires for a grant."
|
|
161
|
+
},
|
|
162
|
+
"fields": {
|
|
163
|
+
"$ref": "#/$defs/EntryFields",
|
|
164
|
+
"description": "The member's directory fields that the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none."
|
|
165
|
+
},
|
|
166
|
+
"credentialId": {
|
|
167
|
+
"anyOf": [
|
|
168
|
+
{
|
|
169
|
+
"$ref": "#/$defs/GroupCredentialId"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "null"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"description": "The member's current group membership credential, or null when the group issues none."
|
|
176
|
+
},
|
|
177
|
+
"credentialValidUntil": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"format": "date-time",
|
|
180
|
+
"description": "When the member's current group credential expires. Shown to the member themselves and to managers only."
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"MembershipSource": {
|
|
185
|
+
"title": "MembershipSource",
|
|
186
|
+
"description": "How the member came to be in the group. `added`: by a manager. `joined`: they joined an open group. `requestApproved`: a manager approved their request. `rule`: a dynamic group's rule admits them.",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": [
|
|
189
|
+
"added",
|
|
190
|
+
"joined",
|
|
191
|
+
"requestApproved",
|
|
192
|
+
"rule"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"EntryFields": {
|
|
196
|
+
"title": "EntryFields",
|
|
197
|
+
"description": "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.",
|
|
198
|
+
"type": "object",
|
|
199
|
+
"maxProperties": 64,
|
|
200
|
+
"propertyNames": {
|
|
201
|
+
"$ref": "#/$defs/FieldKey"
|
|
202
|
+
},
|
|
203
|
+
"additionalProperties": {
|
|
204
|
+
"$ref": "#/$defs/FieldValue"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"FieldValue": {
|
|
208
|
+
"title": "FieldValue",
|
|
209
|
+
"description": "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.",
|
|
210
|
+
"anyOf": [
|
|
211
|
+
{
|
|
212
|
+
"type": "string",
|
|
213
|
+
"maxLength": 2000
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "boolean"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "array",
|
|
220
|
+
"maxItems": 32,
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"maxLength": 500
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"$ref": "#/$defs/CardBlobRef"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"$ref": "#/$defs/VerifiedValue"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"VerifiedValue": {
|
|
235
|
+
"title": "VerifiedValue",
|
|
236
|
+
"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.",
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"required": [
|
|
240
|
+
"value",
|
|
241
|
+
"issuer",
|
|
242
|
+
"verifiedAt"
|
|
243
|
+
],
|
|
244
|
+
"properties": {
|
|
245
|
+
"value": {
|
|
246
|
+
"anyOf": [
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"maxLength": 2000
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"type": "number"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"description": "The disclosed claim value."
|
|
259
|
+
},
|
|
260
|
+
"issuer": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"pattern": "^did:",
|
|
263
|
+
"maxLength": 2048,
|
|
264
|
+
"description": "DID of the credential's issuer, shown as the field's verification badge."
|
|
265
|
+
},
|
|
266
|
+
"credentialType": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"minLength": 1,
|
|
269
|
+
"maxLength": 128,
|
|
270
|
+
"description": "The most specific `type` of the credential the claim came from."
|
|
271
|
+
},
|
|
272
|
+
"verifiedAt": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"format": "date-time",
|
|
275
|
+
"description": "When the community verified the presentation."
|
|
276
|
+
},
|
|
277
|
+
"validUntil": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"format": "date-time",
|
|
280
|
+
"description": "When the credential expires, where it does. The community withdraws the value once it passes."
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"CardBlobRef": {
|
|
285
|
+
"title": "CardBlobRef",
|
|
286
|
+
"description": "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (metadata stripped, dimensions capped) so its digest does not link the member across communities. `url` and `urlExpiresAt` appear only in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL.",
|
|
287
|
+
"type": "object",
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"required": [
|
|
290
|
+
"sha256",
|
|
291
|
+
"mediaType"
|
|
292
|
+
],
|
|
293
|
+
"properties": {
|
|
294
|
+
"sha256": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
297
|
+
"description": "Lowercase hex SHA-256 of the stored, re-encoded bytes."
|
|
298
|
+
},
|
|
299
|
+
"mediaType": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"enum": [
|
|
302
|
+
"image/png",
|
|
303
|
+
"image/jpeg",
|
|
304
|
+
"image/webp",
|
|
305
|
+
"image/avif"
|
|
306
|
+
],
|
|
307
|
+
"description": "Media type of the stored bytes."
|
|
308
|
+
},
|
|
309
|
+
"size": {
|
|
310
|
+
"type": "integer",
|
|
311
|
+
"minimum": 1,
|
|
312
|
+
"maximum": 262144,
|
|
313
|
+
"description": "Size in bytes of the stored bytes."
|
|
314
|
+
},
|
|
315
|
+
"url": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"format": "uri",
|
|
318
|
+
"maxLength": 2048,
|
|
319
|
+
"description": "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`."
|
|
320
|
+
},
|
|
321
|
+
"urlExpiresAt": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"format": "date-time",
|
|
324
|
+
"description": "Projection only: when `url` stops working."
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"FieldKey": {
|
|
329
|
+
"title": "FieldKey",
|
|
330
|
+
"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.",
|
|
331
|
+
"type": "string",
|
|
332
|
+
"minLength": 1,
|
|
333
|
+
"maxLength": 128,
|
|
334
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
335
|
+
},
|
|
336
|
+
"EntryId": {
|
|
337
|
+
"title": "EntryId",
|
|
338
|
+
"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.",
|
|
339
|
+
"type": "string",
|
|
340
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
341
|
+
},
|
|
342
|
+
"GroupId": {
|
|
343
|
+
"title": "GroupId",
|
|
344
|
+
"description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
|
|
345
|
+
"type": "string",
|
|
346
|
+
"pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
} as const;
|
|
350
|
+
|
|
351
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
352
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
353
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
354
|
+
"$ref": "#/$defs/Response",
|
|
355
|
+
"$defs": {
|
|
356
|
+
"Response": {
|
|
357
|
+
"$anchor": "response",
|
|
358
|
+
"title": "VTC Groups — Members — Add — response payload",
|
|
359
|
+
"description": "The success response to a vtc/groups/members/add/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/groups/members/add/0.1#response.",
|
|
360
|
+
"type": "object",
|
|
361
|
+
"additionalProperties": false,
|
|
362
|
+
"required": [
|
|
363
|
+
"member",
|
|
364
|
+
"credentialId"
|
|
365
|
+
],
|
|
366
|
+
"properties": {
|
|
367
|
+
"member": {
|
|
368
|
+
"$ref": "#/$defs/GroupMember"
|
|
369
|
+
},
|
|
370
|
+
"credentialId": {
|
|
371
|
+
"anyOf": [
|
|
372
|
+
{
|
|
373
|
+
"$ref": "#/$defs/GroupCredentialId"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"type": "null"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"description": "The membership credential offered to the member, or null when the group issues none or the addition is pending."
|
|
380
|
+
},
|
|
381
|
+
"ext": {
|
|
382
|
+
"$ref": "#/$defs/Ext"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"Ext": {
|
|
387
|
+
"title": "Ext",
|
|
388
|
+
"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.",
|
|
389
|
+
"type": "object",
|
|
390
|
+
"minProperties": 1,
|
|
391
|
+
"additionalProperties": true,
|
|
392
|
+
"propertyNames": {
|
|
393
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"GroupCredentialId": {
|
|
397
|
+
"title": "GroupCredentialId",
|
|
398
|
+
"description": "Identifier (`id`) of a group membership credential issued to a member. Each renewal issues a new credential with a new identifier. Validity is the community's setting; a community SHOULD default to 30 days, renewed when 10 days remain.",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"minLength": 1,
|
|
401
|
+
"maxLength": 512
|
|
402
|
+
},
|
|
403
|
+
"GroupMember": {
|
|
404
|
+
"title": "GroupMember",
|
|
405
|
+
"type": "object",
|
|
406
|
+
"additionalProperties": false,
|
|
407
|
+
"required": [
|
|
408
|
+
"entryId",
|
|
409
|
+
"source",
|
|
410
|
+
"since",
|
|
411
|
+
"state"
|
|
412
|
+
],
|
|
413
|
+
"properties": {
|
|
414
|
+
"entryId": {
|
|
415
|
+
"$ref": "#/$defs/EntryId"
|
|
416
|
+
},
|
|
417
|
+
"source": {
|
|
418
|
+
"$ref": "#/$defs/MembershipSource"
|
|
419
|
+
},
|
|
420
|
+
"since": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"format": "date-time"
|
|
423
|
+
},
|
|
424
|
+
"state": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"enum": [
|
|
427
|
+
"active",
|
|
428
|
+
"pending"
|
|
429
|
+
],
|
|
430
|
+
"description": "`active`: a member. `pending`: an addition to a group carrying authority that is waiting for the consent the community requires for a grant."
|
|
431
|
+
},
|
|
432
|
+
"fields": {
|
|
433
|
+
"$ref": "#/$defs/EntryFields",
|
|
434
|
+
"description": "The member's directory fields that the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none."
|
|
435
|
+
},
|
|
436
|
+
"credentialId": {
|
|
437
|
+
"anyOf": [
|
|
438
|
+
{
|
|
439
|
+
"$ref": "#/$defs/GroupCredentialId"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "null"
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"description": "The member's current group membership credential, or null when the group issues none."
|
|
446
|
+
},
|
|
447
|
+
"credentialValidUntil": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"format": "date-time",
|
|
450
|
+
"description": "When the member's current group credential expires. Shown to the member themselves and to managers only."
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"MembershipSource": {
|
|
455
|
+
"title": "MembershipSource",
|
|
456
|
+
"description": "How the member came to be in the group. `added`: by a manager. `joined`: they joined an open group. `requestApproved`: a manager approved their request. `rule`: a dynamic group's rule admits them.",
|
|
457
|
+
"type": "string",
|
|
458
|
+
"enum": [
|
|
459
|
+
"added",
|
|
460
|
+
"joined",
|
|
461
|
+
"requestApproved",
|
|
462
|
+
"rule"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"EntryFields": {
|
|
466
|
+
"title": "EntryFields",
|
|
467
|
+
"description": "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.",
|
|
468
|
+
"type": "object",
|
|
469
|
+
"maxProperties": 64,
|
|
470
|
+
"propertyNames": {
|
|
471
|
+
"$ref": "#/$defs/FieldKey"
|
|
472
|
+
},
|
|
473
|
+
"additionalProperties": {
|
|
474
|
+
"$ref": "#/$defs/FieldValue"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"FieldValue": {
|
|
478
|
+
"title": "FieldValue",
|
|
479
|
+
"description": "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.",
|
|
480
|
+
"anyOf": [
|
|
481
|
+
{
|
|
482
|
+
"type": "string",
|
|
483
|
+
"maxLength": 2000
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "boolean"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"type": "array",
|
|
490
|
+
"maxItems": 32,
|
|
491
|
+
"items": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"maxLength": 500
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"$ref": "#/$defs/CardBlobRef"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"$ref": "#/$defs/VerifiedValue"
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
"VerifiedValue": {
|
|
505
|
+
"title": "VerifiedValue",
|
|
506
|
+
"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.",
|
|
507
|
+
"type": "object",
|
|
508
|
+
"additionalProperties": false,
|
|
509
|
+
"required": [
|
|
510
|
+
"value",
|
|
511
|
+
"issuer",
|
|
512
|
+
"verifiedAt"
|
|
513
|
+
],
|
|
514
|
+
"properties": {
|
|
515
|
+
"value": {
|
|
516
|
+
"anyOf": [
|
|
517
|
+
{
|
|
518
|
+
"type": "string",
|
|
519
|
+
"maxLength": 2000
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"type": "boolean"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "number"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"description": "The disclosed claim value."
|
|
529
|
+
},
|
|
530
|
+
"issuer": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"pattern": "^did:",
|
|
533
|
+
"maxLength": 2048,
|
|
534
|
+
"description": "DID of the credential's issuer, shown as the field's verification badge."
|
|
535
|
+
},
|
|
536
|
+
"credentialType": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"minLength": 1,
|
|
539
|
+
"maxLength": 128,
|
|
540
|
+
"description": "The most specific `type` of the credential the claim came from."
|
|
541
|
+
},
|
|
542
|
+
"verifiedAt": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"format": "date-time",
|
|
545
|
+
"description": "When the community verified the presentation."
|
|
546
|
+
},
|
|
547
|
+
"validUntil": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"format": "date-time",
|
|
550
|
+
"description": "When the credential expires, where it does. The community withdraws the value once it passes."
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"CardBlobRef": {
|
|
555
|
+
"title": "CardBlobRef",
|
|
556
|
+
"description": "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (metadata stripped, dimensions capped) so its digest does not link the member across communities. `url` and `urlExpiresAt` appear only in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL.",
|
|
557
|
+
"type": "object",
|
|
558
|
+
"additionalProperties": false,
|
|
559
|
+
"required": [
|
|
560
|
+
"sha256",
|
|
561
|
+
"mediaType"
|
|
562
|
+
],
|
|
563
|
+
"properties": {
|
|
564
|
+
"sha256": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
567
|
+
"description": "Lowercase hex SHA-256 of the stored, re-encoded bytes."
|
|
568
|
+
},
|
|
569
|
+
"mediaType": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"enum": [
|
|
572
|
+
"image/png",
|
|
573
|
+
"image/jpeg",
|
|
574
|
+
"image/webp",
|
|
575
|
+
"image/avif"
|
|
576
|
+
],
|
|
577
|
+
"description": "Media type of the stored bytes."
|
|
578
|
+
},
|
|
579
|
+
"size": {
|
|
580
|
+
"type": "integer",
|
|
581
|
+
"minimum": 1,
|
|
582
|
+
"maximum": 262144,
|
|
583
|
+
"description": "Size in bytes of the stored bytes."
|
|
584
|
+
},
|
|
585
|
+
"url": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"format": "uri",
|
|
588
|
+
"maxLength": 2048,
|
|
589
|
+
"description": "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`."
|
|
590
|
+
},
|
|
591
|
+
"urlExpiresAt": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"format": "date-time",
|
|
594
|
+
"description": "Projection only: when `url` stops working."
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"FieldKey": {
|
|
599
|
+
"title": "FieldKey",
|
|
600
|
+
"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.",
|
|
601
|
+
"type": "string",
|
|
602
|
+
"minLength": 1,
|
|
603
|
+
"maxLength": 128,
|
|
604
|
+
"pattern": "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$"
|
|
605
|
+
},
|
|
606
|
+
"EntryId": {
|
|
607
|
+
"title": "EntryId",
|
|
608
|
+
"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.",
|
|
609
|
+
"type": "string",
|
|
610
|
+
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
611
|
+
},
|
|
612
|
+
"GroupId": {
|
|
613
|
+
"title": "GroupId",
|
|
614
|
+
"description": "Opaque identifier of a community group: `grp_` followed by 16 to 64 base64url characters. Random and community-scoped; not the group's DID.",
|
|
615
|
+
"type": "string",
|
|
616
|
+
"pattern": "^grp_[A-Za-z0-9_-]{16,64}$"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
} as const;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
623
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
624
|
+
* per-specification and cannot be derived from the document alone, and
|
|
625
|
+
* item 2 needs the schema this carries.
|
|
626
|
+
*/
|
|
627
|
+
export const SPEC = {
|
|
628
|
+
typeUri: TYPE_URI,
|
|
629
|
+
isBearer: false,
|
|
630
|
+
isProofRequired: true,
|
|
631
|
+
isRecipientRequired: true,
|
|
632
|
+
isIssuedAtRequired: true,
|
|
633
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
634
|
+
} as const;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
638
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
639
|
+
* parties (§7.3 item 5).
|
|
640
|
+
*/
|
|
641
|
+
export const RESPONSE_SPEC = {
|
|
642
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
643
|
+
isBearer: false,
|
|
644
|
+
isProofRequired: true,
|
|
645
|
+
isRecipientRequired: true,
|
|
646
|
+
isIssuedAtRequired: true,
|
|
647
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
648
|
+
} as const;
|