@openvtc/trust-tasks 0.21.14 → 0.21.16

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/index.d.ts +5 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/vta/attestation/mnemonic-status/0.1/payload.d.ts +281 -0
  7. package/dist/vta/attestation/mnemonic-status/0.1/payload.d.ts.map +1 -0
  8. package/dist/vta/attestation/mnemonic-status/0.1/payload.js +157 -0
  9. package/dist/vta/attestation/mnemonic-status/0.1/payload.js.map +1 -0
  10. package/dist/vta/metrics/show/0.1/payload.d.ts +674 -0
  11. package/dist/vta/metrics/show/0.1/payload.d.ts.map +1 -0
  12. package/dist/vta/metrics/show/0.1/payload.js +387 -0
  13. package/dist/vta/metrics/show/0.1/payload.js.map +1 -0
  14. package/dist/vtc/relationships/revoke/0.2/payload.d.ts +287 -0
  15. package/dist/vtc/relationships/revoke/0.2/payload.d.ts.map +1 -0
  16. package/dist/vtc/relationships/revoke/0.2/payload.js +159 -0
  17. package/dist/vtc/relationships/revoke/0.2/payload.js.map +1 -0
  18. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +1385 -0
  19. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -0
  20. package/dist/vtc/vetting/hidden/publish/0.1/payload.js +735 -0
  21. package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -0
  22. package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts +254 -0
  23. package/dist/vtc/vetting/vetters/resend/0.2/payload.d.ts.map +1 -0
  24. package/dist/vtc/vetting/vetters/resend/0.2/payload.js +142 -0
  25. package/dist/vtc/vetting/vetters/resend/0.2/payload.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/index.ts +5 -0
  28. package/src/vta/attestation/mnemonic-status/0.1/payload.ts +203 -0
  29. package/src/vta/metrics/show/0.1/payload.ts +418 -0
  30. package/src/vtc/relationships/revoke/0.2/payload.ts +209 -0
  31. package/src/vtc/vetting/hidden/publish/0.1/payload.ts +905 -0
  32. package/src/vtc/vetting/vetters/resend/0.2/payload.ts +183 -0
