@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,651 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/elections/tickets/issue/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, ElectionId, Ext, Multibase_VotingV0_1 as Multibase } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An eligible party asks the community to blind-issue its ticket for one election: the community checks eligibility against its own records and signs a commitment it cannot open, so the ticket its voter's agent unblinds is one the community has never seen. Under a credential roll the party also presents its membership credential for the party the roll names, which the community checks at that moment. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated superseded by vtc/elections/tickets/issue/0.3
|
|
10
|
+
*/
|
|
11
|
+
export interface VTCElectionsTicketsIssuePayload {
|
|
12
|
+
electionId: ElectionId;
|
|
13
|
+
/**
|
|
14
|
+
* The digest of the manifest the requester read (vtc/elections/show) and its agent bound the request to. A ticket is only ever asked for under the manifest the voter saw.
|
|
15
|
+
*/
|
|
16
|
+
manifestDigest: DigestMultibase;
|
|
17
|
+
request: TicketRequest;
|
|
18
|
+
/**
|
|
19
|
+
* Under a `credential` roll (voting/_shared/0.4 `RollRule`), and only then: the requester's presentation of its membership credential for the party `roll.memberOf` names, made by the credential's subject — who signs this document — and bound to this document (VTI-VOT-025). Required when the election's roll rule is `credential`, refused under any other rule; the community checks it as it stands at the moment of issuance and discards it once it has decided.
|
|
20
|
+
*/
|
|
21
|
+
presentation?: {} | string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.
|
|
26
|
+
*/
|
|
27
|
+
export interface TicketRequest {
|
|
28
|
+
/**
|
|
29
|
+
* The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.
|
|
30
|
+
*/
|
|
31
|
+
label: string;
|
|
32
|
+
/**
|
|
33
|
+
* The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).
|
|
34
|
+
*/
|
|
35
|
+
id: Multibase;
|
|
36
|
+
request: RootRequest;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.
|
|
40
|
+
*/
|
|
41
|
+
export interface RootRequest {
|
|
42
|
+
/**
|
|
43
|
+
* The issuance encoding the suite carries.
|
|
44
|
+
*/
|
|
45
|
+
encoding?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The request's tag under the root context.
|
|
48
|
+
*/
|
|
49
|
+
t0?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The proof that the commitment is well formed and the requester holds its secret.
|
|
52
|
+
*/
|
|
53
|
+
proof: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Success response to vtc/elections/tickets/issue/0.2: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).
|
|
57
|
+
*
|
|
58
|
+
* @deprecated superseded by vtc/elections/tickets/issue/0.3
|
|
59
|
+
*/
|
|
60
|
+
export interface VTCElectionsTicketsIssueResponsePayload {
|
|
61
|
+
electionId: ElectionId;
|
|
62
|
+
/**
|
|
63
|
+
* The label signed under — the one asked for.
|
|
64
|
+
*/
|
|
65
|
+
label: string;
|
|
66
|
+
/**
|
|
67
|
+
* The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.
|
|
68
|
+
*/
|
|
69
|
+
preCredential: Multibase;
|
|
70
|
+
ext?: Ext;
|
|
71
|
+
}
|
|
72
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
73
|
+
export type { DigestMultibase, ElectionId, Ext, Multibase };
|
|
74
|
+
/** Trust Task type URI. */
|
|
75
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2";
|
|
76
|
+
/**
|
|
77
|
+
* The earlier version of this specification that this one declares it
|
|
78
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
79
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
80
|
+
* `extendsChain` / `readForSpec`.
|
|
81
|
+
*/
|
|
82
|
+
export declare const EXTENDS: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
85
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
86
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
87
|
+
* Versions").
|
|
88
|
+
*/
|
|
89
|
+
export declare const DEPRECATION: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Stable alias for this specification's request payload shape.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated superseded by vtc/elections/tickets/issue/0.3
|
|
94
|
+
*/
|
|
95
|
+
export type Payload = VTCElectionsTicketsIssuePayload;
|
|
96
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
97
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2#response";
|
|
98
|
+
/**
|
|
99
|
+
* Stable alias for this specification's success-response payload shape.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated superseded by vtc/elections/tickets/issue/0.3
|
|
102
|
+
*/
|
|
103
|
+
export type Response = VTCElectionsTicketsIssueResponsePayload;
|
|
104
|
+
/**
|
|
105
|
+
* This specification's payload schema, as a value.
|
|
106
|
+
*
|
|
107
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
108
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
109
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
110
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
111
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
112
|
+
*/
|
|
113
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
114
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
115
|
+
readonly $id: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2";
|
|
116
|
+
readonly title: "VTC Elections — Tickets — Issue — payload";
|
|
117
|
+
readonly description: "An eligible party asks the community to blind-issue its ticket for one election: the community checks eligibility against its own records and signs a commitment it cannot open, so the ticket its voter's agent unblinds is one the community has never seen. Under a credential roll the party also presents its membership credential for the party the roll names, which the community checks at that moment. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly additionalProperties: false;
|
|
120
|
+
readonly required: readonly ["electionId", "manifestDigest", "request"];
|
|
121
|
+
readonly properties: {
|
|
122
|
+
readonly electionId: {
|
|
123
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
124
|
+
};
|
|
125
|
+
readonly manifestDigest: {
|
|
126
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
127
|
+
readonly description: "The digest of the manifest the requester read (vtc/elections/show) and its agent bound the request to. A ticket is only ever asked for under the manifest the voter saw.";
|
|
128
|
+
};
|
|
129
|
+
readonly request: {
|
|
130
|
+
readonly $ref: "#/$defs/TicketRequest";
|
|
131
|
+
};
|
|
132
|
+
readonly presentation: {
|
|
133
|
+
readonly description: "Under a `credential` roll (voting/_shared/0.4 `RollRule`), and only then: the requester's presentation of its membership credential for the party `roll.memberOf` names, made by the credential's subject — who signs this document — and bound to this document (VTI-VOT-025). Required when the election's roll rule is `credential`, refused under any other rule; the community checks it as it stands at the moment of issuance and discards it once it has decided.";
|
|
134
|
+
readonly anyOf: readonly [{
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly description: "A W3C Verifiable Presentation whose `nonce` is this document's `id` and whose `domain` is the community's DID, both signed by its holder's Data Integrity proof.";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly minLength: 1;
|
|
140
|
+
readonly maxLength: 65536;
|
|
141
|
+
readonly description: "A compact presentation: an SD-JWT with a key-binding JWT whose `nonce` is this document's `id` and `aud` the community's DID.";
|
|
142
|
+
}];
|
|
143
|
+
};
|
|
144
|
+
readonly ext: {
|
|
145
|
+
readonly $ref: "#/$defs/Ext";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly $defs: {
|
|
149
|
+
readonly TicketRequest: {
|
|
150
|
+
readonly title: "TicketRequest";
|
|
151
|
+
readonly description: "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.";
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly additionalProperties: false;
|
|
154
|
+
readonly required: readonly ["label", "id", "request"];
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly label: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
159
|
+
readonly maxLength: 134;
|
|
160
|
+
readonly description: "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.";
|
|
161
|
+
};
|
|
162
|
+
readonly id: {
|
|
163
|
+
readonly $ref: "#/$defs/Multibase";
|
|
164
|
+
readonly description: "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).";
|
|
165
|
+
};
|
|
166
|
+
readonly request: {
|
|
167
|
+
readonly $ref: "#/$defs/RootRequest";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
readonly RootRequest: {
|
|
172
|
+
readonly title: "RootRequest";
|
|
173
|
+
readonly description: "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.";
|
|
174
|
+
readonly type: "object";
|
|
175
|
+
readonly additionalProperties: false;
|
|
176
|
+
readonly required: readonly ["proof"];
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly encoding: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
181
|
+
readonly maxLength: 4096;
|
|
182
|
+
readonly description: "The issuance encoding the suite carries.";
|
|
183
|
+
};
|
|
184
|
+
readonly t0: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
187
|
+
readonly maxLength: 4096;
|
|
188
|
+
readonly description: "The request's tag under the root context.";
|
|
189
|
+
};
|
|
190
|
+
readonly proof: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
193
|
+
readonly maxLength: 8192;
|
|
194
|
+
readonly description: "The proof that the commitment is well formed and the requester holds its secret.";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly Response: {
|
|
199
|
+
readonly $anchor: "response";
|
|
200
|
+
readonly title: "VTC Elections — Tickets — Issue — response payload";
|
|
201
|
+
readonly description: "Success response to vtc/elections/tickets/issue/0.2: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).";
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly additionalProperties: false;
|
|
204
|
+
readonly required: readonly ["electionId", "label", "preCredential"];
|
|
205
|
+
readonly properties: {
|
|
206
|
+
readonly electionId: {
|
|
207
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
208
|
+
};
|
|
209
|
+
readonly label: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
212
|
+
readonly maxLength: 134;
|
|
213
|
+
readonly description: "The label signed under — the one asked for.";
|
|
214
|
+
};
|
|
215
|
+
readonly preCredential: {
|
|
216
|
+
readonly $ref: "#/$defs/Multibase";
|
|
217
|
+
readonly description: "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.";
|
|
218
|
+
};
|
|
219
|
+
readonly ext: {
|
|
220
|
+
readonly $ref: "#/$defs/Ext";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly Ext: {
|
|
225
|
+
readonly title: "Ext";
|
|
226
|
+
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.";
|
|
227
|
+
readonly type: "object";
|
|
228
|
+
readonly minProperties: 1;
|
|
229
|
+
readonly additionalProperties: true;
|
|
230
|
+
readonly propertyNames: {
|
|
231
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
readonly Multibase: {
|
|
235
|
+
readonly title: "Multibase";
|
|
236
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly maxLength: 16384;
|
|
239
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
240
|
+
};
|
|
241
|
+
readonly ElectionId: {
|
|
242
|
+
readonly title: "ElectionId";
|
|
243
|
+
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.";
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
246
|
+
};
|
|
247
|
+
readonly DigestMultibase: {
|
|
248
|
+
readonly title: "DigestMultibase";
|
|
249
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly minLength: 16;
|
|
252
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
253
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
258
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
259
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
260
|
+
readonly $ref: "#/$defs/Response";
|
|
261
|
+
readonly $defs: {
|
|
262
|
+
readonly TicketRequest: {
|
|
263
|
+
readonly title: "TicketRequest";
|
|
264
|
+
readonly description: "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.";
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly additionalProperties: false;
|
|
267
|
+
readonly required: readonly ["label", "id", "request"];
|
|
268
|
+
readonly properties: {
|
|
269
|
+
readonly label: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
272
|
+
readonly maxLength: 134;
|
|
273
|
+
readonly description: "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.";
|
|
274
|
+
};
|
|
275
|
+
readonly id: {
|
|
276
|
+
readonly $ref: "#/$defs/Multibase";
|
|
277
|
+
readonly description: "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).";
|
|
278
|
+
};
|
|
279
|
+
readonly request: {
|
|
280
|
+
readonly $ref: "#/$defs/RootRequest";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
readonly RootRequest: {
|
|
285
|
+
readonly title: "RootRequest";
|
|
286
|
+
readonly description: "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.";
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
readonly required: readonly ["proof"];
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly encoding: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
294
|
+
readonly maxLength: 4096;
|
|
295
|
+
readonly description: "The issuance encoding the suite carries.";
|
|
296
|
+
};
|
|
297
|
+
readonly t0: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
300
|
+
readonly maxLength: 4096;
|
|
301
|
+
readonly description: "The request's tag under the root context.";
|
|
302
|
+
};
|
|
303
|
+
readonly proof: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
306
|
+
readonly maxLength: 8192;
|
|
307
|
+
readonly description: "The proof that the commitment is well formed and the requester holds its secret.";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly Response: {
|
|
312
|
+
readonly $anchor: "response";
|
|
313
|
+
readonly title: "VTC Elections — Tickets — Issue — response payload";
|
|
314
|
+
readonly description: "Success response to vtc/elections/tickets/issue/0.2: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).";
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly additionalProperties: false;
|
|
317
|
+
readonly required: readonly ["electionId", "label", "preCredential"];
|
|
318
|
+
readonly properties: {
|
|
319
|
+
readonly electionId: {
|
|
320
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
321
|
+
};
|
|
322
|
+
readonly label: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
325
|
+
readonly maxLength: 134;
|
|
326
|
+
readonly description: "The label signed under — the one asked for.";
|
|
327
|
+
};
|
|
328
|
+
readonly preCredential: {
|
|
329
|
+
readonly $ref: "#/$defs/Multibase";
|
|
330
|
+
readonly description: "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.";
|
|
331
|
+
};
|
|
332
|
+
readonly ext: {
|
|
333
|
+
readonly $ref: "#/$defs/Ext";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly Ext: {
|
|
338
|
+
readonly title: "Ext";
|
|
339
|
+
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.";
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly minProperties: 1;
|
|
342
|
+
readonly additionalProperties: true;
|
|
343
|
+
readonly propertyNames: {
|
|
344
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
readonly Multibase: {
|
|
348
|
+
readonly title: "Multibase";
|
|
349
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly maxLength: 16384;
|
|
352
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
353
|
+
};
|
|
354
|
+
readonly ElectionId: {
|
|
355
|
+
readonly title: "ElectionId";
|
|
356
|
+
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.";
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
359
|
+
};
|
|
360
|
+
readonly DigestMultibase: {
|
|
361
|
+
readonly title: "DigestMultibase";
|
|
362
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly minLength: 16;
|
|
365
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
366
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
372
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
373
|
+
* per-specification and cannot be derived from the document alone, and
|
|
374
|
+
* item 2 needs the schema this carries.
|
|
375
|
+
*/
|
|
376
|
+
export declare const SPEC: {
|
|
377
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2";
|
|
378
|
+
readonly isBearer: false;
|
|
379
|
+
readonly isProofRequired: true;
|
|
380
|
+
readonly isRecipientRequired: true;
|
|
381
|
+
readonly isIssuedAtRequired: true;
|
|
382
|
+
readonly payloadSchema: {
|
|
383
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
384
|
+
readonly $id: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2";
|
|
385
|
+
readonly title: "VTC Elections — Tickets — Issue — payload";
|
|
386
|
+
readonly description: "An eligible party asks the community to blind-issue its ticket for one election: the community checks eligibility against its own records and signs a commitment it cannot open, so the ticket its voter's agent unblinds is one the community has never seen. Under a credential roll the party also presents its membership credential for the party the roll names, which the community checks at that moment. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
387
|
+
readonly type: "object";
|
|
388
|
+
readonly additionalProperties: false;
|
|
389
|
+
readonly required: readonly ["electionId", "manifestDigest", "request"];
|
|
390
|
+
readonly properties: {
|
|
391
|
+
readonly electionId: {
|
|
392
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
393
|
+
};
|
|
394
|
+
readonly manifestDigest: {
|
|
395
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
396
|
+
readonly description: "The digest of the manifest the requester read (vtc/elections/show) and its agent bound the request to. A ticket is only ever asked for under the manifest the voter saw.";
|
|
397
|
+
};
|
|
398
|
+
readonly request: {
|
|
399
|
+
readonly $ref: "#/$defs/TicketRequest";
|
|
400
|
+
};
|
|
401
|
+
readonly presentation: {
|
|
402
|
+
readonly description: "Under a `credential` roll (voting/_shared/0.4 `RollRule`), and only then: the requester's presentation of its membership credential for the party `roll.memberOf` names, made by the credential's subject — who signs this document — and bound to this document (VTI-VOT-025). Required when the election's roll rule is `credential`, refused under any other rule; the community checks it as it stands at the moment of issuance and discards it once it has decided.";
|
|
403
|
+
readonly anyOf: readonly [{
|
|
404
|
+
readonly type: "object";
|
|
405
|
+
readonly description: "A W3C Verifiable Presentation whose `nonce` is this document's `id` and whose `domain` is the community's DID, both signed by its holder's Data Integrity proof.";
|
|
406
|
+
}, {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly minLength: 1;
|
|
409
|
+
readonly maxLength: 65536;
|
|
410
|
+
readonly description: "A compact presentation: an SD-JWT with a key-binding JWT whose `nonce` is this document's `id` and `aud` the community's DID.";
|
|
411
|
+
}];
|
|
412
|
+
};
|
|
413
|
+
readonly ext: {
|
|
414
|
+
readonly $ref: "#/$defs/Ext";
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
readonly $defs: {
|
|
418
|
+
readonly TicketRequest: {
|
|
419
|
+
readonly title: "TicketRequest";
|
|
420
|
+
readonly description: "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.";
|
|
421
|
+
readonly type: "object";
|
|
422
|
+
readonly additionalProperties: false;
|
|
423
|
+
readonly required: readonly ["label", "id", "request"];
|
|
424
|
+
readonly properties: {
|
|
425
|
+
readonly label: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
428
|
+
readonly maxLength: 134;
|
|
429
|
+
readonly description: "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.";
|
|
430
|
+
};
|
|
431
|
+
readonly id: {
|
|
432
|
+
readonly $ref: "#/$defs/Multibase";
|
|
433
|
+
readonly description: "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).";
|
|
434
|
+
};
|
|
435
|
+
readonly request: {
|
|
436
|
+
readonly $ref: "#/$defs/RootRequest";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly RootRequest: {
|
|
441
|
+
readonly title: "RootRequest";
|
|
442
|
+
readonly description: "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.";
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly additionalProperties: false;
|
|
445
|
+
readonly required: readonly ["proof"];
|
|
446
|
+
readonly properties: {
|
|
447
|
+
readonly encoding: {
|
|
448
|
+
readonly type: "string";
|
|
449
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
450
|
+
readonly maxLength: 4096;
|
|
451
|
+
readonly description: "The issuance encoding the suite carries.";
|
|
452
|
+
};
|
|
453
|
+
readonly t0: {
|
|
454
|
+
readonly type: "string";
|
|
455
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
456
|
+
readonly maxLength: 4096;
|
|
457
|
+
readonly description: "The request's tag under the root context.";
|
|
458
|
+
};
|
|
459
|
+
readonly proof: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
462
|
+
readonly maxLength: 8192;
|
|
463
|
+
readonly description: "The proof that the commitment is well formed and the requester holds its secret.";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly Response: {
|
|
468
|
+
readonly $anchor: "response";
|
|
469
|
+
readonly title: "VTC Elections — Tickets — Issue — response payload";
|
|
470
|
+
readonly description: "Success response to vtc/elections/tickets/issue/0.2: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).";
|
|
471
|
+
readonly type: "object";
|
|
472
|
+
readonly additionalProperties: false;
|
|
473
|
+
readonly required: readonly ["electionId", "label", "preCredential"];
|
|
474
|
+
readonly properties: {
|
|
475
|
+
readonly electionId: {
|
|
476
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
477
|
+
};
|
|
478
|
+
readonly label: {
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
481
|
+
readonly maxLength: 134;
|
|
482
|
+
readonly description: "The label signed under — the one asked for.";
|
|
483
|
+
};
|
|
484
|
+
readonly preCredential: {
|
|
485
|
+
readonly $ref: "#/$defs/Multibase";
|
|
486
|
+
readonly description: "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.";
|
|
487
|
+
};
|
|
488
|
+
readonly ext: {
|
|
489
|
+
readonly $ref: "#/$defs/Ext";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly Ext: {
|
|
494
|
+
readonly title: "Ext";
|
|
495
|
+
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.";
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly minProperties: 1;
|
|
498
|
+
readonly additionalProperties: true;
|
|
499
|
+
readonly propertyNames: {
|
|
500
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
readonly Multibase: {
|
|
504
|
+
readonly title: "Multibase";
|
|
505
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly maxLength: 16384;
|
|
508
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
509
|
+
};
|
|
510
|
+
readonly ElectionId: {
|
|
511
|
+
readonly title: "ElectionId";
|
|
512
|
+
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.";
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
515
|
+
};
|
|
516
|
+
readonly DigestMultibase: {
|
|
517
|
+
readonly title: "DigestMultibase";
|
|
518
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
readonly minLength: 16;
|
|
521
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
522
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
529
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
530
|
+
* parties (§7.3 item 5).
|
|
531
|
+
*/
|
|
532
|
+
export declare const RESPONSE_SPEC: {
|
|
533
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/elections/tickets/issue/0.2#response";
|
|
534
|
+
readonly isBearer: false;
|
|
535
|
+
readonly isProofRequired: true;
|
|
536
|
+
readonly isRecipientRequired: true;
|
|
537
|
+
readonly isIssuedAtRequired: true;
|
|
538
|
+
readonly payloadSchema: {
|
|
539
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
540
|
+
readonly $ref: "#/$defs/Response";
|
|
541
|
+
readonly $defs: {
|
|
542
|
+
readonly TicketRequest: {
|
|
543
|
+
readonly title: "TicketRequest";
|
|
544
|
+
readonly description: "The blinded root request for the election's ticket class, as the voter's VTA built it (vta/pcs/voter/register). The community verifies it under its voting parameters and learns nothing else from it.";
|
|
545
|
+
readonly type: "object";
|
|
546
|
+
readonly additionalProperties: false;
|
|
547
|
+
readonly required: readonly ["label", "id", "request"];
|
|
548
|
+
readonly properties: {
|
|
549
|
+
readonly label: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
552
|
+
readonly maxLength: 134;
|
|
553
|
+
readonly description: "The ticket class label, `voter/<electionId>` (CONVENTIONS §3.2). It MUST name the election `electionId` names.";
|
|
554
|
+
};
|
|
555
|
+
readonly id: {
|
|
556
|
+
readonly $ref: "#/$defs/Multibase";
|
|
557
|
+
readonly description: "The voter's PCS identifier for this election, derived from the election's voter key, which is allocated for this election alone (VTI-VOT-023).";
|
|
558
|
+
};
|
|
559
|
+
readonly request: {
|
|
560
|
+
readonly $ref: "#/$defs/RootRequest";
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly RootRequest: {
|
|
565
|
+
readonly title: "RootRequest";
|
|
566
|
+
readonly description: "The suite's blinded root request, serialised as vtc/vetting/vetters/pcs-root carries one. Opaque to the community beyond verifying it under its voting parameters.";
|
|
567
|
+
readonly type: "object";
|
|
568
|
+
readonly additionalProperties: false;
|
|
569
|
+
readonly required: readonly ["proof"];
|
|
570
|
+
readonly properties: {
|
|
571
|
+
readonly encoding: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
574
|
+
readonly maxLength: 4096;
|
|
575
|
+
readonly description: "The issuance encoding the suite carries.";
|
|
576
|
+
};
|
|
577
|
+
readonly t0: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
580
|
+
readonly maxLength: 4096;
|
|
581
|
+
readonly description: "The request's tag under the root context.";
|
|
582
|
+
};
|
|
583
|
+
readonly proof: {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
586
|
+
readonly maxLength: 8192;
|
|
587
|
+
readonly description: "The proof that the commitment is well formed and the requester holds its secret.";
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly Response: {
|
|
592
|
+
readonly $anchor: "response";
|
|
593
|
+
readonly title: "VTC Elections — Tickets — Issue — response payload";
|
|
594
|
+
readonly description: "Success response to vtc/elections/tickets/issue/0.2: the blind pre-credential. The voter's VTA unblinds it into a ticket the community has never seen (vta/pcs/voter/accept).";
|
|
595
|
+
readonly type: "object";
|
|
596
|
+
readonly additionalProperties: false;
|
|
597
|
+
readonly required: readonly ["electionId", "label", "preCredential"];
|
|
598
|
+
readonly properties: {
|
|
599
|
+
readonly electionId: {
|
|
600
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
601
|
+
};
|
|
602
|
+
readonly label: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
readonly pattern: "^voter/[A-Za-z0-9._-]{1,128}$";
|
|
605
|
+
readonly maxLength: 134;
|
|
606
|
+
readonly description: "The label signed under — the one asked for.";
|
|
607
|
+
};
|
|
608
|
+
readonly preCredential: {
|
|
609
|
+
readonly $ref: "#/$defs/Multibase";
|
|
610
|
+
readonly description: "The pre-credential, under the community's voting key. Useless to anyone but the holder of the request's blinding state.";
|
|
611
|
+
};
|
|
612
|
+
readonly ext: {
|
|
613
|
+
readonly $ref: "#/$defs/Ext";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
readonly Ext: {
|
|
618
|
+
readonly title: "Ext";
|
|
619
|
+
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.";
|
|
620
|
+
readonly type: "object";
|
|
621
|
+
readonly minProperties: 1;
|
|
622
|
+
readonly additionalProperties: true;
|
|
623
|
+
readonly propertyNames: {
|
|
624
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
readonly Multibase: {
|
|
628
|
+
readonly title: "Multibase";
|
|
629
|
+
readonly description: "A binary value, multibase base58btc over the suite's canonical (compressed) encoding.";
|
|
630
|
+
readonly type: "string";
|
|
631
|
+
readonly maxLength: 16384;
|
|
632
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
633
|
+
};
|
|
634
|
+
readonly ElectionId: {
|
|
635
|
+
readonly title: "ElectionId";
|
|
636
|
+
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.";
|
|
637
|
+
readonly type: "string";
|
|
638
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
639
|
+
};
|
|
640
|
+
readonly DigestMultibase: {
|
|
641
|
+
readonly title: "DigestMultibase";
|
|
642
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
643
|
+
readonly type: "string";
|
|
644
|
+
readonly minLength: 16;
|
|
645
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
646
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
//# sourceMappingURL=payload.d.ts.map
|