@openvtc/trust-tasks 0.23.7 → 0.23.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/dist/_shared/components.d.ts +2451 -4
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/oob/_shared/0.1/oob.d.ts +16 -0
- package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -0
- package/dist/auth/oob/_shared/0.1/oob.js +6 -0
- package/dist/auth/oob/_shared/0.1/oob.js.map +1 -0
- package/dist/auth/oob/cancel/0.1/payload.d.ts +262 -0
- package/dist/auth/oob/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/cancel/0.1/payload.js +153 -0
- package/dist/auth/oob/cancel/0.1/payload.js.map +1 -0
- package/dist/auth/oob/claim/0.1/payload.d.ts +463 -0
- package/dist/auth/oob/claim/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/claim/0.1/payload.js +264 -0
- package/dist/auth/oob/claim/0.1/payload.js.map +1 -0
- package/dist/auth/oob/grant/0.1/payload.d.ts +212 -0
- package/dist/auth/oob/grant/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.1/payload.js +117 -0
- package/dist/auth/oob/grant/0.1/payload.js.map +1 -0
- package/dist/auth/oob/identify/0.1/payload.d.ts +145 -0
- package/dist/auth/oob/identify/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/identify/0.1/payload.js +81 -0
- package/dist/auth/oob/identify/0.1/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.1/payload.d.ts +740 -0
- package/dist/auth/oob/prove/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.1/payload.js +422 -0
- package/dist/auth/oob/prove/0.1/payload.js.map +1 -0
- package/dist/auth/oob/redeem/0.1/payload.d.ts +364 -0
- package/dist/auth/oob/redeem/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/redeem/0.1/payload.js +199 -0
- package/dist/auth/oob/redeem/0.1/payload.js.map +1 -0
- package/dist/auth/oob/request/0.1/payload.d.ts +330 -0
- package/dist/auth/oob/request/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/request/0.1/payload.js +193 -0
- package/dist/auth/oob/request/0.1/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.1/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.1/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.1/payload.js +140 -0
- package/dist/auth/oob/respond/0.1/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +6 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +6 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +6 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +6 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/external/_shared/0.1/accounts.d.ts +18 -0
- package/dist/external/_shared/0.1/accounts.d.ts.map +1 -0
- package/dist/external/_shared/0.1/accounts.js +6 -0
- package/dist/external/_shared/0.1/accounts.js.map +1 -0
- package/dist/external/accounts/archive/0.1/payload.d.ts +2945 -0
- package/dist/external/accounts/archive/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/archive/0.1/payload.js +1736 -0
- package/dist/external/accounts/archive/0.1/payload.js.map +1 -0
- package/dist/external/accounts/bindings/grant/0.1/payload.d.ts +2938 -0
- package/dist/external/accounts/bindings/grant/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/bindings/grant/0.1/payload.js +1735 -0
- package/dist/external/accounts/bindings/grant/0.1/payload.js.map +1 -0
- package/dist/external/accounts/bindings/revoke/0.1/payload.d.ts +2958 -0
- package/dist/external/accounts/bindings/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/bindings/revoke/0.1/payload.js +1743 -0
- package/dist/external/accounts/bindings/revoke/0.1/payload.js.map +1 -0
- package/dist/external/accounts/create/0.1/payload.d.ts +2954 -0
- package/dist/external/accounts/create/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/create/0.1/payload.js +1742 -0
- package/dist/external/accounts/create/0.1/payload.js.map +1 -0
- package/dist/external/accounts/delete/0.1/payload.d.ts +310 -0
- package/dist/external/accounts/delete/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/delete/0.1/payload.js +176 -0
- package/dist/external/accounts/delete/0.1/payload.js.map +1 -0
- package/dist/external/accounts/get/0.1/payload.d.ts +2931 -0
- package/dist/external/accounts/get/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/get/0.1/payload.js +1731 -0
- package/dist/external/accounts/get/0.1/payload.js.map +1 -0
- package/dist/external/accounts/keys/rotate/0.1/payload.d.ts +3216 -0
- package/dist/external/accounts/keys/rotate/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/keys/rotate/0.1/payload.js +1912 -0
- package/dist/external/accounts/keys/rotate/0.1/payload.js.map +1 -0
- package/dist/external/accounts/list/0.1/payload.d.ts +3034 -0
- package/dist/external/accounts/list/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/list/0.1/payload.js +1791 -0
- package/dist/external/accounts/list/0.1/payload.js.map +1 -0
- package/dist/external/accounts/probe/0.1/payload.d.ts +511 -0
- package/dist/external/accounts/probe/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/probe/0.1/payload.js +307 -0
- package/dist/external/accounts/probe/0.1/payload.js.map +1 -0
- package/dist/external/accounts/restore/0.1/payload.d.ts +2945 -0
- package/dist/external/accounts/restore/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/restore/0.1/payload.js +1736 -0
- package/dist/external/accounts/restore/0.1/payload.js.map +1 -0
- package/dist/external/accounts/resume/0.1/payload.d.ts +2945 -0
- package/dist/external/accounts/resume/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/resume/0.1/payload.js +1736 -0
- package/dist/external/accounts/resume/0.1/payload.js.map +1 -0
- package/dist/external/accounts/secret/set/0.1/payload.d.ts +379 -0
- package/dist/external/accounts/secret/set/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/secret/set/0.1/payload.js +212 -0
- package/dist/external/accounts/secret/set/0.1/payload.js.map +1 -0
- package/dist/external/accounts/setup/0.1/payload.d.ts +535 -0
- package/dist/external/accounts/setup/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/setup/0.1/payload.js +325 -0
- package/dist/external/accounts/setup/0.1/payload.js.map +1 -0
- package/dist/external/accounts/suspend/0.1/payload.d.ts +2945 -0
- package/dist/external/accounts/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/suspend/0.1/payload.js +1736 -0
- package/dist/external/accounts/suspend/0.1/payload.js.map +1 -0
- package/dist/external/accounts/update/0.1/payload.d.ts +2949 -0
- package/dist/external/accounts/update/0.1/payload.d.ts.map +1 -0
- package/dist/external/accounts/update/0.1/payload.js +1739 -0
- package/dist/external/accounts/update/0.1/payload.js.map +1 -0
- package/dist/external/credentials/issue/0.1/payload.d.ts +586 -0
- package/dist/external/credentials/issue/0.1/payload.d.ts.map +1 -0
- package/dist/external/credentials/issue/0.1/payload.js +322 -0
- package/dist/external/credentials/issue/0.1/payload.js.map +1 -0
- package/dist/external/sign/0.1/payload.d.ts +348 -0
- package/dist/external/sign/0.1/payload.d.ts.map +1 -0
- package/dist/external/sign/0.1/payload.js +193 -0
- package/dist/external/sign/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/_shared/0.1/blobs.d.ts +16 -0
- package/dist/rooms/_shared/0.1/blobs.d.ts.map +1 -0
- package/dist/rooms/_shared/0.1/blobs.js +6 -0
- package/dist/rooms/_shared/0.1/blobs.js.map +1 -0
- 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/blobs/chunk/0.1/payload.d.ts +375 -0
- package/dist/rooms/blobs/chunk/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/chunk/0.1/payload.js +213 -0
- package/dist/rooms/blobs/chunk/0.1/payload.js.map +1 -0
- package/dist/rooms/blobs/get/0.1/payload.d.ts +743 -0
- package/dist/rooms/blobs/get/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/get/0.1/payload.js +415 -0
- package/dist/rooms/blobs/get/0.1/payload.js.map +1 -0
- package/dist/rooms/blobs/upload/abort/0.1/payload.d.ts +263 -0
- package/dist/rooms/blobs/upload/abort/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/upload/abort/0.1/payload.js +151 -0
- package/dist/rooms/blobs/upload/abort/0.1/payload.js.map +1 -0
- package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts +793 -0
- package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/upload/begin/0.1/payload.js +437 -0
- package/dist/rooms/blobs/upload/begin/0.1/payload.js.map +1 -0
- package/dist/rooms/blobs/upload/chunk/0.1/payload.d.ts +459 -0
- package/dist/rooms/blobs/upload/chunk/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/upload/chunk/0.1/payload.js +256 -0
- package/dist/rooms/blobs/upload/chunk/0.1/payload.js.map +1 -0
- package/dist/rooms/blobs/upload/commit/0.1/payload.d.ts +326 -0
- package/dist/rooms/blobs/upload/commit/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/blobs/upload/commit/0.1/payload.js +185 -0
- package/dist/rooms/blobs/upload/commit/0.1/payload.js.map +1 -0
- package/dist/rooms/info/0.1/payload.d.ts +897 -0
- package/dist/rooms/info/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/info/0.1/payload.js +498 -0
- package/dist/rooms/info/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/file-key/0.1/payload.d.ts +306 -0
- package/dist/rooms/keys/file-key/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/file-key/0.1/payload.js +167 -0
- package/dist/rooms/keys/file-key/0.1/payload.js.map +1 -0
- package/dist/rooms/records/get/0.2/payload.d.ts +954 -0
- package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/records/get/0.2/payload.js +515 -0
- package/dist/rooms/records/get/0.2/payload.js.map +1 -0
- package/dist/rooms/records/list/0.2/payload.d.ts +854 -0
- package/dist/rooms/records/list/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/records/list/0.2/payload.js +462 -0
- package/dist/rooms/records/list/0.2/payload.js.map +1 -0
- package/dist/rooms/records/put/0.2/payload.d.ts +679 -0
- package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/records/put/0.2/payload.js +357 -0
- package/dist/rooms/records/put/0.2/payload.js.map +1 -0
- package/dist/rooms/usage/0.1/payload.d.ts +795 -0
- package/dist/rooms/usage/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/usage/0.1/payload.js +417 -0
- package/dist/rooms/usage/0.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/room-storage.d.ts +16 -0
- package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/room-storage.js +6 -0
- package/dist/vtc/_shared/0.1/room-storage.js.map +1 -0
- package/dist/vtc/rooms/get/0.1/payload.d.ts +1813 -0
- package/dist/vtc/rooms/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/get/0.1/payload.js +892 -0
- package/dist/vtc/rooms/get/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/limits/set/0.1/payload.d.ts +873 -0
- package/dist/vtc/rooms/limits/set/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/limits/set/0.1/payload.js +489 -0
- package/dist/vtc/rooms/limits/set/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/storage/assign/0.1/payload.d.ts +341 -0
- package/dist/vtc/rooms/storage/assign/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/storage/assign/0.1/payload.js +191 -0
- package/dist/vtc/rooms/storage/assign/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/storage/migrate/0.1/payload.d.ts +452 -0
- package/dist/vtc/rooms/storage/migrate/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/storage/migrate/0.1/payload.js +260 -0
- package/dist/vtc/rooms/storage/migrate/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/usage/0.1/payload.d.ts +880 -0
- package/dist/vtc/rooms/usage/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/usage/0.1/payload.js +457 -0
- package/dist/vtc/rooms/usage/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1272 -0
- package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/create/0.1/payload.js +737 -0
- package/dist/vtc/storage/configs/create/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1750 -0
- package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/get/0.1/payload.js +1019 -0
- package/dist/vtc/storage/configs/get/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1851 -0
- package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/list/0.1/payload.js +1069 -0
- package/dist/vtc/storage/configs/list/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/probe/0.1/payload.d.ts +459 -0
- package/dist/vtc/storage/configs/probe/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/probe/0.1/payload.js +267 -0
- package/dist/vtc/storage/configs/probe/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/retire/0.1/payload.d.ts +294 -0
- package/dist/vtc/storage/configs/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/retire/0.1/payload.js +176 -0
- package/dist/vtc/storage/configs/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1274 -0
- package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/configs/update/0.1/payload.js +736 -0
- package/dist/vtc/storage/configs/update/0.1/payload.js.map +1 -0
- package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +511 -0
- package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/storage/credentials/set/0.1/payload.js +293 -0
- package/dist/vtc/storage/credentials/set/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +69 -8
- package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/vetting/hidden/publish/0.1/payload.js +31 -0
- package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +62 -8
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/vetting/hidden/show/0.1/payload.js +28 -0
- package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts +3 -3
- package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js +1 -1
- package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +2539 -4
- package/src/auth/oob/_shared/0.1/oob.ts +17 -0
- package/src/auth/oob/cancel/0.1/payload.ts +188 -0
- package/src/auth/oob/claim/0.1/payload.ts +306 -0
- package/src/auth/oob/grant/0.1/payload.ts +159 -0
- package/src/auth/oob/identify/0.1/payload.ts +110 -0
- package/src/auth/oob/prove/0.1/payload.ts +473 -0
- package/src/auth/oob/redeem/0.1/payload.ts +248 -0
- package/src/auth/oob/request/0.1/payload.ts +230 -0
- package/src/auth/oob/respond/0.1/payload.ts +178 -0
- package/src/device/list/0.1/payload.ts +6 -2
- package/src/device/list/0.2/payload.ts +6 -2
- package/src/device/register/0.1/payload.ts +6 -2
- package/src/device/register/0.2/payload.ts +6 -2
- package/src/external/_shared/0.1/accounts.ts +19 -0
- package/src/external/accounts/archive/0.1/payload.ts +1770 -0
- package/src/external/accounts/bindings/grant/0.1/payload.ts +1766 -0
- package/src/external/accounts/bindings/revoke/0.1/payload.ts +1778 -0
- package/src/external/accounts/create/0.1/payload.ts +1777 -0
- package/src/external/accounts/delete/0.1/payload.ts +211 -0
- package/src/external/accounts/get/0.1/payload.ts +1761 -0
- package/src/external/accounts/keys/rotate/0.1/payload.ts +1947 -0
- package/src/external/accounts/list/0.1/payload.ts +1834 -0
- package/src/external/accounts/probe/0.1/payload.ts +337 -0
- package/src/external/accounts/restore/0.1/payload.ts +1770 -0
- package/src/external/accounts/resume/0.1/payload.ts +1770 -0
- package/src/external/accounts/secret/set/0.1/payload.ts +248 -0
- package/src/external/accounts/setup/0.1/payload.ts +355 -0
- package/src/external/accounts/suspend/0.1/payload.ts +1770 -0
- package/src/external/accounts/update/0.1/payload.ts +1771 -0
- package/src/external/credentials/issue/0.1/payload.ts +365 -0
- package/src/external/sign/0.1/payload.ts +234 -0
- package/src/index.ts +53 -0
- package/src/rooms/_shared/0.1/blobs.ts +17 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/blobs/chunk/0.1/payload.ts +251 -0
- package/src/rooms/blobs/get/0.1/payload.ts +463 -0
- package/src/rooms/blobs/upload/abort/0.1/payload.ts +187 -0
- package/src/rooms/blobs/upload/begin/0.1/payload.ts +491 -0
- package/src/rooms/blobs/upload/chunk/0.1/payload.ts +304 -0
- package/src/rooms/blobs/upload/commit/0.1/payload.ts +224 -0
- package/src/rooms/info/0.1/payload.ts +572 -0
- package/src/rooms/keys/file-key/0.1/payload.ts +224 -0
- package/src/rooms/records/get/0.2/payload.ts +614 -0
- package/src/rooms/records/list/0.2/payload.ts +533 -0
- package/src/rooms/records/put/0.2/payload.ts +441 -0
- package/src/rooms/usage/0.1/payload.ts +499 -0
- package/src/vtc/_shared/0.1/room-storage.ts +17 -0
- package/src/vtc/rooms/get/0.1/payload.ts +1275 -0
- package/src/vtc/rooms/limits/set/0.1/payload.ts +555 -0
- package/src/vtc/rooms/storage/assign/0.1/payload.ts +237 -0
- package/src/vtc/rooms/storage/migrate/0.1/payload.ts +317 -0
- package/src/vtc/rooms/usage/0.1/payload.ts +568 -0
- package/src/vtc/storage/configs/create/0.1/payload.ts +784 -0
- package/src/vtc/storage/configs/get/0.1/payload.ts +1054 -0
- package/src/vtc/storage/configs/list/0.1/payload.ts +1121 -0
- package/src/vtc/storage/configs/probe/0.1/payload.ts +329 -0
- package/src/vtc/storage/configs/retire/0.1/payload.ts +211 -0
- package/src/vtc/storage/configs/update/0.1/payload.ts +783 -0
- package/src/vtc/storage/credentials/set/0.1/payload.ts +339 -0
- package/src/vtc/vetting/hidden/publish/0.1/payload.ts +39 -0
- package/src/vtc/vetting/hidden/show/0.1/payload.ts +35 -0
- package/src/vtc/vetting/vetters/pcs-tokens/0.1/payload.ts +2 -2
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/records/put/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { AuthorityPresentation, BlobRef, DigestMultibase, Ext, SealedRecord } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A member writes a record to a data room, authorized by an authority chain the room itself issued. 0.2 adds `blobs`: a record can carry a file, whose ciphertext the host stores outside the record and whose description is sealed inside it.
|
|
8
|
+
*/
|
|
9
|
+
export interface RoomsRecordsPutPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own — which is what lets a room move hosts without reissuing a credential.
|
|
12
|
+
*/
|
|
13
|
+
roomId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The record's key within the room. MUST be opaque on an `attributed` or `private` room; see RecordMetadata.key.
|
|
16
|
+
*/
|
|
17
|
+
key: string;
|
|
18
|
+
/**
|
|
19
|
+
* Must confer the `write` action at this room's scope.
|
|
20
|
+
*/
|
|
21
|
+
presentation: AuthorityPresentation;
|
|
22
|
+
/**
|
|
23
|
+
* Optional precondition. Omit to overwrite unconditionally; `0` means create-only and fails if the key exists. On mismatch the host returns `rooms/records/put:versionConflict` CARRYING THE CURRENT VERSION AND RECORD — a bare rejection would force a re-read, and between rejection and re-read the record can change again, so the pattern has no fixed point under contention.
|
|
24
|
+
*/
|
|
25
|
+
expectedVersion?: number;
|
|
26
|
+
/**
|
|
27
|
+
* REQUIRED on an `attributed` or `private` room. Mutually exclusive with `cleartext`.
|
|
28
|
+
*/
|
|
29
|
+
sealed?: SealedRecord;
|
|
30
|
+
/**
|
|
31
|
+
* REQUIRED on an `open` room, where the host reads records and can therefore search them. Mutually exclusive with `sealed`.
|
|
32
|
+
*/
|
|
33
|
+
cleartext?: {
|
|
34
|
+
title?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
body: string;
|
|
37
|
+
/**
|
|
38
|
+
* @maxItems 32
|
|
39
|
+
*/
|
|
40
|
+
tags?: string[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The blobs this record keeps alive: today at most one, the file the record carries. Cleartext on every tier, because the host must know which blobs a record references to refuse a record naming a blob it does not hold, to count usage, and to collect a blob no record names. Every blob named MUST have been committed in THIS room (rooms/blobs/upload/commit). An array so that several files per record is a later minor version rather than a reshaped member. Omit for a record with no file; a rewrite that omits it releases whatever blob the previous version named.
|
|
44
|
+
*
|
|
45
|
+
* @minItems 1
|
|
46
|
+
* @maxItems 1
|
|
47
|
+
*/
|
|
48
|
+
blobs?: [BlobRef];
|
|
49
|
+
/**
|
|
50
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
51
|
+
*/
|
|
52
|
+
ext?: Ext;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.
|
|
56
|
+
*/
|
|
57
|
+
export interface RoomsRecordsPutResponsePayload {
|
|
58
|
+
/**
|
|
59
|
+
* The stored record's key.
|
|
60
|
+
*/
|
|
61
|
+
key: string;
|
|
62
|
+
/**
|
|
63
|
+
* The version assigned, monotonic per room.
|
|
64
|
+
*/
|
|
65
|
+
version: number;
|
|
66
|
+
/**
|
|
67
|
+
* The epoch the record was stored under.
|
|
68
|
+
*/
|
|
69
|
+
epoch?: number;
|
|
70
|
+
ext?: Ext;
|
|
71
|
+
}
|
|
72
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
73
|
+
export type { AuthorityPresentation, BlobRef, DigestMultibase, Ext, SealedRecord };
|
|
74
|
+
/** Trust Task type URI. */
|
|
75
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/records/put/0.2";
|
|
76
|
+
/** Stable alias for this specification's request payload shape. */
|
|
77
|
+
export type Payload = RoomsRecordsPutPayload;
|
|
78
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
79
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/records/put/0.2#response";
|
|
80
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
81
|
+
export type Response = RoomsRecordsPutResponsePayload;
|
|
82
|
+
/**
|
|
83
|
+
* This specification's payload schema, as a value.
|
|
84
|
+
*
|
|
85
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
86
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
87
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
88
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
89
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
90
|
+
*/
|
|
91
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
92
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
93
|
+
readonly $id: "https://trusttasks.org/spec/rooms/records/put/0.2";
|
|
94
|
+
readonly title: "Rooms Records Put — payload";
|
|
95
|
+
readonly description: "A member writes a record to a data room, authorized by an authority chain the room itself issued. 0.2 adds `blobs`: a record can carry a file, whose ciphertext the host stores outside the record and whose description is sealed inside it.";
|
|
96
|
+
readonly type: "object";
|
|
97
|
+
readonly additionalProperties: false;
|
|
98
|
+
readonly required: readonly ["roomId", "key", "presentation"];
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly roomId: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly description: "The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own — which is what lets a room move hosts without reissuing a credential.";
|
|
103
|
+
};
|
|
104
|
+
readonly key: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly maxLength: 512;
|
|
107
|
+
readonly description: "The record's key within the room. MUST be opaque on an `attributed` or `private` room; see RecordMetadata.key.";
|
|
108
|
+
};
|
|
109
|
+
readonly presentation: {
|
|
110
|
+
readonly $ref: "#/$defs/AuthorityPresentation";
|
|
111
|
+
readonly description: "Must confer the `write` action at this room's scope.";
|
|
112
|
+
};
|
|
113
|
+
readonly expectedVersion: {
|
|
114
|
+
readonly type: "integer";
|
|
115
|
+
readonly minimum: 0;
|
|
116
|
+
readonly description: "Optional precondition. Omit to overwrite unconditionally; `0` means create-only and fails if the key exists. On mismatch the host returns `rooms/records/put:versionConflict` CARRYING THE CURRENT VERSION AND RECORD — a bare rejection would force a re-read, and between rejection and re-read the record can change again, so the pattern has no fixed point under contention.";
|
|
117
|
+
};
|
|
118
|
+
readonly sealed: {
|
|
119
|
+
readonly $ref: "#/$defs/SealedRecord";
|
|
120
|
+
readonly description: "REQUIRED on an `attributed` or `private` room. Mutually exclusive with `cleartext`.";
|
|
121
|
+
};
|
|
122
|
+
readonly cleartext: {
|
|
123
|
+
readonly type: "object";
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
readonly required: readonly ["body"];
|
|
126
|
+
readonly description: "REQUIRED on an `open` room, where the host reads records and can therefore search them. Mutually exclusive with `sealed`.";
|
|
127
|
+
readonly properties: {
|
|
128
|
+
readonly title: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly maxLength: 512;
|
|
131
|
+
};
|
|
132
|
+
readonly description: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly maxLength: 2048;
|
|
135
|
+
};
|
|
136
|
+
readonly body: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly maxLength: 1048576;
|
|
139
|
+
};
|
|
140
|
+
readonly tags: {
|
|
141
|
+
readonly type: "array";
|
|
142
|
+
readonly items: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly maxLength: 64;
|
|
145
|
+
};
|
|
146
|
+
readonly maxItems: 32;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly blobs: {
|
|
151
|
+
readonly type: "array";
|
|
152
|
+
readonly minItems: 1;
|
|
153
|
+
readonly maxItems: 1;
|
|
154
|
+
readonly uniqueItems: true;
|
|
155
|
+
readonly items: {
|
|
156
|
+
readonly $ref: "#/$defs/BlobRef";
|
|
157
|
+
};
|
|
158
|
+
readonly description: "The blobs this record keeps alive: today at most one, the file the record carries. Cleartext on every tier, because the host must know which blobs a record references to refuse a record naming a blob it does not hold, to count usage, and to collect a blob no record names. Every blob named MUST have been committed in THIS room (rooms/blobs/upload/commit). An array so that several files per record is a later minor version rather than a reshaped member. Omit for a record with no file; a rewrite that omits it releases whatever blob the previous version named.";
|
|
159
|
+
};
|
|
160
|
+
readonly ext: {
|
|
161
|
+
readonly $ref: "#/$defs/Ext";
|
|
162
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly $defs: {
|
|
166
|
+
readonly Response: {
|
|
167
|
+
readonly $anchor: "response";
|
|
168
|
+
readonly title: "Rooms Records Put — response payload";
|
|
169
|
+
readonly description: "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.";
|
|
170
|
+
readonly type: "object";
|
|
171
|
+
readonly additionalProperties: false;
|
|
172
|
+
readonly required: readonly ["key", "version"];
|
|
173
|
+
readonly properties: {
|
|
174
|
+
readonly key: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
readonly maxLength: 512;
|
|
177
|
+
readonly description: "The stored record's key.";
|
|
178
|
+
};
|
|
179
|
+
readonly version: {
|
|
180
|
+
readonly type: "integer";
|
|
181
|
+
readonly minimum: 1;
|
|
182
|
+
readonly description: "The version assigned, monotonic per room.";
|
|
183
|
+
};
|
|
184
|
+
readonly epoch: {
|
|
185
|
+
readonly type: "integer";
|
|
186
|
+
readonly minimum: 1;
|
|
187
|
+
readonly description: "The epoch the record was stored under.";
|
|
188
|
+
};
|
|
189
|
+
readonly ext: {
|
|
190
|
+
readonly $ref: "#/$defs/Ext";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly Ext: {
|
|
195
|
+
readonly title: "Ext";
|
|
196
|
+
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.";
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly minProperties: 1;
|
|
199
|
+
readonly additionalProperties: true;
|
|
200
|
+
readonly propertyNames: {
|
|
201
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly BlobRef: {
|
|
205
|
+
readonly title: "BlobRef";
|
|
206
|
+
readonly description: "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.";
|
|
207
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
208
|
+
};
|
|
209
|
+
readonly DigestMultibase: {
|
|
210
|
+
readonly title: "DigestMultibase";
|
|
211
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly minLength: 16;
|
|
214
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
215
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
216
|
+
};
|
|
217
|
+
readonly SealedRecord: {
|
|
218
|
+
readonly title: "SealedRecord";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly required: readonly ["ciphertext", "nonce", "epoch"];
|
|
222
|
+
readonly description: "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.";
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly ciphertext: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly description: "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it.";
|
|
227
|
+
};
|
|
228
|
+
readonly nonce: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly description: "AEAD nonce, base64url.";
|
|
231
|
+
};
|
|
232
|
+
readonly epoch: {
|
|
233
|
+
readonly type: "integer";
|
|
234
|
+
readonly minimum: 1;
|
|
235
|
+
readonly description: "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key.";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
readonly AuthorityPresentation: {
|
|
240
|
+
readonly title: "AuthorityPresentation";
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
readonly required: readonly ["membership", "authority"];
|
|
244
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
245
|
+
readonly properties: {
|
|
246
|
+
readonly membership: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
249
|
+
};
|
|
250
|
+
readonly authority: {
|
|
251
|
+
readonly type: "array";
|
|
252
|
+
readonly minItems: 1;
|
|
253
|
+
readonly maxItems: 8;
|
|
254
|
+
readonly items: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
};
|
|
257
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
258
|
+
};
|
|
259
|
+
readonly subjectBinding: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
268
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
269
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
270
|
+
readonly $ref: "#/$defs/Response";
|
|
271
|
+
readonly $defs: {
|
|
272
|
+
readonly Response: {
|
|
273
|
+
readonly $anchor: "response";
|
|
274
|
+
readonly title: "Rooms Records Put — response payload";
|
|
275
|
+
readonly description: "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly additionalProperties: false;
|
|
278
|
+
readonly required: readonly ["key", "version"];
|
|
279
|
+
readonly properties: {
|
|
280
|
+
readonly key: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly maxLength: 512;
|
|
283
|
+
readonly description: "The stored record's key.";
|
|
284
|
+
};
|
|
285
|
+
readonly version: {
|
|
286
|
+
readonly type: "integer";
|
|
287
|
+
readonly minimum: 1;
|
|
288
|
+
readonly description: "The version assigned, monotonic per room.";
|
|
289
|
+
};
|
|
290
|
+
readonly epoch: {
|
|
291
|
+
readonly type: "integer";
|
|
292
|
+
readonly minimum: 1;
|
|
293
|
+
readonly description: "The epoch the record was stored under.";
|
|
294
|
+
};
|
|
295
|
+
readonly ext: {
|
|
296
|
+
readonly $ref: "#/$defs/Ext";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly Ext: {
|
|
301
|
+
readonly title: "Ext";
|
|
302
|
+
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.";
|
|
303
|
+
readonly type: "object";
|
|
304
|
+
readonly minProperties: 1;
|
|
305
|
+
readonly additionalProperties: true;
|
|
306
|
+
readonly propertyNames: {
|
|
307
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
readonly BlobRef: {
|
|
311
|
+
readonly title: "BlobRef";
|
|
312
|
+
readonly description: "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.";
|
|
313
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
314
|
+
};
|
|
315
|
+
readonly DigestMultibase: {
|
|
316
|
+
readonly title: "DigestMultibase";
|
|
317
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly minLength: 16;
|
|
320
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
321
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
322
|
+
};
|
|
323
|
+
readonly SealedRecord: {
|
|
324
|
+
readonly title: "SealedRecord";
|
|
325
|
+
readonly type: "object";
|
|
326
|
+
readonly additionalProperties: false;
|
|
327
|
+
readonly required: readonly ["ciphertext", "nonce", "epoch"];
|
|
328
|
+
readonly description: "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.";
|
|
329
|
+
readonly properties: {
|
|
330
|
+
readonly ciphertext: {
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
readonly description: "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it.";
|
|
333
|
+
};
|
|
334
|
+
readonly nonce: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly description: "AEAD nonce, base64url.";
|
|
337
|
+
};
|
|
338
|
+
readonly epoch: {
|
|
339
|
+
readonly type: "integer";
|
|
340
|
+
readonly minimum: 1;
|
|
341
|
+
readonly description: "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key.";
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
readonly AuthorityPresentation: {
|
|
346
|
+
readonly title: "AuthorityPresentation";
|
|
347
|
+
readonly type: "object";
|
|
348
|
+
readonly additionalProperties: false;
|
|
349
|
+
readonly required: readonly ["membership", "authority"];
|
|
350
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
351
|
+
readonly properties: {
|
|
352
|
+
readonly membership: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
355
|
+
};
|
|
356
|
+
readonly authority: {
|
|
357
|
+
readonly type: "array";
|
|
358
|
+
readonly minItems: 1;
|
|
359
|
+
readonly maxItems: 8;
|
|
360
|
+
readonly items: {
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
};
|
|
363
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
364
|
+
};
|
|
365
|
+
readonly subjectBinding: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
375
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
376
|
+
* per-specification and cannot be derived from the document alone, and
|
|
377
|
+
* item 2 needs the schema this carries.
|
|
378
|
+
*/
|
|
379
|
+
export declare const SPEC: {
|
|
380
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/records/put/0.2";
|
|
381
|
+
readonly isBearer: false;
|
|
382
|
+
readonly isProofRequired: true;
|
|
383
|
+
readonly isRecipientRequired: true;
|
|
384
|
+
readonly isIssuedAtRequired: true;
|
|
385
|
+
readonly payloadSchema: {
|
|
386
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
387
|
+
readonly $id: "https://trusttasks.org/spec/rooms/records/put/0.2";
|
|
388
|
+
readonly title: "Rooms Records Put — payload";
|
|
389
|
+
readonly description: "A member writes a record to a data room, authorized by an authority chain the room itself issued. 0.2 adds `blobs`: a record can carry a file, whose ciphertext the host stores outside the record and whose description is sealed inside it.";
|
|
390
|
+
readonly type: "object";
|
|
391
|
+
readonly additionalProperties: false;
|
|
392
|
+
readonly required: readonly ["roomId", "key", "presentation"];
|
|
393
|
+
readonly properties: {
|
|
394
|
+
readonly roomId: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly description: "The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own — which is what lets a room move hosts without reissuing a credential.";
|
|
397
|
+
};
|
|
398
|
+
readonly key: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly maxLength: 512;
|
|
401
|
+
readonly description: "The record's key within the room. MUST be opaque on an `attributed` or `private` room; see RecordMetadata.key.";
|
|
402
|
+
};
|
|
403
|
+
readonly presentation: {
|
|
404
|
+
readonly $ref: "#/$defs/AuthorityPresentation";
|
|
405
|
+
readonly description: "Must confer the `write` action at this room's scope.";
|
|
406
|
+
};
|
|
407
|
+
readonly expectedVersion: {
|
|
408
|
+
readonly type: "integer";
|
|
409
|
+
readonly minimum: 0;
|
|
410
|
+
readonly description: "Optional precondition. Omit to overwrite unconditionally; `0` means create-only and fails if the key exists. On mismatch the host returns `rooms/records/put:versionConflict` CARRYING THE CURRENT VERSION AND RECORD — a bare rejection would force a re-read, and between rejection and re-read the record can change again, so the pattern has no fixed point under contention.";
|
|
411
|
+
};
|
|
412
|
+
readonly sealed: {
|
|
413
|
+
readonly $ref: "#/$defs/SealedRecord";
|
|
414
|
+
readonly description: "REQUIRED on an `attributed` or `private` room. Mutually exclusive with `cleartext`.";
|
|
415
|
+
};
|
|
416
|
+
readonly cleartext: {
|
|
417
|
+
readonly type: "object";
|
|
418
|
+
readonly additionalProperties: false;
|
|
419
|
+
readonly required: readonly ["body"];
|
|
420
|
+
readonly description: "REQUIRED on an `open` room, where the host reads records and can therefore search them. Mutually exclusive with `sealed`.";
|
|
421
|
+
readonly properties: {
|
|
422
|
+
readonly title: {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly maxLength: 512;
|
|
425
|
+
};
|
|
426
|
+
readonly description: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly maxLength: 2048;
|
|
429
|
+
};
|
|
430
|
+
readonly body: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly maxLength: 1048576;
|
|
433
|
+
};
|
|
434
|
+
readonly tags: {
|
|
435
|
+
readonly type: "array";
|
|
436
|
+
readonly items: {
|
|
437
|
+
readonly type: "string";
|
|
438
|
+
readonly maxLength: 64;
|
|
439
|
+
};
|
|
440
|
+
readonly maxItems: 32;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
readonly blobs: {
|
|
445
|
+
readonly type: "array";
|
|
446
|
+
readonly minItems: 1;
|
|
447
|
+
readonly maxItems: 1;
|
|
448
|
+
readonly uniqueItems: true;
|
|
449
|
+
readonly items: {
|
|
450
|
+
readonly $ref: "#/$defs/BlobRef";
|
|
451
|
+
};
|
|
452
|
+
readonly description: "The blobs this record keeps alive: today at most one, the file the record carries. Cleartext on every tier, because the host must know which blobs a record references to refuse a record naming a blob it does not hold, to count usage, and to collect a blob no record names. Every blob named MUST have been committed in THIS room (rooms/blobs/upload/commit). An array so that several files per record is a later minor version rather than a reshaped member. Omit for a record with no file; a rewrite that omits it releases whatever blob the previous version named.";
|
|
453
|
+
};
|
|
454
|
+
readonly ext: {
|
|
455
|
+
readonly $ref: "#/$defs/Ext";
|
|
456
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly $defs: {
|
|
460
|
+
readonly Response: {
|
|
461
|
+
readonly $anchor: "response";
|
|
462
|
+
readonly title: "Rooms Records Put — response payload";
|
|
463
|
+
readonly description: "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.";
|
|
464
|
+
readonly type: "object";
|
|
465
|
+
readonly additionalProperties: false;
|
|
466
|
+
readonly required: readonly ["key", "version"];
|
|
467
|
+
readonly properties: {
|
|
468
|
+
readonly key: {
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
readonly maxLength: 512;
|
|
471
|
+
readonly description: "The stored record's key.";
|
|
472
|
+
};
|
|
473
|
+
readonly version: {
|
|
474
|
+
readonly type: "integer";
|
|
475
|
+
readonly minimum: 1;
|
|
476
|
+
readonly description: "The version assigned, monotonic per room.";
|
|
477
|
+
};
|
|
478
|
+
readonly epoch: {
|
|
479
|
+
readonly type: "integer";
|
|
480
|
+
readonly minimum: 1;
|
|
481
|
+
readonly description: "The epoch the record was stored under.";
|
|
482
|
+
};
|
|
483
|
+
readonly ext: {
|
|
484
|
+
readonly $ref: "#/$defs/Ext";
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly Ext: {
|
|
489
|
+
readonly title: "Ext";
|
|
490
|
+
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.";
|
|
491
|
+
readonly type: "object";
|
|
492
|
+
readonly minProperties: 1;
|
|
493
|
+
readonly additionalProperties: true;
|
|
494
|
+
readonly propertyNames: {
|
|
495
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly BlobRef: {
|
|
499
|
+
readonly title: "BlobRef";
|
|
500
|
+
readonly description: "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.";
|
|
501
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
502
|
+
};
|
|
503
|
+
readonly DigestMultibase: {
|
|
504
|
+
readonly title: "DigestMultibase";
|
|
505
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly minLength: 16;
|
|
508
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
509
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
510
|
+
};
|
|
511
|
+
readonly SealedRecord: {
|
|
512
|
+
readonly title: "SealedRecord";
|
|
513
|
+
readonly type: "object";
|
|
514
|
+
readonly additionalProperties: false;
|
|
515
|
+
readonly required: readonly ["ciphertext", "nonce", "epoch"];
|
|
516
|
+
readonly description: "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.";
|
|
517
|
+
readonly properties: {
|
|
518
|
+
readonly ciphertext: {
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
readonly description: "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it.";
|
|
521
|
+
};
|
|
522
|
+
readonly nonce: {
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
readonly description: "AEAD nonce, base64url.";
|
|
525
|
+
};
|
|
526
|
+
readonly epoch: {
|
|
527
|
+
readonly type: "integer";
|
|
528
|
+
readonly minimum: 1;
|
|
529
|
+
readonly description: "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key.";
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
readonly AuthorityPresentation: {
|
|
534
|
+
readonly title: "AuthorityPresentation";
|
|
535
|
+
readonly type: "object";
|
|
536
|
+
readonly additionalProperties: false;
|
|
537
|
+
readonly required: readonly ["membership", "authority"];
|
|
538
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
539
|
+
readonly properties: {
|
|
540
|
+
readonly membership: {
|
|
541
|
+
readonly type: "string";
|
|
542
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
543
|
+
};
|
|
544
|
+
readonly authority: {
|
|
545
|
+
readonly type: "array";
|
|
546
|
+
readonly minItems: 1;
|
|
547
|
+
readonly maxItems: 8;
|
|
548
|
+
readonly items: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
};
|
|
551
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
552
|
+
};
|
|
553
|
+
readonly subjectBinding: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
564
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
565
|
+
* parties (§7.3 item 5).
|
|
566
|
+
*/
|
|
567
|
+
export declare const RESPONSE_SPEC: {
|
|
568
|
+
readonly typeUri: "https://trusttasks.org/spec/rooms/records/put/0.2#response";
|
|
569
|
+
readonly isBearer: false;
|
|
570
|
+
readonly isProofRequired: true;
|
|
571
|
+
readonly isRecipientRequired: true;
|
|
572
|
+
readonly isIssuedAtRequired: true;
|
|
573
|
+
readonly payloadSchema: {
|
|
574
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
575
|
+
readonly $ref: "#/$defs/Response";
|
|
576
|
+
readonly $defs: {
|
|
577
|
+
readonly Response: {
|
|
578
|
+
readonly $anchor: "response";
|
|
579
|
+
readonly title: "Rooms Records Put — response payload";
|
|
580
|
+
readonly description: "Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.";
|
|
581
|
+
readonly type: "object";
|
|
582
|
+
readonly additionalProperties: false;
|
|
583
|
+
readonly required: readonly ["key", "version"];
|
|
584
|
+
readonly properties: {
|
|
585
|
+
readonly key: {
|
|
586
|
+
readonly type: "string";
|
|
587
|
+
readonly maxLength: 512;
|
|
588
|
+
readonly description: "The stored record's key.";
|
|
589
|
+
};
|
|
590
|
+
readonly version: {
|
|
591
|
+
readonly type: "integer";
|
|
592
|
+
readonly minimum: 1;
|
|
593
|
+
readonly description: "The version assigned, monotonic per room.";
|
|
594
|
+
};
|
|
595
|
+
readonly epoch: {
|
|
596
|
+
readonly type: "integer";
|
|
597
|
+
readonly minimum: 1;
|
|
598
|
+
readonly description: "The epoch the record was stored under.";
|
|
599
|
+
};
|
|
600
|
+
readonly ext: {
|
|
601
|
+
readonly $ref: "#/$defs/Ext";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly Ext: {
|
|
606
|
+
readonly title: "Ext";
|
|
607
|
+
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.";
|
|
608
|
+
readonly type: "object";
|
|
609
|
+
readonly minProperties: 1;
|
|
610
|
+
readonly additionalProperties: true;
|
|
611
|
+
readonly propertyNames: {
|
|
612
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
readonly BlobRef: {
|
|
616
|
+
readonly title: "BlobRef";
|
|
617
|
+
readonly description: "The name of one blob: the digest of its BlobManifest, taken over the manifest's RFC 8785 (JCS) canonicalization. sha2-256 is RECOMMENDED and MUST be implemented. Content addressing over ciphertext, never plaintext, so a BlobRef says nothing about what the file contains, and two uploads of one file have different BlobRefs (a fresh `fileId` gives a different key, and so different ciphertext). Rooms cannot be correlated by the files they share. Compared as decoded multihash bytes, never as encoded strings. A BlobRef is defined over the manifest's JSON, as this schema states it and RFC 8785 canonicalizes it, never over any binding's generated type: two bindings that model the manifest as distinct types still compute the same BlobRef from the same JSON.";
|
|
618
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
619
|
+
};
|
|
620
|
+
readonly DigestMultibase: {
|
|
621
|
+
readonly title: "DigestMultibase";
|
|
622
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
readonly minLength: 16;
|
|
625
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
626
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
627
|
+
};
|
|
628
|
+
readonly SealedRecord: {
|
|
629
|
+
readonly title: "SealedRecord";
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
readonly additionalProperties: false;
|
|
632
|
+
readonly required: readonly ["ciphertext", "nonce", "epoch"];
|
|
633
|
+
readonly description: "A record as a host stores it on an `attributed` or `private` room. Title, description, body, author and tags are sealed together in one blob rather than separately: splitting them would let a host learn the shape of the material from ciphertext lengths, for no benefit, since a reader decrypts the whole record either way.";
|
|
634
|
+
readonly properties: {
|
|
635
|
+
readonly ciphertext: {
|
|
636
|
+
readonly type: "string";
|
|
637
|
+
readonly description: "The sealed record, base64url. Bound by AEAD associated data to `roomId`, `key`, `version` and `epoch`, so a host that relocates it to another key, version, epoch or room produces a mismatch and the open fails. The record cannot be moved undetected even though the host holds every byte of it.";
|
|
638
|
+
};
|
|
639
|
+
readonly nonce: {
|
|
640
|
+
readonly type: "string";
|
|
641
|
+
readonly description: "AEAD nonce, base64url.";
|
|
642
|
+
};
|
|
643
|
+
readonly epoch: {
|
|
644
|
+
readonly type: "integer";
|
|
645
|
+
readonly minimum: 1;
|
|
646
|
+
readonly description: "The key epoch this record was sealed under. Cleartext because the host must serve the right ciphertext, and bound into the associated data so that relabelling it fails authentication rather than causing a reader to try the wrong key.";
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
readonly AuthorityPresentation: {
|
|
651
|
+
readonly title: "AuthorityPresentation";
|
|
652
|
+
readonly type: "object";
|
|
653
|
+
readonly additionalProperties: false;
|
|
654
|
+
readonly required: readonly ["membership", "authority"];
|
|
655
|
+
readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
|
|
656
|
+
readonly properties: {
|
|
657
|
+
readonly membership: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
|
|
660
|
+
};
|
|
661
|
+
readonly authority: {
|
|
662
|
+
readonly type: "array";
|
|
663
|
+
readonly minItems: 1;
|
|
664
|
+
readonly maxItems: 8;
|
|
665
|
+
readonly items: {
|
|
666
|
+
readonly type: "string";
|
|
667
|
+
};
|
|
668
|
+
readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
|
|
669
|
+
};
|
|
670
|
+
readonly subjectBinding: {
|
|
671
|
+
readonly type: "string";
|
|
672
|
+
readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
//# sourceMappingURL=payload.d.ts.map
|