@openvtc/trust-tasks 0.20.8 → 0.21.1
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 +254 -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-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/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 +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -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-response/0.5/payload.ts +593 -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 +30 -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,326 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/attestation/mnemonic-export/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Asks an agent running in a trusted execution environment to release its seed mnemonic, once, sealed to a key only the producer holds. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAAttestationMnemonicExportPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The Ed25519 did:key the mnemonic is sealed to, by its X25519 counterpart, so only the holder of this key's private half can open the answer. Over an end-to-end channel, a key generated for this one export on the machine that will hold the backup, and discarded after. On the signed first-boot path over a hop-by-hop channel, exactly the document's issuer: the key that signed the request.
|
|
12
|
+
*/
|
|
13
|
+
clientDid: string;
|
|
14
|
+
/**
|
|
15
|
+
* Sixteen random bytes, base64url without padding. It becomes the sealed bundle's identifier, and the recipient binds it into its attestation quote, so an answer cannot be replayed to a different request.
|
|
16
|
+
*/
|
|
17
|
+
nonce: string;
|
|
18
|
+
/**
|
|
19
|
+
* Operator-visible label for the request. Never sealed into the answer and never treated as an instruction.
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
24
|
+
*/
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
export interface VTAAttestationMnemonicExportResponsePayload {
|
|
28
|
+
/**
|
|
29
|
+
* The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key.
|
|
30
|
+
*/
|
|
31
|
+
bundle: string;
|
|
32
|
+
/**
|
|
33
|
+
* SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it.
|
|
34
|
+
*/
|
|
35
|
+
digest: string;
|
|
36
|
+
/**
|
|
37
|
+
* Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way.
|
|
38
|
+
*/
|
|
39
|
+
windowRemainingSecs: number;
|
|
40
|
+
/**
|
|
41
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
42
|
+
*/
|
|
43
|
+
ext?: Ext;
|
|
44
|
+
}
|
|
45
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
46
|
+
export type { Ext };
|
|
47
|
+
/** Trust Task type URI. */
|
|
48
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0";
|
|
49
|
+
/** Stable alias for this specification's request payload shape. */
|
|
50
|
+
export type Payload = VTAAttestationMnemonicExportPayload;
|
|
51
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
52
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0#response";
|
|
53
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
54
|
+
export type Response = VTAAttestationMnemonicExportResponsePayload;
|
|
55
|
+
/**
|
|
56
|
+
* This specification's payload schema, as a value.
|
|
57
|
+
*
|
|
58
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
59
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
60
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
61
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
62
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
63
|
+
*/
|
|
64
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
65
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
66
|
+
readonly $id: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0";
|
|
67
|
+
readonly title: "VTA Attestation — Mnemonic Export — payload";
|
|
68
|
+
readonly description: "Asks an agent running in a trusted execution environment to release its seed mnemonic, once, sealed to a key only the producer holds. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly additionalProperties: false;
|
|
71
|
+
readonly required: readonly ["clientDid", "nonce"];
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly clientDid: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
76
|
+
readonly maxLength: 128;
|
|
77
|
+
readonly description: "The Ed25519 did:key the mnemonic is sealed to, by its X25519 counterpart, so only the holder of this key's private half can open the answer. Over an end-to-end channel, a key generated for this one export on the machine that will hold the backup, and discarded after. On the signed first-boot path over a hop-by-hop channel, exactly the document's issuer: the key that signed the request.";
|
|
78
|
+
};
|
|
79
|
+
readonly nonce: {
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
readonly pattern: "^[A-Za-z0-9_-]{22}$";
|
|
82
|
+
readonly description: "Sixteen random bytes, base64url without padding. It becomes the sealed bundle's identifier, and the recipient binds it into its attestation quote, so an answer cannot be replayed to a different request.";
|
|
83
|
+
};
|
|
84
|
+
readonly label: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly minLength: 1;
|
|
87
|
+
readonly maxLength: 256;
|
|
88
|
+
readonly description: "Operator-visible label for the request. Never sealed into the answer and never treated as an instruction.";
|
|
89
|
+
};
|
|
90
|
+
readonly ext: {
|
|
91
|
+
readonly $ref: "#/$defs/Ext";
|
|
92
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly $defs: {
|
|
96
|
+
readonly Response: {
|
|
97
|
+
readonly $anchor: "response";
|
|
98
|
+
readonly title: "VTA Attestation Mnemonic Export — response payload";
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly additionalProperties: false;
|
|
101
|
+
readonly required: readonly ["bundle", "digest", "windowRemainingSecs"];
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly bundle: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly minLength: 1;
|
|
106
|
+
readonly maxLength: 65536;
|
|
107
|
+
readonly description: "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key.";
|
|
108
|
+
};
|
|
109
|
+
readonly digest: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
112
|
+
readonly description: "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it.";
|
|
113
|
+
};
|
|
114
|
+
readonly windowRemainingSecs: {
|
|
115
|
+
readonly type: "integer";
|
|
116
|
+
readonly minimum: 0;
|
|
117
|
+
readonly description: "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way.";
|
|
118
|
+
};
|
|
119
|
+
readonly ext: {
|
|
120
|
+
readonly $ref: "#/$defs/Ext";
|
|
121
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly Ext: {
|
|
126
|
+
readonly title: "Ext";
|
|
127
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly minProperties: 1;
|
|
130
|
+
readonly additionalProperties: true;
|
|
131
|
+
readonly propertyNames: {
|
|
132
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
138
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
139
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
140
|
+
readonly $ref: "#/$defs/Response";
|
|
141
|
+
readonly $defs: {
|
|
142
|
+
readonly Response: {
|
|
143
|
+
readonly $anchor: "response";
|
|
144
|
+
readonly title: "VTA Attestation Mnemonic Export — response payload";
|
|
145
|
+
readonly type: "object";
|
|
146
|
+
readonly additionalProperties: false;
|
|
147
|
+
readonly required: readonly ["bundle", "digest", "windowRemainingSecs"];
|
|
148
|
+
readonly properties: {
|
|
149
|
+
readonly bundle: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly minLength: 1;
|
|
152
|
+
readonly maxLength: 65536;
|
|
153
|
+
readonly description: "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key.";
|
|
154
|
+
};
|
|
155
|
+
readonly digest: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
158
|
+
readonly description: "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it.";
|
|
159
|
+
};
|
|
160
|
+
readonly windowRemainingSecs: {
|
|
161
|
+
readonly type: "integer";
|
|
162
|
+
readonly minimum: 0;
|
|
163
|
+
readonly description: "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way.";
|
|
164
|
+
};
|
|
165
|
+
readonly ext: {
|
|
166
|
+
readonly $ref: "#/$defs/Ext";
|
|
167
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
readonly Ext: {
|
|
172
|
+
readonly title: "Ext";
|
|
173
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
174
|
+
readonly type: "object";
|
|
175
|
+
readonly minProperties: 1;
|
|
176
|
+
readonly additionalProperties: true;
|
|
177
|
+
readonly propertyNames: {
|
|
178
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
185
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
186
|
+
* per-specification and cannot be derived from the document alone, and
|
|
187
|
+
* item 2 needs the schema this carries.
|
|
188
|
+
*/
|
|
189
|
+
export declare const SPEC: {
|
|
190
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0";
|
|
191
|
+
readonly isBearer: false;
|
|
192
|
+
readonly isProofRequired: true;
|
|
193
|
+
readonly isRecipientRequired: true;
|
|
194
|
+
readonly isIssuedAtRequired: true;
|
|
195
|
+
readonly payloadSchema: {
|
|
196
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
197
|
+
readonly $id: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0";
|
|
198
|
+
readonly title: "VTA Attestation — Mnemonic Export — payload";
|
|
199
|
+
readonly description: "Asks an agent running in a trusted execution environment to release its seed mnemonic, once, sealed to a key only the producer holds. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
readonly required: readonly ["clientDid", "nonce"];
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly clientDid: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
207
|
+
readonly maxLength: 128;
|
|
208
|
+
readonly description: "The Ed25519 did:key the mnemonic is sealed to, by its X25519 counterpart, so only the holder of this key's private half can open the answer. Over an end-to-end channel, a key generated for this one export on the machine that will hold the backup, and discarded after. On the signed first-boot path over a hop-by-hop channel, exactly the document's issuer: the key that signed the request.";
|
|
209
|
+
};
|
|
210
|
+
readonly nonce: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly pattern: "^[A-Za-z0-9_-]{22}$";
|
|
213
|
+
readonly description: "Sixteen random bytes, base64url without padding. It becomes the sealed bundle's identifier, and the recipient binds it into its attestation quote, so an answer cannot be replayed to a different request.";
|
|
214
|
+
};
|
|
215
|
+
readonly label: {
|
|
216
|
+
readonly type: "string";
|
|
217
|
+
readonly minLength: 1;
|
|
218
|
+
readonly maxLength: 256;
|
|
219
|
+
readonly description: "Operator-visible label for the request. Never sealed into the answer and never treated as an instruction.";
|
|
220
|
+
};
|
|
221
|
+
readonly ext: {
|
|
222
|
+
readonly $ref: "#/$defs/Ext";
|
|
223
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly $defs: {
|
|
227
|
+
readonly Response: {
|
|
228
|
+
readonly $anchor: "response";
|
|
229
|
+
readonly title: "VTA Attestation Mnemonic Export — response payload";
|
|
230
|
+
readonly type: "object";
|
|
231
|
+
readonly additionalProperties: false;
|
|
232
|
+
readonly required: readonly ["bundle", "digest", "windowRemainingSecs"];
|
|
233
|
+
readonly properties: {
|
|
234
|
+
readonly bundle: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly minLength: 1;
|
|
237
|
+
readonly maxLength: 65536;
|
|
238
|
+
readonly description: "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key.";
|
|
239
|
+
};
|
|
240
|
+
readonly digest: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
243
|
+
readonly description: "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it.";
|
|
244
|
+
};
|
|
245
|
+
readonly windowRemainingSecs: {
|
|
246
|
+
readonly type: "integer";
|
|
247
|
+
readonly minimum: 0;
|
|
248
|
+
readonly description: "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way.";
|
|
249
|
+
};
|
|
250
|
+
readonly ext: {
|
|
251
|
+
readonly $ref: "#/$defs/Ext";
|
|
252
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly Ext: {
|
|
257
|
+
readonly title: "Ext";
|
|
258
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly minProperties: 1;
|
|
261
|
+
readonly additionalProperties: true;
|
|
262
|
+
readonly propertyNames: {
|
|
263
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
271
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
272
|
+
* parties (§7.3 item 5).
|
|
273
|
+
*/
|
|
274
|
+
export declare const RESPONSE_SPEC: {
|
|
275
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0#response";
|
|
276
|
+
readonly isBearer: false;
|
|
277
|
+
readonly isProofRequired: true;
|
|
278
|
+
readonly isRecipientRequired: true;
|
|
279
|
+
readonly isIssuedAtRequired: true;
|
|
280
|
+
readonly payloadSchema: {
|
|
281
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
282
|
+
readonly $ref: "#/$defs/Response";
|
|
283
|
+
readonly $defs: {
|
|
284
|
+
readonly Response: {
|
|
285
|
+
readonly $anchor: "response";
|
|
286
|
+
readonly title: "VTA Attestation Mnemonic Export — response payload";
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
readonly required: readonly ["bundle", "digest", "windowRemainingSecs"];
|
|
290
|
+
readonly properties: {
|
|
291
|
+
readonly bundle: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly minLength: 1;
|
|
294
|
+
readonly maxLength: 65536;
|
|
295
|
+
readonly description: "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key.";
|
|
296
|
+
};
|
|
297
|
+
readonly digest: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
300
|
+
readonly description: "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it.";
|
|
301
|
+
};
|
|
302
|
+
readonly windowRemainingSecs: {
|
|
303
|
+
readonly type: "integer";
|
|
304
|
+
readonly minimum: 0;
|
|
305
|
+
readonly description: "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way.";
|
|
306
|
+
};
|
|
307
|
+
readonly ext: {
|
|
308
|
+
readonly $ref: "#/$defs/Ext";
|
|
309
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly Ext: {
|
|
314
|
+
readonly title: "Ext";
|
|
315
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
316
|
+
readonly type: "object";
|
|
317
|
+
readonly minProperties: 1;
|
|
318
|
+
readonly additionalProperties: true;
|
|
319
|
+
readonly propertyNames: {
|
|
320
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/attestation/mnemonic-export/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM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 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/attestation/mnemonic-export/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/attestation/mnemonic-export/1.0",
|
|
21
|
+
"title": "VTA Attestation — Mnemonic Export — payload",
|
|
22
|
+
"description": "Asks an agent running in a trusted execution environment to release its seed mnemonic, once, sealed to a key only the producer holds. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"clientDid",
|
|
27
|
+
"nonce"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"clientDid": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$",
|
|
33
|
+
"maxLength": 128,
|
|
34
|
+
"description": "The Ed25519 did:key the mnemonic is sealed to, by its X25519 counterpart, so only the holder of this key's private half can open the answer. Over an end-to-end channel, a key generated for this one export on the machine that will hold the backup, and discarded after. On the signed first-boot path over a hop-by-hop channel, exactly the document's issuer: the key that signed the request."
|
|
35
|
+
},
|
|
36
|
+
"nonce": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[A-Za-z0-9_-]{22}$",
|
|
39
|
+
"description": "Sixteen random bytes, base64url without padding. It becomes the sealed bundle's identifier, and the recipient binds it into its attestation quote, so an answer cannot be replayed to a different request."
|
|
40
|
+
},
|
|
41
|
+
"label": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1,
|
|
44
|
+
"maxLength": 256,
|
|
45
|
+
"description": "Operator-visible label for the request. Never sealed into the answer and never treated as an instruction."
|
|
46
|
+
},
|
|
47
|
+
"ext": {
|
|
48
|
+
"$ref": "#/$defs/Ext",
|
|
49
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"$defs": {
|
|
53
|
+
"Response": {
|
|
54
|
+
"$anchor": "response",
|
|
55
|
+
"title": "VTA Attestation Mnemonic Export — response payload",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": [
|
|
59
|
+
"bundle",
|
|
60
|
+
"digest",
|
|
61
|
+
"windowRemainingSecs"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"bundle": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"maxLength": 65536,
|
|
68
|
+
"description": "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key."
|
|
69
|
+
},
|
|
70
|
+
"digest": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
73
|
+
"description": "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it."
|
|
74
|
+
},
|
|
75
|
+
"windowRemainingSecs": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"minimum": 0,
|
|
78
|
+
"description": "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way."
|
|
79
|
+
},
|
|
80
|
+
"ext": {
|
|
81
|
+
"$ref": "#/$defs/Ext",
|
|
82
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"Ext": {
|
|
87
|
+
"title": "Ext",
|
|
88
|
+
"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.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"minProperties": 1,
|
|
91
|
+
"additionalProperties": true,
|
|
92
|
+
"propertyNames": {
|
|
93
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
99
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
100
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
101
|
+
"$ref": "#/$defs/Response",
|
|
102
|
+
"$defs": {
|
|
103
|
+
"Response": {
|
|
104
|
+
"$anchor": "response",
|
|
105
|
+
"title": "VTA Attestation Mnemonic Export — response payload",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"bundle",
|
|
110
|
+
"digest",
|
|
111
|
+
"windowRemainingSecs"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"bundle": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"minLength": 1,
|
|
117
|
+
"maxLength": 65536,
|
|
118
|
+
"description": "The ASCII-armored sealed bundle. It carries the mnemonic sealed to clientDid under a producer assertion whose attestation quote binds the client key, the nonce and the recipient's own sealing key."
|
|
119
|
+
},
|
|
120
|
+
"digest": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
123
|
+
"description": "SHA-256 of the bundle, lowercase hex. The producer confirms it out of band before opening, so a substituted bundle is caught before any key is applied to it."
|
|
124
|
+
},
|
|
125
|
+
"windowRemainingSecs": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"minimum": 0,
|
|
128
|
+
"description": "Seconds that were left in the export window when the mnemonic was released. Informational: the window is spent either way."
|
|
129
|
+
},
|
|
130
|
+
"ext": {
|
|
131
|
+
"$ref": "#/$defs/Ext",
|
|
132
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"Ext": {
|
|
137
|
+
"title": "Ext",
|
|
138
|
+
"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.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1,
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"propertyNames": {
|
|
143
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
150
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
151
|
+
* per-specification and cannot be derived from the document alone, and
|
|
152
|
+
* item 2 needs the schema this carries.
|
|
153
|
+
*/
|
|
154
|
+
export const SPEC = {
|
|
155
|
+
typeUri: TYPE_URI,
|
|
156
|
+
isBearer: false,
|
|
157
|
+
isProofRequired: true,
|
|
158
|
+
isRecipientRequired: true,
|
|
159
|
+
isIssuedAtRequired: true,
|
|
160
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
164
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
165
|
+
* parties (§7.3 item 5).
|
|
166
|
+
*/
|
|
167
|
+
export const RESPONSE_SPEC = {
|
|
168
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
169
|
+
isBearer: false,
|
|
170
|
+
isProofRequired: true,
|
|
171
|
+
isRecipientRequired: true,
|
|
172
|
+
isIssuedAtRequired: true,
|
|
173
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
174
|
+
};
|
|
175
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/attestation/mnemonic-export/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iEAA0E,CAAC;AAKnG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0EAAmF,CAAC;AAKrH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,iEAAiE;IACxE,OAAO,EAAE,6CAA6C;IACtD,aAAa,EAAE,oQAAoQ;IACnR,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,WAAW;QACX,OAAO;KACR;IACD,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,qCAAqC;YAChD,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,sYAAsY;SACtZ;QACD,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,SAA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