@openvtc/trust-tasks 0.21.11 → 0.21.12
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 +54 -0
- package/dist/_framework/0.4/framework.d.ts +1 -1
- package/dist/_framework/0.4/framework.d.ts.map +1 -1
- package/dist/_shared/components.d.ts +371 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
- package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
- package/dist/auth/_shared/0.1/signing-key.js +6 -0
- package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.js +289 -0
- package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
- package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
- package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
- package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
- package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
- package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
- package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
- package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
- package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.js +360 -0
- package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.js +300 -0
- package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.js +292 -0
- package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.js +279 -0
- package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.js +213 -0
- package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.js +247 -0
- package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_framework/0.4/framework.ts +1 -1
- package/src/_shared/components.ts +371 -0
- package/src/auth/_shared/0.1/signing-key.ts +17 -0
- package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
- package/src/auth/signing-key/list/0.1/payload.ts +323 -0
- package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
- package/src/index.ts +38 -0
- package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
- package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
- package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
- package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
- package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
- package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
- package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
- package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
- package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
- package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
- package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
- package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
- package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
- package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
- package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
- package/src/vtc/rooms/list/0.1/payload.ts +449 -0
- package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
- package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
- package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
- package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/list/0.1/payload.ts +344 -0
- package/src/vtc/schemas/register/0.1/payload.ts +325 -0
- package/src/vtc/schemas/show/0.1/payload.ts +308 -0
- package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
- package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
- package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
- package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
- package/src/vtc/website/deploy/0.1/payload.ts +255 -0
- package/src/vtc/website/files/show/0.1/payload.ts +303 -0
- package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
- package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
- package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
- package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
|
@@ -0,0 +1,1016 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/join-requests/vetting/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DigestMultibase, Ext, VettingMethod, VettingRelationship } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An administrator reads the vetting facts one join request was decided on. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCJoinRequestsVettingShowPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The join request, as vtc/join-requests/list returns it.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface VTCJoinRequestsVettingShowResponsePayload {
|
|
17
|
+
/**
|
|
18
|
+
* Echoed.
|
|
19
|
+
*/
|
|
20
|
+
requestId: string;
|
|
21
|
+
vetting?: VettingFacts;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.
|
|
26
|
+
*/
|
|
27
|
+
export interface VettingFacts {
|
|
28
|
+
/**
|
|
29
|
+
* The Accepts criterion whose requirements were applied.
|
|
30
|
+
*/
|
|
31
|
+
criterionId: string;
|
|
32
|
+
requirementsDigest: DigestMultibase;
|
|
33
|
+
/**
|
|
34
|
+
* The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.
|
|
35
|
+
*/
|
|
36
|
+
applicantDigestMatches: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @maxItems 64
|
|
39
|
+
*/
|
|
40
|
+
statements: VettingStatementFacts[];
|
|
41
|
+
/**
|
|
42
|
+
* Distinct eligible vetters counted, each once however many DIDs they hold.
|
|
43
|
+
*/
|
|
44
|
+
distinctCountedVetters: number;
|
|
45
|
+
/**
|
|
46
|
+
* Counted statements by method.
|
|
47
|
+
*/
|
|
48
|
+
byMethod: {
|
|
49
|
+
[k: string]: number | undefined;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Every counted statement carries the same identity commitment.
|
|
53
|
+
*/
|
|
54
|
+
commitmentsConsistent: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* No declared-relationship cap was exceeded.
|
|
57
|
+
*/
|
|
58
|
+
independenceOk: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The requirements demanded an invitation.
|
|
61
|
+
*/
|
|
62
|
+
invitationRequired: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Count, method floors, consistency and independence all held.
|
|
65
|
+
*/
|
|
66
|
+
satisfied: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.
|
|
69
|
+
*
|
|
70
|
+
* @maxItems 16
|
|
71
|
+
*/
|
|
72
|
+
needs: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [
|
|
73
|
+
string,
|
|
74
|
+
string,
|
|
75
|
+
string,
|
|
76
|
+
string,
|
|
77
|
+
string,
|
|
78
|
+
string,
|
|
79
|
+
string,
|
|
80
|
+
string,
|
|
81
|
+
string,
|
|
82
|
+
string,
|
|
83
|
+
string,
|
|
84
|
+
string,
|
|
85
|
+
string,
|
|
86
|
+
string,
|
|
87
|
+
string
|
|
88
|
+
] | [
|
|
89
|
+
string,
|
|
90
|
+
string,
|
|
91
|
+
string,
|
|
92
|
+
string,
|
|
93
|
+
string,
|
|
94
|
+
string,
|
|
95
|
+
string,
|
|
96
|
+
string,
|
|
97
|
+
string,
|
|
98
|
+
string,
|
|
99
|
+
string,
|
|
100
|
+
string,
|
|
101
|
+
string,
|
|
102
|
+
string,
|
|
103
|
+
string,
|
|
104
|
+
string
|
|
105
|
+
];
|
|
106
|
+
/**
|
|
107
|
+
* When the facts were recorded.
|
|
108
|
+
*/
|
|
109
|
+
recordedAt: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.
|
|
113
|
+
*/
|
|
114
|
+
export interface VettingStatementFacts {
|
|
115
|
+
/**
|
|
116
|
+
* The statement's `id`, when it had one.
|
|
117
|
+
*/
|
|
118
|
+
id?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The vetter who issued it, when it could be read.
|
|
121
|
+
*/
|
|
122
|
+
issuer?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Its proof, type, validity window and body verified.
|
|
125
|
+
*/
|
|
126
|
+
verified: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Its issuer was an eligible vetter at the decision.
|
|
129
|
+
*/
|
|
130
|
+
eligible: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Withdrawn by its vetter before the decision.
|
|
133
|
+
*/
|
|
134
|
+
revoked: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.
|
|
137
|
+
*/
|
|
138
|
+
withdrawnNow: boolean;
|
|
139
|
+
method?: VettingMethod;
|
|
140
|
+
declaredRelationship?: VettingRelationship;
|
|
141
|
+
/**
|
|
142
|
+
* It counted toward the requirements.
|
|
143
|
+
*/
|
|
144
|
+
counted: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.
|
|
147
|
+
*
|
|
148
|
+
* @maxItems 16
|
|
149
|
+
*/
|
|
150
|
+
failures: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [
|
|
151
|
+
string,
|
|
152
|
+
string,
|
|
153
|
+
string,
|
|
154
|
+
string,
|
|
155
|
+
string,
|
|
156
|
+
string,
|
|
157
|
+
string,
|
|
158
|
+
string,
|
|
159
|
+
string,
|
|
160
|
+
string,
|
|
161
|
+
string,
|
|
162
|
+
string,
|
|
163
|
+
string,
|
|
164
|
+
string,
|
|
165
|
+
string
|
|
166
|
+
] | [
|
|
167
|
+
string,
|
|
168
|
+
string,
|
|
169
|
+
string,
|
|
170
|
+
string,
|
|
171
|
+
string,
|
|
172
|
+
string,
|
|
173
|
+
string,
|
|
174
|
+
string,
|
|
175
|
+
string,
|
|
176
|
+
string,
|
|
177
|
+
string,
|
|
178
|
+
string,
|
|
179
|
+
string,
|
|
180
|
+
string,
|
|
181
|
+
string,
|
|
182
|
+
string
|
|
183
|
+
];
|
|
184
|
+
}
|
|
185
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
186
|
+
export type { DigestMultibase, Ext, VettingMethod, VettingRelationship };
|
|
187
|
+
/** Trust Task type URI. */
|
|
188
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1";
|
|
189
|
+
/** Stable alias for this specification's request payload shape. */
|
|
190
|
+
export type Payload = VTCJoinRequestsVettingShowPayload;
|
|
191
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
192
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1#response";
|
|
193
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
194
|
+
export type Response = VTCJoinRequestsVettingShowResponsePayload;
|
|
195
|
+
/**
|
|
196
|
+
* This specification's payload schema, as a value.
|
|
197
|
+
*
|
|
198
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
199
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
200
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
201
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
202
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
203
|
+
*/
|
|
204
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
205
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
206
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1";
|
|
207
|
+
readonly title: "VTC Join Requests — Vetting — Show — payload";
|
|
208
|
+
readonly description: "An administrator reads the vetting facts one join request was decided on. The outer document members are owned by the framework — SPEC §6.3.";
|
|
209
|
+
readonly type: "object";
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
readonly required: readonly ["id"];
|
|
212
|
+
readonly properties: {
|
|
213
|
+
readonly id: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
216
|
+
readonly description: "The join request, as vtc/join-requests/list returns it.";
|
|
217
|
+
};
|
|
218
|
+
readonly ext: {
|
|
219
|
+
readonly $ref: "#/$defs/Ext";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
readonly $defs: {
|
|
223
|
+
readonly VettingStatementFacts: {
|
|
224
|
+
readonly title: "VettingStatementFacts";
|
|
225
|
+
readonly type: "object";
|
|
226
|
+
readonly additionalProperties: false;
|
|
227
|
+
readonly required: readonly ["verified", "eligible", "revoked", "withdrawnNow", "counted", "failures"];
|
|
228
|
+
readonly description: "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.";
|
|
229
|
+
readonly properties: {
|
|
230
|
+
readonly id: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly minLength: 1;
|
|
233
|
+
readonly maxLength: 2048;
|
|
234
|
+
readonly description: "The statement's `id`, when it had one.";
|
|
235
|
+
};
|
|
236
|
+
readonly issuer: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly pattern: "^did:";
|
|
239
|
+
readonly maxLength: 2048;
|
|
240
|
+
readonly description: "The vetter who issued it, when it could be read.";
|
|
241
|
+
};
|
|
242
|
+
readonly verified: {
|
|
243
|
+
readonly type: "boolean";
|
|
244
|
+
readonly description: "Its proof, type, validity window and body verified.";
|
|
245
|
+
};
|
|
246
|
+
readonly eligible: {
|
|
247
|
+
readonly type: "boolean";
|
|
248
|
+
readonly description: "Its issuer was an eligible vetter at the decision.";
|
|
249
|
+
};
|
|
250
|
+
readonly revoked: {
|
|
251
|
+
readonly type: "boolean";
|
|
252
|
+
readonly description: "Withdrawn by its vetter before the decision.";
|
|
253
|
+
};
|
|
254
|
+
readonly withdrawnNow: {
|
|
255
|
+
readonly type: "boolean";
|
|
256
|
+
readonly description: "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.";
|
|
257
|
+
};
|
|
258
|
+
readonly method: {
|
|
259
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
260
|
+
};
|
|
261
|
+
readonly declaredRelationship: {
|
|
262
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
263
|
+
};
|
|
264
|
+
readonly counted: {
|
|
265
|
+
readonly type: "boolean";
|
|
266
|
+
readonly description: "It counted toward the requirements.";
|
|
267
|
+
};
|
|
268
|
+
readonly failures: {
|
|
269
|
+
readonly type: "array";
|
|
270
|
+
readonly maxItems: 16;
|
|
271
|
+
readonly items: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly minLength: 1;
|
|
274
|
+
readonly maxLength: 128;
|
|
275
|
+
};
|
|
276
|
+
readonly description: "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly VettingFacts: {
|
|
281
|
+
readonly title: "VettingFacts";
|
|
282
|
+
readonly type: "object";
|
|
283
|
+
readonly additionalProperties: false;
|
|
284
|
+
readonly required: readonly ["criterionId", "requirementsDigest", "applicantDigestMatches", "statements", "distinctCountedVetters", "byMethod", "commitmentsConsistent", "independenceOk", "invitationRequired", "satisfied", "needs", "recordedAt"];
|
|
285
|
+
readonly description: "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.";
|
|
286
|
+
readonly properties: {
|
|
287
|
+
readonly criterionId: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly minLength: 1;
|
|
290
|
+
readonly maxLength: 128;
|
|
291
|
+
readonly description: "The Accepts criterion whose requirements were applied.";
|
|
292
|
+
};
|
|
293
|
+
readonly requirementsDigest: {
|
|
294
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
295
|
+
};
|
|
296
|
+
readonly applicantDigestMatches: {
|
|
297
|
+
readonly type: "boolean";
|
|
298
|
+
readonly description: "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.";
|
|
299
|
+
};
|
|
300
|
+
readonly statements: {
|
|
301
|
+
readonly type: "array";
|
|
302
|
+
readonly maxItems: 64;
|
|
303
|
+
readonly items: {
|
|
304
|
+
readonly $ref: "#/$defs/VettingStatementFacts";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly distinctCountedVetters: {
|
|
308
|
+
readonly type: "integer";
|
|
309
|
+
readonly minimum: 0;
|
|
310
|
+
readonly description: "Distinct eligible vetters counted, each once however many DIDs they hold.";
|
|
311
|
+
};
|
|
312
|
+
readonly byMethod: {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly propertyNames: {
|
|
315
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
316
|
+
};
|
|
317
|
+
readonly additionalProperties: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
readonly minimum: 0;
|
|
320
|
+
};
|
|
321
|
+
readonly description: "Counted statements by method.";
|
|
322
|
+
};
|
|
323
|
+
readonly commitmentsConsistent: {
|
|
324
|
+
readonly type: "boolean";
|
|
325
|
+
readonly description: "Every counted statement carries the same identity commitment.";
|
|
326
|
+
};
|
|
327
|
+
readonly independenceOk: {
|
|
328
|
+
readonly type: "boolean";
|
|
329
|
+
readonly description: "No declared-relationship cap was exceeded.";
|
|
330
|
+
};
|
|
331
|
+
readonly invitationRequired: {
|
|
332
|
+
readonly type: "boolean";
|
|
333
|
+
readonly description: "The requirements demanded an invitation.";
|
|
334
|
+
};
|
|
335
|
+
readonly satisfied: {
|
|
336
|
+
readonly type: "boolean";
|
|
337
|
+
readonly description: "Count, method floors, consistency and independence all held.";
|
|
338
|
+
};
|
|
339
|
+
readonly needs: {
|
|
340
|
+
readonly type: "array";
|
|
341
|
+
readonly maxItems: 16;
|
|
342
|
+
readonly items: {
|
|
343
|
+
readonly type: "string";
|
|
344
|
+
readonly minLength: 1;
|
|
345
|
+
readonly maxLength: 128;
|
|
346
|
+
};
|
|
347
|
+
readonly description: "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.";
|
|
348
|
+
};
|
|
349
|
+
readonly recordedAt: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly format: "date-time";
|
|
352
|
+
readonly description: "When the facts were recorded.";
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly Response: {
|
|
357
|
+
readonly $anchor: "response";
|
|
358
|
+
readonly title: "VTC Join Requests — Vetting — Show — response payload";
|
|
359
|
+
readonly type: "object";
|
|
360
|
+
readonly additionalProperties: false;
|
|
361
|
+
readonly required: readonly ["requestId"];
|
|
362
|
+
readonly properties: {
|
|
363
|
+
readonly requestId: {
|
|
364
|
+
readonly type: "string";
|
|
365
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
366
|
+
readonly description: "Echoed.";
|
|
367
|
+
};
|
|
368
|
+
readonly vetting: {
|
|
369
|
+
readonly $ref: "#/$defs/VettingFacts";
|
|
370
|
+
};
|
|
371
|
+
readonly ext: {
|
|
372
|
+
readonly $ref: "#/$defs/Ext";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
readonly Ext: {
|
|
377
|
+
readonly title: "Ext";
|
|
378
|
+
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.";
|
|
379
|
+
readonly type: "object";
|
|
380
|
+
readonly minProperties: 1;
|
|
381
|
+
readonly additionalProperties: true;
|
|
382
|
+
readonly propertyNames: {
|
|
383
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
readonly VettingMethod: {
|
|
387
|
+
readonly title: "VettingMethod";
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
390
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
391
|
+
};
|
|
392
|
+
readonly DigestMultibase: {
|
|
393
|
+
readonly title: "DigestMultibase";
|
|
394
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly minLength: 16;
|
|
397
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
398
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
399
|
+
};
|
|
400
|
+
readonly VettingRelationship: {
|
|
401
|
+
readonly title: "VettingRelationship";
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
404
|
+
readonly description: "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act.";
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
409
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
410
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
411
|
+
readonly $ref: "#/$defs/Response";
|
|
412
|
+
readonly $defs: {
|
|
413
|
+
readonly VettingStatementFacts: {
|
|
414
|
+
readonly title: "VettingStatementFacts";
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly additionalProperties: false;
|
|
417
|
+
readonly required: readonly ["verified", "eligible", "revoked", "withdrawnNow", "counted", "failures"];
|
|
418
|
+
readonly description: "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.";
|
|
419
|
+
readonly properties: {
|
|
420
|
+
readonly id: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly minLength: 1;
|
|
423
|
+
readonly maxLength: 2048;
|
|
424
|
+
readonly description: "The statement's `id`, when it had one.";
|
|
425
|
+
};
|
|
426
|
+
readonly issuer: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly pattern: "^did:";
|
|
429
|
+
readonly maxLength: 2048;
|
|
430
|
+
readonly description: "The vetter who issued it, when it could be read.";
|
|
431
|
+
};
|
|
432
|
+
readonly verified: {
|
|
433
|
+
readonly type: "boolean";
|
|
434
|
+
readonly description: "Its proof, type, validity window and body verified.";
|
|
435
|
+
};
|
|
436
|
+
readonly eligible: {
|
|
437
|
+
readonly type: "boolean";
|
|
438
|
+
readonly description: "Its issuer was an eligible vetter at the decision.";
|
|
439
|
+
};
|
|
440
|
+
readonly revoked: {
|
|
441
|
+
readonly type: "boolean";
|
|
442
|
+
readonly description: "Withdrawn by its vetter before the decision.";
|
|
443
|
+
};
|
|
444
|
+
readonly withdrawnNow: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
readonly description: "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.";
|
|
447
|
+
};
|
|
448
|
+
readonly method: {
|
|
449
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
450
|
+
};
|
|
451
|
+
readonly declaredRelationship: {
|
|
452
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
453
|
+
};
|
|
454
|
+
readonly counted: {
|
|
455
|
+
readonly type: "boolean";
|
|
456
|
+
readonly description: "It counted toward the requirements.";
|
|
457
|
+
};
|
|
458
|
+
readonly failures: {
|
|
459
|
+
readonly type: "array";
|
|
460
|
+
readonly maxItems: 16;
|
|
461
|
+
readonly items: {
|
|
462
|
+
readonly type: "string";
|
|
463
|
+
readonly minLength: 1;
|
|
464
|
+
readonly maxLength: 128;
|
|
465
|
+
};
|
|
466
|
+
readonly description: "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
readonly VettingFacts: {
|
|
471
|
+
readonly title: "VettingFacts";
|
|
472
|
+
readonly type: "object";
|
|
473
|
+
readonly additionalProperties: false;
|
|
474
|
+
readonly required: readonly ["criterionId", "requirementsDigest", "applicantDigestMatches", "statements", "distinctCountedVetters", "byMethod", "commitmentsConsistent", "independenceOk", "invitationRequired", "satisfied", "needs", "recordedAt"];
|
|
475
|
+
readonly description: "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.";
|
|
476
|
+
readonly properties: {
|
|
477
|
+
readonly criterionId: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
readonly minLength: 1;
|
|
480
|
+
readonly maxLength: 128;
|
|
481
|
+
readonly description: "The Accepts criterion whose requirements were applied.";
|
|
482
|
+
};
|
|
483
|
+
readonly requirementsDigest: {
|
|
484
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
485
|
+
};
|
|
486
|
+
readonly applicantDigestMatches: {
|
|
487
|
+
readonly type: "boolean";
|
|
488
|
+
readonly description: "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.";
|
|
489
|
+
};
|
|
490
|
+
readonly statements: {
|
|
491
|
+
readonly type: "array";
|
|
492
|
+
readonly maxItems: 64;
|
|
493
|
+
readonly items: {
|
|
494
|
+
readonly $ref: "#/$defs/VettingStatementFacts";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly distinctCountedVetters: {
|
|
498
|
+
readonly type: "integer";
|
|
499
|
+
readonly minimum: 0;
|
|
500
|
+
readonly description: "Distinct eligible vetters counted, each once however many DIDs they hold.";
|
|
501
|
+
};
|
|
502
|
+
readonly byMethod: {
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly propertyNames: {
|
|
505
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
506
|
+
};
|
|
507
|
+
readonly additionalProperties: {
|
|
508
|
+
readonly type: "integer";
|
|
509
|
+
readonly minimum: 0;
|
|
510
|
+
};
|
|
511
|
+
readonly description: "Counted statements by method.";
|
|
512
|
+
};
|
|
513
|
+
readonly commitmentsConsistent: {
|
|
514
|
+
readonly type: "boolean";
|
|
515
|
+
readonly description: "Every counted statement carries the same identity commitment.";
|
|
516
|
+
};
|
|
517
|
+
readonly independenceOk: {
|
|
518
|
+
readonly type: "boolean";
|
|
519
|
+
readonly description: "No declared-relationship cap was exceeded.";
|
|
520
|
+
};
|
|
521
|
+
readonly invitationRequired: {
|
|
522
|
+
readonly type: "boolean";
|
|
523
|
+
readonly description: "The requirements demanded an invitation.";
|
|
524
|
+
};
|
|
525
|
+
readonly satisfied: {
|
|
526
|
+
readonly type: "boolean";
|
|
527
|
+
readonly description: "Count, method floors, consistency and independence all held.";
|
|
528
|
+
};
|
|
529
|
+
readonly needs: {
|
|
530
|
+
readonly type: "array";
|
|
531
|
+
readonly maxItems: 16;
|
|
532
|
+
readonly items: {
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
readonly minLength: 1;
|
|
535
|
+
readonly maxLength: 128;
|
|
536
|
+
};
|
|
537
|
+
readonly description: "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.";
|
|
538
|
+
};
|
|
539
|
+
readonly recordedAt: {
|
|
540
|
+
readonly type: "string";
|
|
541
|
+
readonly format: "date-time";
|
|
542
|
+
readonly description: "When the facts were recorded.";
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
readonly Response: {
|
|
547
|
+
readonly $anchor: "response";
|
|
548
|
+
readonly title: "VTC Join Requests — Vetting — Show — response payload";
|
|
549
|
+
readonly type: "object";
|
|
550
|
+
readonly additionalProperties: false;
|
|
551
|
+
readonly required: readonly ["requestId"];
|
|
552
|
+
readonly properties: {
|
|
553
|
+
readonly requestId: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
556
|
+
readonly description: "Echoed.";
|
|
557
|
+
};
|
|
558
|
+
readonly vetting: {
|
|
559
|
+
readonly $ref: "#/$defs/VettingFacts";
|
|
560
|
+
};
|
|
561
|
+
readonly ext: {
|
|
562
|
+
readonly $ref: "#/$defs/Ext";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
readonly Ext: {
|
|
567
|
+
readonly title: "Ext";
|
|
568
|
+
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.";
|
|
569
|
+
readonly type: "object";
|
|
570
|
+
readonly minProperties: 1;
|
|
571
|
+
readonly additionalProperties: true;
|
|
572
|
+
readonly propertyNames: {
|
|
573
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly VettingMethod: {
|
|
577
|
+
readonly title: "VettingMethod";
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
580
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
581
|
+
};
|
|
582
|
+
readonly DigestMultibase: {
|
|
583
|
+
readonly title: "DigestMultibase";
|
|
584
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
585
|
+
readonly type: "string";
|
|
586
|
+
readonly minLength: 16;
|
|
587
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
588
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
589
|
+
};
|
|
590
|
+
readonly VettingRelationship: {
|
|
591
|
+
readonly title: "VettingRelationship";
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
594
|
+
readonly description: "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act.";
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
600
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
601
|
+
* per-specification and cannot be derived from the document alone, and
|
|
602
|
+
* item 2 needs the schema this carries.
|
|
603
|
+
*/
|
|
604
|
+
export declare const SPEC: {
|
|
605
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1";
|
|
606
|
+
readonly isBearer: false;
|
|
607
|
+
readonly isProofRequired: false;
|
|
608
|
+
readonly isRecipientRequired: true;
|
|
609
|
+
readonly isIssuedAtRequired: false;
|
|
610
|
+
readonly payloadSchema: {
|
|
611
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
612
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1";
|
|
613
|
+
readonly title: "VTC Join Requests — Vetting — Show — payload";
|
|
614
|
+
readonly description: "An administrator reads the vetting facts one join request was decided on. The outer document members are owned by the framework — SPEC §6.3.";
|
|
615
|
+
readonly type: "object";
|
|
616
|
+
readonly additionalProperties: false;
|
|
617
|
+
readonly required: readonly ["id"];
|
|
618
|
+
readonly properties: {
|
|
619
|
+
readonly id: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
622
|
+
readonly description: "The join request, as vtc/join-requests/list returns it.";
|
|
623
|
+
};
|
|
624
|
+
readonly ext: {
|
|
625
|
+
readonly $ref: "#/$defs/Ext";
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly $defs: {
|
|
629
|
+
readonly VettingStatementFacts: {
|
|
630
|
+
readonly title: "VettingStatementFacts";
|
|
631
|
+
readonly type: "object";
|
|
632
|
+
readonly additionalProperties: false;
|
|
633
|
+
readonly required: readonly ["verified", "eligible", "revoked", "withdrawnNow", "counted", "failures"];
|
|
634
|
+
readonly description: "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.";
|
|
635
|
+
readonly properties: {
|
|
636
|
+
readonly id: {
|
|
637
|
+
readonly type: "string";
|
|
638
|
+
readonly minLength: 1;
|
|
639
|
+
readonly maxLength: 2048;
|
|
640
|
+
readonly description: "The statement's `id`, when it had one.";
|
|
641
|
+
};
|
|
642
|
+
readonly issuer: {
|
|
643
|
+
readonly type: "string";
|
|
644
|
+
readonly pattern: "^did:";
|
|
645
|
+
readonly maxLength: 2048;
|
|
646
|
+
readonly description: "The vetter who issued it, when it could be read.";
|
|
647
|
+
};
|
|
648
|
+
readonly verified: {
|
|
649
|
+
readonly type: "boolean";
|
|
650
|
+
readonly description: "Its proof, type, validity window and body verified.";
|
|
651
|
+
};
|
|
652
|
+
readonly eligible: {
|
|
653
|
+
readonly type: "boolean";
|
|
654
|
+
readonly description: "Its issuer was an eligible vetter at the decision.";
|
|
655
|
+
};
|
|
656
|
+
readonly revoked: {
|
|
657
|
+
readonly type: "boolean";
|
|
658
|
+
readonly description: "Withdrawn by its vetter before the decision.";
|
|
659
|
+
};
|
|
660
|
+
readonly withdrawnNow: {
|
|
661
|
+
readonly type: "boolean";
|
|
662
|
+
readonly description: "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.";
|
|
663
|
+
};
|
|
664
|
+
readonly method: {
|
|
665
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
666
|
+
};
|
|
667
|
+
readonly declaredRelationship: {
|
|
668
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
669
|
+
};
|
|
670
|
+
readonly counted: {
|
|
671
|
+
readonly type: "boolean";
|
|
672
|
+
readonly description: "It counted toward the requirements.";
|
|
673
|
+
};
|
|
674
|
+
readonly failures: {
|
|
675
|
+
readonly type: "array";
|
|
676
|
+
readonly maxItems: 16;
|
|
677
|
+
readonly items: {
|
|
678
|
+
readonly type: "string";
|
|
679
|
+
readonly minLength: 1;
|
|
680
|
+
readonly maxLength: 128;
|
|
681
|
+
};
|
|
682
|
+
readonly description: "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.";
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly VettingFacts: {
|
|
687
|
+
readonly title: "VettingFacts";
|
|
688
|
+
readonly type: "object";
|
|
689
|
+
readonly additionalProperties: false;
|
|
690
|
+
readonly required: readonly ["criterionId", "requirementsDigest", "applicantDigestMatches", "statements", "distinctCountedVetters", "byMethod", "commitmentsConsistent", "independenceOk", "invitationRequired", "satisfied", "needs", "recordedAt"];
|
|
691
|
+
readonly description: "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.";
|
|
692
|
+
readonly properties: {
|
|
693
|
+
readonly criterionId: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
readonly minLength: 1;
|
|
696
|
+
readonly maxLength: 128;
|
|
697
|
+
readonly description: "The Accepts criterion whose requirements were applied.";
|
|
698
|
+
};
|
|
699
|
+
readonly requirementsDigest: {
|
|
700
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
701
|
+
};
|
|
702
|
+
readonly applicantDigestMatches: {
|
|
703
|
+
readonly type: "boolean";
|
|
704
|
+
readonly description: "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.";
|
|
705
|
+
};
|
|
706
|
+
readonly statements: {
|
|
707
|
+
readonly type: "array";
|
|
708
|
+
readonly maxItems: 64;
|
|
709
|
+
readonly items: {
|
|
710
|
+
readonly $ref: "#/$defs/VettingStatementFacts";
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
readonly distinctCountedVetters: {
|
|
714
|
+
readonly type: "integer";
|
|
715
|
+
readonly minimum: 0;
|
|
716
|
+
readonly description: "Distinct eligible vetters counted, each once however many DIDs they hold.";
|
|
717
|
+
};
|
|
718
|
+
readonly byMethod: {
|
|
719
|
+
readonly type: "object";
|
|
720
|
+
readonly propertyNames: {
|
|
721
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
722
|
+
};
|
|
723
|
+
readonly additionalProperties: {
|
|
724
|
+
readonly type: "integer";
|
|
725
|
+
readonly minimum: 0;
|
|
726
|
+
};
|
|
727
|
+
readonly description: "Counted statements by method.";
|
|
728
|
+
};
|
|
729
|
+
readonly commitmentsConsistent: {
|
|
730
|
+
readonly type: "boolean";
|
|
731
|
+
readonly description: "Every counted statement carries the same identity commitment.";
|
|
732
|
+
};
|
|
733
|
+
readonly independenceOk: {
|
|
734
|
+
readonly type: "boolean";
|
|
735
|
+
readonly description: "No declared-relationship cap was exceeded.";
|
|
736
|
+
};
|
|
737
|
+
readonly invitationRequired: {
|
|
738
|
+
readonly type: "boolean";
|
|
739
|
+
readonly description: "The requirements demanded an invitation.";
|
|
740
|
+
};
|
|
741
|
+
readonly satisfied: {
|
|
742
|
+
readonly type: "boolean";
|
|
743
|
+
readonly description: "Count, method floors, consistency and independence all held.";
|
|
744
|
+
};
|
|
745
|
+
readonly needs: {
|
|
746
|
+
readonly type: "array";
|
|
747
|
+
readonly maxItems: 16;
|
|
748
|
+
readonly items: {
|
|
749
|
+
readonly type: "string";
|
|
750
|
+
readonly minLength: 1;
|
|
751
|
+
readonly maxLength: 128;
|
|
752
|
+
};
|
|
753
|
+
readonly description: "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.";
|
|
754
|
+
};
|
|
755
|
+
readonly recordedAt: {
|
|
756
|
+
readonly type: "string";
|
|
757
|
+
readonly format: "date-time";
|
|
758
|
+
readonly description: "When the facts were recorded.";
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
readonly Response: {
|
|
763
|
+
readonly $anchor: "response";
|
|
764
|
+
readonly title: "VTC Join Requests — Vetting — Show — response payload";
|
|
765
|
+
readonly type: "object";
|
|
766
|
+
readonly additionalProperties: false;
|
|
767
|
+
readonly required: readonly ["requestId"];
|
|
768
|
+
readonly properties: {
|
|
769
|
+
readonly requestId: {
|
|
770
|
+
readonly type: "string";
|
|
771
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
772
|
+
readonly description: "Echoed.";
|
|
773
|
+
};
|
|
774
|
+
readonly vetting: {
|
|
775
|
+
readonly $ref: "#/$defs/VettingFacts";
|
|
776
|
+
};
|
|
777
|
+
readonly ext: {
|
|
778
|
+
readonly $ref: "#/$defs/Ext";
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
readonly Ext: {
|
|
783
|
+
readonly title: "Ext";
|
|
784
|
+
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.";
|
|
785
|
+
readonly type: "object";
|
|
786
|
+
readonly minProperties: 1;
|
|
787
|
+
readonly additionalProperties: true;
|
|
788
|
+
readonly propertyNames: {
|
|
789
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
readonly VettingMethod: {
|
|
793
|
+
readonly title: "VettingMethod";
|
|
794
|
+
readonly type: "string";
|
|
795
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
796
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
797
|
+
};
|
|
798
|
+
readonly DigestMultibase: {
|
|
799
|
+
readonly title: "DigestMultibase";
|
|
800
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
801
|
+
readonly type: "string";
|
|
802
|
+
readonly minLength: 16;
|
|
803
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
804
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
805
|
+
};
|
|
806
|
+
readonly VettingRelationship: {
|
|
807
|
+
readonly title: "VettingRelationship";
|
|
808
|
+
readonly type: "string";
|
|
809
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
810
|
+
readonly description: "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act.";
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
817
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
818
|
+
* parties (§7.3 item 5).
|
|
819
|
+
*/
|
|
820
|
+
export declare const RESPONSE_SPEC: {
|
|
821
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/vetting/show/0.1#response";
|
|
822
|
+
readonly isBearer: false;
|
|
823
|
+
readonly isProofRequired: false;
|
|
824
|
+
readonly isRecipientRequired: true;
|
|
825
|
+
readonly isIssuedAtRequired: false;
|
|
826
|
+
readonly payloadSchema: {
|
|
827
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
828
|
+
readonly $ref: "#/$defs/Response";
|
|
829
|
+
readonly $defs: {
|
|
830
|
+
readonly VettingStatementFacts: {
|
|
831
|
+
readonly title: "VettingStatementFacts";
|
|
832
|
+
readonly type: "object";
|
|
833
|
+
readonly additionalProperties: false;
|
|
834
|
+
readonly required: readonly ["verified", "eligible", "revoked", "withdrawnNow", "counted", "failures"];
|
|
835
|
+
readonly description: "One identity-vetting statement the applicant's presentation carried, as the community saw it at the decision — plus whether its vetter has withdrawn it since.";
|
|
836
|
+
readonly properties: {
|
|
837
|
+
readonly id: {
|
|
838
|
+
readonly type: "string";
|
|
839
|
+
readonly minLength: 1;
|
|
840
|
+
readonly maxLength: 2048;
|
|
841
|
+
readonly description: "The statement's `id`, when it had one.";
|
|
842
|
+
};
|
|
843
|
+
readonly issuer: {
|
|
844
|
+
readonly type: "string";
|
|
845
|
+
readonly pattern: "^did:";
|
|
846
|
+
readonly maxLength: 2048;
|
|
847
|
+
readonly description: "The vetter who issued it, when it could be read.";
|
|
848
|
+
};
|
|
849
|
+
readonly verified: {
|
|
850
|
+
readonly type: "boolean";
|
|
851
|
+
readonly description: "Its proof, type, validity window and body verified.";
|
|
852
|
+
};
|
|
853
|
+
readonly eligible: {
|
|
854
|
+
readonly type: "boolean";
|
|
855
|
+
readonly description: "Its issuer was an eligible vetter at the decision.";
|
|
856
|
+
};
|
|
857
|
+
readonly revoked: {
|
|
858
|
+
readonly type: "boolean";
|
|
859
|
+
readonly description: "Withdrawn by its vetter before the decision.";
|
|
860
|
+
};
|
|
861
|
+
readonly withdrawnNow: {
|
|
862
|
+
readonly type: "boolean";
|
|
863
|
+
readonly description: "Withdrawn by its vetter now — after the decision, when `revoked` is false. Read live, not recorded.";
|
|
864
|
+
};
|
|
865
|
+
readonly method: {
|
|
866
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
867
|
+
};
|
|
868
|
+
readonly declaredRelationship: {
|
|
869
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
870
|
+
};
|
|
871
|
+
readonly counted: {
|
|
872
|
+
readonly type: "boolean";
|
|
873
|
+
readonly description: "It counted toward the requirements.";
|
|
874
|
+
};
|
|
875
|
+
readonly failures: {
|
|
876
|
+
readonly type: "array";
|
|
877
|
+
readonly maxItems: 16;
|
|
878
|
+
readonly items: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
readonly minLength: 1;
|
|
881
|
+
readonly maxLength: 128;
|
|
882
|
+
};
|
|
883
|
+
readonly description: "Why it did not count, as machine codes in the `vetting:*` grammar the join policy reads. Empty when it counted.";
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
readonly VettingFacts: {
|
|
888
|
+
readonly title: "VettingFacts";
|
|
889
|
+
readonly type: "object";
|
|
890
|
+
readonly additionalProperties: false;
|
|
891
|
+
readonly required: readonly ["criterionId", "requirementsDigest", "applicantDigestMatches", "statements", "distinctCountedVetters", "byMethod", "commitmentsConsistent", "independenceOk", "invitationRequired", "satisfied", "needs", "recordedAt"];
|
|
892
|
+
readonly description: "What the community established about a request's vetting evidence when it decided — the join policy's vetting input, in lowerCamelCase.";
|
|
893
|
+
readonly properties: {
|
|
894
|
+
readonly criterionId: {
|
|
895
|
+
readonly type: "string";
|
|
896
|
+
readonly minLength: 1;
|
|
897
|
+
readonly maxLength: 128;
|
|
898
|
+
readonly description: "The Accepts criterion whose requirements were applied.";
|
|
899
|
+
};
|
|
900
|
+
readonly requirementsDigest: {
|
|
901
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
902
|
+
};
|
|
903
|
+
readonly applicantDigestMatches: {
|
|
904
|
+
readonly type: "boolean";
|
|
905
|
+
readonly description: "The applicant named the same `requirementsDigest` — they applied under the version of the requirements that was applied.";
|
|
906
|
+
};
|
|
907
|
+
readonly statements: {
|
|
908
|
+
readonly type: "array";
|
|
909
|
+
readonly maxItems: 64;
|
|
910
|
+
readonly items: {
|
|
911
|
+
readonly $ref: "#/$defs/VettingStatementFacts";
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
readonly distinctCountedVetters: {
|
|
915
|
+
readonly type: "integer";
|
|
916
|
+
readonly minimum: 0;
|
|
917
|
+
readonly description: "Distinct eligible vetters counted, each once however many DIDs they hold.";
|
|
918
|
+
};
|
|
919
|
+
readonly byMethod: {
|
|
920
|
+
readonly type: "object";
|
|
921
|
+
readonly propertyNames: {
|
|
922
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
923
|
+
};
|
|
924
|
+
readonly additionalProperties: {
|
|
925
|
+
readonly type: "integer";
|
|
926
|
+
readonly minimum: 0;
|
|
927
|
+
};
|
|
928
|
+
readonly description: "Counted statements by method.";
|
|
929
|
+
};
|
|
930
|
+
readonly commitmentsConsistent: {
|
|
931
|
+
readonly type: "boolean";
|
|
932
|
+
readonly description: "Every counted statement carries the same identity commitment.";
|
|
933
|
+
};
|
|
934
|
+
readonly independenceOk: {
|
|
935
|
+
readonly type: "boolean";
|
|
936
|
+
readonly description: "No declared-relationship cap was exceeded.";
|
|
937
|
+
};
|
|
938
|
+
readonly invitationRequired: {
|
|
939
|
+
readonly type: "boolean";
|
|
940
|
+
readonly description: "The requirements demanded an invitation.";
|
|
941
|
+
};
|
|
942
|
+
readonly satisfied: {
|
|
943
|
+
readonly type: "boolean";
|
|
944
|
+
readonly description: "Count, method floors, consistency and independence all held.";
|
|
945
|
+
};
|
|
946
|
+
readonly needs: {
|
|
947
|
+
readonly type: "array";
|
|
948
|
+
readonly maxItems: 16;
|
|
949
|
+
readonly items: {
|
|
950
|
+
readonly type: "string";
|
|
951
|
+
readonly minLength: 1;
|
|
952
|
+
readonly maxLength: 128;
|
|
953
|
+
};
|
|
954
|
+
readonly description: "What was still missing, in the `vetting:*` grammar. Empty when `satisfied`.";
|
|
955
|
+
};
|
|
956
|
+
readonly recordedAt: {
|
|
957
|
+
readonly type: "string";
|
|
958
|
+
readonly format: "date-time";
|
|
959
|
+
readonly description: "When the facts were recorded.";
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
readonly Response: {
|
|
964
|
+
readonly $anchor: "response";
|
|
965
|
+
readonly title: "VTC Join Requests — Vetting — Show — response payload";
|
|
966
|
+
readonly type: "object";
|
|
967
|
+
readonly additionalProperties: false;
|
|
968
|
+
readonly required: readonly ["requestId"];
|
|
969
|
+
readonly properties: {
|
|
970
|
+
readonly requestId: {
|
|
971
|
+
readonly type: "string";
|
|
972
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
973
|
+
readonly description: "Echoed.";
|
|
974
|
+
};
|
|
975
|
+
readonly vetting: {
|
|
976
|
+
readonly $ref: "#/$defs/VettingFacts";
|
|
977
|
+
};
|
|
978
|
+
readonly ext: {
|
|
979
|
+
readonly $ref: "#/$defs/Ext";
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
readonly Ext: {
|
|
984
|
+
readonly title: "Ext";
|
|
985
|
+
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.";
|
|
986
|
+
readonly type: "object";
|
|
987
|
+
readonly minProperties: 1;
|
|
988
|
+
readonly additionalProperties: true;
|
|
989
|
+
readonly propertyNames: {
|
|
990
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
readonly VettingMethod: {
|
|
994
|
+
readonly title: "VettingMethod";
|
|
995
|
+
readonly type: "string";
|
|
996
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
997
|
+
readonly description: "How the vetter established that the person they checked is the person controlling the applicant's DID. `inPerson` — both people were physically together. `video` — a live, two-way video call. `priorAcquaintance` — the vetter has known or worked with this person over a period, and attests from that knowledge rather than from a document. A method is a description of what happened, not an assurance level: which methods count, and how many of each, is community policy.";
|
|
998
|
+
};
|
|
999
|
+
readonly DigestMultibase: {
|
|
1000
|
+
readonly title: "DigestMultibase";
|
|
1001
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
readonly minLength: 16;
|
|
1004
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
1005
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
1006
|
+
};
|
|
1007
|
+
readonly VettingRelationship: {
|
|
1008
|
+
readonly title: "VettingRelationship";
|
|
1009
|
+
readonly type: "string";
|
|
1010
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
1011
|
+
readonly description: "The vetter's own declaration of how they relate to the applicant. Declared, not verified: it exists so community policy can cap how much evidence comes from people close to the applicant, and a false declaration is the vetter's attributable act.";
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
//# sourceMappingURL=payload.d.ts.map
|