@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,357 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/credentials/reissue/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Ask a VTC to re-sign its status lists and re-issue the attestation artefacts still in force that an attestation key revoked for compromise signed, under the community's current attestation key. Re-sending the same request returns the progress of the job it started.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCCredentialsReissuePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The revocation that requires re-issuance. The VTC MUST verify it against its own DID's key roles (vta/webvh/dids/keys/list) rather than trust it.
|
|
15
|
+
*/
|
|
16
|
+
cause: {
|
|
17
|
+
/**
|
|
18
|
+
* The attestation key of the community's DID that was revoked for compromise.
|
|
19
|
+
*/
|
|
20
|
+
verificationMethod: string;
|
|
21
|
+
/**
|
|
22
|
+
* The VTA's rotation record (`kind: compromise`) for the revocation, when known.
|
|
23
|
+
*/
|
|
24
|
+
rotationId?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* `all` (the default) re-signs status lists first and then re-issues artefacts. `statusListsOnly` re-signs status lists and stops — for an operator who must restore status checking within minutes and schedule the rest.
|
|
28
|
+
*/
|
|
29
|
+
scope?: "all" | "statusListsOnly";
|
|
30
|
+
/**
|
|
31
|
+
* Report what would be re-signed and re-issued, without doing it. Absent reads as false.
|
|
32
|
+
*/
|
|
33
|
+
dryRun?: boolean;
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.
|
|
38
|
+
*/
|
|
39
|
+
export interface VTCCredentialsReissueResponsePayload {
|
|
40
|
+
/**
|
|
41
|
+
* The job this cause started. The same cause always names the same job.
|
|
42
|
+
*/
|
|
43
|
+
jobId: string;
|
|
44
|
+
/**
|
|
45
|
+
* `planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where.
|
|
46
|
+
*/
|
|
47
|
+
state: "planned" | "running" | "statusListsDone" | "completed" | "failed";
|
|
48
|
+
dryRun: boolean;
|
|
49
|
+
statusLists: ReissueProgress;
|
|
50
|
+
artefacts: ReissueProgress;
|
|
51
|
+
/**
|
|
52
|
+
* The attestation keys (verification methods) the new signatures are made with.
|
|
53
|
+
*/
|
|
54
|
+
signedWith?: string[];
|
|
55
|
+
ext?: Ext;
|
|
56
|
+
}
|
|
57
|
+
export interface ReissueProgress {
|
|
58
|
+
total: number;
|
|
59
|
+
done: number;
|
|
60
|
+
failed: number;
|
|
61
|
+
/**
|
|
62
|
+
* Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact.
|
|
63
|
+
*/
|
|
64
|
+
undeliverable?: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
68
|
+
export type { Ext };
|
|
69
|
+
|
|
70
|
+
/** Trust Task type URI. */
|
|
71
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/credentials/reissue/0.1" as const;
|
|
72
|
+
|
|
73
|
+
/** Stable alias for this specification's request payload shape. */
|
|
74
|
+
export type Payload = VTCCredentialsReissuePayload;
|
|
75
|
+
|
|
76
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
77
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response" as const;
|
|
78
|
+
|
|
79
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
80
|
+
export type Response = VTCCredentialsReissueResponsePayload;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* This specification's payload schema, as a value.
|
|
84
|
+
*
|
|
85
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
86
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
87
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
88
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
89
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
90
|
+
*/
|
|
91
|
+
export const PAYLOAD_SCHEMA = {
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"$id": "https://trusttasks.org/spec/vtc/credentials/reissue/0.1",
|
|
94
|
+
"title": "VTC Credentials Reissue — payload",
|
|
95
|
+
"description": "Ask a VTC to re-sign its status lists and re-issue the attestation artefacts still in force that an attestation key revoked for compromise signed, under the community's current attestation key. Re-sending the same request returns the progress of the job it started.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"cause"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"cause": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": [
|
|
106
|
+
"verificationMethod"
|
|
107
|
+
],
|
|
108
|
+
"description": "The revocation that requires re-issuance. The VTC MUST verify it against its own DID's key roles (vta/webvh/dids/keys/list) rather than trust it.",
|
|
109
|
+
"properties": {
|
|
110
|
+
"verificationMethod": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1,
|
|
113
|
+
"description": "The attestation key of the community's DID that was revoked for compromise."
|
|
114
|
+
},
|
|
115
|
+
"rotationId": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"description": "The VTA's rotation record (`kind: compromise`) for the revocation, when known."
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"scope": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": [
|
|
125
|
+
"all",
|
|
126
|
+
"statusListsOnly"
|
|
127
|
+
],
|
|
128
|
+
"description": "`all` (the default) re-signs status lists first and then re-issues artefacts. `statusListsOnly` re-signs status lists and stops — for an operator who must restore status checking within minutes and schedule the rest."
|
|
129
|
+
},
|
|
130
|
+
"dryRun": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"description": "Report what would be re-signed and re-issued, without doing it. Absent reads as false."
|
|
133
|
+
},
|
|
134
|
+
"ext": {
|
|
135
|
+
"$ref": "#/$defs/Ext"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"$defs": {
|
|
139
|
+
"Response": {
|
|
140
|
+
"$anchor": "response",
|
|
141
|
+
"title": "VTC Credentials Reissue — response payload",
|
|
142
|
+
"description": "Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.",
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": [
|
|
146
|
+
"jobId",
|
|
147
|
+
"state",
|
|
148
|
+
"dryRun",
|
|
149
|
+
"statusLists",
|
|
150
|
+
"artefacts"
|
|
151
|
+
],
|
|
152
|
+
"properties": {
|
|
153
|
+
"jobId": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1,
|
|
156
|
+
"description": "The job this cause started. The same cause always names the same job."
|
|
157
|
+
},
|
|
158
|
+
"state": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"enum": [
|
|
161
|
+
"planned",
|
|
162
|
+
"running",
|
|
163
|
+
"statusListsDone",
|
|
164
|
+
"completed",
|
|
165
|
+
"failed"
|
|
166
|
+
],
|
|
167
|
+
"description": "`planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where."
|
|
168
|
+
},
|
|
169
|
+
"dryRun": {
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
"statusLists": {
|
|
173
|
+
"$ref": "#/$defs/Progress"
|
|
174
|
+
},
|
|
175
|
+
"artefacts": {
|
|
176
|
+
"$ref": "#/$defs/Progress"
|
|
177
|
+
},
|
|
178
|
+
"signedWith": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"items": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"description": "The attestation keys (verification methods) the new signatures are made with."
|
|
184
|
+
},
|
|
185
|
+
"ext": {
|
|
186
|
+
"$ref": "#/$defs/Ext"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"Progress": {
|
|
191
|
+
"title": "ReissueProgress",
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": [
|
|
195
|
+
"total",
|
|
196
|
+
"done",
|
|
197
|
+
"failed"
|
|
198
|
+
],
|
|
199
|
+
"properties": {
|
|
200
|
+
"total": {
|
|
201
|
+
"type": "integer",
|
|
202
|
+
"minimum": 0
|
|
203
|
+
},
|
|
204
|
+
"done": {
|
|
205
|
+
"type": "integer",
|
|
206
|
+
"minimum": 0
|
|
207
|
+
},
|
|
208
|
+
"failed": {
|
|
209
|
+
"type": "integer",
|
|
210
|
+
"minimum": 0
|
|
211
|
+
},
|
|
212
|
+
"undeliverable": {
|
|
213
|
+
"type": "integer",
|
|
214
|
+
"minimum": 0,
|
|
215
|
+
"description": "Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact."
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"Ext": {
|
|
220
|
+
"title": "Ext",
|
|
221
|
+
"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.",
|
|
222
|
+
"type": "object",
|
|
223
|
+
"minProperties": 1,
|
|
224
|
+
"additionalProperties": true,
|
|
225
|
+
"propertyNames": {
|
|
226
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
} as const;
|
|
231
|
+
|
|
232
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
233
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
234
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
235
|
+
"$ref": "#/$defs/Response",
|
|
236
|
+
"$defs": {
|
|
237
|
+
"Response": {
|
|
238
|
+
"$anchor": "response",
|
|
239
|
+
"title": "VTC Credentials Reissue — response payload",
|
|
240
|
+
"description": "Success response. Type https://trusttasks.org/spec/vtc/credentials/reissue/0.1#response. Counts only — never a list of members or credentials.",
|
|
241
|
+
"type": "object",
|
|
242
|
+
"additionalProperties": false,
|
|
243
|
+
"required": [
|
|
244
|
+
"jobId",
|
|
245
|
+
"state",
|
|
246
|
+
"dryRun",
|
|
247
|
+
"statusLists",
|
|
248
|
+
"artefacts"
|
|
249
|
+
],
|
|
250
|
+
"properties": {
|
|
251
|
+
"jobId": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"minLength": 1,
|
|
254
|
+
"description": "The job this cause started. The same cause always names the same job."
|
|
255
|
+
},
|
|
256
|
+
"state": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"enum": [
|
|
259
|
+
"planned",
|
|
260
|
+
"running",
|
|
261
|
+
"statusListsDone",
|
|
262
|
+
"completed",
|
|
263
|
+
"failed"
|
|
264
|
+
],
|
|
265
|
+
"description": "`planned` — a dry run. `running` — status lists are being re-signed. `statusListsDone` — every status list is re-signed; artefacts are being re-issued (or, for `statusListsOnly`, the job is done). `completed` — everything in scope is re-signed and re-issued. `failed` — the job stopped; `artefacts.failed` and the audit trail say where."
|
|
266
|
+
},
|
|
267
|
+
"dryRun": {
|
|
268
|
+
"type": "boolean"
|
|
269
|
+
},
|
|
270
|
+
"statusLists": {
|
|
271
|
+
"$ref": "#/$defs/Progress"
|
|
272
|
+
},
|
|
273
|
+
"artefacts": {
|
|
274
|
+
"$ref": "#/$defs/Progress"
|
|
275
|
+
},
|
|
276
|
+
"signedWith": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
},
|
|
281
|
+
"description": "The attestation keys (verification methods) the new signatures are made with."
|
|
282
|
+
},
|
|
283
|
+
"ext": {
|
|
284
|
+
"$ref": "#/$defs/Ext"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"Progress": {
|
|
289
|
+
"title": "ReissueProgress",
|
|
290
|
+
"type": "object",
|
|
291
|
+
"additionalProperties": false,
|
|
292
|
+
"required": [
|
|
293
|
+
"total",
|
|
294
|
+
"done",
|
|
295
|
+
"failed"
|
|
296
|
+
],
|
|
297
|
+
"properties": {
|
|
298
|
+
"total": {
|
|
299
|
+
"type": "integer",
|
|
300
|
+
"minimum": 0
|
|
301
|
+
},
|
|
302
|
+
"done": {
|
|
303
|
+
"type": "integer",
|
|
304
|
+
"minimum": 0
|
|
305
|
+
},
|
|
306
|
+
"failed": {
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"minimum": 0
|
|
309
|
+
},
|
|
310
|
+
"undeliverable": {
|
|
311
|
+
"type": "integer",
|
|
312
|
+
"minimum": 0,
|
|
313
|
+
"description": "Artefacts re-issued but not yet delivered to their holder — the holder is offline or unreachable. They are held for the holder's next renewal or contact."
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"Ext": {
|
|
318
|
+
"title": "Ext",
|
|
319
|
+
"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.",
|
|
320
|
+
"type": "object",
|
|
321
|
+
"minProperties": 1,
|
|
322
|
+
"additionalProperties": true,
|
|
323
|
+
"propertyNames": {
|
|
324
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
} as const;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
332
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
333
|
+
* per-specification and cannot be derived from the document alone, and
|
|
334
|
+
* item 2 needs the schema this carries.
|
|
335
|
+
*/
|
|
336
|
+
export const SPEC = {
|
|
337
|
+
typeUri: TYPE_URI,
|
|
338
|
+
isBearer: false,
|
|
339
|
+
isProofRequired: true,
|
|
340
|
+
isRecipientRequired: true,
|
|
341
|
+
isIssuedAtRequired: true,
|
|
342
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
343
|
+
} as const;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
347
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
348
|
+
* parties (§7.3 item 5).
|
|
349
|
+
*/
|
|
350
|
+
export const RESPONSE_SPEC = {
|
|
351
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
352
|
+
isBearer: false,
|
|
353
|
+
isProofRequired: true,
|
|
354
|
+
isRecipientRequired: true,
|
|
355
|
+
isIssuedAtRequired: true,
|
|
356
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
357
|
+
} as const;
|
|
@@ -159,7 +159,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
159
159
|
export const SPEC = {
|
|
160
160
|
typeUri: TYPE_URI,
|
|
161
161
|
isBearer: false,
|
|
162
|
-
isProofRequired:
|
|
162
|
+
isProofRequired: true,
|
|
163
163
|
isRecipientRequired: true,
|
|
164
164
|
isIssuedAtRequired: false,
|
|
165
165
|
payloadSchema: PAYLOAD_SCHEMA,
|
|
@@ -173,7 +173,7 @@ export const SPEC = {
|
|
|
173
173
|
export const RESPONSE_SPEC = {
|
|
174
174
|
typeUri: RESPONSE_TYPE_URI,
|
|
175
175
|
isBearer: false,
|
|
176
|
-
isProofRequired:
|
|
176
|
+
isProofRequired: true,
|
|
177
177
|
isRecipientRequired: true,
|
|
178
178
|
isIssuedAtRequired: false,
|
|
179
179
|
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
@@ -626,7 +626,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
626
626
|
export const SPEC = {
|
|
627
627
|
typeUri: TYPE_URI,
|
|
628
628
|
isBearer: false,
|
|
629
|
-
isProofRequired:
|
|
629
|
+
isProofRequired: true,
|
|
630
630
|
isRecipientRequired: true,
|
|
631
631
|
isIssuedAtRequired: true,
|
|
632
632
|
payloadSchema: PAYLOAD_SCHEMA,
|
|
@@ -640,7 +640,7 @@ export const SPEC = {
|
|
|
640
640
|
export const RESPONSE_SPEC = {
|
|
641
641
|
typeUri: RESPONSE_TYPE_URI,
|
|
642
642
|
isBearer: false,
|
|
643
|
-
isProofRequired:
|
|
643
|
+
isProofRequired: true,
|
|
644
644
|
isRecipientRequired: true,
|
|
645
645
|
isIssuedAtRequired: true,
|
|
646
646
|
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
@@ -153,7 +153,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
153
153
|
export const SPEC = {
|
|
154
154
|
typeUri: TYPE_URI,
|
|
155
155
|
isBearer: false,
|
|
156
|
-
isProofRequired:
|
|
156
|
+
isProofRequired: true,
|
|
157
157
|
isRecipientRequired: true,
|
|
158
158
|
isIssuedAtRequired: false,
|
|
159
159
|
payloadSchema: PAYLOAD_SCHEMA,
|
|
@@ -167,7 +167,7 @@ export const SPEC = {
|
|
|
167
167
|
export const RESPONSE_SPEC = {
|
|
168
168
|
typeUri: RESPONSE_TYPE_URI,
|
|
169
169
|
isBearer: false,
|
|
170
|
-
isProofRequired:
|
|
170
|
+
isProofRequired: true,
|
|
171
171
|
isRecipientRequired: true,
|
|
172
172
|
isIssuedAtRequired: false,
|
|
173
173
|
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|