@openvtc/trust-tasks 0.22.3 → 0.22.5
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 +101 -0
- package/dist/_shared/components.d.ts +44 -3
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts +834 -0
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js +415 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts +1 -1
- package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -1
- package/dist/vtc/_shared/0.2/schema-registry.d.ts +16 -0
- package/dist/vtc/_shared/0.2/schema-registry.d.ts.map +1 -0
- package/dist/vtc/_shared/0.2/schema-registry.js +6 -0
- package/dist/vtc/_shared/0.2/schema-registry.js.map +1 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.d.ts +1595 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.js +827 -0
- package/dist/vtc/join-requests/manifest/0.3/payload.js.map +1 -0
- package/dist/vtc/join-requests/status/0.1/payload.d.ts +82 -2
- package/dist/vtc/join-requests/status/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.js +42 -2
- package/dist/vtc/join-requests/status/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/submit/0.3/payload.d.ts +662 -0
- package/dist/vtc/join-requests/submit/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/submit/0.3/payload.js +364 -0
- package/dist/vtc/join-requests/submit/0.3/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/list/0.2/payload.d.ts +1326 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.js +759 -0
- package/dist/vtc/schemas/accepts/list/0.2/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/register/0.2/payload.d.ts +1316 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.js +762 -0
- package/dist/vtc/schemas/accepts/register/0.2/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1 -1
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/schemas/accepts/show/0.2/payload.d.ts +1256 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.js +733 -0
- package/dist/vtc/schemas/accepts/show/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +44 -3
- package/src/index.ts +7 -0
- package/src/vta/webvh/dids/create/1.1/payload.ts +570 -0
- package/src/vtc/_shared/0.1/schema-registry.ts +1 -1
- package/src/vtc/_shared/0.2/schema-registry.ts +17 -0
- package/src/vtc/join-requests/manifest/0.3/payload.ts +1020 -0
- package/src/vtc/join-requests/status/0.1/payload.ts +58 -2
- package/src/vtc/join-requests/submit/0.3/payload.ts +431 -0
- package/src/vtc/schemas/accepts/list/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/list/0.2/payload.ts +802 -0
- package/src/vtc/schemas/accepts/register/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/register/0.2/payload.ts +803 -0
- package/src/vtc/schemas/accepts/show/0.1/payload.ts +1 -1
- package/src/vtc/schemas/accepts/show/0.2/payload.ts +762 -0
|
@@ -0,0 +1,1595 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/join-requests/manifest/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ClaimType, DigestMultibase, Ext, ExtCritical, VettingDocumentation, VettingMethod } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An ISO 8601 duration in weeks, days, hours, minutes and seconds only (e.g. `P120D`, `P2W`, `P1DT12H`, `PT15M`). Years and months are refused: their length depends on the calendar, and an age limit that means different things on different days is not a limit.
|
|
8
|
+
*/
|
|
9
|
+
export type Duration = string;
|
|
10
|
+
/**
|
|
11
|
+
* Discover a community's join criteria before applying. The request carries nothing. Version 0.2 adds, per criterion, an optional `vetting` requirements object — how many identity-vetting statements a community needs, by which methods, from whom — and a `requirementsDigest` that names the exact version of the criterion an applicant started under. The response may also carry `branding`, how the community asks to be shown.
|
|
12
|
+
*/
|
|
13
|
+
export interface VTCJoinRequestsManifestPayload {
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface VTCJoinRequestsManifestResponsePayload {
|
|
17
|
+
communityDid: string;
|
|
18
|
+
criteria: Criterion[];
|
|
19
|
+
/**
|
|
20
|
+
* What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.
|
|
21
|
+
*
|
|
22
|
+
* @maxItems 32
|
|
23
|
+
*/
|
|
24
|
+
requestedAttributes?: {
|
|
25
|
+
/**
|
|
26
|
+
* A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.
|
|
27
|
+
*/
|
|
28
|
+
type: string;
|
|
29
|
+
/**
|
|
30
|
+
* False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.
|
|
31
|
+
*/
|
|
32
|
+
required?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Why the community asks, in words shown to the applicant before they disclose.
|
|
35
|
+
*/
|
|
36
|
+
purpose?: string;
|
|
37
|
+
}[];
|
|
38
|
+
branding?: CommunityBranding;
|
|
39
|
+
ext?: Ext;
|
|
40
|
+
}
|
|
41
|
+
export interface Criterion {
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Plain-language summary of the criterion, authored by the community and shown to prospective applicants. Informative: where it and `vetting` disagree, `vetting` governs.
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
* How the community decides a submission that meets this criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who decides.
|
|
49
|
+
*/
|
|
50
|
+
admission: "automatic" | "review";
|
|
51
|
+
/**
|
|
52
|
+
* The credentials an applicant must present for this criterion (opaque here). Absent: the criterion requires no credential.
|
|
53
|
+
*/
|
|
54
|
+
presentationDefinition?: {};
|
|
55
|
+
/**
|
|
56
|
+
* Whose credentials meet `presentationDefinition`: `community` (this community's own), `recognised` (this community's, or a community it recognises), or `any` (any issuer whose credential verifies). Present exactly when `presentationDefinition` is.
|
|
57
|
+
*/
|
|
58
|
+
credentialIssuers?: "any" | "community" | "recognised";
|
|
59
|
+
/**
|
|
60
|
+
* True: the criterion is met only by a submission carrying a valid, unconsumed invitation this community issued to the applicant.
|
|
61
|
+
*/
|
|
62
|
+
invitationRequired?: boolean;
|
|
63
|
+
vetting?: VettingRequirements;
|
|
64
|
+
/**
|
|
65
|
+
* Digest over the RFC 8785 (JCS) canonicalization of this criterion object with the `requirementsDigest` member removed, as a multibase-encoded multihash (SHA-256 and base58btc RECOMMENDED). Names one version of the criterion: an applicant records it when starting an application and echoes it to vetters and at submission.
|
|
66
|
+
*/
|
|
67
|
+
requirementsDigest: DigestMultibase;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* What identity-vetting evidence a criterion needs, beyond what a presentation-definition can express: distinct eligible vetters, per-method floors, independence caps. Every number is the community's own policy. This schema supplies no defaults — an absent optional member means the community imposes no constraint of that kind, never that some protocol value applies. Deliberately open: a consumer MUST ignore members it does not recognise, so a community publishing a newer shape does not make an older client unable to read the rest. Durations: `maxStatementAge` — a statement older than this at decision time does not count (absent: no limit beyond the statement's own validity); `decisionSla` — how long after submission the community undertakes to decide, including on a referred application; `requirementsGrace` — how long an application started under an earlier `requirementsDigest` is still evaluated under that version.
|
|
71
|
+
*/
|
|
72
|
+
export interface VettingRequirements {
|
|
73
|
+
/**
|
|
74
|
+
* Version of this requirements object's shape. `0.1` for the members defined here.
|
|
75
|
+
*/
|
|
76
|
+
version: string;
|
|
77
|
+
/**
|
|
78
|
+
* The predicate IRI a counted vetting statement carries in `credentialSubject.predicate` — `https://registry.trustoverip.org/dtg/vsc/vetted/1`, the DTG VSC registry's identity-vetting predicate, or a predicate in a namespace the community controls — registered as one the community accepts via vtc/endorsement-types/register. A statement under any other predicate does not count.
|
|
79
|
+
*/
|
|
80
|
+
statementType: string;
|
|
81
|
+
/**
|
|
82
|
+
* How many counted statements are needed, counting each vetter once however many DIDs they hold.
|
|
83
|
+
*/
|
|
84
|
+
minStatements: number;
|
|
85
|
+
/**
|
|
86
|
+
* Per-method floors within `minStatements` — e.g. `{ "inPerson": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor.
|
|
87
|
+
*/
|
|
88
|
+
minByMethod?: {
|
|
89
|
+
[k: string]: number | undefined;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Methods whose statements count at all.
|
|
93
|
+
*
|
|
94
|
+
* @minItems 1
|
|
95
|
+
*/
|
|
96
|
+
acceptedMethods: [VettingMethod, ...VettingMethod[]];
|
|
97
|
+
/**
|
|
98
|
+
* Documentation a statement must have relied on in order to count. Absent — the expected case — means each vetter decides what documentation they accept, including none for prior acquaintance, and the community counts what they attest.
|
|
99
|
+
*
|
|
100
|
+
* @minItems 1
|
|
101
|
+
*/
|
|
102
|
+
acceptedDocumentClasses?: [VettingDocumentation, ...VettingDocumentation[]];
|
|
103
|
+
/**
|
|
104
|
+
* Claim types the applicant's Vetting Card must carry, which the identity commitment is computed over, and which a counted statement must list as verified. Absent: none.
|
|
105
|
+
*/
|
|
106
|
+
requiredClaims?: ClaimType[];
|
|
107
|
+
/**
|
|
108
|
+
* Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts.
|
|
109
|
+
*/
|
|
110
|
+
optionalClaims?: ClaimType[];
|
|
111
|
+
maxStatementAge?: Duration;
|
|
112
|
+
/**
|
|
113
|
+
* How a vetter's eligibility is established.
|
|
114
|
+
*/
|
|
115
|
+
eligibleVetters: {
|
|
116
|
+
/**
|
|
117
|
+
* The role a statement's issuer must hold, matched as the action `role:<role>` in a Verifiable Authority Credential (`AuthorityCredential`) the community issued to that issuer, whose `authority.scope` is the community's DID (see `vtc/vetting/vetters/grant/0.1`). A statement counts only if its issuer holds such a credential.
|
|
118
|
+
*/
|
|
119
|
+
role: string;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Caps on how much evidence may come from people close to the applicant. Absent: no caps.
|
|
123
|
+
*/
|
|
124
|
+
independence?: {
|
|
125
|
+
/**
|
|
126
|
+
* The most counted statements that may come from vetters declaring each relationship — e.g. `{ "family": 0 }`.
|
|
127
|
+
*/
|
|
128
|
+
maxByDeclaredRelationship?: {
|
|
129
|
+
[k: string]: number | undefined;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false.
|
|
133
|
+
*/
|
|
134
|
+
requireConsistentIdentityCommitment?: boolean;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Whether an invitation credential must accompany the statements at submission (`required`), may (`optional`), or plays no part (`none`). Absent: the presentation-definition alone governs.
|
|
138
|
+
*/
|
|
139
|
+
invitation?: "required" | "optional" | "none";
|
|
140
|
+
decisionSla?: Duration;
|
|
141
|
+
requirementsGrace?: Duration;
|
|
142
|
+
/**
|
|
143
|
+
* Where the community's vetting governance — including the attestation text vetters sign — is published.
|
|
144
|
+
*/
|
|
145
|
+
governanceFrameworkUrl?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1, for vetting parameters this version does not enumerate. A community publishing an admission mode the base members cannot express — the zero-knowledge parameters an applicant proves against, say — puts them under a namespace it controls, rather than waiting for a version that names them.
|
|
148
|
+
*
|
|
149
|
+
* This object is already `additionalProperties: true`, so an unknown member here has always validated. That is not the same as reaching a consumer: a generated type names the members this schema declares and drops the rest, so an undeclared member is parsed and discarded, and it is discarded again on the re-serialization `requirementsDigest` is computed over. `ext` is a declared member, so it survives both.
|
|
150
|
+
*/
|
|
151
|
+
ext?: Ext;
|
|
152
|
+
/**
|
|
153
|
+
* Namespaces of `ext` an applicant MUST understand or refuse, per SPEC.md §4.5.1.
|
|
154
|
+
*
|
|
155
|
+
* A community marks a namespace here when applying under this criterion without understanding it would mean something other than what the community requires — an applicant that ignored a hidden-vetting namespace, for instance, would submit named statements to a criterion whose whole point was that it does not receive them. An applicant that does not recognize a marked namespace stops rather than downgrading silently.
|
|
156
|
+
*
|
|
157
|
+
* Absent, which is the common case, every namespace under `ext` is advisory and ignorable.
|
|
158
|
+
*/
|
|
159
|
+
extCritical?: ExtCritical;
|
|
160
|
+
[k: string]: unknown | undefined;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.
|
|
164
|
+
*/
|
|
165
|
+
export interface CommunityBranding {
|
|
166
|
+
/**
|
|
167
|
+
* The community's name as it asks to be shown.
|
|
168
|
+
*/
|
|
169
|
+
displayName?: string;
|
|
170
|
+
/**
|
|
171
|
+
* An sRGB colour as `#rrggbb`, compared case-insensitively. A community SHOULD write it in lower case.
|
|
172
|
+
*/
|
|
173
|
+
accentColor?: string;
|
|
174
|
+
/**
|
|
175
|
+
* An https URL of the community's logo. Fetched by the client, so an untrusted image from wherever it points.
|
|
176
|
+
*/
|
|
177
|
+
logoUrl?: string;
|
|
178
|
+
ext?: Ext;
|
|
179
|
+
}
|
|
180
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
181
|
+
export type { ClaimType, DigestMultibase, Ext, ExtCritical, VettingDocumentation, VettingMethod };
|
|
182
|
+
/** Trust Task type URI. */
|
|
183
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3";
|
|
184
|
+
/** Stable alias for this specification's request payload shape. */
|
|
185
|
+
export type Payload = VTCJoinRequestsManifestPayload;
|
|
186
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
187
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3#response";
|
|
188
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
189
|
+
export type Response = VTCJoinRequestsManifestResponsePayload;
|
|
190
|
+
/**
|
|
191
|
+
* This specification's payload schema, as a value.
|
|
192
|
+
*
|
|
193
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
194
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
195
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
196
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
197
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
198
|
+
*/
|
|
199
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
200
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
201
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3";
|
|
202
|
+
readonly title: "VTC Join-Requests Manifest — payload";
|
|
203
|
+
readonly description: "Discover a community's join criteria before applying. The request carries nothing. Version 0.2 adds, per criterion, an optional `vetting` requirements object — how many identity-vetting statements a community needs, by which methods, from whom — and a `requirementsDigest` that names the exact version of the criterion an applicant started under. The response may also carry `branding`, how the community asks to be shown.";
|
|
204
|
+
readonly type: "object";
|
|
205
|
+
readonly additionalProperties: false;
|
|
206
|
+
readonly properties: {
|
|
207
|
+
readonly ext: {
|
|
208
|
+
readonly $ref: "#/$defs/Ext";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly $defs: {
|
|
212
|
+
readonly Duration: {
|
|
213
|
+
readonly title: "Duration";
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly maxLength: 32;
|
|
216
|
+
readonly pattern: "^P(([0-9]+W)?([0-9]+D)?T([0-9]+H([0-9]+M)?([0-9]+S)?|[0-9]+M([0-9]+S)?|[0-9]+S)|[0-9]+W([0-9]+D)?|[0-9]+D)$";
|
|
217
|
+
readonly description: "An ISO 8601 duration in weeks, days, hours, minutes and seconds only (e.g. `P120D`, `P2W`, `P1DT12H`, `PT15M`). Years and months are refused: their length depends on the calendar, and an age limit that means different things on different days is not a limit.";
|
|
218
|
+
};
|
|
219
|
+
readonly Criterion: {
|
|
220
|
+
readonly title: "Criterion";
|
|
221
|
+
readonly type: "object";
|
|
222
|
+
readonly additionalProperties: false;
|
|
223
|
+
readonly required: readonly ["id", "admission", "requirementsDigest"];
|
|
224
|
+
readonly properties: {
|
|
225
|
+
readonly id: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
readonly minLength: 1;
|
|
228
|
+
readonly maxLength: 128;
|
|
229
|
+
};
|
|
230
|
+
readonly description: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly maxLength: 1024;
|
|
233
|
+
readonly description: "Plain-language summary of the criterion, authored by the community and shown to prospective applicants. Informative: where it and `vetting` disagree, `vetting` governs.";
|
|
234
|
+
};
|
|
235
|
+
readonly admission: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly enum: readonly ["automatic", "review"];
|
|
238
|
+
readonly description: "How the community decides a submission that meets this criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who decides.";
|
|
239
|
+
};
|
|
240
|
+
readonly presentationDefinition: {
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly description: "The credentials an applicant must present for this criterion (opaque here). Absent: the criterion requires no credential.";
|
|
243
|
+
};
|
|
244
|
+
readonly credentialIssuers: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly enum: readonly ["any", "community", "recognised"];
|
|
247
|
+
readonly description: "Whose credentials meet `presentationDefinition`: `community` (this community's own), `recognised` (this community's, or a community it recognises), or `any` (any issuer whose credential verifies). Present exactly when `presentationDefinition` is.";
|
|
248
|
+
};
|
|
249
|
+
readonly invitationRequired: {
|
|
250
|
+
readonly type: "boolean";
|
|
251
|
+
readonly description: "True: the criterion is met only by a submission carrying a valid, unconsumed invitation this community issued to the applicant.";
|
|
252
|
+
};
|
|
253
|
+
readonly vetting: {
|
|
254
|
+
readonly $ref: "#/$defs/VettingRequirements";
|
|
255
|
+
};
|
|
256
|
+
readonly requirementsDigest: {
|
|
257
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
258
|
+
readonly description: "Digest over the RFC 8785 (JCS) canonicalization of this criterion object with the `requirementsDigest` member removed, as a multibase-encoded multihash (SHA-256 and base58btc RECOMMENDED). Names one version of the criterion: an applicant records it when starting an application and echoes it to vetters and at submission.";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
readonly dependentRequired: {
|
|
262
|
+
readonly presentationDefinition: readonly ["credentialIssuers"];
|
|
263
|
+
readonly credentialIssuers: readonly ["presentationDefinition"];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
readonly VettingRequirements: {
|
|
267
|
+
readonly title: "VettingRequirements";
|
|
268
|
+
readonly type: "object";
|
|
269
|
+
readonly additionalProperties: true;
|
|
270
|
+
readonly required: readonly ["version", "statementType", "minStatements", "acceptedMethods", "eligibleVetters"];
|
|
271
|
+
readonly description: "What identity-vetting evidence a criterion needs, beyond what a presentation-definition can express: distinct eligible vetters, per-method floors, independence caps. Every number is the community's own policy. This schema supplies no defaults — an absent optional member means the community imposes no constraint of that kind, never that some protocol value applies. Deliberately open: a consumer MUST ignore members it does not recognise, so a community publishing a newer shape does not make an older client unable to read the rest. Durations: `maxStatementAge` — a statement older than this at decision time does not count (absent: no limit beyond the statement's own validity); `decisionSla` — how long after submission the community undertakes to decide, including on a referred application; `requirementsGrace` — how long an application started under an earlier `requirementsDigest` is still evaluated under that version.";
|
|
272
|
+
readonly properties: {
|
|
273
|
+
readonly version: {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
276
|
+
readonly description: "Version of this requirements object's shape. `0.1` for the members defined here.";
|
|
277
|
+
};
|
|
278
|
+
readonly statementType: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly format: "uri";
|
|
281
|
+
readonly minLength: 1;
|
|
282
|
+
readonly maxLength: 512;
|
|
283
|
+
readonly description: "The predicate IRI a counted vetting statement carries in `credentialSubject.predicate` — `https://registry.trustoverip.org/dtg/vsc/vetted/1`, the DTG VSC registry's identity-vetting predicate, or a predicate in a namespace the community controls — registered as one the community accepts via vtc/endorsement-types/register. A statement under any other predicate does not count.";
|
|
284
|
+
};
|
|
285
|
+
readonly minStatements: {
|
|
286
|
+
readonly type: "integer";
|
|
287
|
+
readonly minimum: 1;
|
|
288
|
+
readonly description: "How many counted statements are needed, counting each vetter once however many DIDs they hold.";
|
|
289
|
+
};
|
|
290
|
+
readonly minByMethod: {
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly propertyNames: {
|
|
293
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
294
|
+
};
|
|
295
|
+
readonly additionalProperties: {
|
|
296
|
+
readonly type: "integer";
|
|
297
|
+
readonly minimum: 0;
|
|
298
|
+
};
|
|
299
|
+
readonly description: "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor.";
|
|
300
|
+
};
|
|
301
|
+
readonly acceptedMethods: {
|
|
302
|
+
readonly type: "array";
|
|
303
|
+
readonly minItems: 1;
|
|
304
|
+
readonly uniqueItems: true;
|
|
305
|
+
readonly items: {
|
|
306
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
307
|
+
};
|
|
308
|
+
readonly description: "Methods whose statements count at all.";
|
|
309
|
+
};
|
|
310
|
+
readonly acceptedDocumentClasses: {
|
|
311
|
+
readonly type: "array";
|
|
312
|
+
readonly minItems: 1;
|
|
313
|
+
readonly uniqueItems: true;
|
|
314
|
+
readonly items: {
|
|
315
|
+
readonly $ref: "#/$defs/VettingDocumentation";
|
|
316
|
+
};
|
|
317
|
+
readonly description: "Documentation a statement must have relied on in order to count. Absent — the expected case — means each vetter decides what documentation they accept, including none for prior acquaintance, and the community counts what they attest.";
|
|
318
|
+
};
|
|
319
|
+
readonly requiredClaims: {
|
|
320
|
+
readonly type: "array";
|
|
321
|
+
readonly uniqueItems: true;
|
|
322
|
+
readonly items: {
|
|
323
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
324
|
+
};
|
|
325
|
+
readonly description: "Claim types the applicant's Vetting Card must carry, which the identity commitment is computed over, and which a counted statement must list as verified. Absent: none.";
|
|
326
|
+
};
|
|
327
|
+
readonly optionalClaims: {
|
|
328
|
+
readonly type: "array";
|
|
329
|
+
readonly uniqueItems: true;
|
|
330
|
+
readonly items: {
|
|
331
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
332
|
+
};
|
|
333
|
+
readonly description: "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts.";
|
|
334
|
+
};
|
|
335
|
+
readonly maxStatementAge: {
|
|
336
|
+
readonly $ref: "#/$defs/Duration";
|
|
337
|
+
};
|
|
338
|
+
readonly eligibleVetters: {
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
readonly additionalProperties: false;
|
|
341
|
+
readonly required: readonly ["role"];
|
|
342
|
+
readonly properties: {
|
|
343
|
+
readonly role: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly minLength: 1;
|
|
346
|
+
readonly maxLength: 128;
|
|
347
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$";
|
|
348
|
+
readonly description: "The role a statement's issuer must hold, matched as the action `role:<role>` in a Verifiable Authority Credential (`AuthorityCredential`) the community issued to that issuer, whose `authority.scope` is the community's DID (see `vtc/vetting/vetters/grant/0.1`). A statement counts only if its issuer holds such a credential.";
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly description: "How a vetter's eligibility is established.";
|
|
352
|
+
};
|
|
353
|
+
readonly independence: {
|
|
354
|
+
readonly type: "object";
|
|
355
|
+
readonly additionalProperties: false;
|
|
356
|
+
readonly properties: {
|
|
357
|
+
readonly maxByDeclaredRelationship: {
|
|
358
|
+
readonly type: "object";
|
|
359
|
+
readonly propertyNames: {
|
|
360
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
361
|
+
};
|
|
362
|
+
readonly additionalProperties: {
|
|
363
|
+
readonly type: "integer";
|
|
364
|
+
readonly minimum: 0;
|
|
365
|
+
};
|
|
366
|
+
readonly description: "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`.";
|
|
367
|
+
};
|
|
368
|
+
readonly requireConsistentIdentityCommitment: {
|
|
369
|
+
readonly type: "boolean";
|
|
370
|
+
readonly description: "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false.";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly description: "Caps on how much evidence may come from people close to the applicant. Absent: no caps.";
|
|
374
|
+
};
|
|
375
|
+
readonly invitation: {
|
|
376
|
+
readonly type: "string";
|
|
377
|
+
readonly enum: readonly ["required", "optional", "none"];
|
|
378
|
+
readonly description: "Whether an invitation credential must accompany the statements at submission (`required`), may (`optional`), or plays no part (`none`). Absent: the presentation-definition alone governs.";
|
|
379
|
+
};
|
|
380
|
+
readonly decisionSla: {
|
|
381
|
+
readonly $ref: "#/$defs/Duration";
|
|
382
|
+
};
|
|
383
|
+
readonly requirementsGrace: {
|
|
384
|
+
readonly $ref: "#/$defs/Duration";
|
|
385
|
+
};
|
|
386
|
+
readonly governanceFrameworkUrl: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
readonly format: "uri";
|
|
389
|
+
readonly pattern: "^https://";
|
|
390
|
+
readonly maxLength: 2048;
|
|
391
|
+
readonly description: "Where the community's vetting governance — including the attestation text vetters sign — is published.";
|
|
392
|
+
};
|
|
393
|
+
readonly ext: {
|
|
394
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1, for vetting parameters this version does not enumerate. A community publishing an admission mode the base members cannot express — the zero-knowledge parameters an applicant proves against, say — puts them under a namespace it controls, rather than waiting for a version that names them.\n\nThis object is already `additionalProperties: true`, so an unknown member here has always validated. That is not the same as reaching a consumer: a generated type names the members this schema declares and drops the rest, so an undeclared member is parsed and discarded, and it is discarded again on the re-serialization `requirementsDigest` is computed over. `ext` is a declared member, so it survives both.";
|
|
395
|
+
readonly $ref: "#/$defs/Ext";
|
|
396
|
+
};
|
|
397
|
+
readonly extCritical: {
|
|
398
|
+
readonly description: "Namespaces of `ext` an applicant MUST understand or refuse, per SPEC.md §4.5.1.\n\nA community marks a namespace here when applying under this criterion without understanding it would mean something other than what the community requires — an applicant that ignored a hidden-vetting namespace, for instance, would submit named statements to a criterion whose whole point was that it does not receive them. An applicant that does not recognize a marked namespace stops rather than downgrading silently.\n\nAbsent, which is the common case, every namespace under `ext` is advisory and ignorable.";
|
|
399
|
+
readonly $ref: "#/$defs/ExtCritical";
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
readonly CommunityBranding: {
|
|
404
|
+
readonly title: "CommunityBranding";
|
|
405
|
+
readonly type: "object";
|
|
406
|
+
readonly additionalProperties: false;
|
|
407
|
+
readonly description: "OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.";
|
|
408
|
+
readonly properties: {
|
|
409
|
+
readonly displayName: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly minLength: 1;
|
|
412
|
+
readonly maxLength: 128;
|
|
413
|
+
readonly description: "The community's name as it asks to be shown.";
|
|
414
|
+
};
|
|
415
|
+
readonly accentColor: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly pattern: "^#[0-9a-fA-F]{6}$";
|
|
418
|
+
readonly description: "An sRGB colour as `#rrggbb`, compared case-insensitively. A community SHOULD write it in lower case.";
|
|
419
|
+
};
|
|
420
|
+
readonly logoUrl: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly format: "uri";
|
|
423
|
+
readonly pattern: "^https://";
|
|
424
|
+
readonly maxLength: 2048;
|
|
425
|
+
readonly description: "An https URL of the community's logo. Fetched by the client, so an untrusted image from wherever it points.";
|
|
426
|
+
};
|
|
427
|
+
readonly ext: {
|
|
428
|
+
readonly $ref: "#/$defs/Ext";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
readonly Response: {
|
|
433
|
+
readonly $anchor: "response";
|
|
434
|
+
readonly title: "VTC Join-Requests Manifest — response payload";
|
|
435
|
+
readonly type: "object";
|
|
436
|
+
readonly additionalProperties: false;
|
|
437
|
+
readonly required: readonly ["communityDid", "criteria"];
|
|
438
|
+
readonly properties: {
|
|
439
|
+
readonly communityDid: {
|
|
440
|
+
readonly type: "string";
|
|
441
|
+
readonly pattern: "^did:";
|
|
442
|
+
};
|
|
443
|
+
readonly criteria: {
|
|
444
|
+
readonly type: "array";
|
|
445
|
+
readonly items: {
|
|
446
|
+
readonly $ref: "#/$defs/Criterion";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
readonly requestedAttributes: {
|
|
450
|
+
readonly type: "array";
|
|
451
|
+
readonly maxItems: 32;
|
|
452
|
+
readonly description: "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.";
|
|
453
|
+
readonly items: {
|
|
454
|
+
readonly type: "object";
|
|
455
|
+
readonly additionalProperties: false;
|
|
456
|
+
readonly required: readonly ["type"];
|
|
457
|
+
readonly properties: {
|
|
458
|
+
readonly type: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly minLength: 1;
|
|
461
|
+
readonly maxLength: 128;
|
|
462
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
463
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
464
|
+
};
|
|
465
|
+
readonly required: {
|
|
466
|
+
readonly type: "boolean";
|
|
467
|
+
readonly default: true;
|
|
468
|
+
readonly description: "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.";
|
|
469
|
+
};
|
|
470
|
+
readonly purpose: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
readonly maxLength: 256;
|
|
473
|
+
readonly description: "Why the community asks, in words shown to the applicant before they disclose.";
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly branding: {
|
|
479
|
+
readonly $ref: "#/$defs/CommunityBranding";
|
|
480
|
+
};
|
|
481
|
+
readonly ext: {
|
|
482
|
+
readonly $ref: "#/$defs/Ext";
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly Ext: {
|
|
487
|
+
readonly title: "Ext";
|
|
488
|
+
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.";
|
|
489
|
+
readonly type: "object";
|
|
490
|
+
readonly minProperties: 1;
|
|
491
|
+
readonly additionalProperties: true;
|
|
492
|
+
readonly propertyNames: {
|
|
493
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
readonly ExtCritical: {
|
|
497
|
+
readonly title: "ExtCritical";
|
|
498
|
+
readonly description: "Names the `ext` namespaces a consumer MUST understand or refuse, per SPEC.md §4.5.1.\n\nEvery entry MUST be an immediate key of the sibling `ext` object at the same level; an entry naming an absent namespace is non-conforming and the consumer rejects the document with `malformedRequest`. A consumer that does not recognize a namespace named here MUST NOT process the document as though the namespace were absent, and rejects it with `unsupportedExtension` — the exception to the rule that unrecognized namespaces are ignored.\n\nA producer marks a namespace only where the document's meaning depends on it. Marking one that merely carries a hint or an annotation turns every consumer that has not implemented it into a failure where it would otherwise have interoperated. JSON Schema cannot check either of those rules: that an entry names a present namespace is checkable only against the sibling `ext`, and whether a namespace is load-bearing is not a schema question at all. Both are consumer-side checks.";
|
|
499
|
+
readonly type: "array";
|
|
500
|
+
readonly minItems: 1;
|
|
501
|
+
readonly uniqueItems: true;
|
|
502
|
+
readonly items: {
|
|
503
|
+
readonly type: "string";
|
|
504
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
505
|
+
};
|
|
506
|
+
readonly examples: readonly [readonly ["org.openvtc.hidden-vetting"]];
|
|
507
|
+
};
|
|
508
|
+
readonly VettingRelationship: {
|
|
509
|
+
readonly title: "VettingRelationship";
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
512
|
+
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.";
|
|
513
|
+
};
|
|
514
|
+
readonly ClaimType: {
|
|
515
|
+
readonly title: "ClaimType";
|
|
516
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
517
|
+
readonly type: "string";
|
|
518
|
+
readonly minLength: 1;
|
|
519
|
+
readonly maxLength: 128;
|
|
520
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
521
|
+
};
|
|
522
|
+
readonly VettingDocumentation: {
|
|
523
|
+
readonly title: "VettingDocumentation";
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
readonly minLength: 1;
|
|
526
|
+
readonly maxLength: 64;
|
|
527
|
+
readonly pattern: "^[a-z][a-zA-Z0-9]*$";
|
|
528
|
+
readonly description: "A class of documentation, named in lowerCamelCase. Open rather than enumerated, because what documentation a vetter accepts is each vetter's own choice. Well-known values: `passport`, `nationalId`, `driverLicence`, and `none` — the vetter will attest without a document, which is the `priorAcquaintance` case. Only the class ever travels — never a document number, an image, an issuing authority or an expiry date. `none` states a policy (what a vetter accepts); a record of what was relied on expresses 'no document' as an empty list instead.";
|
|
529
|
+
};
|
|
530
|
+
readonly VettingMethod: {
|
|
531
|
+
readonly title: "VettingMethod";
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
534
|
+
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.";
|
|
535
|
+
};
|
|
536
|
+
readonly DigestMultibase: {
|
|
537
|
+
readonly title: "DigestMultibase";
|
|
538
|
+
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`.";
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
readonly minLength: 16;
|
|
541
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
542
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
547
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
548
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
549
|
+
readonly $ref: "#/$defs/Response";
|
|
550
|
+
readonly $defs: {
|
|
551
|
+
readonly Duration: {
|
|
552
|
+
readonly title: "Duration";
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly maxLength: 32;
|
|
555
|
+
readonly pattern: "^P(([0-9]+W)?([0-9]+D)?T([0-9]+H([0-9]+M)?([0-9]+S)?|[0-9]+M([0-9]+S)?|[0-9]+S)|[0-9]+W([0-9]+D)?|[0-9]+D)$";
|
|
556
|
+
readonly description: "An ISO 8601 duration in weeks, days, hours, minutes and seconds only (e.g. `P120D`, `P2W`, `P1DT12H`, `PT15M`). Years and months are refused: their length depends on the calendar, and an age limit that means different things on different days is not a limit.";
|
|
557
|
+
};
|
|
558
|
+
readonly Criterion: {
|
|
559
|
+
readonly title: "Criterion";
|
|
560
|
+
readonly type: "object";
|
|
561
|
+
readonly additionalProperties: false;
|
|
562
|
+
readonly required: readonly ["id", "admission", "requirementsDigest"];
|
|
563
|
+
readonly properties: {
|
|
564
|
+
readonly id: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
readonly minLength: 1;
|
|
567
|
+
readonly maxLength: 128;
|
|
568
|
+
};
|
|
569
|
+
readonly description: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly maxLength: 1024;
|
|
572
|
+
readonly description: "Plain-language summary of the criterion, authored by the community and shown to prospective applicants. Informative: where it and `vetting` disagree, `vetting` governs.";
|
|
573
|
+
};
|
|
574
|
+
readonly admission: {
|
|
575
|
+
readonly type: "string";
|
|
576
|
+
readonly enum: readonly ["automatic", "review"];
|
|
577
|
+
readonly description: "How the community decides a submission that meets this criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who decides.";
|
|
578
|
+
};
|
|
579
|
+
readonly presentationDefinition: {
|
|
580
|
+
readonly type: "object";
|
|
581
|
+
readonly description: "The credentials an applicant must present for this criterion (opaque here). Absent: the criterion requires no credential.";
|
|
582
|
+
};
|
|
583
|
+
readonly credentialIssuers: {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly enum: readonly ["any", "community", "recognised"];
|
|
586
|
+
readonly description: "Whose credentials meet `presentationDefinition`: `community` (this community's own), `recognised` (this community's, or a community it recognises), or `any` (any issuer whose credential verifies). Present exactly when `presentationDefinition` is.";
|
|
587
|
+
};
|
|
588
|
+
readonly invitationRequired: {
|
|
589
|
+
readonly type: "boolean";
|
|
590
|
+
readonly description: "True: the criterion is met only by a submission carrying a valid, unconsumed invitation this community issued to the applicant.";
|
|
591
|
+
};
|
|
592
|
+
readonly vetting: {
|
|
593
|
+
readonly $ref: "#/$defs/VettingRequirements";
|
|
594
|
+
};
|
|
595
|
+
readonly requirementsDigest: {
|
|
596
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
597
|
+
readonly description: "Digest over the RFC 8785 (JCS) canonicalization of this criterion object with the `requirementsDigest` member removed, as a multibase-encoded multihash (SHA-256 and base58btc RECOMMENDED). Names one version of the criterion: an applicant records it when starting an application and echoes it to vetters and at submission.";
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
readonly dependentRequired: {
|
|
601
|
+
readonly presentationDefinition: readonly ["credentialIssuers"];
|
|
602
|
+
readonly credentialIssuers: readonly ["presentationDefinition"];
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly VettingRequirements: {
|
|
606
|
+
readonly title: "VettingRequirements";
|
|
607
|
+
readonly type: "object";
|
|
608
|
+
readonly additionalProperties: true;
|
|
609
|
+
readonly required: readonly ["version", "statementType", "minStatements", "acceptedMethods", "eligibleVetters"];
|
|
610
|
+
readonly description: "What identity-vetting evidence a criterion needs, beyond what a presentation-definition can express: distinct eligible vetters, per-method floors, independence caps. Every number is the community's own policy. This schema supplies no defaults — an absent optional member means the community imposes no constraint of that kind, never that some protocol value applies. Deliberately open: a consumer MUST ignore members it does not recognise, so a community publishing a newer shape does not make an older client unable to read the rest. Durations: `maxStatementAge` — a statement older than this at decision time does not count (absent: no limit beyond the statement's own validity); `decisionSla` — how long after submission the community undertakes to decide, including on a referred application; `requirementsGrace` — how long an application started under an earlier `requirementsDigest` is still evaluated under that version.";
|
|
611
|
+
readonly properties: {
|
|
612
|
+
readonly version: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
615
|
+
readonly description: "Version of this requirements object's shape. `0.1` for the members defined here.";
|
|
616
|
+
};
|
|
617
|
+
readonly statementType: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly format: "uri";
|
|
620
|
+
readonly minLength: 1;
|
|
621
|
+
readonly maxLength: 512;
|
|
622
|
+
readonly description: "The predicate IRI a counted vetting statement carries in `credentialSubject.predicate` — `https://registry.trustoverip.org/dtg/vsc/vetted/1`, the DTG VSC registry's identity-vetting predicate, or a predicate in a namespace the community controls — registered as one the community accepts via vtc/endorsement-types/register. A statement under any other predicate does not count.";
|
|
623
|
+
};
|
|
624
|
+
readonly minStatements: {
|
|
625
|
+
readonly type: "integer";
|
|
626
|
+
readonly minimum: 1;
|
|
627
|
+
readonly description: "How many counted statements are needed, counting each vetter once however many DIDs they hold.";
|
|
628
|
+
};
|
|
629
|
+
readonly minByMethod: {
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
readonly propertyNames: {
|
|
632
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
633
|
+
};
|
|
634
|
+
readonly additionalProperties: {
|
|
635
|
+
readonly type: "integer";
|
|
636
|
+
readonly minimum: 0;
|
|
637
|
+
};
|
|
638
|
+
readonly description: "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor.";
|
|
639
|
+
};
|
|
640
|
+
readonly acceptedMethods: {
|
|
641
|
+
readonly type: "array";
|
|
642
|
+
readonly minItems: 1;
|
|
643
|
+
readonly uniqueItems: true;
|
|
644
|
+
readonly items: {
|
|
645
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
646
|
+
};
|
|
647
|
+
readonly description: "Methods whose statements count at all.";
|
|
648
|
+
};
|
|
649
|
+
readonly acceptedDocumentClasses: {
|
|
650
|
+
readonly type: "array";
|
|
651
|
+
readonly minItems: 1;
|
|
652
|
+
readonly uniqueItems: true;
|
|
653
|
+
readonly items: {
|
|
654
|
+
readonly $ref: "#/$defs/VettingDocumentation";
|
|
655
|
+
};
|
|
656
|
+
readonly description: "Documentation a statement must have relied on in order to count. Absent — the expected case — means each vetter decides what documentation they accept, including none for prior acquaintance, and the community counts what they attest.";
|
|
657
|
+
};
|
|
658
|
+
readonly requiredClaims: {
|
|
659
|
+
readonly type: "array";
|
|
660
|
+
readonly uniqueItems: true;
|
|
661
|
+
readonly items: {
|
|
662
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
663
|
+
};
|
|
664
|
+
readonly description: "Claim types the applicant's Vetting Card must carry, which the identity commitment is computed over, and which a counted statement must list as verified. Absent: none.";
|
|
665
|
+
};
|
|
666
|
+
readonly optionalClaims: {
|
|
667
|
+
readonly type: "array";
|
|
668
|
+
readonly uniqueItems: true;
|
|
669
|
+
readonly items: {
|
|
670
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
671
|
+
};
|
|
672
|
+
readonly description: "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts.";
|
|
673
|
+
};
|
|
674
|
+
readonly maxStatementAge: {
|
|
675
|
+
readonly $ref: "#/$defs/Duration";
|
|
676
|
+
};
|
|
677
|
+
readonly eligibleVetters: {
|
|
678
|
+
readonly type: "object";
|
|
679
|
+
readonly additionalProperties: false;
|
|
680
|
+
readonly required: readonly ["role"];
|
|
681
|
+
readonly properties: {
|
|
682
|
+
readonly role: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
readonly minLength: 1;
|
|
685
|
+
readonly maxLength: 128;
|
|
686
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$";
|
|
687
|
+
readonly description: "The role a statement's issuer must hold, matched as the action `role:<role>` in a Verifiable Authority Credential (`AuthorityCredential`) the community issued to that issuer, whose `authority.scope` is the community's DID (see `vtc/vetting/vetters/grant/0.1`). A statement counts only if its issuer holds such a credential.";
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
readonly description: "How a vetter's eligibility is established.";
|
|
691
|
+
};
|
|
692
|
+
readonly independence: {
|
|
693
|
+
readonly type: "object";
|
|
694
|
+
readonly additionalProperties: false;
|
|
695
|
+
readonly properties: {
|
|
696
|
+
readonly maxByDeclaredRelationship: {
|
|
697
|
+
readonly type: "object";
|
|
698
|
+
readonly propertyNames: {
|
|
699
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
700
|
+
};
|
|
701
|
+
readonly additionalProperties: {
|
|
702
|
+
readonly type: "integer";
|
|
703
|
+
readonly minimum: 0;
|
|
704
|
+
};
|
|
705
|
+
readonly description: "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`.";
|
|
706
|
+
};
|
|
707
|
+
readonly requireConsistentIdentityCommitment: {
|
|
708
|
+
readonly type: "boolean";
|
|
709
|
+
readonly description: "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false.";
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
readonly description: "Caps on how much evidence may come from people close to the applicant. Absent: no caps.";
|
|
713
|
+
};
|
|
714
|
+
readonly invitation: {
|
|
715
|
+
readonly type: "string";
|
|
716
|
+
readonly enum: readonly ["required", "optional", "none"];
|
|
717
|
+
readonly description: "Whether an invitation credential must accompany the statements at submission (`required`), may (`optional`), or plays no part (`none`). Absent: the presentation-definition alone governs.";
|
|
718
|
+
};
|
|
719
|
+
readonly decisionSla: {
|
|
720
|
+
readonly $ref: "#/$defs/Duration";
|
|
721
|
+
};
|
|
722
|
+
readonly requirementsGrace: {
|
|
723
|
+
readonly $ref: "#/$defs/Duration";
|
|
724
|
+
};
|
|
725
|
+
readonly governanceFrameworkUrl: {
|
|
726
|
+
readonly type: "string";
|
|
727
|
+
readonly format: "uri";
|
|
728
|
+
readonly pattern: "^https://";
|
|
729
|
+
readonly maxLength: 2048;
|
|
730
|
+
readonly description: "Where the community's vetting governance — including the attestation text vetters sign — is published.";
|
|
731
|
+
};
|
|
732
|
+
readonly ext: {
|
|
733
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1, for vetting parameters this version does not enumerate. A community publishing an admission mode the base members cannot express — the zero-knowledge parameters an applicant proves against, say — puts them under a namespace it controls, rather than waiting for a version that names them.\n\nThis object is already `additionalProperties: true`, so an unknown member here has always validated. That is not the same as reaching a consumer: a generated type names the members this schema declares and drops the rest, so an undeclared member is parsed and discarded, and it is discarded again on the re-serialization `requirementsDigest` is computed over. `ext` is a declared member, so it survives both.";
|
|
734
|
+
readonly $ref: "#/$defs/Ext";
|
|
735
|
+
};
|
|
736
|
+
readonly extCritical: {
|
|
737
|
+
readonly description: "Namespaces of `ext` an applicant MUST understand or refuse, per SPEC.md §4.5.1.\n\nA community marks a namespace here when applying under this criterion without understanding it would mean something other than what the community requires — an applicant that ignored a hidden-vetting namespace, for instance, would submit named statements to a criterion whose whole point was that it does not receive them. An applicant that does not recognize a marked namespace stops rather than downgrading silently.\n\nAbsent, which is the common case, every namespace under `ext` is advisory and ignorable.";
|
|
738
|
+
readonly $ref: "#/$defs/ExtCritical";
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
readonly CommunityBranding: {
|
|
743
|
+
readonly title: "CommunityBranding";
|
|
744
|
+
readonly type: "object";
|
|
745
|
+
readonly additionalProperties: false;
|
|
746
|
+
readonly description: "OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.";
|
|
747
|
+
readonly properties: {
|
|
748
|
+
readonly displayName: {
|
|
749
|
+
readonly type: "string";
|
|
750
|
+
readonly minLength: 1;
|
|
751
|
+
readonly maxLength: 128;
|
|
752
|
+
readonly description: "The community's name as it asks to be shown.";
|
|
753
|
+
};
|
|
754
|
+
readonly accentColor: {
|
|
755
|
+
readonly type: "string";
|
|
756
|
+
readonly pattern: "^#[0-9a-fA-F]{6}$";
|
|
757
|
+
readonly description: "An sRGB colour as `#rrggbb`, compared case-insensitively. A community SHOULD write it in lower case.";
|
|
758
|
+
};
|
|
759
|
+
readonly logoUrl: {
|
|
760
|
+
readonly type: "string";
|
|
761
|
+
readonly format: "uri";
|
|
762
|
+
readonly pattern: "^https://";
|
|
763
|
+
readonly maxLength: 2048;
|
|
764
|
+
readonly description: "An https URL of the community's logo. Fetched by the client, so an untrusted image from wherever it points.";
|
|
765
|
+
};
|
|
766
|
+
readonly ext: {
|
|
767
|
+
readonly $ref: "#/$defs/Ext";
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
readonly Response: {
|
|
772
|
+
readonly $anchor: "response";
|
|
773
|
+
readonly title: "VTC Join-Requests Manifest — response payload";
|
|
774
|
+
readonly type: "object";
|
|
775
|
+
readonly additionalProperties: false;
|
|
776
|
+
readonly required: readonly ["communityDid", "criteria"];
|
|
777
|
+
readonly properties: {
|
|
778
|
+
readonly communityDid: {
|
|
779
|
+
readonly type: "string";
|
|
780
|
+
readonly pattern: "^did:";
|
|
781
|
+
};
|
|
782
|
+
readonly criteria: {
|
|
783
|
+
readonly type: "array";
|
|
784
|
+
readonly items: {
|
|
785
|
+
readonly $ref: "#/$defs/Criterion";
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
readonly requestedAttributes: {
|
|
789
|
+
readonly type: "array";
|
|
790
|
+
readonly maxItems: 32;
|
|
791
|
+
readonly description: "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.";
|
|
792
|
+
readonly items: {
|
|
793
|
+
readonly type: "object";
|
|
794
|
+
readonly additionalProperties: false;
|
|
795
|
+
readonly required: readonly ["type"];
|
|
796
|
+
readonly properties: {
|
|
797
|
+
readonly type: {
|
|
798
|
+
readonly type: "string";
|
|
799
|
+
readonly minLength: 1;
|
|
800
|
+
readonly maxLength: 128;
|
|
801
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
802
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
803
|
+
};
|
|
804
|
+
readonly required: {
|
|
805
|
+
readonly type: "boolean";
|
|
806
|
+
readonly default: true;
|
|
807
|
+
readonly description: "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.";
|
|
808
|
+
};
|
|
809
|
+
readonly purpose: {
|
|
810
|
+
readonly type: "string";
|
|
811
|
+
readonly maxLength: 256;
|
|
812
|
+
readonly description: "Why the community asks, in words shown to the applicant before they disclose.";
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly branding: {
|
|
818
|
+
readonly $ref: "#/$defs/CommunityBranding";
|
|
819
|
+
};
|
|
820
|
+
readonly ext: {
|
|
821
|
+
readonly $ref: "#/$defs/Ext";
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
readonly Ext: {
|
|
826
|
+
readonly title: "Ext";
|
|
827
|
+
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.";
|
|
828
|
+
readonly type: "object";
|
|
829
|
+
readonly minProperties: 1;
|
|
830
|
+
readonly additionalProperties: true;
|
|
831
|
+
readonly propertyNames: {
|
|
832
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly ExtCritical: {
|
|
836
|
+
readonly title: "ExtCritical";
|
|
837
|
+
readonly description: "Names the `ext` namespaces a consumer MUST understand or refuse, per SPEC.md §4.5.1.\n\nEvery entry MUST be an immediate key of the sibling `ext` object at the same level; an entry naming an absent namespace is non-conforming and the consumer rejects the document with `malformedRequest`. A consumer that does not recognize a namespace named here MUST NOT process the document as though the namespace were absent, and rejects it with `unsupportedExtension` — the exception to the rule that unrecognized namespaces are ignored.\n\nA producer marks a namespace only where the document's meaning depends on it. Marking one that merely carries a hint or an annotation turns every consumer that has not implemented it into a failure where it would otherwise have interoperated. JSON Schema cannot check either of those rules: that an entry names a present namespace is checkable only against the sibling `ext`, and whether a namespace is load-bearing is not a schema question at all. Both are consumer-side checks.";
|
|
838
|
+
readonly type: "array";
|
|
839
|
+
readonly minItems: 1;
|
|
840
|
+
readonly uniqueItems: true;
|
|
841
|
+
readonly items: {
|
|
842
|
+
readonly type: "string";
|
|
843
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
844
|
+
};
|
|
845
|
+
readonly examples: readonly [readonly ["org.openvtc.hidden-vetting"]];
|
|
846
|
+
};
|
|
847
|
+
readonly VettingRelationship: {
|
|
848
|
+
readonly title: "VettingRelationship";
|
|
849
|
+
readonly type: "string";
|
|
850
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
851
|
+
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.";
|
|
852
|
+
};
|
|
853
|
+
readonly ClaimType: {
|
|
854
|
+
readonly title: "ClaimType";
|
|
855
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
856
|
+
readonly type: "string";
|
|
857
|
+
readonly minLength: 1;
|
|
858
|
+
readonly maxLength: 128;
|
|
859
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
860
|
+
};
|
|
861
|
+
readonly VettingDocumentation: {
|
|
862
|
+
readonly title: "VettingDocumentation";
|
|
863
|
+
readonly type: "string";
|
|
864
|
+
readonly minLength: 1;
|
|
865
|
+
readonly maxLength: 64;
|
|
866
|
+
readonly pattern: "^[a-z][a-zA-Z0-9]*$";
|
|
867
|
+
readonly description: "A class of documentation, named in lowerCamelCase. Open rather than enumerated, because what documentation a vetter accepts is each vetter's own choice. Well-known values: `passport`, `nationalId`, `driverLicence`, and `none` — the vetter will attest without a document, which is the `priorAcquaintance` case. Only the class ever travels — never a document number, an image, an issuing authority or an expiry date. `none` states a policy (what a vetter accepts); a record of what was relied on expresses 'no document' as an empty list instead.";
|
|
868
|
+
};
|
|
869
|
+
readonly VettingMethod: {
|
|
870
|
+
readonly title: "VettingMethod";
|
|
871
|
+
readonly type: "string";
|
|
872
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
873
|
+
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.";
|
|
874
|
+
};
|
|
875
|
+
readonly DigestMultibase: {
|
|
876
|
+
readonly title: "DigestMultibase";
|
|
877
|
+
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`.";
|
|
878
|
+
readonly type: "string";
|
|
879
|
+
readonly minLength: 16;
|
|
880
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
881
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
/**
|
|
886
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
887
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
888
|
+
* per-specification and cannot be derived from the document alone, and
|
|
889
|
+
* item 2 needs the schema this carries.
|
|
890
|
+
*/
|
|
891
|
+
export declare const SPEC: {
|
|
892
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3";
|
|
893
|
+
readonly isBearer: false;
|
|
894
|
+
readonly isProofRequired: false;
|
|
895
|
+
readonly isRecipientRequired: true;
|
|
896
|
+
readonly isIssuedAtRequired: false;
|
|
897
|
+
readonly payloadSchema: {
|
|
898
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
899
|
+
readonly $id: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3";
|
|
900
|
+
readonly title: "VTC Join-Requests Manifest — payload";
|
|
901
|
+
readonly description: "Discover a community's join criteria before applying. The request carries nothing. Version 0.2 adds, per criterion, an optional `vetting` requirements object — how many identity-vetting statements a community needs, by which methods, from whom — and a `requirementsDigest` that names the exact version of the criterion an applicant started under. The response may also carry `branding`, how the community asks to be shown.";
|
|
902
|
+
readonly type: "object";
|
|
903
|
+
readonly additionalProperties: false;
|
|
904
|
+
readonly properties: {
|
|
905
|
+
readonly ext: {
|
|
906
|
+
readonly $ref: "#/$defs/Ext";
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
readonly $defs: {
|
|
910
|
+
readonly Duration: {
|
|
911
|
+
readonly title: "Duration";
|
|
912
|
+
readonly type: "string";
|
|
913
|
+
readonly maxLength: 32;
|
|
914
|
+
readonly pattern: "^P(([0-9]+W)?([0-9]+D)?T([0-9]+H([0-9]+M)?([0-9]+S)?|[0-9]+M([0-9]+S)?|[0-9]+S)|[0-9]+W([0-9]+D)?|[0-9]+D)$";
|
|
915
|
+
readonly description: "An ISO 8601 duration in weeks, days, hours, minutes and seconds only (e.g. `P120D`, `P2W`, `P1DT12H`, `PT15M`). Years and months are refused: their length depends on the calendar, and an age limit that means different things on different days is not a limit.";
|
|
916
|
+
};
|
|
917
|
+
readonly Criterion: {
|
|
918
|
+
readonly title: "Criterion";
|
|
919
|
+
readonly type: "object";
|
|
920
|
+
readonly additionalProperties: false;
|
|
921
|
+
readonly required: readonly ["id", "admission", "requirementsDigest"];
|
|
922
|
+
readonly properties: {
|
|
923
|
+
readonly id: {
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
readonly minLength: 1;
|
|
926
|
+
readonly maxLength: 128;
|
|
927
|
+
};
|
|
928
|
+
readonly description: {
|
|
929
|
+
readonly type: "string";
|
|
930
|
+
readonly maxLength: 1024;
|
|
931
|
+
readonly description: "Plain-language summary of the criterion, authored by the community and shown to prospective applicants. Informative: where it and `vetting` disagree, `vetting` governs.";
|
|
932
|
+
};
|
|
933
|
+
readonly admission: {
|
|
934
|
+
readonly type: "string";
|
|
935
|
+
readonly enum: readonly ["automatic", "review"];
|
|
936
|
+
readonly description: "How the community decides a submission that meets this criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who decides.";
|
|
937
|
+
};
|
|
938
|
+
readonly presentationDefinition: {
|
|
939
|
+
readonly type: "object";
|
|
940
|
+
readonly description: "The credentials an applicant must present for this criterion (opaque here). Absent: the criterion requires no credential.";
|
|
941
|
+
};
|
|
942
|
+
readonly credentialIssuers: {
|
|
943
|
+
readonly type: "string";
|
|
944
|
+
readonly enum: readonly ["any", "community", "recognised"];
|
|
945
|
+
readonly description: "Whose credentials meet `presentationDefinition`: `community` (this community's own), `recognised` (this community's, or a community it recognises), or `any` (any issuer whose credential verifies). Present exactly when `presentationDefinition` is.";
|
|
946
|
+
};
|
|
947
|
+
readonly invitationRequired: {
|
|
948
|
+
readonly type: "boolean";
|
|
949
|
+
readonly description: "True: the criterion is met only by a submission carrying a valid, unconsumed invitation this community issued to the applicant.";
|
|
950
|
+
};
|
|
951
|
+
readonly vetting: {
|
|
952
|
+
readonly $ref: "#/$defs/VettingRequirements";
|
|
953
|
+
};
|
|
954
|
+
readonly requirementsDigest: {
|
|
955
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
956
|
+
readonly description: "Digest over the RFC 8785 (JCS) canonicalization of this criterion object with the `requirementsDigest` member removed, as a multibase-encoded multihash (SHA-256 and base58btc RECOMMENDED). Names one version of the criterion: an applicant records it when starting an application and echoes it to vetters and at submission.";
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
readonly dependentRequired: {
|
|
960
|
+
readonly presentationDefinition: readonly ["credentialIssuers"];
|
|
961
|
+
readonly credentialIssuers: readonly ["presentationDefinition"];
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
readonly VettingRequirements: {
|
|
965
|
+
readonly title: "VettingRequirements";
|
|
966
|
+
readonly type: "object";
|
|
967
|
+
readonly additionalProperties: true;
|
|
968
|
+
readonly required: readonly ["version", "statementType", "minStatements", "acceptedMethods", "eligibleVetters"];
|
|
969
|
+
readonly description: "What identity-vetting evidence a criterion needs, beyond what a presentation-definition can express: distinct eligible vetters, per-method floors, independence caps. Every number is the community's own policy. This schema supplies no defaults — an absent optional member means the community imposes no constraint of that kind, never that some protocol value applies. Deliberately open: a consumer MUST ignore members it does not recognise, so a community publishing a newer shape does not make an older client unable to read the rest. Durations: `maxStatementAge` — a statement older than this at decision time does not count (absent: no limit beyond the statement's own validity); `decisionSla` — how long after submission the community undertakes to decide, including on a referred application; `requirementsGrace` — how long an application started under an earlier `requirementsDigest` is still evaluated under that version.";
|
|
970
|
+
readonly properties: {
|
|
971
|
+
readonly version: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
974
|
+
readonly description: "Version of this requirements object's shape. `0.1` for the members defined here.";
|
|
975
|
+
};
|
|
976
|
+
readonly statementType: {
|
|
977
|
+
readonly type: "string";
|
|
978
|
+
readonly format: "uri";
|
|
979
|
+
readonly minLength: 1;
|
|
980
|
+
readonly maxLength: 512;
|
|
981
|
+
readonly description: "The predicate IRI a counted vetting statement carries in `credentialSubject.predicate` — `https://registry.trustoverip.org/dtg/vsc/vetted/1`, the DTG VSC registry's identity-vetting predicate, or a predicate in a namespace the community controls — registered as one the community accepts via vtc/endorsement-types/register. A statement under any other predicate does not count.";
|
|
982
|
+
};
|
|
983
|
+
readonly minStatements: {
|
|
984
|
+
readonly type: "integer";
|
|
985
|
+
readonly minimum: 1;
|
|
986
|
+
readonly description: "How many counted statements are needed, counting each vetter once however many DIDs they hold.";
|
|
987
|
+
};
|
|
988
|
+
readonly minByMethod: {
|
|
989
|
+
readonly type: "object";
|
|
990
|
+
readonly propertyNames: {
|
|
991
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
992
|
+
};
|
|
993
|
+
readonly additionalProperties: {
|
|
994
|
+
readonly type: "integer";
|
|
995
|
+
readonly minimum: 0;
|
|
996
|
+
};
|
|
997
|
+
readonly description: "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor.";
|
|
998
|
+
};
|
|
999
|
+
readonly acceptedMethods: {
|
|
1000
|
+
readonly type: "array";
|
|
1001
|
+
readonly minItems: 1;
|
|
1002
|
+
readonly uniqueItems: true;
|
|
1003
|
+
readonly items: {
|
|
1004
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
1005
|
+
};
|
|
1006
|
+
readonly description: "Methods whose statements count at all.";
|
|
1007
|
+
};
|
|
1008
|
+
readonly acceptedDocumentClasses: {
|
|
1009
|
+
readonly type: "array";
|
|
1010
|
+
readonly minItems: 1;
|
|
1011
|
+
readonly uniqueItems: true;
|
|
1012
|
+
readonly items: {
|
|
1013
|
+
readonly $ref: "#/$defs/VettingDocumentation";
|
|
1014
|
+
};
|
|
1015
|
+
readonly description: "Documentation a statement must have relied on in order to count. Absent — the expected case — means each vetter decides what documentation they accept, including none for prior acquaintance, and the community counts what they attest.";
|
|
1016
|
+
};
|
|
1017
|
+
readonly requiredClaims: {
|
|
1018
|
+
readonly type: "array";
|
|
1019
|
+
readonly uniqueItems: true;
|
|
1020
|
+
readonly items: {
|
|
1021
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
1022
|
+
};
|
|
1023
|
+
readonly description: "Claim types the applicant's Vetting Card must carry, which the identity commitment is computed over, and which a counted statement must list as verified. Absent: none.";
|
|
1024
|
+
};
|
|
1025
|
+
readonly optionalClaims: {
|
|
1026
|
+
readonly type: "array";
|
|
1027
|
+
readonly uniqueItems: true;
|
|
1028
|
+
readonly items: {
|
|
1029
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
1030
|
+
};
|
|
1031
|
+
readonly description: "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts.";
|
|
1032
|
+
};
|
|
1033
|
+
readonly maxStatementAge: {
|
|
1034
|
+
readonly $ref: "#/$defs/Duration";
|
|
1035
|
+
};
|
|
1036
|
+
readonly eligibleVetters: {
|
|
1037
|
+
readonly type: "object";
|
|
1038
|
+
readonly additionalProperties: false;
|
|
1039
|
+
readonly required: readonly ["role"];
|
|
1040
|
+
readonly properties: {
|
|
1041
|
+
readonly role: {
|
|
1042
|
+
readonly type: "string";
|
|
1043
|
+
readonly minLength: 1;
|
|
1044
|
+
readonly maxLength: 128;
|
|
1045
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$";
|
|
1046
|
+
readonly description: "The role a statement's issuer must hold, matched as the action `role:<role>` in a Verifiable Authority Credential (`AuthorityCredential`) the community issued to that issuer, whose `authority.scope` is the community's DID (see `vtc/vetting/vetters/grant/0.1`). A statement counts only if its issuer holds such a credential.";
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
readonly description: "How a vetter's eligibility is established.";
|
|
1050
|
+
};
|
|
1051
|
+
readonly independence: {
|
|
1052
|
+
readonly type: "object";
|
|
1053
|
+
readonly additionalProperties: false;
|
|
1054
|
+
readonly properties: {
|
|
1055
|
+
readonly maxByDeclaredRelationship: {
|
|
1056
|
+
readonly type: "object";
|
|
1057
|
+
readonly propertyNames: {
|
|
1058
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
1059
|
+
};
|
|
1060
|
+
readonly additionalProperties: {
|
|
1061
|
+
readonly type: "integer";
|
|
1062
|
+
readonly minimum: 0;
|
|
1063
|
+
};
|
|
1064
|
+
readonly description: "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`.";
|
|
1065
|
+
};
|
|
1066
|
+
readonly requireConsistentIdentityCommitment: {
|
|
1067
|
+
readonly type: "boolean";
|
|
1068
|
+
readonly description: "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false.";
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
readonly description: "Caps on how much evidence may come from people close to the applicant. Absent: no caps.";
|
|
1072
|
+
};
|
|
1073
|
+
readonly invitation: {
|
|
1074
|
+
readonly type: "string";
|
|
1075
|
+
readonly enum: readonly ["required", "optional", "none"];
|
|
1076
|
+
readonly description: "Whether an invitation credential must accompany the statements at submission (`required`), may (`optional`), or plays no part (`none`). Absent: the presentation-definition alone governs.";
|
|
1077
|
+
};
|
|
1078
|
+
readonly decisionSla: {
|
|
1079
|
+
readonly $ref: "#/$defs/Duration";
|
|
1080
|
+
};
|
|
1081
|
+
readonly requirementsGrace: {
|
|
1082
|
+
readonly $ref: "#/$defs/Duration";
|
|
1083
|
+
};
|
|
1084
|
+
readonly governanceFrameworkUrl: {
|
|
1085
|
+
readonly type: "string";
|
|
1086
|
+
readonly format: "uri";
|
|
1087
|
+
readonly pattern: "^https://";
|
|
1088
|
+
readonly maxLength: 2048;
|
|
1089
|
+
readonly description: "Where the community's vetting governance — including the attestation text vetters sign — is published.";
|
|
1090
|
+
};
|
|
1091
|
+
readonly ext: {
|
|
1092
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1, for vetting parameters this version does not enumerate. A community publishing an admission mode the base members cannot express — the zero-knowledge parameters an applicant proves against, say — puts them under a namespace it controls, rather than waiting for a version that names them.\n\nThis object is already `additionalProperties: true`, so an unknown member here has always validated. That is not the same as reaching a consumer: a generated type names the members this schema declares and drops the rest, so an undeclared member is parsed and discarded, and it is discarded again on the re-serialization `requirementsDigest` is computed over. `ext` is a declared member, so it survives both.";
|
|
1093
|
+
readonly $ref: "#/$defs/Ext";
|
|
1094
|
+
};
|
|
1095
|
+
readonly extCritical: {
|
|
1096
|
+
readonly description: "Namespaces of `ext` an applicant MUST understand or refuse, per SPEC.md §4.5.1.\n\nA community marks a namespace here when applying under this criterion without understanding it would mean something other than what the community requires — an applicant that ignored a hidden-vetting namespace, for instance, would submit named statements to a criterion whose whole point was that it does not receive them. An applicant that does not recognize a marked namespace stops rather than downgrading silently.\n\nAbsent, which is the common case, every namespace under `ext` is advisory and ignorable.";
|
|
1097
|
+
readonly $ref: "#/$defs/ExtCritical";
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
readonly CommunityBranding: {
|
|
1102
|
+
readonly title: "CommunityBranding";
|
|
1103
|
+
readonly type: "object";
|
|
1104
|
+
readonly additionalProperties: false;
|
|
1105
|
+
readonly description: "OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.";
|
|
1106
|
+
readonly properties: {
|
|
1107
|
+
readonly displayName: {
|
|
1108
|
+
readonly type: "string";
|
|
1109
|
+
readonly minLength: 1;
|
|
1110
|
+
readonly maxLength: 128;
|
|
1111
|
+
readonly description: "The community's name as it asks to be shown.";
|
|
1112
|
+
};
|
|
1113
|
+
readonly accentColor: {
|
|
1114
|
+
readonly type: "string";
|
|
1115
|
+
readonly pattern: "^#[0-9a-fA-F]{6}$";
|
|
1116
|
+
readonly description: "An sRGB colour as `#rrggbb`, compared case-insensitively. A community SHOULD write it in lower case.";
|
|
1117
|
+
};
|
|
1118
|
+
readonly logoUrl: {
|
|
1119
|
+
readonly type: "string";
|
|
1120
|
+
readonly format: "uri";
|
|
1121
|
+
readonly pattern: "^https://";
|
|
1122
|
+
readonly maxLength: 2048;
|
|
1123
|
+
readonly description: "An https URL of the community's logo. Fetched by the client, so an untrusted image from wherever it points.";
|
|
1124
|
+
};
|
|
1125
|
+
readonly ext: {
|
|
1126
|
+
readonly $ref: "#/$defs/Ext";
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
readonly Response: {
|
|
1131
|
+
readonly $anchor: "response";
|
|
1132
|
+
readonly title: "VTC Join-Requests Manifest — response payload";
|
|
1133
|
+
readonly type: "object";
|
|
1134
|
+
readonly additionalProperties: false;
|
|
1135
|
+
readonly required: readonly ["communityDid", "criteria"];
|
|
1136
|
+
readonly properties: {
|
|
1137
|
+
readonly communityDid: {
|
|
1138
|
+
readonly type: "string";
|
|
1139
|
+
readonly pattern: "^did:";
|
|
1140
|
+
};
|
|
1141
|
+
readonly criteria: {
|
|
1142
|
+
readonly type: "array";
|
|
1143
|
+
readonly items: {
|
|
1144
|
+
readonly $ref: "#/$defs/Criterion";
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
readonly requestedAttributes: {
|
|
1148
|
+
readonly type: "array";
|
|
1149
|
+
readonly maxItems: 32;
|
|
1150
|
+
readonly description: "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.";
|
|
1151
|
+
readonly items: {
|
|
1152
|
+
readonly type: "object";
|
|
1153
|
+
readonly additionalProperties: false;
|
|
1154
|
+
readonly required: readonly ["type"];
|
|
1155
|
+
readonly properties: {
|
|
1156
|
+
readonly type: {
|
|
1157
|
+
readonly type: "string";
|
|
1158
|
+
readonly minLength: 1;
|
|
1159
|
+
readonly maxLength: 128;
|
|
1160
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
1161
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
1162
|
+
};
|
|
1163
|
+
readonly required: {
|
|
1164
|
+
readonly type: "boolean";
|
|
1165
|
+
readonly default: true;
|
|
1166
|
+
readonly description: "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.";
|
|
1167
|
+
};
|
|
1168
|
+
readonly purpose: {
|
|
1169
|
+
readonly type: "string";
|
|
1170
|
+
readonly maxLength: 256;
|
|
1171
|
+
readonly description: "Why the community asks, in words shown to the applicant before they disclose.";
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
readonly branding: {
|
|
1177
|
+
readonly $ref: "#/$defs/CommunityBranding";
|
|
1178
|
+
};
|
|
1179
|
+
readonly ext: {
|
|
1180
|
+
readonly $ref: "#/$defs/Ext";
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
readonly Ext: {
|
|
1185
|
+
readonly title: "Ext";
|
|
1186
|
+
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.";
|
|
1187
|
+
readonly type: "object";
|
|
1188
|
+
readonly minProperties: 1;
|
|
1189
|
+
readonly additionalProperties: true;
|
|
1190
|
+
readonly propertyNames: {
|
|
1191
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
readonly ExtCritical: {
|
|
1195
|
+
readonly title: "ExtCritical";
|
|
1196
|
+
readonly description: "Names the `ext` namespaces a consumer MUST understand or refuse, per SPEC.md §4.5.1.\n\nEvery entry MUST be an immediate key of the sibling `ext` object at the same level; an entry naming an absent namespace is non-conforming and the consumer rejects the document with `malformedRequest`. A consumer that does not recognize a namespace named here MUST NOT process the document as though the namespace were absent, and rejects it with `unsupportedExtension` — the exception to the rule that unrecognized namespaces are ignored.\n\nA producer marks a namespace only where the document's meaning depends on it. Marking one that merely carries a hint or an annotation turns every consumer that has not implemented it into a failure where it would otherwise have interoperated. JSON Schema cannot check either of those rules: that an entry names a present namespace is checkable only against the sibling `ext`, and whether a namespace is load-bearing is not a schema question at all. Both are consumer-side checks.";
|
|
1197
|
+
readonly type: "array";
|
|
1198
|
+
readonly minItems: 1;
|
|
1199
|
+
readonly uniqueItems: true;
|
|
1200
|
+
readonly items: {
|
|
1201
|
+
readonly type: "string";
|
|
1202
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
1203
|
+
};
|
|
1204
|
+
readonly examples: readonly [readonly ["org.openvtc.hidden-vetting"]];
|
|
1205
|
+
};
|
|
1206
|
+
readonly VettingRelationship: {
|
|
1207
|
+
readonly title: "VettingRelationship";
|
|
1208
|
+
readonly type: "string";
|
|
1209
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
1210
|
+
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.";
|
|
1211
|
+
};
|
|
1212
|
+
readonly ClaimType: {
|
|
1213
|
+
readonly title: "ClaimType";
|
|
1214
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
1215
|
+
readonly type: "string";
|
|
1216
|
+
readonly minLength: 1;
|
|
1217
|
+
readonly maxLength: 128;
|
|
1218
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
1219
|
+
};
|
|
1220
|
+
readonly VettingDocumentation: {
|
|
1221
|
+
readonly title: "VettingDocumentation";
|
|
1222
|
+
readonly type: "string";
|
|
1223
|
+
readonly minLength: 1;
|
|
1224
|
+
readonly maxLength: 64;
|
|
1225
|
+
readonly pattern: "^[a-z][a-zA-Z0-9]*$";
|
|
1226
|
+
readonly description: "A class of documentation, named in lowerCamelCase. Open rather than enumerated, because what documentation a vetter accepts is each vetter's own choice. Well-known values: `passport`, `nationalId`, `driverLicence`, and `none` — the vetter will attest without a document, which is the `priorAcquaintance` case. Only the class ever travels — never a document number, an image, an issuing authority or an expiry date. `none` states a policy (what a vetter accepts); a record of what was relied on expresses 'no document' as an empty list instead.";
|
|
1227
|
+
};
|
|
1228
|
+
readonly VettingMethod: {
|
|
1229
|
+
readonly title: "VettingMethod";
|
|
1230
|
+
readonly type: "string";
|
|
1231
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
1232
|
+
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.";
|
|
1233
|
+
};
|
|
1234
|
+
readonly DigestMultibase: {
|
|
1235
|
+
readonly title: "DigestMultibase";
|
|
1236
|
+
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`.";
|
|
1237
|
+
readonly type: "string";
|
|
1238
|
+
readonly minLength: 16;
|
|
1239
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
1240
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
/**
|
|
1246
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
1247
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
1248
|
+
* parties (§7.3 item 5).
|
|
1249
|
+
*/
|
|
1250
|
+
export declare const RESPONSE_SPEC: {
|
|
1251
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/join-requests/manifest/0.3#response";
|
|
1252
|
+
readonly isBearer: false;
|
|
1253
|
+
readonly isProofRequired: false;
|
|
1254
|
+
readonly isRecipientRequired: true;
|
|
1255
|
+
readonly isIssuedAtRequired: false;
|
|
1256
|
+
readonly payloadSchema: {
|
|
1257
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1258
|
+
readonly $ref: "#/$defs/Response";
|
|
1259
|
+
readonly $defs: {
|
|
1260
|
+
readonly Duration: {
|
|
1261
|
+
readonly title: "Duration";
|
|
1262
|
+
readonly type: "string";
|
|
1263
|
+
readonly maxLength: 32;
|
|
1264
|
+
readonly pattern: "^P(([0-9]+W)?([0-9]+D)?T([0-9]+H([0-9]+M)?([0-9]+S)?|[0-9]+M([0-9]+S)?|[0-9]+S)|[0-9]+W([0-9]+D)?|[0-9]+D)$";
|
|
1265
|
+
readonly description: "An ISO 8601 duration in weeks, days, hours, minutes and seconds only (e.g. `P120D`, `P2W`, `P1DT12H`, `PT15M`). Years and months are refused: their length depends on the calendar, and an age limit that means different things on different days is not a limit.";
|
|
1266
|
+
};
|
|
1267
|
+
readonly Criterion: {
|
|
1268
|
+
readonly title: "Criterion";
|
|
1269
|
+
readonly type: "object";
|
|
1270
|
+
readonly additionalProperties: false;
|
|
1271
|
+
readonly required: readonly ["id", "admission", "requirementsDigest"];
|
|
1272
|
+
readonly properties: {
|
|
1273
|
+
readonly id: {
|
|
1274
|
+
readonly type: "string";
|
|
1275
|
+
readonly minLength: 1;
|
|
1276
|
+
readonly maxLength: 128;
|
|
1277
|
+
};
|
|
1278
|
+
readonly description: {
|
|
1279
|
+
readonly type: "string";
|
|
1280
|
+
readonly maxLength: 1024;
|
|
1281
|
+
readonly description: "Plain-language summary of the criterion, authored by the community and shown to prospective applicants. Informative: where it and `vetting` disagree, `vetting` governs.";
|
|
1282
|
+
};
|
|
1283
|
+
readonly admission: {
|
|
1284
|
+
readonly type: "string";
|
|
1285
|
+
readonly enum: readonly ["automatic", "review"];
|
|
1286
|
+
readonly description: "How the community decides a submission that meets this criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who decides.";
|
|
1287
|
+
};
|
|
1288
|
+
readonly presentationDefinition: {
|
|
1289
|
+
readonly type: "object";
|
|
1290
|
+
readonly description: "The credentials an applicant must present for this criterion (opaque here). Absent: the criterion requires no credential.";
|
|
1291
|
+
};
|
|
1292
|
+
readonly credentialIssuers: {
|
|
1293
|
+
readonly type: "string";
|
|
1294
|
+
readonly enum: readonly ["any", "community", "recognised"];
|
|
1295
|
+
readonly description: "Whose credentials meet `presentationDefinition`: `community` (this community's own), `recognised` (this community's, or a community it recognises), or `any` (any issuer whose credential verifies). Present exactly when `presentationDefinition` is.";
|
|
1296
|
+
};
|
|
1297
|
+
readonly invitationRequired: {
|
|
1298
|
+
readonly type: "boolean";
|
|
1299
|
+
readonly description: "True: the criterion is met only by a submission carrying a valid, unconsumed invitation this community issued to the applicant.";
|
|
1300
|
+
};
|
|
1301
|
+
readonly vetting: {
|
|
1302
|
+
readonly $ref: "#/$defs/VettingRequirements";
|
|
1303
|
+
};
|
|
1304
|
+
readonly requirementsDigest: {
|
|
1305
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
1306
|
+
readonly description: "Digest over the RFC 8785 (JCS) canonicalization of this criterion object with the `requirementsDigest` member removed, as a multibase-encoded multihash (SHA-256 and base58btc RECOMMENDED). Names one version of the criterion: an applicant records it when starting an application and echoes it to vetters and at submission.";
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
readonly dependentRequired: {
|
|
1310
|
+
readonly presentationDefinition: readonly ["credentialIssuers"];
|
|
1311
|
+
readonly credentialIssuers: readonly ["presentationDefinition"];
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
readonly VettingRequirements: {
|
|
1315
|
+
readonly title: "VettingRequirements";
|
|
1316
|
+
readonly type: "object";
|
|
1317
|
+
readonly additionalProperties: true;
|
|
1318
|
+
readonly required: readonly ["version", "statementType", "minStatements", "acceptedMethods", "eligibleVetters"];
|
|
1319
|
+
readonly description: "What identity-vetting evidence a criterion needs, beyond what a presentation-definition can express: distinct eligible vetters, per-method floors, independence caps. Every number is the community's own policy. This schema supplies no defaults — an absent optional member means the community imposes no constraint of that kind, never that some protocol value applies. Deliberately open: a consumer MUST ignore members it does not recognise, so a community publishing a newer shape does not make an older client unable to read the rest. Durations: `maxStatementAge` — a statement older than this at decision time does not count (absent: no limit beyond the statement's own validity); `decisionSla` — how long after submission the community undertakes to decide, including on a referred application; `requirementsGrace` — how long an application started under an earlier `requirementsDigest` is still evaluated under that version.";
|
|
1320
|
+
readonly properties: {
|
|
1321
|
+
readonly version: {
|
|
1322
|
+
readonly type: "string";
|
|
1323
|
+
readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$";
|
|
1324
|
+
readonly description: "Version of this requirements object's shape. `0.1` for the members defined here.";
|
|
1325
|
+
};
|
|
1326
|
+
readonly statementType: {
|
|
1327
|
+
readonly type: "string";
|
|
1328
|
+
readonly format: "uri";
|
|
1329
|
+
readonly minLength: 1;
|
|
1330
|
+
readonly maxLength: 512;
|
|
1331
|
+
readonly description: "The predicate IRI a counted vetting statement carries in `credentialSubject.predicate` — `https://registry.trustoverip.org/dtg/vsc/vetted/1`, the DTG VSC registry's identity-vetting predicate, or a predicate in a namespace the community controls — registered as one the community accepts via vtc/endorsement-types/register. A statement under any other predicate does not count.";
|
|
1332
|
+
};
|
|
1333
|
+
readonly minStatements: {
|
|
1334
|
+
readonly type: "integer";
|
|
1335
|
+
readonly minimum: 1;
|
|
1336
|
+
readonly description: "How many counted statements are needed, counting each vetter once however many DIDs they hold.";
|
|
1337
|
+
};
|
|
1338
|
+
readonly minByMethod: {
|
|
1339
|
+
readonly type: "object";
|
|
1340
|
+
readonly propertyNames: {
|
|
1341
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
1342
|
+
};
|
|
1343
|
+
readonly additionalProperties: {
|
|
1344
|
+
readonly type: "integer";
|
|
1345
|
+
readonly minimum: 0;
|
|
1346
|
+
};
|
|
1347
|
+
readonly description: "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor.";
|
|
1348
|
+
};
|
|
1349
|
+
readonly acceptedMethods: {
|
|
1350
|
+
readonly type: "array";
|
|
1351
|
+
readonly minItems: 1;
|
|
1352
|
+
readonly uniqueItems: true;
|
|
1353
|
+
readonly items: {
|
|
1354
|
+
readonly $ref: "#/$defs/VettingMethod";
|
|
1355
|
+
};
|
|
1356
|
+
readonly description: "Methods whose statements count at all.";
|
|
1357
|
+
};
|
|
1358
|
+
readonly acceptedDocumentClasses: {
|
|
1359
|
+
readonly type: "array";
|
|
1360
|
+
readonly minItems: 1;
|
|
1361
|
+
readonly uniqueItems: true;
|
|
1362
|
+
readonly items: {
|
|
1363
|
+
readonly $ref: "#/$defs/VettingDocumentation";
|
|
1364
|
+
};
|
|
1365
|
+
readonly description: "Documentation a statement must have relied on in order to count. Absent — the expected case — means each vetter decides what documentation they accept, including none for prior acquaintance, and the community counts what they attest.";
|
|
1366
|
+
};
|
|
1367
|
+
readonly requiredClaims: {
|
|
1368
|
+
readonly type: "array";
|
|
1369
|
+
readonly uniqueItems: true;
|
|
1370
|
+
readonly items: {
|
|
1371
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
1372
|
+
};
|
|
1373
|
+
readonly description: "Claim types the applicant's Vetting Card must carry, which the identity commitment is computed over, and which a counted statement must list as verified. Absent: none.";
|
|
1374
|
+
};
|
|
1375
|
+
readonly optionalClaims: {
|
|
1376
|
+
readonly type: "array";
|
|
1377
|
+
readonly uniqueItems: true;
|
|
1378
|
+
readonly items: {
|
|
1379
|
+
readonly $ref: "#/$defs/ClaimType";
|
|
1380
|
+
};
|
|
1381
|
+
readonly description: "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts.";
|
|
1382
|
+
};
|
|
1383
|
+
readonly maxStatementAge: {
|
|
1384
|
+
readonly $ref: "#/$defs/Duration";
|
|
1385
|
+
};
|
|
1386
|
+
readonly eligibleVetters: {
|
|
1387
|
+
readonly type: "object";
|
|
1388
|
+
readonly additionalProperties: false;
|
|
1389
|
+
readonly required: readonly ["role"];
|
|
1390
|
+
readonly properties: {
|
|
1391
|
+
readonly role: {
|
|
1392
|
+
readonly type: "string";
|
|
1393
|
+
readonly minLength: 1;
|
|
1394
|
+
readonly maxLength: 128;
|
|
1395
|
+
readonly pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$";
|
|
1396
|
+
readonly description: "The role a statement's issuer must hold, matched as the action `role:<role>` in a Verifiable Authority Credential (`AuthorityCredential`) the community issued to that issuer, whose `authority.scope` is the community's DID (see `vtc/vetting/vetters/grant/0.1`). A statement counts only if its issuer holds such a credential.";
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
readonly description: "How a vetter's eligibility is established.";
|
|
1400
|
+
};
|
|
1401
|
+
readonly independence: {
|
|
1402
|
+
readonly type: "object";
|
|
1403
|
+
readonly additionalProperties: false;
|
|
1404
|
+
readonly properties: {
|
|
1405
|
+
readonly maxByDeclaredRelationship: {
|
|
1406
|
+
readonly type: "object";
|
|
1407
|
+
readonly propertyNames: {
|
|
1408
|
+
readonly $ref: "#/$defs/VettingRelationship";
|
|
1409
|
+
};
|
|
1410
|
+
readonly additionalProperties: {
|
|
1411
|
+
readonly type: "integer";
|
|
1412
|
+
readonly minimum: 0;
|
|
1413
|
+
};
|
|
1414
|
+
readonly description: "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`.";
|
|
1415
|
+
};
|
|
1416
|
+
readonly requireConsistentIdentityCommitment: {
|
|
1417
|
+
readonly type: "boolean";
|
|
1418
|
+
readonly description: "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false.";
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
readonly description: "Caps on how much evidence may come from people close to the applicant. Absent: no caps.";
|
|
1422
|
+
};
|
|
1423
|
+
readonly invitation: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly enum: readonly ["required", "optional", "none"];
|
|
1426
|
+
readonly description: "Whether an invitation credential must accompany the statements at submission (`required`), may (`optional`), or plays no part (`none`). Absent: the presentation-definition alone governs.";
|
|
1427
|
+
};
|
|
1428
|
+
readonly decisionSla: {
|
|
1429
|
+
readonly $ref: "#/$defs/Duration";
|
|
1430
|
+
};
|
|
1431
|
+
readonly requirementsGrace: {
|
|
1432
|
+
readonly $ref: "#/$defs/Duration";
|
|
1433
|
+
};
|
|
1434
|
+
readonly governanceFrameworkUrl: {
|
|
1435
|
+
readonly type: "string";
|
|
1436
|
+
readonly format: "uri";
|
|
1437
|
+
readonly pattern: "^https://";
|
|
1438
|
+
readonly maxLength: 2048;
|
|
1439
|
+
readonly description: "Where the community's vetting governance — including the attestation text vetters sign — is published.";
|
|
1440
|
+
};
|
|
1441
|
+
readonly ext: {
|
|
1442
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1, for vetting parameters this version does not enumerate. A community publishing an admission mode the base members cannot express — the zero-knowledge parameters an applicant proves against, say — puts them under a namespace it controls, rather than waiting for a version that names them.\n\nThis object is already `additionalProperties: true`, so an unknown member here has always validated. That is not the same as reaching a consumer: a generated type names the members this schema declares and drops the rest, so an undeclared member is parsed and discarded, and it is discarded again on the re-serialization `requirementsDigest` is computed over. `ext` is a declared member, so it survives both.";
|
|
1443
|
+
readonly $ref: "#/$defs/Ext";
|
|
1444
|
+
};
|
|
1445
|
+
readonly extCritical: {
|
|
1446
|
+
readonly description: "Namespaces of `ext` an applicant MUST understand or refuse, per SPEC.md §4.5.1.\n\nA community marks a namespace here when applying under this criterion without understanding it would mean something other than what the community requires — an applicant that ignored a hidden-vetting namespace, for instance, would submit named statements to a criterion whose whole point was that it does not receive them. An applicant that does not recognize a marked namespace stops rather than downgrading silently.\n\nAbsent, which is the common case, every namespace under `ext` is advisory and ignorable.";
|
|
1447
|
+
readonly $ref: "#/$defs/ExtCritical";
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
readonly CommunityBranding: {
|
|
1452
|
+
readonly title: "CommunityBranding";
|
|
1453
|
+
readonly type: "object";
|
|
1454
|
+
readonly additionalProperties: false;
|
|
1455
|
+
readonly description: "OPTIONAL. How the community asks to be shown to a prospective applicant: a name, an accent colour and a logo. Presentation only, self-asserted and unverified — `communityDid` identifies the community, never `branding`. Not part of any criterion, so not covered by a `requirementsDigest`. Every member is optional.";
|
|
1456
|
+
readonly properties: {
|
|
1457
|
+
readonly displayName: {
|
|
1458
|
+
readonly type: "string";
|
|
1459
|
+
readonly minLength: 1;
|
|
1460
|
+
readonly maxLength: 128;
|
|
1461
|
+
readonly description: "The community's name as it asks to be shown.";
|
|
1462
|
+
};
|
|
1463
|
+
readonly accentColor: {
|
|
1464
|
+
readonly type: "string";
|
|
1465
|
+
readonly pattern: "^#[0-9a-fA-F]{6}$";
|
|
1466
|
+
readonly description: "An sRGB colour as `#rrggbb`, compared case-insensitively. A community SHOULD write it in lower case.";
|
|
1467
|
+
};
|
|
1468
|
+
readonly logoUrl: {
|
|
1469
|
+
readonly type: "string";
|
|
1470
|
+
readonly format: "uri";
|
|
1471
|
+
readonly pattern: "^https://";
|
|
1472
|
+
readonly maxLength: 2048;
|
|
1473
|
+
readonly description: "An https URL of the community's logo. Fetched by the client, so an untrusted image from wherever it points.";
|
|
1474
|
+
};
|
|
1475
|
+
readonly ext: {
|
|
1476
|
+
readonly $ref: "#/$defs/Ext";
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
readonly Response: {
|
|
1481
|
+
readonly $anchor: "response";
|
|
1482
|
+
readonly title: "VTC Join-Requests Manifest — response payload";
|
|
1483
|
+
readonly type: "object";
|
|
1484
|
+
readonly additionalProperties: false;
|
|
1485
|
+
readonly required: readonly ["communityDid", "criteria"];
|
|
1486
|
+
readonly properties: {
|
|
1487
|
+
readonly communityDid: {
|
|
1488
|
+
readonly type: "string";
|
|
1489
|
+
readonly pattern: "^did:";
|
|
1490
|
+
};
|
|
1491
|
+
readonly criteria: {
|
|
1492
|
+
readonly type: "array";
|
|
1493
|
+
readonly items: {
|
|
1494
|
+
readonly $ref: "#/$defs/Criterion";
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
readonly requestedAttributes: {
|
|
1498
|
+
readonly type: "array";
|
|
1499
|
+
readonly maxItems: 32;
|
|
1500
|
+
readonly description: "What the community asks an applicant to tell it about themselves, as claim types — never values. Answered in persona terms: the applicant's agent discloses those attributes from the face the applicant chooses, and they arrive on vtc/join-requests/submit as `attributes`. SELF-ASSERTED: a community MUST NOT describe an answer as verified, and MUST NOT make a decision that assumes it is. Outside every criterion, so no `requirementsDigest` covers it. Absent when the community asks nothing.";
|
|
1501
|
+
readonly items: {
|
|
1502
|
+
readonly type: "object";
|
|
1503
|
+
readonly additionalProperties: false;
|
|
1504
|
+
readonly required: readonly ["type"];
|
|
1505
|
+
readonly properties: {
|
|
1506
|
+
readonly type: {
|
|
1507
|
+
readonly type: "string";
|
|
1508
|
+
readonly minLength: 1;
|
|
1509
|
+
readonly maxLength: 128;
|
|
1510
|
+
readonly pattern: "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$";
|
|
1511
|
+
readonly description: "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token.";
|
|
1512
|
+
};
|
|
1513
|
+
readonly required: {
|
|
1514
|
+
readonly type: "boolean";
|
|
1515
|
+
readonly default: true;
|
|
1516
|
+
readonly description: "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing.";
|
|
1517
|
+
};
|
|
1518
|
+
readonly purpose: {
|
|
1519
|
+
readonly type: "string";
|
|
1520
|
+
readonly maxLength: 256;
|
|
1521
|
+
readonly description: "Why the community asks, in words shown to the applicant before they disclose.";
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1526
|
+
readonly branding: {
|
|
1527
|
+
readonly $ref: "#/$defs/CommunityBranding";
|
|
1528
|
+
};
|
|
1529
|
+
readonly ext: {
|
|
1530
|
+
readonly $ref: "#/$defs/Ext";
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
readonly Ext: {
|
|
1535
|
+
readonly title: "Ext";
|
|
1536
|
+
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.";
|
|
1537
|
+
readonly type: "object";
|
|
1538
|
+
readonly minProperties: 1;
|
|
1539
|
+
readonly additionalProperties: true;
|
|
1540
|
+
readonly propertyNames: {
|
|
1541
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
readonly ExtCritical: {
|
|
1545
|
+
readonly title: "ExtCritical";
|
|
1546
|
+
readonly description: "Names the `ext` namespaces a consumer MUST understand or refuse, per SPEC.md §4.5.1.\n\nEvery entry MUST be an immediate key of the sibling `ext` object at the same level; an entry naming an absent namespace is non-conforming and the consumer rejects the document with `malformedRequest`. A consumer that does not recognize a namespace named here MUST NOT process the document as though the namespace were absent, and rejects it with `unsupportedExtension` — the exception to the rule that unrecognized namespaces are ignored.\n\nA producer marks a namespace only where the document's meaning depends on it. Marking one that merely carries a hint or an annotation turns every consumer that has not implemented it into a failure where it would otherwise have interoperated. JSON Schema cannot check either of those rules: that an entry names a present namespace is checkable only against the sibling `ext`, and whether a namespace is load-bearing is not a schema question at all. Both are consumer-side checks.";
|
|
1547
|
+
readonly type: "array";
|
|
1548
|
+
readonly minItems: 1;
|
|
1549
|
+
readonly uniqueItems: true;
|
|
1550
|
+
readonly items: {
|
|
1551
|
+
readonly type: "string";
|
|
1552
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
1553
|
+
};
|
|
1554
|
+
readonly examples: readonly [readonly ["org.openvtc.hidden-vetting"]];
|
|
1555
|
+
};
|
|
1556
|
+
readonly VettingRelationship: {
|
|
1557
|
+
readonly title: "VettingRelationship";
|
|
1558
|
+
readonly type: "string";
|
|
1559
|
+
readonly enum: readonly ["none", "communityColleague", "sameEmployer", "family", "otherPersonal"];
|
|
1560
|
+
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.";
|
|
1561
|
+
};
|
|
1562
|
+
readonly ClaimType: {
|
|
1563
|
+
readonly title: "ClaimType";
|
|
1564
|
+
readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
|
|
1565
|
+
readonly type: "string";
|
|
1566
|
+
readonly minLength: 1;
|
|
1567
|
+
readonly maxLength: 128;
|
|
1568
|
+
readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
|
|
1569
|
+
};
|
|
1570
|
+
readonly VettingDocumentation: {
|
|
1571
|
+
readonly title: "VettingDocumentation";
|
|
1572
|
+
readonly type: "string";
|
|
1573
|
+
readonly minLength: 1;
|
|
1574
|
+
readonly maxLength: 64;
|
|
1575
|
+
readonly pattern: "^[a-z][a-zA-Z0-9]*$";
|
|
1576
|
+
readonly description: "A class of documentation, named in lowerCamelCase. Open rather than enumerated, because what documentation a vetter accepts is each vetter's own choice. Well-known values: `passport`, `nationalId`, `driverLicence`, and `none` — the vetter will attest without a document, which is the `priorAcquaintance` case. Only the class ever travels — never a document number, an image, an issuing authority or an expiry date. `none` states a policy (what a vetter accepts); a record of what was relied on expresses 'no document' as an empty list instead.";
|
|
1577
|
+
};
|
|
1578
|
+
readonly VettingMethod: {
|
|
1579
|
+
readonly title: "VettingMethod";
|
|
1580
|
+
readonly type: "string";
|
|
1581
|
+
readonly enum: readonly ["inPerson", "video", "priorAcquaintance"];
|
|
1582
|
+
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.";
|
|
1583
|
+
};
|
|
1584
|
+
readonly DigestMultibase: {
|
|
1585
|
+
readonly title: "DigestMultibase";
|
|
1586
|
+
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`.";
|
|
1587
|
+
readonly type: "string";
|
|
1588
|
+
readonly minLength: 16;
|
|
1589
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
1590
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
};
|
|
1595
|
+
//# sourceMappingURL=payload.d.ts.map
|