@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,759 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/schemas/accepts/list/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/accepts/list/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/accepts/list/0.2#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vtc/schemas/accepts/list/0.2",
|
|
21
|
+
"title": "VTC Schemas — Accepts — List — payload",
|
|
22
|
+
"description": "Page through the community's Accepts criteria. The outer document members are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"cursor": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 1024,
|
|
30
|
+
"description": "Opaque continuation token from a previous page's `nextCursor`."
|
|
31
|
+
},
|
|
32
|
+
"limit": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": 1,
|
|
35
|
+
"maximum": 50,
|
|
36
|
+
"description": "Page size. The community chooses when absent."
|
|
37
|
+
},
|
|
38
|
+
"ext": {
|
|
39
|
+
"$ref": "#/$defs/Ext"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"$defs": {
|
|
43
|
+
"Response": {
|
|
44
|
+
"$anchor": "response",
|
|
45
|
+
"title": "VTC Schemas — Accepts — List — response payload",
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"items"
|
|
50
|
+
],
|
|
51
|
+
"properties": {
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"maxItems": 50,
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/AcceptsCriterion"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"nextCursor": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 1024,
|
|
63
|
+
"description": "Present when more criteria remain; pass it as `cursor`."
|
|
64
|
+
},
|
|
65
|
+
"ext": {
|
|
66
|
+
"$ref": "#/$defs/Ext"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"Ext": {
|
|
71
|
+
"title": "Ext",
|
|
72
|
+
"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.",
|
|
73
|
+
"type": "object",
|
|
74
|
+
"minProperties": 1,
|
|
75
|
+
"additionalProperties": true,
|
|
76
|
+
"propertyNames": {
|
|
77
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"AcceptsCriterion": {
|
|
81
|
+
"title": "AcceptsCriterion",
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"required": [
|
|
85
|
+
"id",
|
|
86
|
+
"admission",
|
|
87
|
+
"createdAt",
|
|
88
|
+
"createdByDid"
|
|
89
|
+
],
|
|
90
|
+
"dependentRequired": {
|
|
91
|
+
"query": [
|
|
92
|
+
"credentialIssuers"
|
|
93
|
+
],
|
|
94
|
+
"credentialIssuers": [
|
|
95
|
+
"query"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"description": "One way into the community: what an applicant must present, and how a submission that presents it is decided. Every requirement it states must be met; requirements it does not state are not requirements. A criterion stating none is met by every submission. A community's criteria are alternatives: a submission is decided under the one it names. What vtc/join-requests/manifest/0.3 publishes to applicants as a `Criterion` is derived from this.",
|
|
99
|
+
"properties": {
|
|
100
|
+
"id": {
|
|
101
|
+
"$ref": "#/$defs/AcceptsCriterionId"
|
|
102
|
+
},
|
|
103
|
+
"admission": {
|
|
104
|
+
"$ref": "#/$defs/Admission"
|
|
105
|
+
},
|
|
106
|
+
"query": {
|
|
107
|
+
"$ref": "#/$defs/DcqlQuery",
|
|
108
|
+
"description": "The credentials an applicant must present, as a DCQL query. Absent: the criterion requires no credential."
|
|
109
|
+
},
|
|
110
|
+
"credentialIssuers": {
|
|
111
|
+
"$ref": "#/$defs/CredentialIssuers",
|
|
112
|
+
"description": "Whose credentials meet `query`. Present exactly when `query` is."
|
|
113
|
+
},
|
|
114
|
+
"invitationRequired": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"description": "True: a submission meets the criterion only when it carries a valid, unconsumed invitation credential this community issued to the applicant. Absent or false: an invitation plays no part in meeting this criterion (another criterion may still require one)."
|
|
117
|
+
},
|
|
118
|
+
"description": {
|
|
119
|
+
"$ref": "#/$defs/CriterionDescription"
|
|
120
|
+
},
|
|
121
|
+
"vetting": {
|
|
122
|
+
"$ref": "#/$defs/VettingRequirements"
|
|
123
|
+
},
|
|
124
|
+
"createdAt": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"format": "date-time",
|
|
127
|
+
"description": "When this criterion was last registered. Registering an existing id replaces it."
|
|
128
|
+
},
|
|
129
|
+
"createdByDid": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^did:",
|
|
132
|
+
"maxLength": 2048,
|
|
133
|
+
"description": "The administrator who last registered the criterion."
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"VettingRequirements": {
|
|
138
|
+
"title": "VettingRequirements",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": true,
|
|
141
|
+
"required": [
|
|
142
|
+
"version",
|
|
143
|
+
"statementType",
|
|
144
|
+
"minStatements",
|
|
145
|
+
"acceptedMethods",
|
|
146
|
+
"eligibleVetters"
|
|
147
|
+
],
|
|
148
|
+
"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.",
|
|
149
|
+
"properties": {
|
|
150
|
+
"version": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$",
|
|
153
|
+
"description": "Version of this requirements object's shape. `0.1` for the members defined here."
|
|
154
|
+
},
|
|
155
|
+
"statementType": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"format": "uri",
|
|
158
|
+
"minLength": 1,
|
|
159
|
+
"maxLength": 512,
|
|
160
|
+
"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."
|
|
161
|
+
},
|
|
162
|
+
"minStatements": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 1,
|
|
165
|
+
"description": "How many counted statements are needed, counting each vetter once however many DIDs they hold."
|
|
166
|
+
},
|
|
167
|
+
"minByMethod": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"propertyNames": {
|
|
170
|
+
"$ref": "#/$defs/VettingMethod"
|
|
171
|
+
},
|
|
172
|
+
"additionalProperties": {
|
|
173
|
+
"type": "integer",
|
|
174
|
+
"minimum": 0
|
|
175
|
+
},
|
|
176
|
+
"description": "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor."
|
|
177
|
+
},
|
|
178
|
+
"acceptedMethods": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"minItems": 1,
|
|
181
|
+
"uniqueItems": true,
|
|
182
|
+
"items": {
|
|
183
|
+
"$ref": "#/$defs/VettingMethod"
|
|
184
|
+
},
|
|
185
|
+
"description": "Methods whose statements count at all."
|
|
186
|
+
},
|
|
187
|
+
"acceptedDocumentClasses": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"minItems": 1,
|
|
190
|
+
"uniqueItems": true,
|
|
191
|
+
"items": {
|
|
192
|
+
"$ref": "#/$defs/VettingDocumentation"
|
|
193
|
+
},
|
|
194
|
+
"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."
|
|
195
|
+
},
|
|
196
|
+
"requiredClaims": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"uniqueItems": true,
|
|
199
|
+
"items": {
|
|
200
|
+
"$ref": "#/$defs/ClaimType"
|
|
201
|
+
},
|
|
202
|
+
"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."
|
|
203
|
+
},
|
|
204
|
+
"optionalClaims": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"uniqueItems": true,
|
|
207
|
+
"items": {
|
|
208
|
+
"$ref": "#/$defs/ClaimType"
|
|
209
|
+
},
|
|
210
|
+
"description": "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts."
|
|
211
|
+
},
|
|
212
|
+
"maxStatementAge": {
|
|
213
|
+
"$ref": "#/$defs/Duration"
|
|
214
|
+
},
|
|
215
|
+
"eligibleVetters": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"required": [
|
|
219
|
+
"role"
|
|
220
|
+
],
|
|
221
|
+
"properties": {
|
|
222
|
+
"role": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 128,
|
|
226
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$",
|
|
227
|
+
"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."
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"description": "How a vetter's eligibility is established."
|
|
231
|
+
},
|
|
232
|
+
"independence": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"additionalProperties": false,
|
|
235
|
+
"properties": {
|
|
236
|
+
"maxByDeclaredRelationship": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"propertyNames": {
|
|
239
|
+
"$ref": "#/$defs/VettingRelationship"
|
|
240
|
+
},
|
|
241
|
+
"additionalProperties": {
|
|
242
|
+
"type": "integer",
|
|
243
|
+
"minimum": 0
|
|
244
|
+
},
|
|
245
|
+
"description": "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`."
|
|
246
|
+
},
|
|
247
|
+
"requireConsistentIdentityCommitment": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"description": "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false."
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"description": "Caps on how much evidence may come from people close to the applicant. Absent: no caps."
|
|
253
|
+
},
|
|
254
|
+
"invitation": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"enum": [
|
|
257
|
+
"required",
|
|
258
|
+
"optional",
|
|
259
|
+
"none"
|
|
260
|
+
],
|
|
261
|
+
"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."
|
|
262
|
+
},
|
|
263
|
+
"decisionSla": {
|
|
264
|
+
"$ref": "#/$defs/Duration"
|
|
265
|
+
},
|
|
266
|
+
"requirementsGrace": {
|
|
267
|
+
"$ref": "#/$defs/Duration"
|
|
268
|
+
},
|
|
269
|
+
"governanceFrameworkUrl": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"format": "uri",
|
|
272
|
+
"pattern": "^https://",
|
|
273
|
+
"maxLength": 2048,
|
|
274
|
+
"description": "Where the community's vetting governance — including the attestation text vetters sign — is published."
|
|
275
|
+
},
|
|
276
|
+
"ext": {
|
|
277
|
+
"$ref": "#/$defs/Ext"
|
|
278
|
+
},
|
|
279
|
+
"extCritical": {
|
|
280
|
+
"$ref": "#/$defs/ExtCritical"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"Duration": {
|
|
285
|
+
"title": "Duration",
|
|
286
|
+
"type": "string",
|
|
287
|
+
"maxLength": 32,
|
|
288
|
+
"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)$",
|
|
289
|
+
"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."
|
|
290
|
+
},
|
|
291
|
+
"ExtCritical": {
|
|
292
|
+
"title": "ExtCritical",
|
|
293
|
+
"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.",
|
|
294
|
+
"type": "array",
|
|
295
|
+
"minItems": 1,
|
|
296
|
+
"uniqueItems": true,
|
|
297
|
+
"items": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
300
|
+
},
|
|
301
|
+
"examples": [
|
|
302
|
+
[
|
|
303
|
+
"org.openvtc.hidden-vetting"
|
|
304
|
+
]
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"VettingRelationship": {
|
|
308
|
+
"title": "VettingRelationship",
|
|
309
|
+
"type": "string",
|
|
310
|
+
"enum": [
|
|
311
|
+
"none",
|
|
312
|
+
"communityColleague",
|
|
313
|
+
"sameEmployer",
|
|
314
|
+
"family",
|
|
315
|
+
"otherPersonal"
|
|
316
|
+
],
|
|
317
|
+
"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."
|
|
318
|
+
},
|
|
319
|
+
"ClaimType": {
|
|
320
|
+
"title": "ClaimType",
|
|
321
|
+
"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.",
|
|
322
|
+
"type": "string",
|
|
323
|
+
"minLength": 1,
|
|
324
|
+
"maxLength": 128,
|
|
325
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
326
|
+
},
|
|
327
|
+
"VettingDocumentation": {
|
|
328
|
+
"title": "VettingDocumentation",
|
|
329
|
+
"type": "string",
|
|
330
|
+
"minLength": 1,
|
|
331
|
+
"maxLength": 64,
|
|
332
|
+
"pattern": "^[a-z][a-zA-Z0-9]*$",
|
|
333
|
+
"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."
|
|
334
|
+
},
|
|
335
|
+
"VettingMethod": {
|
|
336
|
+
"title": "VettingMethod",
|
|
337
|
+
"type": "string",
|
|
338
|
+
"enum": [
|
|
339
|
+
"inPerson",
|
|
340
|
+
"video",
|
|
341
|
+
"priorAcquaintance"
|
|
342
|
+
],
|
|
343
|
+
"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."
|
|
344
|
+
},
|
|
345
|
+
"CriterionDescription": {
|
|
346
|
+
"title": "CriterionDescription",
|
|
347
|
+
"type": "string",
|
|
348
|
+
"maxLength": 1024,
|
|
349
|
+
"description": "Plain-language summary of the criterion, written by the registering administrator. Published to prospective applicants in the join manifest, and used as the `purpose` of the credential-exchange/query a join sends when the criterion has a `query` — so it is read by applicants and their agents, not only by administrators. Untrusted as a statement of the rule: where it and the criterion's other members disagree, those govern."
|
|
350
|
+
},
|
|
351
|
+
"CredentialIssuers": {
|
|
352
|
+
"title": "CredentialIssuers",
|
|
353
|
+
"type": "string",
|
|
354
|
+
"enum": [
|
|
355
|
+
"any",
|
|
356
|
+
"community",
|
|
357
|
+
"recognised"
|
|
358
|
+
],
|
|
359
|
+
"description": "Whose credentials meet the criterion's `query`. `community`: only credentials this community issued. `recognised`: credentials this community issued, or issued by a community it recognises (vtc/recognition/check). `any`: any issuer whose credential verifies — the query's own constraints, including DCQL `trusted_authorities`, are then all that limits it. A credential that does not verify (signature, validity window, revocation) never meets a criterion, whichever value is chosen."
|
|
360
|
+
},
|
|
361
|
+
"DcqlQuery": {
|
|
362
|
+
"title": "DcqlQuery",
|
|
363
|
+
"type": "object",
|
|
364
|
+
"additionalProperties": true,
|
|
365
|
+
"description": "An OpenID for Verifiable Presentations DCQL query, carried verbatim: per-credential `format`, `meta` type selector (`vct_values`) and requested `claims`. Defined by OID4VP and not re-specified here; snake_case member names are DCQL's own. The community parses it as DCQL and checks every type it references against the registry."
|
|
366
|
+
},
|
|
367
|
+
"Admission": {
|
|
368
|
+
"title": "Admission",
|
|
369
|
+
"type": "string",
|
|
370
|
+
"enum": [
|
|
371
|
+
"automatic",
|
|
372
|
+
"review"
|
|
373
|
+
],
|
|
374
|
+
"description": "How the community decides a submission that meets the criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who admits or rejects it; meeting the criterion never admits by itself. Which a criterion uses is the community's policy; this definition prefers neither."
|
|
375
|
+
},
|
|
376
|
+
"AcceptsCriterionId": {
|
|
377
|
+
"title": "AcceptsCriterionId",
|
|
378
|
+
"type": "string",
|
|
379
|
+
"minLength": 1,
|
|
380
|
+
"maxLength": 128,
|
|
381
|
+
"description": "An Accepts criterion's identifier, chosen by the registering administrator — a ceremony purpose or a named manifest criterion, e.g. `membership`. Compared as an exact string after surrounding whitespace is trimmed. Bounded at 128 characters, the bound vtc/join-requests/manifest/0.2 places on the criterion `id` it publishes."
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
386
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
387
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
388
|
+
"$ref": "#/$defs/Response",
|
|
389
|
+
"$defs": {
|
|
390
|
+
"Response": {
|
|
391
|
+
"$anchor": "response",
|
|
392
|
+
"title": "VTC Schemas — Accepts — List — response payload",
|
|
393
|
+
"type": "object",
|
|
394
|
+
"additionalProperties": false,
|
|
395
|
+
"required": [
|
|
396
|
+
"items"
|
|
397
|
+
],
|
|
398
|
+
"properties": {
|
|
399
|
+
"items": {
|
|
400
|
+
"type": "array",
|
|
401
|
+
"maxItems": 50,
|
|
402
|
+
"items": {
|
|
403
|
+
"$ref": "#/$defs/AcceptsCriterion"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"nextCursor": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"minLength": 1,
|
|
409
|
+
"maxLength": 1024,
|
|
410
|
+
"description": "Present when more criteria remain; pass it as `cursor`."
|
|
411
|
+
},
|
|
412
|
+
"ext": {
|
|
413
|
+
"$ref": "#/$defs/Ext"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"Ext": {
|
|
418
|
+
"title": "Ext",
|
|
419
|
+
"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.",
|
|
420
|
+
"type": "object",
|
|
421
|
+
"minProperties": 1,
|
|
422
|
+
"additionalProperties": true,
|
|
423
|
+
"propertyNames": {
|
|
424
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"AcceptsCriterion": {
|
|
428
|
+
"title": "AcceptsCriterion",
|
|
429
|
+
"type": "object",
|
|
430
|
+
"additionalProperties": false,
|
|
431
|
+
"required": [
|
|
432
|
+
"id",
|
|
433
|
+
"admission",
|
|
434
|
+
"createdAt",
|
|
435
|
+
"createdByDid"
|
|
436
|
+
],
|
|
437
|
+
"dependentRequired": {
|
|
438
|
+
"query": [
|
|
439
|
+
"credentialIssuers"
|
|
440
|
+
],
|
|
441
|
+
"credentialIssuers": [
|
|
442
|
+
"query"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"description": "One way into the community: what an applicant must present, and how a submission that presents it is decided. Every requirement it states must be met; requirements it does not state are not requirements. A criterion stating none is met by every submission. A community's criteria are alternatives: a submission is decided under the one it names. What vtc/join-requests/manifest/0.3 publishes to applicants as a `Criterion` is derived from this.",
|
|
446
|
+
"properties": {
|
|
447
|
+
"id": {
|
|
448
|
+
"$ref": "#/$defs/AcceptsCriterionId"
|
|
449
|
+
},
|
|
450
|
+
"admission": {
|
|
451
|
+
"$ref": "#/$defs/Admission"
|
|
452
|
+
},
|
|
453
|
+
"query": {
|
|
454
|
+
"$ref": "#/$defs/DcqlQuery",
|
|
455
|
+
"description": "The credentials an applicant must present, as a DCQL query. Absent: the criterion requires no credential."
|
|
456
|
+
},
|
|
457
|
+
"credentialIssuers": {
|
|
458
|
+
"$ref": "#/$defs/CredentialIssuers",
|
|
459
|
+
"description": "Whose credentials meet `query`. Present exactly when `query` is."
|
|
460
|
+
},
|
|
461
|
+
"invitationRequired": {
|
|
462
|
+
"type": "boolean",
|
|
463
|
+
"description": "True: a submission meets the criterion only when it carries a valid, unconsumed invitation credential this community issued to the applicant. Absent or false: an invitation plays no part in meeting this criterion (another criterion may still require one)."
|
|
464
|
+
},
|
|
465
|
+
"description": {
|
|
466
|
+
"$ref": "#/$defs/CriterionDescription"
|
|
467
|
+
},
|
|
468
|
+
"vetting": {
|
|
469
|
+
"$ref": "#/$defs/VettingRequirements"
|
|
470
|
+
},
|
|
471
|
+
"createdAt": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"format": "date-time",
|
|
474
|
+
"description": "When this criterion was last registered. Registering an existing id replaces it."
|
|
475
|
+
},
|
|
476
|
+
"createdByDid": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"pattern": "^did:",
|
|
479
|
+
"maxLength": 2048,
|
|
480
|
+
"description": "The administrator who last registered the criterion."
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"VettingRequirements": {
|
|
485
|
+
"title": "VettingRequirements",
|
|
486
|
+
"type": "object",
|
|
487
|
+
"additionalProperties": true,
|
|
488
|
+
"required": [
|
|
489
|
+
"version",
|
|
490
|
+
"statementType",
|
|
491
|
+
"minStatements",
|
|
492
|
+
"acceptedMethods",
|
|
493
|
+
"eligibleVetters"
|
|
494
|
+
],
|
|
495
|
+
"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.",
|
|
496
|
+
"properties": {
|
|
497
|
+
"version": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$",
|
|
500
|
+
"description": "Version of this requirements object's shape. `0.1` for the members defined here."
|
|
501
|
+
},
|
|
502
|
+
"statementType": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"format": "uri",
|
|
505
|
+
"minLength": 1,
|
|
506
|
+
"maxLength": 512,
|
|
507
|
+
"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."
|
|
508
|
+
},
|
|
509
|
+
"minStatements": {
|
|
510
|
+
"type": "integer",
|
|
511
|
+
"minimum": 1,
|
|
512
|
+
"description": "How many counted statements are needed, counting each vetter once however many DIDs they hold."
|
|
513
|
+
},
|
|
514
|
+
"minByMethod": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"propertyNames": {
|
|
517
|
+
"$ref": "#/$defs/VettingMethod"
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": {
|
|
520
|
+
"type": "integer",
|
|
521
|
+
"minimum": 0
|
|
522
|
+
},
|
|
523
|
+
"description": "Per-method floors within `minStatements` — e.g. `{ \"inPerson\": 1 }`. Every method named MUST also be in `acceptedMethods`. Absent: no method floor."
|
|
524
|
+
},
|
|
525
|
+
"acceptedMethods": {
|
|
526
|
+
"type": "array",
|
|
527
|
+
"minItems": 1,
|
|
528
|
+
"uniqueItems": true,
|
|
529
|
+
"items": {
|
|
530
|
+
"$ref": "#/$defs/VettingMethod"
|
|
531
|
+
},
|
|
532
|
+
"description": "Methods whose statements count at all."
|
|
533
|
+
},
|
|
534
|
+
"acceptedDocumentClasses": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"minItems": 1,
|
|
537
|
+
"uniqueItems": true,
|
|
538
|
+
"items": {
|
|
539
|
+
"$ref": "#/$defs/VettingDocumentation"
|
|
540
|
+
},
|
|
541
|
+
"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."
|
|
542
|
+
},
|
|
543
|
+
"requiredClaims": {
|
|
544
|
+
"type": "array",
|
|
545
|
+
"uniqueItems": true,
|
|
546
|
+
"items": {
|
|
547
|
+
"$ref": "#/$defs/ClaimType"
|
|
548
|
+
},
|
|
549
|
+
"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."
|
|
550
|
+
},
|
|
551
|
+
"optionalClaims": {
|
|
552
|
+
"type": "array",
|
|
553
|
+
"uniqueItems": true,
|
|
554
|
+
"items": {
|
|
555
|
+
"$ref": "#/$defs/ClaimType"
|
|
556
|
+
},
|
|
557
|
+
"description": "Claim types an applicant MAY add to the card and a vetter MAY verify. They never affect whether a statement counts."
|
|
558
|
+
},
|
|
559
|
+
"maxStatementAge": {
|
|
560
|
+
"$ref": "#/$defs/Duration"
|
|
561
|
+
},
|
|
562
|
+
"eligibleVetters": {
|
|
563
|
+
"type": "object",
|
|
564
|
+
"additionalProperties": false,
|
|
565
|
+
"required": [
|
|
566
|
+
"role"
|
|
567
|
+
],
|
|
568
|
+
"properties": {
|
|
569
|
+
"role": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"minLength": 1,
|
|
572
|
+
"maxLength": 128,
|
|
573
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$",
|
|
574
|
+
"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."
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"description": "How a vetter's eligibility is established."
|
|
578
|
+
},
|
|
579
|
+
"independence": {
|
|
580
|
+
"type": "object",
|
|
581
|
+
"additionalProperties": false,
|
|
582
|
+
"properties": {
|
|
583
|
+
"maxByDeclaredRelationship": {
|
|
584
|
+
"type": "object",
|
|
585
|
+
"propertyNames": {
|
|
586
|
+
"$ref": "#/$defs/VettingRelationship"
|
|
587
|
+
},
|
|
588
|
+
"additionalProperties": {
|
|
589
|
+
"type": "integer",
|
|
590
|
+
"minimum": 0
|
|
591
|
+
},
|
|
592
|
+
"description": "The most counted statements that may come from vetters declaring each relationship — e.g. `{ \"family\": 0 }`."
|
|
593
|
+
},
|
|
594
|
+
"requireConsistentIdentityCommitment": {
|
|
595
|
+
"type": "boolean",
|
|
596
|
+
"description": "When true, every counted statement must carry the same identity commitment — all vetters verified the same claimed identity. Absent: false."
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"description": "Caps on how much evidence may come from people close to the applicant. Absent: no caps."
|
|
600
|
+
},
|
|
601
|
+
"invitation": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"enum": [
|
|
604
|
+
"required",
|
|
605
|
+
"optional",
|
|
606
|
+
"none"
|
|
607
|
+
],
|
|
608
|
+
"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."
|
|
609
|
+
},
|
|
610
|
+
"decisionSla": {
|
|
611
|
+
"$ref": "#/$defs/Duration"
|
|
612
|
+
},
|
|
613
|
+
"requirementsGrace": {
|
|
614
|
+
"$ref": "#/$defs/Duration"
|
|
615
|
+
},
|
|
616
|
+
"governanceFrameworkUrl": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"format": "uri",
|
|
619
|
+
"pattern": "^https://",
|
|
620
|
+
"maxLength": 2048,
|
|
621
|
+
"description": "Where the community's vetting governance — including the attestation text vetters sign — is published."
|
|
622
|
+
},
|
|
623
|
+
"ext": {
|
|
624
|
+
"$ref": "#/$defs/Ext"
|
|
625
|
+
},
|
|
626
|
+
"extCritical": {
|
|
627
|
+
"$ref": "#/$defs/ExtCritical"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"Duration": {
|
|
632
|
+
"title": "Duration",
|
|
633
|
+
"type": "string",
|
|
634
|
+
"maxLength": 32,
|
|
635
|
+
"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)$",
|
|
636
|
+
"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."
|
|
637
|
+
},
|
|
638
|
+
"ExtCritical": {
|
|
639
|
+
"title": "ExtCritical",
|
|
640
|
+
"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.",
|
|
641
|
+
"type": "array",
|
|
642
|
+
"minItems": 1,
|
|
643
|
+
"uniqueItems": true,
|
|
644
|
+
"items": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
647
|
+
},
|
|
648
|
+
"examples": [
|
|
649
|
+
[
|
|
650
|
+
"org.openvtc.hidden-vetting"
|
|
651
|
+
]
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"VettingRelationship": {
|
|
655
|
+
"title": "VettingRelationship",
|
|
656
|
+
"type": "string",
|
|
657
|
+
"enum": [
|
|
658
|
+
"none",
|
|
659
|
+
"communityColleague",
|
|
660
|
+
"sameEmployer",
|
|
661
|
+
"family",
|
|
662
|
+
"otherPersonal"
|
|
663
|
+
],
|
|
664
|
+
"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."
|
|
665
|
+
},
|
|
666
|
+
"ClaimType": {
|
|
667
|
+
"title": "ClaimType",
|
|
668
|
+
"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.",
|
|
669
|
+
"type": "string",
|
|
670
|
+
"minLength": 1,
|
|
671
|
+
"maxLength": 128,
|
|
672
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
673
|
+
},
|
|
674
|
+
"VettingDocumentation": {
|
|
675
|
+
"title": "VettingDocumentation",
|
|
676
|
+
"type": "string",
|
|
677
|
+
"minLength": 1,
|
|
678
|
+
"maxLength": 64,
|
|
679
|
+
"pattern": "^[a-z][a-zA-Z0-9]*$",
|
|
680
|
+
"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."
|
|
681
|
+
},
|
|
682
|
+
"VettingMethod": {
|
|
683
|
+
"title": "VettingMethod",
|
|
684
|
+
"type": "string",
|
|
685
|
+
"enum": [
|
|
686
|
+
"inPerson",
|
|
687
|
+
"video",
|
|
688
|
+
"priorAcquaintance"
|
|
689
|
+
],
|
|
690
|
+
"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."
|
|
691
|
+
},
|
|
692
|
+
"CriterionDescription": {
|
|
693
|
+
"title": "CriterionDescription",
|
|
694
|
+
"type": "string",
|
|
695
|
+
"maxLength": 1024,
|
|
696
|
+
"description": "Plain-language summary of the criterion, written by the registering administrator. Published to prospective applicants in the join manifest, and used as the `purpose` of the credential-exchange/query a join sends when the criterion has a `query` — so it is read by applicants and their agents, not only by administrators. Untrusted as a statement of the rule: where it and the criterion's other members disagree, those govern."
|
|
697
|
+
},
|
|
698
|
+
"CredentialIssuers": {
|
|
699
|
+
"title": "CredentialIssuers",
|
|
700
|
+
"type": "string",
|
|
701
|
+
"enum": [
|
|
702
|
+
"any",
|
|
703
|
+
"community",
|
|
704
|
+
"recognised"
|
|
705
|
+
],
|
|
706
|
+
"description": "Whose credentials meet the criterion's `query`. `community`: only credentials this community issued. `recognised`: credentials this community issued, or issued by a community it recognises (vtc/recognition/check). `any`: any issuer whose credential verifies — the query's own constraints, including DCQL `trusted_authorities`, are then all that limits it. A credential that does not verify (signature, validity window, revocation) never meets a criterion, whichever value is chosen."
|
|
707
|
+
},
|
|
708
|
+
"DcqlQuery": {
|
|
709
|
+
"title": "DcqlQuery",
|
|
710
|
+
"type": "object",
|
|
711
|
+
"additionalProperties": true,
|
|
712
|
+
"description": "An OpenID for Verifiable Presentations DCQL query, carried verbatim: per-credential `format`, `meta` type selector (`vct_values`) and requested `claims`. Defined by OID4VP and not re-specified here; snake_case member names are DCQL's own. The community parses it as DCQL and checks every type it references against the registry."
|
|
713
|
+
},
|
|
714
|
+
"Admission": {
|
|
715
|
+
"title": "Admission",
|
|
716
|
+
"type": "string",
|
|
717
|
+
"enum": [
|
|
718
|
+
"automatic",
|
|
719
|
+
"review"
|
|
720
|
+
],
|
|
721
|
+
"description": "How the community decides a submission that meets the criterion. `automatic`: it admits the applicant without a person deciding. `review`: it refers the submission to an administrator, who admits or rejects it; meeting the criterion never admits by itself. Which a criterion uses is the community's policy; this definition prefers neither."
|
|
722
|
+
},
|
|
723
|
+
"AcceptsCriterionId": {
|
|
724
|
+
"title": "AcceptsCriterionId",
|
|
725
|
+
"type": "string",
|
|
726
|
+
"minLength": 1,
|
|
727
|
+
"maxLength": 128,
|
|
728
|
+
"description": "An Accepts criterion's identifier, chosen by the registering administrator — a ceremony purpose or a named manifest criterion, e.g. `membership`. Compared as an exact string after surrounding whitespace is trimmed. Bounded at 128 characters, the bound vtc/join-requests/manifest/0.2 places on the criterion `id` it publishes."
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
734
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
735
|
+
* per-specification and cannot be derived from the document alone, and
|
|
736
|
+
* item 2 needs the schema this carries.
|
|
737
|
+
*/
|
|
738
|
+
export const SPEC = {
|
|
739
|
+
typeUri: TYPE_URI,
|
|
740
|
+
isBearer: false,
|
|
741
|
+
isProofRequired: false,
|
|
742
|
+
isRecipientRequired: true,
|
|
743
|
+
isIssuedAtRequired: false,
|
|
744
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
748
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
749
|
+
* parties (§7.3 item 5).
|
|
750
|
+
*/
|
|
751
|
+
export const RESPONSE_SPEC = {
|
|
752
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
753
|
+
isBearer: false,
|
|
754
|
+
isProofRequired: false,
|
|
755
|
+
isRecipientRequired: true,
|
|
756
|
+
isIssuedAtRequired: false,
|
|
757
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
758
|
+
};
|
|
759
|
+
//# sourceMappingURL=payload.js.map
|