@openvtc/trust-tasks 0.28.6 → 0.28.8
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 +73 -0
- package/dist/_extends.d.ts.map +1 -1
- package/dist/_extends.js +1 -0
- package/dist/_extends.js.map +1 -1
- package/dist/_shared/components.d.ts +249 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +75 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -1
- 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.3/voting.d.ts +16 -0
- package/dist/voting/_shared/0.3/voting.d.ts.map +1 -0
- package/dist/voting/_shared/0.3/voting.js +6 -0
- package/dist/voting/_shared/0.3/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 +13 -2
- package/dist/voting/election/register/0.2/payload.d.ts.map +1 -1
- package/dist/voting/election/register/0.2/payload.js +1 -1
- package/dist/voting/election/register/0.2/payload.js.map +1 -1
- package/dist/voting/election/register/0.3/payload.d.ts +1934 -0
- package/dist/voting/election/register/0.3/payload.d.ts.map +1 -0
- package/dist/voting/election/register/0.3/payload.js +1180 -0
- package/dist/voting/election/register/0.3/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 +13 -2
- package/dist/voting/election/show/0.2/payload.d.ts.map +1 -1
- package/dist/voting/election/show/0.2/payload.js +1 -1
- package/dist/voting/election/show/0.2/payload.js.map +1 -1
- package/dist/voting/election/show/0.3/payload.d.ts +1838 -0
- package/dist/voting/election/show/0.3/payload.d.ts.map +1 -0
- package/dist/voting/election/show/0.3/payload.js +1126 -0
- package/dist/voting/election/show/0.3/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 +13 -2
- package/dist/vta/pcs/trustee/deal/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/deal/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts +1846 -0
- package/dist/vta/pcs/trustee/deal/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.4/payload.js +1091 -0
- package/dist/vta/pcs/trustee/deal/0.4/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 +13 -2
- package/dist/vta/pcs/trustee/enrol/0.2/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/enrol/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/enrol/0.2/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts +1770 -0
- package/dist/vta/pcs/trustee/enrol/0.3/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.3/payload.js +1054 -0
- package/dist/vta/pcs/trustee/enrol/0.3/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 +13 -2
- package/dist/vta/pcs/trustee/justify/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/justify/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/justify/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts +1881 -0
- package/dist/vta/pcs/trustee/justify/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.4/payload.js +1109 -0
- package/dist/vta/pcs/trustee/justify/0.4/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 +13 -2
- package/dist/vta/pcs/trustee/keys/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/keys/0.3/payload.js +1 -1
- package/dist/vta/pcs/trustee/keys/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts +1926 -0
- package/dist/vta/pcs/trustee/keys/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.4/payload.js +1129 -0
- package/dist/vta/pcs/trustee/keys/0.4/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 +14 -2
- package/dist/vta/pcs/trustee/read/0.2/payload.d.ts.map +1 -1
- package/dist/vta/pcs/trustee/read/0.2/payload.js +1 -1
- package/dist/vta/pcs/trustee/read/0.2/payload.js.map +1 -1
- package/dist/vta/pcs/trustee/read/0.3/payload.d.ts +540 -0
- package/dist/vta/pcs/trustee/read/0.3/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/read/0.3/payload.js +304 -0
- package/dist/vta/pcs/trustee/read/0.3/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 +13 -2
- package/dist/vta/pcs/vote/0.2/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote/0.2/payload.js +1 -1
- package/dist/vta/pcs/vote/0.2/payload.js.map +1 -1
- package/dist/vta/pcs/vote/0.3/payload.d.ts +2222 -0
- package/dist/vta/pcs/vote/0.3/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote/0.3/payload.js +1296 -0
- package/dist/vta/pcs/vote/0.3/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 +13 -2
- package/dist/vta/pcs/vote-encrypted/0.3/payload.d.ts.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.3/payload.js +1 -1
- package/dist/vta/pcs/vote-encrypted/0.3/payload.js.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts +2242 -0
- package/dist/vta/pcs/vote-encrypted/0.4/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.4/payload.js +1314 -0
- package/dist/vta/pcs/vote-encrypted/0.4/payload.js.map +1 -0
- 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 +14 -2
- package/dist/vta/pcs/voter/read/0.2/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/read/0.2/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.2/payload.js.map +1 -1
- package/dist/vta/pcs/voter/read/0.3/payload.d.ts +503 -0
- package/dist/vta/pcs/voter/read/0.3/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.3/payload.js +285 -0
- package/dist/vta/pcs/voter/read/0.3/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 +14 -2
- package/dist/vta/pcs/voter/register/0.2/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/register/0.2/payload.js +1 -1
- package/dist/vta/pcs/voter/register/0.2/payload.js.map +1 -1
- package/dist/vta/pcs/voter/register/0.3/payload.d.ts +2176 -0
- package/dist/vta/pcs/voter/register/0.3/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/register/0.3/payload.js +1262 -0
- package/dist/vta/pcs/voter/register/0.3/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/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 +14 -2
- package/dist/vtc/elections/create/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/elections/create/0.3/payload.js +1 -1
- package/dist/vtc/elections/create/0.3/payload.js.map +1 -1
- package/dist/vtc/elections/create/0.4/payload.d.ts +1670 -0
- package/dist/vtc/elections/create/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/elections/create/0.4/payload.js +1008 -0
- package/dist/vtc/elections/create/0.4/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 +14 -2
- package/dist/vtc/elections/show/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/elections/show/0.2/payload.js +1 -1
- package/dist/vtc/elections/show/0.2/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.3/payload.d.ts +3022 -0
- package/dist/vtc/elections/show/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/elections/show/0.3/payload.js +1765 -0
- package/dist/vtc/elections/show/0.3/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 +1 -0
- package/src/_shared/components.ts +249 -0
- package/src/index.ts +75 -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.3/voting.ts +17 -0
- package/src/voting/election/register/0.1/payload.ts +5 -5
- package/src/voting/election/register/0.2/payload.ts +14 -3
- package/src/voting/election/register/0.3/payload.ts +1223 -0
- package/src/voting/election/show/0.1/payload.ts +5 -5
- package/src/voting/election/show/0.2/payload.ts +14 -3
- package/src/voting/election/show/0.3/payload.ts +1165 -0
- package/src/vta/pcs/trustee/deal/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/deal/0.3/payload.ts +14 -3
- package/src/vta/pcs/trustee/deal/0.4/payload.ts +1164 -0
- package/src/vta/pcs/trustee/enrol/0.1/payload.ts +5 -5
- package/src/vta/pcs/trustee/enrol/0.2/payload.ts +14 -3
- package/src/vta/pcs/trustee/enrol/0.3/payload.ts +1123 -0
- package/src/vta/pcs/trustee/justify/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/justify/0.3/payload.ts +14 -3
- package/src/vta/pcs/trustee/justify/0.4/payload.ts +1183 -0
- package/src/vta/pcs/trustee/keys/0.2/payload.ts +5 -5
- package/src/vta/pcs/trustee/keys/0.3/payload.ts +14 -3
- package/src/vta/pcs/trustee/keys/0.4/payload.ts +1210 -0
- package/src/vta/pcs/trustee/read/0.1/payload.ts +5 -5
- package/src/vta/pcs/trustee/read/0.2/payload.ts +15 -3
- package/src/vta/pcs/trustee/read/0.3/payload.ts +385 -0
- package/src/vta/pcs/vote/0.1/payload.ts +5 -5
- package/src/vta/pcs/vote/0.2/payload.ts +14 -3
- package/src/vta/pcs/vote/0.3/payload.ts +1381 -0
- package/src/vta/pcs/vote-encrypted/0.2/payload.ts +5 -5
- package/src/vta/pcs/vote-encrypted/0.3/payload.ts +14 -3
- package/src/vta/pcs/vote-encrypted/0.4/payload.ts +1385 -0
- package/src/vta/pcs/voter/read/0.1/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.2/payload.ts +15 -3
- package/src/vta/pcs/voter/read/0.3/payload.ts +363 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +5 -5
- package/src/vta/pcs/voter/register/0.2/payload.ts +15 -3
- package/src/vta/pcs/voter/register/0.3/payload.ts +1372 -0
- package/src/vtc/_shared/0.5/community-room.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 +15 -3
- package/src/vtc/elections/create/0.4/payload.ts +1057 -0
- package/src/vtc/elections/show/0.1/payload.ts +5 -5
- package/src/vtc/elections/show/0.2/payload.ts +15 -3
- package/src/vtc/elections/show/0.3/payload.ts +1865 -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,540 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/pcs/trustee/read/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ElectionId, Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A trustee's client asks its VTA for a voting/trustees/status or voting/election/show request signed as the trustee, so it can follow the election's ceremony at the ballot box — on a private board as on a public one — without holding the trustee's key.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAPCSTrusteeReadPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The VTA context the trustee's keys live in.
|
|
12
|
+
*/
|
|
13
|
+
contextId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The community's DID: the registrar that registered the election.
|
|
16
|
+
*/
|
|
17
|
+
community: string;
|
|
18
|
+
electionId: ElectionId;
|
|
19
|
+
/**
|
|
20
|
+
* The trustee's DID: a persona this VTA holds an authentication key of.
|
|
21
|
+
*/
|
|
22
|
+
trustee: string;
|
|
23
|
+
/**
|
|
24
|
+
* The ballot box's DID: the recipient of the signed request.
|
|
25
|
+
*/
|
|
26
|
+
ballotBox: string;
|
|
27
|
+
/**
|
|
28
|
+
* Which read to sign: voting/trustees/status/0.1 or voting/election/show/0.3.
|
|
29
|
+
*/
|
|
30
|
+
read: "status" | "election";
|
|
31
|
+
ext?: Ext;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The signed read, to send to the ballot box.
|
|
35
|
+
*/
|
|
36
|
+
export interface VTAPCSTrusteeReadResponsePayload {
|
|
37
|
+
document: ReadDocument;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A complete, signed voting/trustees/status/0.1 or voting/election/show/0.3 request document, ready to send to the ballot box unchanged.
|
|
42
|
+
*/
|
|
43
|
+
export interface ReadDocument {
|
|
44
|
+
id: string;
|
|
45
|
+
type: "https://trusttasks.org/spec/voting/trustees/status/0.1" | "https://trusttasks.org/spec/voting/election/show/0.3";
|
|
46
|
+
/**
|
|
47
|
+
* The request's `trustee`.
|
|
48
|
+
*/
|
|
49
|
+
issuer: string;
|
|
50
|
+
/**
|
|
51
|
+
* The request's `ballotBox`.
|
|
52
|
+
*/
|
|
53
|
+
recipient: string;
|
|
54
|
+
issuedAt: string;
|
|
55
|
+
expiresAt?: string;
|
|
56
|
+
/**
|
|
57
|
+
* `{ community, electionId }` from the request, exactly.
|
|
58
|
+
*/
|
|
59
|
+
payload: {};
|
|
60
|
+
/**
|
|
61
|
+
* A Data Integrity proof by an `authentication` key of `issuer`.
|
|
62
|
+
*/
|
|
63
|
+
proof: {};
|
|
64
|
+
}
|
|
65
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
66
|
+
export type { ElectionId, Ext };
|
|
67
|
+
/** Trust Task type URI. */
|
|
68
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3";
|
|
69
|
+
/**
|
|
70
|
+
* The earlier version of this specification that this one declares it
|
|
71
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
72
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
73
|
+
* `extendsChain` / `readForSpec`.
|
|
74
|
+
*/
|
|
75
|
+
export declare const EXTENDS: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
78
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
79
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
80
|
+
* Versions").
|
|
81
|
+
*/
|
|
82
|
+
export declare const DEPRECATION: string | null;
|
|
83
|
+
/** Stable alias for this specification's request payload shape. */
|
|
84
|
+
export type Payload = VTAPCSTrusteeReadPayload;
|
|
85
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
86
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3#response";
|
|
87
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
88
|
+
export type Response = VTAPCSTrusteeReadResponsePayload;
|
|
89
|
+
/**
|
|
90
|
+
* This specification's payload schema, as a value.
|
|
91
|
+
*
|
|
92
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
93
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
94
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
95
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
96
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
97
|
+
*/
|
|
98
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
99
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
100
|
+
readonly $id: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3";
|
|
101
|
+
readonly title: "VTA PCS — Trustee Read — payload";
|
|
102
|
+
readonly description: "A trustee's client asks its VTA for a voting/trustees/status or voting/election/show request signed as the trustee, so it can follow the election's ceremony at the ballot box — on a private board as on a public one — without holding the trustee's key.";
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly additionalProperties: false;
|
|
105
|
+
readonly required: readonly ["contextId", "community", "electionId", "trustee", "ballotBox", "read"];
|
|
106
|
+
readonly properties: {
|
|
107
|
+
readonly contextId: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly maxLength: 256;
|
|
111
|
+
readonly description: "The VTA context the trustee's keys live in.";
|
|
112
|
+
};
|
|
113
|
+
readonly community: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
readonly minLength: 1;
|
|
116
|
+
readonly maxLength: 2048;
|
|
117
|
+
readonly description: "The community's DID: the registrar that registered the election.";
|
|
118
|
+
};
|
|
119
|
+
readonly electionId: {
|
|
120
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
121
|
+
};
|
|
122
|
+
readonly trustee: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly minLength: 1;
|
|
125
|
+
readonly maxLength: 2048;
|
|
126
|
+
readonly pattern: "^did:";
|
|
127
|
+
readonly description: "The trustee's DID: a persona this VTA holds an authentication key of.";
|
|
128
|
+
};
|
|
129
|
+
readonly ballotBox: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly minLength: 1;
|
|
132
|
+
readonly maxLength: 2048;
|
|
133
|
+
readonly pattern: "^did:";
|
|
134
|
+
readonly description: "The ballot box's DID: the recipient of the signed request.";
|
|
135
|
+
};
|
|
136
|
+
readonly read: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly enum: readonly ["status", "election"];
|
|
139
|
+
readonly description: "Which read to sign: voting/trustees/status/0.1 or voting/election/show/0.3.";
|
|
140
|
+
};
|
|
141
|
+
readonly ext: {
|
|
142
|
+
readonly $ref: "#/$defs/Ext";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly $defs: {
|
|
146
|
+
readonly ReadDocument: {
|
|
147
|
+
readonly title: "ReadDocument";
|
|
148
|
+
readonly description: "A complete, signed voting/trustees/status/0.1 or voting/election/show/0.3 request document, ready to send to the ballot box unchanged.";
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
|
|
151
|
+
readonly properties: {
|
|
152
|
+
readonly id: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
|
|
155
|
+
};
|
|
156
|
+
readonly type: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly enum: readonly ["https://trusttasks.org/spec/voting/trustees/status/0.1", "https://trusttasks.org/spec/voting/election/show/0.3"];
|
|
159
|
+
};
|
|
160
|
+
readonly issuer: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly minLength: 1;
|
|
163
|
+
readonly maxLength: 2048;
|
|
164
|
+
readonly description: "The request's `trustee`.";
|
|
165
|
+
};
|
|
166
|
+
readonly recipient: {
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
readonly minLength: 1;
|
|
169
|
+
readonly maxLength: 2048;
|
|
170
|
+
readonly description: "The request's `ballotBox`.";
|
|
171
|
+
};
|
|
172
|
+
readonly issuedAt: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
readonly format: "date-time";
|
|
175
|
+
};
|
|
176
|
+
readonly expiresAt: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly format: "date-time";
|
|
179
|
+
};
|
|
180
|
+
readonly payload: {
|
|
181
|
+
readonly type: "object";
|
|
182
|
+
readonly description: "`{ community, electionId }` from the request, exactly.";
|
|
183
|
+
};
|
|
184
|
+
readonly proof: {
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly Response: {
|
|
191
|
+
readonly $anchor: "response";
|
|
192
|
+
readonly title: "VTA PCS — Trustee Read — response payload";
|
|
193
|
+
readonly description: "The signed read, to send to the ballot box.";
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly additionalProperties: false;
|
|
196
|
+
readonly required: readonly ["document"];
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly document: {
|
|
199
|
+
readonly $ref: "#/$defs/ReadDocument";
|
|
200
|
+
};
|
|
201
|
+
readonly ext: {
|
|
202
|
+
readonly $ref: "#/$defs/Ext";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly Ext: {
|
|
207
|
+
readonly title: "Ext";
|
|
208
|
+
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.";
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly minProperties: 1;
|
|
211
|
+
readonly additionalProperties: true;
|
|
212
|
+
readonly propertyNames: {
|
|
213
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly ElectionId: {
|
|
217
|
+
readonly title: "ElectionId";
|
|
218
|
+
readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
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 ReadDocument: {
|
|
230
|
+
readonly title: "ReadDocument";
|
|
231
|
+
readonly description: "A complete, signed voting/trustees/status/0.1 or voting/election/show/0.3 request document, ready to send to the ballot box unchanged.";
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly id: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
|
|
238
|
+
};
|
|
239
|
+
readonly type: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly enum: readonly ["https://trusttasks.org/spec/voting/trustees/status/0.1", "https://trusttasks.org/spec/voting/election/show/0.3"];
|
|
242
|
+
};
|
|
243
|
+
readonly issuer: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly minLength: 1;
|
|
246
|
+
readonly maxLength: 2048;
|
|
247
|
+
readonly description: "The request's `trustee`.";
|
|
248
|
+
};
|
|
249
|
+
readonly recipient: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly minLength: 1;
|
|
252
|
+
readonly maxLength: 2048;
|
|
253
|
+
readonly description: "The request's `ballotBox`.";
|
|
254
|
+
};
|
|
255
|
+
readonly issuedAt: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
readonly format: "date-time";
|
|
258
|
+
};
|
|
259
|
+
readonly expiresAt: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly format: "date-time";
|
|
262
|
+
};
|
|
263
|
+
readonly payload: {
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly description: "`{ community, electionId }` from the request, exactly.";
|
|
266
|
+
};
|
|
267
|
+
readonly proof: {
|
|
268
|
+
readonly type: "object";
|
|
269
|
+
readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly Response: {
|
|
274
|
+
readonly $anchor: "response";
|
|
275
|
+
readonly title: "VTA PCS — Trustee Read — response payload";
|
|
276
|
+
readonly description: "The signed read, to send to the ballot box.";
|
|
277
|
+
readonly type: "object";
|
|
278
|
+
readonly additionalProperties: false;
|
|
279
|
+
readonly required: readonly ["document"];
|
|
280
|
+
readonly properties: {
|
|
281
|
+
readonly document: {
|
|
282
|
+
readonly $ref: "#/$defs/ReadDocument";
|
|
283
|
+
};
|
|
284
|
+
readonly ext: {
|
|
285
|
+
readonly $ref: "#/$defs/Ext";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly Ext: {
|
|
290
|
+
readonly title: "Ext";
|
|
291
|
+
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.";
|
|
292
|
+
readonly type: "object";
|
|
293
|
+
readonly minProperties: 1;
|
|
294
|
+
readonly additionalProperties: true;
|
|
295
|
+
readonly propertyNames: {
|
|
296
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly ElectionId: {
|
|
300
|
+
readonly title: "ElectionId";
|
|
301
|
+
readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
309
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
310
|
+
* per-specification and cannot be derived from the document alone, and
|
|
311
|
+
* item 2 needs the schema this carries.
|
|
312
|
+
*/
|
|
313
|
+
export declare const SPEC: {
|
|
314
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3";
|
|
315
|
+
readonly isBearer: false;
|
|
316
|
+
readonly isProofRequired: true;
|
|
317
|
+
readonly isRecipientRequired: true;
|
|
318
|
+
readonly isIssuedAtRequired: true;
|
|
319
|
+
readonly payloadSchema: {
|
|
320
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
321
|
+
readonly $id: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3";
|
|
322
|
+
readonly title: "VTA PCS — Trustee Read — payload";
|
|
323
|
+
readonly description: "A trustee's client asks its VTA for a voting/trustees/status or voting/election/show request signed as the trustee, so it can follow the election's ceremony at the ballot box — on a private board as on a public one — without holding the trustee's key.";
|
|
324
|
+
readonly type: "object";
|
|
325
|
+
readonly additionalProperties: false;
|
|
326
|
+
readonly required: readonly ["contextId", "community", "electionId", "trustee", "ballotBox", "read"];
|
|
327
|
+
readonly properties: {
|
|
328
|
+
readonly contextId: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly minLength: 1;
|
|
331
|
+
readonly maxLength: 256;
|
|
332
|
+
readonly description: "The VTA context the trustee's keys live in.";
|
|
333
|
+
};
|
|
334
|
+
readonly community: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 1;
|
|
337
|
+
readonly maxLength: 2048;
|
|
338
|
+
readonly description: "The community's DID: the registrar that registered the election.";
|
|
339
|
+
};
|
|
340
|
+
readonly electionId: {
|
|
341
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
342
|
+
};
|
|
343
|
+
readonly trustee: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly minLength: 1;
|
|
346
|
+
readonly maxLength: 2048;
|
|
347
|
+
readonly pattern: "^did:";
|
|
348
|
+
readonly description: "The trustee's DID: a persona this VTA holds an authentication key of.";
|
|
349
|
+
};
|
|
350
|
+
readonly ballotBox: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly minLength: 1;
|
|
353
|
+
readonly maxLength: 2048;
|
|
354
|
+
readonly pattern: "^did:";
|
|
355
|
+
readonly description: "The ballot box's DID: the recipient of the signed request.";
|
|
356
|
+
};
|
|
357
|
+
readonly read: {
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
readonly enum: readonly ["status", "election"];
|
|
360
|
+
readonly description: "Which read to sign: voting/trustees/status/0.1 or voting/election/show/0.3.";
|
|
361
|
+
};
|
|
362
|
+
readonly ext: {
|
|
363
|
+
readonly $ref: "#/$defs/Ext";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
readonly $defs: {
|
|
367
|
+
readonly ReadDocument: {
|
|
368
|
+
readonly title: "ReadDocument";
|
|
369
|
+
readonly description: "A complete, signed voting/trustees/status/0.1 or voting/election/show/0.3 request document, ready to send to the ballot box unchanged.";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
|
|
372
|
+
readonly properties: {
|
|
373
|
+
readonly id: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
|
|
376
|
+
};
|
|
377
|
+
readonly type: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly enum: readonly ["https://trusttasks.org/spec/voting/trustees/status/0.1", "https://trusttasks.org/spec/voting/election/show/0.3"];
|
|
380
|
+
};
|
|
381
|
+
readonly issuer: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly minLength: 1;
|
|
384
|
+
readonly maxLength: 2048;
|
|
385
|
+
readonly description: "The request's `trustee`.";
|
|
386
|
+
};
|
|
387
|
+
readonly recipient: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly minLength: 1;
|
|
390
|
+
readonly maxLength: 2048;
|
|
391
|
+
readonly description: "The request's `ballotBox`.";
|
|
392
|
+
};
|
|
393
|
+
readonly issuedAt: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
readonly format: "date-time";
|
|
396
|
+
};
|
|
397
|
+
readonly expiresAt: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
readonly format: "date-time";
|
|
400
|
+
};
|
|
401
|
+
readonly payload: {
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly description: "`{ community, electionId }` from the request, exactly.";
|
|
404
|
+
};
|
|
405
|
+
readonly proof: {
|
|
406
|
+
readonly type: "object";
|
|
407
|
+
readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly Response: {
|
|
412
|
+
readonly $anchor: "response";
|
|
413
|
+
readonly title: "VTA PCS — Trustee Read — response payload";
|
|
414
|
+
readonly description: "The signed read, to send to the ballot box.";
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly additionalProperties: false;
|
|
417
|
+
readonly required: readonly ["document"];
|
|
418
|
+
readonly properties: {
|
|
419
|
+
readonly document: {
|
|
420
|
+
readonly $ref: "#/$defs/ReadDocument";
|
|
421
|
+
};
|
|
422
|
+
readonly ext: {
|
|
423
|
+
readonly $ref: "#/$defs/Ext";
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
readonly Ext: {
|
|
428
|
+
readonly title: "Ext";
|
|
429
|
+
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.";
|
|
430
|
+
readonly type: "object";
|
|
431
|
+
readonly minProperties: 1;
|
|
432
|
+
readonly additionalProperties: true;
|
|
433
|
+
readonly propertyNames: {
|
|
434
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
readonly ElectionId: {
|
|
438
|
+
readonly title: "ElectionId";
|
|
439
|
+
readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
|
|
440
|
+
readonly type: "string";
|
|
441
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
448
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
449
|
+
* parties (§7.3 item 5).
|
|
450
|
+
*/
|
|
451
|
+
export declare const RESPONSE_SPEC: {
|
|
452
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/pcs/trustee/read/0.3#response";
|
|
453
|
+
readonly isBearer: false;
|
|
454
|
+
readonly isProofRequired: false;
|
|
455
|
+
readonly isRecipientRequired: true;
|
|
456
|
+
readonly isIssuedAtRequired: true;
|
|
457
|
+
readonly payloadSchema: {
|
|
458
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
459
|
+
readonly $ref: "#/$defs/Response";
|
|
460
|
+
readonly $defs: {
|
|
461
|
+
readonly ReadDocument: {
|
|
462
|
+
readonly title: "ReadDocument";
|
|
463
|
+
readonly description: "A complete, signed voting/trustees/status/0.1 or voting/election/show/0.3 request document, ready to send to the ballot box unchanged.";
|
|
464
|
+
readonly type: "object";
|
|
465
|
+
readonly required: readonly ["id", "type", "issuer", "recipient", "issuedAt", "payload", "proof"];
|
|
466
|
+
readonly properties: {
|
|
467
|
+
readonly id: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
readonly pattern: "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
|
|
470
|
+
};
|
|
471
|
+
readonly type: {
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
readonly enum: readonly ["https://trusttasks.org/spec/voting/trustees/status/0.1", "https://trusttasks.org/spec/voting/election/show/0.3"];
|
|
474
|
+
};
|
|
475
|
+
readonly issuer: {
|
|
476
|
+
readonly type: "string";
|
|
477
|
+
readonly minLength: 1;
|
|
478
|
+
readonly maxLength: 2048;
|
|
479
|
+
readonly description: "The request's `trustee`.";
|
|
480
|
+
};
|
|
481
|
+
readonly recipient: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
readonly minLength: 1;
|
|
484
|
+
readonly maxLength: 2048;
|
|
485
|
+
readonly description: "The request's `ballotBox`.";
|
|
486
|
+
};
|
|
487
|
+
readonly issuedAt: {
|
|
488
|
+
readonly type: "string";
|
|
489
|
+
readonly format: "date-time";
|
|
490
|
+
};
|
|
491
|
+
readonly expiresAt: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
readonly format: "date-time";
|
|
494
|
+
};
|
|
495
|
+
readonly payload: {
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly description: "`{ community, electionId }` from the request, exactly.";
|
|
498
|
+
};
|
|
499
|
+
readonly proof: {
|
|
500
|
+
readonly type: "object";
|
|
501
|
+
readonly description: "A Data Integrity proof by an `authentication` key of `issuer`.";
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
readonly Response: {
|
|
506
|
+
readonly $anchor: "response";
|
|
507
|
+
readonly title: "VTA PCS — Trustee Read — response payload";
|
|
508
|
+
readonly description: "The signed read, to send to the ballot box.";
|
|
509
|
+
readonly type: "object";
|
|
510
|
+
readonly additionalProperties: false;
|
|
511
|
+
readonly required: readonly ["document"];
|
|
512
|
+
readonly properties: {
|
|
513
|
+
readonly document: {
|
|
514
|
+
readonly $ref: "#/$defs/ReadDocument";
|
|
515
|
+
};
|
|
516
|
+
readonly ext: {
|
|
517
|
+
readonly $ref: "#/$defs/Ext";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly Ext: {
|
|
522
|
+
readonly title: "Ext";
|
|
523
|
+
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.";
|
|
524
|
+
readonly type: "object";
|
|
525
|
+
readonly minProperties: 1;
|
|
526
|
+
readonly additionalProperties: true;
|
|
527
|
+
readonly propertyNames: {
|
|
528
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly ElectionId: {
|
|
532
|
+
readonly title: "ElectionId";
|
|
533
|
+
readonly description: "An election's identifier, unique within its community. A closed alphabet: it appears in the ticket class label `voter/<electionId>` and is framed into every hash a cast is bound to.";
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/pcs/trustee/read/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAG5E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EACA,wDAAwD,GACxD,sDAAsD,CAAC;IAC3D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,EAAE,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,EAAE,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC;AAEhC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAE/C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8F1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|