@openvtc/trust-tasks 0.23.8 → 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 +28 -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/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
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/oob/prove/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, OobKey, Origin, Purpose, Requester, RequestId, SameNetwork, Service } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The lock holder proves membership and the number on the starter's screen by carrying a signed auth/oob/identify document, and gets back the service-signed step 2. Issued and signed by the lock key `K_a`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthOOBProvePayload {
|
|
10
|
+
/**
|
|
11
|
+
* A complete, signed auth/oob/identify/0.1 Trust Task document, issued by the approving DID and signed by its VTA for `authentication`. The service verifies it as a document in its own right — envelope, proof and payload against that specification's schema — over the members exactly as received: its proof covers every member, so it is deliberately an open object here rather than a typed one a binding could narrow.
|
|
12
|
+
*/
|
|
13
|
+
identify: {};
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Step 2 of the disclosure ladder, signed by the service's assertionMethod key: the step 1 members unchanged, plus the starter's key, where the request came from, and which DID was identified. The SHA-256 of its JCS canonical form, proof included, is the grant's `contextDigest`.
|
|
18
|
+
*/
|
|
19
|
+
export interface AuthOOBProveResponsePayloadStep2 {
|
|
20
|
+
requestId: RequestId;
|
|
21
|
+
service: Service;
|
|
22
|
+
origin: Origin;
|
|
23
|
+
purpose: Purpose;
|
|
24
|
+
/**
|
|
25
|
+
* Unchanged from step 1 (integer UTC epoch seconds).
|
|
26
|
+
*/
|
|
27
|
+
decisionDeadline: number;
|
|
28
|
+
/**
|
|
29
|
+
* The starter key `K_b`: the key a grant would let act as the identified DID.
|
|
30
|
+
*/
|
|
31
|
+
sessionKey: OobKey;
|
|
32
|
+
requester: Requester;
|
|
33
|
+
/**
|
|
34
|
+
* The DID that issued the verified identify document. A grant must come from this DID.
|
|
35
|
+
*/
|
|
36
|
+
identifiedAs: string;
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
+
export type { Ext, OobKey, Origin, Purpose, Requester, RequestId, SameNetwork, Service };
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/oob/prove/0.1";
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = AuthOOBProvePayload;
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/oob/prove/0.1#response";
|
|
47
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
48
|
+
export type Response = AuthOOBProveResponsePayloadStep2;
|
|
49
|
+
/**
|
|
50
|
+
* This specification's payload schema, as a value.
|
|
51
|
+
*
|
|
52
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
53
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
54
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
55
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
56
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
57
|
+
*/
|
|
58
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
59
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
60
|
+
readonly $id: "https://trusttasks.org/spec/auth/oob/prove/0.1";
|
|
61
|
+
readonly title: "Auth — OOB Prove — payload";
|
|
62
|
+
readonly description: "The lock holder proves membership and the number on the starter's screen by carrying a signed auth/oob/identify document, and gets back the service-signed step 2. Issued and signed by the lock key `K_a`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.";
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly required: readonly ["identify"];
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly identify: {
|
|
68
|
+
readonly type: "object";
|
|
69
|
+
readonly description: "A complete, signed auth/oob/identify/0.1 Trust Task document, issued by the approving DID and signed by its VTA for `authentication`. The service verifies it as a document in its own right — envelope, proof and payload against that specification's schema — over the members exactly as received: its proof covers every member, so it is deliberately an open object here rather than a typed one a binding could narrow.";
|
|
70
|
+
};
|
|
71
|
+
readonly ext: {
|
|
72
|
+
readonly $ref: "#/$defs/Ext";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly $defs: {
|
|
76
|
+
readonly Response: {
|
|
77
|
+
readonly $anchor: "response";
|
|
78
|
+
readonly title: "Auth — OOB Prove — response payload (step 2)";
|
|
79
|
+
readonly description: "Step 2 of the disclosure ladder, signed by the service's assertionMethod key: the step 1 members unchanged, plus the starter's key, where the request came from, and which DID was identified. The SHA-256 of its JCS canonical form, proof included, is the grant's `contextDigest`.";
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
readonly required: readonly ["requestId", "service", "origin", "purpose", "decisionDeadline", "sessionKey", "requester", "identifiedAs"];
|
|
83
|
+
readonly properties: {
|
|
84
|
+
readonly requestId: {
|
|
85
|
+
readonly $ref: "#/$defs/RequestId";
|
|
86
|
+
};
|
|
87
|
+
readonly service: {
|
|
88
|
+
readonly $ref: "#/$defs/Service";
|
|
89
|
+
};
|
|
90
|
+
readonly origin: {
|
|
91
|
+
readonly $ref: "#/$defs/Origin";
|
|
92
|
+
};
|
|
93
|
+
readonly purpose: {
|
|
94
|
+
readonly $ref: "#/$defs/Purpose";
|
|
95
|
+
};
|
|
96
|
+
readonly decisionDeadline: {
|
|
97
|
+
readonly type: "integer";
|
|
98
|
+
readonly minimum: 0;
|
|
99
|
+
readonly description: "Unchanged from step 1 (integer UTC epoch seconds).";
|
|
100
|
+
};
|
|
101
|
+
readonly sessionKey: {
|
|
102
|
+
readonly $ref: "#/$defs/OobKey";
|
|
103
|
+
readonly description: "The starter key `K_b`: the key a grant would let act as the identified DID.";
|
|
104
|
+
};
|
|
105
|
+
readonly requester: {
|
|
106
|
+
readonly $ref: "#/$defs/Requester";
|
|
107
|
+
};
|
|
108
|
+
readonly identifiedAs: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly pattern: "^did:";
|
|
111
|
+
readonly minLength: 5;
|
|
112
|
+
readonly maxLength: 2048;
|
|
113
|
+
readonly description: "The DID that issued the verified identify document. A grant must come from this DID.";
|
|
114
|
+
};
|
|
115
|
+
readonly ext: {
|
|
116
|
+
readonly $ref: "#/$defs/Ext";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
readonly Ext: {
|
|
121
|
+
readonly title: "Ext";
|
|
122
|
+
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.";
|
|
123
|
+
readonly type: "object";
|
|
124
|
+
readonly minProperties: 1;
|
|
125
|
+
readonly additionalProperties: true;
|
|
126
|
+
readonly propertyNames: {
|
|
127
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly Requester: {
|
|
131
|
+
readonly title: "Requester";
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly additionalProperties: false;
|
|
134
|
+
readonly required: readonly ["location", "browser", "os", "createdAt", "sameNetwork"];
|
|
135
|
+
readonly properties: {
|
|
136
|
+
readonly location: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly minLength: 1;
|
|
139
|
+
readonly maxLength: 128;
|
|
140
|
+
readonly description: "City and country of the starter's connection, from a local lookup with no third-party call, or the literal `unknown`. Never an IP address.";
|
|
141
|
+
};
|
|
142
|
+
readonly browser: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly minLength: 1;
|
|
145
|
+
readonly maxLength: 64;
|
|
146
|
+
readonly description: "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told.";
|
|
147
|
+
};
|
|
148
|
+
readonly os: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly minLength: 1;
|
|
151
|
+
readonly maxLength: 64;
|
|
152
|
+
readonly description: "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told.";
|
|
153
|
+
};
|
|
154
|
+
readonly createdAt: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly format: "date-time";
|
|
157
|
+
readonly description: "When the service accepted the starter's auth/oob/request.";
|
|
158
|
+
};
|
|
159
|
+
readonly sameNetwork: {
|
|
160
|
+
readonly $ref: "#/$defs/SameNetwork";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly description: "What the service reports about where the request came from. Revealed only in the step 2 response, to the lock holder, after a membership and number proof. Reported by the service, signed by it, and a heuristic: a relaying attacker controls what is observed.";
|
|
164
|
+
};
|
|
165
|
+
readonly SameNetwork: {
|
|
166
|
+
readonly title: "SameNetwork";
|
|
167
|
+
readonly oneOf: readonly [{
|
|
168
|
+
readonly type: "boolean";
|
|
169
|
+
}, {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly const: "unknown";
|
|
172
|
+
}];
|
|
173
|
+
readonly description: "Whether the starter's request and the approver's prove came from the same egress network, as the service saw them: `true`, `false`, or the string `unknown` when the service cannot tell. The service compares addresses; it never discloses them.";
|
|
174
|
+
};
|
|
175
|
+
readonly OobKey: {
|
|
176
|
+
readonly title: "OobKey";
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly minLength: 48;
|
|
179
|
+
readonly maxLength: 64;
|
|
180
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
181
|
+
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.";
|
|
182
|
+
};
|
|
183
|
+
readonly Purpose: {
|
|
184
|
+
readonly title: "Purpose";
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly enum: readonly ["login"];
|
|
187
|
+
readonly 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.";
|
|
188
|
+
};
|
|
189
|
+
readonly Origin: {
|
|
190
|
+
readonly title: "Origin";
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly minLength: 9;
|
|
193
|
+
readonly maxLength: 2048;
|
|
194
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
195
|
+
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.";
|
|
196
|
+
};
|
|
197
|
+
readonly Service: {
|
|
198
|
+
readonly title: "Service";
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly additionalProperties: false;
|
|
201
|
+
readonly required: readonly ["did", "name"];
|
|
202
|
+
readonly properties: {
|
|
203
|
+
readonly did: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly pattern: "^did:";
|
|
206
|
+
readonly minLength: 5;
|
|
207
|
+
readonly maxLength: 2048;
|
|
208
|
+
readonly description: "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link.";
|
|
209
|
+
};
|
|
210
|
+
readonly name: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly minLength: 1;
|
|
213
|
+
readonly maxLength: 128;
|
|
214
|
+
readonly 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.";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
readonly description: "Who the service says it is.";
|
|
218
|
+
};
|
|
219
|
+
readonly RequestId: {
|
|
220
|
+
readonly title: "RequestId";
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly minLength: 22;
|
|
223
|
+
readonly maxLength: 43;
|
|
224
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
225
|
+
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.";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
230
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
231
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
232
|
+
readonly $ref: "#/$defs/Response";
|
|
233
|
+
readonly $defs: {
|
|
234
|
+
readonly Response: {
|
|
235
|
+
readonly $anchor: "response";
|
|
236
|
+
readonly title: "Auth — OOB Prove — response payload (step 2)";
|
|
237
|
+
readonly description: "Step 2 of the disclosure ladder, signed by the service's assertionMethod key: the step 1 members unchanged, plus the starter's key, where the request came from, and which DID was identified. The SHA-256 of its JCS canonical form, proof included, is the grant's `contextDigest`.";
|
|
238
|
+
readonly type: "object";
|
|
239
|
+
readonly additionalProperties: false;
|
|
240
|
+
readonly required: readonly ["requestId", "service", "origin", "purpose", "decisionDeadline", "sessionKey", "requester", "identifiedAs"];
|
|
241
|
+
readonly properties: {
|
|
242
|
+
readonly requestId: {
|
|
243
|
+
readonly $ref: "#/$defs/RequestId";
|
|
244
|
+
};
|
|
245
|
+
readonly service: {
|
|
246
|
+
readonly $ref: "#/$defs/Service";
|
|
247
|
+
};
|
|
248
|
+
readonly origin: {
|
|
249
|
+
readonly $ref: "#/$defs/Origin";
|
|
250
|
+
};
|
|
251
|
+
readonly purpose: {
|
|
252
|
+
readonly $ref: "#/$defs/Purpose";
|
|
253
|
+
};
|
|
254
|
+
readonly decisionDeadline: {
|
|
255
|
+
readonly type: "integer";
|
|
256
|
+
readonly minimum: 0;
|
|
257
|
+
readonly description: "Unchanged from step 1 (integer UTC epoch seconds).";
|
|
258
|
+
};
|
|
259
|
+
readonly sessionKey: {
|
|
260
|
+
readonly $ref: "#/$defs/OobKey";
|
|
261
|
+
readonly description: "The starter key `K_b`: the key a grant would let act as the identified DID.";
|
|
262
|
+
};
|
|
263
|
+
readonly requester: {
|
|
264
|
+
readonly $ref: "#/$defs/Requester";
|
|
265
|
+
};
|
|
266
|
+
readonly identifiedAs: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly pattern: "^did:";
|
|
269
|
+
readonly minLength: 5;
|
|
270
|
+
readonly maxLength: 2048;
|
|
271
|
+
readonly description: "The DID that issued the verified identify document. A grant must come from this DID.";
|
|
272
|
+
};
|
|
273
|
+
readonly ext: {
|
|
274
|
+
readonly $ref: "#/$defs/Ext";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
readonly Ext: {
|
|
279
|
+
readonly title: "Ext";
|
|
280
|
+
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.";
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly minProperties: 1;
|
|
283
|
+
readonly additionalProperties: true;
|
|
284
|
+
readonly propertyNames: {
|
|
285
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly Requester: {
|
|
289
|
+
readonly title: "Requester";
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
readonly required: readonly ["location", "browser", "os", "createdAt", "sameNetwork"];
|
|
293
|
+
readonly properties: {
|
|
294
|
+
readonly location: {
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
readonly minLength: 1;
|
|
297
|
+
readonly maxLength: 128;
|
|
298
|
+
readonly description: "City and country of the starter's connection, from a local lookup with no third-party call, or the literal `unknown`. Never an IP address.";
|
|
299
|
+
};
|
|
300
|
+
readonly browser: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
readonly minLength: 1;
|
|
303
|
+
readonly maxLength: 64;
|
|
304
|
+
readonly description: "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told.";
|
|
305
|
+
};
|
|
306
|
+
readonly os: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly minLength: 1;
|
|
309
|
+
readonly maxLength: 64;
|
|
310
|
+
readonly description: "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told.";
|
|
311
|
+
};
|
|
312
|
+
readonly createdAt: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly format: "date-time";
|
|
315
|
+
readonly description: "When the service accepted the starter's auth/oob/request.";
|
|
316
|
+
};
|
|
317
|
+
readonly sameNetwork: {
|
|
318
|
+
readonly $ref: "#/$defs/SameNetwork";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly description: "What the service reports about where the request came from. Revealed only in the step 2 response, to the lock holder, after a membership and number proof. Reported by the service, signed by it, and a heuristic: a relaying attacker controls what is observed.";
|
|
322
|
+
};
|
|
323
|
+
readonly SameNetwork: {
|
|
324
|
+
readonly title: "SameNetwork";
|
|
325
|
+
readonly oneOf: readonly [{
|
|
326
|
+
readonly type: "boolean";
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly const: "unknown";
|
|
330
|
+
}];
|
|
331
|
+
readonly description: "Whether the starter's request and the approver's prove came from the same egress network, as the service saw them: `true`, `false`, or the string `unknown` when the service cannot tell. The service compares addresses; it never discloses them.";
|
|
332
|
+
};
|
|
333
|
+
readonly OobKey: {
|
|
334
|
+
readonly title: "OobKey";
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 48;
|
|
337
|
+
readonly maxLength: 64;
|
|
338
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
339
|
+
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.";
|
|
340
|
+
};
|
|
341
|
+
readonly Purpose: {
|
|
342
|
+
readonly title: "Purpose";
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly enum: readonly ["login"];
|
|
345
|
+
readonly 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.";
|
|
346
|
+
};
|
|
347
|
+
readonly Origin: {
|
|
348
|
+
readonly title: "Origin";
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly minLength: 9;
|
|
351
|
+
readonly maxLength: 2048;
|
|
352
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
353
|
+
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.";
|
|
354
|
+
};
|
|
355
|
+
readonly Service: {
|
|
356
|
+
readonly title: "Service";
|
|
357
|
+
readonly type: "object";
|
|
358
|
+
readonly additionalProperties: false;
|
|
359
|
+
readonly required: readonly ["did", "name"];
|
|
360
|
+
readonly properties: {
|
|
361
|
+
readonly did: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly pattern: "^did:";
|
|
364
|
+
readonly minLength: 5;
|
|
365
|
+
readonly maxLength: 2048;
|
|
366
|
+
readonly description: "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link.";
|
|
367
|
+
};
|
|
368
|
+
readonly name: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly minLength: 1;
|
|
371
|
+
readonly maxLength: 128;
|
|
372
|
+
readonly 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.";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly description: "Who the service says it is.";
|
|
376
|
+
};
|
|
377
|
+
readonly RequestId: {
|
|
378
|
+
readonly title: "RequestId";
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
readonly minLength: 22;
|
|
381
|
+
readonly maxLength: 43;
|
|
382
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
383
|
+
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.";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
389
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
390
|
+
* per-specification and cannot be derived from the document alone, and
|
|
391
|
+
* item 2 needs the schema this carries.
|
|
392
|
+
*/
|
|
393
|
+
export declare const SPEC: {
|
|
394
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/oob/prove/0.1";
|
|
395
|
+
readonly isBearer: false;
|
|
396
|
+
readonly isProofRequired: true;
|
|
397
|
+
readonly isRecipientRequired: true;
|
|
398
|
+
readonly isIssuedAtRequired: true;
|
|
399
|
+
readonly payloadSchema: {
|
|
400
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
401
|
+
readonly $id: "https://trusttasks.org/spec/auth/oob/prove/0.1";
|
|
402
|
+
readonly title: "Auth — OOB Prove — payload";
|
|
403
|
+
readonly description: "The lock holder proves membership and the number on the starter's screen by carrying a signed auth/oob/identify document, and gets back the service-signed step 2. Issued and signed by the lock key `K_a`. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, parentThreadId, proof) are owned by the framework — SPEC §6.3.";
|
|
404
|
+
readonly type: "object";
|
|
405
|
+
readonly additionalProperties: false;
|
|
406
|
+
readonly required: readonly ["identify"];
|
|
407
|
+
readonly properties: {
|
|
408
|
+
readonly identify: {
|
|
409
|
+
readonly type: "object";
|
|
410
|
+
readonly description: "A complete, signed auth/oob/identify/0.1 Trust Task document, issued by the approving DID and signed by its VTA for `authentication`. The service verifies it as a document in its own right — envelope, proof and payload against that specification's schema — over the members exactly as received: its proof covers every member, so it is deliberately an open object here rather than a typed one a binding could narrow.";
|
|
411
|
+
};
|
|
412
|
+
readonly ext: {
|
|
413
|
+
readonly $ref: "#/$defs/Ext";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly $defs: {
|
|
417
|
+
readonly Response: {
|
|
418
|
+
readonly $anchor: "response";
|
|
419
|
+
readonly title: "Auth — OOB Prove — response payload (step 2)";
|
|
420
|
+
readonly description: "Step 2 of the disclosure ladder, signed by the service's assertionMethod key: the step 1 members unchanged, plus the starter's key, where the request came from, and which DID was identified. The SHA-256 of its JCS canonical form, proof included, is the grant's `contextDigest`.";
|
|
421
|
+
readonly type: "object";
|
|
422
|
+
readonly additionalProperties: false;
|
|
423
|
+
readonly required: readonly ["requestId", "service", "origin", "purpose", "decisionDeadline", "sessionKey", "requester", "identifiedAs"];
|
|
424
|
+
readonly properties: {
|
|
425
|
+
readonly requestId: {
|
|
426
|
+
readonly $ref: "#/$defs/RequestId";
|
|
427
|
+
};
|
|
428
|
+
readonly service: {
|
|
429
|
+
readonly $ref: "#/$defs/Service";
|
|
430
|
+
};
|
|
431
|
+
readonly origin: {
|
|
432
|
+
readonly $ref: "#/$defs/Origin";
|
|
433
|
+
};
|
|
434
|
+
readonly purpose: {
|
|
435
|
+
readonly $ref: "#/$defs/Purpose";
|
|
436
|
+
};
|
|
437
|
+
readonly decisionDeadline: {
|
|
438
|
+
readonly type: "integer";
|
|
439
|
+
readonly minimum: 0;
|
|
440
|
+
readonly description: "Unchanged from step 1 (integer UTC epoch seconds).";
|
|
441
|
+
};
|
|
442
|
+
readonly sessionKey: {
|
|
443
|
+
readonly $ref: "#/$defs/OobKey";
|
|
444
|
+
readonly description: "The starter key `K_b`: the key a grant would let act as the identified DID.";
|
|
445
|
+
};
|
|
446
|
+
readonly requester: {
|
|
447
|
+
readonly $ref: "#/$defs/Requester";
|
|
448
|
+
};
|
|
449
|
+
readonly identifiedAs: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly pattern: "^did:";
|
|
452
|
+
readonly minLength: 5;
|
|
453
|
+
readonly maxLength: 2048;
|
|
454
|
+
readonly description: "The DID that issued the verified identify document. A grant must come from this DID.";
|
|
455
|
+
};
|
|
456
|
+
readonly ext: {
|
|
457
|
+
readonly $ref: "#/$defs/Ext";
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
readonly Ext: {
|
|
462
|
+
readonly title: "Ext";
|
|
463
|
+
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.";
|
|
464
|
+
readonly type: "object";
|
|
465
|
+
readonly minProperties: 1;
|
|
466
|
+
readonly additionalProperties: true;
|
|
467
|
+
readonly propertyNames: {
|
|
468
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly Requester: {
|
|
472
|
+
readonly title: "Requester";
|
|
473
|
+
readonly type: "object";
|
|
474
|
+
readonly additionalProperties: false;
|
|
475
|
+
readonly required: readonly ["location", "browser", "os", "createdAt", "sameNetwork"];
|
|
476
|
+
readonly properties: {
|
|
477
|
+
readonly location: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
readonly minLength: 1;
|
|
480
|
+
readonly maxLength: 128;
|
|
481
|
+
readonly description: "City and country of the starter's connection, from a local lookup with no third-party call, or the literal `unknown`. Never an IP address.";
|
|
482
|
+
};
|
|
483
|
+
readonly browser: {
|
|
484
|
+
readonly type: "string";
|
|
485
|
+
readonly minLength: 1;
|
|
486
|
+
readonly maxLength: 64;
|
|
487
|
+
readonly description: "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told.";
|
|
488
|
+
};
|
|
489
|
+
readonly os: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
readonly minLength: 1;
|
|
492
|
+
readonly maxLength: 64;
|
|
493
|
+
readonly description: "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told.";
|
|
494
|
+
};
|
|
495
|
+
readonly createdAt: {
|
|
496
|
+
readonly type: "string";
|
|
497
|
+
readonly format: "date-time";
|
|
498
|
+
readonly description: "When the service accepted the starter's auth/oob/request.";
|
|
499
|
+
};
|
|
500
|
+
readonly sameNetwork: {
|
|
501
|
+
readonly $ref: "#/$defs/SameNetwork";
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
readonly description: "What the service reports about where the request came from. Revealed only in the step 2 response, to the lock holder, after a membership and number proof. Reported by the service, signed by it, and a heuristic: a relaying attacker controls what is observed.";
|
|
505
|
+
};
|
|
506
|
+
readonly SameNetwork: {
|
|
507
|
+
readonly title: "SameNetwork";
|
|
508
|
+
readonly oneOf: readonly [{
|
|
509
|
+
readonly type: "boolean";
|
|
510
|
+
}, {
|
|
511
|
+
readonly type: "string";
|
|
512
|
+
readonly const: "unknown";
|
|
513
|
+
}];
|
|
514
|
+
readonly description: "Whether the starter's request and the approver's prove came from the same egress network, as the service saw them: `true`, `false`, or the string `unknown` when the service cannot tell. The service compares addresses; it never discloses them.";
|
|
515
|
+
};
|
|
516
|
+
readonly OobKey: {
|
|
517
|
+
readonly title: "OobKey";
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
readonly minLength: 48;
|
|
520
|
+
readonly maxLength: 64;
|
|
521
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
522
|
+
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.";
|
|
523
|
+
};
|
|
524
|
+
readonly Purpose: {
|
|
525
|
+
readonly title: "Purpose";
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
readonly enum: readonly ["login"];
|
|
528
|
+
readonly 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.";
|
|
529
|
+
};
|
|
530
|
+
readonly Origin: {
|
|
531
|
+
readonly title: "Origin";
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly minLength: 9;
|
|
534
|
+
readonly maxLength: 2048;
|
|
535
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
536
|
+
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.";
|
|
537
|
+
};
|
|
538
|
+
readonly Service: {
|
|
539
|
+
readonly title: "Service";
|
|
540
|
+
readonly type: "object";
|
|
541
|
+
readonly additionalProperties: false;
|
|
542
|
+
readonly required: readonly ["did", "name"];
|
|
543
|
+
readonly properties: {
|
|
544
|
+
readonly did: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
readonly pattern: "^did:";
|
|
547
|
+
readonly minLength: 5;
|
|
548
|
+
readonly maxLength: 2048;
|
|
549
|
+
readonly description: "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link.";
|
|
550
|
+
};
|
|
551
|
+
readonly name: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
readonly minLength: 1;
|
|
554
|
+
readonly maxLength: 128;
|
|
555
|
+
readonly 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.";
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
readonly description: "Who the service says it is.";
|
|
559
|
+
};
|
|
560
|
+
readonly RequestId: {
|
|
561
|
+
readonly title: "RequestId";
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
readonly minLength: 22;
|
|
564
|
+
readonly maxLength: 43;
|
|
565
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
566
|
+
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.";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
573
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
574
|
+
* parties (§7.3 item 5).
|
|
575
|
+
*/
|
|
576
|
+
export declare const RESPONSE_SPEC: {
|
|
577
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/oob/prove/0.1#response";
|
|
578
|
+
readonly isBearer: false;
|
|
579
|
+
readonly isProofRequired: true;
|
|
580
|
+
readonly isRecipientRequired: true;
|
|
581
|
+
readonly isIssuedAtRequired: true;
|
|
582
|
+
readonly payloadSchema: {
|
|
583
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
584
|
+
readonly $ref: "#/$defs/Response";
|
|
585
|
+
readonly $defs: {
|
|
586
|
+
readonly Response: {
|
|
587
|
+
readonly $anchor: "response";
|
|
588
|
+
readonly title: "Auth — OOB Prove — response payload (step 2)";
|
|
589
|
+
readonly description: "Step 2 of the disclosure ladder, signed by the service's assertionMethod key: the step 1 members unchanged, plus the starter's key, where the request came from, and which DID was identified. The SHA-256 of its JCS canonical form, proof included, is the grant's `contextDigest`.";
|
|
590
|
+
readonly type: "object";
|
|
591
|
+
readonly additionalProperties: false;
|
|
592
|
+
readonly required: readonly ["requestId", "service", "origin", "purpose", "decisionDeadline", "sessionKey", "requester", "identifiedAs"];
|
|
593
|
+
readonly properties: {
|
|
594
|
+
readonly requestId: {
|
|
595
|
+
readonly $ref: "#/$defs/RequestId";
|
|
596
|
+
};
|
|
597
|
+
readonly service: {
|
|
598
|
+
readonly $ref: "#/$defs/Service";
|
|
599
|
+
};
|
|
600
|
+
readonly origin: {
|
|
601
|
+
readonly $ref: "#/$defs/Origin";
|
|
602
|
+
};
|
|
603
|
+
readonly purpose: {
|
|
604
|
+
readonly $ref: "#/$defs/Purpose";
|
|
605
|
+
};
|
|
606
|
+
readonly decisionDeadline: {
|
|
607
|
+
readonly type: "integer";
|
|
608
|
+
readonly minimum: 0;
|
|
609
|
+
readonly description: "Unchanged from step 1 (integer UTC epoch seconds).";
|
|
610
|
+
};
|
|
611
|
+
readonly sessionKey: {
|
|
612
|
+
readonly $ref: "#/$defs/OobKey";
|
|
613
|
+
readonly description: "The starter key `K_b`: the key a grant would let act as the identified DID.";
|
|
614
|
+
};
|
|
615
|
+
readonly requester: {
|
|
616
|
+
readonly $ref: "#/$defs/Requester";
|
|
617
|
+
};
|
|
618
|
+
readonly identifiedAs: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
readonly pattern: "^did:";
|
|
621
|
+
readonly minLength: 5;
|
|
622
|
+
readonly maxLength: 2048;
|
|
623
|
+
readonly description: "The DID that issued the verified identify document. A grant must come from this DID.";
|
|
624
|
+
};
|
|
625
|
+
readonly ext: {
|
|
626
|
+
readonly $ref: "#/$defs/Ext";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
readonly Ext: {
|
|
631
|
+
readonly title: "Ext";
|
|
632
|
+
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.";
|
|
633
|
+
readonly type: "object";
|
|
634
|
+
readonly minProperties: 1;
|
|
635
|
+
readonly additionalProperties: true;
|
|
636
|
+
readonly propertyNames: {
|
|
637
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
readonly Requester: {
|
|
641
|
+
readonly title: "Requester";
|
|
642
|
+
readonly type: "object";
|
|
643
|
+
readonly additionalProperties: false;
|
|
644
|
+
readonly required: readonly ["location", "browser", "os", "createdAt", "sameNetwork"];
|
|
645
|
+
readonly properties: {
|
|
646
|
+
readonly location: {
|
|
647
|
+
readonly type: "string";
|
|
648
|
+
readonly minLength: 1;
|
|
649
|
+
readonly maxLength: 128;
|
|
650
|
+
readonly description: "City and country of the starter's connection, from a local lookup with no third-party call, or the literal `unknown`. Never an IP address.";
|
|
651
|
+
};
|
|
652
|
+
readonly browser: {
|
|
653
|
+
readonly type: "string";
|
|
654
|
+
readonly minLength: 1;
|
|
655
|
+
readonly maxLength: 64;
|
|
656
|
+
readonly description: "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told.";
|
|
657
|
+
};
|
|
658
|
+
readonly os: {
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
readonly minLength: 1;
|
|
661
|
+
readonly maxLength: 64;
|
|
662
|
+
readonly description: "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told.";
|
|
663
|
+
};
|
|
664
|
+
readonly createdAt: {
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
readonly format: "date-time";
|
|
667
|
+
readonly description: "When the service accepted the starter's auth/oob/request.";
|
|
668
|
+
};
|
|
669
|
+
readonly sameNetwork: {
|
|
670
|
+
readonly $ref: "#/$defs/SameNetwork";
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly description: "What the service reports about where the request came from. Revealed only in the step 2 response, to the lock holder, after a membership and number proof. Reported by the service, signed by it, and a heuristic: a relaying attacker controls what is observed.";
|
|
674
|
+
};
|
|
675
|
+
readonly SameNetwork: {
|
|
676
|
+
readonly title: "SameNetwork";
|
|
677
|
+
readonly oneOf: readonly [{
|
|
678
|
+
readonly type: "boolean";
|
|
679
|
+
}, {
|
|
680
|
+
readonly type: "string";
|
|
681
|
+
readonly const: "unknown";
|
|
682
|
+
}];
|
|
683
|
+
readonly description: "Whether the starter's request and the approver's prove came from the same egress network, as the service saw them: `true`, `false`, or the string `unknown` when the service cannot tell. The service compares addresses; it never discloses them.";
|
|
684
|
+
};
|
|
685
|
+
readonly OobKey: {
|
|
686
|
+
readonly title: "OobKey";
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
readonly minLength: 48;
|
|
689
|
+
readonly maxLength: 64;
|
|
690
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
691
|
+
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.";
|
|
692
|
+
};
|
|
693
|
+
readonly Purpose: {
|
|
694
|
+
readonly title: "Purpose";
|
|
695
|
+
readonly type: "string";
|
|
696
|
+
readonly enum: readonly ["login"];
|
|
697
|
+
readonly 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.";
|
|
698
|
+
};
|
|
699
|
+
readonly Origin: {
|
|
700
|
+
readonly title: "Origin";
|
|
701
|
+
readonly type: "string";
|
|
702
|
+
readonly minLength: 9;
|
|
703
|
+
readonly maxLength: 2048;
|
|
704
|
+
readonly pattern: "^https://[^/?#\\s]+$";
|
|
705
|
+
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.";
|
|
706
|
+
};
|
|
707
|
+
readonly Service: {
|
|
708
|
+
readonly title: "Service";
|
|
709
|
+
readonly type: "object";
|
|
710
|
+
readonly additionalProperties: false;
|
|
711
|
+
readonly required: readonly ["did", "name"];
|
|
712
|
+
readonly properties: {
|
|
713
|
+
readonly did: {
|
|
714
|
+
readonly type: "string";
|
|
715
|
+
readonly pattern: "^did:";
|
|
716
|
+
readonly minLength: 5;
|
|
717
|
+
readonly maxLength: 2048;
|
|
718
|
+
readonly description: "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link.";
|
|
719
|
+
};
|
|
720
|
+
readonly name: {
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
readonly minLength: 1;
|
|
723
|
+
readonly maxLength: 128;
|
|
724
|
+
readonly 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.";
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
readonly description: "Who the service says it is.";
|
|
728
|
+
};
|
|
729
|
+
readonly RequestId: {
|
|
730
|
+
readonly title: "RequestId";
|
|
731
|
+
readonly type: "string";
|
|
732
|
+
readonly minLength: 22;
|
|
733
|
+
readonly maxLength: 43;
|
|
734
|
+
readonly pattern: "^[A-Za-z0-9_-]{22,43}$";
|
|
735
|
+
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.";
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
//# sourceMappingURL=payload.d.ts.map
|