@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,452 @@
|
|
|
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
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
export interface RoomsKeysWatchPayload {
|
|
13
|
+
/**
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
member: string;
|
|
17
|
+
/**
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
host: string;
|
|
21
|
+
/**
|
|
22
|
+
* 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.
|
|
23
|
+
*
|
|
24
|
+
* @minItems 1
|
|
25
|
+
* @maxItems 64
|
|
26
|
+
*/
|
|
27
|
+
rooms: [RoomToWatch, ...RoomToWatch[]];
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
*/
|
|
31
|
+
leaseSeconds?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 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`.
|
|
34
|
+
*/
|
|
35
|
+
cancel?: true;
|
|
36
|
+
/**
|
|
37
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
38
|
+
*/
|
|
39
|
+
ext?: Ext;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One room of the request, with the version the caller has read it to.
|
|
43
|
+
*/
|
|
44
|
+
export interface RoomToWatch {
|
|
45
|
+
/**
|
|
46
|
+
* The room.
|
|
47
|
+
*/
|
|
48
|
+
roomId: string;
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
sinceVersion?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 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.
|
|
56
|
+
*/
|
|
57
|
+
export interface RoomsKeysWatchResponsePayload {
|
|
58
|
+
/**
|
|
59
|
+
* The member, echoed.
|
|
60
|
+
*/
|
|
61
|
+
member: string;
|
|
62
|
+
/**
|
|
63
|
+
* The host, echoed.
|
|
64
|
+
*/
|
|
65
|
+
host: string;
|
|
66
|
+
/**
|
|
67
|
+
* @minItems 1
|
|
68
|
+
* @maxItems 64
|
|
69
|
+
*/
|
|
70
|
+
watches: [OutcomeForOneRoom, ...OutcomeForOneRoom[]];
|
|
71
|
+
ext?: Ext;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* What became of one room of the request.
|
|
75
|
+
*/
|
|
76
|
+
export interface OutcomeForOneRoom {
|
|
77
|
+
/**
|
|
78
|
+
* The room, echoed.
|
|
79
|
+
*/
|
|
80
|
+
roomId: string;
|
|
81
|
+
/**
|
|
82
|
+
* `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).
|
|
83
|
+
*/
|
|
84
|
+
armed: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* 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.
|
|
87
|
+
*/
|
|
88
|
+
expiresAt?: string;
|
|
89
|
+
/**
|
|
90
|
+
* 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`.
|
|
91
|
+
*/
|
|
92
|
+
refused?: "notAMember" | "actionNotHeld" | "limitReached" | "hostUnreachable" | "hostRefused";
|
|
93
|
+
/**
|
|
94
|
+
* Present when `refused` is `hostRefused`: the code of the host's trust-task-error, unaltered — for instance `rooms/watch:limitReached` or the standard `permissionDenied`.
|
|
95
|
+
*/
|
|
96
|
+
hostCode?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
100
|
+
export type { Ext };
|
|
101
|
+
|
|
102
|
+
/** Trust Task type URI. */
|
|
103
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/watch/0.1" as const;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The earlier version of this specification that this one declares it
|
|
107
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
108
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
109
|
+
* `extendsChain` / `readForSpec`.
|
|
110
|
+
*/
|
|
111
|
+
export const EXTENDS: string | null = null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
115
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
116
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
117
|
+
* Versions").
|
|
118
|
+
*/
|
|
119
|
+
export const DEPRECATION: string | null = null;
|
|
120
|
+
|
|
121
|
+
/** Stable alias for this specification's request payload shape. */
|
|
122
|
+
export type Payload = RoomsKeysWatchPayload;
|
|
123
|
+
|
|
124
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
125
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/watch/0.1#response" as const;
|
|
126
|
+
|
|
127
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
128
|
+
export type Response = RoomsKeysWatchResponsePayload;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* This specification's payload schema, as a value.
|
|
132
|
+
*
|
|
133
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
134
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
135
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
136
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
137
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
138
|
+
*/
|
|
139
|
+
export const PAYLOAD_SCHEMA = {
|
|
140
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
141
|
+
"$id": "https://trusttasks.org/spec/rooms/keys/watch/0.1",
|
|
142
|
+
"title": "Rooms Keys — Watch — payload",
|
|
143
|
+
"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.",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"member",
|
|
148
|
+
"host",
|
|
149
|
+
"rooms"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"member": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^did:",
|
|
155
|
+
"maxLength": 2048,
|
|
156
|
+
"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."
|
|
157
|
+
},
|
|
158
|
+
"host": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"pattern": "^did:",
|
|
161
|
+
"maxLength": 2048,
|
|
162
|
+
"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."
|
|
163
|
+
},
|
|
164
|
+
"rooms": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"minItems": 1,
|
|
167
|
+
"maxItems": 64,
|
|
168
|
+
"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.",
|
|
169
|
+
"items": {
|
|
170
|
+
"$ref": "#/$defs/RoomWatchRequest"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"leaseSeconds": {
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 60,
|
|
176
|
+
"maximum": 2592000,
|
|
177
|
+
"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."
|
|
178
|
+
},
|
|
179
|
+
"cancel": {
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"const": true,
|
|
182
|
+
"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`."
|
|
183
|
+
},
|
|
184
|
+
"ext": {
|
|
185
|
+
"$ref": "#/$defs/Ext",
|
|
186
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"$defs": {
|
|
190
|
+
"RoomWatchRequest": {
|
|
191
|
+
"title": "Room to watch",
|
|
192
|
+
"description": "One room of the request, with the version the caller has read it to.",
|
|
193
|
+
"type": "object",
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"required": [
|
|
196
|
+
"roomId"
|
|
197
|
+
],
|
|
198
|
+
"properties": {
|
|
199
|
+
"roomId": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"maxLength": 2048,
|
|
203
|
+
"description": "The room."
|
|
204
|
+
},
|
|
205
|
+
"sinceVersion": {
|
|
206
|
+
"type": "integer",
|
|
207
|
+
"minimum": 0,
|
|
208
|
+
"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."
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"RoomWatchOutcome": {
|
|
213
|
+
"title": "Outcome for one room",
|
|
214
|
+
"description": "What became of one room of the request.",
|
|
215
|
+
"type": "object",
|
|
216
|
+
"additionalProperties": false,
|
|
217
|
+
"required": [
|
|
218
|
+
"roomId",
|
|
219
|
+
"armed"
|
|
220
|
+
],
|
|
221
|
+
"properties": {
|
|
222
|
+
"roomId": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 2048,
|
|
226
|
+
"description": "The room, echoed."
|
|
227
|
+
},
|
|
228
|
+
"armed": {
|
|
229
|
+
"type": "boolean",
|
|
230
|
+
"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)."
|
|
231
|
+
},
|
|
232
|
+
"expiresAt": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"format": "date-time",
|
|
235
|
+
"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."
|
|
236
|
+
},
|
|
237
|
+
"refused": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"enum": [
|
|
240
|
+
"notAMember",
|
|
241
|
+
"actionNotHeld",
|
|
242
|
+
"limitReached",
|
|
243
|
+
"hostUnreachable",
|
|
244
|
+
"hostRefused"
|
|
245
|
+
],
|
|
246
|
+
"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`."
|
|
247
|
+
},
|
|
248
|
+
"hostCode": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"maxLength": 256,
|
|
251
|
+
"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`."
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"Response": {
|
|
256
|
+
"$anchor": "response",
|
|
257
|
+
"title": "Rooms Keys — Watch — response payload",
|
|
258
|
+
"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.",
|
|
259
|
+
"type": "object",
|
|
260
|
+
"additionalProperties": false,
|
|
261
|
+
"required": [
|
|
262
|
+
"member",
|
|
263
|
+
"host",
|
|
264
|
+
"watches"
|
|
265
|
+
],
|
|
266
|
+
"properties": {
|
|
267
|
+
"member": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"pattern": "^did:",
|
|
270
|
+
"maxLength": 2048,
|
|
271
|
+
"description": "The member, echoed."
|
|
272
|
+
},
|
|
273
|
+
"host": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"pattern": "^did:",
|
|
276
|
+
"maxLength": 2048,
|
|
277
|
+
"description": "The host, echoed."
|
|
278
|
+
},
|
|
279
|
+
"watches": {
|
|
280
|
+
"type": "array",
|
|
281
|
+
"minItems": 1,
|
|
282
|
+
"maxItems": 64,
|
|
283
|
+
"items": {
|
|
284
|
+
"$ref": "#/$defs/RoomWatchOutcome"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"ext": {
|
|
288
|
+
"$ref": "#/$defs/Ext"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"Ext": {
|
|
293
|
+
"title": "Ext",
|
|
294
|
+
"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.",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"minProperties": 1,
|
|
297
|
+
"additionalProperties": true,
|
|
298
|
+
"propertyNames": {
|
|
299
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
} as const;
|
|
304
|
+
|
|
305
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
306
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
307
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
308
|
+
"$ref": "#/$defs/Response",
|
|
309
|
+
"$defs": {
|
|
310
|
+
"RoomWatchRequest": {
|
|
311
|
+
"title": "Room to watch",
|
|
312
|
+
"description": "One room of the request, with the version the caller has read it to.",
|
|
313
|
+
"type": "object",
|
|
314
|
+
"additionalProperties": false,
|
|
315
|
+
"required": [
|
|
316
|
+
"roomId"
|
|
317
|
+
],
|
|
318
|
+
"properties": {
|
|
319
|
+
"roomId": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"minLength": 1,
|
|
322
|
+
"maxLength": 2048,
|
|
323
|
+
"description": "The room."
|
|
324
|
+
},
|
|
325
|
+
"sinceVersion": {
|
|
326
|
+
"type": "integer",
|
|
327
|
+
"minimum": 0,
|
|
328
|
+
"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."
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"RoomWatchOutcome": {
|
|
333
|
+
"title": "Outcome for one room",
|
|
334
|
+
"description": "What became of one room of the request.",
|
|
335
|
+
"type": "object",
|
|
336
|
+
"additionalProperties": false,
|
|
337
|
+
"required": [
|
|
338
|
+
"roomId",
|
|
339
|
+
"armed"
|
|
340
|
+
],
|
|
341
|
+
"properties": {
|
|
342
|
+
"roomId": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"minLength": 1,
|
|
345
|
+
"maxLength": 2048,
|
|
346
|
+
"description": "The room, echoed."
|
|
347
|
+
},
|
|
348
|
+
"armed": {
|
|
349
|
+
"type": "boolean",
|
|
350
|
+
"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)."
|
|
351
|
+
},
|
|
352
|
+
"expiresAt": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"format": "date-time",
|
|
355
|
+
"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."
|
|
356
|
+
},
|
|
357
|
+
"refused": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"enum": [
|
|
360
|
+
"notAMember",
|
|
361
|
+
"actionNotHeld",
|
|
362
|
+
"limitReached",
|
|
363
|
+
"hostUnreachable",
|
|
364
|
+
"hostRefused"
|
|
365
|
+
],
|
|
366
|
+
"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`."
|
|
367
|
+
},
|
|
368
|
+
"hostCode": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"maxLength": 256,
|
|
371
|
+
"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`."
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"Response": {
|
|
376
|
+
"$anchor": "response",
|
|
377
|
+
"title": "Rooms Keys — Watch — response payload",
|
|
378
|
+
"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.",
|
|
379
|
+
"type": "object",
|
|
380
|
+
"additionalProperties": false,
|
|
381
|
+
"required": [
|
|
382
|
+
"member",
|
|
383
|
+
"host",
|
|
384
|
+
"watches"
|
|
385
|
+
],
|
|
386
|
+
"properties": {
|
|
387
|
+
"member": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"pattern": "^did:",
|
|
390
|
+
"maxLength": 2048,
|
|
391
|
+
"description": "The member, echoed."
|
|
392
|
+
},
|
|
393
|
+
"host": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"pattern": "^did:",
|
|
396
|
+
"maxLength": 2048,
|
|
397
|
+
"description": "The host, echoed."
|
|
398
|
+
},
|
|
399
|
+
"watches": {
|
|
400
|
+
"type": "array",
|
|
401
|
+
"minItems": 1,
|
|
402
|
+
"maxItems": 64,
|
|
403
|
+
"items": {
|
|
404
|
+
"$ref": "#/$defs/RoomWatchOutcome"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"ext": {
|
|
408
|
+
"$ref": "#/$defs/Ext"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"Ext": {
|
|
413
|
+
"title": "Ext",
|
|
414
|
+
"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.",
|
|
415
|
+
"type": "object",
|
|
416
|
+
"minProperties": 1,
|
|
417
|
+
"additionalProperties": true,
|
|
418
|
+
"propertyNames": {
|
|
419
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
} as const;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
427
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
428
|
+
* per-specification and cannot be derived from the document alone, and
|
|
429
|
+
* item 2 needs the schema this carries.
|
|
430
|
+
*/
|
|
431
|
+
export const SPEC = {
|
|
432
|
+
typeUri: TYPE_URI,
|
|
433
|
+
isBearer: false,
|
|
434
|
+
isProofRequired: true,
|
|
435
|
+
isRecipientRequired: true,
|
|
436
|
+
isIssuedAtRequired: true,
|
|
437
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
438
|
+
} as const;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
442
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
443
|
+
* parties (§7.3 item 5).
|
|
444
|
+
*/
|
|
445
|
+
export const RESPONSE_SPEC = {
|
|
446
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
447
|
+
isBearer: false,
|
|
448
|
+
isProofRequired: true,
|
|
449
|
+
isRecipientRequired: true,
|
|
450
|
+
isIssuedAtRequired: true,
|
|
451
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
452
|
+
} as const;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { AuthorityPresentation, DataCommitment, DigestMultibase, Ext, HeadVersion, RecordCount, RecordTrace, SealedRecord } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
/** @deprecated superseded by rooms/records/get/0.
|
|
9
|
+
/** @deprecated superseded by rooms/records/get/0.3 */
|
|
10
10
|
export interface RoomsRecordsGetPayload {
|
|
11
11
|
/**
|
|
12
12
|
* The room's identifier.
|
|
@@ -28,7 +28,7 @@ export interface RoomsRecordsGetPayload {
|
|
|
28
28
|
/**
|
|
29
29
|
* Success response to rooms/records/get. Type https://trusttasks.org/spec/rooms/records/get/0.1#response.
|
|
30
30
|
*
|
|
31
|
-
* @deprecated superseded by rooms/records/get/0.
|
|
31
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
32
32
|
*/
|
|
33
33
|
export interface RoomsRecordsGetResponsePayload {
|
|
34
34
|
key: string;
|
|
@@ -104,12 +104,12 @@ export const EXTENDS: string | null = null;
|
|
|
104
104
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
105
105
|
* Versions").
|
|
106
106
|
*/
|
|
107
|
-
export const DEPRECATION: string | null = "superseded by rooms/records/get/0.
|
|
107
|
+
export const DEPRECATION: string | null = "superseded by rooms/records/get/0.3";
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Stable alias for this specification's request payload shape.
|
|
111
111
|
*
|
|
112
|
-
* @deprecated superseded by rooms/records/get/0.
|
|
112
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
113
113
|
*/
|
|
114
114
|
export type Payload = RoomsRecordsGetPayload;
|
|
115
115
|
|
|
@@ -119,7 +119,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/get/
|
|
|
119
119
|
/**
|
|
120
120
|
* Stable alias for this specification's success-response payload shape.
|
|
121
121
|
*
|
|
122
|
-
* @deprecated superseded by rooms/records/get/0.
|
|
122
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
123
123
|
*/
|
|
124
124
|
export type Response = RoomsRecordsGetResponsePayload;
|
|
125
125
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { AuthorityPresentation, BlobRef, DataCommitment, DigestMultibase, Ext, HeadVersion, RecordCount, RecordTrace, SealedRecord } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
/** @deprecated superseded by rooms/records/get/0.3 */
|
|
9
10
|
export interface RoomsRecordsGetPayload {
|
|
10
11
|
/**
|
|
11
12
|
* The room's identifier.
|
|
@@ -26,6 +27,8 @@ export interface RoomsRecordsGetPayload {
|
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Success response to rooms/records/get. Type https://trusttasks.org/spec/rooms/records/get/0.2#response.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
29
32
|
*/
|
|
30
33
|
export interface RoomsRecordsGetResponsePayload {
|
|
31
34
|
key: string;
|
|
@@ -108,15 +111,23 @@ export const EXTENDS: string | null = null;
|
|
|
108
111
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
109
112
|
* Versions").
|
|
110
113
|
*/
|
|
111
|
-
export const DEPRECATION: string | null =
|
|
114
|
+
export const DEPRECATION: string | null = "superseded by rooms/records/get/0.3";
|
|
112
115
|
|
|
113
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Stable alias for this specification's request payload shape.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
120
|
+
*/
|
|
114
121
|
export type Payload = RoomsRecordsGetPayload;
|
|
115
122
|
|
|
116
123
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
117
124
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/get/0.2#response" as const;
|
|
118
125
|
|
|
119
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Stable alias for this specification's success-response payload shape.
|
|
128
|
+
*
|
|
129
|
+
* @deprecated superseded by rooms/records/get/0.3
|
|
130
|
+
*/
|
|
120
131
|
export type Response = RoomsRecordsGetResponsePayload;
|
|
121
132
|
|
|
122
133
|
/**
|