@openvtc/trust-tasks 0.22.5 → 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 +80 -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/signing-key/authorize/0.1/payload.d.ts +199 -0
- package/dist/auth/signing-key/authorize/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/authorize/0.1/payload.js +108 -0
- package/dist/auth/signing-key/authorize/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/enroll/0.2/payload.d.ts +569 -0
- package/dist/auth/signing-key/enroll/0.2/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/enroll/0.2/payload.js +315 -0
- package/dist/auth/signing-key/enroll/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 +33 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -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/signing-key/authorize/0.1/payload.ts +141 -0
- package/src/auth/signing-key/enroll/0.2/payload.ts +365 -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 +33 -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,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/members/authority-reduced-notice/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A community tells a subject that an administrator reduced their administrative authority — revoked their entry, demoted their role, or narrowed what it allows — on whose authority, when, why, and whether anyone else agreed. Unsolicited: the subject did not ask. The removal of a member is vtc/members/removal-notice; this is the reduction of authority, which may leave the subject a member.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCMembersAuthorityReducedNoticePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The subject whose authority was reduced — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice still names its subject.
|
|
12
|
+
*/
|
|
13
|
+
did: string;
|
|
14
|
+
/**
|
|
15
|
+
* What happened. `revoked`: the subject's access control entry was removed. `demoted`: its role was changed to one with a lower ceiling. `narrowed`: its role stayed and what it allows was reduced.
|
|
16
|
+
*/
|
|
17
|
+
code: "revoked" | "demoted" | "narrowed";
|
|
18
|
+
/**
|
|
19
|
+
* The role the subject held before the change.
|
|
20
|
+
*/
|
|
21
|
+
previousRole: string;
|
|
22
|
+
/**
|
|
23
|
+
* The role the subject holds after the change. Absent exactly when `code` is `revoked`.
|
|
24
|
+
*/
|
|
25
|
+
resultingRole?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether a party other than the deciding administrator and the subject agreed. `consented`: the reduction ran on the consent of at least one other administrator. `unopposed`: nobody other than the decider and the subject held the authority to consent, so the decider's own re-authentication was the only gate. The distinction is the subject's evidence that a reduction no third party reviewed happened.
|
|
28
|
+
*/
|
|
29
|
+
agreement: "consented" | "unopposed";
|
|
30
|
+
/**
|
|
31
|
+
* The deciding administrator's stated reason, verbatim. Absent when none was given; absent and empty are different claims.
|
|
32
|
+
*/
|
|
33
|
+
reason?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When the reduction took effect — not when the notice was sent.
|
|
36
|
+
*/
|
|
37
|
+
decidedAt: string;
|
|
38
|
+
/**
|
|
39
|
+
* DID of the administrator who decided. The community itself is the document's issuer.
|
|
40
|
+
*/
|
|
41
|
+
decidedBy: string;
|
|
42
|
+
ext?: Ext;
|
|
43
|
+
}
|
|
44
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
45
|
+
export type { Ext };
|
|
46
|
+
/** Trust Task type URI. */
|
|
47
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1";
|
|
48
|
+
/** Stable alias for this specification's request payload shape. */
|
|
49
|
+
export type Payload = VTCMembersAuthorityReducedNoticePayload;
|
|
50
|
+
/**
|
|
51
|
+
* This specification's payload schema, as a value.
|
|
52
|
+
*
|
|
53
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
54
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
55
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
56
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
57
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
58
|
+
*/
|
|
59
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
60
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
61
|
+
readonly $id: "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1";
|
|
62
|
+
readonly title: "VTC Members Authority-Reduced Notice — payload";
|
|
63
|
+
readonly description: "A community tells a subject that an administrator reduced their administrative authority — revoked their entry, demoted their role, or narrowed what it allows — on whose authority, when, why, and whether anyone else agreed. Unsolicited: the subject did not ask. The removal of a member is vtc/members/removal-notice; this is the reduction of authority, which may leave the subject a member.";
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly additionalProperties: false;
|
|
66
|
+
readonly required: readonly ["did", "code", "previousRole", "decidedAt", "decidedBy", "agreement"];
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly did: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly minLength: 1;
|
|
71
|
+
readonly description: "The subject whose authority was reduced — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice still names its subject.";
|
|
72
|
+
};
|
|
73
|
+
readonly code: {
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
readonly enum: readonly ["revoked", "demoted", "narrowed"];
|
|
76
|
+
readonly description: "What happened. `revoked`: the subject's access control entry was removed. `demoted`: its role was changed to one with a lower ceiling. `narrowed`: its role stayed and what it allows was reduced.";
|
|
77
|
+
};
|
|
78
|
+
readonly previousRole: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly minLength: 1;
|
|
81
|
+
readonly maxLength: 128;
|
|
82
|
+
readonly description: "The role the subject held before the change.";
|
|
83
|
+
};
|
|
84
|
+
readonly resultingRole: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly minLength: 1;
|
|
87
|
+
readonly maxLength: 128;
|
|
88
|
+
readonly description: "The role the subject holds after the change. Absent exactly when `code` is `revoked`.";
|
|
89
|
+
};
|
|
90
|
+
readonly agreement: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly enum: readonly ["consented", "unopposed"];
|
|
93
|
+
readonly description: "Whether a party other than the deciding administrator and the subject agreed. `consented`: the reduction ran on the consent of at least one other administrator. `unopposed`: nobody other than the decider and the subject held the authority to consent, so the decider's own re-authentication was the only gate. The distinction is the subject's evidence that a reduction no third party reviewed happened.";
|
|
94
|
+
};
|
|
95
|
+
readonly reason: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly maxLength: 1024;
|
|
98
|
+
readonly description: "The deciding administrator's stated reason, verbatim. Absent when none was given; absent and empty are different claims.";
|
|
99
|
+
};
|
|
100
|
+
readonly decidedAt: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly format: "date-time";
|
|
103
|
+
readonly description: "When the reduction took effect — not when the notice was sent.";
|
|
104
|
+
};
|
|
105
|
+
readonly decidedBy: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly minLength: 1;
|
|
108
|
+
readonly description: "DID of the administrator who decided. The community itself is the document's issuer.";
|
|
109
|
+
};
|
|
110
|
+
readonly ext: {
|
|
111
|
+
readonly $ref: "#/$defs/Ext";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly $defs: {
|
|
115
|
+
readonly Ext: {
|
|
116
|
+
readonly title: "Ext";
|
|
117
|
+
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.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly minProperties: 1;
|
|
120
|
+
readonly additionalProperties: true;
|
|
121
|
+
readonly propertyNames: {
|
|
122
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
129
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
130
|
+
* per-specification and cannot be derived from the document alone, and
|
|
131
|
+
* item 2 needs the schema this carries.
|
|
132
|
+
*/
|
|
133
|
+
export declare const SPEC: {
|
|
134
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1";
|
|
135
|
+
readonly isBearer: false;
|
|
136
|
+
readonly isProofRequired: true;
|
|
137
|
+
readonly isRecipientRequired: true;
|
|
138
|
+
readonly isIssuedAtRequired: true;
|
|
139
|
+
readonly payloadSchema: {
|
|
140
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
141
|
+
readonly $id: "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1";
|
|
142
|
+
readonly title: "VTC Members Authority-Reduced Notice — payload";
|
|
143
|
+
readonly description: "A community tells a subject that an administrator reduced their administrative authority — revoked their entry, demoted their role, or narrowed what it allows — on whose authority, when, why, and whether anyone else agreed. Unsolicited: the subject did not ask. The removal of a member is vtc/members/removal-notice; this is the reduction of authority, which may leave the subject a member.";
|
|
144
|
+
readonly type: "object";
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
readonly required: readonly ["did", "code", "previousRole", "decidedAt", "decidedBy", "agreement"];
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly did: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly minLength: 1;
|
|
151
|
+
readonly description: "The subject whose authority was reduced — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice still names its subject.";
|
|
152
|
+
};
|
|
153
|
+
readonly code: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly enum: readonly ["revoked", "demoted", "narrowed"];
|
|
156
|
+
readonly description: "What happened. `revoked`: the subject's access control entry was removed. `demoted`: its role was changed to one with a lower ceiling. `narrowed`: its role stayed and what it allows was reduced.";
|
|
157
|
+
};
|
|
158
|
+
readonly previousRole: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly minLength: 1;
|
|
161
|
+
readonly maxLength: 128;
|
|
162
|
+
readonly description: "The role the subject held before the change.";
|
|
163
|
+
};
|
|
164
|
+
readonly resultingRole: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly minLength: 1;
|
|
167
|
+
readonly maxLength: 128;
|
|
168
|
+
readonly description: "The role the subject holds after the change. Absent exactly when `code` is `revoked`.";
|
|
169
|
+
};
|
|
170
|
+
readonly agreement: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
readonly enum: readonly ["consented", "unopposed"];
|
|
173
|
+
readonly description: "Whether a party other than the deciding administrator and the subject agreed. `consented`: the reduction ran on the consent of at least one other administrator. `unopposed`: nobody other than the decider and the subject held the authority to consent, so the decider's own re-authentication was the only gate. The distinction is the subject's evidence that a reduction no third party reviewed happened.";
|
|
174
|
+
};
|
|
175
|
+
readonly reason: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly maxLength: 1024;
|
|
178
|
+
readonly description: "The deciding administrator's stated reason, verbatim. Absent when none was given; absent and empty are different claims.";
|
|
179
|
+
};
|
|
180
|
+
readonly decidedAt: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly format: "date-time";
|
|
183
|
+
readonly description: "When the reduction took effect — not when the notice was sent.";
|
|
184
|
+
};
|
|
185
|
+
readonly decidedBy: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly minLength: 1;
|
|
188
|
+
readonly description: "DID of the administrator who decided. The community itself is the document's issuer.";
|
|
189
|
+
};
|
|
190
|
+
readonly ext: {
|
|
191
|
+
readonly $ref: "#/$defs/Ext";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly $defs: {
|
|
195
|
+
readonly Ext: {
|
|
196
|
+
readonly title: "Ext";
|
|
197
|
+
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.";
|
|
198
|
+
readonly type: "object";
|
|
199
|
+
readonly minProperties: 1;
|
|
200
|
+
readonly additionalProperties: true;
|
|
201
|
+
readonly propertyNames: {
|
|
202
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/members/authority-reduced-notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,WAAW,GAAG,WAAW,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sEAA+E,CAAC;AAExG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uCAAuC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/members/authority-reduced-notice/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* This specification's payload schema, as a value.
|
|
9
|
+
*
|
|
10
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
11
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
12
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
13
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
14
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
15
|
+
*/
|
|
16
|
+
export const PAYLOAD_SCHEMA = {
|
|
17
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18
|
+
"$id": "https://trusttasks.org/spec/vtc/members/authority-reduced-notice/0.1",
|
|
19
|
+
"title": "VTC Members Authority-Reduced Notice — payload",
|
|
20
|
+
"description": "A community tells a subject that an administrator reduced their administrative authority — revoked their entry, demoted their role, or narrowed what it allows — on whose authority, when, why, and whether anyone else agreed. Unsolicited: the subject did not ask. The removal of a member is vtc/members/removal-notice; this is the reduction of authority, which may leave the subject a member.",
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"did",
|
|
25
|
+
"code",
|
|
26
|
+
"previousRole",
|
|
27
|
+
"decidedAt",
|
|
28
|
+
"decidedBy",
|
|
29
|
+
"agreement"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"did": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"description": "The subject whose authority was reduced — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice still names its subject."
|
|
36
|
+
},
|
|
37
|
+
"code": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"revoked",
|
|
41
|
+
"demoted",
|
|
42
|
+
"narrowed"
|
|
43
|
+
],
|
|
44
|
+
"description": "What happened. `revoked`: the subject's access control entry was removed. `demoted`: its role was changed to one with a lower ceiling. `narrowed`: its role stayed and what it allows was reduced."
|
|
45
|
+
},
|
|
46
|
+
"previousRole": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1,
|
|
49
|
+
"maxLength": 128,
|
|
50
|
+
"description": "The role the subject held before the change."
|
|
51
|
+
},
|
|
52
|
+
"resultingRole": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"maxLength": 128,
|
|
56
|
+
"description": "The role the subject holds after the change. Absent exactly when `code` is `revoked`."
|
|
57
|
+
},
|
|
58
|
+
"agreement": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"consented",
|
|
62
|
+
"unopposed"
|
|
63
|
+
],
|
|
64
|
+
"description": "Whether a party other than the deciding administrator and the subject agreed. `consented`: the reduction ran on the consent of at least one other administrator. `unopposed`: nobody other than the decider and the subject held the authority to consent, so the decider's own re-authentication was the only gate. The distinction is the subject's evidence that a reduction no third party reviewed happened."
|
|
65
|
+
},
|
|
66
|
+
"reason": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"maxLength": 1024,
|
|
69
|
+
"description": "The deciding administrator's stated reason, verbatim. Absent when none was given; absent and empty are different claims."
|
|
70
|
+
},
|
|
71
|
+
"decidedAt": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"format": "date-time",
|
|
74
|
+
"description": "When the reduction took effect — not when the notice was sent."
|
|
75
|
+
},
|
|
76
|
+
"decidedBy": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1,
|
|
79
|
+
"description": "DID of the administrator who decided. The community itself is the document's issuer."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
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
|
+
/**
|
|
99
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
100
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
101
|
+
* per-specification and cannot be derived from the document alone, and
|
|
102
|
+
* item 2 needs the schema this carries.
|
|
103
|
+
*/
|
|
104
|
+
export const SPEC = {
|
|
105
|
+
typeUri: TYPE_URI,
|
|
106
|
+
isBearer: false,
|
|
107
|
+
isProofRequired: true,
|
|
108
|
+
isRecipientRequired: true,
|
|
109
|
+
isIssuedAtRequired: true,
|
|
110
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/authority-reduced-notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sEAA+E,CAAC;AAKxG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sEAAsE;IAC7E,OAAO,EAAE,gDAAgD;IACzD,aAAa,EAAE,wYAAwY;IACvZ,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,KAAK;QACL,MAAM;QACN,cAAc;QACd,WAAW;QACX,WAAW;QACX,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,sKAAsK;SACtL;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,SAAS;gBACT,UAAU;aACX;YACD,aAAa,EAAE,oMAAoM;SACpN;QACD,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,8CAA8C;SAC9D;QACD,eAAe,EAAE;YACf,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,uFAAuF;SACvG;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,WAAW;gBACX,WAAW;aACZ;YACD,aAAa,EAAE,mZAAmZ;SACna;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,0HAA0H;SAC1I;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,gEAAgE;SAChF;QACD,WAAW,EAAE;YACX,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,sFAAsF;SACtG;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/roles/_shared/0.1/role.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The administrative role vocabulary of a Verifiable Trust Community, as records. Not itself a Trust Task specification. Capability references reuse acl/_shared/0.2's `CapabilityRef`, so a capability means the same thing on a role as on the AclEntry it bounds.
|
|
7
|
+
*/
|
|
8
|
+
export interface RoleDefinitionSharedDefinitionForTheVtcRolesSpecFamily {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
13
|
+
* See "../../../../_shared/components.js".
|
|
14
|
+
*/
|
|
15
|
+
export type { RoleDefinition, RoleName } from "../../../../_shared/components.js";
|
|
16
|
+
//# sourceMappingURL=role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/roles/_shared/0.1/role.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sDAAsD;IACrE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../../../src/vtc/roles/_shared/0.1/role.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|