@openvtc/trust-tasks 0.28.14 → 0.28.16
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 +67 -0
- package/dist/_extends.d.ts.map +1 -1
- package/dist/_extends.js +5 -0
- package/dist/_extends.js.map +1 -1
- package/dist/_shared/components.d.ts +344 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/did-management/stats/set-resolution/0.1/payload.d.ts +398 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.js +247 -0
- package/dist/did-management/stats/set-resolution/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +90 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/_shared/0.2/room.d.ts +1 -1
- package/dist/rooms/_shared/0.2/room.d.ts.map +1 -1
- package/dist/rooms/_shared/0.3/member-profile.d.ts +11 -0
- package/dist/rooms/_shared/0.3/member-profile.d.ts.map +1 -0
- package/dist/rooms/_shared/0.3/member-profile.js +6 -0
- package/dist/rooms/_shared/0.3/member-profile.js.map +1 -0
- package/dist/rooms/changed/0.1/payload.d.ts +139 -0
- package/dist/rooms/changed/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/changed/0.1/payload.js +84 -0
- package/dist/rooms/changed/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.js +1 -1
- package/dist/rooms/keys/act/0.10/payload.d.ts +14 -2
- package/dist/rooms/keys/act/0.10/payload.d.ts.map +1 -1
- package/dist/rooms/keys/act/0.10/payload.js +1 -1
- package/dist/rooms/keys/act/0.10/payload.js.map +1 -1
- package/dist/rooms/keys/act/0.11/payload.d.ts +572 -0
- package/dist/rooms/keys/act/0.11/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.11/payload.js +319 -0
- package/dist/rooms/keys/act/0.11/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.12/payload.d.ts +560 -0
- package/dist/rooms/keys/act/0.12/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.12/payload.js +319 -0
- package/dist/rooms/keys/act/0.12/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.js +1 -1
- package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.3/payload.js +1 -1
- package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.4/payload.js +1 -1
- package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.5/payload.js +1 -1
- package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.6/payload.js +1 -1
- package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.7/payload.js +1 -1
- package/dist/rooms/keys/act/0.8/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.8/payload.js +1 -1
- package/dist/rooms/keys/act/0.9/payload.d.ts +4 -4
- package/dist/rooms/keys/act/0.9/payload.js +1 -1
- package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/browse/0.1/payload.js +1 -1
- package/dist/rooms/keys/browse/0.2/payload.d.ts +4 -4
- package/dist/rooms/keys/browse/0.2/payload.js +1 -1
- package/dist/rooms/keys/browse/0.3/payload.d.ts +14 -2
- package/dist/rooms/keys/browse/0.3/payload.d.ts.map +1 -1
- package/dist/rooms/keys/browse/0.3/payload.js +1 -1
- package/dist/rooms/keys/browse/0.3/payload.js.map +1 -1
- package/dist/rooms/keys/browse/0.4/payload.d.ts +1127 -0
- package/dist/rooms/keys/browse/0.4/payload.d.ts.map +1 -0
- package/dist/rooms/keys/browse/0.4/payload.js +658 -0
- package/dist/rooms/keys/browse/0.4/payload.js.map +1 -0
- package/dist/rooms/keys/changed/0.1/payload.d.ts +173 -0
- package/dist/rooms/keys/changed/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/changed/0.1/payload.js +99 -0
- package/dist/rooms/keys/changed/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts +56 -4
- package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/profile/read/0.1/payload.js +28 -2
- package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts +56 -4
- package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/profile/write/0.1/payload.js +28 -2
- package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.d.ts +14 -2
- package/dist/rooms/keys/read/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.js +1 -1
- package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.2/payload.d.ts +1287 -0
- package/dist/rooms/keys/read/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/read/0.2/payload.js +689 -0
- package/dist/rooms/keys/read/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/seal/0.1/payload.d.ts +4 -4
- package/dist/rooms/keys/seal/0.1/payload.js +1 -1
- package/dist/rooms/keys/seal/0.2/payload.d.ts +13 -2
- package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js +1 -1
- package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
- package/dist/rooms/keys/seal/0.3/payload.d.ts +402 -0
- package/dist/rooms/keys/seal/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/keys/seal/0.3/payload.js +229 -0
- package/dist/rooms/keys/seal/0.3/payload.js.map +1 -0
- package/dist/rooms/keys/watch/0.1/payload.d.ts +652 -0
- package/dist/rooms/keys/watch/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/watch/0.1/payload.js +343 -0
- package/dist/rooms/keys/watch/0.1/payload.js.map +1 -0
- package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/get/0.1/payload.js +1 -1
- package/dist/rooms/records/get/0.2/payload.d.ts +13 -2
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
- package/dist/rooms/records/get/0.2/payload.js +1 -1
- package/dist/rooms/records/get/0.2/payload.js.map +1 -1
- package/dist/rooms/records/get/0.3/payload.d.ts +1064 -0
- package/dist/rooms/records/get/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/records/get/0.3/payload.js +571 -0
- package/dist/rooms/records/get/0.3/payload.js.map +1 -0
- package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.1/payload.js +1 -1
- package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.2/payload.js +1 -1
- package/dist/rooms/records/list/0.3/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.3/payload.js +1 -1
- package/dist/rooms/records/list/0.4/payload.d.ts +4 -4
- package/dist/rooms/records/list/0.4/payload.js +1 -1
- package/dist/rooms/records/list/0.5/payload.d.ts +13 -2
- package/dist/rooms/records/list/0.5/payload.d.ts.map +1 -1
- package/dist/rooms/records/list/0.5/payload.js +1 -1
- package/dist/rooms/records/list/0.5/payload.js.map +1 -1
- package/dist/rooms/records/list/0.6/payload.d.ts +1096 -0
- package/dist/rooms/records/list/0.6/payload.d.ts.map +1 -0
- package/dist/rooms/records/list/0.6/payload.js +596 -0
- package/dist/rooms/records/list/0.6/payload.js.map +1 -0
- package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.1/payload.js +1 -1
- package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.2/payload.js +1 -1
- package/dist/rooms/records/put/0.3/payload.d.ts +4 -4
- package/dist/rooms/records/put/0.3/payload.js +1 -1
- package/dist/rooms/records/put/0.4/payload.d.ts +146 -6
- package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -1
- package/dist/rooms/records/put/0.4/payload.js +81 -3
- package/dist/rooms/records/put/0.4/payload.js.map +1 -1
- package/dist/rooms/records/put/0.5/payload.d.ts +1808 -0
- package/dist/rooms/records/put/0.5/payload.d.ts.map +1 -0
- package/dist/rooms/records/put/0.5/payload.js +984 -0
- package/dist/rooms/records/put/0.5/payload.js.map +1 -0
- package/dist/rooms/watch/0.1/payload.d.ts +497 -0
- package/dist/rooms/watch/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/watch/0.1/payload.js +268 -0
- package/dist/rooms/watch/0.1/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 +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 +4 -4
- package/dist/vta/pcs/voter/read/0.3/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.4/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.4/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.5/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/read/0.5/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts +14 -2
- package/dist/vta/pcs/voter/read/0.6/payload.d.ts.map +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.js +1 -1
- package/dist/vta/pcs/voter/read/0.6/payload.js.map +1 -1
- package/dist/vta/pcs/voter/read/0.7/payload.d.ts +561 -0
- package/dist/vta/pcs/voter/read/0.7/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/read/0.7/payload.js +315 -0
- package/dist/vta/pcs/voter/read/0.7/payload.js.map +1 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.d.ts +359 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.js +203 -0
- package/dist/vta/pcs/voter/receipts/list/0.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.7/network-membership.d.ts +16 -0
- package/dist/vtc/_shared/0.7/network-membership.d.ts.map +1 -0
- package/dist/vtc/_shared/0.7/network-membership.js +6 -0
- package/dist/vtc/_shared/0.7/network-membership.js.map +1 -0
- package/dist/vtc/boards/delete/0.1/payload.d.ts +416 -0
- package/dist/vtc/boards/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/delete/0.1/payload.js +236 -0
- package/dist/vtc/boards/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.d.ts +351 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.js +198 -0
- package/dist/vtc/boards/facilitators/add/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.d.ts +448 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.js +245 -0
- package/dist/vtc/boards/facilitators/list/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.d.ts +351 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.js +198 -0
- package/dist/vtc/boards/facilitators/remove/0.1/payload.js.map +1 -0
- package/dist/vtc/boards/update/0.1/payload.d.ts +147 -2
- package/dist/vtc/boards/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/boards/update/0.1/payload.js +72 -0
- package/dist/vtc/boards/update/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/list/0.5/payload.d.ts +3 -3
- package/dist/vtc/elections/list/0.5/payload.js +1 -1
- package/dist/vtc/elections/list/0.5/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.6/payload.d.ts +3 -3
- package/dist/vtc/elections/show/0.6/payload.js +1 -1
- package/dist/vtc/elections/show/0.6/payload.js.map +1 -1
- package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts +593 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.js +335 -0
- package/dist/vtc/elections/tombstones/show/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/deliver/0.1/payload.d.ts +354 -0
- package/dist/vtc/networks/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/networks/deliver/0.1/payload.js +213 -0
- package/dist/vtc/networks/deliver/0.1/payload.js.map +1 -0
- package/dist/vtc/networks/evidence/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/evidence/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/evidence/0.1/payload.js +1 -1
- package/dist/vtc/networks/evidence/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/evidence/0.2/payload.d.ts +412 -0
- package/dist/vtc/networks/evidence/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/evidence/0.2/payload.js +233 -0
- package/dist/vtc/networks/evidence/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/groups/register/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/groups/register/0.1/payload.js +1 -1
- package/dist/vtc/networks/groups/register/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/groups/register/0.2/payload.d.ts +680 -0
- package/dist/vtc/networks/groups/register/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/groups/register/0.2/payload.js +401 -0
- package/dist/vtc/networks/groups/register/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/join/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/join/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/join/0.1/payload.js +1 -1
- package/dist/vtc/networks/join/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/join/0.2/payload.d.ts +760 -0
- package/dist/vtc/networks/join/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/join/0.2/payload.js +445 -0
- package/dist/vtc/networks/join/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/leave/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/leave/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/leave/0.1/payload.js +1 -1
- package/dist/vtc/networks/leave/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/leave/0.2/payload.d.ts +664 -0
- package/dist/vtc/networks/leave/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/leave/0.2/payload.js +393 -0
- package/dist/vtc/networks/leave/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/list/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/list/0.1/payload.js +1 -1
- package/dist/vtc/networks/list/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/list/0.2/payload.d.ts +713 -0
- package/dist/vtc/networks/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/list/0.2/payload.js +417 -0
- package/dist/vtc/networks/list/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/repudiate/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/repudiate/0.1/payload.js +1 -1
- package/dist/vtc/networks/repudiate/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/repudiate/0.2/payload.d.ts +680 -0
- package/dist/vtc/networks/repudiate/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/repudiate/0.2/payload.js +400 -0
- package/dist/vtc/networks/repudiate/0.2/payload.js.map +1 -0
- package/dist/vtc/networks/show/0.1/payload.d.ts +14 -2
- package/dist/vtc/networks/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/networks/show/0.1/payload.js +1 -1
- package/dist/vtc/networks/show/0.1/payload.js.map +1 -1
- package/dist/vtc/networks/show/0.2/payload.d.ts +650 -0
- package/dist/vtc/networks/show/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/networks/show/0.2/payload.js +388 -0
- package/dist/vtc/networks/show/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_extends.ts +5 -0
- package/src/_shared/components.ts +352 -1
- package/src/did-management/stats/set-resolution/0.1/payload.ts +312 -0
- package/src/index.ts +90 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/_shared/0.2/room.ts +1 -1
- package/src/rooms/_shared/0.3/member-profile.ts +11 -0
- package/src/rooms/changed/0.1/payload.ts +115 -0
- package/src/rooms/keys/act/0.1/payload.ts +5 -5
- package/src/rooms/keys/act/0.10/payload.ts +15 -3
- package/src/rooms/keys/act/0.11/payload.ts +408 -0
- package/src/rooms/keys/act/0.12/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 +5 -5
- package/src/rooms/keys/browse/0.1/payload.ts +5 -5
- package/src/rooms/keys/browse/0.2/payload.ts +5 -5
- package/src/rooms/keys/browse/0.3/payload.ts +15 -3
- package/src/rooms/keys/browse/0.4/payload.ts +730 -0
- package/src/rooms/keys/changed/0.1/payload.ts +138 -0
- package/src/rooms/keys/profile/read/0.1/payload.ts +28 -2
- package/src/rooms/keys/profile/write/0.1/payload.ts +28 -2
- package/src/rooms/keys/read/0.1/payload.ts +15 -3
- package/src/rooms/keys/read/0.2/payload.ts +855 -0
- package/src/rooms/keys/seal/0.1/payload.ts +5 -5
- package/src/rooms/keys/seal/0.2/payload.ts +14 -3
- package/src/rooms/keys/seal/0.3/payload.ts +282 -0
- package/src/rooms/keys/watch/0.1/payload.ts +452 -0
- package/src/rooms/records/get/0.1/payload.ts +5 -5
- package/src/rooms/records/get/0.2/payload.ts +14 -3
- package/src/rooms/records/get/0.3/payload.ts +684 -0
- package/src/rooms/records/list/0.1/payload.ts +5 -5
- package/src/rooms/records/list/0.2/payload.ts +5 -5
- package/src/rooms/records/list/0.3/payload.ts +5 -5
- package/src/rooms/records/list/0.4/payload.ts +5 -5
- package/src/rooms/records/list/0.5/payload.ts +14 -3
- package/src/rooms/records/list/0.6/payload.ts +673 -0
- package/src/rooms/records/put/0.1/payload.ts +5 -5
- package/src/rooms/records/put/0.2/payload.ts +5 -5
- package/src/rooms/records/put/0.3/payload.ts +5 -5
- package/src/rooms/records/put/0.4/payload.ts +95 -5
- package/src/rooms/records/put/0.5/payload.ts +1095 -0
- package/src/rooms/watch/0.1/payload.ts +340 -0
- 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 +5 -5
- package/src/vta/pcs/voter/read/0.4/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.5/payload.ts +5 -5
- package/src/vta/pcs/voter/read/0.6/payload.ts +15 -3
- package/src/vta/pcs/voter/read/0.7/payload.ts +404 -0
- package/src/vta/pcs/voter/receipts/list/0.1/payload.ts +255 -0
- package/src/vtc/_shared/0.7/network-membership.ts +17 -0
- package/src/vtc/boards/delete/0.1/payload.ts +293 -0
- package/src/vtc/boards/facilitators/add/0.1/payload.ts +246 -0
- package/src/vtc/boards/facilitators/list/0.1/payload.ts +306 -0
- package/src/vtc/boards/facilitators/remove/0.1/payload.ts +246 -0
- package/src/vtc/boards/update/0.1/payload.ts +91 -2
- package/src/vtc/elections/list/0.5/payload.ts +2 -2
- package/src/vtc/elections/show/0.6/payload.ts +2 -2
- package/src/vtc/elections/tombstones/show/0.1/payload.ts +401 -0
- package/src/vtc/networks/deliver/0.1/payload.ts +254 -0
- package/src/vtc/networks/evidence/0.1/payload.ts +15 -3
- package/src/vtc/networks/evidence/0.2/payload.ts +290 -0
- package/src/vtc/networks/groups/register/0.1/payload.ts +15 -3
- package/src/vtc/networks/groups/register/0.2/payload.ts +446 -0
- package/src/vtc/networks/join/0.1/payload.ts +15 -3
- package/src/vtc/networks/join/0.2/payload.ts +492 -0
- package/src/vtc/networks/leave/0.1/payload.ts +15 -3
- package/src/vtc/networks/leave/0.2/payload.ts +434 -0
- package/src/vtc/networks/list/0.1/payload.ts +15 -3
- package/src/vtc/networks/list/0.2/payload.ts +463 -0
- package/src/vtc/networks/repudiate/0.1/payload.ts +15 -3
- package/src/vtc/networks/repudiate/0.2/payload.ts +445 -0
- package/src/vtc/networks/show/0.1/payload.ts +15 -3
- package/src/vtc/networks/show/0.2/payload.ts +425 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/elections/tombstones/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { BoardHead, DigestMultibase, ElectionId, Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A member reads what the community keeps of an election on a deleted board — its tombstone — to check a receipt against the board heads the community kept. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCElectionsTombstonesShowPayload {
|
|
10
|
+
electionId: ElectionId;
|
|
11
|
+
ext?: Ext;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.
|
|
15
|
+
*/
|
|
16
|
+
export interface VTCElectionsTombstonesShowResponsePayload {
|
|
17
|
+
electionId: ElectionId;
|
|
18
|
+
/**
|
|
19
|
+
* The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.
|
|
20
|
+
*/
|
|
21
|
+
manifestDigest: DigestMultibase;
|
|
22
|
+
/**
|
|
23
|
+
* The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.
|
|
24
|
+
*/
|
|
25
|
+
ballotBox: string;
|
|
26
|
+
/**
|
|
27
|
+
* The board heads the community kept, oldest first; the last is the final head once voting closed.
|
|
28
|
+
*
|
|
29
|
+
* @maxItems 256
|
|
30
|
+
*/
|
|
31
|
+
checkpoints: Checkpoint[];
|
|
32
|
+
/**
|
|
33
|
+
* When the board the election was opened on was deleted.
|
|
34
|
+
*/
|
|
35
|
+
deletedAt: string;
|
|
36
|
+
/**
|
|
37
|
+
* When the community removes this tombstone. Absent: kept for ever.
|
|
38
|
+
*/
|
|
39
|
+
removeAt?: string;
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.
|
|
44
|
+
*/
|
|
45
|
+
export interface Checkpoint {
|
|
46
|
+
head: BoardHead;
|
|
47
|
+
/**
|
|
48
|
+
* The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.
|
|
49
|
+
*/
|
|
50
|
+
document: {};
|
|
51
|
+
}
|
|
52
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
53
|
+
export type { BoardHead, DigestMultibase, ElectionId, Ext };
|
|
54
|
+
/** Trust Task type URI. */
|
|
55
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1";
|
|
56
|
+
/**
|
|
57
|
+
* The earlier version of this specification that this one declares it
|
|
58
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
59
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
60
|
+
* `extendsChain` / `readForSpec`.
|
|
61
|
+
*/
|
|
62
|
+
export declare const EXTENDS: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
65
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
66
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
67
|
+
* Versions").
|
|
68
|
+
*/
|
|
69
|
+
export declare const DEPRECATION: string | null;
|
|
70
|
+
/** Stable alias for this specification's request payload shape. */
|
|
71
|
+
export type Payload = VTCElectionsTombstonesShowPayload;
|
|
72
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
73
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response";
|
|
74
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
75
|
+
export type Response = VTCElectionsTombstonesShowResponsePayload;
|
|
76
|
+
/**
|
|
77
|
+
* This specification's payload schema, as a value.
|
|
78
|
+
*
|
|
79
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
80
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
81
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
82
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
83
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
84
|
+
*/
|
|
85
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
86
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
87
|
+
readonly $id: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1";
|
|
88
|
+
readonly title: "VTC Elections — Tombstones — Show — payload";
|
|
89
|
+
readonly description: "A member reads what the community keeps of an election on a deleted board — its tombstone — to check a receipt against the board heads the community kept. The outer document members are owned by the framework — SPEC §6.3.";
|
|
90
|
+
readonly type: "object";
|
|
91
|
+
readonly additionalProperties: false;
|
|
92
|
+
readonly required: readonly ["electionId"];
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly electionId: {
|
|
95
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
96
|
+
};
|
|
97
|
+
readonly ext: {
|
|
98
|
+
readonly $ref: "#/$defs/Ext";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly $defs: {
|
|
102
|
+
readonly Checkpoint: {
|
|
103
|
+
readonly title: "Checkpoint";
|
|
104
|
+
readonly description: "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.";
|
|
105
|
+
readonly type: "object";
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
readonly required: readonly ["head", "document"];
|
|
108
|
+
readonly properties: {
|
|
109
|
+
readonly head: {
|
|
110
|
+
readonly $ref: "#/$defs/BoardHead";
|
|
111
|
+
};
|
|
112
|
+
readonly document: {
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly description: "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly Response: {
|
|
119
|
+
readonly $anchor: "response";
|
|
120
|
+
readonly title: "VTC Elections — Tombstones — Show — response payload";
|
|
121
|
+
readonly description: "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.";
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
readonly required: readonly ["electionId", "manifestDigest", "ballotBox", "checkpoints", "deletedAt"];
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly electionId: {
|
|
127
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
128
|
+
};
|
|
129
|
+
readonly manifestDigest: {
|
|
130
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
131
|
+
readonly description: "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.";
|
|
132
|
+
};
|
|
133
|
+
readonly ballotBox: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly minLength: 1;
|
|
136
|
+
readonly maxLength: 2048;
|
|
137
|
+
readonly description: "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.";
|
|
138
|
+
};
|
|
139
|
+
readonly checkpoints: {
|
|
140
|
+
readonly type: "array";
|
|
141
|
+
readonly maxItems: 256;
|
|
142
|
+
readonly items: {
|
|
143
|
+
readonly $ref: "#/$defs/Checkpoint";
|
|
144
|
+
};
|
|
145
|
+
readonly description: "The board heads the community kept, oldest first; the last is the final head once voting closed.";
|
|
146
|
+
};
|
|
147
|
+
readonly deletedAt: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly format: "date-time";
|
|
150
|
+
readonly description: "When the board the election was opened on was deleted.";
|
|
151
|
+
};
|
|
152
|
+
readonly removeAt: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly format: "date-time";
|
|
155
|
+
readonly description: "When the community removes this tombstone. Absent: kept for ever.";
|
|
156
|
+
};
|
|
157
|
+
readonly ext: {
|
|
158
|
+
readonly $ref: "#/$defs/Ext";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly Ext: {
|
|
163
|
+
readonly title: "Ext";
|
|
164
|
+
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.";
|
|
165
|
+
readonly type: "object";
|
|
166
|
+
readonly minProperties: 1;
|
|
167
|
+
readonly additionalProperties: true;
|
|
168
|
+
readonly propertyNames: {
|
|
169
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly DigestMultibase: {
|
|
173
|
+
readonly title: "DigestMultibase";
|
|
174
|
+
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`.";
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly minLength: 16;
|
|
177
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
178
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
179
|
+
};
|
|
180
|
+
readonly ElectionId: {
|
|
181
|
+
readonly title: "ElectionId";
|
|
182
|
+
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.";
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
185
|
+
};
|
|
186
|
+
readonly BoardHead: {
|
|
187
|
+
readonly title: "BoardHead";
|
|
188
|
+
readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
readonly additionalProperties: false;
|
|
191
|
+
readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
|
|
192
|
+
readonly properties: {
|
|
193
|
+
readonly electionId: {
|
|
194
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
195
|
+
};
|
|
196
|
+
readonly treeSize: {
|
|
197
|
+
readonly type: "integer";
|
|
198
|
+
readonly minimum: 0;
|
|
199
|
+
};
|
|
200
|
+
readonly rootHash: {
|
|
201
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
202
|
+
readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
|
|
203
|
+
};
|
|
204
|
+
readonly issuedAt: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly format: "date-time";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
213
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
214
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
215
|
+
readonly $ref: "#/$defs/Response";
|
|
216
|
+
readonly $defs: {
|
|
217
|
+
readonly Checkpoint: {
|
|
218
|
+
readonly title: "Checkpoint";
|
|
219
|
+
readonly description: "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.";
|
|
220
|
+
readonly type: "object";
|
|
221
|
+
readonly additionalProperties: false;
|
|
222
|
+
readonly required: readonly ["head", "document"];
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly head: {
|
|
225
|
+
readonly $ref: "#/$defs/BoardHead";
|
|
226
|
+
};
|
|
227
|
+
readonly document: {
|
|
228
|
+
readonly type: "object";
|
|
229
|
+
readonly description: "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.";
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly Response: {
|
|
234
|
+
readonly $anchor: "response";
|
|
235
|
+
readonly title: "VTC Elections — Tombstones — Show — response payload";
|
|
236
|
+
readonly description: "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.";
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly additionalProperties: false;
|
|
239
|
+
readonly required: readonly ["electionId", "manifestDigest", "ballotBox", "checkpoints", "deletedAt"];
|
|
240
|
+
readonly properties: {
|
|
241
|
+
readonly electionId: {
|
|
242
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
243
|
+
};
|
|
244
|
+
readonly manifestDigest: {
|
|
245
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
246
|
+
readonly description: "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.";
|
|
247
|
+
};
|
|
248
|
+
readonly ballotBox: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly minLength: 1;
|
|
251
|
+
readonly maxLength: 2048;
|
|
252
|
+
readonly description: "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.";
|
|
253
|
+
};
|
|
254
|
+
readonly checkpoints: {
|
|
255
|
+
readonly type: "array";
|
|
256
|
+
readonly maxItems: 256;
|
|
257
|
+
readonly items: {
|
|
258
|
+
readonly $ref: "#/$defs/Checkpoint";
|
|
259
|
+
};
|
|
260
|
+
readonly description: "The board heads the community kept, oldest first; the last is the final head once voting closed.";
|
|
261
|
+
};
|
|
262
|
+
readonly deletedAt: {
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly format: "date-time";
|
|
265
|
+
readonly description: "When the board the election was opened on was deleted.";
|
|
266
|
+
};
|
|
267
|
+
readonly removeAt: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
readonly format: "date-time";
|
|
270
|
+
readonly description: "When the community removes this tombstone. Absent: kept for ever.";
|
|
271
|
+
};
|
|
272
|
+
readonly ext: {
|
|
273
|
+
readonly $ref: "#/$defs/Ext";
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly Ext: {
|
|
278
|
+
readonly title: "Ext";
|
|
279
|
+
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.";
|
|
280
|
+
readonly type: "object";
|
|
281
|
+
readonly minProperties: 1;
|
|
282
|
+
readonly additionalProperties: true;
|
|
283
|
+
readonly propertyNames: {
|
|
284
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly DigestMultibase: {
|
|
288
|
+
readonly title: "DigestMultibase";
|
|
289
|
+
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`.";
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
readonly minLength: 16;
|
|
292
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
293
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
294
|
+
};
|
|
295
|
+
readonly ElectionId: {
|
|
296
|
+
readonly title: "ElectionId";
|
|
297
|
+
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.";
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
300
|
+
};
|
|
301
|
+
readonly BoardHead: {
|
|
302
|
+
readonly title: "BoardHead";
|
|
303
|
+
readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly additionalProperties: false;
|
|
306
|
+
readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
|
|
307
|
+
readonly properties: {
|
|
308
|
+
readonly electionId: {
|
|
309
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
310
|
+
};
|
|
311
|
+
readonly treeSize: {
|
|
312
|
+
readonly type: "integer";
|
|
313
|
+
readonly minimum: 0;
|
|
314
|
+
};
|
|
315
|
+
readonly rootHash: {
|
|
316
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
317
|
+
readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
|
|
318
|
+
};
|
|
319
|
+
readonly issuedAt: {
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
readonly format: "date-time";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
329
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
330
|
+
* per-specification and cannot be derived from the document alone, and
|
|
331
|
+
* item 2 needs the schema this carries.
|
|
332
|
+
*/
|
|
333
|
+
export declare const SPEC: {
|
|
334
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1";
|
|
335
|
+
readonly isBearer: false;
|
|
336
|
+
readonly isProofRequired: false;
|
|
337
|
+
readonly isRecipientRequired: true;
|
|
338
|
+
readonly isIssuedAtRequired: false;
|
|
339
|
+
readonly payloadSchema: {
|
|
340
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
341
|
+
readonly $id: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1";
|
|
342
|
+
readonly title: "VTC Elections — Tombstones — Show — payload";
|
|
343
|
+
readonly description: "A member reads what the community keeps of an election on a deleted board — its tombstone — to check a receipt against the board heads the community kept. The outer document members are owned by the framework — SPEC §6.3.";
|
|
344
|
+
readonly type: "object";
|
|
345
|
+
readonly additionalProperties: false;
|
|
346
|
+
readonly required: readonly ["electionId"];
|
|
347
|
+
readonly properties: {
|
|
348
|
+
readonly electionId: {
|
|
349
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
350
|
+
};
|
|
351
|
+
readonly ext: {
|
|
352
|
+
readonly $ref: "#/$defs/Ext";
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly $defs: {
|
|
356
|
+
readonly Checkpoint: {
|
|
357
|
+
readonly title: "Checkpoint";
|
|
358
|
+
readonly description: "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.";
|
|
359
|
+
readonly type: "object";
|
|
360
|
+
readonly additionalProperties: false;
|
|
361
|
+
readonly required: readonly ["head", "document"];
|
|
362
|
+
readonly properties: {
|
|
363
|
+
readonly head: {
|
|
364
|
+
readonly $ref: "#/$defs/BoardHead";
|
|
365
|
+
};
|
|
366
|
+
readonly document: {
|
|
367
|
+
readonly type: "object";
|
|
368
|
+
readonly description: "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.";
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
readonly Response: {
|
|
373
|
+
readonly $anchor: "response";
|
|
374
|
+
readonly title: "VTC Elections — Tombstones — Show — response payload";
|
|
375
|
+
readonly description: "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.";
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly additionalProperties: false;
|
|
378
|
+
readonly required: readonly ["electionId", "manifestDigest", "ballotBox", "checkpoints", "deletedAt"];
|
|
379
|
+
readonly properties: {
|
|
380
|
+
readonly electionId: {
|
|
381
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
382
|
+
};
|
|
383
|
+
readonly manifestDigest: {
|
|
384
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
385
|
+
readonly description: "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.";
|
|
386
|
+
};
|
|
387
|
+
readonly ballotBox: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly minLength: 1;
|
|
390
|
+
readonly maxLength: 2048;
|
|
391
|
+
readonly description: "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.";
|
|
392
|
+
};
|
|
393
|
+
readonly checkpoints: {
|
|
394
|
+
readonly type: "array";
|
|
395
|
+
readonly maxItems: 256;
|
|
396
|
+
readonly items: {
|
|
397
|
+
readonly $ref: "#/$defs/Checkpoint";
|
|
398
|
+
};
|
|
399
|
+
readonly description: "The board heads the community kept, oldest first; the last is the final head once voting closed.";
|
|
400
|
+
};
|
|
401
|
+
readonly deletedAt: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly format: "date-time";
|
|
404
|
+
readonly description: "When the board the election was opened on was deleted.";
|
|
405
|
+
};
|
|
406
|
+
readonly removeAt: {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly format: "date-time";
|
|
409
|
+
readonly description: "When the community removes this tombstone. Absent: kept for ever.";
|
|
410
|
+
};
|
|
411
|
+
readonly ext: {
|
|
412
|
+
readonly $ref: "#/$defs/Ext";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly Ext: {
|
|
417
|
+
readonly title: "Ext";
|
|
418
|
+
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.";
|
|
419
|
+
readonly type: "object";
|
|
420
|
+
readonly minProperties: 1;
|
|
421
|
+
readonly additionalProperties: true;
|
|
422
|
+
readonly propertyNames: {
|
|
423
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly DigestMultibase: {
|
|
427
|
+
readonly title: "DigestMultibase";
|
|
428
|
+
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`.";
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly minLength: 16;
|
|
431
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
432
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
433
|
+
};
|
|
434
|
+
readonly ElectionId: {
|
|
435
|
+
readonly title: "ElectionId";
|
|
436
|
+
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.";
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
439
|
+
};
|
|
440
|
+
readonly BoardHead: {
|
|
441
|
+
readonly title: "BoardHead";
|
|
442
|
+
readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly additionalProperties: false;
|
|
445
|
+
readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
|
|
446
|
+
readonly properties: {
|
|
447
|
+
readonly electionId: {
|
|
448
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
449
|
+
};
|
|
450
|
+
readonly treeSize: {
|
|
451
|
+
readonly type: "integer";
|
|
452
|
+
readonly minimum: 0;
|
|
453
|
+
};
|
|
454
|
+
readonly rootHash: {
|
|
455
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
456
|
+
readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
|
|
457
|
+
};
|
|
458
|
+
readonly issuedAt: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly format: "date-time";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
469
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
470
|
+
* parties (§7.3 item 5).
|
|
471
|
+
*/
|
|
472
|
+
export declare const RESPONSE_SPEC: {
|
|
473
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response";
|
|
474
|
+
readonly isBearer: false;
|
|
475
|
+
readonly isProofRequired: false;
|
|
476
|
+
readonly isRecipientRequired: true;
|
|
477
|
+
readonly isIssuedAtRequired: false;
|
|
478
|
+
readonly payloadSchema: {
|
|
479
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
480
|
+
readonly $ref: "#/$defs/Response";
|
|
481
|
+
readonly $defs: {
|
|
482
|
+
readonly Checkpoint: {
|
|
483
|
+
readonly title: "Checkpoint";
|
|
484
|
+
readonly description: "A board head the community read from the ballot box and kept, with the ballot box's signed document that carried it.";
|
|
485
|
+
readonly type: "object";
|
|
486
|
+
readonly additionalProperties: false;
|
|
487
|
+
readonly required: readonly ["head", "document"];
|
|
488
|
+
readonly properties: {
|
|
489
|
+
readonly head: {
|
|
490
|
+
readonly $ref: "#/$defs/BoardHead";
|
|
491
|
+
};
|
|
492
|
+
readonly document: {
|
|
493
|
+
readonly type: "object";
|
|
494
|
+
readonly description: "The ballot box's signed voting/board/head `#response` document whose payload carries `head`, kept whole and exactly as received — proof included — so anyone can verify it against the ballot box's DID without trusting the community.";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly Response: {
|
|
499
|
+
readonly $anchor: "response";
|
|
500
|
+
readonly title: "VTC Elections — Tombstones — Show — response payload";
|
|
501
|
+
readonly description: "The success response to a vtc/elections/tombstones/show/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/elections/tombstones/show/0.1#response.";
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
readonly additionalProperties: false;
|
|
504
|
+
readonly required: readonly ["electionId", "manifestDigest", "ballotBox", "checkpoints", "deletedAt"];
|
|
505
|
+
readonly properties: {
|
|
506
|
+
readonly electionId: {
|
|
507
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
508
|
+
};
|
|
509
|
+
readonly manifestDigest: {
|
|
510
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
511
|
+
readonly description: "The SHA-256 multihash of the RFC 8785 (JCS) canonicalization of the election's manifest, as registered. Every cast was bound to it.";
|
|
512
|
+
};
|
|
513
|
+
readonly ballotBox: {
|
|
514
|
+
readonly type: "string";
|
|
515
|
+
readonly minLength: 1;
|
|
516
|
+
readonly maxLength: 2048;
|
|
517
|
+
readonly description: "The DID of the ballot box the election was registered with, whose signature each checkpoint's document carries.";
|
|
518
|
+
};
|
|
519
|
+
readonly checkpoints: {
|
|
520
|
+
readonly type: "array";
|
|
521
|
+
readonly maxItems: 256;
|
|
522
|
+
readonly items: {
|
|
523
|
+
readonly $ref: "#/$defs/Checkpoint";
|
|
524
|
+
};
|
|
525
|
+
readonly description: "The board heads the community kept, oldest first; the last is the final head once voting closed.";
|
|
526
|
+
};
|
|
527
|
+
readonly deletedAt: {
|
|
528
|
+
readonly type: "string";
|
|
529
|
+
readonly format: "date-time";
|
|
530
|
+
readonly description: "When the board the election was opened on was deleted.";
|
|
531
|
+
};
|
|
532
|
+
readonly removeAt: {
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
readonly format: "date-time";
|
|
535
|
+
readonly description: "When the community removes this tombstone. Absent: kept for ever.";
|
|
536
|
+
};
|
|
537
|
+
readonly ext: {
|
|
538
|
+
readonly $ref: "#/$defs/Ext";
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly Ext: {
|
|
543
|
+
readonly title: "Ext";
|
|
544
|
+
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.";
|
|
545
|
+
readonly type: "object";
|
|
546
|
+
readonly minProperties: 1;
|
|
547
|
+
readonly additionalProperties: true;
|
|
548
|
+
readonly propertyNames: {
|
|
549
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly DigestMultibase: {
|
|
553
|
+
readonly title: "DigestMultibase";
|
|
554
|
+
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`.";
|
|
555
|
+
readonly type: "string";
|
|
556
|
+
readonly minLength: 16;
|
|
557
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
558
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
559
|
+
};
|
|
560
|
+
readonly ElectionId: {
|
|
561
|
+
readonly title: "ElectionId";
|
|
562
|
+
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.";
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
|
|
565
|
+
};
|
|
566
|
+
readonly BoardHead: {
|
|
567
|
+
readonly title: "BoardHead";
|
|
568
|
+
readonly description: "A board's tree head (RFC 9162 §2.1). A head is signed by being carried in a document the ballot box signs; whoever keeps a head keeps that whole document.";
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly additionalProperties: false;
|
|
571
|
+
readonly required: readonly ["electionId", "treeSize", "rootHash", "issuedAt"];
|
|
572
|
+
readonly properties: {
|
|
573
|
+
readonly electionId: {
|
|
574
|
+
readonly $ref: "#/$defs/ElectionId";
|
|
575
|
+
};
|
|
576
|
+
readonly treeSize: {
|
|
577
|
+
readonly type: "integer";
|
|
578
|
+
readonly minimum: 0;
|
|
579
|
+
};
|
|
580
|
+
readonly rootHash: {
|
|
581
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
582
|
+
readonly description: "The RFC 9162 Merkle tree hash (SHA-256) of the first `treeSize` entries, as a multihash.";
|
|
583
|
+
};
|
|
584
|
+
readonly issuedAt: {
|
|
585
|
+
readonly type: "string";
|
|
586
|
+
readonly format: "date-time";
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/elections/tombstones/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGxG;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,eAAe,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,EAAE,CAAC;CACd;AAED,kHAAkH;AAClH,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC;AAE5D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,+DAAwE,CAAC;AAEjG;;;;;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,iCAAiC,CAAC;AAExD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,wEAAiF,CAAC;AAEnH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,yCAAyC,CAAC;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|