@openvtc/trust-tasks 0.26.16 → 0.26.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +201 -0
- package/dist/_shared/components.d.ts +790 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
- package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
- package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.2/payload.js +140 -0
- package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
- package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.2/payload.js +468 -0
- package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.2/payload.js +140 -0
- package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +2 -0
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +2 -0
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +2 -0
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +2 -0
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
- package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
- package/dist/keys/sign-document/0.1/payload.js +341 -0
- package/dist/keys/sign-document/0.1/payload.js.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
- package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
- package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
- package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
- package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
- package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/get/1.1/payload.js +804 -0
- package/dist/persona/contact/get/1.1/payload.js.map +1 -0
- package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
- package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/list/1.1/payload.js +417 -0
- package/dist/persona/contact/list/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
- package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
- package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
- package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
- package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
- package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
- package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
- package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
- package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.1/payload.js +850 -0
- package/dist/persona/contact/put/1.1/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.5/payload.d.ts +546 -0
- package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.5/payload.js +305 -0
- package/dist/rooms/keys/act/0.5/payload.js.map +1 -0
- package/dist/rooms/keys/key-package/0.2/payload.d.ts +304 -0
- package/dist/rooms/keys/key-package/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/key-package/0.2/payload.js +166 -0
- package/dist/rooms/keys/key-package/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.1/payload.js +12 -2
- package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +12 -2
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
- package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
- package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/register/0.2/payload.js +335 -0
- package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.1/payload.js +12 -2
- package/dist/rooms/records/get/0.1/payload.js.map +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +12 -2
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.1/payload.js +12 -2
- package/dist/rooms/records/put/0.1/payload.js.map +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
- package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.2/payload.js +12 -2
- package/dist/rooms/records/put/0.2/payload.js.map +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
- package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
- package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
- package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
- package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
- package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
- package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
- package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
- package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
- package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts +1144 -0
- package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/show/0.1/payload.js +695 -0
- package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts +1291 -0
- package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/card/update/0.1/payload.js +765 -0
- package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
- package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
- package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
- package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
- package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
- package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/export/0.1/payload.js +192 -0
- package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
- package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
- package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
- package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
- package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
- package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
- package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
- package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
- package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
- package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
- package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
- package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
- package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
- package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
- package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
- package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
- package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
- package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
- package/dist/vtc/groups/_shared/0.1/group.js +6 -0
- package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
- package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
- package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
- package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.js +631 -0
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
- package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/delete/0.1/payload.js +182 -0
- package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
- package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/join/0.1/payload.js +758 -0
- package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
- package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/leave/0.1/payload.js +179 -0
- package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
- package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/list/0.1/payload.js +674 -0
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
- package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
- package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
- package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
- package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
- package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
- package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
- package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
- package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/show/0.1/payload.js +619 -0
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
- package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/groups/update/0.1/payload.js +633 -0
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +696 -0
- package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/memberships/list/0.1/payload.js +402 -0
- package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +835 -1
- package/src/auth/oob/_shared/0.1/oob.ts +1 -1
- package/src/auth/oob/grant/0.2/payload.ts +186 -0
- package/src/auth/oob/prove/0.2/payload.ts +523 -0
- package/src/auth/oob/respond/0.2/payload.ts +178 -0
- package/src/device/list/0.1/payload.ts +2 -0
- package/src/device/list/0.2/payload.ts +2 -0
- package/src/device/register/0.1/payload.ts +2 -0
- package/src/device/register/0.2/payload.ts +2 -0
- package/src/index.ts +55 -0
- package/src/keys/sign-document/0.1/payload.ts +437 -0
- package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
- package/src/persona/contact/get/1.1/payload.ts +876 -0
- package/src/persona/contact/list/1.1/payload.ts +497 -0
- package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
- package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
- package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
- package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
- package/src/persona/contact/put/1.1/payload.ts +958 -0
- package/src/rooms/keys/act/0.5/payload.ts +380 -0
- package/src/rooms/keys/key-package/0.2/payload.ts +219 -0
- package/src/rooms/keys/seal/0.1/payload.ts +12 -2
- package/src/rooms/keys/seal/0.2/payload.ts +12 -2
- package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
- package/src/rooms/owner/register/0.2/payload.ts +415 -0
- package/src/rooms/records/get/0.1/payload.ts +12 -2
- package/src/rooms/records/get/0.2/payload.ts +12 -2
- package/src/rooms/records/put/0.1/payload.ts +12 -2
- package/src/rooms/records/put/0.2/payload.ts +12 -2
- package/src/vtc/_shared/0.1/community-room.ts +1 -1
- package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
- package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
- package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
- package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
- package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
- package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
- package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
- package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
- package/src/vtc/directory/card/show/0.1/payload.ts +732 -0
- package/src/vtc/directory/card/update/0.1/payload.ts +827 -0
- package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
- package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
- package/src/vtc/directory/export/0.1/payload.ts +241 -0
- package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
- package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
- package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
- package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
- package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
- package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
- package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
- package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
- package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
- package/src/vtc/groups/_shared/0.1/group.ts +23 -0
- package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
- package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
- package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
- package/src/vtc/groups/create/0.1/payload.ts +683 -0
- package/src/vtc/groups/delete/0.1/payload.ts +224 -0
- package/src/vtc/groups/join/0.1/payload.ts +807 -0
- package/src/vtc/groups/leave/0.1/payload.ts +219 -0
- package/src/vtc/groups/list/0.1/payload.ts +728 -0
- package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
- package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
- package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
- package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
- package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
- package/src/vtc/groups/show/0.1/payload.ts +652 -0
- package/src/vtc/groups/update/0.1/payload.ts +682 -0
- package/src/vtc/rooms/memberships/list/0.1/payload.ts +445 -0
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/register/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, Ext, RetentionPolicy, RevocationHead, Visibility } from "../../../../_shared/components.js";
|
|
6
|
+
export interface RoomsOwnerRegisterPayload {
|
|
7
|
+
/**
|
|
8
|
+
* The room being registered. Its identity exists already — this asks a host to store it, not to name it.
|
|
9
|
+
*/
|
|
10
|
+
roomId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).
|
|
13
|
+
*/
|
|
14
|
+
host: string;
|
|
15
|
+
/**
|
|
16
|
+
* The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.
|
|
17
|
+
*/
|
|
18
|
+
visibility: Visibility;
|
|
19
|
+
/**
|
|
20
|
+
* The accountable party, and the issuer of the rooms/create document the recipient sends on its behalf: the recipient signs it with a key of this DID that it holds, never as itself. Absent means the caller — a registration is normally made by the owner it names. A recipient holding no key for it refuses with permissionDenied before contacting the host.
|
|
21
|
+
*/
|
|
22
|
+
ownerDid?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.
|
|
25
|
+
*/
|
|
26
|
+
retentionPolicy?: RetentionPolicy;
|
|
27
|
+
/**
|
|
28
|
+
* How long the host is asked to hold the room after it lapses.
|
|
29
|
+
*/
|
|
30
|
+
retentionDays?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
33
|
+
*/
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.2#response.
|
|
38
|
+
*/
|
|
39
|
+
export interface RoomsOwnerRegisterResponsePayload {
|
|
40
|
+
roomId: string;
|
|
41
|
+
/**
|
|
42
|
+
* The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.
|
|
43
|
+
*/
|
|
44
|
+
host: string;
|
|
45
|
+
/**
|
|
46
|
+
* The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.
|
|
47
|
+
*/
|
|
48
|
+
epoch: number;
|
|
49
|
+
/**
|
|
50
|
+
* The room's revocation list as the recipient holds it, and what the host did with it. Present whenever the recipient holds a list for the room; absent only when it holds none. Anything but `inForce` means the host is serving the room without its withdrawals: it honours every credential the room has withdrawn until it accepts the list.
|
|
51
|
+
*/
|
|
52
|
+
revocation?: {
|
|
53
|
+
/**
|
|
54
|
+
* The list the recipient delivered.
|
|
55
|
+
*/
|
|
56
|
+
head: RevocationHead;
|
|
57
|
+
/**
|
|
58
|
+
* `inForce`: the host answered with this list's head. `pending`: the host did not answer, or answered with another head; the recipient goes on delivering it. `refused`: the host refused the list, with `code`; repeating the delivery changes nothing.
|
|
59
|
+
*/
|
|
60
|
+
status: "inForce" | "pending" | "refused";
|
|
61
|
+
/**
|
|
62
|
+
* The host's error code. Present exactly when `status` is `refused`.
|
|
63
|
+
*/
|
|
64
|
+
code?: string;
|
|
65
|
+
};
|
|
66
|
+
ext?: Ext;
|
|
67
|
+
}
|
|
68
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
69
|
+
export type { DigestMultibase, Ext, RetentionPolicy, RevocationHead, Visibility };
|
|
70
|
+
/** Trust Task type URI. */
|
|
71
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/register/0.2";
|
|
72
|
+
/** Stable alias for this specification's request payload shape. */
|
|
73
|
+
export type Payload = RoomsOwnerRegisterPayload;
|
|
74
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
75
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/register/0.2#response";
|
|
76
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
77
|
+
export type Response = RoomsOwnerRegisterResponsePayload;
|
|
78
|
+
/**
|
|
79
|
+
* This specification's payload schema, as a value.
|
|
80
|
+
*
|
|
81
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
82
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
83
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
84
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
85
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
86
|
+
*/
|
|
87
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
88
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
89
|
+
readonly $id: "https://trusttasks.org/spec/rooms/owner/register/0.2";
|
|
90
|
+
readonly title: "Rooms Owner Register — payload";
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly additionalProperties: false;
|
|
93
|
+
readonly required: readonly ["roomId", "host", "visibility"];
|
|
94
|
+
readonly properties: {
|
|
95
|
+
readonly roomId: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly description: "The room being registered. Its identity exists already — this asks a host to store it, not to name it.";
|
|
98
|
+
};
|
|
99
|
+
readonly host: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly description: "The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).";
|
|
102
|
+
};
|
|
103
|
+
readonly visibility: {
|
|
104
|
+
readonly $ref: "#/$defs/Visibility";
|
|
105
|
+
readonly description: "The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.";
|
|
106
|
+
};
|
|
107
|
+
readonly ownerDid: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly description: "The accountable party, and the issuer of the rooms/create document the recipient sends on its behalf: the recipient signs it with a key of this DID that it holds, never as itself. Absent means the caller — a registration is normally made by the owner it names. A recipient holding no key for it refuses with permissionDenied before contacting the host.";
|
|
110
|
+
};
|
|
111
|
+
readonly retentionPolicy: {
|
|
112
|
+
readonly $ref: "#/$defs/RetentionPolicy";
|
|
113
|
+
readonly description: "Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.";
|
|
114
|
+
};
|
|
115
|
+
readonly retentionDays: {
|
|
116
|
+
readonly type: "integer";
|
|
117
|
+
readonly minimum: 1;
|
|
118
|
+
readonly description: "How long the host is asked to hold the room after it lapses.";
|
|
119
|
+
};
|
|
120
|
+
readonly ext: {
|
|
121
|
+
readonly $ref: "#/$defs/Ext";
|
|
122
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly $defs: {
|
|
126
|
+
readonly Response: {
|
|
127
|
+
readonly $anchor: "response";
|
|
128
|
+
readonly title: "Rooms Owner Register — response payload";
|
|
129
|
+
readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.2#response.";
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
readonly required: readonly ["roomId", "host", "epoch"];
|
|
133
|
+
readonly properties: {
|
|
134
|
+
readonly roomId: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
};
|
|
137
|
+
readonly host: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
|
|
140
|
+
};
|
|
141
|
+
readonly epoch: {
|
|
142
|
+
readonly type: "integer";
|
|
143
|
+
readonly minimum: 1;
|
|
144
|
+
readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
|
|
145
|
+
};
|
|
146
|
+
readonly revocation: {
|
|
147
|
+
readonly type: "object";
|
|
148
|
+
readonly additionalProperties: false;
|
|
149
|
+
readonly required: readonly ["head", "status"];
|
|
150
|
+
readonly description: "The room's revocation list as the recipient holds it, and what the host did with it. Present whenever the recipient holds a list for the room; absent only when it holds none. Anything but `inForce` means the host is serving the room without its withdrawals: it honours every credential the room has withdrawn until it accepts the list.";
|
|
151
|
+
readonly properties: {
|
|
152
|
+
readonly head: {
|
|
153
|
+
readonly $ref: "#/$defs/RevocationHead";
|
|
154
|
+
readonly description: "The list the recipient delivered.";
|
|
155
|
+
};
|
|
156
|
+
readonly status: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly enum: readonly ["inForce", "pending", "refused"];
|
|
159
|
+
readonly description: "`inForce`: the host answered with this list's head. `pending`: the host did not answer, or answered with another head; the recipient goes on delivering it. `refused`: the host refused the list, with `code`; repeating the delivery changes nothing.";
|
|
160
|
+
};
|
|
161
|
+
readonly code: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly maxLength: 128;
|
|
164
|
+
readonly description: "The host's error code. Present exactly when `status` is `refused`.";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly ext: {
|
|
169
|
+
readonly $ref: "#/$defs/Ext";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly Ext: {
|
|
174
|
+
readonly title: "Ext";
|
|
175
|
+
readonly 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.";
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly minProperties: 1;
|
|
178
|
+
readonly additionalProperties: true;
|
|
179
|
+
readonly propertyNames: {
|
|
180
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly RevocationHead: {
|
|
184
|
+
readonly title: "RevocationHead";
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly additionalProperties: false;
|
|
187
|
+
readonly required: readonly ["sequence", "digest"];
|
|
188
|
+
readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
|
|
189
|
+
readonly properties: {
|
|
190
|
+
readonly sequence: {
|
|
191
|
+
readonly type: "integer";
|
|
192
|
+
readonly minimum: 1;
|
|
193
|
+
readonly description: "The list's `sequence`.";
|
|
194
|
+
};
|
|
195
|
+
readonly digest: {
|
|
196
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
197
|
+
readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly DigestMultibase: {
|
|
202
|
+
readonly title: "DigestMultibase";
|
|
203
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly minLength: 16;
|
|
206
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
207
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
208
|
+
};
|
|
209
|
+
readonly RetentionPolicy: {
|
|
210
|
+
readonly title: "RetentionPolicy";
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly enum: readonly ["chained", "fromJoin"];
|
|
213
|
+
readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
|
|
214
|
+
readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
|
|
215
|
+
};
|
|
216
|
+
readonly Visibility: {
|
|
217
|
+
readonly title: "Visibility";
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly enum: readonly ["open", "attributed", "private"];
|
|
220
|
+
readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
225
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
226
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
227
|
+
readonly $ref: "#/$defs/Response";
|
|
228
|
+
readonly $defs: {
|
|
229
|
+
readonly Response: {
|
|
230
|
+
readonly $anchor: "response";
|
|
231
|
+
readonly title: "Rooms Owner Register — response payload";
|
|
232
|
+
readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.2#response.";
|
|
233
|
+
readonly type: "object";
|
|
234
|
+
readonly additionalProperties: false;
|
|
235
|
+
readonly required: readonly ["roomId", "host", "epoch"];
|
|
236
|
+
readonly properties: {
|
|
237
|
+
readonly roomId: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
};
|
|
240
|
+
readonly host: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
|
|
243
|
+
};
|
|
244
|
+
readonly epoch: {
|
|
245
|
+
readonly type: "integer";
|
|
246
|
+
readonly minimum: 1;
|
|
247
|
+
readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
|
|
248
|
+
};
|
|
249
|
+
readonly revocation: {
|
|
250
|
+
readonly type: "object";
|
|
251
|
+
readonly additionalProperties: false;
|
|
252
|
+
readonly required: readonly ["head", "status"];
|
|
253
|
+
readonly description: "The room's revocation list as the recipient holds it, and what the host did with it. Present whenever the recipient holds a list for the room; absent only when it holds none. Anything but `inForce` means the host is serving the room without its withdrawals: it honours every credential the room has withdrawn until it accepts the list.";
|
|
254
|
+
readonly properties: {
|
|
255
|
+
readonly head: {
|
|
256
|
+
readonly $ref: "#/$defs/RevocationHead";
|
|
257
|
+
readonly description: "The list the recipient delivered.";
|
|
258
|
+
};
|
|
259
|
+
readonly status: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly enum: readonly ["inForce", "pending", "refused"];
|
|
262
|
+
readonly description: "`inForce`: the host answered with this list's head. `pending`: the host did not answer, or answered with another head; the recipient goes on delivering it. `refused`: the host refused the list, with `code`; repeating the delivery changes nothing.";
|
|
263
|
+
};
|
|
264
|
+
readonly code: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly maxLength: 128;
|
|
267
|
+
readonly description: "The host's error code. Present exactly when `status` is `refused`.";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
readonly ext: {
|
|
272
|
+
readonly $ref: "#/$defs/Ext";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
readonly Ext: {
|
|
277
|
+
readonly title: "Ext";
|
|
278
|
+
readonly 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.";
|
|
279
|
+
readonly type: "object";
|
|
280
|
+
readonly minProperties: 1;
|
|
281
|
+
readonly additionalProperties: true;
|
|
282
|
+
readonly propertyNames: {
|
|
283
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly RevocationHead: {
|
|
287
|
+
readonly title: "RevocationHead";
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly additionalProperties: false;
|
|
290
|
+
readonly required: readonly ["sequence", "digest"];
|
|
291
|
+
readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
|
|
292
|
+
readonly properties: {
|
|
293
|
+
readonly sequence: {
|
|
294
|
+
readonly type: "integer";
|
|
295
|
+
readonly minimum: 1;
|
|
296
|
+
readonly description: "The list's `sequence`.";
|
|
297
|
+
};
|
|
298
|
+
readonly digest: {
|
|
299
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
300
|
+
readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly DigestMultibase: {
|
|
305
|
+
readonly title: "DigestMultibase";
|
|
306
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly minLength: 16;
|
|
309
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
310
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
311
|
+
};
|
|
312
|
+
readonly RetentionPolicy: {
|
|
313
|
+
readonly title: "RetentionPolicy";
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly enum: readonly ["chained", "fromJoin"];
|
|
316
|
+
readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
|
|
317
|
+
readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
|
|
318
|
+
};
|
|
319
|
+
readonly Visibility: {
|
|
320
|
+
readonly title: "Visibility";
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly enum: readonly ["open", "attributed", "private"];
|
|
323
|
+
readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
329
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
330
|
+
* per-specification and cannot be derived from the document alone, and
|
|
331
|
+
* item 2 needs the schema this carries.
|
|
332
|
+
*/
|
|
333
|
+
export declare const SPEC: {
|
|
334
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/register/0.2";
|
|
335
|
+
readonly isBearer: false;
|
|
336
|
+
readonly isProofRequired: true;
|
|
337
|
+
readonly isRecipientRequired: true;
|
|
338
|
+
readonly isIssuedAtRequired: true;
|
|
339
|
+
readonly payloadSchema: {
|
|
340
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
341
|
+
readonly $id: "https://trusttasks.org/spec/rooms/owner/register/0.2";
|
|
342
|
+
readonly title: "Rooms Owner Register — payload";
|
|
343
|
+
readonly type: "object";
|
|
344
|
+
readonly additionalProperties: false;
|
|
345
|
+
readonly required: readonly ["roomId", "host", "visibility"];
|
|
346
|
+
readonly properties: {
|
|
347
|
+
readonly roomId: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly description: "The room being registered. Its identity exists already — this asks a host to store it, not to name it.";
|
|
350
|
+
};
|
|
351
|
+
readonly host: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly description: "The host to register with, as a DID. Named by the caller because a room has no host until this call succeeds, and because a room may be registered with more than one (a mirror serves reads while its primary takes writes).";
|
|
354
|
+
};
|
|
355
|
+
readonly visibility: {
|
|
356
|
+
readonly $ref: "#/$defs/Visibility";
|
|
357
|
+
readonly description: "The tier to create the room at. Passed through to `rooms/create`, whose description of the choice governs.";
|
|
358
|
+
};
|
|
359
|
+
readonly ownerDid: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly description: "The accountable party, and the issuer of the rooms/create document the recipient sends on its behalf: the recipient signs it with a key of this DID that it holds, never as itself. Absent means the caller — a registration is normally made by the owner it names. A recipient holding no key for it refuses with permissionDenied before contacting the host.";
|
|
362
|
+
};
|
|
363
|
+
readonly retentionPolicy: {
|
|
364
|
+
readonly $ref: "#/$defs/RetentionPolicy";
|
|
365
|
+
readonly description: "Whether the room keeps its history readable across a membership change. Immutable once set, so a caller that omits it is taking the host's default for the life of the room.";
|
|
366
|
+
};
|
|
367
|
+
readonly retentionDays: {
|
|
368
|
+
readonly type: "integer";
|
|
369
|
+
readonly minimum: 1;
|
|
370
|
+
readonly description: "How long the host is asked to hold the room after it lapses.";
|
|
371
|
+
};
|
|
372
|
+
readonly ext: {
|
|
373
|
+
readonly $ref: "#/$defs/Ext";
|
|
374
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly $defs: {
|
|
378
|
+
readonly Response: {
|
|
379
|
+
readonly $anchor: "response";
|
|
380
|
+
readonly title: "Rooms Owner Register — response payload";
|
|
381
|
+
readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.2#response.";
|
|
382
|
+
readonly type: "object";
|
|
383
|
+
readonly additionalProperties: false;
|
|
384
|
+
readonly required: readonly ["roomId", "host", "epoch"];
|
|
385
|
+
readonly properties: {
|
|
386
|
+
readonly roomId: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
};
|
|
389
|
+
readonly host: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
|
|
392
|
+
};
|
|
393
|
+
readonly epoch: {
|
|
394
|
+
readonly type: "integer";
|
|
395
|
+
readonly minimum: 1;
|
|
396
|
+
readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
|
|
397
|
+
};
|
|
398
|
+
readonly revocation: {
|
|
399
|
+
readonly type: "object";
|
|
400
|
+
readonly additionalProperties: false;
|
|
401
|
+
readonly required: readonly ["head", "status"];
|
|
402
|
+
readonly description: "The room's revocation list as the recipient holds it, and what the host did with it. Present whenever the recipient holds a list for the room; absent only when it holds none. Anything but `inForce` means the host is serving the room without its withdrawals: it honours every credential the room has withdrawn until it accepts the list.";
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly head: {
|
|
405
|
+
readonly $ref: "#/$defs/RevocationHead";
|
|
406
|
+
readonly description: "The list the recipient delivered.";
|
|
407
|
+
};
|
|
408
|
+
readonly status: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly enum: readonly ["inForce", "pending", "refused"];
|
|
411
|
+
readonly description: "`inForce`: the host answered with this list's head. `pending`: the host did not answer, or answered with another head; the recipient goes on delivering it. `refused`: the host refused the list, with `code`; repeating the delivery changes nothing.";
|
|
412
|
+
};
|
|
413
|
+
readonly code: {
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly maxLength: 128;
|
|
416
|
+
readonly description: "The host's error code. Present exactly when `status` is `refused`.";
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
readonly ext: {
|
|
421
|
+
readonly $ref: "#/$defs/Ext";
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly Ext: {
|
|
426
|
+
readonly title: "Ext";
|
|
427
|
+
readonly 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.";
|
|
428
|
+
readonly type: "object";
|
|
429
|
+
readonly minProperties: 1;
|
|
430
|
+
readonly additionalProperties: true;
|
|
431
|
+
readonly propertyNames: {
|
|
432
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
readonly RevocationHead: {
|
|
436
|
+
readonly title: "RevocationHead";
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly additionalProperties: false;
|
|
439
|
+
readonly required: readonly ["sequence", "digest"];
|
|
440
|
+
readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
|
|
441
|
+
readonly properties: {
|
|
442
|
+
readonly sequence: {
|
|
443
|
+
readonly type: "integer";
|
|
444
|
+
readonly minimum: 1;
|
|
445
|
+
readonly description: "The list's `sequence`.";
|
|
446
|
+
};
|
|
447
|
+
readonly digest: {
|
|
448
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
449
|
+
readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly DigestMultibase: {
|
|
454
|
+
readonly title: "DigestMultibase";
|
|
455
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
456
|
+
readonly type: "string";
|
|
457
|
+
readonly minLength: 16;
|
|
458
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
459
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
460
|
+
};
|
|
461
|
+
readonly RetentionPolicy: {
|
|
462
|
+
readonly title: "RetentionPolicy";
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly enum: readonly ["chained", "fromJoin"];
|
|
465
|
+
readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
|
|
466
|
+
readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
|
|
467
|
+
};
|
|
468
|
+
readonly Visibility: {
|
|
469
|
+
readonly title: "Visibility";
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly enum: readonly ["open", "attributed", "private"];
|
|
472
|
+
readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
/**
|
|
478
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
479
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
480
|
+
* parties (§7.3 item 5).
|
|
481
|
+
*/
|
|
482
|
+
export declare const RESPONSE_SPEC: {
|
|
483
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/owner/register/0.2#response";
|
|
484
|
+
readonly isBearer: false;
|
|
485
|
+
readonly isProofRequired: true;
|
|
486
|
+
readonly isRecipientRequired: true;
|
|
487
|
+
readonly isIssuedAtRequired: true;
|
|
488
|
+
readonly payloadSchema: {
|
|
489
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
490
|
+
readonly $ref: "#/$defs/Response";
|
|
491
|
+
readonly $defs: {
|
|
492
|
+
readonly Response: {
|
|
493
|
+
readonly $anchor: "response";
|
|
494
|
+
readonly title: "Rooms Owner Register — response payload";
|
|
495
|
+
readonly description: "Success response to rooms/owner/register. Type https://trusttasks.org/spec/rooms/owner/register/0.2#response.";
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly additionalProperties: false;
|
|
498
|
+
readonly required: readonly ["roomId", "host", "epoch"];
|
|
499
|
+
readonly properties: {
|
|
500
|
+
readonly roomId: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
};
|
|
503
|
+
readonly host: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly description: "The host that accepted it, echoed so a caller recording where its room lives records what the recipient actually reached rather than what it asked for.";
|
|
506
|
+
};
|
|
507
|
+
readonly epoch: {
|
|
508
|
+
readonly type: "integer";
|
|
509
|
+
readonly minimum: 1;
|
|
510
|
+
readonly description: "The epoch the room now stands at, as the host reports it. `1` for a room registered for the first time.";
|
|
511
|
+
};
|
|
512
|
+
readonly revocation: {
|
|
513
|
+
readonly type: "object";
|
|
514
|
+
readonly additionalProperties: false;
|
|
515
|
+
readonly required: readonly ["head", "status"];
|
|
516
|
+
readonly description: "The room's revocation list as the recipient holds it, and what the host did with it. Present whenever the recipient holds a list for the room; absent only when it holds none. Anything but `inForce` means the host is serving the room without its withdrawals: it honours every credential the room has withdrawn until it accepts the list.";
|
|
517
|
+
readonly properties: {
|
|
518
|
+
readonly head: {
|
|
519
|
+
readonly $ref: "#/$defs/RevocationHead";
|
|
520
|
+
readonly description: "The list the recipient delivered.";
|
|
521
|
+
};
|
|
522
|
+
readonly status: {
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
readonly enum: readonly ["inForce", "pending", "refused"];
|
|
525
|
+
readonly description: "`inForce`: the host answered with this list's head. `pending`: the host did not answer, or answered with another head; the recipient goes on delivering it. `refused`: the host refused the list, with `code`; repeating the delivery changes nothing.";
|
|
526
|
+
};
|
|
527
|
+
readonly code: {
|
|
528
|
+
readonly type: "string";
|
|
529
|
+
readonly maxLength: 128;
|
|
530
|
+
readonly description: "The host's error code. Present exactly when `status` is `refused`.";
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
readonly ext: {
|
|
535
|
+
readonly $ref: "#/$defs/Ext";
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
readonly Ext: {
|
|
540
|
+
readonly title: "Ext";
|
|
541
|
+
readonly 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.";
|
|
542
|
+
readonly type: "object";
|
|
543
|
+
readonly minProperties: 1;
|
|
544
|
+
readonly additionalProperties: true;
|
|
545
|
+
readonly propertyNames: {
|
|
546
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
readonly RevocationHead: {
|
|
550
|
+
readonly title: "RevocationHead";
|
|
551
|
+
readonly type: "object";
|
|
552
|
+
readonly additionalProperties: false;
|
|
553
|
+
readonly required: readonly ["sequence", "digest"];
|
|
554
|
+
readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
|
|
555
|
+
readonly properties: {
|
|
556
|
+
readonly sequence: {
|
|
557
|
+
readonly type: "integer";
|
|
558
|
+
readonly minimum: 1;
|
|
559
|
+
readonly description: "The list's `sequence`.";
|
|
560
|
+
};
|
|
561
|
+
readonly digest: {
|
|
562
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
563
|
+
readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly DigestMultibase: {
|
|
568
|
+
readonly title: "DigestMultibase";
|
|
569
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly minLength: 16;
|
|
572
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
573
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
574
|
+
};
|
|
575
|
+
readonly RetentionPolicy: {
|
|
576
|
+
readonly title: "RetentionPolicy";
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly enum: readonly ["chained", "fromJoin"];
|
|
579
|
+
readonly description: "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.";
|
|
580
|
+
readonly $comment: "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it.";
|
|
581
|
+
};
|
|
582
|
+
readonly Visibility: {
|
|
583
|
+
readonly title: "Visibility";
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly enum: readonly ["open", "attributed", "private"];
|
|
586
|
+
readonly description: "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.";
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/register/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAG3H,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE;QACX;;WAEG;QACH,IAAI,EAAE,cAAc,CAAC;QACrB;;WAEG;QACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;QAC1C;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC;AAElF,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,yBAAyB,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|