@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,264 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/oob/claim/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/claim/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/claim/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/auth/oob/claim/0.1",
|
|
21
|
+
"title": "Auth — OOB Claim — payload",
|
|
22
|
+
"description": "An approver claims a pending out-of-band request, locking it to a throwaway Ed25519 key (`K_a`) generated for this one exchange. The document is the first request of a trigger-link exchange (VTI-LNK-054): issued and signed by `K_a`, addressed to the service, and carrying the request's handle both here and as the envelope's `parentThreadId`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"requestId"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"requestId": {
|
|
30
|
+
"$ref": "#/$defs/RequestId",
|
|
31
|
+
"description": "The handle read from the trigger link's `_id`. MUST equal the document's `parentThreadId`."
|
|
32
|
+
},
|
|
33
|
+
"ext": {
|
|
34
|
+
"$ref": "#/$defs/Ext"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"$defs": {
|
|
38
|
+
"Response": {
|
|
39
|
+
"$anchor": "response",
|
|
40
|
+
"title": "Auth — OOB Claim — response payload (step 1)",
|
|
41
|
+
"description": "Step 1 of the disclosure ladder, signed by the service's assertionMethod key: who the service is, where the request will be used and for what, and when the decision window closes. It MUST contain nothing about the starter.",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": [
|
|
45
|
+
"requestId",
|
|
46
|
+
"service",
|
|
47
|
+
"origin",
|
|
48
|
+
"purpose",
|
|
49
|
+
"decisionDeadline"
|
|
50
|
+
],
|
|
51
|
+
"properties": {
|
|
52
|
+
"requestId": {
|
|
53
|
+
"$ref": "#/$defs/RequestId"
|
|
54
|
+
},
|
|
55
|
+
"service": {
|
|
56
|
+
"$ref": "#/$defs/Service"
|
|
57
|
+
},
|
|
58
|
+
"origin": {
|
|
59
|
+
"$ref": "#/$defs/Origin"
|
|
60
|
+
},
|
|
61
|
+
"purpose": {
|
|
62
|
+
"$ref": "#/$defs/Purpose"
|
|
63
|
+
},
|
|
64
|
+
"decisionDeadline": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 0,
|
|
67
|
+
"description": "When the decision window, started by the claim, closes, as integer UTC epoch seconds. Prove, respond and redeem must all complete before it. At most 180 s after the claim; 120 s RECOMMENDED."
|
|
68
|
+
},
|
|
69
|
+
"ext": {
|
|
70
|
+
"$ref": "#/$defs/Ext"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"Ext": {
|
|
75
|
+
"title": "Ext",
|
|
76
|
+
"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.",
|
|
77
|
+
"type": "object",
|
|
78
|
+
"minProperties": 1,
|
|
79
|
+
"additionalProperties": true,
|
|
80
|
+
"propertyNames": {
|
|
81
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"Purpose": {
|
|
85
|
+
"title": "Purpose",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"login"
|
|
89
|
+
],
|
|
90
|
+
"description": "What the request is for. A CLOSED list: each purpose has a fixed row in CONVENTIONS.md §3 stating what is revealed at each step, what the grant contains, what redeem returns and the window lengths. Version 0.1 defines `login` only. `stepUp` and `deviceEnrol` are reserved names; adding one is a new version of this component and of every task that references it, never an in-place edit."
|
|
91
|
+
},
|
|
92
|
+
"Origin": {
|
|
93
|
+
"title": "Origin",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 9,
|
|
96
|
+
"maxLength": 2048,
|
|
97
|
+
"pattern": "^https://[^/?#\\s]+$",
|
|
98
|
+
"description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
|
|
99
|
+
},
|
|
100
|
+
"Service": {
|
|
101
|
+
"title": "Service",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": [
|
|
105
|
+
"did",
|
|
106
|
+
"name"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"did": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"pattern": "^did:",
|
|
112
|
+
"minLength": 5,
|
|
113
|
+
"maxLength": 2048,
|
|
114
|
+
"description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
|
|
115
|
+
},
|
|
116
|
+
"name": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"maxLength": 128,
|
|
120
|
+
"description": "The name the service calls itself. Supplied by the service: an approver shows the name from its OWN records and flags a difference from this one (VTI-LNK-104); it never shows this value as the community's name on its own authority."
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"description": "Who the service says it is."
|
|
124
|
+
},
|
|
125
|
+
"RequestId": {
|
|
126
|
+
"title": "RequestId",
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 22,
|
|
129
|
+
"maxLength": 43,
|
|
130
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
131
|
+
"description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
136
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
137
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
138
|
+
"$ref": "#/$defs/Response",
|
|
139
|
+
"$defs": {
|
|
140
|
+
"Response": {
|
|
141
|
+
"$anchor": "response",
|
|
142
|
+
"title": "Auth — OOB Claim — response payload (step 1)",
|
|
143
|
+
"description": "Step 1 of the disclosure ladder, signed by the service's assertionMethod key: who the service is, where the request will be used and for what, and when the decision window closes. It MUST contain nothing about the starter.",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"requestId",
|
|
148
|
+
"service",
|
|
149
|
+
"origin",
|
|
150
|
+
"purpose",
|
|
151
|
+
"decisionDeadline"
|
|
152
|
+
],
|
|
153
|
+
"properties": {
|
|
154
|
+
"requestId": {
|
|
155
|
+
"$ref": "#/$defs/RequestId"
|
|
156
|
+
},
|
|
157
|
+
"service": {
|
|
158
|
+
"$ref": "#/$defs/Service"
|
|
159
|
+
},
|
|
160
|
+
"origin": {
|
|
161
|
+
"$ref": "#/$defs/Origin"
|
|
162
|
+
},
|
|
163
|
+
"purpose": {
|
|
164
|
+
"$ref": "#/$defs/Purpose"
|
|
165
|
+
},
|
|
166
|
+
"decisionDeadline": {
|
|
167
|
+
"type": "integer",
|
|
168
|
+
"minimum": 0,
|
|
169
|
+
"description": "When the decision window, started by the claim, closes, as integer UTC epoch seconds. Prove, respond and redeem must all complete before it. At most 180 s after the claim; 120 s RECOMMENDED."
|
|
170
|
+
},
|
|
171
|
+
"ext": {
|
|
172
|
+
"$ref": "#/$defs/Ext"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"Ext": {
|
|
177
|
+
"title": "Ext",
|
|
178
|
+
"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.",
|
|
179
|
+
"type": "object",
|
|
180
|
+
"minProperties": 1,
|
|
181
|
+
"additionalProperties": true,
|
|
182
|
+
"propertyNames": {
|
|
183
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"Purpose": {
|
|
187
|
+
"title": "Purpose",
|
|
188
|
+
"type": "string",
|
|
189
|
+
"enum": [
|
|
190
|
+
"login"
|
|
191
|
+
],
|
|
192
|
+
"description": "What the request is for. A CLOSED list: each purpose has a fixed row in CONVENTIONS.md §3 stating what is revealed at each step, what the grant contains, what redeem returns and the window lengths. Version 0.1 defines `login` only. `stepUp` and `deviceEnrol` are reserved names; adding one is a new version of this component and of every task that references it, never an in-place edit."
|
|
193
|
+
},
|
|
194
|
+
"Origin": {
|
|
195
|
+
"title": "Origin",
|
|
196
|
+
"type": "string",
|
|
197
|
+
"minLength": 9,
|
|
198
|
+
"maxLength": 2048,
|
|
199
|
+
"pattern": "^https://[^/?#\\s]+$",
|
|
200
|
+
"description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
|
|
201
|
+
},
|
|
202
|
+
"Service": {
|
|
203
|
+
"title": "Service",
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": [
|
|
207
|
+
"did",
|
|
208
|
+
"name"
|
|
209
|
+
],
|
|
210
|
+
"properties": {
|
|
211
|
+
"did": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"pattern": "^did:",
|
|
214
|
+
"minLength": 5,
|
|
215
|
+
"maxLength": 2048,
|
|
216
|
+
"description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
|
|
217
|
+
},
|
|
218
|
+
"name": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1,
|
|
221
|
+
"maxLength": 128,
|
|
222
|
+
"description": "The name the service calls itself. Supplied by the service: an approver shows the name from its OWN records and flags a difference from this one (VTI-LNK-104); it never shows this value as the community's name on its own authority."
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"description": "Who the service says it is."
|
|
226
|
+
},
|
|
227
|
+
"RequestId": {
|
|
228
|
+
"title": "RequestId",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"minLength": 22,
|
|
231
|
+
"maxLength": 43,
|
|
232
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
233
|
+
"description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
239
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
240
|
+
* per-specification and cannot be derived from the document alone, and
|
|
241
|
+
* item 2 needs the schema this carries.
|
|
242
|
+
*/
|
|
243
|
+
export const SPEC = {
|
|
244
|
+
typeUri: TYPE_URI,
|
|
245
|
+
isBearer: false,
|
|
246
|
+
isProofRequired: true,
|
|
247
|
+
isRecipientRequired: true,
|
|
248
|
+
isIssuedAtRequired: true,
|
|
249
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
253
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
254
|
+
* parties (§7.3 item 5).
|
|
255
|
+
*/
|
|
256
|
+
export const RESPONSE_SPEC = {
|
|
257
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
258
|
+
isBearer: false,
|
|
259
|
+
isProofRequired: true,
|
|
260
|
+
isRecipientRequired: true,
|
|
261
|
+
isIssuedAtRequired: true,
|
|
262
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
263
|
+
};
|
|
264
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/auth/oob/claim/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,gDAAyD,CAAC;AAKlF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,yDAAkE,CAAC;AAKpG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,4BAA4B;IACrC,aAAa,EAAE,qeAAqe;IACpf,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,mBAAmB;YAC3B,aAAa,EAAE,4FAA4F;SAC5G;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,8CAA8C;YACvD,aAAa,EAAE,gOAAgO;YAC/O,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,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EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/oob/grant/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, OobKey, Origin, RequestId } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The member's decision on one out-of-band request, as an attestation: "let this starter key act as me at this origin until notAfter, having seen this context", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthOOBGrantPayload {
|
|
10
|
+
requestId: RequestId;
|
|
11
|
+
/**
|
|
12
|
+
* The member's decision. A decline still names the context it declines, and needs no user verification.
|
|
13
|
+
*/
|
|
14
|
+
decision: "approve" | "decline";
|
|
15
|
+
/**
|
|
16
|
+
* The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer.
|
|
17
|
+
*/
|
|
18
|
+
sessionKey: OobKey;
|
|
19
|
+
/**
|
|
20
|
+
* The lock key `K_a`. MUST equal the issuer of the respond that carries this document.
|
|
21
|
+
*/
|
|
22
|
+
approverKey: OobKey;
|
|
23
|
+
/**
|
|
24
|
+
* The portal origin from step 2, at which the session key may act.
|
|
25
|
+
*/
|
|
26
|
+
origin: Origin;
|
|
27
|
+
/**
|
|
28
|
+
* SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown.
|
|
29
|
+
*/
|
|
30
|
+
contextDigest: DigestMultibase;
|
|
31
|
+
/**
|
|
32
|
+
* The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit.
|
|
33
|
+
*/
|
|
34
|
+
notAfter: number;
|
|
35
|
+
}
|
|
36
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
37
|
+
export type { DigestMultibase, OobKey, Origin, RequestId };
|
|
38
|
+
/** Trust Task type URI. */
|
|
39
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/oob/grant/0.1";
|
|
40
|
+
/** Stable alias for this specification's request payload shape. */
|
|
41
|
+
export type Payload = AuthOOBGrantPayload;
|
|
42
|
+
/**
|
|
43
|
+
* This specification's payload schema, as a value.
|
|
44
|
+
*
|
|
45
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
46
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
47
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
48
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
49
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
50
|
+
*/
|
|
51
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
52
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
53
|
+
readonly $id: "https://trusttasks.org/spec/auth/oob/grant/0.1";
|
|
54
|
+
readonly title: "Auth — OOB Grant — payload";
|
|
55
|
+
readonly description: "The member's decision on one out-of-band request, as an attestation: \"let this starter key act as me at this origin until notAfter, having seen this context\", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
56
|
+
readonly type: "object";
|
|
57
|
+
readonly additionalProperties: false;
|
|
58
|
+
readonly required: readonly ["requestId", "decision", "sessionKey", "approverKey", "origin", "contextDigest", "notAfter"];
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly requestId: {
|
|
61
|
+
readonly $ref: "#/$defs/RequestId";
|
|
62
|
+
};
|
|
63
|
+
readonly decision: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
readonly enum: readonly ["approve", "decline"];
|
|
66
|
+
readonly description: "The member's decision. A decline still names the context it declines, and needs no user verification.";
|
|
67
|
+
};
|
|
68
|
+
readonly sessionKey: {
|
|
69
|
+
readonly $ref: "#/$defs/OobKey";
|
|
70
|
+
readonly description: "The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer.";
|
|
71
|
+
};
|
|
72
|
+
readonly approverKey: {
|
|
73
|
+
readonly $ref: "#/$defs/OobKey";
|
|
74
|
+
readonly description: "The lock key `K_a`. MUST equal the issuer of the respond that carries this document.";
|
|
75
|
+
};
|
|
76
|
+
readonly origin: {
|
|
77
|
+
readonly $ref: "#/$defs/Origin";
|
|
78
|
+
readonly description: "The portal origin from step 2, at which the session key may act.";
|
|
79
|
+
};
|
|
80
|
+
readonly contextDigest: {
|
|
81
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
82
|
+
readonly description: "SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown.";
|
|
83
|
+
};
|
|
84
|
+
readonly notAfter: {
|
|
85
|
+
readonly type: "integer";
|
|
86
|
+
readonly minimum: 0;
|
|
87
|
+
readonly description: "The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit.";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly $defs: {
|
|
91
|
+
readonly DigestMultibase: {
|
|
92
|
+
readonly title: "DigestMultibase";
|
|
93
|
+
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`.";
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly minLength: 16;
|
|
96
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
97
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
98
|
+
};
|
|
99
|
+
readonly Origin: {
|
|
100
|
+
readonly title: "Origin";
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly minLength: 9;
|
|
103
|
+
readonly maxLength: 2048;
|
|
104
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
105
|
+
readonly description: "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document.";
|
|
106
|
+
};
|
|
107
|
+
readonly OobKey: {
|
|
108
|
+
readonly title: "OobKey";
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly minLength: 48;
|
|
111
|
+
readonly maxLength: 64;
|
|
112
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
113
|
+
readonly description: "A starter key (`K_b`) or an approver lock key (`K_a`), as an Ed25519 `did:key` (`z6Mk…`) generated for this one request and used nowhere else. Ed25519 only: a service refuses any other key type with `auth/oob:keyUnsupported` before parsing beyond the multicodec prefix.";
|
|
114
|
+
};
|
|
115
|
+
readonly RequestId: {
|
|
116
|
+
readonly title: "RequestId";
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly minLength: 22;
|
|
119
|
+
readonly maxLength: 43;
|
|
120
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
121
|
+
readonly description: "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder.";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
127
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
128
|
+
* per-specification and cannot be derived from the document alone, and
|
|
129
|
+
* item 2 needs the schema this carries.
|
|
130
|
+
*/
|
|
131
|
+
export declare const SPEC: {
|
|
132
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/oob/grant/0.1";
|
|
133
|
+
readonly isBearer: false;
|
|
134
|
+
readonly isProofRequired: true;
|
|
135
|
+
readonly isRecipientRequired: true;
|
|
136
|
+
readonly isIssuedAtRequired: true;
|
|
137
|
+
readonly payloadSchema: {
|
|
138
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
139
|
+
readonly $id: "https://trusttasks.org/spec/auth/oob/grant/0.1";
|
|
140
|
+
readonly title: "Auth — OOB Grant — payload";
|
|
141
|
+
readonly description: "The member's decision on one out-of-band request, as an attestation: \"let this starter key act as me at this origin until notAfter, having seen this context\", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly additionalProperties: false;
|
|
144
|
+
readonly required: readonly ["requestId", "decision", "sessionKey", "approverKey", "origin", "contextDigest", "notAfter"];
|
|
145
|
+
readonly properties: {
|
|
146
|
+
readonly requestId: {
|
|
147
|
+
readonly $ref: "#/$defs/RequestId";
|
|
148
|
+
};
|
|
149
|
+
readonly decision: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly enum: readonly ["approve", "decline"];
|
|
152
|
+
readonly description: "The member's decision. A decline still names the context it declines, and needs no user verification.";
|
|
153
|
+
};
|
|
154
|
+
readonly sessionKey: {
|
|
155
|
+
readonly $ref: "#/$defs/OobKey";
|
|
156
|
+
readonly description: "The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer.";
|
|
157
|
+
};
|
|
158
|
+
readonly approverKey: {
|
|
159
|
+
readonly $ref: "#/$defs/OobKey";
|
|
160
|
+
readonly description: "The lock key `K_a`. MUST equal the issuer of the respond that carries this document.";
|
|
161
|
+
};
|
|
162
|
+
readonly origin: {
|
|
163
|
+
readonly $ref: "#/$defs/Origin";
|
|
164
|
+
readonly description: "The portal origin from step 2, at which the session key may act.";
|
|
165
|
+
};
|
|
166
|
+
readonly contextDigest: {
|
|
167
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
168
|
+
readonly description: "SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown.";
|
|
169
|
+
};
|
|
170
|
+
readonly notAfter: {
|
|
171
|
+
readonly type: "integer";
|
|
172
|
+
readonly minimum: 0;
|
|
173
|
+
readonly description: "The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit.";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly $defs: {
|
|
177
|
+
readonly DigestMultibase: {
|
|
178
|
+
readonly title: "DigestMultibase";
|
|
179
|
+
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`.";
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly minLength: 16;
|
|
182
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
183
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
184
|
+
};
|
|
185
|
+
readonly Origin: {
|
|
186
|
+
readonly title: "Origin";
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly minLength: 9;
|
|
189
|
+
readonly maxLength: 2048;
|
|
190
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
191
|
+
readonly description: "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document.";
|
|
192
|
+
};
|
|
193
|
+
readonly OobKey: {
|
|
194
|
+
readonly title: "OobKey";
|
|
195
|
+
readonly type: "string";
|
|
196
|
+
readonly minLength: 48;
|
|
197
|
+
readonly maxLength: 64;
|
|
198
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
199
|
+
readonly description: "A starter key (`K_b`) or an approver lock key (`K_a`), as an Ed25519 `did:key` (`z6Mk…`) generated for this one request and used nowhere else. Ed25519 only: a service refuses any other key type with `auth/oob:keyUnsupported` before parsing beyond the multicodec prefix.";
|
|
200
|
+
};
|
|
201
|
+
readonly RequestId: {
|
|
202
|
+
readonly title: "RequestId";
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly minLength: 22;
|
|
205
|
+
readonly maxLength: 43;
|
|
206
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
207
|
+
readonly description: "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder.";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/auth/oob/grant/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGpG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,aAAa,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAE3D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,gDAAyD,CAAC;AAElF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAE1C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/oob/grant/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/grant/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* This specification's payload schema, as a value.
|
|
9
|
+
*
|
|
10
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
11
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
12
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
13
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
14
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
15
|
+
*/
|
|
16
|
+
export const PAYLOAD_SCHEMA = {
|
|
17
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18
|
+
"$id": "https://trusttasks.org/spec/auth/oob/grant/0.1",
|
|
19
|
+
"title": "Auth — OOB Grant — payload",
|
|
20
|
+
"description": "The member's decision on one out-of-band request, as an attestation: \"let this starter key act as me at this origin until notAfter, having seen this context\", or a decline. Issued by the DID that proved membership and signed by its VTA for `assertionMethod`, only after user verification. Never sent on its own, only carried inside auth/oob/respond. Closed: additionalProperties false and no `ext`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"requestId",
|
|
25
|
+
"decision",
|
|
26
|
+
"sessionKey",
|
|
27
|
+
"approverKey",
|
|
28
|
+
"origin",
|
|
29
|
+
"contextDigest",
|
|
30
|
+
"notAfter"
|
|
31
|
+
],
|
|
32
|
+
"properties": {
|
|
33
|
+
"requestId": {
|
|
34
|
+
"$ref": "#/$defs/RequestId"
|
|
35
|
+
},
|
|
36
|
+
"decision": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"approve",
|
|
40
|
+
"decline"
|
|
41
|
+
],
|
|
42
|
+
"description": "The member's decision. A decline still names the context it declines, and needs no user verification."
|
|
43
|
+
},
|
|
44
|
+
"sessionKey": {
|
|
45
|
+
"$ref": "#/$defs/OobKey",
|
|
46
|
+
"description": "The starter key `K_b`, from step 2. On approve, the only key the grant lets act as the issuer."
|
|
47
|
+
},
|
|
48
|
+
"approverKey": {
|
|
49
|
+
"$ref": "#/$defs/OobKey",
|
|
50
|
+
"description": "The lock key `K_a`. MUST equal the issuer of the respond that carries this document."
|
|
51
|
+
},
|
|
52
|
+
"origin": {
|
|
53
|
+
"$ref": "#/$defs/Origin",
|
|
54
|
+
"description": "The portal origin from step 2, at which the session key may act."
|
|
55
|
+
},
|
|
56
|
+
"contextDigest": {
|
|
57
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
58
|
+
"description": "SHA-256 multihash over the RFC 8785 (JCS) canonical form of the signed step 2 response document (the auth/oob/prove response), proof included, written as multibase. Producers emit base58btc (`z…`). Binds the decision to exactly what the member was shown."
|
|
59
|
+
},
|
|
60
|
+
"notAfter": {
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"minimum": 0,
|
|
63
|
+
"description": "The latest instant the session key may act as the issuer, as integer UTC epoch seconds. The service ends the session at the earlier of this and its own session limit."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"$defs": {
|
|
67
|
+
"DigestMultibase": {
|
|
68
|
+
"title": "DigestMultibase",
|
|
69
|
+
"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`.",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 16,
|
|
72
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
73
|
+
"examples": [
|
|
74
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"Origin": {
|
|
78
|
+
"title": "Origin",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 9,
|
|
81
|
+
"maxLength": 2048,
|
|
82
|
+
"pattern": "^https://[^/?#\\s]+$",
|
|
83
|
+
"description": "A web origin (`https://host[:port]`, no path, no trailing slash) — for `login`, the origin of the portal where the starter runs, which is the origin of the `serviceEndpoint` of the service's `SignInPortal` service in its DID document."
|
|
84
|
+
},
|
|
85
|
+
"OobKey": {
|
|
86
|
+
"title": "OobKey",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"minLength": 48,
|
|
89
|
+
"maxLength": 64,
|
|
90
|
+
"pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
|
|
91
|
+
"description": "A starter key (`K_b`) or an approver lock key (`K_a`), as an Ed25519 `did:key` (`z6Mk…`) generated for this one request and used nowhere else. Ed25519 only: a service refuses any other key type with `auth/oob:keyUnsupported` before parsing beyond the multicodec prefix."
|
|
92
|
+
},
|
|
93
|
+
"RequestId": {
|
|
94
|
+
"title": "RequestId",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 22,
|
|
97
|
+
"maxLength": 43,
|
|
98
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
99
|
+
"description": "The service-generated handle of one request: 16 to 32 bytes from a cryptographically secure random source, written as unpadded base64url (22 to 43 characters; 16 bytes, 22 characters, is RECOMMENDED). It is also the nonce of the exchange, so the family needs no separate challenge, and it is the `_id` of the trigger link (VTI-LNK-033). Compared as a string. It confers no authority on its holder."
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
105
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
106
|
+
* per-specification and cannot be derived from the document alone, and
|
|
107
|
+
* item 2 needs the schema this carries.
|
|
108
|
+
*/
|
|
109
|
+
export const SPEC = {
|
|
110
|
+
typeUri: TYPE_URI,
|
|
111
|
+
isBearer: false,
|
|
112
|
+
isProofRequired: true,
|
|
113
|
+
isRecipientRequired: true,
|
|
114
|
+
isIssuedAtRequired: true,
|
|
115
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/auth/oob/grant/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,gDAAyD,CAAC;AAKlF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,4BAA4B;IACrC,aAAa,EAAE,+gBAA+gB;IAC9hB,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,UAAU;QACV,YAAY;QACZ,aAAa;QACb,QAAQ;QACR,eAAe;QACf,UAAU;KACX;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;Y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