@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,652 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/keys/watch/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A member's own client asks the member's key holder to arm, re-arm or cancel rooms/watch at one host for one or more rooms, as the member, with an address the key holder controls; the key holder passes each signal on to the client with rooms/keys/changed. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface RoomsKeysWatchPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The member to watch as: a DID the recipient holds keys for and the caller may act as. Always named — the recipient never picks a member for the caller. This task's subject.
|
|
12
|
+
*/
|
|
13
|
+
member: string;
|
|
14
|
+
/**
|
|
15
|
+
* The host to arm the watches at, as a DID. Named by the caller for the reason it is on rooms/keys/browse: nothing maps a room to its host.
|
|
16
|
+
*/
|
|
17
|
+
host: string;
|
|
18
|
+
/**
|
|
19
|
+
* The rooms to watch at this host, each at most once. Each is armed at the host with its own rooms/watch request, presentation and address; the host never sees them together.
|
|
20
|
+
*
|
|
21
|
+
* @minItems 1
|
|
22
|
+
* @maxItems 64
|
|
23
|
+
*/
|
|
24
|
+
rooms: [RoomToWatch, ...RoomToWatch[]];
|
|
25
|
+
/**
|
|
26
|
+
* How long the caller asks each watch to last if it does not fire, in seconds, up to 30 days. Passed to the host as rooms/watch's leaseSeconds; the host and the recipient MAY grant less. Absent means the host's default. Ignored on a cancel.
|
|
27
|
+
*/
|
|
28
|
+
leaseSeconds?: number;
|
|
29
|
+
/**
|
|
30
|
+
* End the watches on the named rooms. Only `true` is meaningful, so only `true` is accepted. A cancel of a watch the recipient does not hold succeeds with `armed: false`.
|
|
31
|
+
*/
|
|
32
|
+
cancel?: true;
|
|
33
|
+
/**
|
|
34
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
35
|
+
*/
|
|
36
|
+
ext?: Ext;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* One room of the request, with the version the caller has read it to.
|
|
40
|
+
*/
|
|
41
|
+
export interface RoomToWatch {
|
|
42
|
+
/**
|
|
43
|
+
* The room.
|
|
44
|
+
*/
|
|
45
|
+
roomId: string;
|
|
46
|
+
/**
|
|
47
|
+
* The highest version of the room the caller has read to, passed to the host as rooms/watch's sinceVersion: the host signals as soon as the room is above it, at once if it already is. Absent means the room's latest version when the host arms the watch. Ignored on a cancel.
|
|
48
|
+
*/
|
|
49
|
+
sinceVersion?: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Success response to rooms/keys/watch: one outcome per room requested, in the order requested. Type https://trusttasks.org/spec/rooms/keys/watch/0.1#response.
|
|
53
|
+
*/
|
|
54
|
+
export interface RoomsKeysWatchResponsePayload {
|
|
55
|
+
/**
|
|
56
|
+
* The member, echoed.
|
|
57
|
+
*/
|
|
58
|
+
member: string;
|
|
59
|
+
/**
|
|
60
|
+
* The host, echoed.
|
|
61
|
+
*/
|
|
62
|
+
host: string;
|
|
63
|
+
/**
|
|
64
|
+
* @minItems 1
|
|
65
|
+
* @maxItems 64
|
|
66
|
+
*/
|
|
67
|
+
watches: [OutcomeForOneRoom, ...OutcomeForOneRoom[]];
|
|
68
|
+
ext?: Ext;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* What became of one room of the request.
|
|
72
|
+
*/
|
|
73
|
+
export interface OutcomeForOneRoom {
|
|
74
|
+
/**
|
|
75
|
+
* The room, echoed.
|
|
76
|
+
*/
|
|
77
|
+
roomId: string;
|
|
78
|
+
/**
|
|
79
|
+
* `true`: the host holds the watch armed and the recipient will pass on its signal with rooms/keys/changed. `false`: the watch was cancelled, there was none to cancel, or it was refused (`refused` says why).
|
|
80
|
+
*/
|
|
81
|
+
armed: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Present when `armed` is `true`: when the watch lapses if it has not fired — the expiresAt the host answered, or earlier where the recipient bounds it. The caller re-arms before then if it still wants a signal.
|
|
84
|
+
*/
|
|
85
|
+
expiresAt?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Present when this room's watch was not armed or cancelled because of a refusal. `notAMember`: the recipient holds no credential the room issued to `member`. `actionNotHeld`: the member's credentials do not confer `read`. `limitReached`: the recipient holds as many watches as it allows — the caller polls this room. `hostUnreachable`: the host could not be resolved, advertises no transport the recipient speaks, or did not answer — a retry may succeed. `hostRefused`: the host answered with a trust-task-error, whose code is in `hostCode`.
|
|
88
|
+
*/
|
|
89
|
+
refused?: "notAMember" | "actionNotHeld" | "limitReached" | "hostUnreachable" | "hostRefused";
|
|
90
|
+
/**
|
|
91
|
+
* Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.
|
|
92
|
+
*/
|
|
93
|
+
hostCode?: string;
|
|
94
|
+
}
|
|
95
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
96
|
+
export type { Ext };
|
|
97
|
+
/** Trust Task type URI. */
|
|
98
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/keys/watch/0.1";
|
|
99
|
+
/**
|
|
100
|
+
* The earlier version of this specification that this one declares it
|
|
101
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
102
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
103
|
+
* `extendsChain` / `readForSpec`.
|
|
104
|
+
*/
|
|
105
|
+
export declare const EXTENDS: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
108
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
109
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
110
|
+
* Versions").
|
|
111
|
+
*/
|
|
112
|
+
export declare const DEPRECATION: string | null;
|
|
113
|
+
/** Stable alias for this specification's request payload shape. */
|
|
114
|
+
export type Payload = RoomsKeysWatchPayload;
|
|
115
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
116
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/keys/watch/0.1#response";
|
|
117
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
118
|
+
export type Response = RoomsKeysWatchResponsePayload;
|
|
119
|
+
/**
|
|
120
|
+
* This specification's payload schema, as a value.
|
|
121
|
+
*
|
|
122
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
123
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
124
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
125
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
126
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
127
|
+
*/
|
|
128
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
129
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
130
|
+
readonly $id: "https://trusttasks.org/spec/rooms/keys/watch/0.1";
|
|
131
|
+
readonly title: "Rooms Keys — Watch — payload";
|
|
132
|
+
readonly description: "A member's own client asks the member's key holder to arm, re-arm or cancel rooms/watch at one host for one or more rooms, as the member, with an address the key holder controls; the key holder passes each signal on to the client with rooms/keys/changed. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly additionalProperties: false;
|
|
135
|
+
readonly required: readonly ["member", "host", "rooms"];
|
|
136
|
+
readonly properties: {
|
|
137
|
+
readonly member: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly pattern: "^did:";
|
|
140
|
+
readonly maxLength: 2048;
|
|
141
|
+
readonly description: "The member to watch as: a DID the recipient holds keys for and the caller may act as. Always named — the recipient never picks a member for the caller. This task's subject.";
|
|
142
|
+
};
|
|
143
|
+
readonly host: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly pattern: "^did:";
|
|
146
|
+
readonly maxLength: 2048;
|
|
147
|
+
readonly description: "The host to arm the watches at, as a DID. Named by the caller for the reason it is on rooms/keys/browse: nothing maps a room to its host.";
|
|
148
|
+
};
|
|
149
|
+
readonly rooms: {
|
|
150
|
+
readonly type: "array";
|
|
151
|
+
readonly minItems: 1;
|
|
152
|
+
readonly maxItems: 64;
|
|
153
|
+
readonly description: "The rooms to watch at this host, each at most once. Each is armed at the host with its own rooms/watch request, presentation and address; the host never sees them together.";
|
|
154
|
+
readonly items: {
|
|
155
|
+
readonly $ref: "#/$defs/RoomWatchRequest";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly leaseSeconds: {
|
|
159
|
+
readonly type: "integer";
|
|
160
|
+
readonly minimum: 60;
|
|
161
|
+
readonly maximum: 2592000;
|
|
162
|
+
readonly description: "How long the caller asks each watch to last if it does not fire, in seconds, up to 30 days. Passed to the host as rooms/watch's leaseSeconds; the host and the recipient MAY grant less. Absent means the host's default. Ignored on a cancel.";
|
|
163
|
+
};
|
|
164
|
+
readonly cancel: {
|
|
165
|
+
readonly type: "boolean";
|
|
166
|
+
readonly const: true;
|
|
167
|
+
readonly description: "End the watches on the named rooms. Only `true` is meaningful, so only `true` is accepted. A cancel of a watch the recipient does not hold succeeds with `armed: false`.";
|
|
168
|
+
};
|
|
169
|
+
readonly ext: {
|
|
170
|
+
readonly $ref: "#/$defs/Ext";
|
|
171
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly $defs: {
|
|
175
|
+
readonly RoomWatchRequest: {
|
|
176
|
+
readonly title: "Room to watch";
|
|
177
|
+
readonly description: "One room of the request, with the version the caller has read it to.";
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly additionalProperties: false;
|
|
180
|
+
readonly required: readonly ["roomId"];
|
|
181
|
+
readonly properties: {
|
|
182
|
+
readonly roomId: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly minLength: 1;
|
|
185
|
+
readonly maxLength: 2048;
|
|
186
|
+
readonly description: "The room.";
|
|
187
|
+
};
|
|
188
|
+
readonly sinceVersion: {
|
|
189
|
+
readonly type: "integer";
|
|
190
|
+
readonly minimum: 0;
|
|
191
|
+
readonly description: "The highest version of the room the caller has read to, passed to the host as rooms/watch's sinceVersion: the host signals as soon as the room is above it, at once if it already is. Absent means the room's latest version when the host arms the watch. Ignored on a cancel.";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly RoomWatchOutcome: {
|
|
196
|
+
readonly title: "Outcome for one room";
|
|
197
|
+
readonly description: "What became of one room of the request.";
|
|
198
|
+
readonly type: "object";
|
|
199
|
+
readonly additionalProperties: false;
|
|
200
|
+
readonly required: readonly ["roomId", "armed"];
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly roomId: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly minLength: 1;
|
|
205
|
+
readonly maxLength: 2048;
|
|
206
|
+
readonly description: "The room, echoed.";
|
|
207
|
+
};
|
|
208
|
+
readonly armed: {
|
|
209
|
+
readonly type: "boolean";
|
|
210
|
+
readonly description: "`true`: the host holds the watch armed and the recipient will pass on its signal with rooms/keys/changed. `false`: the watch was cancelled, there was none to cancel, or it was refused (`refused` says why).";
|
|
211
|
+
};
|
|
212
|
+
readonly expiresAt: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly format: "date-time";
|
|
215
|
+
readonly description: "Present when `armed` is `true`: when the watch lapses if it has not fired — the expiresAt the host answered, or earlier where the recipient bounds it. The caller re-arms before then if it still wants a signal.";
|
|
216
|
+
};
|
|
217
|
+
readonly refused: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly enum: readonly ["notAMember", "actionNotHeld", "limitReached", "hostUnreachable", "hostRefused"];
|
|
220
|
+
readonly description: "Present when this room's watch was not armed or cancelled because of a refusal. `notAMember`: the recipient holds no credential the room issued to `member`. `actionNotHeld`: the member's credentials do not confer `read`. `limitReached`: the recipient holds as many watches as it allows — the caller polls this room. `hostUnreachable`: the host could not be resolved, advertises no transport the recipient speaks, or did not answer — a retry may succeed. `hostRefused`: the host answered with a trust-task-error, whose code is in `hostCode`.";
|
|
221
|
+
};
|
|
222
|
+
readonly hostCode: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly maxLength: 256;
|
|
225
|
+
readonly description: "Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly Response: {
|
|
230
|
+
readonly $anchor: "response";
|
|
231
|
+
readonly title: "Rooms Keys — Watch — response payload";
|
|
232
|
+
readonly description: "Success response to rooms/keys/watch: one outcome per room requested, in the order requested. Type https://trusttasks.org/spec/rooms/keys/watch/0.1#response.";
|
|
233
|
+
readonly type: "object";
|
|
234
|
+
readonly additionalProperties: false;
|
|
235
|
+
readonly required: readonly ["member", "host", "watches"];
|
|
236
|
+
readonly properties: {
|
|
237
|
+
readonly member: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly pattern: "^did:";
|
|
240
|
+
readonly maxLength: 2048;
|
|
241
|
+
readonly description: "The member, echoed.";
|
|
242
|
+
};
|
|
243
|
+
readonly host: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly pattern: "^did:";
|
|
246
|
+
readonly maxLength: 2048;
|
|
247
|
+
readonly description: "The host, echoed.";
|
|
248
|
+
};
|
|
249
|
+
readonly watches: {
|
|
250
|
+
readonly type: "array";
|
|
251
|
+
readonly minItems: 1;
|
|
252
|
+
readonly maxItems: 64;
|
|
253
|
+
readonly items: {
|
|
254
|
+
readonly $ref: "#/$defs/RoomWatchOutcome";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly ext: {
|
|
258
|
+
readonly $ref: "#/$defs/Ext";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly Ext: {
|
|
263
|
+
readonly title: "Ext";
|
|
264
|
+
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.";
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly minProperties: 1;
|
|
267
|
+
readonly additionalProperties: true;
|
|
268
|
+
readonly propertyNames: {
|
|
269
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
275
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
276
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
277
|
+
readonly $ref: "#/$defs/Response";
|
|
278
|
+
readonly $defs: {
|
|
279
|
+
readonly RoomWatchRequest: {
|
|
280
|
+
readonly title: "Room to watch";
|
|
281
|
+
readonly description: "One room of the request, with the version the caller has read it to.";
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly additionalProperties: false;
|
|
284
|
+
readonly required: readonly ["roomId"];
|
|
285
|
+
readonly properties: {
|
|
286
|
+
readonly roomId: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly minLength: 1;
|
|
289
|
+
readonly maxLength: 2048;
|
|
290
|
+
readonly description: "The room.";
|
|
291
|
+
};
|
|
292
|
+
readonly sinceVersion: {
|
|
293
|
+
readonly type: "integer";
|
|
294
|
+
readonly minimum: 0;
|
|
295
|
+
readonly description: "The highest version of the room the caller has read to, passed to the host as rooms/watch's sinceVersion: the host signals as soon as the room is above it, at once if it already is. Absent means the room's latest version when the host arms the watch. Ignored on a cancel.";
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly RoomWatchOutcome: {
|
|
300
|
+
readonly title: "Outcome for one room";
|
|
301
|
+
readonly description: "What became of one room of the request.";
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
readonly required: readonly ["roomId", "armed"];
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly roomId: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly minLength: 1;
|
|
309
|
+
readonly maxLength: 2048;
|
|
310
|
+
readonly description: "The room, echoed.";
|
|
311
|
+
};
|
|
312
|
+
readonly armed: {
|
|
313
|
+
readonly type: "boolean";
|
|
314
|
+
readonly description: "`true`: the host holds the watch armed and the recipient will pass on its signal with rooms/keys/changed. `false`: the watch was cancelled, there was none to cancel, or it was refused (`refused` says why).";
|
|
315
|
+
};
|
|
316
|
+
readonly expiresAt: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly format: "date-time";
|
|
319
|
+
readonly description: "Present when `armed` is `true`: when the watch lapses if it has not fired — the expiresAt the host answered, or earlier where the recipient bounds it. The caller re-arms before then if it still wants a signal.";
|
|
320
|
+
};
|
|
321
|
+
readonly refused: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly enum: readonly ["notAMember", "actionNotHeld", "limitReached", "hostUnreachable", "hostRefused"];
|
|
324
|
+
readonly description: "Present when this room's watch was not armed or cancelled because of a refusal. `notAMember`: the recipient holds no credential the room issued to `member`. `actionNotHeld`: the member's credentials do not confer `read`. `limitReached`: the recipient holds as many watches as it allows — the caller polls this room. `hostUnreachable`: the host could not be resolved, advertises no transport the recipient speaks, or did not answer — a retry may succeed. `hostRefused`: the host answered with a trust-task-error, whose code is in `hostCode`.";
|
|
325
|
+
};
|
|
326
|
+
readonly hostCode: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly maxLength: 256;
|
|
329
|
+
readonly description: "Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
readonly Response: {
|
|
334
|
+
readonly $anchor: "response";
|
|
335
|
+
readonly title: "Rooms Keys — Watch — response payload";
|
|
336
|
+
readonly description: "Success response to rooms/keys/watch: one outcome per room requested, in the order requested. Type https://trusttasks.org/spec/rooms/keys/watch/0.1#response.";
|
|
337
|
+
readonly type: "object";
|
|
338
|
+
readonly additionalProperties: false;
|
|
339
|
+
readonly required: readonly ["member", "host", "watches"];
|
|
340
|
+
readonly properties: {
|
|
341
|
+
readonly member: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly pattern: "^did:";
|
|
344
|
+
readonly maxLength: 2048;
|
|
345
|
+
readonly description: "The member, echoed.";
|
|
346
|
+
};
|
|
347
|
+
readonly host: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly pattern: "^did:";
|
|
350
|
+
readonly maxLength: 2048;
|
|
351
|
+
readonly description: "The host, echoed.";
|
|
352
|
+
};
|
|
353
|
+
readonly watches: {
|
|
354
|
+
readonly type: "array";
|
|
355
|
+
readonly minItems: 1;
|
|
356
|
+
readonly maxItems: 64;
|
|
357
|
+
readonly items: {
|
|
358
|
+
readonly $ref: "#/$defs/RoomWatchOutcome";
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
readonly ext: {
|
|
362
|
+
readonly $ref: "#/$defs/Ext";
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
readonly Ext: {
|
|
367
|
+
readonly title: "Ext";
|
|
368
|
+
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.";
|
|
369
|
+
readonly type: "object";
|
|
370
|
+
readonly minProperties: 1;
|
|
371
|
+
readonly additionalProperties: true;
|
|
372
|
+
readonly propertyNames: {
|
|
373
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
380
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
381
|
+
* per-specification and cannot be derived from the document alone, and
|
|
382
|
+
* item 2 needs the schema this carries.
|
|
383
|
+
*/
|
|
384
|
+
export declare const SPEC: {
|
|
385
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/keys/watch/0.1";
|
|
386
|
+
readonly isBearer: false;
|
|
387
|
+
readonly isProofRequired: true;
|
|
388
|
+
readonly isRecipientRequired: true;
|
|
389
|
+
readonly isIssuedAtRequired: true;
|
|
390
|
+
readonly payloadSchema: {
|
|
391
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
392
|
+
readonly $id: "https://trusttasks.org/spec/rooms/keys/watch/0.1";
|
|
393
|
+
readonly title: "Rooms Keys — Watch — payload";
|
|
394
|
+
readonly description: "A member's own client asks the member's key holder to arm, re-arm or cancel rooms/watch at one host for one or more rooms, as the member, with an address the key holder controls; the key holder passes each signal on to the client with rooms/keys/changed. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
395
|
+
readonly type: "object";
|
|
396
|
+
readonly additionalProperties: false;
|
|
397
|
+
readonly required: readonly ["member", "host", "rooms"];
|
|
398
|
+
readonly properties: {
|
|
399
|
+
readonly member: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
readonly pattern: "^did:";
|
|
402
|
+
readonly maxLength: 2048;
|
|
403
|
+
readonly description: "The member to watch as: a DID the recipient holds keys for and the caller may act as. Always named — the recipient never picks a member for the caller. This task's subject.";
|
|
404
|
+
};
|
|
405
|
+
readonly host: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly pattern: "^did:";
|
|
408
|
+
readonly maxLength: 2048;
|
|
409
|
+
readonly description: "The host to arm the watches at, as a DID. Named by the caller for the reason it is on rooms/keys/browse: nothing maps a room to its host.";
|
|
410
|
+
};
|
|
411
|
+
readonly rooms: {
|
|
412
|
+
readonly type: "array";
|
|
413
|
+
readonly minItems: 1;
|
|
414
|
+
readonly maxItems: 64;
|
|
415
|
+
readonly description: "The rooms to watch at this host, each at most once. Each is armed at the host with its own rooms/watch request, presentation and address; the host never sees them together.";
|
|
416
|
+
readonly items: {
|
|
417
|
+
readonly $ref: "#/$defs/RoomWatchRequest";
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
readonly leaseSeconds: {
|
|
421
|
+
readonly type: "integer";
|
|
422
|
+
readonly minimum: 60;
|
|
423
|
+
readonly maximum: 2592000;
|
|
424
|
+
readonly description: "How long the caller asks each watch to last if it does not fire, in seconds, up to 30 days. Passed to the host as rooms/watch's leaseSeconds; the host and the recipient MAY grant less. Absent means the host's default. Ignored on a cancel.";
|
|
425
|
+
};
|
|
426
|
+
readonly cancel: {
|
|
427
|
+
readonly type: "boolean";
|
|
428
|
+
readonly const: true;
|
|
429
|
+
readonly description: "End the watches on the named rooms. Only `true` is meaningful, so only `true` is accepted. A cancel of a watch the recipient does not hold succeeds with `armed: false`.";
|
|
430
|
+
};
|
|
431
|
+
readonly ext: {
|
|
432
|
+
readonly $ref: "#/$defs/Ext";
|
|
433
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
readonly $defs: {
|
|
437
|
+
readonly RoomWatchRequest: {
|
|
438
|
+
readonly title: "Room to watch";
|
|
439
|
+
readonly description: "One room of the request, with the version the caller has read it to.";
|
|
440
|
+
readonly type: "object";
|
|
441
|
+
readonly additionalProperties: false;
|
|
442
|
+
readonly required: readonly ["roomId"];
|
|
443
|
+
readonly properties: {
|
|
444
|
+
readonly roomId: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly minLength: 1;
|
|
447
|
+
readonly maxLength: 2048;
|
|
448
|
+
readonly description: "The room.";
|
|
449
|
+
};
|
|
450
|
+
readonly sinceVersion: {
|
|
451
|
+
readonly type: "integer";
|
|
452
|
+
readonly minimum: 0;
|
|
453
|
+
readonly description: "The highest version of the room the caller has read to, passed to the host as rooms/watch's sinceVersion: the host signals as soon as the room is above it, at once if it already is. Absent means the room's latest version when the host arms the watch. Ignored on a cancel.";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
readonly RoomWatchOutcome: {
|
|
458
|
+
readonly title: "Outcome for one room";
|
|
459
|
+
readonly description: "What became of one room of the request.";
|
|
460
|
+
readonly type: "object";
|
|
461
|
+
readonly additionalProperties: false;
|
|
462
|
+
readonly required: readonly ["roomId", "armed"];
|
|
463
|
+
readonly properties: {
|
|
464
|
+
readonly roomId: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly minLength: 1;
|
|
467
|
+
readonly maxLength: 2048;
|
|
468
|
+
readonly description: "The room, echoed.";
|
|
469
|
+
};
|
|
470
|
+
readonly armed: {
|
|
471
|
+
readonly type: "boolean";
|
|
472
|
+
readonly description: "`true`: the host holds the watch armed and the recipient will pass on its signal with rooms/keys/changed. `false`: the watch was cancelled, there was none to cancel, or it was refused (`refused` says why).";
|
|
473
|
+
};
|
|
474
|
+
readonly expiresAt: {
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly format: "date-time";
|
|
477
|
+
readonly description: "Present when `armed` is `true`: when the watch lapses if it has not fired — the expiresAt the host answered, or earlier where the recipient bounds it. The caller re-arms before then if it still wants a signal.";
|
|
478
|
+
};
|
|
479
|
+
readonly refused: {
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly enum: readonly ["notAMember", "actionNotHeld", "limitReached", "hostUnreachable", "hostRefused"];
|
|
482
|
+
readonly description: "Present when this room's watch was not armed or cancelled because of a refusal. `notAMember`: the recipient holds no credential the room issued to `member`. `actionNotHeld`: the member's credentials do not confer `read`. `limitReached`: the recipient holds as many watches as it allows — the caller polls this room. `hostUnreachable`: the host could not be resolved, advertises no transport the recipient speaks, or did not answer — a retry may succeed. `hostRefused`: the host answered with a trust-task-error, whose code is in `hostCode`.";
|
|
483
|
+
};
|
|
484
|
+
readonly hostCode: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly maxLength: 256;
|
|
487
|
+
readonly description: "Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.";
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
readonly Response: {
|
|
492
|
+
readonly $anchor: "response";
|
|
493
|
+
readonly title: "Rooms Keys — Watch — response payload";
|
|
494
|
+
readonly description: "Success response to rooms/keys/watch: one outcome per room requested, in the order requested. Type https://trusttasks.org/spec/rooms/keys/watch/0.1#response.";
|
|
495
|
+
readonly type: "object";
|
|
496
|
+
readonly additionalProperties: false;
|
|
497
|
+
readonly required: readonly ["member", "host", "watches"];
|
|
498
|
+
readonly properties: {
|
|
499
|
+
readonly member: {
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
readonly pattern: "^did:";
|
|
502
|
+
readonly maxLength: 2048;
|
|
503
|
+
readonly description: "The member, echoed.";
|
|
504
|
+
};
|
|
505
|
+
readonly host: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly pattern: "^did:";
|
|
508
|
+
readonly maxLength: 2048;
|
|
509
|
+
readonly description: "The host, echoed.";
|
|
510
|
+
};
|
|
511
|
+
readonly watches: {
|
|
512
|
+
readonly type: "array";
|
|
513
|
+
readonly minItems: 1;
|
|
514
|
+
readonly maxItems: 64;
|
|
515
|
+
readonly items: {
|
|
516
|
+
readonly $ref: "#/$defs/RoomWatchOutcome";
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly ext: {
|
|
520
|
+
readonly $ref: "#/$defs/Ext";
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly Ext: {
|
|
525
|
+
readonly title: "Ext";
|
|
526
|
+
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.";
|
|
527
|
+
readonly type: "object";
|
|
528
|
+
readonly minProperties: 1;
|
|
529
|
+
readonly additionalProperties: true;
|
|
530
|
+
readonly propertyNames: {
|
|
531
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
539
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
540
|
+
* parties (§7.3 item 5).
|
|
541
|
+
*/
|
|
542
|
+
export declare const RESPONSE_SPEC: {
|
|
543
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/keys/watch/0.1#response";
|
|
544
|
+
readonly isBearer: false;
|
|
545
|
+
readonly isProofRequired: true;
|
|
546
|
+
readonly isRecipientRequired: true;
|
|
547
|
+
readonly isIssuedAtRequired: true;
|
|
548
|
+
readonly payloadSchema: {
|
|
549
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
550
|
+
readonly $ref: "#/$defs/Response";
|
|
551
|
+
readonly $defs: {
|
|
552
|
+
readonly RoomWatchRequest: {
|
|
553
|
+
readonly title: "Room to watch";
|
|
554
|
+
readonly description: "One room of the request, with the version the caller has read it to.";
|
|
555
|
+
readonly type: "object";
|
|
556
|
+
readonly additionalProperties: false;
|
|
557
|
+
readonly required: readonly ["roomId"];
|
|
558
|
+
readonly properties: {
|
|
559
|
+
readonly roomId: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly minLength: 1;
|
|
562
|
+
readonly maxLength: 2048;
|
|
563
|
+
readonly description: "The room.";
|
|
564
|
+
};
|
|
565
|
+
readonly sinceVersion: {
|
|
566
|
+
readonly type: "integer";
|
|
567
|
+
readonly minimum: 0;
|
|
568
|
+
readonly description: "The highest version of the room the caller has read to, passed to the host as rooms/watch's sinceVersion: the host signals as soon as the room is above it, at once if it already is. Absent means the room's latest version when the host arms the watch. Ignored on a cancel.";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly RoomWatchOutcome: {
|
|
573
|
+
readonly title: "Outcome for one room";
|
|
574
|
+
readonly description: "What became of one room of the request.";
|
|
575
|
+
readonly type: "object";
|
|
576
|
+
readonly additionalProperties: false;
|
|
577
|
+
readonly required: readonly ["roomId", "armed"];
|
|
578
|
+
readonly properties: {
|
|
579
|
+
readonly roomId: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly minLength: 1;
|
|
582
|
+
readonly maxLength: 2048;
|
|
583
|
+
readonly description: "The room, echoed.";
|
|
584
|
+
};
|
|
585
|
+
readonly armed: {
|
|
586
|
+
readonly type: "boolean";
|
|
587
|
+
readonly description: "`true`: the host holds the watch armed and the recipient will pass on its signal with rooms/keys/changed. `false`: the watch was cancelled, there was none to cancel, or it was refused (`refused` says why).";
|
|
588
|
+
};
|
|
589
|
+
readonly expiresAt: {
|
|
590
|
+
readonly type: "string";
|
|
591
|
+
readonly format: "date-time";
|
|
592
|
+
readonly description: "Present when `armed` is `true`: when the watch lapses if it has not fired — the expiresAt the host answered, or earlier where the recipient bounds it. The caller re-arms before then if it still wants a signal.";
|
|
593
|
+
};
|
|
594
|
+
readonly refused: {
|
|
595
|
+
readonly type: "string";
|
|
596
|
+
readonly enum: readonly ["notAMember", "actionNotHeld", "limitReached", "hostUnreachable", "hostRefused"];
|
|
597
|
+
readonly description: "Present when this room's watch was not armed or cancelled because of a refusal. `notAMember`: the recipient holds no credential the room issued to `member`. `actionNotHeld`: the member's credentials do not confer `read`. `limitReached`: the recipient holds as many watches as it allows — the caller polls this room. `hostUnreachable`: the host could not be resolved, advertises no transport the recipient speaks, or did not answer — a retry may succeed. `hostRefused`: the host answered with a trust-task-error, whose code is in `hostCode`.";
|
|
598
|
+
};
|
|
599
|
+
readonly hostCode: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly maxLength: 256;
|
|
602
|
+
readonly description: "Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.";
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
readonly Response: {
|
|
607
|
+
readonly $anchor: "response";
|
|
608
|
+
readonly title: "Rooms Keys — Watch — response payload";
|
|
609
|
+
readonly description: "Success response to rooms/keys/watch: one outcome per room requested, in the order requested. Type https://trusttasks.org/spec/rooms/keys/watch/0.1#response.";
|
|
610
|
+
readonly type: "object";
|
|
611
|
+
readonly additionalProperties: false;
|
|
612
|
+
readonly required: readonly ["member", "host", "watches"];
|
|
613
|
+
readonly properties: {
|
|
614
|
+
readonly member: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly pattern: "^did:";
|
|
617
|
+
readonly maxLength: 2048;
|
|
618
|
+
readonly description: "The member, echoed.";
|
|
619
|
+
};
|
|
620
|
+
readonly host: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
readonly pattern: "^did:";
|
|
623
|
+
readonly maxLength: 2048;
|
|
624
|
+
readonly description: "The host, echoed.";
|
|
625
|
+
};
|
|
626
|
+
readonly watches: {
|
|
627
|
+
readonly type: "array";
|
|
628
|
+
readonly minItems: 1;
|
|
629
|
+
readonly maxItems: 64;
|
|
630
|
+
readonly items: {
|
|
631
|
+
readonly $ref: "#/$defs/RoomWatchOutcome";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
readonly ext: {
|
|
635
|
+
readonly $ref: "#/$defs/Ext";
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
readonly Ext: {
|
|
640
|
+
readonly title: "Ext";
|
|
641
|
+
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.";
|
|
642
|
+
readonly type: "object";
|
|
643
|
+
readonly minProperties: 1;
|
|
644
|
+
readonly additionalProperties: true;
|
|
645
|
+
readonly propertyNames: {
|
|
646
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/keys/watch/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,KAAK,EAAE,CAAC,WAAW,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,EAAE,CAAC,iBAAiB,EAAE,GAAG,iBAAiB,EAAE,CAAC,CAAC;IACrD,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,GAAG,eAAe,GAAG,cAAc,GAAG,iBAAiB,GAAG,aAAa,CAAC;IAC9F;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,kDAA2D,CAAC;AAEpF;;;;;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,qBAAqB,CAAC;AAE5C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,2DAAoE,CAAC;AAEtG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,6BAA6B,CAAC;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|