@openvtc/trust-tasks 0.20.7 → 0.21.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 +320 -0
- package/dist/_shared/components.d.ts +299 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts +456 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.js +248 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts +728 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js +430 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts +1043 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js +628 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts +533 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.js +315 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.js.map +1 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.d.ts +511 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.js +297 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-request/0.3/payload.d.ts +613 -0
- package/dist/auth/step-up/approve-request/0.3/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-request/0.3/payload.js +345 -0
- package/dist/auth/step-up/approve-request/0.3/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.4/payload.d.ts +887 -0
- package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.4/payload.js +504 -0
- package/dist/auth/step-up/approve-response/0.4/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
- package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
- package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
- package/dist/backup/abort/0.1/payload.d.ts +262 -0
- package/dist/backup/abort/0.1/payload.d.ts.map +1 -0
- package/dist/backup/abort/0.1/payload.js +146 -0
- package/dist/backup/abort/0.1/payload.js.map +1 -0
- package/dist/backup/complete-export/0.1/payload.d.ts +262 -0
- package/dist/backup/complete-export/0.1/payload.d.ts.map +1 -0
- package/dist/backup/complete-export/0.1/payload.js +146 -0
- package/dist/backup/complete-export/0.1/payload.js.map +1 -0
- package/dist/backup/finalize-import/0.1/payload.d.ts +395 -0
- package/dist/backup/finalize-import/0.1/payload.d.ts.map +1 -0
- package/dist/backup/finalize-import/0.1/payload.js +209 -0
- package/dist/backup/finalize-import/0.1/payload.js.map +1 -0
- package/dist/backup/get-chunk/0.1/payload.d.ts +461 -0
- package/dist/backup/get-chunk/0.1/payload.d.ts.map +1 -0
- package/dist/backup/get-chunk/0.1/payload.js +250 -0
- package/dist/backup/get-chunk/0.1/payload.js.map +1 -0
- package/dist/backup/initiate-export/0.1/payload.d.ts +896 -0
- package/dist/backup/initiate-export/0.1/payload.d.ts.map +1 -0
- package/dist/backup/initiate-export/0.1/payload.js +507 -0
- package/dist/backup/initiate-export/0.1/payload.js.map +1 -0
- package/dist/backup/initiate-import/0.1/payload.d.ts +888 -0
- package/dist/backup/initiate-import/0.1/payload.d.ts.map +1 -0
- package/dist/backup/initiate-import/0.1/payload.js +504 -0
- package/dist/backup/initiate-import/0.1/payload.js.map +1 -0
- package/dist/backup/put-chunk/0.1/payload.d.ts +495 -0
- package/dist/backup/put-chunk/0.1/payload.d.ts.map +1 -0
- package/dist/backup/put-chunk/0.1/payload.js +265 -0
- package/dist/backup/put-chunk/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 +4 -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 +4 -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 +4 -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 +4 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
- package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
- package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
- package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
- package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
- package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
- package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
- package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
- package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
- package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
- package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
- package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
- package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
- package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
- package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
- package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
- package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
- package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
- package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/create/0.3/payload.js +646 -0
- package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
- package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
- package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
- package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
- package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/right/grant/0.3/payload.js +383 -0
- package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
- package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
- package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
- package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
- package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
- package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
- package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
- package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
- package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
- package/dist/git-ns/view/0.1/payload.d.ts +2 -2
- package/dist/git-ns/view/0.1/payload.js +2 -2
- package/dist/git-ns/view/0.1/payload.js.map +1 -1
- package/dist/git-ns/view/0.2/payload.d.ts +2 -2
- package/dist/git-ns/view/0.2/payload.js +2 -2
- package/dist/git-ns/view/0.2/payload.js.map +1 -1
- package/dist/git-ns/view/0.3/payload.d.ts +2 -2
- package/dist/git-ns/view/0.3/payload.js +2 -2
- package/dist/git-ns/view/0.3/payload.js.map +1 -1
- package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
- package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
- package/dist/git-ns/view/0.4/payload.js +1012 -0
- package/dist/git-ns/view/0.4/payload.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
- package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/status/0.1/payload.js +214 -0
- package/dist/messaging/message/status/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
- package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
- package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
- package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
- package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
- package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
- package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
- package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
- package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
- package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
- package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
- package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +313 -2
- package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
- package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
- package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
- package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
- package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
- package/src/auth/step-up/approve-request/0.3/payload.ts +421 -0
- package/src/auth/step-up/approve-response/0.4/payload.ts +593 -0
- package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
- package/src/backup/abort/0.1/payload.ts +191 -0
- package/src/backup/complete-export/0.1/payload.ts +191 -0
- package/src/backup/finalize-import/0.1/payload.ts +279 -0
- package/src/backup/get-chunk/0.1/payload.ts +308 -0
- package/src/backup/initiate-export/0.1/payload.ts +564 -0
- package/src/backup/initiate-import/0.1/payload.ts +561 -0
- package/src/backup/put-chunk/0.1/payload.ts +331 -0
- package/src/device/list/0.1/payload.ts +4 -2
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.1/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
- package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
- package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
- package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
- package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
- package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
- package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
- package/src/git-ns/repo/create/0.3/payload.ts +706 -0
- package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
- package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
- package/src/git-ns/right/grant/0.3/payload.ts +434 -0
- package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
- package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
- package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
- package/src/git-ns/view/0.1/payload.ts +2 -2
- package/src/git-ns/view/0.2/payload.ts +2 -2
- package/src/git-ns/view/0.3/payload.ts +2 -2
- package/src/git-ns/view/0.4/payload.ts +1075 -0
- package/src/index.ts +39 -0
- package/src/messaging/message/status/0.1/payload.ts +270 -0
- package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
- package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
- package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
- package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
- package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
- package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
- package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
- package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
- package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
- package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
- package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
- package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/webvh/dids/update/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship, Ext, KeyRole, KeyRoleApprovalState, KeyRoleChangeOutcome, KeyType } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Ask a Verifiable Trust Agent to publish a new entry in a did:webvh log it holds the update key for, changing anything but the DID's keys. Keys change only through the key-role tasks (vta/_shared/0.3/CONVENTIONS.md).
|
|
11
|
+
*/
|
|
12
|
+
export interface WebVHDIDUpdatePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The did:webvh being updated. The agent MUST verify it speaks for this subject.
|
|
15
|
+
*/
|
|
16
|
+
did: string;
|
|
17
|
+
/**
|
|
18
|
+
* The new DID document. Omit to leave it unchanged. It MUST carry, unchanged, the current `verificationMethod`, `authentication`, `assertionMethod`, `keyAgreement`, `capabilityInvocation`, `capabilityDelegation` and `keyRoles` members: a change to any of them is refused with `vta/webvh/dids/update:keyMembersManaged`, because keys change only through the key-role tasks. Appending the entry still rotates the DID's update key under pre-rotation, which a consent surface MUST render from the executor's preview, never from this document.
|
|
19
|
+
*/
|
|
20
|
+
document?: {};
|
|
21
|
+
/**
|
|
22
|
+
* Number of pre-rotation commitments to publish. Omit to keep the current count. `0` is refused for a durable node identity (`vta/webvh/dids:preRotationRequired`).
|
|
23
|
+
*/
|
|
24
|
+
preRotationCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* New witness configuration. Omit to keep the current one.
|
|
27
|
+
*/
|
|
28
|
+
witnesses?: {
|
|
29
|
+
[k: string]: unknown | undefined;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* New watcher URLs. Omit to keep the current set; an empty array removes them.
|
|
33
|
+
*/
|
|
34
|
+
watchers?: string[];
|
|
35
|
+
/**
|
|
36
|
+
* New TTL in seconds. Omit to keep the current value.
|
|
37
|
+
*/
|
|
38
|
+
ttl?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Operator-facing audit label.
|
|
41
|
+
*/
|
|
42
|
+
label?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optimistic-concurrency precondition: the versionId the caller based this edit on. The agent MUST refuse the update if the DID's latest entry no longer matches. Without it a `get -> edit -> save` cycle silently overwrites a concurrent edit with a chain that is structurally valid, verifies perfectly, and is based on a stale read. Where a human approves the update the window is minutes wide, so this is a routine race rather than an exotic one. OPTIONAL because a scripted caller with no concurrent writers has nothing to protect against; not optional for anything a person looked at.
|
|
45
|
+
*/
|
|
46
|
+
expectedVersionId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Compute and return the preview without writing anything but the plan (CONVENTIONS.md §3.1). Absent reads as false.
|
|
49
|
+
*/
|
|
50
|
+
dryRun?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Apply exactly the plan a previous dry run of this same request returned; what an approval is bound to (CONVENTIONS.md §3.1–§3.2).
|
|
53
|
+
*/
|
|
54
|
+
previewId?: string;
|
|
55
|
+
ext?: Ext;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The outcome. `preview` and `pendingApproval` carry the plan; `applied` carries the published entry.
|
|
59
|
+
*/
|
|
60
|
+
export interface WebVHDIDUpdateResponsePayload {
|
|
61
|
+
did: string;
|
|
62
|
+
outcome: KeyRoleChangeOutcome;
|
|
63
|
+
preview?: DidDocumentPreview;
|
|
64
|
+
approvals?: KeyRoleApprovalState;
|
|
65
|
+
/**
|
|
66
|
+
* versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`.
|
|
67
|
+
*/
|
|
68
|
+
newVersionId?: string;
|
|
69
|
+
newScid?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The appended log entry, as JSON text.
|
|
72
|
+
*/
|
|
73
|
+
newLogEntry?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything.
|
|
76
|
+
*/
|
|
77
|
+
updateKeysCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Pre-rotation commitments published by this entry.
|
|
80
|
+
*/
|
|
81
|
+
preRotationKeyCount?: number;
|
|
82
|
+
/**
|
|
83
|
+
* True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`.
|
|
84
|
+
*/
|
|
85
|
+
serverless?: boolean;
|
|
86
|
+
ext?: Ext;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
90
|
+
export type { DidDocumentChange, DidDocumentPreview, DidVerificationRelationship, Ext, KeyRole, KeyRoleApprovalState, KeyRoleChangeOutcome, KeyType };
|
|
91
|
+
|
|
92
|
+
/** Trust Task type URI. */
|
|
93
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/update/2.0" as const;
|
|
94
|
+
|
|
95
|
+
/** Stable alias for this specification's request payload shape. */
|
|
96
|
+
export type Payload = WebVHDIDUpdatePayload;
|
|
97
|
+
|
|
98
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
99
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/webvh/dids/update/2.0#response" as const;
|
|
100
|
+
|
|
101
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
102
|
+
export type Response = WebVHDIDUpdateResponsePayload;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* This specification's payload schema, as a value.
|
|
106
|
+
*
|
|
107
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
108
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
109
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
110
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
111
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
112
|
+
*/
|
|
113
|
+
export const PAYLOAD_SCHEMA = {
|
|
114
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
115
|
+
"$id": "https://trusttasks.org/spec/vta/webvh/dids/update/2.0",
|
|
116
|
+
"title": "WebVH DID Update — payload",
|
|
117
|
+
"description": "Ask a Verifiable Trust Agent to publish a new entry in a did:webvh log it holds the update key for, changing anything but the DID's keys. Keys change only through the key-role tasks (vta/_shared/0.3/CONVENTIONS.md).",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"did"
|
|
122
|
+
],
|
|
123
|
+
"properties": {
|
|
124
|
+
"did": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"description": "The did:webvh being updated. The agent MUST verify it speaks for this subject."
|
|
128
|
+
},
|
|
129
|
+
"document": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"description": "The new DID document. Omit to leave it unchanged. It MUST carry, unchanged, the current `verificationMethod`, `authentication`, `assertionMethod`, `keyAgreement`, `capabilityInvocation`, `capabilityDelegation` and `keyRoles` members: a change to any of them is refused with `vta/webvh/dids/update:keyMembersManaged`, because keys change only through the key-role tasks. Appending the entry still rotates the DID's update key under pre-rotation, which a consent surface MUST render from the executor's preview, never from this document."
|
|
132
|
+
},
|
|
133
|
+
"preRotationCount": {
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"minimum": 0,
|
|
136
|
+
"description": "Number of pre-rotation commitments to publish. Omit to keep the current count. `0` is refused for a durable node identity (`vta/webvh/dids:preRotationRequired`)."
|
|
137
|
+
},
|
|
138
|
+
"witnesses": {
|
|
139
|
+
"description": "New witness configuration. Omit to keep the current one."
|
|
140
|
+
},
|
|
141
|
+
"watchers": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"items": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"description": "New watcher URLs. Omit to keep the current set; an empty array removes them."
|
|
147
|
+
},
|
|
148
|
+
"ttl": {
|
|
149
|
+
"type": "integer",
|
|
150
|
+
"minimum": 0,
|
|
151
|
+
"description": "New TTL in seconds. Omit to keep the current value."
|
|
152
|
+
},
|
|
153
|
+
"label": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"maxLength": 256,
|
|
156
|
+
"description": "Operator-facing audit label."
|
|
157
|
+
},
|
|
158
|
+
"expectedVersionId": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"minLength": 1,
|
|
161
|
+
"description": "Optimistic-concurrency precondition: the versionId the caller based this edit on. The agent MUST refuse the update if the DID's latest entry no longer matches. Without it a `get -> edit -> save` cycle silently overwrites a concurrent edit with a chain that is structurally valid, verifies perfectly, and is based on a stale read. Where a human approves the update the window is minutes wide, so this is a routine race rather than an exotic one. OPTIONAL because a scripted caller with no concurrent writers has nothing to protect against; not optional for anything a person looked at."
|
|
162
|
+
},
|
|
163
|
+
"dryRun": {
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"description": "Compute and return the preview without writing anything but the plan (CONVENTIONS.md §3.1). Absent reads as false."
|
|
166
|
+
},
|
|
167
|
+
"previewId": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 16,
|
|
170
|
+
"description": "Apply exactly the plan a previous dry run of this same request returned; what an approval is bound to (CONVENTIONS.md §3.1–§3.2)."
|
|
171
|
+
},
|
|
172
|
+
"ext": {
|
|
173
|
+
"$ref": "#/$defs/Ext"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"$defs": {
|
|
177
|
+
"Response": {
|
|
178
|
+
"$anchor": "response",
|
|
179
|
+
"title": "WebVH DID Update — response payload",
|
|
180
|
+
"description": "The outcome. `preview` and `pendingApproval` carry the plan; `applied` carries the published entry.",
|
|
181
|
+
"type": "object",
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"required": [
|
|
184
|
+
"did",
|
|
185
|
+
"outcome"
|
|
186
|
+
],
|
|
187
|
+
"properties": {
|
|
188
|
+
"did": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"outcome": {
|
|
192
|
+
"$ref": "#/$defs/KeyRoleChangeOutcome"
|
|
193
|
+
},
|
|
194
|
+
"preview": {
|
|
195
|
+
"$ref": "#/$defs/DidDocumentPreview"
|
|
196
|
+
},
|
|
197
|
+
"approvals": {
|
|
198
|
+
"$ref": "#/$defs/KeyRoleApprovalState"
|
|
199
|
+
},
|
|
200
|
+
"newVersionId": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`."
|
|
203
|
+
},
|
|
204
|
+
"newScid": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"newLogEntry": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "The appended log entry, as JSON text."
|
|
210
|
+
},
|
|
211
|
+
"updateKeysCount": {
|
|
212
|
+
"type": "integer",
|
|
213
|
+
"minimum": 0,
|
|
214
|
+
"description": "Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything."
|
|
215
|
+
},
|
|
216
|
+
"preRotationKeyCount": {
|
|
217
|
+
"type": "integer",
|
|
218
|
+
"minimum": 0,
|
|
219
|
+
"description": "Pre-rotation commitments published by this entry."
|
|
220
|
+
},
|
|
221
|
+
"serverless": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"description": "True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`."
|
|
224
|
+
},
|
|
225
|
+
"ext": {
|
|
226
|
+
"$ref": "#/$defs/Ext"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"Ext": {
|
|
231
|
+
"title": "Ext",
|
|
232
|
+
"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.",
|
|
233
|
+
"type": "object",
|
|
234
|
+
"minProperties": 1,
|
|
235
|
+
"additionalProperties": true,
|
|
236
|
+
"propertyNames": {
|
|
237
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"KeyRoleApprovalState": {
|
|
241
|
+
"title": "KeyRoleApprovalState",
|
|
242
|
+
"type": "object",
|
|
243
|
+
"additionalProperties": false,
|
|
244
|
+
"required": [
|
|
245
|
+
"required",
|
|
246
|
+
"received",
|
|
247
|
+
"expiresAt"
|
|
248
|
+
],
|
|
249
|
+
"description": "Approval progress of a change the VTA's policy gates on more than one approval (CONVENTIONS.md §3.3).",
|
|
250
|
+
"properties": {
|
|
251
|
+
"required": {
|
|
252
|
+
"type": "integer",
|
|
253
|
+
"minimum": 1,
|
|
254
|
+
"description": "Distinct approvals the VTA's policy requires."
|
|
255
|
+
},
|
|
256
|
+
"received": {
|
|
257
|
+
"type": "integer",
|
|
258
|
+
"minimum": 0,
|
|
259
|
+
"description": "Distinct approvals recorded so far, including the initiator's own."
|
|
260
|
+
},
|
|
261
|
+
"approvers": {
|
|
262
|
+
"type": "array",
|
|
263
|
+
"items": {
|
|
264
|
+
"type": "string"
|
|
265
|
+
},
|
|
266
|
+
"uniqueItems": true,
|
|
267
|
+
"description": "VIDs whose approvals were recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
|
|
268
|
+
},
|
|
269
|
+
"expiresAt": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"format": "date-time",
|
|
272
|
+
"description": "When the preview, and every approval bound to it, stops being usable."
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"DidDocumentPreview": {
|
|
277
|
+
"title": "DidDocumentPreview",
|
|
278
|
+
"type": "object",
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"required": [
|
|
281
|
+
"previewId",
|
|
282
|
+
"baseVersionId",
|
|
283
|
+
"expiresAt",
|
|
284
|
+
"changes",
|
|
285
|
+
"document",
|
|
286
|
+
"updateKeyRotates"
|
|
287
|
+
],
|
|
288
|
+
"description": "What a change would publish, computed by the VTA by running the handler it would run to apply it, and nothing else (CONVENTIONS.md §3.1). This is what a consent surface renders and what an approval is bound to.",
|
|
289
|
+
"properties": {
|
|
290
|
+
"previewId": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"minLength": 16,
|
|
293
|
+
"description": "Opaque, unguessable identifier for this exact plan. Carried back by the apply request, and the thing every approval is bound to."
|
|
294
|
+
},
|
|
295
|
+
"baseVersionId": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"description": "versionId of the log entry the plan was computed against. The plan is void once the log moves past it."
|
|
298
|
+
},
|
|
299
|
+
"expiresAt": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"format": "date-time"
|
|
302
|
+
},
|
|
303
|
+
"changes": {
|
|
304
|
+
"type": "array",
|
|
305
|
+
"items": {
|
|
306
|
+
"$ref": "#/$defs/DidDocumentChange"
|
|
307
|
+
},
|
|
308
|
+
"description": "Every change the entry would make, including the ones the caller did not ask for — in particular `rotateUpdateKey`, which accompanies every entry appended under pre-rotation."
|
|
309
|
+
},
|
|
310
|
+
"document": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"description": "The complete DID document the entry would publish. Public data by construction; no key material beyond public halves."
|
|
313
|
+
},
|
|
314
|
+
"warnings": {
|
|
315
|
+
"type": "array",
|
|
316
|
+
"items": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"enum": [
|
|
319
|
+
"preRotationDisabled",
|
|
320
|
+
"singleKeyRole",
|
|
321
|
+
"algorithmNotInAcceptedSet",
|
|
322
|
+
"roleWillHaveNoClassicalKey",
|
|
323
|
+
"attestationReissuanceRequired",
|
|
324
|
+
"serverless"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"uniqueItems": true,
|
|
328
|
+
"description": "Conditions a human should be shown before approving. `preRotationDisabled` — the entry leaves no committed successor, so a later update-key compromise can only end in deactivation. `singleKeyRole` — the role will hold one active key, so its next compromise empties it until replaced. `algorithmNotInAcceptedSet` — a verifier population the VTA knows of does not accept the new key's algorithm. `roleWillHaveNoClassicalKey` — every remaining key is post-quantum, which verifiers without post-quantum support cannot check. `attestationReissuanceRequired` — revoking this `attestation` key obliges the node to re-issue every attestation artefact still in force and re-sign every status list (VTI-KEY-133). `serverless` — the VTA will not publish the entry; the operator must."
|
|
329
|
+
},
|
|
330
|
+
"updateKeyRotates": {
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"description": "True when appending this entry also moves the DID's update key to a committed successor. Stated as its own member, not left to be found in `changes`, because it is the consequence a reviewer most often misses."
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"DidDocumentChange": {
|
|
337
|
+
"title": "DidDocumentChange",
|
|
338
|
+
"type": "object",
|
|
339
|
+
"additionalProperties": false,
|
|
340
|
+
"required": [
|
|
341
|
+
"op",
|
|
342
|
+
"role"
|
|
343
|
+
],
|
|
344
|
+
"properties": {
|
|
345
|
+
"op": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"enum": [
|
|
348
|
+
"addKey",
|
|
349
|
+
"retireKey",
|
|
350
|
+
"revokeKey",
|
|
351
|
+
"rotateUpdateKey",
|
|
352
|
+
"setPreRotation"
|
|
353
|
+
],
|
|
354
|
+
"description": "`addKey` — a verification method is added, listed in its role's relationship and in `keyRoles`. `retireKey` — a verification method leaves its relationship, `keyRoles` and the document. `revokeKey` — a verification method leaves its relationship and `keyRoles`, and the compromise is recorded (CONVENTIONS.md §7). `rotateUpdateKey` — the log's update key moves to a committed successor. `setPreRotation` — the number of successors committed changes."
|
|
355
|
+
},
|
|
356
|
+
"role": {
|
|
357
|
+
"$ref": "#/$defs/KeyRole"
|
|
358
|
+
},
|
|
359
|
+
"verificationMethod": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
"keyType": {
|
|
363
|
+
"$ref": "#/$defs/KeyType"
|
|
364
|
+
},
|
|
365
|
+
"publicKeyMultibase": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"relationships": {
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"$ref": "#/$defs/DidVerificationRelationship"
|
|
372
|
+
},
|
|
373
|
+
"uniqueItems": true
|
|
374
|
+
},
|
|
375
|
+
"preRotationCount": {
|
|
376
|
+
"type": "integer",
|
|
377
|
+
"minimum": 0
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"DidVerificationRelationship": {
|
|
382
|
+
"title": "DidVerificationRelationship",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"enum": [
|
|
385
|
+
"authentication",
|
|
386
|
+
"assertionMethod",
|
|
387
|
+
"keyAgreement",
|
|
388
|
+
"capabilityInvocation",
|
|
389
|
+
"capabilityDelegation"
|
|
390
|
+
],
|
|
391
|
+
"description": "A DID Core verification relationship."
|
|
392
|
+
},
|
|
393
|
+
"KeyRole": {
|
|
394
|
+
"title": "KeyRole",
|
|
395
|
+
"type": "string",
|
|
396
|
+
"enum": [
|
|
397
|
+
"attestation",
|
|
398
|
+
"operational",
|
|
399
|
+
"messaging",
|
|
400
|
+
"update"
|
|
401
|
+
],
|
|
402
|
+
"description": "The named key role a key occupies in the DID (VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the DID's attestation artefacts (membership and role credentials, endorsements, status lists, every other credential the node issues), through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP message signatures, invitations, notices, audit checkpoints) with proof purpose `authentication`. `messaging` — the only keys in `keyAgreement`; sign nothing. `update` — the keys that authorize appending to the DID's log (a did:webvh `updateKeys` entry) and the pre-rotation commitments that authorize the next ones; never a verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075); both are reserved for a future role. The mapping is normative and is set out in CONVENTIONS.md §1. The set is an extensible registry and growing it is a MINOR change: a consumer that receives a role it does not implement MUST refuse the document rather than map the key onto a role it does know."
|
|
403
|
+
},
|
|
404
|
+
"KeyType": {
|
|
405
|
+
"title": "KeyType",
|
|
406
|
+
"type": "string",
|
|
407
|
+
"enum": [
|
|
408
|
+
"ed25519",
|
|
409
|
+
"x25519",
|
|
410
|
+
"p256",
|
|
411
|
+
"mldsa44",
|
|
412
|
+
"mldsa65"
|
|
413
|
+
],
|
|
414
|
+
"description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
|
|
415
|
+
},
|
|
416
|
+
"KeyRoleChangeOutcome": {
|
|
417
|
+
"title": "KeyRoleChangeOutcome",
|
|
418
|
+
"type": "string",
|
|
419
|
+
"enum": [
|
|
420
|
+
"preview",
|
|
421
|
+
"applied",
|
|
422
|
+
"pendingApproval"
|
|
423
|
+
],
|
|
424
|
+
"description": "`preview` — nothing was written; the response carries the plan. `applied` — the entry was appended (and published, unless `serverless`). `pendingApproval` — the plan is recorded and awaits further approvals; nothing is published until they arrive (CONVENTIONS.md §3.3)."
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
} as const;
|
|
428
|
+
|
|
429
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
430
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
431
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
432
|
+
"$ref": "#/$defs/Response",
|
|
433
|
+
"$defs": {
|
|
434
|
+
"Response": {
|
|
435
|
+
"$anchor": "response",
|
|
436
|
+
"title": "WebVH DID Update — response payload",
|
|
437
|
+
"description": "The outcome. `preview` and `pendingApproval` carry the plan; `applied` carries the published entry.",
|
|
438
|
+
"type": "object",
|
|
439
|
+
"additionalProperties": false,
|
|
440
|
+
"required": [
|
|
441
|
+
"did",
|
|
442
|
+
"outcome"
|
|
443
|
+
],
|
|
444
|
+
"properties": {
|
|
445
|
+
"did": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"outcome": {
|
|
449
|
+
"$ref": "#/$defs/KeyRoleChangeOutcome"
|
|
450
|
+
},
|
|
451
|
+
"preview": {
|
|
452
|
+
"$ref": "#/$defs/DidDocumentPreview"
|
|
453
|
+
},
|
|
454
|
+
"approvals": {
|
|
455
|
+
"$ref": "#/$defs/KeyRoleApprovalState"
|
|
456
|
+
},
|
|
457
|
+
"newVersionId": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"description": "versionId of the entry just appended. A caller intending a further edit SHOULD pass this back as the next request's `expectedVersionId`."
|
|
460
|
+
},
|
|
461
|
+
"newScid": {
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
"newLogEntry": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"description": "The appended log entry, as JSON text."
|
|
467
|
+
},
|
|
468
|
+
"updateKeysCount": {
|
|
469
|
+
"type": "integer",
|
|
470
|
+
"minimum": 0,
|
|
471
|
+
"description": "Update keys authorized AFTER this entry. Where `document` was supplied these are new keys — the previous ones no longer authorize anything."
|
|
472
|
+
},
|
|
473
|
+
"preRotationKeyCount": {
|
|
474
|
+
"type": "integer",
|
|
475
|
+
"minimum": 0,
|
|
476
|
+
"description": "Pre-rotation commitments published by this entry."
|
|
477
|
+
},
|
|
478
|
+
"serverless": {
|
|
479
|
+
"type": "boolean",
|
|
480
|
+
"description": "True when the agent holds the log itself and no hosting server was published to — the operator must fetch and redeploy `did.jsonl`."
|
|
481
|
+
},
|
|
482
|
+
"ext": {
|
|
483
|
+
"$ref": "#/$defs/Ext"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"Ext": {
|
|
488
|
+
"title": "Ext",
|
|
489
|
+
"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.",
|
|
490
|
+
"type": "object",
|
|
491
|
+
"minProperties": 1,
|
|
492
|
+
"additionalProperties": true,
|
|
493
|
+
"propertyNames": {
|
|
494
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"KeyRoleApprovalState": {
|
|
498
|
+
"title": "KeyRoleApprovalState",
|
|
499
|
+
"type": "object",
|
|
500
|
+
"additionalProperties": false,
|
|
501
|
+
"required": [
|
|
502
|
+
"required",
|
|
503
|
+
"received",
|
|
504
|
+
"expiresAt"
|
|
505
|
+
],
|
|
506
|
+
"description": "Approval progress of a change the VTA's policy gates on more than one approval (CONVENTIONS.md §3.3).",
|
|
507
|
+
"properties": {
|
|
508
|
+
"required": {
|
|
509
|
+
"type": "integer",
|
|
510
|
+
"minimum": 1,
|
|
511
|
+
"description": "Distinct approvals the VTA's policy requires."
|
|
512
|
+
},
|
|
513
|
+
"received": {
|
|
514
|
+
"type": "integer",
|
|
515
|
+
"minimum": 0,
|
|
516
|
+
"description": "Distinct approvals recorded so far, including the initiator's own."
|
|
517
|
+
},
|
|
518
|
+
"approvers": {
|
|
519
|
+
"type": "array",
|
|
520
|
+
"items": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"uniqueItems": true,
|
|
524
|
+
"description": "VIDs whose approvals were recorded. Custody projection only; omitted from a response to anyone who is not themselves an eligible approver of this change."
|
|
525
|
+
},
|
|
526
|
+
"expiresAt": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"format": "date-time",
|
|
529
|
+
"description": "When the preview, and every approval bound to it, stops being usable."
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"DidDocumentPreview": {
|
|
534
|
+
"title": "DidDocumentPreview",
|
|
535
|
+
"type": "object",
|
|
536
|
+
"additionalProperties": false,
|
|
537
|
+
"required": [
|
|
538
|
+
"previewId",
|
|
539
|
+
"baseVersionId",
|
|
540
|
+
"expiresAt",
|
|
541
|
+
"changes",
|
|
542
|
+
"document",
|
|
543
|
+
"updateKeyRotates"
|
|
544
|
+
],
|
|
545
|
+
"description": "What a change would publish, computed by the VTA by running the handler it would run to apply it, and nothing else (CONVENTIONS.md §3.1). This is what a consent surface renders and what an approval is bound to.",
|
|
546
|
+
"properties": {
|
|
547
|
+
"previewId": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"minLength": 16,
|
|
550
|
+
"description": "Opaque, unguessable identifier for this exact plan. Carried back by the apply request, and the thing every approval is bound to."
|
|
551
|
+
},
|
|
552
|
+
"baseVersionId": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"description": "versionId of the log entry the plan was computed against. The plan is void once the log moves past it."
|
|
555
|
+
},
|
|
556
|
+
"expiresAt": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"format": "date-time"
|
|
559
|
+
},
|
|
560
|
+
"changes": {
|
|
561
|
+
"type": "array",
|
|
562
|
+
"items": {
|
|
563
|
+
"$ref": "#/$defs/DidDocumentChange"
|
|
564
|
+
},
|
|
565
|
+
"description": "Every change the entry would make, including the ones the caller did not ask for — in particular `rotateUpdateKey`, which accompanies every entry appended under pre-rotation."
|
|
566
|
+
},
|
|
567
|
+
"document": {
|
|
568
|
+
"type": "object",
|
|
569
|
+
"description": "The complete DID document the entry would publish. Public data by construction; no key material beyond public halves."
|
|
570
|
+
},
|
|
571
|
+
"warnings": {
|
|
572
|
+
"type": "array",
|
|
573
|
+
"items": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"enum": [
|
|
576
|
+
"preRotationDisabled",
|
|
577
|
+
"singleKeyRole",
|
|
578
|
+
"algorithmNotInAcceptedSet",
|
|
579
|
+
"roleWillHaveNoClassicalKey",
|
|
580
|
+
"attestationReissuanceRequired",
|
|
581
|
+
"serverless"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
"uniqueItems": true,
|
|
585
|
+
"description": "Conditions a human should be shown before approving. `preRotationDisabled` — the entry leaves no committed successor, so a later update-key compromise can only end in deactivation. `singleKeyRole` — the role will hold one active key, so its next compromise empties it until replaced. `algorithmNotInAcceptedSet` — a verifier population the VTA knows of does not accept the new key's algorithm. `roleWillHaveNoClassicalKey` — every remaining key is post-quantum, which verifiers without post-quantum support cannot check. `attestationReissuanceRequired` — revoking this `attestation` key obliges the node to re-issue every attestation artefact still in force and re-sign every status list (VTI-KEY-133). `serverless` — the VTA will not publish the entry; the operator must."
|
|
586
|
+
},
|
|
587
|
+
"updateKeyRotates": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"description": "True when appending this entry also moves the DID's update key to a committed successor. Stated as its own member, not left to be found in `changes`, because it is the consequence a reviewer most often misses."
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"DidDocumentChange": {
|
|
594
|
+
"title": "DidDocumentChange",
|
|
595
|
+
"type": "object",
|
|
596
|
+
"additionalProperties": false,
|
|
597
|
+
"required": [
|
|
598
|
+
"op",
|
|
599
|
+
"role"
|
|
600
|
+
],
|
|
601
|
+
"properties": {
|
|
602
|
+
"op": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"enum": [
|
|
605
|
+
"addKey",
|
|
606
|
+
"retireKey",
|
|
607
|
+
"revokeKey",
|
|
608
|
+
"rotateUpdateKey",
|
|
609
|
+
"setPreRotation"
|
|
610
|
+
],
|
|
611
|
+
"description": "`addKey` — a verification method is added, listed in its role's relationship and in `keyRoles`. `retireKey` — a verification method leaves its relationship, `keyRoles` and the document. `revokeKey` — a verification method leaves its relationship and `keyRoles`, and the compromise is recorded (CONVENTIONS.md §7). `rotateUpdateKey` — the log's update key moves to a committed successor. `setPreRotation` — the number of successors committed changes."
|
|
612
|
+
},
|
|
613
|
+
"role": {
|
|
614
|
+
"$ref": "#/$defs/KeyRole"
|
|
615
|
+
},
|
|
616
|
+
"verificationMethod": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"keyType": {
|
|
620
|
+
"$ref": "#/$defs/KeyType"
|
|
621
|
+
},
|
|
622
|
+
"publicKeyMultibase": {
|
|
623
|
+
"type": "string"
|
|
624
|
+
},
|
|
625
|
+
"relationships": {
|
|
626
|
+
"type": "array",
|
|
627
|
+
"items": {
|
|
628
|
+
"$ref": "#/$defs/DidVerificationRelationship"
|
|
629
|
+
},
|
|
630
|
+
"uniqueItems": true
|
|
631
|
+
},
|
|
632
|
+
"preRotationCount": {
|
|
633
|
+
"type": "integer",
|
|
634
|
+
"minimum": 0
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"DidVerificationRelationship": {
|
|
639
|
+
"title": "DidVerificationRelationship",
|
|
640
|
+
"type": "string",
|
|
641
|
+
"enum": [
|
|
642
|
+
"authentication",
|
|
643
|
+
"assertionMethod",
|
|
644
|
+
"keyAgreement",
|
|
645
|
+
"capabilityInvocation",
|
|
646
|
+
"capabilityDelegation"
|
|
647
|
+
],
|
|
648
|
+
"description": "A DID Core verification relationship."
|
|
649
|
+
},
|
|
650
|
+
"KeyRole": {
|
|
651
|
+
"title": "KeyRole",
|
|
652
|
+
"type": "string",
|
|
653
|
+
"enum": [
|
|
654
|
+
"attestation",
|
|
655
|
+
"operational",
|
|
656
|
+
"messaging",
|
|
657
|
+
"update"
|
|
658
|
+
],
|
|
659
|
+
"description": "The named key role a key occupies in the DID (VTI-KEY-070 onward). `attestation` — the only keys in `assertionMethod`; sign the DID's attestation artefacts (membership and role credentials, endorsements, status lists, every other credential the node issues), through the VTA's signing service and nowhere else. Generated inside the VTA, never derived, never exportable, never in a backup. `operational` — the only keys in `authentication`; sign the node's own traffic (Trust Task requests and responses, DIDComm and TSP message signatures, invitations, notices, audit checkpoints) with proof purpose `authentication`. `messaging` — the only keys in `keyAgreement`; sign nothing. `update` — the keys that authorize appending to the DID's log (a did:webvh `updateKeys` entry) and the pre-rotation commitments that authorize the next ones; never a verification method, never in `keyRoles`. Generated inside the VTA, never derived, never exportable, never in a backup. No role permits `capabilityInvocation` or `capabilityDelegation` (VTI-KEY-075); both are reserved for a future role. The mapping is normative and is set out in CONVENTIONS.md §1. The set is an extensible registry and growing it is a MINOR change: a consumer that receives a role it does not implement MUST refuse the document rather than map the key onto a role it does know."
|
|
660
|
+
},
|
|
661
|
+
"KeyType": {
|
|
662
|
+
"title": "KeyType",
|
|
663
|
+
"type": "string",
|
|
664
|
+
"enum": [
|
|
665
|
+
"ed25519",
|
|
666
|
+
"x25519",
|
|
667
|
+
"p256",
|
|
668
|
+
"mldsa44",
|
|
669
|
+
"mldsa65"
|
|
670
|
+
],
|
|
671
|
+
"description": "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support."
|
|
672
|
+
},
|
|
673
|
+
"KeyRoleChangeOutcome": {
|
|
674
|
+
"title": "KeyRoleChangeOutcome",
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"preview",
|
|
678
|
+
"applied",
|
|
679
|
+
"pendingApproval"
|
|
680
|
+
],
|
|
681
|
+
"description": "`preview` — nothing was written; the response carries the plan. `applied` — the entry was appended (and published, unless `serverless`). `pendingApproval` — the plan is recorded and awaits further approvals; nothing is published until they arrive (CONVENTIONS.md §3.3)."
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
} as const;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
688
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
689
|
+
* per-specification and cannot be derived from the document alone, and
|
|
690
|
+
* item 2 needs the schema this carries.
|
|
691
|
+
*/
|
|
692
|
+
export const SPEC = {
|
|
693
|
+
typeUri: TYPE_URI,
|
|
694
|
+
isBearer: false,
|
|
695
|
+
isProofRequired: true,
|
|
696
|
+
isRecipientRequired: true,
|
|
697
|
+
isIssuedAtRequired: true,
|
|
698
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
699
|
+
} as const;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
703
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
704
|
+
* parties (§7.3 item 5).
|
|
705
|
+
*/
|
|
706
|
+
export const RESPONSE_SPEC = {
|
|
707
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
708
|
+
isBearer: false,
|
|
709
|
+
isProofRequired: true,
|
|
710
|
+
isRecipientRequired: true,
|
|
711
|
+
isIssuedAtRequired: true,
|
|
712
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
713
|
+
} as const;
|