@openvtc/trust-tasks 0.23.8 → 0.24.0
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 +54 -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,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/oob/identify/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { MatchNumber, OobKey, RequestId } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A member's DID states that it holds the lock on one out-of-band request and can see the starter's screen. Issued by the approving DID and signed by its VTA for `authentication`; never sent on its own, only carried inside auth/oob/prove. Closed: additionalProperties false and no `ext`, so a VTA that signs it without user verification signs exactly these three members and nothing else. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface AuthOOBIdentifyPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The request being proved for. MUST equal the requestId of the prove that carries this document.
|
|
15
|
+
*/
|
|
16
|
+
requestId: RequestId;
|
|
17
|
+
/**
|
|
18
|
+
* The lock key `K_a`. MUST equal the issuer of the prove that carries this document, so the document cannot be re-wrapped by another device.
|
|
19
|
+
*/
|
|
20
|
+
approverKey: OobKey;
|
|
21
|
+
/**
|
|
22
|
+
* The two digits the member typed from the starter's screen.
|
|
23
|
+
*/
|
|
24
|
+
enteredNumber: MatchNumber;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
28
|
+
export type { MatchNumber, OobKey, RequestId };
|
|
29
|
+
|
|
30
|
+
/** Trust Task type URI. */
|
|
31
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/identify/0.1" as const;
|
|
32
|
+
|
|
33
|
+
/** Stable alias for this specification's request payload shape. */
|
|
34
|
+
export type Payload = AuthOOBIdentifyPayload;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This specification's payload schema, as a value.
|
|
38
|
+
*
|
|
39
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
40
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
41
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
42
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
43
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
44
|
+
*/
|
|
45
|
+
export const PAYLOAD_SCHEMA = {
|
|
46
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
47
|
+
"$id": "https://trusttasks.org/spec/auth/oob/identify/0.1",
|
|
48
|
+
"title": "Auth — OOB Identify — payload",
|
|
49
|
+
"description": "A member's DID states that it holds the lock on one out-of-band request and can see the starter's screen. Issued by the approving DID and signed by its VTA for `authentication`; never sent on its own, only carried inside auth/oob/prove. Closed: additionalProperties false and no `ext`, so a VTA that signs it without user verification signs exactly these three members and nothing else. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"requestId",
|
|
54
|
+
"approverKey",
|
|
55
|
+
"enteredNumber"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"requestId": {
|
|
59
|
+
"$ref": "#/$defs/RequestId",
|
|
60
|
+
"description": "The request being proved for. MUST equal the requestId of the prove that carries this document."
|
|
61
|
+
},
|
|
62
|
+
"approverKey": {
|
|
63
|
+
"$ref": "#/$defs/OobKey",
|
|
64
|
+
"description": "The lock key `K_a`. MUST equal the issuer of the prove that carries this document, so the document cannot be re-wrapped by another device."
|
|
65
|
+
},
|
|
66
|
+
"enteredNumber": {
|
|
67
|
+
"$ref": "#/$defs/MatchNumber",
|
|
68
|
+
"description": "The two digits the member typed from the starter's screen."
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"$defs": {
|
|
72
|
+
"MatchNumber": {
|
|
73
|
+
"title": "MatchNumber",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[0-9]{2}$",
|
|
76
|
+
"description": "The two-digit number the service chooses at claim, shows only to the starter (through redeem), and the approver types from the starter's screen. A string so that a leading zero survives."
|
|
77
|
+
},
|
|
78
|
+
"OobKey": {
|
|
79
|
+
"title": "OobKey",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 48,
|
|
82
|
+
"maxLength": 64,
|
|
83
|
+
"pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
|
|
84
|
+
"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."
|
|
85
|
+
},
|
|
86
|
+
"RequestId": {
|
|
87
|
+
"title": "RequestId",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 22,
|
|
90
|
+
"maxLength": 43,
|
|
91
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
92
|
+
"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."
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
} as const;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
99
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
100
|
+
* per-specification and cannot be derived from the document alone, and
|
|
101
|
+
* item 2 needs the schema this carries.
|
|
102
|
+
*/
|
|
103
|
+
export const SPEC = {
|
|
104
|
+
typeUri: TYPE_URI,
|
|
105
|
+
isBearer: false,
|
|
106
|
+
isProofRequired: true,
|
|
107
|
+
isRecipientRequired: true,
|
|
108
|
+
isIssuedAtRequired: true,
|
|
109
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
110
|
+
} as const;
|
|
@@ -0,0 +1,473 @@
|
|
|
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
|
+
|
|
6
|
+
import type { Ext, OobKey, Origin, Purpose, Requester, RequestId, SameNetwork, Service } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
export interface AuthOOBProvePayload {
|
|
13
|
+
/**
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
16
|
+
identify: {};
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 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`.
|
|
21
|
+
*/
|
|
22
|
+
export interface AuthOOBProveResponsePayloadStep2 {
|
|
23
|
+
requestId: RequestId;
|
|
24
|
+
service: Service;
|
|
25
|
+
origin: Origin;
|
|
26
|
+
purpose: Purpose;
|
|
27
|
+
/**
|
|
28
|
+
* Unchanged from step 1 (integer UTC epoch seconds).
|
|
29
|
+
*/
|
|
30
|
+
decisionDeadline: number;
|
|
31
|
+
/**
|
|
32
|
+
* The starter key `K_b`: the key a grant would let act as the identified DID.
|
|
33
|
+
*/
|
|
34
|
+
sessionKey: OobKey;
|
|
35
|
+
requester: Requester;
|
|
36
|
+
/**
|
|
37
|
+
* The DID that issued the verified identify document. A grant must come from this DID.
|
|
38
|
+
*/
|
|
39
|
+
identifiedAs: string;
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
44
|
+
export type { Ext, OobKey, Origin, Purpose, Requester, RequestId, SameNetwork, Service };
|
|
45
|
+
|
|
46
|
+
/** Trust Task type URI. */
|
|
47
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/oob/prove/0.1" as const;
|
|
48
|
+
|
|
49
|
+
/** Stable alias for this specification's request payload shape. */
|
|
50
|
+
export type Payload = AuthOOBProvePayload;
|
|
51
|
+
|
|
52
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
53
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/oob/prove/0.1#response" as const;
|
|
54
|
+
|
|
55
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
56
|
+
export type Response = AuthOOBProveResponsePayloadStep2;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* This specification's payload schema, as a value.
|
|
60
|
+
*
|
|
61
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
62
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
63
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
64
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
65
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
66
|
+
*/
|
|
67
|
+
export const PAYLOAD_SCHEMA = {
|
|
68
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
69
|
+
"$id": "https://trusttasks.org/spec/auth/oob/prove/0.1",
|
|
70
|
+
"title": "Auth — OOB Prove — payload",
|
|
71
|
+
"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.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": [
|
|
75
|
+
"identify"
|
|
76
|
+
],
|
|
77
|
+
"properties": {
|
|
78
|
+
"identify": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"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."
|
|
81
|
+
},
|
|
82
|
+
"ext": {
|
|
83
|
+
"$ref": "#/$defs/Ext"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"$defs": {
|
|
87
|
+
"Response": {
|
|
88
|
+
"$anchor": "response",
|
|
89
|
+
"title": "Auth — OOB Prove — response payload (step 2)",
|
|
90
|
+
"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`.",
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": [
|
|
94
|
+
"requestId",
|
|
95
|
+
"service",
|
|
96
|
+
"origin",
|
|
97
|
+
"purpose",
|
|
98
|
+
"decisionDeadline",
|
|
99
|
+
"sessionKey",
|
|
100
|
+
"requester",
|
|
101
|
+
"identifiedAs"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"requestId": {
|
|
105
|
+
"$ref": "#/$defs/RequestId"
|
|
106
|
+
},
|
|
107
|
+
"service": {
|
|
108
|
+
"$ref": "#/$defs/Service"
|
|
109
|
+
},
|
|
110
|
+
"origin": {
|
|
111
|
+
"$ref": "#/$defs/Origin"
|
|
112
|
+
},
|
|
113
|
+
"purpose": {
|
|
114
|
+
"$ref": "#/$defs/Purpose"
|
|
115
|
+
},
|
|
116
|
+
"decisionDeadline": {
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"minimum": 0,
|
|
119
|
+
"description": "Unchanged from step 1 (integer UTC epoch seconds)."
|
|
120
|
+
},
|
|
121
|
+
"sessionKey": {
|
|
122
|
+
"$ref": "#/$defs/OobKey",
|
|
123
|
+
"description": "The starter key `K_b`: the key a grant would let act as the identified DID."
|
|
124
|
+
},
|
|
125
|
+
"requester": {
|
|
126
|
+
"$ref": "#/$defs/Requester"
|
|
127
|
+
},
|
|
128
|
+
"identifiedAs": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"pattern": "^did:",
|
|
131
|
+
"minLength": 5,
|
|
132
|
+
"maxLength": 2048,
|
|
133
|
+
"description": "The DID that issued the verified identify document. A grant must come from this DID."
|
|
134
|
+
},
|
|
135
|
+
"ext": {
|
|
136
|
+
"$ref": "#/$defs/Ext"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"Ext": {
|
|
141
|
+
"title": "Ext",
|
|
142
|
+
"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.",
|
|
143
|
+
"type": "object",
|
|
144
|
+
"minProperties": 1,
|
|
145
|
+
"additionalProperties": true,
|
|
146
|
+
"propertyNames": {
|
|
147
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"Requester": {
|
|
151
|
+
"title": "Requester",
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": [
|
|
155
|
+
"location",
|
|
156
|
+
"browser",
|
|
157
|
+
"os",
|
|
158
|
+
"createdAt",
|
|
159
|
+
"sameNetwork"
|
|
160
|
+
],
|
|
161
|
+
"properties": {
|
|
162
|
+
"location": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"minLength": 1,
|
|
165
|
+
"maxLength": 128,
|
|
166
|
+
"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."
|
|
167
|
+
},
|
|
168
|
+
"browser": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"minLength": 1,
|
|
171
|
+
"maxLength": 64,
|
|
172
|
+
"description": "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told."
|
|
173
|
+
},
|
|
174
|
+
"os": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 64,
|
|
178
|
+
"description": "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told."
|
|
179
|
+
},
|
|
180
|
+
"createdAt": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"format": "date-time",
|
|
183
|
+
"description": "When the service accepted the starter's auth/oob/request."
|
|
184
|
+
},
|
|
185
|
+
"sameNetwork": {
|
|
186
|
+
"$ref": "#/$defs/SameNetwork"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"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."
|
|
190
|
+
},
|
|
191
|
+
"SameNetwork": {
|
|
192
|
+
"title": "SameNetwork",
|
|
193
|
+
"oneOf": [
|
|
194
|
+
{
|
|
195
|
+
"type": "boolean"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "string",
|
|
199
|
+
"const": "unknown"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"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."
|
|
203
|
+
},
|
|
204
|
+
"OobKey": {
|
|
205
|
+
"title": "OobKey",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"minLength": 48,
|
|
208
|
+
"maxLength": 64,
|
|
209
|
+
"pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
|
|
210
|
+
"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."
|
|
211
|
+
},
|
|
212
|
+
"Purpose": {
|
|
213
|
+
"title": "Purpose",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"enum": [
|
|
216
|
+
"login"
|
|
217
|
+
],
|
|
218
|
+
"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."
|
|
219
|
+
},
|
|
220
|
+
"Origin": {
|
|
221
|
+
"title": "Origin",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"minLength": 9,
|
|
224
|
+
"maxLength": 2048,
|
|
225
|
+
"pattern": "^https://[^/?#\\s]+$",
|
|
226
|
+
"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."
|
|
227
|
+
},
|
|
228
|
+
"Service": {
|
|
229
|
+
"title": "Service",
|
|
230
|
+
"type": "object",
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"required": [
|
|
233
|
+
"did",
|
|
234
|
+
"name"
|
|
235
|
+
],
|
|
236
|
+
"properties": {
|
|
237
|
+
"did": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"pattern": "^did:",
|
|
240
|
+
"minLength": 5,
|
|
241
|
+
"maxLength": 2048,
|
|
242
|
+
"description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
|
|
243
|
+
},
|
|
244
|
+
"name": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"minLength": 1,
|
|
247
|
+
"maxLength": 128,
|
|
248
|
+
"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."
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"description": "Who the service says it is."
|
|
252
|
+
},
|
|
253
|
+
"RequestId": {
|
|
254
|
+
"title": "RequestId",
|
|
255
|
+
"type": "string",
|
|
256
|
+
"minLength": 22,
|
|
257
|
+
"maxLength": 43,
|
|
258
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
259
|
+
"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."
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
} as const;
|
|
263
|
+
|
|
264
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
265
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
266
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
267
|
+
"$ref": "#/$defs/Response",
|
|
268
|
+
"$defs": {
|
|
269
|
+
"Response": {
|
|
270
|
+
"$anchor": "response",
|
|
271
|
+
"title": "Auth — OOB Prove — response payload (step 2)",
|
|
272
|
+
"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`.",
|
|
273
|
+
"type": "object",
|
|
274
|
+
"additionalProperties": false,
|
|
275
|
+
"required": [
|
|
276
|
+
"requestId",
|
|
277
|
+
"service",
|
|
278
|
+
"origin",
|
|
279
|
+
"purpose",
|
|
280
|
+
"decisionDeadline",
|
|
281
|
+
"sessionKey",
|
|
282
|
+
"requester",
|
|
283
|
+
"identifiedAs"
|
|
284
|
+
],
|
|
285
|
+
"properties": {
|
|
286
|
+
"requestId": {
|
|
287
|
+
"$ref": "#/$defs/RequestId"
|
|
288
|
+
},
|
|
289
|
+
"service": {
|
|
290
|
+
"$ref": "#/$defs/Service"
|
|
291
|
+
},
|
|
292
|
+
"origin": {
|
|
293
|
+
"$ref": "#/$defs/Origin"
|
|
294
|
+
},
|
|
295
|
+
"purpose": {
|
|
296
|
+
"$ref": "#/$defs/Purpose"
|
|
297
|
+
},
|
|
298
|
+
"decisionDeadline": {
|
|
299
|
+
"type": "integer",
|
|
300
|
+
"minimum": 0,
|
|
301
|
+
"description": "Unchanged from step 1 (integer UTC epoch seconds)."
|
|
302
|
+
},
|
|
303
|
+
"sessionKey": {
|
|
304
|
+
"$ref": "#/$defs/OobKey",
|
|
305
|
+
"description": "The starter key `K_b`: the key a grant would let act as the identified DID."
|
|
306
|
+
},
|
|
307
|
+
"requester": {
|
|
308
|
+
"$ref": "#/$defs/Requester"
|
|
309
|
+
},
|
|
310
|
+
"identifiedAs": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"pattern": "^did:",
|
|
313
|
+
"minLength": 5,
|
|
314
|
+
"maxLength": 2048,
|
|
315
|
+
"description": "The DID that issued the verified identify document. A grant must come from this DID."
|
|
316
|
+
},
|
|
317
|
+
"ext": {
|
|
318
|
+
"$ref": "#/$defs/Ext"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"Ext": {
|
|
323
|
+
"title": "Ext",
|
|
324
|
+
"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.",
|
|
325
|
+
"type": "object",
|
|
326
|
+
"minProperties": 1,
|
|
327
|
+
"additionalProperties": true,
|
|
328
|
+
"propertyNames": {
|
|
329
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"Requester": {
|
|
333
|
+
"title": "Requester",
|
|
334
|
+
"type": "object",
|
|
335
|
+
"additionalProperties": false,
|
|
336
|
+
"required": [
|
|
337
|
+
"location",
|
|
338
|
+
"browser",
|
|
339
|
+
"os",
|
|
340
|
+
"createdAt",
|
|
341
|
+
"sameNetwork"
|
|
342
|
+
],
|
|
343
|
+
"properties": {
|
|
344
|
+
"location": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"minLength": 1,
|
|
347
|
+
"maxLength": 128,
|
|
348
|
+
"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."
|
|
349
|
+
},
|
|
350
|
+
"browser": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"minLength": 1,
|
|
353
|
+
"maxLength": 64,
|
|
354
|
+
"description": "Browser family of the starter (e.g. `Chrome`), never the full User-Agent; `unknown` when it cannot be told."
|
|
355
|
+
},
|
|
356
|
+
"os": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"minLength": 1,
|
|
359
|
+
"maxLength": 64,
|
|
360
|
+
"description": "Operating system family of the starter (e.g. `macOS`); `unknown` when it cannot be told."
|
|
361
|
+
},
|
|
362
|
+
"createdAt": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"format": "date-time",
|
|
365
|
+
"description": "When the service accepted the starter's auth/oob/request."
|
|
366
|
+
},
|
|
367
|
+
"sameNetwork": {
|
|
368
|
+
"$ref": "#/$defs/SameNetwork"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"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."
|
|
372
|
+
},
|
|
373
|
+
"SameNetwork": {
|
|
374
|
+
"title": "SameNetwork",
|
|
375
|
+
"oneOf": [
|
|
376
|
+
{
|
|
377
|
+
"type": "boolean"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "string",
|
|
381
|
+
"const": "unknown"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"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."
|
|
385
|
+
},
|
|
386
|
+
"OobKey": {
|
|
387
|
+
"title": "OobKey",
|
|
388
|
+
"type": "string",
|
|
389
|
+
"minLength": 48,
|
|
390
|
+
"maxLength": 64,
|
|
391
|
+
"pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
|
|
392
|
+
"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."
|
|
393
|
+
},
|
|
394
|
+
"Purpose": {
|
|
395
|
+
"title": "Purpose",
|
|
396
|
+
"type": "string",
|
|
397
|
+
"enum": [
|
|
398
|
+
"login"
|
|
399
|
+
],
|
|
400
|
+
"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."
|
|
401
|
+
},
|
|
402
|
+
"Origin": {
|
|
403
|
+
"title": "Origin",
|
|
404
|
+
"type": "string",
|
|
405
|
+
"minLength": 9,
|
|
406
|
+
"maxLength": 2048,
|
|
407
|
+
"pattern": "^https://[^/?#\\s]+$",
|
|
408
|
+
"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."
|
|
409
|
+
},
|
|
410
|
+
"Service": {
|
|
411
|
+
"title": "Service",
|
|
412
|
+
"type": "object",
|
|
413
|
+
"additionalProperties": false,
|
|
414
|
+
"required": [
|
|
415
|
+
"did",
|
|
416
|
+
"name"
|
|
417
|
+
],
|
|
418
|
+
"properties": {
|
|
419
|
+
"did": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"pattern": "^did:",
|
|
422
|
+
"minLength": 5,
|
|
423
|
+
"maxLength": 2048,
|
|
424
|
+
"description": "The service's DID: the `recipient` of every request in the family, and the `_from` of the trigger link."
|
|
425
|
+
},
|
|
426
|
+
"name": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"minLength": 1,
|
|
429
|
+
"maxLength": 128,
|
|
430
|
+
"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."
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"description": "Who the service says it is."
|
|
434
|
+
},
|
|
435
|
+
"RequestId": {
|
|
436
|
+
"title": "RequestId",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"minLength": 22,
|
|
439
|
+
"maxLength": 43,
|
|
440
|
+
"pattern": "^[A-Za-z0-9_-]{22,43}$",
|
|
441
|
+
"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."
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
} as const;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
448
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
449
|
+
* per-specification and cannot be derived from the document alone, and
|
|
450
|
+
* item 2 needs the schema this carries.
|
|
451
|
+
*/
|
|
452
|
+
export const SPEC = {
|
|
453
|
+
typeUri: TYPE_URI,
|
|
454
|
+
isBearer: false,
|
|
455
|
+
isProofRequired: true,
|
|
456
|
+
isRecipientRequired: true,
|
|
457
|
+
isIssuedAtRequired: true,
|
|
458
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
459
|
+
} as const;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
463
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
464
|
+
* parties (§7.3 item 5).
|
|
465
|
+
*/
|
|
466
|
+
export const RESPONSE_SPEC = {
|
|
467
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
468
|
+
isBearer: false,
|
|
469
|
+
isProofRequired: true,
|
|
470
|
+
isRecipientRequired: true,
|
|
471
|
+
isIssuedAtRequired: true,
|
|
472
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
473
|
+
} as const;
|