@@ -0,0 +1,1385 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/hidden/publish/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Turn on (or rotate the parameters of) hidden-vetter admission for one criterion. Every member but criterionId has a default. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCVettingHiddenPublishPayload {
10
+ /**
11
+ * The Accepts criterion this applies to. It must already ask for vetting.
12
+ */
13
+ criterionId: string;
14
+ /**
15
+ * Live vetter class periods, current first (e.g. ["2026-10", "2026-09"]). Defaults to the current month.
16
+ *
17
+ * @minItems 1
18
+ */
19
+ livePeriods?: [string, ...string[]];
20
+ /**
21
+ * Live token labels (e.g. ["token/2026-09"]). Defaults to the current month's.
22
+ *
23
+ * @minItems 1
24
+ */
25
+ liveTokenLabels?: [string, ...string[]];
26
+ /**
27
+ * How many attestation tokens a vetter draws per tick. Defaults to three.
28
+ */
29
+ dripPerTick?: number;
30
+ /**
31
+ * Events this community is running, replacing whatever was there. Absent or empty removes every event.
32
+ */
33
+ events?: RequestEvent[];
34
+ ext?: Ext;
35
+ }
36
+ export interface RequestEvent {
37
+ /**
38
+ * The community's name for the gathering. It is the anonymity set for every token spent under this event, so it names something people attend — never one desk or one shift.
39
+ */
40
+ eventId: string;
41
+ /**
42
+ * First day of the event, inclusive.
43
+ */
44
+ startDate: string;
45
+ /**
46
+ * Last day of the event, inclusive.
47
+ */
48
+ endDate: string;
49
+ /**
50
+ * Days after endDate the label keeps being accepted. Defaults to fourteen.
51
+ */
52
+ graceDays?: number;
53
+ /**
54
+ * The smallest group this community will open the label for. Defaults to three.
55
+ */
56
+ groupFloor?: number;
57
+ /**
58
+ * The published menu of rates a vetter may pick from.
59
+ *
60
+ * @minItems 1
61
+ */
62
+ tiers: [Tier, ...Tier[]];
63
+ /**
64
+ * Who approved the event. Absent means nobody has, and the label is not live whatever else is true.
65
+ */
66
+ approvedBy?: string;
67
+ }
68
+ export interface Tier {
69
+ /**
70
+ * How the menu names it: desk, busy-desk.
71
+ */
72
+ name: string;
73
+ /**
74
+ * How many tokens a tick under this tier yields.
75
+ */
76
+ dripPerTick: number;
77
+ }
78
+ export interface VTCVettingHiddenPublishResponsePayload {
79
+ /**
80
+ * The criterion that now accepts a hidden proof.
81
+ */
82
+ criterionId: string;
83
+ stored: StoredConfig;
84
+ published: PublishedConfig;
85
+ /**
86
+ * The criterion's requirementsDigest after the change. It moves, because the digest covers the published parameters — an applicant mid-application is told its requirements changed, which is the honest answer. Null only when the criterion's manifest entry carries none.
87
+ */
88
+ requirementsDigest: string | null;
89
+ ext?: Ext;
90
+ }
91
+ /**
92
+ * The parameters exactly as the community stores them, including the helper key it never publishes.
93
+ */
94
+ export interface StoredConfig {
95
+ /**
96
+ * The blind-signature suite in force, e.g. ps-ddh-bls12381.
97
+ */
98
+ suite: string;
99
+ /**
100
+ * The helper verification key, multibase. A public value, published as helperKey.
101
+ */
102
+ hvk: string;
103
+ /**
104
+ * The token verification key, multibase. Never the same key as hvk.
105
+ */
106
+ tvk: string;
107
+ /**
108
+ * Live vetter class periods, current first, stored as the bare YYYY-MM period.
109
+ */
110
+ livePeriods: string[];
111
+ liveTokenLabels: string[];
112
+ dripPerTick: number;
113
+ events: StoredEvent[];
114
+ }
115
+ export interface StoredEvent {
116
+ eventId: string;
117
+ startDate: string;
118
+ endDate: string;
119
+ graceDays: number;
120
+ groupFloor: number;
121
+ tiers: Tier[];
122
+ /**
123
+ * Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events).
124
+ */
125
+ approvedBy?: string | null;
126
+ }
127
+ /**
128
+ * The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.
129
+ */
130
+ export interface PublishedConfig {
131
+ suite: string;
132
+ /**
133
+ * The helper verification key, multibase — named for its role on the wire rather than for hvk.
134
+ */
135
+ helperKey: string;
136
+ /**
137
+ * The token verification key, multibase — named for its role on the wire rather than for tvk.
138
+ */
139
+ tokenKey: string;
140
+ /**
141
+ * Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.
142
+ */
143
+ vetterLabels: string[];
144
+ tokenLabels: string[];
145
+ dripPerTick: number;
146
+ events: PublishedEvent[];
147
+ }
148
+ /**
149
+ * 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.
150
+ */
151
+ export interface PublishedEvent {
152
+ eventId: string;
153
+ startDate: string;
154
+ endDate: string;
155
+ groupFloor: number;
156
+ tiers: Tier[];
157
+ }
158
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
159
+ export type { Ext };
160
+ /** Trust Task type URI. */
161
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1";
162
+ /** Stable alias for this specification's request payload shape. */
163
+ export type Payload = VTCVettingHiddenPublishPayload;
164
+ /** Trust Task response type URI (request type URI + "#response"). */
165
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1#response";
166
+ /** Stable alias for this specification's success-response payload shape. */
167
+ export type Response = VTCVettingHiddenPublishResponsePayload;
168
+ /**
169
+ * This specification's payload schema, as a value.
170
+ *
171
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
172
+ * rather than only as a `.json` file because TypeScript types are erased
173
+ * at runtime: without a schema a consumer has nothing to validate, and
174
+ * every REQUIRED payload member is optional in practice. Cross-file
175
+ * `$ref`s are already inlined, so it needs no resolver.
176
+ */
177
+ export declare const PAYLOAD_SCHEMA: {
178
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
179
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1";
180
+ readonly title: "VTC Vetting — Hidden — Publish — payload";
181
+ readonly description: "Turn on (or rotate the parameters of) hidden-vetter admission for one criterion. Every member but criterionId has a default. The outer document members are owned by the framework — SPEC §6.3.";
182
+ readonly type: "object";
183
+ readonly additionalProperties: false;
184
+ readonly required: readonly ["criterionId"];
185
+ readonly properties: {
186
+ readonly criterionId: {
187
+ readonly type: "string";
188
+ readonly minLength: 1;
189
+ readonly description: "The Accepts criterion this applies to. It must already ask for vetting.";
190
+ };
191
+ readonly livePeriods: {
192
+ readonly type: "array";
193
+ readonly items: {
194
+ readonly type: "string";
195
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
196
+ };
197
+ readonly minItems: 1;
198
+ readonly description: "Live vetter class periods, current first (e.g. [\"2026-10\", \"2026-09\"]). Defaults to the current month.";
199
+ };
200
+ readonly liveTokenLabels: {
201
+ readonly type: "array";
202
+ readonly items: {
203
+ readonly type: "string";
204
+ readonly minLength: 1;
205
+ };
206
+ readonly minItems: 1;
207
+ readonly description: "Live token labels (e.g. [\"token/2026-09\"]). Defaults to the current month's.";
208
+ };
209
+ readonly dripPerTick: {
210
+ readonly type: "integer";
211
+ readonly minimum: 1;
212
+ readonly description: "How many attestation tokens a vetter draws per tick. Defaults to three.";
213
+ };
214
+ readonly events: {
215
+ readonly type: "array";
216
+ readonly items: {
217
+ readonly $ref: "#/$defs/RequestEvent";
218
+ };
219
+ readonly description: "Events this community is running, replacing whatever was there. Absent or empty removes every event.";
220
+ };
221
+ readonly ext: {
222
+ readonly $ref: "#/$defs/Ext";
223
+ };
224
+ };
225
+ readonly $defs: {
226
+ readonly RequestEvent: {
227
+ readonly title: "RequestEvent";
228
+ readonly type: "object";
229
+ readonly additionalProperties: false;
230
+ readonly required: readonly ["eventId", "startDate", "endDate", "tiers"];
231
+ readonly properties: {
232
+ readonly eventId: {
233
+ readonly type: "string";
234
+ readonly minLength: 1;
235
+ readonly description: "The community's name for the gathering. It is the anonymity set for every token spent under this event, so it names something people attend — never one desk or one shift.";
236
+ };
237
+ readonly startDate: {
238
+ readonly type: "string";
239
+ readonly format: "date";
240
+ readonly description: "First day of the event, inclusive.";
241
+ };
242
+ readonly endDate: {
243
+ readonly type: "string";
244
+ readonly format: "date";
245
+ readonly description: "Last day of the event, inclusive.";
246
+ };
247
+ readonly graceDays: {
248
+ readonly type: "integer";
249
+ readonly minimum: 0;
250
+ readonly description: "Days after endDate the label keeps being accepted. Defaults to fourteen.";
251
+ };
252
+ readonly groupFloor: {
253
+ readonly type: "integer";
254
+ readonly minimum: 1;
255
+ readonly description: "The smallest group this community will open the label for. Defaults to three.";
256
+ };
257
+ readonly tiers: {
258
+ readonly type: "array";
259
+ readonly items: {
260
+ readonly $ref: "#/$defs/Tier";
261
+ };
262
+ readonly minItems: 1;
263
+ readonly description: "The published menu of rates a vetter may pick from.";
264
+ };
265
+ readonly approvedBy: {
266
+ readonly type: "string";
267
+ readonly minLength: 1;
268
+ readonly description: "Who approved the event. Absent means nobody has, and the label is not live whatever else is true.";
269
+ };
270
+ };
271
+ };
272
+ readonly Tier: {
273
+ readonly title: "Tier";
274
+ readonly type: "object";
275
+ readonly additionalProperties: false;
276
+ readonly required: readonly ["name", "dripPerTick"];
277
+ readonly properties: {
278
+ readonly name: {
279
+ readonly type: "string";
280
+ readonly minLength: 1;
281
+ readonly description: "How the menu names it: desk, busy-desk.";
282
+ };
283
+ readonly dripPerTick: {
284
+ readonly type: "integer";
285
+ readonly minimum: 1;
286
+ readonly description: "How many tokens a tick under this tier yields.";
287
+ };
288
+ };
289
+ };
290
+ readonly StoredEvent: {
291
+ readonly title: "StoredEvent";
292
+ readonly type: "object";
293
+ readonly additionalProperties: false;
294
+ readonly required: readonly ["eventId", "startDate", "endDate", "graceDays", "groupFloor", "tiers"];
295
+ readonly properties: {
296
+ readonly eventId: {
297
+ readonly type: "string";
298
+ readonly minLength: 1;
299
+ };
300
+ readonly startDate: {
301
+ readonly type: "string";
302
+ readonly format: "date";
303
+ };
304
+ readonly endDate: {
305
+ readonly type: "string";
306
+ readonly format: "date";
307
+ };
308
+ readonly graceDays: {
309
+ readonly type: "integer";
310
+ readonly minimum: 0;
311
+ };
312
+ readonly groupFloor: {
313
+ readonly type: "integer";
314
+ readonly minimum: 1;
315
+ };
316
+ readonly tiers: {
317
+ readonly type: "array";
318
+ readonly items: {
319
+ readonly $ref: "#/$defs/Tier";
320
+ };
321
+ };
322
+ readonly approvedBy: {
323
+ readonly type: readonly ["string", "null"];
324
+ readonly description: "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events).";
325
+ };
326
+ };
327
+ };
328
+ readonly PublishedEvent: {
329
+ readonly title: "PublishedEvent";
330
+ readonly 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.";
331
+ readonly type: "object";
332
+ readonly additionalProperties: false;
333
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
334
+ readonly properties: {
335
+ readonly eventId: {
336
+ readonly type: "string";
337
+ readonly minLength: 1;
338
+ };
339
+ readonly startDate: {
340
+ readonly type: "string";
341
+ readonly format: "date";
342
+ };
343
+ readonly endDate: {
344
+ readonly type: "string";
345
+ readonly format: "date";
346
+ };
347
+ readonly groupFloor: {
348
+ readonly type: "integer";
349
+ readonly minimum: 1;
350
+ };
351
+ readonly tiers: {
352
+ readonly type: "array";
353
+ readonly items: {
354
+ readonly $ref: "#/$defs/Tier";
355
+ };
356
+ };
357
+ };
358
+ };
359
+ readonly StoredConfig: {
360
+ readonly title: "StoredConfig";
361
+ readonly description: "The parameters exactly as the community stores them, including the helper key it never publishes.";
362
+ readonly type: "object";
363
+ readonly additionalProperties: false;
364
+ readonly required: readonly ["suite", "hvk", "tvk", "livePeriods", "liveTokenLabels", "dripPerTick", "events"];
365
+ readonly properties: {
366
+ readonly suite: {
367
+ readonly type: "string";
368
+ readonly minLength: 1;
369
+ readonly description: "The blind-signature suite in force, e.g. ps-ddh-bls12381.";
370
+ };
371
+ readonly hvk: {
372
+ readonly type: "string";
373
+ readonly minLength: 1;
374
+ readonly description: "The helper verification key, multibase. A public value, published as helperKey.";
375
+ };
376
+ readonly tvk: {
377
+ readonly type: "string";
378
+ readonly minLength: 1;
379
+ readonly description: "The token verification key, multibase. Never the same key as hvk.";
380
+ };
381
+ readonly livePeriods: {
382
+ readonly type: "array";
383
+ readonly items: {
384
+ readonly type: "string";
385
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
386
+ };
387
+ readonly description: "Live vetter class periods, current first, stored as the bare YYYY-MM period.";
388
+ };
389
+ readonly liveTokenLabels: {
390
+ readonly type: "array";
391
+ readonly items: {
392
+ readonly type: "string";
393
+ readonly minLength: 1;
394
+ };
395
+ };
396
+ readonly dripPerTick: {
397
+ readonly type: "integer";
398
+ readonly minimum: 1;
399
+ };
400
+ readonly events: {
401
+ readonly type: "array";
402
+ readonly items: {
403
+ readonly $ref: "#/$defs/StoredEvent";
404
+ };
405
+ };
406
+ };
407
+ };
408
+ readonly PublishedConfig: {
409
+ readonly title: "PublishedConfig";
410
+ readonly description: "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.";
411
+ readonly type: "object";
412
+ readonly additionalProperties: false;
413
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "events"];
414
+ readonly properties: {
415
+ readonly suite: {
416
+ readonly type: "string";
417
+ readonly minLength: 1;
418
+ };
419
+ readonly helperKey: {
420
+ readonly type: "string";
421
+ readonly minLength: 1;
422
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
423
+ };
424
+ readonly tokenKey: {
425
+ readonly type: "string";
426
+ readonly minLength: 1;
427
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
428
+ };
429
+ readonly vetterLabels: {
430
+ readonly type: "array";
431
+ readonly items: {
432
+ readonly type: "string";
433
+ readonly minLength: 1;
434
+ };
435
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
436
+ };
437
+ readonly tokenLabels: {
438
+ readonly type: "array";
439
+ readonly items: {
440
+ readonly type: "string";
441
+ readonly minLength: 1;
442
+ };
443
+ };
444
+ readonly dripPerTick: {
445
+ readonly type: "integer";
446
+ readonly minimum: 1;
447
+ };
448
+ readonly events: {
449
+ readonly type: "array";
450
+ readonly items: {
451
+ readonly $ref: "#/$defs/PublishedEvent";
452
+ };
453
+ };
454
+ };
455
+ };
456
+ readonly Response: {
457
+ readonly $anchor: "response";
458
+ readonly title: "VTC Vetting — Hidden — Publish — response payload";
459
+ readonly type: "object";
460
+ readonly additionalProperties: false;
461
+ readonly required: readonly ["criterionId", "stored", "published", "requirementsDigest"];
462
+ readonly properties: {
463
+ readonly criterionId: {
464
+ readonly type: "string";
465
+ readonly minLength: 1;
466
+ readonly description: "The criterion that now accepts a hidden proof.";
467
+ };
468
+ readonly stored: {
469
+ readonly $ref: "#/$defs/StoredConfig";
470
+ };
471
+ readonly published: {
472
+ readonly $ref: "#/$defs/PublishedConfig";
473
+ };
474
+ readonly requirementsDigest: {
475
+ readonly type: readonly ["string", "null"];
476
+ readonly description: "The criterion's requirementsDigest after the change. It moves, because the digest covers the published parameters — an applicant mid-application is told its requirements changed, which is the honest answer. Null only when the criterion's manifest entry carries none.";
477
+ };
478
+ readonly ext: {
479
+ readonly $ref: "#/$defs/Ext";
480
+ };
481
+ };
482
+ };
483
+ readonly Ext: {
484
+ readonly title: "Ext";
485
+ 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.";
486
+ readonly type: "object";
487
+ readonly minProperties: 1;
488
+ readonly additionalProperties: true;
489
+ readonly propertyNames: {
490
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
491
+ };
492
+ };
493
+ };
494
+ };
495
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
496
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
497
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
498
+ readonly $ref: "#/$defs/Response";
499
+ readonly $defs: {
500
+ readonly RequestEvent: {
501
+ readonly title: "RequestEvent";
502
+ readonly type: "object";
503
+ readonly additionalProperties: false;
504
+ readonly required: readonly ["eventId", "startDate", "endDate", "tiers"];
505
+ readonly properties: {
506
+ readonly eventId: {
507
+ readonly type: "string";
508
+ readonly minLength: 1;
509
+ readonly description: "The community's name for the gathering. It is the anonymity set for every token spent under this event, so it names something people attend — never one desk or one shift.";
510
+ };
511
+ readonly startDate: {
512
+ readonly type: "string";
513
+ readonly format: "date";
514
+ readonly description: "First day of the event, inclusive.";
515
+ };
516
+ readonly endDate: {
517
+ readonly type: "string";
518
+ readonly format: "date";
519
+ readonly description: "Last day of the event, inclusive.";
520
+ };
521
+ readonly graceDays: {
522
+ readonly type: "integer";
523
+ readonly minimum: 0;
524
+ readonly description: "Days after endDate the label keeps being accepted. Defaults to fourteen.";
525
+ };
526
+ readonly groupFloor: {
527
+ readonly type: "integer";
528
+ readonly minimum: 1;
529
+ readonly description: "The smallest group this community will open the label for. Defaults to three.";
530
+ };
531
+ readonly tiers: {
532
+ readonly type: "array";
533
+ readonly items: {
534
+ readonly $ref: "#/$defs/Tier";
535
+ };
536
+ readonly minItems: 1;
537
+ readonly description: "The published menu of rates a vetter may pick from.";
538
+ };
539
+ readonly approvedBy: {
540
+ readonly type: "string";
541
+ readonly minLength: 1;
542
+ readonly description: "Who approved the event. Absent means nobody has, and the label is not live whatever else is true.";
543
+ };
544
+ };
545
+ };
546
+ readonly Tier: {
547
+ readonly title: "Tier";
548
+ readonly type: "object";
549
+ readonly additionalProperties: false;
550
+ readonly required: readonly ["name", "dripPerTick"];
551
+ readonly properties: {
552
+ readonly name: {
553
+ readonly type: "string";
554
+ readonly minLength: 1;
555
+ readonly description: "How the menu names it: desk, busy-desk.";
556
+ };
557
+ readonly dripPerTick: {
558
+ readonly type: "integer";
559
+ readonly minimum: 1;
560
+ readonly description: "How many tokens a tick under this tier yields.";
561
+ };
562
+ };
563
+ };
564
+ readonly StoredEvent: {
565
+ readonly title: "StoredEvent";
566
+ readonly type: "object";
567
+ readonly additionalProperties: false;
568
+ readonly required: readonly ["eventId", "startDate", "endDate", "graceDays", "groupFloor", "tiers"];
569
+ readonly properties: {
570
+ readonly eventId: {
571
+ readonly type: "string";
572
+ readonly minLength: 1;
573
+ };
574
+ readonly startDate: {
575
+ readonly type: "string";
576
+ readonly format: "date";
577
+ };
578
+ readonly endDate: {
579
+ readonly type: "string";
580
+ readonly format: "date";
581
+ };
582
+ readonly graceDays: {
583
+ readonly type: "integer";
584
+ readonly minimum: 0;
585
+ };
586
+ readonly groupFloor: {
587
+ readonly type: "integer";
588
+ readonly minimum: 1;
589
+ };
590
+ readonly tiers: {
591
+ readonly type: "array";
592
+ readonly items: {
593
+ readonly $ref: "#/$defs/Tier";
594
+ };
595
+ };
596
+ readonly approvedBy: {
597
+ readonly type: readonly ["string", "null"];
598
+ readonly description: "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events).";
599
+ };
600
+ };
601
+ };
602
+ readonly PublishedEvent: {
603
+ readonly title: "PublishedEvent";
604
+ readonly 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.";
605
+ readonly type: "object";
606
+ readonly additionalProperties: false;
607
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
608
+ readonly properties: {
609
+ readonly eventId: {
610
+ readonly type: "string";
611
+ readonly minLength: 1;
612
+ };
613
+ readonly startDate: {
614
+ readonly type: "string";
615
+ readonly format: "date";
616
+ };
617
+ readonly endDate: {
618
+ readonly type: "string";
619
+ readonly format: "date";
620
+ };
621
+ readonly groupFloor: {
622
+ readonly type: "integer";
623
+ readonly minimum: 1;
624
+ };
625
+ readonly tiers: {
626
+ readonly type: "array";
627
+ readonly items: {
628
+ readonly $ref: "#/$defs/Tier";
629
+ };
630
+ };
631
+ };
632
+ };
633
+ readonly StoredConfig: {
634
+ readonly title: "StoredConfig";
635
+ readonly description: "The parameters exactly as the community stores them, including the helper key it never publishes.";
636
+ readonly type: "object";
637
+ readonly additionalProperties: false;
638
+ readonly required: readonly ["suite", "hvk", "tvk", "livePeriods", "liveTokenLabels", "dripPerTick", "events"];
639
+ readonly properties: {
640
+ readonly suite: {
641
+ readonly type: "string";
642
+ readonly minLength: 1;
643
+ readonly description: "The blind-signature suite in force, e.g. ps-ddh-bls12381.";
644
+ };
645
+ readonly hvk: {
646
+ readonly type: "string";
647
+ readonly minLength: 1;
648
+ readonly description: "The helper verification key, multibase. A public value, published as helperKey.";
649
+ };
650
+ readonly tvk: {
651
+ readonly type: "string";
652
+ readonly minLength: 1;
653
+ readonly description: "The token verification key, multibase. Never the same key as hvk.";
654
+ };
655
+ readonly livePeriods: {
656
+ readonly type: "array";
657
+ readonly items: {
658
+ readonly type: "string";
659
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
660
+ };
661
+ readonly description: "Live vetter class periods, current first, stored as the bare YYYY-MM period.";
662
+ };
663
+ readonly liveTokenLabels: {
664
+ readonly type: "array";
665
+ readonly items: {
666
+ readonly type: "string";
667
+ readonly minLength: 1;
668
+ };
669
+ };
670
+ readonly dripPerTick: {
671
+ readonly type: "integer";
672
+ readonly minimum: 1;
673
+ };
674
+ readonly events: {
675
+ readonly type: "array";
676
+ readonly items: {
677
+ readonly $ref: "#/$defs/StoredEvent";
678
+ };
679
+ };
680
+ };
681
+ };
682
+ readonly PublishedConfig: {
683
+ readonly title: "PublishedConfig";
684
+ readonly description: "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.";
685
+ readonly type: "object";
686
+ readonly additionalProperties: false;
687
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "events"];
688
+ readonly properties: {
689
+ readonly suite: {
690
+ readonly type: "string";
691
+ readonly minLength: 1;
692
+ };
693
+ readonly helperKey: {
694
+ readonly type: "string";
695
+ readonly minLength: 1;
696
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
697
+ };
698
+ readonly tokenKey: {
699
+ readonly type: "string";
700
+ readonly minLength: 1;
701
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
702
+ };
703
+ readonly vetterLabels: {
704
+ readonly type: "array";
705
+ readonly items: {
706
+ readonly type: "string";
707
+ readonly minLength: 1;
708
+ };
709
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
710
+ };
711
+ readonly tokenLabels: {
712
+ readonly type: "array";
713
+ readonly items: {
714
+ readonly type: "string";
715
+ readonly minLength: 1;
716
+ };
717
+ };
718
+ readonly dripPerTick: {
719
+ readonly type: "integer";
720
+ readonly minimum: 1;
721
+ };
722
+ readonly events: {
723
+ readonly type: "array";
724
+ readonly items: {
725
+ readonly $ref: "#/$defs/PublishedEvent";
726
+ };
727
+ };
728
+ };
729
+ };
730
+ readonly Response: {
731
+ readonly $anchor: "response";
732
+ readonly title: "VTC Vetting — Hidden — Publish — response payload";
733
+ readonly type: "object";
734
+ readonly additionalProperties: false;
735
+ readonly required: readonly ["criterionId", "stored", "published", "requirementsDigest"];
736
+ readonly properties: {
737
+ readonly criterionId: {
738
+ readonly type: "string";
739
+ readonly minLength: 1;
740
+ readonly description: "The criterion that now accepts a hidden proof.";
741
+ };
742
+ readonly stored: {
743
+ readonly $ref: "#/$defs/StoredConfig";
744
+ };
745
+ readonly published: {
746
+ readonly $ref: "#/$defs/PublishedConfig";
747
+ };
748
+ readonly requirementsDigest: {
749
+ readonly type: readonly ["string", "null"];
750
+ readonly description: "The criterion's requirementsDigest after the change. It moves, because the digest covers the published parameters — an applicant mid-application is told its requirements changed, which is the honest answer. Null only when the criterion's manifest entry carries none.";
751
+ };
752
+ readonly ext: {
753
+ readonly $ref: "#/$defs/Ext";
754
+ };
755
+ };
756
+ };
757
+ readonly Ext: {
758
+ readonly title: "Ext";
759
+ 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.";
760
+ readonly type: "object";
761
+ readonly minProperties: 1;
762
+ readonly additionalProperties: true;
763
+ readonly propertyNames: {
764
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
765
+ };
766
+ };
767
+ };
768
+ };
769
+ /**
770
+ * SPEC.md §7.2 policy for the request variant, from this specification's
771
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
772
+ * per-specification and cannot be derived from the document alone, and
773
+ * item 2 needs the schema this carries.
774
+ */
775
+ export declare const SPEC: {
776
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1";
777
+ readonly isBearer: false;
778
+ readonly isProofRequired: true;
779
+ readonly isRecipientRequired: true;
780
+ readonly isIssuedAtRequired: true;
781
+ readonly payloadSchema: {
782
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
783
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1";
784
+ readonly title: "VTC Vetting — Hidden — Publish — payload";
785
+ readonly description: "Turn on (or rotate the parameters of) hidden-vetter admission for one criterion. Every member but criterionId has a default. The outer document members are owned by the framework — SPEC §6.3.";
786
+ readonly type: "object";
787
+ readonly additionalProperties: false;
788
+ readonly required: readonly ["criterionId"];
789
+ readonly properties: {
790
+ readonly criterionId: {
791
+ readonly type: "string";
792
+ readonly minLength: 1;
793
+ readonly description: "The Accepts criterion this applies to. It must already ask for vetting.";
794
+ };
795
+ readonly livePeriods: {
796
+ readonly type: "array";
797
+ readonly items: {
798
+ readonly type: "string";
799
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
800
+ };
801
+ readonly minItems: 1;
802
+ readonly description: "Live vetter class periods, current first (e.g. [\"2026-10\", \"2026-09\"]). Defaults to the current month.";
803
+ };
804
+ readonly liveTokenLabels: {
805
+ readonly type: "array";
806
+ readonly items: {
807
+ readonly type: "string";
808
+ readonly minLength: 1;
809
+ };
810
+ readonly minItems: 1;
811
+ readonly description: "Live token labels (e.g. [\"token/2026-09\"]). Defaults to the current month's.";
812
+ };
813
+ readonly dripPerTick: {
814
+ readonly type: "integer";
815
+ readonly minimum: 1;
816
+ readonly description: "How many attestation tokens a vetter draws per tick. Defaults to three.";
817
+ };
818
+ readonly events: {
819
+ readonly type: "array";
820
+ readonly items: {
821
+ readonly $ref: "#/$defs/RequestEvent";
822
+ };
823
+ readonly description: "Events this community is running, replacing whatever was there. Absent or empty removes every event.";
824
+ };
825
+ readonly ext: {
826
+ readonly $ref: "#/$defs/Ext";
827
+ };
828
+ };
829
+ readonly $defs: {
830
+ readonly RequestEvent: {
831
+ readonly title: "RequestEvent";
832
+ readonly type: "object";
833
+ readonly additionalProperties: false;
834
+ readonly required: readonly ["eventId", "startDate", "endDate", "tiers"];
835
+ readonly properties: {
836
+ readonly eventId: {
837
+ readonly type: "string";
838
+ readonly minLength: 1;
839
+ readonly description: "The community's name for the gathering. It is the anonymity set for every token spent under this event, so it names something people attend — never one desk or one shift.";
840
+ };
841
+ readonly startDate: {
842
+ readonly type: "string";
843
+ readonly format: "date";
844
+ readonly description: "First day of the event, inclusive.";
845
+ };
846
+ readonly endDate: {
847
+ readonly type: "string";
848
+ readonly format: "date";
849
+ readonly description: "Last day of the event, inclusive.";
850
+ };
851
+ readonly graceDays: {
852
+ readonly type: "integer";
853
+ readonly minimum: 0;
854
+ readonly description: "Days after endDate the label keeps being accepted. Defaults to fourteen.";
855
+ };
856
+ readonly groupFloor: {
857
+ readonly type: "integer";
858
+ readonly minimum: 1;
859
+ readonly description: "The smallest group this community will open the label for. Defaults to three.";
860
+ };
861
+ readonly tiers: {
862
+ readonly type: "array";
863
+ readonly items: {
864
+ readonly $ref: "#/$defs/Tier";
865
+ };
866
+ readonly minItems: 1;
867
+ readonly description: "The published menu of rates a vetter may pick from.";
868
+ };
869
+ readonly approvedBy: {
870
+ readonly type: "string";
871
+ readonly minLength: 1;
872
+ readonly description: "Who approved the event. Absent means nobody has, and the label is not live whatever else is true.";
873
+ };
874
+ };
875
+ };
876
+ readonly Tier: {
877
+ readonly title: "Tier";
878
+ readonly type: "object";
879
+ readonly additionalProperties: false;
880
+ readonly required: readonly ["name", "dripPerTick"];
881
+ readonly properties: {
882
+ readonly name: {
883
+ readonly type: "string";
884
+ readonly minLength: 1;
885
+ readonly description: "How the menu names it: desk, busy-desk.";
886
+ };
887
+ readonly dripPerTick: {
888
+ readonly type: "integer";
889
+ readonly minimum: 1;
890
+ readonly description: "How many tokens a tick under this tier yields.";
891
+ };
892
+ };
893
+ };
894
+ readonly StoredEvent: {
895
+ readonly title: "StoredEvent";
896
+ readonly type: "object";
897
+ readonly additionalProperties: false;
898
+ readonly required: readonly ["eventId", "startDate", "endDate", "graceDays", "groupFloor", "tiers"];
899
+ readonly properties: {
900
+ readonly eventId: {
901
+ readonly type: "string";
902
+ readonly minLength: 1;
903
+ };
904
+ readonly startDate: {
905
+ readonly type: "string";
906
+ readonly format: "date";
907
+ };
908
+ readonly endDate: {
909
+ readonly type: "string";
910
+ readonly format: "date";
911
+ };
912
+ readonly graceDays: {
913
+ readonly type: "integer";
914
+ readonly minimum: 0;
915
+ };
916
+ readonly groupFloor: {
917
+ readonly type: "integer";
918
+ readonly minimum: 1;
919
+ };
920
+ readonly tiers: {
921
+ readonly type: "array";
922
+ readonly items: {
923
+ readonly $ref: "#/$defs/Tier";
924
+ };
925
+ };
926
+ readonly approvedBy: {
927
+ readonly type: readonly ["string", "null"];
928
+ readonly description: "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events).";
929
+ };
930
+ };
931
+ };
932
+ readonly PublishedEvent: {
933
+ readonly title: "PublishedEvent";
934
+ readonly 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.";
935
+ readonly type: "object";
936
+ readonly additionalProperties: false;
937
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
938
+ readonly properties: {
939
+ readonly eventId: {
940
+ readonly type: "string";
941
+ readonly minLength: 1;
942
+ };
943
+ readonly startDate: {
944
+ readonly type: "string";
945
+ readonly format: "date";
946
+ };
947
+ readonly endDate: {
948
+ readonly type: "string";
949
+ readonly format: "date";
950
+ };
951
+ readonly groupFloor: {
952
+ readonly type: "integer";
953
+ readonly minimum: 1;
954
+ };
955
+ readonly tiers: {
956
+ readonly type: "array";
957
+ readonly items: {
958
+ readonly $ref: "#/$defs/Tier";
959
+ };
960
+ };
961
+ };
962
+ };
963
+ readonly StoredConfig: {
964
+ readonly title: "StoredConfig";
965
+ readonly description: "The parameters exactly as the community stores them, including the helper key it never publishes.";
966
+ readonly type: "object";
967
+ readonly additionalProperties: false;
968
+ readonly required: readonly ["suite", "hvk", "tvk", "livePeriods", "liveTokenLabels", "dripPerTick", "events"];
969
+ readonly properties: {
970
+ readonly suite: {
971
+ readonly type: "string";
972
+ readonly minLength: 1;
973
+ readonly description: "The blind-signature suite in force, e.g. ps-ddh-bls12381.";
974
+ };
975
+ readonly hvk: {
976
+ readonly type: "string";
977
+ readonly minLength: 1;
978
+ readonly description: "The helper verification key, multibase. A public value, published as helperKey.";
979
+ };
980
+ readonly tvk: {
981
+ readonly type: "string";
982
+ readonly minLength: 1;
983
+ readonly description: "The token verification key, multibase. Never the same key as hvk.";
984
+ };
985
+ readonly livePeriods: {
986
+ readonly type: "array";
987
+ readonly items: {
988
+ readonly type: "string";
989
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
990
+ };
991
+ readonly description: "Live vetter class periods, current first, stored as the bare YYYY-MM period.";
992
+ };
993
+ readonly liveTokenLabels: {
994
+ readonly type: "array";
995
+ readonly items: {
996
+ readonly type: "string";
997
+ readonly minLength: 1;
998
+ };
999
+ };
1000
+ readonly dripPerTick: {
1001
+ readonly type: "integer";
1002
+ readonly minimum: 1;
1003
+ };
1004
+ readonly events: {
1005
+ readonly type: "array";
1006
+ readonly items: {
1007
+ readonly $ref: "#/$defs/StoredEvent";
1008
+ };
1009
+ };
1010
+ };
1011
+ };
1012
+ readonly PublishedConfig: {
1013
+ readonly title: "PublishedConfig";
1014
+ readonly description: "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.";
1015
+ readonly type: "object";
1016
+ readonly additionalProperties: false;
1017
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "events"];
1018
+ readonly properties: {
1019
+ readonly suite: {
1020
+ readonly type: "string";
1021
+ readonly minLength: 1;
1022
+ };
1023
+ readonly helperKey: {
1024
+ readonly type: "string";
1025
+ readonly minLength: 1;
1026
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
1027
+ };
1028
+ readonly tokenKey: {
1029
+ readonly type: "string";
1030
+ readonly minLength: 1;
1031
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
1032
+ };
1033
+ readonly vetterLabels: {
1034
+ readonly type: "array";
1035
+ readonly items: {
1036
+ readonly type: "string";
1037
+ readonly minLength: 1;
1038
+ };
1039
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
1040
+ };
1041
+ readonly tokenLabels: {
1042
+ readonly type: "array";
1043
+ readonly items: {
1044
+ readonly type: "string";
1045
+ readonly minLength: 1;
1046
+ };
1047
+ };
1048
+ readonly dripPerTick: {
1049
+ readonly type: "integer";
1050
+ readonly minimum: 1;
1051
+ };
1052
+ readonly events: {
1053
+ readonly type: "array";
1054
+ readonly items: {
1055
+ readonly $ref: "#/$defs/PublishedEvent";
1056
+ };
1057
+ };
1058
+ };
1059
+ };
1060
+ readonly Response: {
1061
+ readonly $anchor: "response";
1062
+ readonly title: "VTC Vetting — Hidden — Publish — response payload";
1063
+ readonly type: "object";
1064
+ readonly additionalProperties: false;
1065
+ readonly required: readonly ["criterionId", "stored", "published", "requirementsDigest"];
1066
+ readonly properties: {
1067
+ readonly criterionId: {
1068
+ readonly type: "string";
1069
+ readonly minLength: 1;
1070
+ readonly description: "The criterion that now accepts a hidden proof.";
1071
+ };
1072
+ readonly stored: {
1073
+ readonly $ref: "#/$defs/StoredConfig";
1074
+ };
1075
+ readonly published: {
1076
+ readonly $ref: "#/$defs/PublishedConfig";
1077
+ };
1078
+ readonly requirementsDigest: {
1079
+ readonly type: readonly ["string", "null"];
1080
+ readonly description: "The criterion's requirementsDigest after the change. It moves, because the digest covers the published parameters — an applicant mid-application is told its requirements changed, which is the honest answer. Null only when the criterion's manifest entry carries none.";
1081
+ };
1082
+ readonly ext: {
1083
+ readonly $ref: "#/$defs/Ext";
1084
+ };
1085
+ };
1086
+ };
1087
+ readonly Ext: {
1088
+ readonly title: "Ext";
1089
+ 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.";
1090
+ readonly type: "object";
1091
+ readonly minProperties: 1;
1092
+ readonly additionalProperties: true;
1093
+ readonly propertyNames: {
1094
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1095
+ };
1096
+ };
1097
+ };
1098
+ };
1099
+ };
1100
+ /**
1101
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
1102
+ * tracks the *issuer* party's requirement because a response swaps the
1103
+ * parties (§7.3 item 5).
1104
+ */
1105
+ export declare const RESPONSE_SPEC: {
1106
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/hidden/publish/0.1#response";
1107
+ readonly isBearer: false;
1108
+ readonly isProofRequired: true;
1109
+ readonly isRecipientRequired: true;
1110
+ readonly isIssuedAtRequired: true;
1111
+ readonly payloadSchema: {
1112
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1113
+ readonly $ref: "#/$defs/Response";
1114
+ readonly $defs: {
1115
+ readonly RequestEvent: {
1116
+ readonly title: "RequestEvent";
1117
+ readonly type: "object";
1118
+ readonly additionalProperties: false;
1119
+ readonly required: readonly ["eventId", "startDate", "endDate", "tiers"];
1120
+ readonly properties: {
1121
+ readonly eventId: {
1122
+ readonly type: "string";
1123
+ readonly minLength: 1;
1124
+ readonly description: "The community's name for the gathering. It is the anonymity set for every token spent under this event, so it names something people attend — never one desk or one shift.";
1125
+ };
1126
+ readonly startDate: {
1127
+ readonly type: "string";
1128
+ readonly format: "date";
1129
+ readonly description: "First day of the event, inclusive.";
1130
+ };
1131
+ readonly endDate: {
1132
+ readonly type: "string";
1133
+ readonly format: "date";
1134
+ readonly description: "Last day of the event, inclusive.";
1135
+ };
1136
+ readonly graceDays: {
1137
+ readonly type: "integer";
1138
+ readonly minimum: 0;
1139
+ readonly description: "Days after endDate the label keeps being accepted. Defaults to fourteen.";
1140
+ };
1141
+ readonly groupFloor: {
1142
+ readonly type: "integer";
1143
+ readonly minimum: 1;
1144
+ readonly description: "The smallest group this community will open the label for. Defaults to three.";
1145
+ };
1146
+ readonly tiers: {
1147
+ readonly type: "array";
1148
+ readonly items: {
1149
+ readonly $ref: "#/$defs/Tier";
1150
+ };
1151
+ readonly minItems: 1;
1152
+ readonly description: "The published menu of rates a vetter may pick from.";
1153
+ };
1154
+ readonly approvedBy: {
1155
+ readonly type: "string";
1156
+ readonly minLength: 1;
1157
+ readonly description: "Who approved the event. Absent means nobody has, and the label is not live whatever else is true.";
1158
+ };
1159
+ };
1160
+ };
1161
+ readonly Tier: {
1162
+ readonly title: "Tier";
1163
+ readonly type: "object";
1164
+ readonly additionalProperties: false;
1165
+ readonly required: readonly ["name", "dripPerTick"];
1166
+ readonly properties: {
1167
+ readonly name: {
1168
+ readonly type: "string";
1169
+ readonly minLength: 1;
1170
+ readonly description: "How the menu names it: desk, busy-desk.";
1171
+ };
1172
+ readonly dripPerTick: {
1173
+ readonly type: "integer";
1174
+ readonly minimum: 1;
1175
+ readonly description: "How many tokens a tick under this tier yields.";
1176
+ };
1177
+ };
1178
+ };
1179
+ readonly StoredEvent: {
1180
+ readonly title: "StoredEvent";
1181
+ readonly type: "object";
1182
+ readonly additionalProperties: false;
1183
+ readonly required: readonly ["eventId", "startDate", "endDate", "graceDays", "groupFloor", "tiers"];
1184
+ readonly properties: {
1185
+ readonly eventId: {
1186
+ readonly type: "string";
1187
+ readonly minLength: 1;
1188
+ };
1189
+ readonly startDate: {
1190
+ readonly type: "string";
1191
+ readonly format: "date";
1192
+ };
1193
+ readonly endDate: {
1194
+ readonly type: "string";
1195
+ readonly format: "date";
1196
+ };
1197
+ readonly graceDays: {
1198
+ readonly type: "integer";
1199
+ readonly minimum: 0;
1200
+ };
1201
+ readonly groupFloor: {
1202
+ readonly type: "integer";
1203
+ readonly minimum: 1;
1204
+ };
1205
+ readonly tiers: {
1206
+ readonly type: "array";
1207
+ readonly items: {
1208
+ readonly $ref: "#/$defs/Tier";
1209
+ };
1210
+ };
1211
+ readonly approvedBy: {
1212
+ readonly type: readonly ["string", "null"];
1213
+ readonly description: "Who approved the event, or null when nobody has. Recorded in storage only — dropped from the published shape (see published.events).";
1214
+ };
1215
+ };
1216
+ };
1217
+ readonly PublishedEvent: {
1218
+ readonly title: "PublishedEvent";
1219
+ readonly 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.";
1220
+ readonly type: "object";
1221
+ readonly additionalProperties: false;
1222
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
1223
+ readonly properties: {
1224
+ readonly eventId: {
1225
+ readonly type: "string";
1226
+ readonly minLength: 1;
1227
+ };
1228
+ readonly startDate: {
1229
+ readonly type: "string";
1230
+ readonly format: "date";
1231
+ };
1232
+ readonly endDate: {
1233
+ readonly type: "string";
1234
+ readonly format: "date";
1235
+ };
1236
+ readonly groupFloor: {
1237
+ readonly type: "integer";
1238
+ readonly minimum: 1;
1239
+ };
1240
+ readonly tiers: {
1241
+ readonly type: "array";
1242
+ readonly items: {
1243
+ readonly $ref: "#/$defs/Tier";
1244
+ };
1245
+ };
1246
+ };
1247
+ };
1248
+ readonly StoredConfig: {
1249
+ readonly title: "StoredConfig";
1250
+ readonly description: "The parameters exactly as the community stores them, including the helper key it never publishes.";
1251
+ readonly type: "object";
1252
+ readonly additionalProperties: false;
1253
+ readonly required: readonly ["suite", "hvk", "tvk", "livePeriods", "liveTokenLabels", "dripPerTick", "events"];
1254
+ readonly properties: {
1255
+ readonly suite: {
1256
+ readonly type: "string";
1257
+ readonly minLength: 1;
1258
+ readonly description: "The blind-signature suite in force, e.g. ps-ddh-bls12381.";
1259
+ };
1260
+ readonly hvk: {
1261
+ readonly type: "string";
1262
+ readonly minLength: 1;
1263
+ readonly description: "The helper verification key, multibase. A public value, published as helperKey.";
1264
+ };
1265
+ readonly tvk: {
1266
+ readonly type: "string";
1267
+ readonly minLength: 1;
1268
+ readonly description: "The token verification key, multibase. Never the same key as hvk.";
1269
+ };
1270
+ readonly livePeriods: {
1271
+ readonly type: "array";
1272
+ readonly items: {
1273
+ readonly type: "string";
1274
+ readonly pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$";
1275
+ };
1276
+ readonly description: "Live vetter class periods, current first, stored as the bare YYYY-MM period.";
1277
+ };
1278
+ readonly liveTokenLabels: {
1279
+ readonly type: "array";
1280
+ readonly items: {
1281
+ readonly type: "string";
1282
+ readonly minLength: 1;
1283
+ };
1284
+ };
1285
+ readonly dripPerTick: {
1286
+ readonly type: "integer";
1287
+ readonly minimum: 1;
1288
+ };
1289
+ readonly events: {
1290
+ readonly type: "array";
1291
+ readonly items: {
1292
+ readonly $ref: "#/$defs/StoredEvent";
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ readonly PublishedConfig: {
1298
+ readonly title: "PublishedConfig";
1299
+ readonly description: "The parameters exactly as they now appear in this community's join manifest, under vetting.ext. What an applicant and a vetter read.";
1300
+ readonly type: "object";
1301
+ readonly additionalProperties: false;
1302
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "events"];
1303
+ readonly properties: {
1304
+ readonly suite: {
1305
+ readonly type: "string";
1306
+ readonly minLength: 1;
1307
+ };
1308
+ readonly helperKey: {
1309
+ readonly type: "string";
1310
+ readonly minLength: 1;
1311
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
1312
+ };
1313
+ readonly tokenKey: {
1314
+ readonly type: "string";
1315
+ readonly minLength: 1;
1316
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
1317
+ };
1318
+ readonly vetterLabels: {
1319
+ readonly type: "array";
1320
+ readonly items: {
1321
+ readonly type: "string";
1322
+ readonly minLength: 1;
1323
+ };
1324
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
1325
+ };
1326
+ readonly tokenLabels: {
1327
+ readonly type: "array";
1328
+ readonly items: {
1329
+ readonly type: "string";
1330
+ readonly minLength: 1;
1331
+ };
1332
+ };
1333
+ readonly dripPerTick: {
1334
+ readonly type: "integer";
1335
+ readonly minimum: 1;
1336
+ };
1337
+ readonly events: {
1338
+ readonly type: "array";
1339
+ readonly items: {
1340
+ readonly $ref: "#/$defs/PublishedEvent";
1341
+ };
1342
+ };
1343
+ };
1344
+ };
1345
+ readonly Response: {
1346
+ readonly $anchor: "response";
1347
+ readonly title: "VTC Vetting — Hidden — Publish — response payload";
1348
+ readonly type: "object";
1349
+ readonly additionalProperties: false;
1350
+ readonly required: readonly ["criterionId", "stored", "published", "requirementsDigest"];
1351
+ readonly properties: {
1352
+ readonly criterionId: {
1353
+ readonly type: "string";
1354
+ readonly minLength: 1;
1355
+ readonly description: "The criterion that now accepts a hidden proof.";
1356
+ };
1357
+ readonly stored: {
1358
+ readonly $ref: "#/$defs/StoredConfig";
1359
+ };
1360
+ readonly published: {
1361
+ readonly $ref: "#/$defs/PublishedConfig";
1362
+ };
1363
+ readonly requirementsDigest: {
1364
+ readonly type: readonly ["string", "null"];
1365
+ readonly description: "The criterion's requirementsDigest after the change. It moves, because the digest covers the published parameters — an applicant mid-application is told its requirements changed, which is the honest answer. Null only when the criterion's manifest entry carries none.";
1366
+ };
1367
+ readonly ext: {
1368
+ readonly $ref: "#/$defs/Ext";
1369
+ };
1370
+ };
1371
+ };
1372
+ readonly Ext: {
1373
+ readonly title: "Ext";
1374
+ 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.";
1375
+ readonly type: "object";
1376
+ readonly minProperties: 1;
1377
+ readonly additionalProperties: true;
1378
+ readonly propertyNames: {
1379
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1380
+ };
1381
+ };
1382
+ };
1383
+ };
1384
+ };
1385
+ //# sourceMappingURL=payload.d.ts.map