@openvtc/trust-tasks 0.22.6 → 0.22.7
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 +48 -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/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/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,534 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/approver/revoke/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Approver, ApproverDid, ApproverLabel, EnrolledVia, Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Revoke one step-up approver binding — the caller's own, or another subject's within an administrator's authority. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthStepUpApproverRevokePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The approver to revoke.
|
|
12
|
+
*/
|
|
13
|
+
approverDid: ApproverDid;
|
|
14
|
+
/**
|
|
15
|
+
* The subject the approver is bound to. Absent means the caller; an administrator revoking on someone's behalf names it.
|
|
16
|
+
*/
|
|
17
|
+
subject?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Why the approver is revoked, for the audit record. Free text authored by the caller, untrusted, never published beyond the subject and the administrators over them.
|
|
20
|
+
*/
|
|
21
|
+
reason?: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The revoked binding, when it was revoked, and how many approvers the subject still holds.
|
|
26
|
+
*/
|
|
27
|
+
export interface AuthStepUpApproverRevokeResponsePayload {
|
|
28
|
+
revoked: Approver;
|
|
29
|
+
/**
|
|
30
|
+
* When the binding was revoked — the original time when the approver was already revoked.
|
|
31
|
+
*/
|
|
32
|
+
revokedAt: string;
|
|
33
|
+
/**
|
|
34
|
+
* The subject's live approvers after the revocation. Zero is legitimate and recoverable.
|
|
35
|
+
*/
|
|
36
|
+
remainingApprovers: number;
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
+
export type { Approver, ApproverDid, ApproverLabel, EnrolledVia, Ext };
|
|
41
|
+
/** Trust Task type URI. */
|
|
42
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1";
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = AuthStepUpApproverRevokePayload;
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1#response";
|
|
47
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
48
|
+
export type Response = AuthStepUpApproverRevokeResponsePayload;
|
|
49
|
+
/**
|
|
50
|
+
* This specification's payload schema, as a value.
|
|
51
|
+
*
|
|
52
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
53
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
54
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
55
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
56
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
57
|
+
*/
|
|
58
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
59
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
60
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1";
|
|
61
|
+
readonly title: "Auth — Step-up Approver Revoke — payload";
|
|
62
|
+
readonly description: "Revoke one step-up approver binding — the caller's own, or another subject's within an administrator's authority. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly required: readonly ["approverDid"];
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly approverDid: {
|
|
68
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
69
|
+
readonly description: "The approver to revoke.";
|
|
70
|
+
};
|
|
71
|
+
readonly subject: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly pattern: "^did:";
|
|
74
|
+
readonly minLength: 5;
|
|
75
|
+
readonly maxLength: 2048;
|
|
76
|
+
readonly description: "The subject the approver is bound to. Absent means the caller; an administrator revoking on someone's behalf names it.";
|
|
77
|
+
};
|
|
78
|
+
readonly reason: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly minLength: 1;
|
|
81
|
+
readonly maxLength: 500;
|
|
82
|
+
readonly description: "Why the approver is revoked, for the audit record. Free text authored by the caller, untrusted, never published beyond the subject and the administrators over them.";
|
|
83
|
+
};
|
|
84
|
+
readonly ext: {
|
|
85
|
+
readonly $ref: "#/$defs/Ext";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly $defs: {
|
|
89
|
+
readonly Response: {
|
|
90
|
+
readonly $anchor: "response";
|
|
91
|
+
readonly title: "Auth — Step-up Approver Revoke — response payload";
|
|
92
|
+
readonly description: "The revoked binding, when it was revoked, and how many approvers the subject still holds.";
|
|
93
|
+
readonly type: "object";
|
|
94
|
+
readonly additionalProperties: false;
|
|
95
|
+
readonly required: readonly ["revoked", "revokedAt", "remainingApprovers"];
|
|
96
|
+
readonly properties: {
|
|
97
|
+
readonly revoked: {
|
|
98
|
+
readonly $ref: "#/$defs/Approver";
|
|
99
|
+
};
|
|
100
|
+
readonly revokedAt: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly format: "date-time";
|
|
103
|
+
readonly description: "When the binding was revoked — the original time when the approver was already revoked.";
|
|
104
|
+
};
|
|
105
|
+
readonly remainingApprovers: {
|
|
106
|
+
readonly type: "integer";
|
|
107
|
+
readonly minimum: 0;
|
|
108
|
+
readonly maximum: 5;
|
|
109
|
+
readonly description: "The subject's live approvers after the revocation. Zero is legitimate and recoverable.";
|
|
110
|
+
};
|
|
111
|
+
readonly ext: {
|
|
112
|
+
readonly $ref: "#/$defs/Ext";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly Ext: {
|
|
117
|
+
readonly title: "Ext";
|
|
118
|
+
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.";
|
|
119
|
+
readonly type: "object";
|
|
120
|
+
readonly minProperties: 1;
|
|
121
|
+
readonly additionalProperties: true;
|
|
122
|
+
readonly propertyNames: {
|
|
123
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
readonly Approver: {
|
|
127
|
+
readonly title: "Approver";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
131
|
+
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`.";
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly approverDid: {
|
|
134
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
135
|
+
};
|
|
136
|
+
readonly subject: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly pattern: "^did:";
|
|
139
|
+
readonly minLength: 5;
|
|
140
|
+
readonly maxLength: 2048;
|
|
141
|
+
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.";
|
|
142
|
+
};
|
|
143
|
+
readonly label: {
|
|
144
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
145
|
+
};
|
|
146
|
+
readonly enrolledAt: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly format: "date-time";
|
|
149
|
+
readonly description: "When the binding was written.";
|
|
150
|
+
};
|
|
151
|
+
readonly enrolledVia: {
|
|
152
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
153
|
+
};
|
|
154
|
+
readonly lastUsedAt: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly format: "date-time";
|
|
157
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly EnrolledVia: {
|
|
162
|
+
readonly title: "EnrolledVia";
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
165
|
+
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.";
|
|
166
|
+
};
|
|
167
|
+
readonly ApproverLabel: {
|
|
168
|
+
readonly title: "ApproverLabel";
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly minLength: 1;
|
|
171
|
+
readonly maxLength: 64;
|
|
172
|
+
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.";
|
|
173
|
+
};
|
|
174
|
+
readonly ApproverDid: {
|
|
175
|
+
readonly title: "ApproverDid";
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly minLength: 16;
|
|
178
|
+
readonly maxLength: 128;
|
|
179
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
180
|
+
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.";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
185
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
186
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
187
|
+
readonly $ref: "#/$defs/Response";
|
|
188
|
+
readonly $defs: {
|
|
189
|
+
readonly Response: {
|
|
190
|
+
readonly $anchor: "response";
|
|
191
|
+
readonly title: "Auth — Step-up Approver Revoke — response payload";
|
|
192
|
+
readonly description: "The revoked binding, when it was revoked, and how many approvers the subject still holds.";
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly additionalProperties: false;
|
|
195
|
+
readonly required: readonly ["revoked", "revokedAt", "remainingApprovers"];
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly revoked: {
|
|
198
|
+
readonly $ref: "#/$defs/Approver";
|
|
199
|
+
};
|
|
200
|
+
readonly revokedAt: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly format: "date-time";
|
|
203
|
+
readonly description: "When the binding was revoked — the original time when the approver was already revoked.";
|
|
204
|
+
};
|
|
205
|
+
readonly remainingApprovers: {
|
|
206
|
+
readonly type: "integer";
|
|
207
|
+
readonly minimum: 0;
|
|
208
|
+
readonly maximum: 5;
|
|
209
|
+
readonly description: "The subject's live approvers after the revocation. Zero is legitimate and recoverable.";
|
|
210
|
+
};
|
|
211
|
+
readonly ext: {
|
|
212
|
+
readonly $ref: "#/$defs/Ext";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly Ext: {
|
|
217
|
+
readonly title: "Ext";
|
|
218
|
+
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.";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly minProperties: 1;
|
|
221
|
+
readonly additionalProperties: true;
|
|
222
|
+
readonly propertyNames: {
|
|
223
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly Approver: {
|
|
227
|
+
readonly title: "Approver";
|
|
228
|
+
readonly type: "object";
|
|
229
|
+
readonly additionalProperties: false;
|
|
230
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
231
|
+
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`.";
|
|
232
|
+
readonly properties: {
|
|
233
|
+
readonly approverDid: {
|
|
234
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
235
|
+
};
|
|
236
|
+
readonly subject: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly pattern: "^did:";
|
|
239
|
+
readonly minLength: 5;
|
|
240
|
+
readonly maxLength: 2048;
|
|
241
|
+
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.";
|
|
242
|
+
};
|
|
243
|
+
readonly label: {
|
|
244
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
245
|
+
};
|
|
246
|
+
readonly enrolledAt: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly format: "date-time";
|
|
249
|
+
readonly description: "When the binding was written.";
|
|
250
|
+
};
|
|
251
|
+
readonly enrolledVia: {
|
|
252
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
253
|
+
};
|
|
254
|
+
readonly lastUsedAt: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
readonly format: "date-time";
|
|
257
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
readonly EnrolledVia: {
|
|
262
|
+
readonly title: "EnrolledVia";
|
|
263
|
+
readonly type: "string";
|
|
264
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
265
|
+
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.";
|
|
266
|
+
};
|
|
267
|
+
readonly ApproverLabel: {
|
|
268
|
+
readonly title: "ApproverLabel";
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly minLength: 1;
|
|
271
|
+
readonly maxLength: 64;
|
|
272
|
+
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.";
|
|
273
|
+
};
|
|
274
|
+
readonly ApproverDid: {
|
|
275
|
+
readonly title: "ApproverDid";
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly minLength: 16;
|
|
278
|
+
readonly maxLength: 128;
|
|
279
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
280
|
+
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.";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
286
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
287
|
+
* per-specification and cannot be derived from the document alone, and
|
|
288
|
+
* item 2 needs the schema this carries.
|
|
289
|
+
*/
|
|
290
|
+
export declare const SPEC: {
|
|
291
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1";
|
|
292
|
+
readonly isBearer: false;
|
|
293
|
+
readonly isProofRequired: true;
|
|
294
|
+
readonly isRecipientRequired: true;
|
|
295
|
+
readonly isIssuedAtRequired: true;
|
|
296
|
+
readonly payloadSchema: {
|
|
297
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
298
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1";
|
|
299
|
+
readonly title: "Auth — Step-up Approver Revoke — payload";
|
|
300
|
+
readonly description: "Revoke one step-up approver binding — the caller's own, or another subject's within an administrator's authority. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
readonly required: readonly ["approverDid"];
|
|
304
|
+
readonly properties: {
|
|
305
|
+
readonly approverDid: {
|
|
306
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
307
|
+
readonly description: "The approver to revoke.";
|
|
308
|
+
};
|
|
309
|
+
readonly subject: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly pattern: "^did:";
|
|
312
|
+
readonly minLength: 5;
|
|
313
|
+
readonly maxLength: 2048;
|
|
314
|
+
readonly description: "The subject the approver is bound to. Absent means the caller; an administrator revoking on someone's behalf names it.";
|
|
315
|
+
};
|
|
316
|
+
readonly reason: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly minLength: 1;
|
|
319
|
+
readonly maxLength: 500;
|
|
320
|
+
readonly description: "Why the approver is revoked, for the audit record. Free text authored by the caller, untrusted, never published beyond the subject and the administrators over them.";
|
|
321
|
+
};
|
|
322
|
+
readonly ext: {
|
|
323
|
+
readonly $ref: "#/$defs/Ext";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly $defs: {
|
|
327
|
+
readonly Response: {
|
|
328
|
+
readonly $anchor: "response";
|
|
329
|
+
readonly title: "Auth — Step-up Approver Revoke — response payload";
|
|
330
|
+
readonly description: "The revoked binding, when it was revoked, and how many approvers the subject still holds.";
|
|
331
|
+
readonly type: "object";
|
|
332
|
+
readonly additionalProperties: false;
|
|
333
|
+
readonly required: readonly ["revoked", "revokedAt", "remainingApprovers"];
|
|
334
|
+
readonly properties: {
|
|
335
|
+
readonly revoked: {
|
|
336
|
+
readonly $ref: "#/$defs/Approver";
|
|
337
|
+
};
|
|
338
|
+
readonly revokedAt: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly format: "date-time";
|
|
341
|
+
readonly description: "When the binding was revoked — the original time when the approver was already revoked.";
|
|
342
|
+
};
|
|
343
|
+
readonly remainingApprovers: {
|
|
344
|
+
readonly type: "integer";
|
|
345
|
+
readonly minimum: 0;
|
|
346
|
+
readonly maximum: 5;
|
|
347
|
+
readonly description: "The subject's live approvers after the revocation. Zero is legitimate and recoverable.";
|
|
348
|
+
};
|
|
349
|
+
readonly ext: {
|
|
350
|
+
readonly $ref: "#/$defs/Ext";
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly Ext: {
|
|
355
|
+
readonly title: "Ext";
|
|
356
|
+
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.";
|
|
357
|
+
readonly type: "object";
|
|
358
|
+
readonly minProperties: 1;
|
|
359
|
+
readonly additionalProperties: true;
|
|
360
|
+
readonly propertyNames: {
|
|
361
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly Approver: {
|
|
365
|
+
readonly title: "Approver";
|
|
366
|
+
readonly type: "object";
|
|
367
|
+
readonly additionalProperties: false;
|
|
368
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
369
|
+
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`.";
|
|
370
|
+
readonly properties: {
|
|
371
|
+
readonly approverDid: {
|
|
372
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
373
|
+
};
|
|
374
|
+
readonly subject: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
readonly pattern: "^did:";
|
|
377
|
+
readonly minLength: 5;
|
|
378
|
+
readonly maxLength: 2048;
|
|
379
|
+
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.";
|
|
380
|
+
};
|
|
381
|
+
readonly label: {
|
|
382
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
383
|
+
};
|
|
384
|
+
readonly enrolledAt: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
readonly format: "date-time";
|
|
387
|
+
readonly description: "When the binding was written.";
|
|
388
|
+
};
|
|
389
|
+
readonly enrolledVia: {
|
|
390
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
391
|
+
};
|
|
392
|
+
readonly lastUsedAt: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly format: "date-time";
|
|
395
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
readonly EnrolledVia: {
|
|
400
|
+
readonly title: "EnrolledVia";
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
403
|
+
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.";
|
|
404
|
+
};
|
|
405
|
+
readonly ApproverLabel: {
|
|
406
|
+
readonly title: "ApproverLabel";
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly minLength: 1;
|
|
409
|
+
readonly maxLength: 64;
|
|
410
|
+
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.";
|
|
411
|
+
};
|
|
412
|
+
readonly ApproverDid: {
|
|
413
|
+
readonly title: "ApproverDid";
|
|
414
|
+
readonly type: "string";
|
|
415
|
+
readonly minLength: 16;
|
|
416
|
+
readonly maxLength: 128;
|
|
417
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
418
|
+
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.";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
425
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
426
|
+
* parties (§7.3 item 5).
|
|
427
|
+
*/
|
|
428
|
+
export declare const RESPONSE_SPEC: {
|
|
429
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/revoke/0.1#response";
|
|
430
|
+
readonly isBearer: false;
|
|
431
|
+
readonly isProofRequired: false;
|
|
432
|
+
readonly isRecipientRequired: true;
|
|
433
|
+
readonly isIssuedAtRequired: true;
|
|
434
|
+
readonly payloadSchema: {
|
|
435
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
436
|
+
readonly $ref: "#/$defs/Response";
|
|
437
|
+
readonly $defs: {
|
|
438
|
+
readonly Response: {
|
|
439
|
+
readonly $anchor: "response";
|
|
440
|
+
readonly title: "Auth — Step-up Approver Revoke — response payload";
|
|
441
|
+
readonly description: "The revoked binding, when it was revoked, and how many approvers the subject still holds.";
|
|
442
|
+
readonly type: "object";
|
|
443
|
+
readonly additionalProperties: false;
|
|
444
|
+
readonly required: readonly ["revoked", "revokedAt", "remainingApprovers"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly revoked: {
|
|
447
|
+
readonly $ref: "#/$defs/Approver";
|
|
448
|
+
};
|
|
449
|
+
readonly revokedAt: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly format: "date-time";
|
|
452
|
+
readonly description: "When the binding was revoked — the original time when the approver was already revoked.";
|
|
453
|
+
};
|
|
454
|
+
readonly remainingApprovers: {
|
|
455
|
+
readonly type: "integer";
|
|
456
|
+
readonly minimum: 0;
|
|
457
|
+
readonly maximum: 5;
|
|
458
|
+
readonly description: "The subject's live approvers after the revocation. Zero is legitimate and recoverable.";
|
|
459
|
+
};
|
|
460
|
+
readonly ext: {
|
|
461
|
+
readonly $ref: "#/$defs/Ext";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
readonly Ext: {
|
|
466
|
+
readonly title: "Ext";
|
|
467
|
+
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.";
|
|
468
|
+
readonly type: "object";
|
|
469
|
+
readonly minProperties: 1;
|
|
470
|
+
readonly additionalProperties: true;
|
|
471
|
+
readonly propertyNames: {
|
|
472
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
readonly Approver: {
|
|
476
|
+
readonly title: "Approver";
|
|
477
|
+
readonly type: "object";
|
|
478
|
+
readonly additionalProperties: false;
|
|
479
|
+
readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
|
|
480
|
+
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`.";
|
|
481
|
+
readonly properties: {
|
|
482
|
+
readonly approverDid: {
|
|
483
|
+
readonly $ref: "#/$defs/ApproverDid";
|
|
484
|
+
};
|
|
485
|
+
readonly subject: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly pattern: "^did:";
|
|
488
|
+
readonly minLength: 5;
|
|
489
|
+
readonly maxLength: 2048;
|
|
490
|
+
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.";
|
|
491
|
+
};
|
|
492
|
+
readonly label: {
|
|
493
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
494
|
+
};
|
|
495
|
+
readonly enrolledAt: {
|
|
496
|
+
readonly type: "string";
|
|
497
|
+
readonly format: "date-time";
|
|
498
|
+
readonly description: "When the binding was written.";
|
|
499
|
+
};
|
|
500
|
+
readonly enrolledVia: {
|
|
501
|
+
readonly $ref: "#/$defs/EnrolledVia";
|
|
502
|
+
};
|
|
503
|
+
readonly lastUsedAt: {
|
|
504
|
+
readonly type: "string";
|
|
505
|
+
readonly format: "date-time";
|
|
506
|
+
readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly EnrolledVia: {
|
|
511
|
+
readonly title: "EnrolledVia";
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly enum: readonly ["install", "invite", "selfService", "offline"];
|
|
514
|
+
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.";
|
|
515
|
+
};
|
|
516
|
+
readonly ApproverLabel: {
|
|
517
|
+
readonly title: "ApproverLabel";
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
readonly minLength: 1;
|
|
520
|
+
readonly maxLength: 64;
|
|
521
|
+
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.";
|
|
522
|
+
};
|
|
523
|
+
readonly ApproverDid: {
|
|
524
|
+
readonly title: "ApproverDid";
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly minLength: 16;
|
|
527
|
+
readonly maxLength: 128;
|
|
528
|
+
readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
|
|
529
|
+
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.";
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/step-up/approver/revoke/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGnH;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,OAAO,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC;AAEvE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|