@openvtc/trust-tasks 0.22.6 → 0.23.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 +81 -0
- package/dist/_shared/components.d.ts +434 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/acl/_shared/0.1/acl-entry.d.ts +1 -1
- package/dist/acl/_shared/0.1/acl-entry.d.ts.map +1 -1
- package/dist/acl/_shared/0.2/acl-entry.d.ts +22 -0
- package/dist/acl/_shared/0.2/acl-entry.d.ts.map +1 -0
- package/dist/acl/_shared/0.2/acl-entry.js +6 -0
- package/dist/acl/_shared/0.2/acl-entry.js.map +1 -0
- package/dist/acl/change-role/0.1/payload.d.ts +1 -1
- package/dist/acl/change-role/0.1/payload.d.ts.map +1 -1
- package/dist/acl/change-role/0.2/payload.d.ts +1679 -0
- package/dist/acl/change-role/0.2/payload.d.ts.map +1 -0
- package/dist/acl/change-role/0.2/payload.js +955 -0
- package/dist/acl/change-role/0.2/payload.js.map +1 -0
- package/dist/acl/grant/0.1/payload.d.ts +1 -1
- package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
- package/dist/acl/grant/0.2/payload.d.ts +1649 -0
- package/dist/acl/grant/0.2/payload.d.ts.map +1 -0
- package/dist/acl/grant/0.2/payload.js +942 -0
- package/dist/acl/grant/0.2/payload.js.map +1 -0
- package/dist/acl/list/0.1/payload.d.ts +1 -1
- package/dist/acl/list/0.1/payload.d.ts.map +1 -1
- package/dist/acl/list/0.2/payload.d.ts +1853 -0
- package/dist/acl/list/0.2/payload.d.ts.map +1 -0
- package/dist/acl/list/0.2/payload.js +1041 -0
- package/dist/acl/list/0.2/payload.js.map +1 -0
- package/dist/acl/revoke/0.1/payload.d.ts +1 -1
- package/dist/acl/revoke/0.1/payload.d.ts.map +1 -1
- package/dist/acl/revoke/0.2/payload.d.ts +1844 -0
- package/dist/acl/revoke/0.2/payload.d.ts.map +1 -0
- package/dist/acl/revoke/0.2/payload.js +1052 -0
- package/dist/acl/revoke/0.2/payload.js.map +1 -0
- package/dist/acl/show/0.1/payload.d.ts +1 -1
- package/dist/acl/show/0.1/payload.d.ts.map +1 -1
- package/dist/acl/show/0.2/payload.d.ts +1689 -0
- package/dist/acl/show/0.2/payload.d.ts.map +1 -0
- package/dist/acl/show/0.2/payload.js +968 -0
- package/dist/acl/show/0.2/payload.js.map +1 -0
- package/dist/acl/swap-key/0.1/payload.d.ts +1 -1
- package/dist/acl/swap-key/0.1/payload.d.ts.map +1 -1
- package/dist/acl/update/0.1/payload.d.ts +1 -1
- package/dist/acl/update/0.1/payload.d.ts.map +1 -1
- package/dist/acl/update/0.2/payload.d.ts +1784 -0
- package/dist/acl/update/0.2/payload.d.ts.map +1 -0
- package/dist/acl/update/0.2/payload.js +1005 -0
- package/dist/acl/update/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-request/0.4/payload.d.ts +672 -0
- package/dist/auth/step-up/approve-request/0.4/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-request/0.4/payload.js +373 -0
- package/dist/auth/step-up/approve-request/0.4/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts +974 -0
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.6/payload.js +552 -0
- package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts +16 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts.map +1 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.js +6 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.js.map +1 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +174 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.js +97 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts +503 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.js +285 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.d.ts +375 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.js +200 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/list/0.1/payload.d.ts +477 -0
- package/dist/auth/step-up/approver/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/list/0.1/payload.js +272 -0
- package/dist/auth/step-up/approver/list/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts +512 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js +290 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts +343 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.js +187 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts +534 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.js +301 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.js.map +1 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts +21 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -1
- package/dist/git-ns/activity/list/0.1/payload.js +8 -0
- package/dist/git-ns/activity/list/0.1/payload.js.map +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/task-consent/decision/0.2/payload.d.ts +775 -0
- package/dist/task-consent/decision/0.2/payload.d.ts.map +1 -0
- package/dist/task-consent/decision/0.2/payload.js +450 -0
- package/dist/task-consent/decision/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts +24 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts.map +1 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.js +6 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.js.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts +1012 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.js +636 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts +1026 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.js +641 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts +1200 -0
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/list/0.1/payload.js +726 -0
- package/dist/vtc/admin/actions/list/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/show/0.1/payload.js +636 -0
- package/dist/vtc/admin/actions/show/0.1/payload.js.map +1 -0
- package/dist/vtc/install/claim/finish/0.3/payload.d.ts +379 -0
- package/dist/vtc/install/claim/finish/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/finish/0.3/payload.js +205 -0
- package/dist/vtc/install/claim/finish/0.3/payload.js.map +1 -0
- package/dist/vtc/install/claim/start/0.3/payload.d.ts +368 -0
- package/dist/vtc/install/claim/start/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/start/0.3/payload.js +201 -0
- package/dist/vtc/install/claim/start/0.3/payload.js.map +1 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts +208 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.js +112 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/_shared/0.1/role.d.ts +16 -0
- package/dist/vtc/roles/_shared/0.1/role.d.ts.map +1 -0
- package/dist/vtc/roles/_shared/0.1/role.js +6 -0
- package/dist/vtc/roles/_shared/0.1/role.js.map +1 -0
- package/dist/vtc/roles/define/0.1/payload.d.ts +703 -0
- package/dist/vtc/roles/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/define/0.1/payload.js +371 -0
- package/dist/vtc/roles/define/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/delete/0.1/payload.d.ts +281 -0
- package/dist/vtc/roles/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/delete/0.1/payload.js +152 -0
- package/dist/vtc/roles/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/list/0.1/payload.d.ts +639 -0
- package/dist/vtc/roles/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/list/0.1/payload.js +345 -0
- package/dist/vtc/roles/list/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/show/0.1/payload.d.ts +651 -0
- package/dist/vtc/roles/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/show/0.1/payload.js +351 -0
- package/dist/vtc/roles/show/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +440 -1
- package/src/acl/_shared/0.1/acl-entry.ts +1 -1
- package/src/acl/_shared/0.2/acl-entry.ts +23 -0
- package/src/acl/change-role/0.1/payload.ts +1 -1
- package/src/acl/change-role/0.2/payload.ts +1011 -0
- package/src/acl/grant/0.1/payload.ts +1 -1
- package/src/acl/grant/0.2/payload.ts +990 -0
- package/src/acl/list/0.1/payload.ts +1 -1
- package/src/acl/list/0.2/payload.ts +1125 -0
- package/src/acl/revoke/0.1/payload.ts +1 -1
- package/src/acl/revoke/0.2/payload.ts +1122 -0
- package/src/acl/show/0.1/payload.ts +1 -1
- package/src/acl/show/0.2/payload.ts +1016 -0
- package/src/acl/swap-key/0.1/payload.ts +1 -1
- package/src/acl/update/0.1/payload.ts +1 -1
- package/src/acl/update/0.2/payload.ts +1094 -0
- package/src/auth/step-up/approve-request/0.4/payload.ts +461 -0
- package/src/auth/step-up/approve-response/0.6/payload.ts +648 -0
- package/src/auth/step-up/approver/_shared/0.1/approver.ts +17 -0
- package/src/auth/step-up/approver/attest/0.1/payload.ts +135 -0
- package/src/auth/step-up/approver/enroll/0.1/payload.ts +329 -0
- package/src/auth/step-up/approver/invite/0.1/payload.ts +258 -0
- package/src/auth/step-up/approver/list/0.1/payload.ts +318 -0
- package/src/auth/step-up/approver/redeem/finish/0.1/payload.ts +337 -0
- package/src/auth/step-up/approver/redeem/start/0.1/payload.ts +241 -0
- package/src/auth/step-up/approver/revoke/0.1/payload.ts +352 -0
- package/src/git-ns/activity/list/0.1/payload.ts +14 -0
- package/src/index.ts +31 -0
- package/src/task-consent/decision/0.2/payload.ts +537 -0
- package/src/vtc/admin/actions/_shared/0.1/action.ts +25 -0
- package/src/vtc/admin/actions/acknowledge/0.1/payload.ts +671 -0
- package/src/vtc/admin/actions/cancel/0.1/payload.ts +680 -0
- package/src/vtc/admin/actions/list/0.1/payload.ts +795 -0
- package/src/vtc/admin/actions/show/0.1/payload.ts +671 -0
- package/src/vtc/install/claim/finish/0.3/payload.ts +253 -0
- package/src/vtc/install/claim/start/0.3/payload.ts +256 -0
- package/src/vtc/members/authority-reduced-notice/0.1/payload.ts +162 -0
- package/src/vtc/roles/_shared/0.1/role.ts +17 -0
- package/src/vtc/roles/define/0.1/payload.ts +435 -0
- package/src/vtc/roles/delete/0.1/payload.ts +200 -0
- package/src/vtc/roles/list/0.1/payload.ts +389 -0
- package/src/vtc/roles/show/0.1/payload.ts +399 -0
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/approver/enroll/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Approver, ApproverDid, ApproverLabel, AttestStatement, EnrolledVia, Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A subject who already holds a step-up factor adds a step-up approver, optionally replacing one of theirs in the same step. The enrolment terms are this payload with `statement` removed; the new approver's statement binds a digest of them. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthStepUpApproverEnrollPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The step-up approver to bind. MUST equal the statement's issuer.
|
|
12
|
+
*/
|
|
13
|
+
approverDid: ApproverDid;
|
|
14
|
+
label?: ApproverLabel;
|
|
15
|
+
/**
|
|
16
|
+
* A live approver of the same subject to revoke in the same step. Part of the enrolment terms, so the authority evidence for adding an approver cannot be reused to remove one.
|
|
17
|
+
*/
|
|
18
|
+
replaces?: ApproverDid;
|
|
19
|
+
/**
|
|
20
|
+
* The new approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, over the challenge of the step-up authorizing this enrolment, with `boundTo` the terms digest defined by this specification. Not part of the enrolment terms. Absent only on a send made to obtain that challenge; an enrolment executes only with it.
|
|
21
|
+
*/
|
|
22
|
+
statement?: AttestStatement;
|
|
23
|
+
ext?: Ext;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The new binding as stored.
|
|
27
|
+
*/
|
|
28
|
+
export interface AuthStepUpApproverEnrollResponsePayload {
|
|
29
|
+
approver: Approver;
|
|
30
|
+
ext?: Ext;
|
|
31
|
+
}
|
|
32
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
33
|
+
export type { Approver, ApproverDid, ApproverLabel, AttestStatement, EnrolledVia, Ext };
|
|
34
|
+
/** Trust Task type URI. */
|
|
35
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1";
|
|
36
|
+
/** Stable alias for this specification's request payload shape. */
|
|
37
|
+
export type Payload = AuthStepUpApproverEnrollPayload;
|
|
38
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
39
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1#response";
|
|
40
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
41
|
+
export type Response = AuthStepUpApproverEnrollResponsePayload;
|
|
42
|
+
/**
|
|
43
|
+
* This specification's payload schema, as a value.
|
|
44
|
+
*
|
|
45
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
46
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
47
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
48
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
49
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
50
|
+
*/
|
|
51
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
52
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
53
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1";
|
|
54
|
+
readonly title: "Auth — Step-up Approver Enroll — payload";
|
|
55
|
+
readonly description: "A subject who already holds a step-up factor adds a step-up approver, optionally replacing one of theirs in the same step. The enrolment terms are this payload with `statement` removed; the new approver's statement binds a digest of them. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
56
|
+
readonly type: "object";
|
|
57
|
+
readonly additionalProperties: false;
|
|
58
|
+
readonly required: readonly ["approverDid"];
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly approverDid: {
|
|
61
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
62
|
+
readonly description: "The step-up approver to bind. MUST equal the statement's issuer.";
|
|
63
|
+
};
|
|
64
|
+
readonly label: {
|
|
65
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
66
|
+
};
|
|
67
|
+
readonly replaces: {
|
|
68
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
69
|
+
readonly description: "A live approver of the same subject to revoke in the same step. Part of the enrolment terms, so the authority evidence for adding an approver cannot be reused to remove one.";
|
|
70
|
+
};
|
|
71
|
+
readonly statement: {
|
|
72
|
+
readonly $ref: "#/$defs/AttestStatement";
|
|
73
|
+
readonly description: "The new approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, over the challenge of the step-up authorizing this enrolment, with `boundTo` the terms digest defined by this specification. Not part of the enrolment terms. Absent only on a send made to obtain that challenge; an enrolment executes only with it.";
|
|
74
|
+
};
|
|
75
|
+
readonly ext: {
|
|
76
|
+
readonly $ref: "#/$defs/Ext";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly $defs: {
|
|
80
|
+
readonly Response: {
|
|
81
|
+
readonly $anchor: "response";
|
|
82
|
+
readonly title: "Auth — Step-up Approver Enroll — response payload";
|
|
83
|
+
readonly description: "The new binding as stored.";
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
readonly required: readonly ["approver"];
|
|
87
|
+
readonly properties: {
|
|
88
|
+
readonly approver: {
|
|
89
|
+
readonly $ref: "#/$defs/Approver";
|
|
90
|
+
};
|
|
91
|
+
readonly ext: {
|
|
92
|
+
readonly $ref: "#/$defs/Ext";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly Ext: {
|
|
97
|
+
readonly title: "Ext";
|
|
98
|
+
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.";
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly minProperties: 1;
|
|
101
|
+
readonly additionalProperties: true;
|
|
102
|
+
readonly propertyNames: {
|
|
103
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly Approver: {
|
|
107
|
+
readonly title: "Approver";
|
|
108
|
+
readonly type: "object";
|
|
109
|
+
readonly additionalProperties: false;
|
|
110
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
111
|
+
readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
|
|
112
|
+
readonly properties: {
|
|
113
|
+
readonly approverDid: {
|
|
114
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
115
|
+
};
|
|
116
|
+
readonly subject: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly pattern: "^did:";
|
|
119
|
+
readonly minLength: 5;
|
|
120
|
+
readonly maxLength: 2048;
|
|
121
|
+
readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
|
|
122
|
+
};
|
|
123
|
+
readonly label: {
|
|
124
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
125
|
+
};
|
|
126
|
+
readonly enrolledAt: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly format: "date-time";
|
|
129
|
+
readonly description: "When the binding was written.";
|
|
130
|
+
};
|
|
131
|
+
readonly enrolledVia: {
|
|
132
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
133
|
+
};
|
|
134
|
+
readonly lastUsedAt: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly format: "date-time";
|
|
137
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly EnrolledVia: {
|
|
142
|
+
readonly title: "EnrolledVia";
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
145
|
+
readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
|
|
146
|
+
};
|
|
147
|
+
readonly ApproverLabel: {
|
|
148
|
+
readonly title: "ApproverLabel";
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly minLength: 1;
|
|
151
|
+
readonly maxLength: 64;
|
|
152
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
153
|
+
};
|
|
154
|
+
readonly ApproverDid: {
|
|
155
|
+
readonly title: "ApproverDid";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly minLength: 16;
|
|
158
|
+
readonly maxLength: 128;
|
|
159
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
160
|
+
readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
|
|
161
|
+
};
|
|
162
|
+
readonly AttestStatement: {
|
|
163
|
+
readonly title: "AttestStatement";
|
|
164
|
+
readonly type: "object";
|
|
165
|
+
readonly minProperties: 1;
|
|
166
|
+
readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
171
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
172
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
173
|
+
readonly $ref: "#/$defs/Response";
|
|
174
|
+
readonly $defs: {
|
|
175
|
+
readonly Response: {
|
|
176
|
+
readonly $anchor: "response";
|
|
177
|
+
readonly title: "Auth — Step-up Approver Enroll — response payload";
|
|
178
|
+
readonly description: "The new binding as stored.";
|
|
179
|
+
readonly type: "object";
|
|
180
|
+
readonly additionalProperties: false;
|
|
181
|
+
readonly required: readonly ["approver"];
|
|
182
|
+
readonly properties: {
|
|
183
|
+
readonly approver: {
|
|
184
|
+
readonly $ref: "#/$defs/Approver";
|
|
185
|
+
};
|
|
186
|
+
readonly ext: {
|
|
187
|
+
readonly $ref: "#/$defs/Ext";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly Ext: {
|
|
192
|
+
readonly title: "Ext";
|
|
193
|
+
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.";
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly minProperties: 1;
|
|
196
|
+
readonly additionalProperties: true;
|
|
197
|
+
readonly propertyNames: {
|
|
198
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly Approver: {
|
|
202
|
+
readonly title: "Approver";
|
|
203
|
+
readonly type: "object";
|
|
204
|
+
readonly additionalProperties: false;
|
|
205
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
206
|
+
readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
|
|
207
|
+
readonly properties: {
|
|
208
|
+
readonly approverDid: {
|
|
209
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
210
|
+
};
|
|
211
|
+
readonly subject: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly pattern: "^did:";
|
|
214
|
+
readonly minLength: 5;
|
|
215
|
+
readonly maxLength: 2048;
|
|
216
|
+
readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
|
|
217
|
+
};
|
|
218
|
+
readonly label: {
|
|
219
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
220
|
+
};
|
|
221
|
+
readonly enrolledAt: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly format: "date-time";
|
|
224
|
+
readonly description: "When the binding was written.";
|
|
225
|
+
};
|
|
226
|
+
readonly enrolledVia: {
|
|
227
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
228
|
+
};
|
|
229
|
+
readonly lastUsedAt: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly format: "date-time";
|
|
232
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly EnrolledVia: {
|
|
237
|
+
readonly title: "EnrolledVia";
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
240
|
+
readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
|
|
241
|
+
};
|
|
242
|
+
readonly ApproverLabel: {
|
|
243
|
+
readonly title: "ApproverLabel";
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly minLength: 1;
|
|
246
|
+
readonly maxLength: 64;
|
|
247
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
248
|
+
};
|
|
249
|
+
readonly ApproverDid: {
|
|
250
|
+
readonly title: "ApproverDid";
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly minLength: 16;
|
|
253
|
+
readonly maxLength: 128;
|
|
254
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
255
|
+
readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
|
|
256
|
+
};
|
|
257
|
+
readonly AttestStatement: {
|
|
258
|
+
readonly title: "AttestStatement";
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly minProperties: 1;
|
|
261
|
+
readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
267
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
268
|
+
* per-specification and cannot be derived from the document alone, and
|
|
269
|
+
* item 2 needs the schema this carries.
|
|
270
|
+
*/
|
|
271
|
+
export declare const SPEC: {
|
|
272
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1";
|
|
273
|
+
readonly isBearer: false;
|
|
274
|
+
readonly isProofRequired: true;
|
|
275
|
+
readonly isRecipientRequired: true;
|
|
276
|
+
readonly isIssuedAtRequired: true;
|
|
277
|
+
readonly payloadSchema: {
|
|
278
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
279
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1";
|
|
280
|
+
readonly title: "Auth — Step-up Approver Enroll — payload";
|
|
281
|
+
readonly description: "A subject who already holds a step-up factor adds a step-up approver, optionally replacing one of theirs in the same step. The enrolment terms are this payload with `statement` removed; the new approver's statement binds a digest of them. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly additionalProperties: false;
|
|
284
|
+
readonly required: readonly ["approverDid"];
|
|
285
|
+
readonly properties: {
|
|
286
|
+
readonly approverDid: {
|
|
287
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
288
|
+
readonly description: "The step-up approver to bind. MUST equal the statement's issuer.";
|
|
289
|
+
};
|
|
290
|
+
readonly label: {
|
|
291
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
292
|
+
};
|
|
293
|
+
readonly replaces: {
|
|
294
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
295
|
+
readonly description: "A live approver of the same subject to revoke in the same step. Part of the enrolment terms, so the authority evidence for adding an approver cannot be reused to remove one.";
|
|
296
|
+
};
|
|
297
|
+
readonly statement: {
|
|
298
|
+
readonly $ref: "#/$defs/AttestStatement";
|
|
299
|
+
readonly description: "The new approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, over the challenge of the step-up authorizing this enrolment, with `boundTo` the terms digest defined by this specification. Not part of the enrolment terms. Absent only on a send made to obtain that challenge; an enrolment executes only with it.";
|
|
300
|
+
};
|
|
301
|
+
readonly ext: {
|
|
302
|
+
readonly $ref: "#/$defs/Ext";
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
readonly $defs: {
|
|
306
|
+
readonly Response: {
|
|
307
|
+
readonly $anchor: "response";
|
|
308
|
+
readonly title: "Auth — Step-up Approver Enroll — response payload";
|
|
309
|
+
readonly description: "The new binding as stored.";
|
|
310
|
+
readonly type: "object";
|
|
311
|
+
readonly additionalProperties: false;
|
|
312
|
+
readonly required: readonly ["approver"];
|
|
313
|
+
readonly properties: {
|
|
314
|
+
readonly approver: {
|
|
315
|
+
readonly $ref: "#/$defs/Approver";
|
|
316
|
+
};
|
|
317
|
+
readonly ext: {
|
|
318
|
+
readonly $ref: "#/$defs/Ext";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly Ext: {
|
|
323
|
+
readonly title: "Ext";
|
|
324
|
+
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.";
|
|
325
|
+
readonly type: "object";
|
|
326
|
+
readonly minProperties: 1;
|
|
327
|
+
readonly additionalProperties: true;
|
|
328
|
+
readonly propertyNames: {
|
|
329
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly Approver: {
|
|
333
|
+
readonly title: "Approver";
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
337
|
+
readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
|
|
338
|
+
readonly properties: {
|
|
339
|
+
readonly approverDid: {
|
|
340
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
341
|
+
};
|
|
342
|
+
readonly subject: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly pattern: "^did:";
|
|
345
|
+
readonly minLength: 5;
|
|
346
|
+
readonly maxLength: 2048;
|
|
347
|
+
readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
|
|
348
|
+
};
|
|
349
|
+
readonly label: {
|
|
350
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
351
|
+
};
|
|
352
|
+
readonly enrolledAt: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
readonly format: "date-time";
|
|
355
|
+
readonly description: "When the binding was written.";
|
|
356
|
+
};
|
|
357
|
+
readonly enrolledVia: {
|
|
358
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
359
|
+
};
|
|
360
|
+
readonly lastUsedAt: {
|
|
361
|
+
readonly type: "string";
|
|
362
|
+
readonly format: "date-time";
|
|
363
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly EnrolledVia: {
|
|
368
|
+
readonly title: "EnrolledVia";
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
371
|
+
readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
|
|
372
|
+
};
|
|
373
|
+
readonly ApproverLabel: {
|
|
374
|
+
readonly title: "ApproverLabel";
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly minLength: 1;
|
|
377
|
+
readonly maxLength: 64;
|
|
378
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
379
|
+
};
|
|
380
|
+
readonly ApproverDid: {
|
|
381
|
+
readonly title: "ApproverDid";
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly minLength: 16;
|
|
384
|
+
readonly maxLength: 128;
|
|
385
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
386
|
+
readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
|
|
387
|
+
};
|
|
388
|
+
readonly AttestStatement: {
|
|
389
|
+
readonly title: "AttestStatement";
|
|
390
|
+
readonly type: "object";
|
|
391
|
+
readonly minProperties: 1;
|
|
392
|
+
readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
399
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
400
|
+
* parties (§7.3 item 5).
|
|
401
|
+
*/
|
|
402
|
+
export declare const RESPONSE_SPEC: {
|
|
403
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/enroll/0.1#response";
|
|
404
|
+
readonly isBearer: false;
|
|
405
|
+
readonly isProofRequired: false;
|
|
406
|
+
readonly isRecipientRequired: true;
|
|
407
|
+
readonly isIssuedAtRequired: true;
|
|
408
|
+
readonly payloadSchema: {
|
|
409
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
410
|
+
readonly $ref: "#/$defs/Response";
|
|
411
|
+
readonly $defs: {
|
|
412
|
+
readonly Response: {
|
|
413
|
+
readonly $anchor: "response";
|
|
414
|
+
readonly title: "Auth — Step-up Approver Enroll — response payload";
|
|
415
|
+
readonly description: "The new binding as stored.";
|
|
416
|
+
readonly type: "object";
|
|
417
|
+
readonly additionalProperties: false;
|
|
418
|
+
readonly required: readonly ["approver"];
|
|
419
|
+
readonly properties: {
|
|
420
|
+
readonly approver: {
|
|
421
|
+
readonly $ref: "#/$defs/Approver";
|
|
422
|
+
};
|
|
423
|
+
readonly ext: {
|
|
424
|
+
readonly $ref: "#/$defs/Ext";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
readonly Ext: {
|
|
429
|
+
readonly title: "Ext";
|
|
430
|
+
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.";
|
|
431
|
+
readonly type: "object";
|
|
432
|
+
readonly minProperties: 1;
|
|
433
|
+
readonly additionalProperties: true;
|
|
434
|
+
readonly propertyNames: {
|
|
435
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
readonly Approver: {
|
|
439
|
+
readonly title: "Approver";
|
|
440
|
+
readonly type: "object";
|
|
441
|
+
readonly additionalProperties: false;
|
|
442
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
443
|
+
readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
|
|
444
|
+
readonly properties: {
|
|
445
|
+
readonly approverDid: {
|
|
446
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
447
|
+
};
|
|
448
|
+
readonly subject: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly pattern: "^did:";
|
|
451
|
+
readonly minLength: 5;
|
|
452
|
+
readonly maxLength: 2048;
|
|
453
|
+
readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
|
|
454
|
+
};
|
|
455
|
+
readonly label: {
|
|
456
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
457
|
+
};
|
|
458
|
+
readonly enrolledAt: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly format: "date-time";
|
|
461
|
+
readonly description: "When the binding was written.";
|
|
462
|
+
};
|
|
463
|
+
readonly enrolledVia: {
|
|
464
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
465
|
+
};
|
|
466
|
+
readonly lastUsedAt: {
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
readonly format: "date-time";
|
|
469
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly EnrolledVia: {
|
|
474
|
+
readonly title: "EnrolledVia";
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
477
|
+
readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
|
|
478
|
+
};
|
|
479
|
+
readonly ApproverLabel: {
|
|
480
|
+
readonly title: "ApproverLabel";
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly minLength: 1;
|
|
483
|
+
readonly maxLength: 64;
|
|
484
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
485
|
+
};
|
|
486
|
+
readonly ApproverDid: {
|
|
487
|
+
readonly title: "ApproverDid";
|
|
488
|
+
readonly type: "string";
|
|
489
|
+
readonly minLength: 16;
|
|
490
|
+
readonly maxLength: 128;
|
|
491
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
492
|
+
readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
|
|
493
|
+
};
|
|
494
|
+
readonly AttestStatement: {
|
|
495
|
+
readonly title: "AttestStatement";
|
|
496
|
+
readonly type: "object";
|
|
497
|
+
readonly minProperties: 1;
|
|
498
|
+
readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/step-up/approver/enroll/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGpI;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC;AAExF,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8DAAuE,CAAC;AAEhG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAEtD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uEAAgF,CAAC;AAElH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|