@openvtc/trust-tasks 0.28.7 → 0.28.9
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 +157 -0
- package/dist/_extends.d.ts.map +1 -1
- package/dist/_extends.js +6 -0
- package/dist/_extends.js.map +1 -1
- package/dist/_shared/components.d.ts +492 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +150 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +150 -0
- package/dist/index.js.map +1 -1
- package/dist/notifications/_shared/0.1/notification.d.ts +22 -0
- package/dist/notifications/_shared/0.1/notification.d.ts.map +1 -0
- package/dist/notifications/_shared/0.1/notification.js +6 -0
- package/dist/notifications/_shared/0.1/notification.js.map +1 -0
- package/dist/notifications/notify/0.1/payload.d.ts +652 -0
- package/dist/notifications/notify/0.1/payload.d.ts.map +1 -0
- package/dist/notifications/notify/0.1/payload.js +383 -0
- package/dist/notifications/notify/0.1/payload.js.map +1 -0
- package/dist/notifications/relay/0.1/payload.d.ts +309 -0
- package/dist/notifications/relay/0.1/payload.d.ts.map +1 -0
- package/dist/notifications/relay/0.1/payload.js +179 -0
- package/dist/notifications/relay/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.1/payload.js +1 -1
- package/dist/rooms/keys/act/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.10/payload.d.ts +560 -0
- package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.10/payload.js +319 -0
- package/dist/rooms/keys/act/0.10/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.2/payload.js +1 -1
- package/dist/rooms/keys/act/0.2/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.3/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.3/payload.js +1 -1
- package/dist/rooms/keys/act/0.3/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.4/payload.js +1 -1
- package/dist/rooms/keys/act/0.4/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.5/payload.js +1 -1
- package/dist/rooms/keys/act/0.5/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.6/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.6/payload.js +1 -1
- package/dist/rooms/keys/act/0.6/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.7/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.7/payload.js +1 -1
- package/dist/rooms/keys/act/0.7/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.8/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.8/payload.js +1 -1
- package/dist/rooms/keys/act/0.8/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.9/payload.d.ts +14 -2
- package/dist/rooms/keys/act/0.9/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.9/payload.js +1 -1
- package/dist/rooms/keys/act/0.9/payload.js.map +1 -1
- package/dist/voting/_shared/0.4/voting.d.ts +16 -0
- package/dist/voting/_shared/0.4/voting.d.ts.map +1 -0
- package/dist/voting/_shared/0.4/voting.js +6 -0
- package/dist/voting/_shared/0.4/voting.js.map +1 -0
- package/dist/voting/election/register/0.1/payload.d.ts +4 -4
- package/dist/voting/election/register/0.1/payload.js +1 -1
- package/dist/voting/election/register/0.2/payload.d.ts +4 -4
- package/dist/voting/election/register/0.2/payload.js +1 -1
- package/dist/voting/election/register/0.3/payload.d.ts +13 -2
- package/dist/voting/election/register/0.3/payload.d.ts.map +1 -1
- package/dist/voting/election/register/0.3/payload.js +1 -1
- package/dist/voting/election/register/0.3/payload.js.map +1 -1
- package/dist/voting/election/register/0.4/payload.d.ts +2054 -0
- package/dist/voting/election/register/0.4/payload.d.ts.map +1 -0
- package/dist/voting/election/register/0.4/payload.js +1264 -0
- package/dist/voting/election/register/0.4/payload.js.map +1 -0
- package/dist/voting/election/show/0.1/payload.d.ts +4 -4
- package/dist/voting/election/show/0.1/payload.js +1 -1
- package/dist/voting/election/show/0.2/payload.d.ts +4 -4
- package/dist/voting/election/show/0.2/payload.js +1 -1
- package/dist/voting/election/show/0.3/payload.d.ts +13 -2
- package/dist/voting/election/show/0.3/payload.d.ts.map +1 -1
- package/dist/voting/election/show/0.3/payload.js +1 -1
- package/dist/voting/election/show/0.3/payload.js.map +1 -1
- package/dist/voting/election/show/0.4/payload.d.ts +1958 -0
- package/dist/voting/election/show/0.4/payload.d.ts.map +1 -0
- package/dist/voting/election/show/0.4/payload.js +1210 -0
- package/dist/voting/election/show/0.4/payload.js.map +1 -0
- package/dist/vta/notifications/_shared/0.1/held-notification.d.ts +16 -0
- package/dist/vta/notifications/_shared/0.1/held-notification.d.ts.map +1 -0
- package/dist/vta/notifications/_shared/0.1/held-notification.js +6 -0
- package/dist/vta/notifications/_shared/0.1/held-notification.js.map +1 -0
- package/dist/vta/notifications/dismiss/0.1/payload.d.ts +300 -0
- package/dist/vta/notifications/dismiss/0.1/payload.d.ts.map +1 -0
- package/dist/vta/notifications/dismiss/0.1/payload.js +179 -0
- package/dist/vta/notifications/dismiss/0.1/payload.js.map +1 -0
- package/dist/vta/notifications/list/0.1/payload.d.ts +1100 -0
- package/dist/vta/notifications/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/notifications/list/0.1/payload.js +627 -0
- package/dist/vta/notifications/list/0.1/payload.js.map +1 -0
- package/dist/vta/notifications/show/0.1/payload.d.ts +1004 -0
- package/dist/vta/notifications/show/0.1/payload.d.ts.map +1 -0
- package/dist/vta/notifications/show/0.1/payload.js +595 -0
- package/dist/vta/notifications/show/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/deal/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/deal/0.3/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/deal/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts +13 -2
- package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.4/payload.js +1 -1
- package/dist/vta/pcs/trustee/deal/0.4/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.5/payload.d.ts +1966 -0
- package/dist/vta/pcs/trustee/deal/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.5/payload.js +1175 -0
- package/dist/vta/pcs/trustee/deal/0.5/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1 -1
- package/dist/vta/pcs/trustee/enrol/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/enrol/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts +13 -2
- package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/enrol/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/enrol/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/enrol/0.4/payload.d.ts +1890 -0
- package/dist/vta/pcs/trustee/enrol/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.4/payload.js +1138 -0
- package/dist/vta/pcs/trustee/enrol/0.4/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/justify/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/justify/0.3/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/justify/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts +13 -2
- package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/justify/0.4/payload.js +1 -1
- package/dist/vta/pcs/trustee/justify/0.4/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/justify/0.5/payload.d.ts +2001 -0
- package/dist/vta/pcs/trustee/justify/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.5/payload.js +1193 -0
- package/dist/vta/pcs/trustee/justify/0.5/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/keys/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/keys/0.3/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/keys/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts +13 -2
- package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/keys/0.4/payload.js +1 -1
- package/dist/vta/pcs/trustee/keys/0.4/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/keys/0.5/payload.d.ts +2046 -0
- package/dist/vta/pcs/trustee/keys/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.5/payload.js +1213 -0
- package/dist/vta/pcs/trustee/keys/0.5/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/read/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/read/0.1/payload.js +1 -1
- package/dist/vta/pcs/trustee/read/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/trustee/read/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/read/0.3/payload.d.ts +14 -2
- package/dist/vta/pcs/trustee/read/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/read/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/read/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/read/0.4/payload.d.ts +540 -0
- package/dist/vta/pcs/trustee/read/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/read/0.4/payload.js +304 -0
- package/dist/vta/pcs/trustee/read/0.4/payload.js.map +1 -0
- package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/vote/0.1/payload.js +1 -1
- package/dist/vta/pcs/vote/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/vote/0.2/payload.js +1 -1
- package/dist/vta/pcs/vote/0.3/payload.d.ts +13 -2
- package/dist/vta/pcs/vote/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote/0.3/payload.js +1 -1
- package/dist/vta/pcs/vote/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/vote/0.4/payload.d.ts +2342 -0
- package/dist/vta/pcs/vote/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote/0.4/payload.js +1380 -0
- package/dist/vta/pcs/vote/0.4/payload.js.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/vote-encrypted/0.2/payload.js +1 -1
- package/dist/vta/pcs/vote-encrypted/0.3/payload.d.ts +4 -4
- package/dist/vta/pcs/vote-encrypted/0.3/payload.js +1 -1
- package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts +13 -2
- package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.4/payload.js +1 -1
- package/dist/vta/pcs/vote-encrypted/0.4/payload.js.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.5/payload.d.ts +2362 -0
- package/dist/vta/pcs/vote-encrypted/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.5/payload.js +1398 -0
- package/dist/vta/pcs/vote-encrypted/0.5/payload.js.map +1 -0
- package/dist/vta/pcs/voter/accept/0.1/payload.d.ts +3 -3
- package/dist/vta/pcs/voter/accept/0.1/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.1/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.2/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.3/payload.d.ts +14 -2
- package/dist/vta/pcs/voter/read/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/read/0.3/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/voter/read/0.4/payload.d.ts +515 -0
- package/dist/vta/pcs/voter/read/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.4/payload.js +285 -0
- package/dist/vta/pcs/voter/read/0.4/payload.js.map +1 -0
- package/dist/vta/pcs/voter/read/0.5/payload.d.ts +549 -0
- package/dist/vta/pcs/voter/read/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.5/payload.js +300 -0
- package/dist/vta/pcs/voter/read/0.5/payload.js.map +1 -0
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts +561 -0
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.6/payload.js +312 -0
- package/dist/vta/pcs/voter/read/0.6/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/register/0.1/payload.js +1 -1
- package/dist/vta/pcs/voter/register/0.2/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/register/0.2/payload.js +1 -1
- package/dist/vta/pcs/voter/register/0.3/payload.d.ts +14 -2
- package/dist/vta/pcs/voter/register/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/register/0.3/payload.js +1 -1
- package/dist/vta/pcs/voter/register/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/voter/register/0.4/payload.d.ts +2324 -0
- package/dist/vta/pcs/voter/register/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/register/0.4/payload.js +1352 -0
- package/dist/vta/pcs/voter/register/0.4/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.5/payload.d.ts +2312 -0
- package/dist/vta/pcs/voter/register/0.5/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/register/0.5/payload.js +1352 -0
- package/dist/vta/pcs/voter/register/0.5/payload.js.map +1 -0
- package/dist/vtc/_shared/0.5/community-room.d.ts +16 -0
- package/dist/vtc/_shared/0.5/community-room.d.ts.map +1 -0
- package/dist/vtc/_shared/0.5/community-room.js +6 -0
- package/dist/vtc/_shared/0.5/community-room.js.map +1 -0
- package/dist/vtc/_shared/0.6/network-membership.d.ts +16 -0
- package/dist/vtc/_shared/0.6/network-membership.d.ts.map +1 -0
- package/dist/vtc/_shared/0.6/network-membership.js +6 -0
- package/dist/vtc/_shared/0.6/network-membership.js.map +1 -0
- package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/create/0.1/payload.js +1 -1
- package/dist/vtc/elections/create/0.2/payload.d.ts +4 -4
- package/dist/vtc/elections/create/0.2/payload.js +1 -1
- package/dist/vtc/elections/create/0.3/payload.d.ts +4 -4
- package/dist/vtc/elections/create/0.3/payload.js +1 -1
- package/dist/vtc/elections/create/0.4/payload.d.ts +14 -2
- package/dist/vtc/elections/create/0.4/payload.d.ts.map +1 -1
- package/dist/vtc/elections/create/0.4/payload.js +1 -1
- package/dist/vtc/elections/create/0.4/payload.js.map +1 -1
- package/dist/vtc/elections/create/0.5/payload.d.ts +1790 -0
- package/dist/vtc/elections/create/0.5/payload.d.ts.map +1 -0
- package/dist/vtc/elections/create/0.5/payload.js +1092 -0
- package/dist/vtc/elections/create/0.5/payload.js.map +1 -0
- package/dist/vtc/elections/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/list/0.1/payload.js +1 -1
- package/dist/vtc/elections/list/0.2/payload.d.ts +4 -4
- package/dist/vtc/elections/list/0.2/payload.js +1 -1
- package/dist/vtc/elections/list/0.3/payload.d.ts +14 -2
- package/dist/vtc/elections/list/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/elections/list/0.3/payload.js +1 -1
- package/dist/vtc/elections/list/0.3/payload.js.map +1 -1
- package/dist/vtc/elections/list/0.4/payload.d.ts +547 -0
- package/dist/vtc/elections/list/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/elections/list/0.4/payload.js +304 -0
- package/dist/vtc/elections/list/0.4/payload.js.map +1 -0
- package/dist/vtc/elections/list/0.5/payload.d.ts +535 -0
- package/dist/vtc/elections/list/0.5/payload.d.ts.map +1 -0
- package/dist/vtc/elections/list/0.5/payload.js +304 -0
- package/dist/vtc/elections/list/0.5/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/show/0.1/payload.js +1 -1
- package/dist/vtc/elections/show/0.2/payload.d.ts +4 -4
- package/dist/vtc/elections/show/0.2/payload.js +1 -1
- package/dist/vtc/elections/show/0.3/payload.d.ts +14 -2
- package/dist/vtc/elections/show/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/elections/show/0.3/payload.js +1 -1
- package/dist/vtc/elections/show/0.3/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.4/payload.d.ts +3290 -0
- package/dist/vtc/elections/show/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.4/payload.js +1931 -0
- package/dist/vtc/elections/show/0.4/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.5/payload.d.ts +3318 -0
- package/dist/vtc/elections/show/0.5/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.5/payload.js +1946 -0
- package/dist/vtc/elections/show/0.5/payload.js.map +1 -0
- package/dist/vtc/elections/show/0.6/payload.d.ts +3306 -0
- package/dist/vtc/elections/show/0.6/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.6/payload.js +1946 -0
- package/dist/vtc/elections/show/0.6/payload.js.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts +14 -2
- package/dist/vtc/elections/tickets/issue/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/elections/tickets/issue/0.1/payload.js +1 -1
- package/dist/vtc/elections/tickets/issue/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/tickets/issue/0.2/payload.d.ts +651 -0
- package/dist/vtc/elections/tickets/issue/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.2/payload.js +347 -0
- package/dist/vtc/elections/tickets/issue/0.2/payload.js.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.3/payload.d.ts +639 -0
- package/dist/vtc/elections/tickets/issue/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tickets/issue/0.3/payload.js +347 -0
- package/dist/vtc/elections/tickets/issue/0.3/payload.js.map +1 -0
- package/dist/vtc/networks/evidence/0.1/payload.d.ts +412 -0
- package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/evidence/0.1/payload.js +233 -0
- package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts +680 -0
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/groups/register/0.1/payload.js +401 -0
- package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/join/0.1/payload.d.ts +760 -0
- package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/join/0.1/payload.js +445 -0
- package/dist/vtc/networks/join/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/leave/0.1/payload.d.ts +664 -0
- package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/leave/0.1/payload.js +393 -0
- package/dist/vtc/networks/leave/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/list/0.1/payload.d.ts +713 -0
- package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/list/0.1/payload.js +417 -0
- package/dist/vtc/networks/list/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/notice/0.1/payload.d.ts +210 -0
- package/dist/vtc/networks/notice/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/notice/0.1/payload.js +116 -0
- package/dist/vtc/networks/notice/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts +680 -0
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/repudiate/0.1/payload.js +400 -0
- package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/show/0.1/payload.d.ts +650 -0
- package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/show/0.1/payload.js +388 -0
- package/dist/vtc/networks/show/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/archive/0.1/payload.d.ts +1644 -0
- package/dist/vtc/rooms/community/archive/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/archive/0.1/payload.js +940 -0
- package/dist/vtc/rooms/community/archive/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/get/0.1/payload.js +1 -1
- package/dist/vtc/rooms/community/get/0.2/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/get/0.2/payload.js +1 -1
- package/dist/vtc/rooms/community/get/0.3/payload.d.ts +13 -2
- package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/get/0.3/payload.js +1 -1
- package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -1
- package/dist/vtc/rooms/community/get/0.4/payload.d.ts +1405 -0
- package/dist/vtc/rooms/community/get/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/get/0.4/payload.js +817 -0
- package/dist/vtc/rooms/community/get/0.4/payload.js.map +1 -0
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/list/0.1/payload.js +1 -1
- package/dist/vtc/rooms/community/list/0.2/payload.d.ts +4 -4
- package/dist/vtc/rooms/community/list/0.2/payload.js +1 -1
- package/dist/vtc/rooms/community/list/0.3/payload.d.ts +13 -2
- package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/list/0.3/payload.js +1 -1
- package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -1
- package/dist/vtc/rooms/community/list/0.4/payload.d.ts +1505 -0
- package/dist/vtc/rooms/community/list/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/list/0.4/payload.js +854 -0
- package/dist/vtc/rooms/community/list/0.4/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts +13 -2
- package/dist/vtc/rooms/community/members/add/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/members/add/0.1/payload.js +1 -1
- package/dist/vtc/rooms/community/members/add/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts +569 -0
- package/dist/vtc/rooms/community/members/add/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/add/0.2/payload.js +340 -0
- package/dist/vtc/rooms/community/members/add/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts +13 -2
- package/dist/vtc/rooms/community/members/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/members/list/0.1/payload.js +1 -1
- package/dist/vtc/rooms/community/members/list/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts +588 -0
- package/dist/vtc/rooms/community/members/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/members/list/0.2/payload.js +341 -0
- package/dist/vtc/rooms/community/members/list/0.2/payload.js.map +1 -0
- package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts +1440 -0
- package/dist/vtc/rooms/community/removal/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js +835 -0
- package/dist/vtc/rooms/community/removal/cancel/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/remove/0.1/payload.d.ts +1604 -0
- package/dist/vtc/rooms/community/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/remove/0.1/payload.js +921 -0
- package/dist/vtc/rooms/community/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts +1460 -0
- package/dist/vtc/rooms/community/unarchive/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/unarchive/0.1/payload.js +845 -0
- package/dist/vtc/rooms/community/unarchive/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +13 -2
- package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/memberships/list/0.1/payload.js +1 -1
- package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts +830 -0
- package/dist/vtc/rooms/memberships/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/memberships/list/0.2/payload.js +498 -0
- package/dist/vtc/rooms/memberships/list/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_extends.ts +6 -0
- package/src/_shared/components.ts +497 -0
- package/src/index.ts +150 -0
- package/src/notifications/_shared/0.1/notification.ts +23 -0
- package/src/notifications/notify/0.1/payload.ts +420 -0
- package/src/notifications/relay/0.1/payload.ts +220 -0
- package/src/rooms/keys/act/0.1/payload.ts +5 -5
- package/src/rooms/keys/act/0.10/payload.ts +396 -0
- package/src/rooms/keys/act/0.2/payload.ts +5 -5
- package/src/rooms/keys/act/0.3/payload.ts +5 -5
- package/src/rooms/keys/act/0.4/payload.ts +5 -5
- package/src/rooms/keys/act/0.5/payload.ts +5 -5
- package/src/rooms/keys/act/0.6/payload.ts +5 -5
- package/src/rooms/keys/act/0.7/payload.ts +5 -5
- package/src/rooms/keys/act/0.8/payload.ts +5 -5
- package/src/rooms/keys/act/0.9/payload.ts +15 -3
- package/src/voting/_shared/0.4/voting.ts +17 -0
- package/src/voting/election/register/0.1/payload.ts +5 -5
- package/src/voting/election/register/0.2/payload.ts +5 -5
- package/src/voting/election/register/0.3/payload.ts +14 -3
- package/src/voting/election/register/0.4/payload.ts +1307 -0
- package/src/voting/election/show/0.1/payload.ts +5 -5
- package/src/voting/election/show/0.2/payload.ts +5 -5
- package/src/voting/election/show/0.3/payload.ts +14 -3
- package/src/voting/election/show/0.4/payload.ts +1249 -0
- package/src/vta/notifications/_shared/0.1/held-notification.ts +17 -0
- package/src/vta/notifications/dismiss/0.1/payload.ts +214 -0
- package/src/vta/notifications/list/0.1/payload.ts +688 -0
- package/src/vta/notifications/show/0.1/payload.ts +630 -0
- package/src/vta/pcs/trustee/deal/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/deal/0.3/payload.ts +5 -5
- package/src/vta/pcs/trustee/deal/0.4/payload.ts +14 -3
- package/src/vta/pcs/trustee/deal/0.5/payload.ts +1248 -0
- package/src/vta/pcs/trustee/enrol/0.1/payload.ts +5 -5
- package/src/vta/pcs/trustee/enrol/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/enrol/0.3/payload.ts +14 -3
- package/src/vta/pcs/trustee/enrol/0.4/payload.ts +1207 -0
- package/src/vta/pcs/trustee/justify/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/justify/0.3/payload.ts +5 -5
- package/src/vta/pcs/trustee/justify/0.4/payload.ts +14 -3
- package/src/vta/pcs/trustee/justify/0.5/payload.ts +1267 -0
- package/src/vta/pcs/trustee/keys/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/keys/0.3/payload.ts +5 -5
- package/src/vta/pcs/trustee/keys/0.4/payload.ts +14 -3
- package/src/vta/pcs/trustee/keys/0.5/payload.ts +1294 -0
- package/src/vta/pcs/trustee/read/0.1/payload.ts +5 -5
- package/src/vta/pcs/trustee/read/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/read/0.3/payload.ts +15 -3
- package/src/vta/pcs/trustee/read/0.4/payload.ts +385 -0
- package/src/vta/pcs/vote/0.1/payload.ts +5 -5
- package/src/vta/pcs/vote/0.2/payload.ts +5 -5
- package/src/vta/pcs/vote/0.3/payload.ts +14 -3
- package/src/vta/pcs/vote/0.4/payload.ts +1465 -0
- package/src/vta/pcs/vote-encrypted/0.2/payload.ts +5 -5
- package/src/vta/pcs/vote-encrypted/0.3/payload.ts +5 -5
- package/src/vta/pcs/vote-encrypted/0.4/payload.ts +14 -3
- package/src/vta/pcs/vote-encrypted/0.5/payload.ts +1469 -0
- package/src/vta/pcs/voter/accept/0.1/payload.ts +2 -2
- package/src/vta/pcs/voter/read/0.1/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.2/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.3/payload.ts +15 -3
- package/src/vta/pcs/voter/read/0.4/payload.ts +375 -0
- package/src/vta/pcs/voter/read/0.5/payload.ts +394 -0
- package/src/vta/pcs/voter/read/0.6/payload.ts +398 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +5 -5
- package/src/vta/pcs/voter/register/0.2/payload.ts +5 -5
- package/src/vta/pcs/voter/register/0.3/payload.ts +15 -3
- package/src/vta/pcs/voter/register/0.4/payload.ts +1478 -0
- package/src/vta/pcs/voter/register/0.5/payload.ts +1466 -0
- package/src/vtc/_shared/0.5/community-room.ts +17 -0
- package/src/vtc/_shared/0.6/network-membership.ts +17 -0
- package/src/vtc/elections/create/0.1/payload.ts +5 -5
- package/src/vtc/elections/create/0.2/payload.ts +5 -5
- package/src/vtc/elections/create/0.3/payload.ts +5 -5
- package/src/vtc/elections/create/0.4/payload.ts +15 -3
- package/src/vtc/elections/create/0.5/payload.ts +1141 -0
- package/src/vtc/elections/list/0.1/payload.ts +5 -5
- package/src/vtc/elections/list/0.2/payload.ts +5 -5
- package/src/vtc/elections/list/0.3/payload.ts +15 -3
- package/src/vtc/elections/list/0.4/payload.ts +399 -0
- package/src/vtc/elections/list/0.5/payload.ts +387 -0
- package/src/vtc/elections/show/0.1/payload.ts +5 -5
- package/src/vtc/elections/show/0.2/payload.ts +5 -5
- package/src/vtc/elections/show/0.3/payload.ts +15 -3
- package/src/vtc/elections/show/0.4/payload.ts +2043 -0
- package/src/vtc/elections/show/0.5/payload.ts +2062 -0
- package/src/vtc/elections/show/0.6/payload.ts +2050 -0
- package/src/vtc/elections/tickets/issue/0.1/payload.ts +15 -3
- package/src/vtc/elections/tickets/issue/0.2/payload.ts +441 -0
- package/src/vtc/elections/tickets/issue/0.3/payload.ts +429 -0
- package/src/vtc/networks/evidence/0.1/payload.ts +290 -0
- package/src/vtc/networks/groups/register/0.1/payload.ts +446 -0
- package/src/vtc/networks/join/0.1/payload.ts +492 -0
- package/src/vtc/networks/leave/0.1/payload.ts +434 -0
- package/src/vtc/networks/list/0.1/payload.ts +463 -0
- package/src/vtc/networks/notice/0.1/payload.ts +172 -0
- package/src/vtc/networks/repudiate/0.1/payload.ts +445 -0
- package/src/vtc/networks/show/0.1/payload.ts +425 -0
- package/src/vtc/rooms/community/archive/0.1/payload.ts +995 -0
- package/src/vtc/rooms/community/get/0.1/payload.ts +5 -5
- package/src/vtc/rooms/community/get/0.2/payload.ts +5 -5
- package/src/vtc/rooms/community/get/0.3/payload.ts +14 -3
- package/src/vtc/rooms/community/get/0.4/payload.ts +851 -0
- package/src/vtc/rooms/community/list/0.1/payload.ts +5 -5
- package/src/vtc/rooms/community/list/0.2/payload.ts +5 -5
- package/src/vtc/rooms/community/list/0.3/payload.ts +14 -3
- package/src/vtc/rooms/community/list/0.4/payload.ts +915 -0
- package/src/vtc/rooms/community/members/add/0.1/payload.ts +14 -3
- package/src/vtc/rooms/community/members/add/0.2/payload.ts +384 -0
- package/src/vtc/rooms/community/members/list/0.1/payload.ts +14 -3
- package/src/vtc/rooms/community/members/list/0.2/payload.ts +394 -0
- package/src/vtc/rooms/community/removal/cancel/0.1/payload.ts +870 -0
- package/src/vtc/rooms/community/remove/0.1/payload.ts +968 -0
- package/src/vtc/rooms/community/unarchive/0.1/payload.ts +884 -0
- package/src/vtc/rooms/memberships/list/0.1/payload.ts +14 -3
- package/src/vtc/rooms/memberships/list/0.2/payload.ts +543 -0
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/rooms/community/archive/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/community/archive/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = null;
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
22
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/community/archive/0.1#response";
|
|
23
|
+
/**
|
|
24
|
+
* This specification's payload schema, as a value.
|
|
25
|
+
*
|
|
26
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
27
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
28
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
29
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
30
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
31
|
+
*/
|
|
32
|
+
export const PAYLOAD_SCHEMA = {
|
|
33
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
34
|
+
"$id": "https://trusttasks.org/spec/vtc/rooms/community/archive/0.1",
|
|
35
|
+
"title": "VTC Rooms Community Archive — payload",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": [
|
|
39
|
+
"roomId",
|
|
40
|
+
"access",
|
|
41
|
+
"reason"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"roomId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 512,
|
|
48
|
+
"description": "The room's identifier: its DID."
|
|
49
|
+
},
|
|
50
|
+
"access": {
|
|
51
|
+
"$ref": "#/$defs/ArchiveAccess",
|
|
52
|
+
"description": "What the room's members may still do once it is archived. On a room already archived, the access to move it to."
|
|
53
|
+
},
|
|
54
|
+
"reason": {
|
|
55
|
+
"$ref": "#/$defs/Reason"
|
|
56
|
+
},
|
|
57
|
+
"ext": {
|
|
58
|
+
"$ref": "#/$defs/Ext"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$defs": {
|
|
62
|
+
"Response": {
|
|
63
|
+
"$anchor": "response",
|
|
64
|
+
"title": "VTC Rooms Community Archive — response payload",
|
|
65
|
+
"description": "Success response to vtc/rooms/community/archive. Type https://trusttasks.org/spec/vtc/rooms/community/archive/0.1#response. The room as it now stands; whether anything changed; and, where the community's VTA withdrew credentials at the room's host, the revocation list in force there.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"room",
|
|
70
|
+
"changed"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"room": {
|
|
74
|
+
"$ref": "#/$defs/CommunityRoomV3"
|
|
75
|
+
},
|
|
76
|
+
"changed": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "`false` when the room was already archived with `access`: nothing was written, withdrawn or audited."
|
|
79
|
+
},
|
|
80
|
+
"withdrawnOffers": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 1,
|
|
83
|
+
"description": "Open offers this archival withdrew. Absent when there were none."
|
|
84
|
+
},
|
|
85
|
+
"revocation": {
|
|
86
|
+
"$ref": "#/$defs/RevocationHead",
|
|
87
|
+
"description": "Present when the community's VTA withdrew credentials at the room's host — a room reset for `noAccess`, or the open offers' credentials on an `open` or `attributed` room for `readOnly` — as the host accepted it."
|
|
88
|
+
},
|
|
89
|
+
"revokedAt": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"format": "date-time",
|
|
92
|
+
"description": "Present with `revocation`: the withdrawal's time. The host refuses every credential the withdrawal names that was issued before it."
|
|
93
|
+
},
|
|
94
|
+
"ext": {
|
|
95
|
+
"$ref": "#/$defs/Ext"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"Ext": {
|
|
100
|
+
"title": "Ext",
|
|
101
|
+
"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.",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"minProperties": 1,
|
|
104
|
+
"additionalProperties": true,
|
|
105
|
+
"propertyNames": {
|
|
106
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"RevocationHead": {
|
|
110
|
+
"title": "RevocationHead",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"sequence",
|
|
115
|
+
"digest"
|
|
116
|
+
],
|
|
117
|
+
"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.",
|
|
118
|
+
"properties": {
|
|
119
|
+
"sequence": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 1,
|
|
122
|
+
"description": "The list's `sequence`."
|
|
123
|
+
},
|
|
124
|
+
"digest": {
|
|
125
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
126
|
+
"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."
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"DigestMultibase": {
|
|
131
|
+
"title": "DigestMultibase",
|
|
132
|
+
"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`.",
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 16,
|
|
135
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
136
|
+
"examples": [
|
|
137
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"CommunityRoomV3": {
|
|
141
|
+
"title": "CommunityRoomV3",
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"required": [
|
|
145
|
+
"room",
|
|
146
|
+
"label",
|
|
147
|
+
"admitted",
|
|
148
|
+
"offered",
|
|
149
|
+
"status"
|
|
150
|
+
],
|
|
151
|
+
"description": "What vtc/rooms/community/{get,list}/0.4 and vtc/rooms/community/{archive,unarchive,remove,removal/cancel}/0.1 return: `CommunityRoomV2` plus the room's `status` in its owner's lifecycle and the count of `suspended` admissions. A separate definition, not a change to `CommunityRoomV2`, so that the versions returning that keep the exact shape they published. For a room in state `purging` or `removed`, whose host record a purge deletes, `room` is the host record as it last stood before the purge began — the community keeps that snapshot with the room's record when the purge starts — and its `lifecycle` is what was computed then.",
|
|
152
|
+
"properties": {
|
|
153
|
+
"room": {
|
|
154
|
+
"$ref": "#/$defs/HostedRoom"
|
|
155
|
+
},
|
|
156
|
+
"label": {
|
|
157
|
+
"$ref": "#/$defs/RoomLabel"
|
|
158
|
+
},
|
|
159
|
+
"status": {
|
|
160
|
+
"$ref": "#/$defs/RoomStatus"
|
|
161
|
+
},
|
|
162
|
+
"description": {
|
|
163
|
+
"$ref": "#/$defs/RoomDescription",
|
|
164
|
+
"description": "Absent when the room has none."
|
|
165
|
+
},
|
|
166
|
+
"tags": {
|
|
167
|
+
"$ref": "#/$defs/RoomTags",
|
|
168
|
+
"description": "Absent or empty when the room has none."
|
|
169
|
+
},
|
|
170
|
+
"storageConfig": {
|
|
171
|
+
"$ref": "#/$defs/StorageConfigId",
|
|
172
|
+
"description": "The storage config receiving the room's new uploads."
|
|
173
|
+
},
|
|
174
|
+
"admitted": {
|
|
175
|
+
"type": "integer",
|
|
176
|
+
"minimum": 0,
|
|
177
|
+
"description": "Members in state `admitted`."
|
|
178
|
+
},
|
|
179
|
+
"offered": {
|
|
180
|
+
"type": "integer",
|
|
181
|
+
"minimum": 0,
|
|
182
|
+
"description": "Offers not yet accepted or withdrawn."
|
|
183
|
+
},
|
|
184
|
+
"suspended": {
|
|
185
|
+
"type": "integer",
|
|
186
|
+
"minimum": 0,
|
|
187
|
+
"description": "Admissions in state `suspended`: withdrawn while the room was archived with `noAccess`, and restored when it leaves that state. Absent when zero."
|
|
188
|
+
},
|
|
189
|
+
"ownerAuthorityValidUntil": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"format": "date-time",
|
|
192
|
+
"description": "When the community's own `admin` authority over the room expires. A room whose owner's authority lapses can no longer advance its epoch, admit or remove; a community SHOULD renew it well before."
|
|
193
|
+
},
|
|
194
|
+
"createdBy": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^did:",
|
|
197
|
+
"maxLength": 2048,
|
|
198
|
+
"description": "The administrator who created it."
|
|
199
|
+
},
|
|
200
|
+
"detailsUpdatedAt": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"format": "date-time",
|
|
203
|
+
"description": "When `label`, `description` or `tags` last changed. Absent until the first change after creation. Distinct from `room.updatedAt`, which is the host record's and moves with the room's epoch and lifecycle."
|
|
204
|
+
},
|
|
205
|
+
"detailsUpdatedBy": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^did:",
|
|
208
|
+
"maxLength": 2048,
|
|
209
|
+
"description": "The administrator who made that change. Present exactly when `detailsUpdatedAt` is. The earlier values and who set them are in the community's audit trail, not here."
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"RoomTags": {
|
|
214
|
+
"title": "RoomTags",
|
|
215
|
+
"type": "array",
|
|
216
|
+
"maxItems": 8,
|
|
217
|
+
"uniqueItems": true,
|
|
218
|
+
"items": {
|
|
219
|
+
"$ref": "#/$defs/RoomTag"
|
|
220
|
+
},
|
|
221
|
+
"description": "The room's tags, at most eight, as a set: order carries no meaning. An empty list means the room has none — a tag grants nothing, so empty has no more dangerous reading."
|
|
222
|
+
},
|
|
223
|
+
"RoomTag": {
|
|
224
|
+
"title": "RoomTag",
|
|
225
|
+
"type": "string",
|
|
226
|
+
"minLength": 1,
|
|
227
|
+
"maxLength": 32,
|
|
228
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,31}$",
|
|
229
|
+
"description": "A short identifier an administrator files a community-owned room under — `board`, `working-group`, `finance` — so the room list can be filtered. Lower-case letters, digits and hyphens, starting with a letter or digit. Owner-side tracking metadata for holders of `vtc.rooms.manage` only: never shown to members, never sent on the room's host path, and it confers nothing."
|
|
230
|
+
},
|
|
231
|
+
"RoomDescription": {
|
|
232
|
+
"title": "RoomDescription",
|
|
233
|
+
"type": "string",
|
|
234
|
+
"minLength": 1,
|
|
235
|
+
"maxLength": 1000,
|
|
236
|
+
"description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
237
|
+
},
|
|
238
|
+
"RoomStatus": {
|
|
239
|
+
"title": "RoomStatus",
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"state"
|
|
244
|
+
],
|
|
245
|
+
"description": "A room's state in its owner's lifecycle, and what that state needs to be understood.",
|
|
246
|
+
"properties": {
|
|
247
|
+
"state": {
|
|
248
|
+
"$ref": "#/$defs/RoomState"
|
|
249
|
+
},
|
|
250
|
+
"access": {
|
|
251
|
+
"$ref": "#/$defs/ArchiveAccess",
|
|
252
|
+
"description": "Present exactly when `state` is `archived` or `removalScheduled`; always `noAccess` for `removalScheduled`."
|
|
253
|
+
},
|
|
254
|
+
"changedAt": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"format": "date-time",
|
|
257
|
+
"description": "When the room entered `state`. Absent for a room that has been `active` since it was created."
|
|
258
|
+
},
|
|
259
|
+
"changedBy": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"pattern": "^did:",
|
|
262
|
+
"maxLength": 2048,
|
|
263
|
+
"description": "The administrator whose act put the room in `state`. Present exactly when `changedAt` is, except for `purging` and `removed` reached when a grace period ended, which no one did at that moment: then the administrator who scheduled the removal. The reason each gave is in the community's audit trail, not here."
|
|
264
|
+
},
|
|
265
|
+
"purgeAt": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"format": "date-time",
|
|
268
|
+
"description": "Present when `state` is `removalScheduled`: when the grace period ends and the purge begins. Kept when `state` is `purging` or `removed`, as when it became due."
|
|
269
|
+
},
|
|
270
|
+
"purge": {
|
|
271
|
+
"$ref": "#/$defs/PurgeProgress",
|
|
272
|
+
"description": "Present exactly when `state` is `purging`."
|
|
273
|
+
},
|
|
274
|
+
"removedAt": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"format": "date-time",
|
|
277
|
+
"description": "Present exactly when `state` is `removed`: when the last of the room's content was deleted."
|
|
278
|
+
},
|
|
279
|
+
"restoring": {
|
|
280
|
+
"type": "integer",
|
|
281
|
+
"minimum": 1,
|
|
282
|
+
"description": "Admissions still `suspended` that the community is restoring, after the room left `noAccess` — the room re-issues each member's credentials and the member collects them as a renewal. Absent when there are none."
|
|
283
|
+
},
|
|
284
|
+
"pendingChange": {
|
|
285
|
+
"$ref": "#/$defs/PendingChange",
|
|
286
|
+
"description": "Present while a change of state is begun and not finished."
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"PendingChange": {
|
|
291
|
+
"title": "PendingChange",
|
|
292
|
+
"type": "object",
|
|
293
|
+
"additionalProperties": false,
|
|
294
|
+
"required": [
|
|
295
|
+
"state",
|
|
296
|
+
"beganAt"
|
|
297
|
+
],
|
|
298
|
+
"description": "A change of state the community began and has not finished, because a step at its VTA did not complete — most often a room reset the host accepted, after which the community's own credentials must be re-issued before it can act on the room again. `RoomStatus.state` stays what it was until the change finishes, but what the room's host enforces may already be the new state's: a pending move to `noAccess` means members' credentials may already be refused. The community finishes it by itself, retrying with backoff, and repeating the request that began it finishes it too; nothing else changes the room until it is finished.",
|
|
299
|
+
"properties": {
|
|
300
|
+
"state": {
|
|
301
|
+
"$ref": "#/$defs/RoomState",
|
|
302
|
+
"description": "The state the change leads to."
|
|
303
|
+
},
|
|
304
|
+
"access": {
|
|
305
|
+
"$ref": "#/$defs/ArchiveAccess",
|
|
306
|
+
"description": "The access it leads to, where `state` has one."
|
|
307
|
+
},
|
|
308
|
+
"beganAt": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"format": "date-time"
|
|
311
|
+
},
|
|
312
|
+
"lastError": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"minLength": 1,
|
|
315
|
+
"maxLength": 500,
|
|
316
|
+
"description": "What stopped the last attempt, for an administrator. Plain text; it names no member and carries no credential."
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"ArchiveAccess": {
|
|
321
|
+
"title": "ArchiveAccess",
|
|
322
|
+
"type": "string",
|
|
323
|
+
"enum": [
|
|
324
|
+
"readOnly",
|
|
325
|
+
"noAccess"
|
|
326
|
+
],
|
|
327
|
+
"description": "What an archived room's members may still do. `readOnly`: their credentials stand and they keep reading what the room holds; the room's host refuses every write, upload and curation from a member. `noAccess`: every credential the room issued before the archival is withdrawn at its host — a room reset — so the host refuses every member's every task; the content is kept intact, and each withdrawn admission is `suspended`, restored when the room is unarchived or made `readOnly`. Neither recalls what a member already read or saved, and on a sealed tier neither removes anyone from the room's group."
|
|
328
|
+
},
|
|
329
|
+
"RoomState": {
|
|
330
|
+
"title": "RoomState",
|
|
331
|
+
"type": "string",
|
|
332
|
+
"enum": [
|
|
333
|
+
"active",
|
|
334
|
+
"archived",
|
|
335
|
+
"removalScheduled",
|
|
336
|
+
"purging",
|
|
337
|
+
"removed"
|
|
338
|
+
],
|
|
339
|
+
"description": "Where a room the community owns stands in its owner's lifecycle — distinct from `HostedRoom.lifecycle`, which is the host's clock (`live`, `lapsed`, `dormant`, `reclaimable`) and is computed from the room's epoch, never set. `active`: open to change. `archived`: closed to change by an administrator — no admissions, and the room's host accepts no writes from its members; what members may still do is `ArchiveAccess`. Reversible with vtc/rooms/community/unarchive. `removalScheduled`: an administrator removed the room with a grace period; it admits nobody and its content is kept until `purgeAt`, and vtc/rooms/community/removal/cancel returns it to `archived`. `purging`: the grace period ended (or there was none) and the community is deleting the room's content from its host and storage; not reversible. `removed`: the content is gone; the community keeps only this record of the room, for its history."
|
|
340
|
+
},
|
|
341
|
+
"PurgeProgress": {
|
|
342
|
+
"title": "PurgeProgress",
|
|
343
|
+
"type": "object",
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"required": [
|
|
346
|
+
"attempts"
|
|
347
|
+
],
|
|
348
|
+
"description": "How a purge is going. A purge deletes at the room's host and at each storage config holding its files, and some of those are remote; a step that fails is retried with backoff until it succeeds, and nothing is reported removed until every step has.",
|
|
349
|
+
"properties": {
|
|
350
|
+
"attempts": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"minimum": 0,
|
|
353
|
+
"description": "Passes made so far; 0 until the first."
|
|
354
|
+
},
|
|
355
|
+
"lastAttemptAt": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"format": "date-time"
|
|
358
|
+
},
|
|
359
|
+
"nextAttemptAt": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"format": "date-time",
|
|
362
|
+
"description": "When the next pass is due. Absent while one runs."
|
|
363
|
+
},
|
|
364
|
+
"lastError": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"minLength": 1,
|
|
367
|
+
"maxLength": 500,
|
|
368
|
+
"description": "What stopped the last pass, for an administrator. Present only after a pass failed. Plain text, written by the community; it names no member and carries no credential."
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"RoomLabel": {
|
|
373
|
+
"title": "RoomLabel",
|
|
374
|
+
"type": "string",
|
|
375
|
+
"minLength": 1,
|
|
376
|
+
"maxLength": 128,
|
|
377
|
+
"description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
|
|
378
|
+
},
|
|
379
|
+
"StorageConfigId": {
|
|
380
|
+
"title": "StorageConfigId",
|
|
381
|
+
"type": "string",
|
|
382
|
+
"minLength": 1,
|
|
383
|
+
"maxLength": 64,
|
|
384
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
|
|
385
|
+
"description": "A storage config's identifier, chosen by the administrator who creates it and immutable thereafter: lowercase letters, digits and inner hyphens, at most 64 characters (`eu-s3-primary`, `walrus-main`). Unique within the community. Never reused after a config is retired, because blobs name their config by this value."
|
|
386
|
+
},
|
|
387
|
+
"HostedRoom": {
|
|
388
|
+
"title": "HostedRoom",
|
|
389
|
+
"type": "object",
|
|
390
|
+
"additionalProperties": false,
|
|
391
|
+
"required": [
|
|
392
|
+
"roomId",
|
|
393
|
+
"ownerDid",
|
|
394
|
+
"visibility",
|
|
395
|
+
"retentionPolicy",
|
|
396
|
+
"epoch",
|
|
397
|
+
"lifecycle",
|
|
398
|
+
"retentionDays",
|
|
399
|
+
"createdAt",
|
|
400
|
+
"updatedAt"
|
|
401
|
+
],
|
|
402
|
+
"description": "One room, as its host holds it — member for member the `HostedRoom` of vtc/rooms/list/0.2, which defines it inside its own payload schema. Nothing derived from the room's contents, and no member list: the host has none.",
|
|
403
|
+
"properties": {
|
|
404
|
+
"roomId": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"minLength": 1,
|
|
407
|
+
"maxLength": 512
|
|
408
|
+
},
|
|
409
|
+
"ownerDid": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"pattern": "^did:",
|
|
412
|
+
"maxLength": 2048
|
|
413
|
+
},
|
|
414
|
+
"visibility": {
|
|
415
|
+
"$ref": "#/$defs/Visibility"
|
|
416
|
+
},
|
|
417
|
+
"retentionPolicy": {
|
|
418
|
+
"$ref": "#/$defs/RetentionPolicy"
|
|
419
|
+
},
|
|
420
|
+
"epoch": {
|
|
421
|
+
"type": "integer",
|
|
422
|
+
"minimum": 0
|
|
423
|
+
},
|
|
424
|
+
"lifecycle": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"enum": [
|
|
427
|
+
"live",
|
|
428
|
+
"lapsed",
|
|
429
|
+
"dormant",
|
|
430
|
+
"reclaimable"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"epochExpiresAt": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"format": "date-time"
|
|
436
|
+
},
|
|
437
|
+
"retentionDays": {
|
|
438
|
+
"type": "integer",
|
|
439
|
+
"minimum": 0
|
|
440
|
+
},
|
|
441
|
+
"mirrorOf": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"minLength": 1,
|
|
444
|
+
"maxLength": 2048
|
|
445
|
+
},
|
|
446
|
+
"createdAt": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"format": "date-time"
|
|
449
|
+
},
|
|
450
|
+
"updatedAt": {
|
|
451
|
+
"type": "string",
|
|
452
|
+
"format": "date-time"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"RetentionPolicy": {
|
|
457
|
+
"title": "RetentionPolicy",
|
|
458
|
+
"type": "string",
|
|
459
|
+
"enum": [
|
|
460
|
+
"chained",
|
|
461
|
+
"fromJoin"
|
|
462
|
+
],
|
|
463
|
+
"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.",
|
|
464
|
+
"$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."
|
|
465
|
+
},
|
|
466
|
+
"Visibility": {
|
|
467
|
+
"title": "Visibility",
|
|
468
|
+
"type": "string",
|
|
469
|
+
"enum": [
|
|
470
|
+
"open",
|
|
471
|
+
"attributed",
|
|
472
|
+
"private"
|
|
473
|
+
],
|
|
474
|
+
"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."
|
|
475
|
+
},
|
|
476
|
+
"Reason": {
|
|
477
|
+
"title": "Reason",
|
|
478
|
+
"type": "string",
|
|
479
|
+
"minLength": 1,
|
|
480
|
+
"maxLength": 500,
|
|
481
|
+
"description": "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
486
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
487
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
488
|
+
"$ref": "#/$defs/Response",
|
|
489
|
+
"$defs": {
|
|
490
|
+
"Response": {
|
|
491
|
+
"$anchor": "response",
|
|
492
|
+
"title": "VTC Rooms Community Archive — response payload",
|
|
493
|
+
"description": "Success response to vtc/rooms/community/archive. Type https://trusttasks.org/spec/vtc/rooms/community/archive/0.1#response. The room as it now stands; whether anything changed; and, where the community's VTA withdrew credentials at the room's host, the revocation list in force there.",
|
|
494
|
+
"type": "object",
|
|
495
|
+
"additionalProperties": false,
|
|
496
|
+
"required": [
|
|
497
|
+
"room",
|
|
498
|
+
"changed"
|
|
499
|
+
],
|
|
500
|
+
"properties": {
|
|
501
|
+
"room": {
|
|
502
|
+
"$ref": "#/$defs/CommunityRoomV3"
|
|
503
|
+
},
|
|
504
|
+
"changed": {
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"description": "`false` when the room was already archived with `access`: nothing was written, withdrawn or audited."
|
|
507
|
+
},
|
|
508
|
+
"withdrawnOffers": {
|
|
509
|
+
"type": "integer",
|
|
510
|
+
"minimum": 1,
|
|
511
|
+
"description": "Open offers this archival withdrew. Absent when there were none."
|
|
512
|
+
},
|
|
513
|
+
"revocation": {
|
|
514
|
+
"$ref": "#/$defs/RevocationHead",
|
|
515
|
+
"description": "Present when the community's VTA withdrew credentials at the room's host — a room reset for `noAccess`, or the open offers' credentials on an `open` or `attributed` room for `readOnly` — as the host accepted it."
|
|
516
|
+
},
|
|
517
|
+
"revokedAt": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"format": "date-time",
|
|
520
|
+
"description": "Present with `revocation`: the withdrawal's time. The host refuses every credential the withdrawal names that was issued before it."
|
|
521
|
+
},
|
|
522
|
+
"ext": {
|
|
523
|
+
"$ref": "#/$defs/Ext"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"Ext": {
|
|
528
|
+
"title": "Ext",
|
|
529
|
+
"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.",
|
|
530
|
+
"type": "object",
|
|
531
|
+
"minProperties": 1,
|
|
532
|
+
"additionalProperties": true,
|
|
533
|
+
"propertyNames": {
|
|
534
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"RevocationHead": {
|
|
538
|
+
"title": "RevocationHead",
|
|
539
|
+
"type": "object",
|
|
540
|
+
"additionalProperties": false,
|
|
541
|
+
"required": [
|
|
542
|
+
"sequence",
|
|
543
|
+
"digest"
|
|
544
|
+
],
|
|
545
|
+
"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.",
|
|
546
|
+
"properties": {
|
|
547
|
+
"sequence": {
|
|
548
|
+
"type": "integer",
|
|
549
|
+
"minimum": 1,
|
|
550
|
+
"description": "The list's `sequence`."
|
|
551
|
+
},
|
|
552
|
+
"digest": {
|
|
553
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
554
|
+
"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."
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"DigestMultibase": {
|
|
559
|
+
"title": "DigestMultibase",
|
|
560
|
+
"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`.",
|
|
561
|
+
"type": "string",
|
|
562
|
+
"minLength": 16,
|
|
563
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
564
|
+
"examples": [
|
|
565
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
566
|
+
]
|
|
567
|
+
},
|
|
568
|
+
"CommunityRoomV3": {
|
|
569
|
+
"title": "CommunityRoomV3",
|
|
570
|
+
"type": "object",
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"required": [
|
|
573
|
+
"room",
|
|
574
|
+
"label",
|
|
575
|
+
"admitted",
|
|
576
|
+
"offered",
|
|
577
|
+
"status"
|
|
578
|
+
],
|
|
579
|
+
"description": "What vtc/rooms/community/{get,list}/0.4 and vtc/rooms/community/{archive,unarchive,remove,removal/cancel}/0.1 return: `CommunityRoomV2` plus the room's `status` in its owner's lifecycle and the count of `suspended` admissions. A separate definition, not a change to `CommunityRoomV2`, so that the versions returning that keep the exact shape they published. For a room in state `purging` or `removed`, whose host record a purge deletes, `room` is the host record as it last stood before the purge began — the community keeps that snapshot with the room's record when the purge starts — and its `lifecycle` is what was computed then.",
|
|
580
|
+
"properties": {
|
|
581
|
+
"room": {
|
|
582
|
+
"$ref": "#/$defs/HostedRoom"
|
|
583
|
+
},
|
|
584
|
+
"label": {
|
|
585
|
+
"$ref": "#/$defs/RoomLabel"
|
|
586
|
+
},
|
|
587
|
+
"status": {
|
|
588
|
+
"$ref": "#/$defs/RoomStatus"
|
|
589
|
+
},
|
|
590
|
+
"description": {
|
|
591
|
+
"$ref": "#/$defs/RoomDescription",
|
|
592
|
+
"description": "Absent when the room has none."
|
|
593
|
+
},
|
|
594
|
+
"tags": {
|
|
595
|
+
"$ref": "#/$defs/RoomTags",
|
|
596
|
+
"description": "Absent or empty when the room has none."
|
|
597
|
+
},
|
|
598
|
+
"storageConfig": {
|
|
599
|
+
"$ref": "#/$defs/StorageConfigId",
|
|
600
|
+
"description": "The storage config receiving the room's new uploads."
|
|
601
|
+
},
|
|
602
|
+
"admitted": {
|
|
603
|
+
"type": "integer",
|
|
604
|
+
"minimum": 0,
|
|
605
|
+
"description": "Members in state `admitted`."
|
|
606
|
+
},
|
|
607
|
+
"offered": {
|
|
608
|
+
"type": "integer",
|
|
609
|
+
"minimum": 0,
|
|
610
|
+
"description": "Offers not yet accepted or withdrawn."
|
|
611
|
+
},
|
|
612
|
+
"suspended": {
|
|
613
|
+
"type": "integer",
|
|
614
|
+
"minimum": 0,
|
|
615
|
+
"description": "Admissions in state `suspended`: withdrawn while the room was archived with `noAccess`, and restored when it leaves that state. Absent when zero."
|
|
616
|
+
},
|
|
617
|
+
"ownerAuthorityValidUntil": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"format": "date-time",
|
|
620
|
+
"description": "When the community's own `admin` authority over the room expires. A room whose owner's authority lapses can no longer advance its epoch, admit or remove; a community SHOULD renew it well before."
|
|
621
|
+
},
|
|
622
|
+
"createdBy": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"pattern": "^did:",
|
|
625
|
+
"maxLength": 2048,
|
|
626
|
+
"description": "The administrator who created it."
|
|
627
|
+
},
|
|
628
|
+
"detailsUpdatedAt": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"format": "date-time",
|
|
631
|
+
"description": "When `label`, `description` or `tags` last changed. Absent until the first change after creation. Distinct from `room.updatedAt`, which is the host record's and moves with the room's epoch and lifecycle."
|
|
632
|
+
},
|
|
633
|
+
"detailsUpdatedBy": {
|
|
634
|
+
"type": "string",
|
|
635
|
+
"pattern": "^did:",
|
|
636
|
+
"maxLength": 2048,
|
|
637
|
+
"description": "The administrator who made that change. Present exactly when `detailsUpdatedAt` is. The earlier values and who set them are in the community's audit trail, not here."
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"RoomTags": {
|
|
642
|
+
"title": "RoomTags",
|
|
643
|
+
"type": "array",
|
|
644
|
+
"maxItems": 8,
|
|
645
|
+
"uniqueItems": true,
|
|
646
|
+
"items": {
|
|
647
|
+
"$ref": "#/$defs/RoomTag"
|
|
648
|
+
},
|
|
649
|
+
"description": "The room's tags, at most eight, as a set: order carries no meaning. An empty list means the room has none — a tag grants nothing, so empty has no more dangerous reading."
|
|
650
|
+
},
|
|
651
|
+
"RoomTag": {
|
|
652
|
+
"title": "RoomTag",
|
|
653
|
+
"type": "string",
|
|
654
|
+
"minLength": 1,
|
|
655
|
+
"maxLength": 32,
|
|
656
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,31}$",
|
|
657
|
+
"description": "A short identifier an administrator files a community-owned room under — `board`, `working-group`, `finance` — so the room list can be filtered. Lower-case letters, digits and hyphens, starting with a letter or digit. Owner-side tracking metadata for holders of `vtc.rooms.manage` only: never shown to members, never sent on the room's host path, and it confers nothing."
|
|
658
|
+
},
|
|
659
|
+
"RoomDescription": {
|
|
660
|
+
"title": "RoomDescription",
|
|
661
|
+
"type": "string",
|
|
662
|
+
"minLength": 1,
|
|
663
|
+
"maxLength": 1000,
|
|
664
|
+
"description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
665
|
+
},
|
|
666
|
+
"RoomStatus": {
|
|
667
|
+
"title": "RoomStatus",
|
|
668
|
+
"type": "object",
|
|
669
|
+
"additionalProperties": false,
|
|
670
|
+
"required": [
|
|
671
|
+
"state"
|
|
672
|
+
],
|
|
673
|
+
"description": "A room's state in its owner's lifecycle, and what that state needs to be understood.",
|
|
674
|
+
"properties": {
|
|
675
|
+
"state": {
|
|
676
|
+
"$ref": "#/$defs/RoomState"
|
|
677
|
+
},
|
|
678
|
+
"access": {
|
|
679
|
+
"$ref": "#/$defs/ArchiveAccess",
|
|
680
|
+
"description": "Present exactly when `state` is `archived` or `removalScheduled`; always `noAccess` for `removalScheduled`."
|
|
681
|
+
},
|
|
682
|
+
"changedAt": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"format": "date-time",
|
|
685
|
+
"description": "When the room entered `state`. Absent for a room that has been `active` since it was created."
|
|
686
|
+
},
|
|
687
|
+
"changedBy": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"pattern": "^did:",
|
|
690
|
+
"maxLength": 2048,
|
|
691
|
+
"description": "The administrator whose act put the room in `state`. Present exactly when `changedAt` is, except for `purging` and `removed` reached when a grace period ended, which no one did at that moment: then the administrator who scheduled the removal. The reason each gave is in the community's audit trail, not here."
|
|
692
|
+
},
|
|
693
|
+
"purgeAt": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"format": "date-time",
|
|
696
|
+
"description": "Present when `state` is `removalScheduled`: when the grace period ends and the purge begins. Kept when `state` is `purging` or `removed`, as when it became due."
|
|
697
|
+
},
|
|
698
|
+
"purge": {
|
|
699
|
+
"$ref": "#/$defs/PurgeProgress",
|
|
700
|
+
"description": "Present exactly when `state` is `purging`."
|
|
701
|
+
},
|
|
702
|
+
"removedAt": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"format": "date-time",
|
|
705
|
+
"description": "Present exactly when `state` is `removed`: when the last of the room's content was deleted."
|
|
706
|
+
},
|
|
707
|
+
"restoring": {
|
|
708
|
+
"type": "integer",
|
|
709
|
+
"minimum": 1,
|
|
710
|
+
"description": "Admissions still `suspended` that the community is restoring, after the room left `noAccess` — the room re-issues each member's credentials and the member collects them as a renewal. Absent when there are none."
|
|
711
|
+
},
|
|
712
|
+
"pendingChange": {
|
|
713
|
+
"$ref": "#/$defs/PendingChange",
|
|
714
|
+
"description": "Present while a change of state is begun and not finished."
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
"PendingChange": {
|
|
719
|
+
"title": "PendingChange",
|
|
720
|
+
"type": "object",
|
|
721
|
+
"additionalProperties": false,
|
|
722
|
+
"required": [
|
|
723
|
+
"state",
|
|
724
|
+
"beganAt"
|
|
725
|
+
],
|
|
726
|
+
"description": "A change of state the community began and has not finished, because a step at its VTA did not complete — most often a room reset the host accepted, after which the community's own credentials must be re-issued before it can act on the room again. `RoomStatus.state` stays what it was until the change finishes, but what the room's host enforces may already be the new state's: a pending move to `noAccess` means members' credentials may already be refused. The community finishes it by itself, retrying with backoff, and repeating the request that began it finishes it too; nothing else changes the room until it is finished.",
|
|
727
|
+
"properties": {
|
|
728
|
+
"state": {
|
|
729
|
+
"$ref": "#/$defs/RoomState",
|
|
730
|
+
"description": "The state the change leads to."
|
|
731
|
+
},
|
|
732
|
+
"access": {
|
|
733
|
+
"$ref": "#/$defs/ArchiveAccess",
|
|
734
|
+
"description": "The access it leads to, where `state` has one."
|
|
735
|
+
},
|
|
736
|
+
"beganAt": {
|
|
737
|
+
"type": "string",
|
|
738
|
+
"format": "date-time"
|
|
739
|
+
},
|
|
740
|
+
"lastError": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"minLength": 1,
|
|
743
|
+
"maxLength": 500,
|
|
744
|
+
"description": "What stopped the last attempt, for an administrator. Plain text; it names no member and carries no credential."
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"ArchiveAccess": {
|
|
749
|
+
"title": "ArchiveAccess",
|
|
750
|
+
"type": "string",
|
|
751
|
+
"enum": [
|
|
752
|
+
"readOnly",
|
|
753
|
+
"noAccess"
|
|
754
|
+
],
|
|
755
|
+
"description": "What an archived room's members may still do. `readOnly`: their credentials stand and they keep reading what the room holds; the room's host refuses every write, upload and curation from a member. `noAccess`: every credential the room issued before the archival is withdrawn at its host — a room reset — so the host refuses every member's every task; the content is kept intact, and each withdrawn admission is `suspended`, restored when the room is unarchived or made `readOnly`. Neither recalls what a member already read or saved, and on a sealed tier neither removes anyone from the room's group."
|
|
756
|
+
},
|
|
757
|
+
"RoomState": {
|
|
758
|
+
"title": "RoomState",
|
|
759
|
+
"type": "string",
|
|
760
|
+
"enum": [
|
|
761
|
+
"active",
|
|
762
|
+
"archived",
|
|
763
|
+
"removalScheduled",
|
|
764
|
+
"purging",
|
|
765
|
+
"removed"
|
|
766
|
+
],
|
|
767
|
+
"description": "Where a room the community owns stands in its owner's lifecycle — distinct from `HostedRoom.lifecycle`, which is the host's clock (`live`, `lapsed`, `dormant`, `reclaimable`) and is computed from the room's epoch, never set. `active`: open to change. `archived`: closed to change by an administrator — no admissions, and the room's host accepts no writes from its members; what members may still do is `ArchiveAccess`. Reversible with vtc/rooms/community/unarchive. `removalScheduled`: an administrator removed the room with a grace period; it admits nobody and its content is kept until `purgeAt`, and vtc/rooms/community/removal/cancel returns it to `archived`. `purging`: the grace period ended (or there was none) and the community is deleting the room's content from its host and storage; not reversible. `removed`: the content is gone; the community keeps only this record of the room, for its history."
|
|
768
|
+
},
|
|
769
|
+
"PurgeProgress": {
|
|
770
|
+
"title": "PurgeProgress",
|
|
771
|
+
"type": "object",
|
|
772
|
+
"additionalProperties": false,
|
|
773
|
+
"required": [
|
|
774
|
+
"attempts"
|
|
775
|
+
],
|
|
776
|
+
"description": "How a purge is going. A purge deletes at the room's host and at each storage config holding its files, and some of those are remote; a step that fails is retried with backoff until it succeeds, and nothing is reported removed until every step has.",
|
|
777
|
+
"properties": {
|
|
778
|
+
"attempts": {
|
|
779
|
+
"type": "integer",
|
|
780
|
+
"minimum": 0,
|
|
781
|
+
"description": "Passes made so far; 0 until the first."
|
|
782
|
+
},
|
|
783
|
+
"lastAttemptAt": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"format": "date-time"
|
|
786
|
+
},
|
|
787
|
+
"nextAttemptAt": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"format": "date-time",
|
|
790
|
+
"description": "When the next pass is due. Absent while one runs."
|
|
791
|
+
},
|
|
792
|
+
"lastError": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"minLength": 1,
|
|
795
|
+
"maxLength": 500,
|
|
796
|
+
"description": "What stopped the last pass, for an administrator. Present only after a pass failed. Plain text, written by the community; it names no member and carries no credential."
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"RoomLabel": {
|
|
801
|
+
"title": "RoomLabel",
|
|
802
|
+
"type": "string",
|
|
803
|
+
"minLength": 1,
|
|
804
|
+
"maxLength": 128,
|
|
805
|
+
"description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
|
|
806
|
+
},
|
|
807
|
+
"StorageConfigId": {
|
|
808
|
+
"title": "StorageConfigId",
|
|
809
|
+
"type": "string",
|
|
810
|
+
"minLength": 1,
|
|
811
|
+
"maxLength": 64,
|
|
812
|
+
"pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
|
|
813
|
+
"description": "A storage config's identifier, chosen by the administrator who creates it and immutable thereafter: lowercase letters, digits and inner hyphens, at most 64 characters (`eu-s3-primary`, `walrus-main`). Unique within the community. Never reused after a config is retired, because blobs name their config by this value."
|
|
814
|
+
},
|
|
815
|
+
"HostedRoom": {
|
|
816
|
+
"title": "HostedRoom",
|
|
817
|
+
"type": "object",
|
|
818
|
+
"additionalProperties": false,
|
|
819
|
+
"required": [
|
|
820
|
+
"roomId",
|
|
821
|
+
"ownerDid",
|
|
822
|
+
"visibility",
|
|
823
|
+
"retentionPolicy",
|
|
824
|
+
"epoch",
|
|
825
|
+
"lifecycle",
|
|
826
|
+
"retentionDays",
|
|
827
|
+
"createdAt",
|
|
828
|
+
"updatedAt"
|
|
829
|
+
],
|
|
830
|
+
"description": "One room, as its host holds it — member for member the `HostedRoom` of vtc/rooms/list/0.2, which defines it inside its own payload schema. Nothing derived from the room's contents, and no member list: the host has none.",
|
|
831
|
+
"properties": {
|
|
832
|
+
"roomId": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"minLength": 1,
|
|
835
|
+
"maxLength": 512
|
|
836
|
+
},
|
|
837
|
+
"ownerDid": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"pattern": "^did:",
|
|
840
|
+
"maxLength": 2048
|
|
841
|
+
},
|
|
842
|
+
"visibility": {
|
|
843
|
+
"$ref": "#/$defs/Visibility"
|
|
844
|
+
},
|
|
845
|
+
"retentionPolicy": {
|
|
846
|
+
"$ref": "#/$defs/RetentionPolicy"
|
|
847
|
+
},
|
|
848
|
+
"epoch": {
|
|
849
|
+
"type": "integer",
|
|
850
|
+
"minimum": 0
|
|
851
|
+
},
|
|
852
|
+
"lifecycle": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"enum": [
|
|
855
|
+
"live",
|
|
856
|
+
"lapsed",
|
|
857
|
+
"dormant",
|
|
858
|
+
"reclaimable"
|
|
859
|
+
]
|
|
860
|
+
},
|
|
861
|
+
"epochExpiresAt": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"format": "date-time"
|
|
864
|
+
},
|
|
865
|
+
"retentionDays": {
|
|
866
|
+
"type": "integer",
|
|
867
|
+
"minimum": 0
|
|
868
|
+
},
|
|
869
|
+
"mirrorOf": {
|
|
870
|
+
"type": "string",
|
|
871
|
+
"minLength": 1,
|
|
872
|
+
"maxLength": 2048
|
|
873
|
+
},
|
|
874
|
+
"createdAt": {
|
|
875
|
+
"type": "string",
|
|
876
|
+
"format": "date-time"
|
|
877
|
+
},
|
|
878
|
+
"updatedAt": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"format": "date-time"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"RetentionPolicy": {
|
|
885
|
+
"title": "RetentionPolicy",
|
|
886
|
+
"type": "string",
|
|
887
|
+
"enum": [
|
|
888
|
+
"chained",
|
|
889
|
+
"fromJoin"
|
|
890
|
+
],
|
|
891
|
+
"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.",
|
|
892
|
+
"$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."
|
|
893
|
+
},
|
|
894
|
+
"Visibility": {
|
|
895
|
+
"title": "Visibility",
|
|
896
|
+
"type": "string",
|
|
897
|
+
"enum": [
|
|
898
|
+
"open",
|
|
899
|
+
"attributed",
|
|
900
|
+
"private"
|
|
901
|
+
],
|
|
902
|
+
"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."
|
|
903
|
+
},
|
|
904
|
+
"Reason": {
|
|
905
|
+
"title": "Reason",
|
|
906
|
+
"type": "string",
|
|
907
|
+
"minLength": 1,
|
|
908
|
+
"maxLength": 500,
|
|
909
|
+
"description": "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
915
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
916
|
+
* per-specification and cannot be derived from the document alone, and
|
|
917
|
+
* item 2 needs the schema this carries.
|
|
918
|
+
*/
|
|
919
|
+
export const SPEC = {
|
|
920
|
+
typeUri: TYPE_URI,
|
|
921
|
+
isBearer: false,
|
|
922
|
+
isProofRequired: true,
|
|
923
|
+
isRecipientRequired: true,
|
|
924
|
+
isIssuedAtRequired: true,
|
|
925
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
929
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
930
|
+
* parties (§7.3 item 5).
|
|
931
|
+
*/
|
|
932
|
+
export const RESPONSE_SPEC = {
|
|
933
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
934
|
+
isBearer: false,
|
|
935
|
+
isProofRequired: true,
|
|
936
|
+
isRecipientRequired: true,
|
|
937
|
+
isIssuedAtRequired: true,
|
|
938
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
939
|
+
};
|
|
940
|
+
//# sourceMappingURL=payload.js.map
|