@openvtc/trust-tasks 0.23.4 → 0.23.6
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 +47 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.d.ts +733 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.js +408 -0
- package/dist/git-ns/bridge/job/list/0.2/payload.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +1361 -0
- package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/hidden/show/0.1/payload.js +751 -0
- package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/hidden/withdraw/0.1/payload.d.ts +270 -0
- package/dist/vtc/vetting/hidden/withdraw/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/hidden/withdraw/0.1/payload.js +159 -0
- package/dist/vtc/vetting/hidden/withdraw/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/git-ns/bridge/job/list/0.2/payload.ts +517 -0
- package/src/index.ts +3 -0
- package/src/vtc/vetting/hidden/show/0.1/payload.ts +905 -0
- package/src/vtc/vetting/hidden/withdraw/0.1/payload.ts +202 -0
|
@@ -0,0 +1,751 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/hidden/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/hidden/show/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/hidden/show/0.1#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/vetting/hidden/show/0.1",
|
|
21
|
+
"title": "VTC Vetting — Hidden — Show — payload",
|
|
22
|
+
"description": "Read one criterion's stored hidden-vetting configuration, what it publishes, and the aggregate counts an administrator needs to run it. The outer document members are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"criterionId"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"criterionId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "The Accepts criterion to read."
|
|
33
|
+
},
|
|
34
|
+
"ext": {
|
|
35
|
+
"$ref": "#/$defs/Ext"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"Tier": {
|
|
40
|
+
"title": "Tier",
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"name",
|
|
45
|
+
"dripPerTick"
|
|
46
|
+
],
|
|
47
|
+
"properties": {
|
|
48
|
+
"name": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"description": "How the menu names it: desk, busy-desk."
|
|
52
|
+
},
|
|
53
|
+
"dripPerTick": {
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"minimum": 1,
|
|
56
|
+
"description": "How many tokens a tick under this tier yields."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"StoredEvent": {
|
|
61
|
+
"title": "StoredEvent",
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": [
|
|
65
|
+
"eventId",
|
|
66
|
+
"startDate",
|
|
67
|
+
"endDate",
|
|
68
|
+
"graceDays",
|
|
69
|
+
"groupFloor",
|
|
70
|
+
"tiers"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"eventId": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1
|
|
76
|
+
},
|
|
77
|
+
"startDate": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "date"
|
|
80
|
+
},
|
|
81
|
+
"endDate": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"format": "date"
|
|
84
|
+
},
|
|
85
|
+
"graceDays": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 0
|
|
88
|
+
},
|
|
89
|
+
"groupFloor": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"minimum": 1
|
|
92
|
+
},
|
|
93
|
+
"tiers": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"items": {
|
|
96
|
+
"$ref": "#/$defs/Tier"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"approvedBy": {
|
|
100
|
+
"type": [
|
|
101
|
+
"string",
|
|
102
|
+
"null"
|
|
103
|
+
],
|
|
104
|
+
"description": "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events)."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"PublishedEvent": {
|
|
109
|
+
"title": "PublishedEvent",
|
|
110
|
+
"description": "The published shape drops approvedBy and graceDays: who approved is the community's own record, and a vetter is told closesAfter when its request is approved rather than being handed the raw grace period here.",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"eventId",
|
|
115
|
+
"startDate",
|
|
116
|
+
"endDate",
|
|
117
|
+
"groupFloor",
|
|
118
|
+
"tiers"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"eventId": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"minLength": 1
|
|
124
|
+
},
|
|
125
|
+
"startDate": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"format": "date"
|
|
128
|
+
},
|
|
129
|
+
"endDate": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"format": "date"
|
|
132
|
+
},
|
|
133
|
+
"groupFloor": {
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"minimum": 1
|
|
136
|
+
},
|
|
137
|
+
"tiers": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"$ref": "#/$defs/Tier"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"StoredConfig": {
|
|
146
|
+
"title": "StoredConfig",
|
|
147
|
+
"description": "The parameters exactly as the community stores them, including the helper key it never publishes.",
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": [
|
|
151
|
+
"suite",
|
|
152
|
+
"hvk",
|
|
153
|
+
"tvk",
|
|
154
|
+
"livePeriods",
|
|
155
|
+
"liveTokenLabels",
|
|
156
|
+
"dripPerTick",
|
|
157
|
+
"events"
|
|
158
|
+
],
|
|
159
|
+
"properties": {
|
|
160
|
+
"suite": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1,
|
|
163
|
+
"description": "The blind-signature suite in force, e.g. ps-ddh-bls12381."
|
|
164
|
+
},
|
|
165
|
+
"hvk": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1,
|
|
168
|
+
"description": "The helper verification key, multibase. A public value, published as helperKey."
|
|
169
|
+
},
|
|
170
|
+
"tvk": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 1,
|
|
173
|
+
"description": "The token verification key, multibase. Never the same key as hvk."
|
|
174
|
+
},
|
|
175
|
+
"livePeriods": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$"
|
|
180
|
+
},
|
|
181
|
+
"description": "Live vetter class periods, current first, stored as the bare YYYY-MM period."
|
|
182
|
+
},
|
|
183
|
+
"liveTokenLabels": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"dripPerTick": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": 1
|
|
193
|
+
},
|
|
194
|
+
"events": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"$ref": "#/$defs/StoredEvent"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"PublishedConfig": {
|
|
203
|
+
"title": "PublishedConfig",
|
|
204
|
+
"description": "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.",
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"required": [
|
|
208
|
+
"suite",
|
|
209
|
+
"helperKey",
|
|
210
|
+
"tokenKey",
|
|
211
|
+
"vetterLabels",
|
|
212
|
+
"tokenLabels",
|
|
213
|
+
"dripPerTick",
|
|
214
|
+
"events"
|
|
215
|
+
],
|
|
216
|
+
"properties": {
|
|
217
|
+
"suite": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"minLength": 1
|
|
220
|
+
},
|
|
221
|
+
"helperKey": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"minLength": 1,
|
|
224
|
+
"description": "The helper verification key, multibase — named for its role on the wire rather than for hvk."
|
|
225
|
+
},
|
|
226
|
+
"tokenKey": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"minLength": 1,
|
|
229
|
+
"description": "The token verification key, multibase — named for its role on the wire rather than for tvk."
|
|
230
|
+
},
|
|
231
|
+
"vetterLabels": {
|
|
232
|
+
"type": "array",
|
|
233
|
+
"items": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"minLength": 1
|
|
236
|
+
},
|
|
237
|
+
"description": "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period."
|
|
238
|
+
},
|
|
239
|
+
"tokenLabels": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"dripPerTick": {
|
|
247
|
+
"type": "integer",
|
|
248
|
+
"minimum": 1
|
|
249
|
+
},
|
|
250
|
+
"events": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": {
|
|
253
|
+
"$ref": "#/$defs/PublishedEvent"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"EventStatus": {
|
|
259
|
+
"title": "EventStatus",
|
|
260
|
+
"description": "How one stored event stands today. Counts only — never which members asked.",
|
|
261
|
+
"type": "object",
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"required": [
|
|
264
|
+
"eventId",
|
|
265
|
+
"groupFloor",
|
|
266
|
+
"groupSize",
|
|
267
|
+
"approved",
|
|
268
|
+
"live"
|
|
269
|
+
],
|
|
270
|
+
"properties": {
|
|
271
|
+
"eventId": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"minLength": 1
|
|
274
|
+
},
|
|
275
|
+
"groupFloor": {
|
|
276
|
+
"type": "integer",
|
|
277
|
+
"minimum": 1,
|
|
278
|
+
"description": "The smallest group this community will open the label for, as stored."
|
|
279
|
+
},
|
|
280
|
+
"groupSize": {
|
|
281
|
+
"type": "integer",
|
|
282
|
+
"minimum": 0,
|
|
283
|
+
"description": "How many members have asked to vet at this event through vtc/vetting/vetters/event-mode. The same count event-mode already returns to a vetter."
|
|
284
|
+
},
|
|
285
|
+
"approved": {
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"description": "Whether the stored event names an approver."
|
|
288
|
+
},
|
|
289
|
+
"live": {
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"description": "Derived: approved, groupSize at least groupFloor, and today no later than endDate plus graceDays."
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"Response": {
|
|
296
|
+
"$anchor": "response",
|
|
297
|
+
"title": "VTC Vetting — Hidden — Show — response payload",
|
|
298
|
+
"type": "object",
|
|
299
|
+
"additionalProperties": false,
|
|
300
|
+
"required": [
|
|
301
|
+
"criterionId",
|
|
302
|
+
"enabled",
|
|
303
|
+
"requirementsDigest"
|
|
304
|
+
],
|
|
305
|
+
"dependentRequired": {
|
|
306
|
+
"stored": [
|
|
307
|
+
"published",
|
|
308
|
+
"enrolledVetters",
|
|
309
|
+
"eventStatus"
|
|
310
|
+
],
|
|
311
|
+
"published": [
|
|
312
|
+
"stored"
|
|
313
|
+
],
|
|
314
|
+
"enrolledVetters": [
|
|
315
|
+
"stored"
|
|
316
|
+
],
|
|
317
|
+
"eventStatus": [
|
|
318
|
+
"stored"
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"properties": {
|
|
322
|
+
"criterionId": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1,
|
|
325
|
+
"description": "The criterion read."
|
|
326
|
+
},
|
|
327
|
+
"enabled": {
|
|
328
|
+
"type": "boolean",
|
|
329
|
+
"description": "Whether the criterion carries hidden-vetting parameters. When false, stored, published, enrolledVetters and eventStatus are absent."
|
|
330
|
+
},
|
|
331
|
+
"stored": {
|
|
332
|
+
"$ref": "#/$defs/StoredConfig"
|
|
333
|
+
},
|
|
334
|
+
"published": {
|
|
335
|
+
"$ref": "#/$defs/PublishedConfig"
|
|
336
|
+
},
|
|
337
|
+
"enrolledVetters": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"description": "For each live class label (vetter/<period>), how many members hold an enrolment under it. Counts only.",
|
|
340
|
+
"propertyNames": {
|
|
341
|
+
"pattern": "^vetter/[0-9]{4}-(0[1-9]|1[0-2])$"
|
|
342
|
+
},
|
|
343
|
+
"additionalProperties": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"minimum": 0
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"eventStatus": {
|
|
349
|
+
"type": "array",
|
|
350
|
+
"items": {
|
|
351
|
+
"$ref": "#/$defs/EventStatus"
|
|
352
|
+
},
|
|
353
|
+
"description": "One entry per stored event, in stored order."
|
|
354
|
+
},
|
|
355
|
+
"requirementsDigest": {
|
|
356
|
+
"type": [
|
|
357
|
+
"string",
|
|
358
|
+
"null"
|
|
359
|
+
],
|
|
360
|
+
"description": "The criterion's current requirementsDigest. Null only when its manifest entry carries none."
|
|
361
|
+
},
|
|
362
|
+
"ext": {
|
|
363
|
+
"$ref": "#/$defs/Ext"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"Ext": {
|
|
368
|
+
"title": "Ext",
|
|
369
|
+
"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.",
|
|
370
|
+
"type": "object",
|
|
371
|
+
"minProperties": 1,
|
|
372
|
+
"additionalProperties": true,
|
|
373
|
+
"propertyNames": {
|
|
374
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
380
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
381
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
382
|
+
"$ref": "#/$defs/Response",
|
|
383
|
+
"$defs": {
|
|
384
|
+
"Tier": {
|
|
385
|
+
"title": "Tier",
|
|
386
|
+
"type": "object",
|
|
387
|
+
"additionalProperties": false,
|
|
388
|
+
"required": [
|
|
389
|
+
"name",
|
|
390
|
+
"dripPerTick"
|
|
391
|
+
],
|
|
392
|
+
"properties": {
|
|
393
|
+
"name": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"minLength": 1,
|
|
396
|
+
"description": "How the menu names it: desk, busy-desk."
|
|
397
|
+
},
|
|
398
|
+
"dripPerTick": {
|
|
399
|
+
"type": "integer",
|
|
400
|
+
"minimum": 1,
|
|
401
|
+
"description": "How many tokens a tick under this tier yields."
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"StoredEvent": {
|
|
406
|
+
"title": "StoredEvent",
|
|
407
|
+
"type": "object",
|
|
408
|
+
"additionalProperties": false,
|
|
409
|
+
"required": [
|
|
410
|
+
"eventId",
|
|
411
|
+
"startDate",
|
|
412
|
+
"endDate",
|
|
413
|
+
"graceDays",
|
|
414
|
+
"groupFloor",
|
|
415
|
+
"tiers"
|
|
416
|
+
],
|
|
417
|
+
"properties": {
|
|
418
|
+
"eventId": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"minLength": 1
|
|
421
|
+
},
|
|
422
|
+
"startDate": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"format": "date"
|
|
425
|
+
},
|
|
426
|
+
"endDate": {
|
|
427
|
+
"type": "string",
|
|
428
|
+
"format": "date"
|
|
429
|
+
},
|
|
430
|
+
"graceDays": {
|
|
431
|
+
"type": "integer",
|
|
432
|
+
"minimum": 0
|
|
433
|
+
},
|
|
434
|
+
"groupFloor": {
|
|
435
|
+
"type": "integer",
|
|
436
|
+
"minimum": 1
|
|
437
|
+
},
|
|
438
|
+
"tiers": {
|
|
439
|
+
"type": "array",
|
|
440
|
+
"items": {
|
|
441
|
+
"$ref": "#/$defs/Tier"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"approvedBy": {
|
|
445
|
+
"type": [
|
|
446
|
+
"string",
|
|
447
|
+
"null"
|
|
448
|
+
],
|
|
449
|
+
"description": "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events)."
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"PublishedEvent": {
|
|
454
|
+
"title": "PublishedEvent",
|
|
455
|
+
"description": "The published shape drops approvedBy and graceDays: who approved is the community's own record, and a vetter is told closesAfter when its request is approved rather than being handed the raw grace period here.",
|
|
456
|
+
"type": "object",
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"required": [
|
|
459
|
+
"eventId",
|
|
460
|
+
"startDate",
|
|
461
|
+
"endDate",
|
|
462
|
+
"groupFloor",
|
|
463
|
+
"tiers"
|
|
464
|
+
],
|
|
465
|
+
"properties": {
|
|
466
|
+
"eventId": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"minLength": 1
|
|
469
|
+
},
|
|
470
|
+
"startDate": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"format": "date"
|
|
473
|
+
},
|
|
474
|
+
"endDate": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"format": "date"
|
|
477
|
+
},
|
|
478
|
+
"groupFloor": {
|
|
479
|
+
"type": "integer",
|
|
480
|
+
"minimum": 1
|
|
481
|
+
},
|
|
482
|
+
"tiers": {
|
|
483
|
+
"type": "array",
|
|
484
|
+
"items": {
|
|
485
|
+
"$ref": "#/$defs/Tier"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"StoredConfig": {
|
|
491
|
+
"title": "StoredConfig",
|
|
492
|
+
"description": "The parameters exactly as the community stores them, including the helper key it never publishes.",
|
|
493
|
+
"type": "object",
|
|
494
|
+
"additionalProperties": false,
|
|
495
|
+
"required": [
|
|
496
|
+
"suite",
|
|
497
|
+
"hvk",
|
|
498
|
+
"tvk",
|
|
499
|
+
"livePeriods",
|
|
500
|
+
"liveTokenLabels",
|
|
501
|
+
"dripPerTick",
|
|
502
|
+
"events"
|
|
503
|
+
],
|
|
504
|
+
"properties": {
|
|
505
|
+
"suite": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"minLength": 1,
|
|
508
|
+
"description": "The blind-signature suite in force, e.g. ps-ddh-bls12381."
|
|
509
|
+
},
|
|
510
|
+
"hvk": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"minLength": 1,
|
|
513
|
+
"description": "The helper verification key, multibase. A public value, published as helperKey."
|
|
514
|
+
},
|
|
515
|
+
"tvk": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"minLength": 1,
|
|
518
|
+
"description": "The token verification key, multibase. Never the same key as hvk."
|
|
519
|
+
},
|
|
520
|
+
"livePeriods": {
|
|
521
|
+
"type": "array",
|
|
522
|
+
"items": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$"
|
|
525
|
+
},
|
|
526
|
+
"description": "Live vetter class periods, current first, stored as the bare YYYY-MM period."
|
|
527
|
+
},
|
|
528
|
+
"liveTokenLabels": {
|
|
529
|
+
"type": "array",
|
|
530
|
+
"items": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"minLength": 1
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"dripPerTick": {
|
|
536
|
+
"type": "integer",
|
|
537
|
+
"minimum": 1
|
|
538
|
+
},
|
|
539
|
+
"events": {
|
|
540
|
+
"type": "array",
|
|
541
|
+
"items": {
|
|
542
|
+
"$ref": "#/$defs/StoredEvent"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"PublishedConfig": {
|
|
548
|
+
"title": "PublishedConfig",
|
|
549
|
+
"description": "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.",
|
|
550
|
+
"type": "object",
|
|
551
|
+
"additionalProperties": false,
|
|
552
|
+
"required": [
|
|
553
|
+
"suite",
|
|
554
|
+
"helperKey",
|
|
555
|
+
"tokenKey",
|
|
556
|
+
"vetterLabels",
|
|
557
|
+
"tokenLabels",
|
|
558
|
+
"dripPerTick",
|
|
559
|
+
"events"
|
|
560
|
+
],
|
|
561
|
+
"properties": {
|
|
562
|
+
"suite": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"minLength": 1
|
|
565
|
+
},
|
|
566
|
+
"helperKey": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"minLength": 1,
|
|
569
|
+
"description": "The helper verification key, multibase — named for its role on the wire rather than for hvk."
|
|
570
|
+
},
|
|
571
|
+
"tokenKey": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"minLength": 1,
|
|
574
|
+
"description": "The token verification key, multibase — named for its role on the wire rather than for tvk."
|
|
575
|
+
},
|
|
576
|
+
"vetterLabels": {
|
|
577
|
+
"type": "array",
|
|
578
|
+
"items": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"minLength": 1
|
|
581
|
+
},
|
|
582
|
+
"description": "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period."
|
|
583
|
+
},
|
|
584
|
+
"tokenLabels": {
|
|
585
|
+
"type": "array",
|
|
586
|
+
"items": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"minLength": 1
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"dripPerTick": {
|
|
592
|
+
"type": "integer",
|
|
593
|
+
"minimum": 1
|
|
594
|
+
},
|
|
595
|
+
"events": {
|
|
596
|
+
"type": "array",
|
|
597
|
+
"items": {
|
|
598
|
+
"$ref": "#/$defs/PublishedEvent"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"EventStatus": {
|
|
604
|
+
"title": "EventStatus",
|
|
605
|
+
"description": "How one stored event stands today. Counts only — never which members asked.",
|
|
606
|
+
"type": "object",
|
|
607
|
+
"additionalProperties": false,
|
|
608
|
+
"required": [
|
|
609
|
+
"eventId",
|
|
610
|
+
"groupFloor",
|
|
611
|
+
"groupSize",
|
|
612
|
+
"approved",
|
|
613
|
+
"live"
|
|
614
|
+
],
|
|
615
|
+
"properties": {
|
|
616
|
+
"eventId": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"minLength": 1
|
|
619
|
+
},
|
|
620
|
+
"groupFloor": {
|
|
621
|
+
"type": "integer",
|
|
622
|
+
"minimum": 1,
|
|
623
|
+
"description": "The smallest group this community will open the label for, as stored."
|
|
624
|
+
},
|
|
625
|
+
"groupSize": {
|
|
626
|
+
"type": "integer",
|
|
627
|
+
"minimum": 0,
|
|
628
|
+
"description": "How many members have asked to vet at this event through vtc/vetting/vetters/event-mode. The same count event-mode already returns to a vetter."
|
|
629
|
+
},
|
|
630
|
+
"approved": {
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"description": "Whether the stored event names an approver."
|
|
633
|
+
},
|
|
634
|
+
"live": {
|
|
635
|
+
"type": "boolean",
|
|
636
|
+
"description": "Derived: approved, groupSize at least groupFloor, and today no later than endDate plus graceDays."
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"Response": {
|
|
641
|
+
"$anchor": "response",
|
|
642
|
+
"title": "VTC Vetting — Hidden — Show — response payload",
|
|
643
|
+
"type": "object",
|
|
644
|
+
"additionalProperties": false,
|
|
645
|
+
"required": [
|
|
646
|
+
"criterionId",
|
|
647
|
+
"enabled",
|
|
648
|
+
"requirementsDigest"
|
|
649
|
+
],
|
|
650
|
+
"dependentRequired": {
|
|
651
|
+
"stored": [
|
|
652
|
+
"published",
|
|
653
|
+
"enrolledVetters",
|
|
654
|
+
"eventStatus"
|
|
655
|
+
],
|
|
656
|
+
"published": [
|
|
657
|
+
"stored"
|
|
658
|
+
],
|
|
659
|
+
"enrolledVetters": [
|
|
660
|
+
"stored"
|
|
661
|
+
],
|
|
662
|
+
"eventStatus": [
|
|
663
|
+
"stored"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
"properties": {
|
|
667
|
+
"criterionId": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"minLength": 1,
|
|
670
|
+
"description": "The criterion read."
|
|
671
|
+
},
|
|
672
|
+
"enabled": {
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"description": "Whether the criterion carries hidden-vetting parameters. When false, stored, published, enrolledVetters and eventStatus are absent."
|
|
675
|
+
},
|
|
676
|
+
"stored": {
|
|
677
|
+
"$ref": "#/$defs/StoredConfig"
|
|
678
|
+
},
|
|
679
|
+
"published": {
|
|
680
|
+
"$ref": "#/$defs/PublishedConfig"
|
|
681
|
+
},
|
|
682
|
+
"enrolledVetters": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"description": "For each live class label (vetter/<period>), how many members hold an enrolment under it. Counts only.",
|
|
685
|
+
"propertyNames": {
|
|
686
|
+
"pattern": "^vetter/[0-9]{4}-(0[1-9]|1[0-2])$"
|
|
687
|
+
},
|
|
688
|
+
"additionalProperties": {
|
|
689
|
+
"type": "integer",
|
|
690
|
+
"minimum": 0
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"eventStatus": {
|
|
694
|
+
"type": "array",
|
|
695
|
+
"items": {
|
|
696
|
+
"$ref": "#/$defs/EventStatus"
|
|
697
|
+
},
|
|
698
|
+
"description": "One entry per stored event, in stored order."
|
|
699
|
+
},
|
|
700
|
+
"requirementsDigest": {
|
|
701
|
+
"type": [
|
|
702
|
+
"string",
|
|
703
|
+
"null"
|
|
704
|
+
],
|
|
705
|
+
"description": "The criterion's current requirementsDigest. Null only when its manifest entry carries none."
|
|
706
|
+
},
|
|
707
|
+
"ext": {
|
|
708
|
+
"$ref": "#/$defs/Ext"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"Ext": {
|
|
713
|
+
"title": "Ext",
|
|
714
|
+
"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.",
|
|
715
|
+
"type": "object",
|
|
716
|
+
"minProperties": 1,
|
|
717
|
+
"additionalProperties": true,
|
|
718
|
+
"propertyNames": {
|
|
719
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
/**
|
|
725
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
726
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
727
|
+
* per-specification and cannot be derived from the document alone, and
|
|
728
|
+
* item 2 needs the schema this carries.
|
|
729
|
+
*/
|
|
730
|
+
export const SPEC = {
|
|
731
|
+
typeUri: TYPE_URI,
|
|
732
|
+
isBearer: false,
|
|
733
|
+
isProofRequired: true,
|
|
734
|
+
isRecipientRequired: true,
|
|
735
|
+
isIssuedAtRequired: false,
|
|
736
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
737
|
+
};
|
|
738
|
+
/**
|
|
739
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
740
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
741
|
+
* parties (§7.3 item 5).
|
|
742
|
+
*/
|
|
743
|
+
export const RESPONSE_SPEC = {
|
|
744
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
745
|
+
isBearer: false,
|
|
746
|
+
isProofRequired: true,
|
|
747
|
+
isRecipientRequired: true,
|
|
748
|
+
isIssuedAtRequired: false,
|
|
749
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
750
|
+
};
|
|
751
|
+
//# sourceMappingURL=payload.js.map
|