@openvtc/trust-tasks 0.25.0 → 0.25.2

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 (130) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/_shared/components.d.ts +308 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +6 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +6 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +6 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +6 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/index.d.ts +17 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +17 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/provision/vta/_shared/0.1/vta.d.ts +16 -0
  25. package/dist/provision/vta/_shared/0.1/vta.d.ts.map +1 -0
  26. package/dist/provision/vta/_shared/0.1/vta.js +6 -0
  27. package/dist/provision/vta/_shared/0.1/vta.js.map +1 -0
  28. package/dist/provision/vta/claim/0.1/payload.d.ts +115 -0
  29. package/dist/provision/vta/claim/0.1/payload.d.ts.map +1 -0
  30. package/dist/provision/vta/claim/0.1/payload.js +69 -0
  31. package/dist/provision/vta/claim/0.1/payload.js.map +1 -0
  32. package/dist/provision/vta/redeem/0.1/payload.d.ts +371 -0
  33. package/dist/provision/vta/redeem/0.1/payload.d.ts.map +1 -0
  34. package/dist/provision/vta/redeem/0.1/payload.js +207 -0
  35. package/dist/provision/vta/redeem/0.1/payload.js.map +1 -0
  36. package/dist/vetting/_shared/0.1/hidden-vetting.d.ts +16 -0
  37. package/dist/vetting/_shared/0.1/hidden-vetting.d.ts.map +1 -0
  38. package/dist/vetting/_shared/0.1/hidden-vetting.js +6 -0
  39. package/dist/vetting/_shared/0.1/hidden-vetting.js.map +1 -0
  40. package/dist/vetting/attestation/0.1/payload.d.ts +94 -146
  41. package/dist/vetting/attestation/0.1/payload.d.ts.map +1 -1
  42. package/dist/vetting/attestation/0.1/payload.js +43 -43
  43. package/dist/vetting/attestation/0.1/payload.js.map +1 -1
  44. package/dist/vta/_shared/0.4/pcs-engine.d.ts +16 -0
  45. package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -0
  46. package/dist/vta/_shared/0.4/pcs-engine.js +6 -0
  47. package/dist/vta/_shared/0.4/pcs-engine.js.map +1 -0
  48. package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1215 -0
  49. package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -0
  50. package/dist/vta/pcs/applications/create/0.1/payload.js +724 -0
  51. package/dist/vta/pcs/applications/create/0.1/payload.js.map +1 -0
  52. package/dist/vta/pcs/applications/delete/0.1/payload.d.ts +253 -0
  53. package/dist/vta/pcs/applications/delete/0.1/payload.d.ts.map +1 -0
  54. package/dist/vta/pcs/applications/delete/0.1/payload.js +146 -0
  55. package/dist/vta/pcs/applications/delete/0.1/payload.js.map +1 -0
  56. package/dist/vta/pcs/applications/show/0.1/payload.d.ts +733 -0
  57. package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -0
  58. package/dist/vta/pcs/applications/show/0.1/payload.js +450 -0
  59. package/dist/vta/pcs/applications/show/0.1/payload.js.map +1 -0
  60. package/dist/vta/pcs/attest/0.1/payload.d.ts +1456 -0
  61. package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -0
  62. package/dist/vta/pcs/attest/0.1/payload.js +876 -0
  63. package/dist/vta/pcs/attest/0.1/payload.js.map +1 -0
  64. package/dist/vta/pcs/prove/0.1/payload.d.ts +1348 -0
  65. package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -0
  66. package/dist/vta/pcs/prove/0.1/payload.js +804 -0
  67. package/dist/vta/pcs/prove/0.1/payload.js.map +1 -0
  68. package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1100 -0
  69. package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -0
  70. package/dist/vta/pcs/root-accept/0.1/payload.js +634 -0
  71. package/dist/vta/pcs/root-accept/0.1/payload.js.map +1 -0
  72. package/dist/vta/pcs/root-request/0.1/payload.d.ts +880 -0
  73. package/dist/vta/pcs/root-request/0.1/payload.d.ts.map +1 -0
  74. package/dist/vta/pcs/root-request/0.1/payload.js +496 -0
  75. package/dist/vta/pcs/root-request/0.1/payload.js.map +1 -0
  76. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +612 -0
  77. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -0
  78. package/dist/vta/pcs/tokens/abandon/0.1/payload.js +355 -0
  79. package/dist/vta/pcs/tokens/abandon/0.1/payload.js.map +1 -0
  80. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1149 -0
  81. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -0
  82. package/dist/vta/pcs/tokens/accept/0.1/payload.js +657 -0
  83. package/dist/vta/pcs/tokens/accept/0.1/payload.js.map +1 -0
  84. package/dist/vta/pcs/tokens/request/0.1/payload.d.ts +908 -0
  85. package/dist/vta/pcs/tokens/request/0.1/payload.d.ts.map +1 -0
  86. package/dist/vta/pcs/tokens/request/0.1/payload.js +508 -0
  87. package/dist/vta/pcs/tokens/request/0.1/payload.js.map +1 -0
  88. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1423 -0
  89. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -0
  90. package/dist/vta/pcs/verify-attestation/0.1/payload.js +850 -0
  91. package/dist/vta/pcs/verify-attestation/0.1/payload.js.map +1 -0
  92. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +605 -0
  93. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -0
  94. package/dist/vta/pcs/vetter/show/0.1/payload.js +351 -0
  95. package/dist/vta/pcs/vetter/show/0.1/payload.js.map +1 -0
  96. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +403 -486
  97. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -1
  98. package/dist/vtc/vetting/hidden/publish/0.1/payload.js +240 -240
  99. package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -1
  100. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +482 -565
  101. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -1
  102. package/dist/vtc/vetting/hidden/show/0.1/payload.js +294 -294
  103. package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/_shared/components.ts +312 -2
  106. package/src/device/list/0.1/payload.ts +6 -2
  107. package/src/device/list/0.2/payload.ts +6 -2
  108. package/src/device/register/0.1/payload.ts +6 -2
  109. package/src/device/register/0.2/payload.ts +6 -2
  110. package/src/index.ts +17 -0
  111. package/src/provision/vta/_shared/0.1/vta.ts +17 -0
  112. package/src/provision/vta/claim/0.1/payload.ts +88 -0
  113. package/src/provision/vta/redeem/0.1/payload.ts +255 -0
  114. package/src/vetting/_shared/0.1/hidden-vetting.ts +17 -0
  115. package/src/vetting/attestation/0.1/payload.ts +49 -101
  116. package/src/vta/_shared/0.4/pcs-engine.ts +17 -0
  117. package/src/vta/pcs/applications/create/0.1/payload.ts +768 -0
  118. package/src/vta/pcs/applications/delete/0.1/payload.ts +182 -0
  119. package/src/vta/pcs/applications/show/0.1/payload.ts +482 -0
  120. package/src/vta/pcs/attest/0.1/payload.ts +943 -0
  121. package/src/vta/pcs/prove/0.1/payload.ts +845 -0
  122. package/src/vta/pcs/root-accept/0.1/payload.ts +681 -0
  123. package/src/vta/pcs/root-request/0.1/payload.ts +559 -0
  124. package/src/vta/pcs/tokens/abandon/0.1/payload.ts +392 -0
  125. package/src/vta/pcs/tokens/accept/0.1/payload.ts +713 -0
  126. package/src/vta/pcs/tokens/request/0.1/payload.ts +581 -0
  127. package/src/vta/pcs/verify-attestation/0.1/payload.ts +888 -0
  128. package/src/vta/pcs/vetter/show/0.1/payload.ts +387 -0
  129. package/src/vtc/vetting/hidden/publish/0.1/payload.ts +247 -331
  130. package/src/vtc/vetting/hidden/show/0.1/payload.ts +295 -379
@@ -0,0 +1,1149 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/tokens/accept/0.1/payload.schema.json
4
+ */
5
+ import type { CommunityParameters, Ext, Multibase, PublishedConfig, PublishedEvent, TickLength, Tier, TokenDraw, VetterSummary } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A vetter's client hands its VTA the community's answer to a token draw; the VTA unblinds the tokens into the vetter's wallet.
8
+ */
9
+ export interface VTAPCSTokensAcceptPayload {
10
+ /**
11
+ * The context the engine belongs to. Its key is derived from this context's base.
12
+ */
13
+ contextId: string;
14
+ /**
15
+ * The community's DID: the helper whose parameters the engine runs under.
16
+ */
17
+ community: string;
18
+ /**
19
+ * The community's published hidden-vetting parameters, copied verbatim from its join manifest.
20
+ */
21
+ parameters: CommunityParameters;
22
+ /**
23
+ * The payload of the community's vtc/vetting/vetters/pcs-tokens/0.1 response, without its ext.
24
+ */
25
+ response: {
26
+ label: string;
27
+ tick: number;
28
+ /**
29
+ * @minItems 1
30
+ * @maxItems 64
31
+ */
32
+ preCredentials: [string, ...string[]];
33
+ };
34
+ ext?: Ext;
35
+ }
36
+ export interface VTAPCSTokensAcceptResponsePayload {
37
+ /**
38
+ * Tokens taken into the wallet.
39
+ */
40
+ received: number;
41
+ vetter: VetterSummary;
42
+ ext?: Ext;
43
+ }
44
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
45
+ export type { CommunityParameters, Ext, Multibase, PublishedConfig, PublishedEvent, TickLength, Tier, TokenDraw, VetterSummary };
46
+ /** Trust Task type URI. */
47
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1";
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTAPCSTokensAcceptPayload;
50
+ /** Trust Task response type URI (request type URI + "#response"). */
51
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1#response";
52
+ /** Stable alias for this specification's success-response payload shape. */
53
+ export type Response = VTAPCSTokensAcceptResponsePayload;
54
+ /**
55
+ * This specification's payload schema, as a value.
56
+ *
57
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
58
+ * rather than only as a `.json` file because TypeScript types are erased
59
+ * at runtime: without a schema a consumer has nothing to validate, and
60
+ * every REQUIRED payload member is optional in practice. Cross-file
61
+ * `$ref`s are already inlined, so it needs no resolver.
62
+ */
63
+ export declare const PAYLOAD_SCHEMA: {
64
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
65
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1";
66
+ readonly title: "VTA PCS — Tokens — Accept — payload";
67
+ readonly description: "A vetter's client hands its VTA the community's answer to a token draw; the VTA unblinds the tokens into the vetter's wallet.";
68
+ readonly type: "object";
69
+ readonly additionalProperties: false;
70
+ readonly required: readonly ["contextId", "community", "parameters", "response"];
71
+ readonly properties: {
72
+ readonly contextId: {
73
+ readonly type: "string";
74
+ readonly minLength: 1;
75
+ readonly description: "The context the engine belongs to. Its key is derived from this context's base.";
76
+ };
77
+ readonly community: {
78
+ readonly type: "string";
79
+ readonly minLength: 1;
80
+ readonly description: "The community's DID: the helper whose parameters the engine runs under.";
81
+ };
82
+ readonly parameters: {
83
+ readonly $ref: "#/$defs/CommunityParameters";
84
+ readonly description: "The community's published hidden-vetting parameters, copied verbatim from its join manifest.";
85
+ };
86
+ readonly response: {
87
+ readonly type: "object";
88
+ readonly additionalProperties: false;
89
+ readonly required: readonly ["label", "tick", "preCredentials"];
90
+ readonly description: "The payload of the community's vtc/vetting/vetters/pcs-tokens/0.1 response, without its ext.";
91
+ readonly properties: {
92
+ readonly label: {
93
+ readonly type: "string";
94
+ readonly minLength: 1;
95
+ readonly maxLength: 128;
96
+ };
97
+ readonly tick: {
98
+ readonly type: "integer";
99
+ readonly minimum: 0;
100
+ };
101
+ readonly preCredentials: {
102
+ readonly type: "array";
103
+ readonly minItems: 1;
104
+ readonly maxItems: 64;
105
+ readonly items: {
106
+ readonly type: "string";
107
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
108
+ };
109
+ };
110
+ };
111
+ };
112
+ readonly ext: {
113
+ readonly $ref: "#/$defs/Ext";
114
+ };
115
+ };
116
+ readonly $defs: {
117
+ readonly Response: {
118
+ readonly $anchor: "response";
119
+ readonly title: "VTA PCS — Tokens — Accept — response payload";
120
+ readonly type: "object";
121
+ readonly additionalProperties: false;
122
+ readonly required: readonly ["received", "vetter"];
123
+ readonly properties: {
124
+ readonly received: {
125
+ readonly type: "integer";
126
+ readonly minimum: 0;
127
+ readonly description: "Tokens taken into the wallet.";
128
+ };
129
+ readonly vetter: {
130
+ readonly $ref: "#/$defs/VetterSummary";
131
+ };
132
+ readonly ext: {
133
+ readonly $ref: "#/$defs/Ext";
134
+ };
135
+ };
136
+ };
137
+ readonly Ext: {
138
+ readonly title: "Ext";
139
+ 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.";
140
+ readonly type: "object";
141
+ readonly minProperties: 1;
142
+ readonly additionalProperties: true;
143
+ readonly propertyNames: {
144
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
145
+ };
146
+ };
147
+ readonly VetterSummary: {
148
+ readonly title: "VetterSummary";
149
+ readonly description: "A vetter engine as the VTA holds it, without its key, its credentials or its tokens.";
150
+ readonly type: "object";
151
+ readonly additionalProperties: false;
152
+ readonly required: readonly ["contextId", "community", "memberDid", "suite", "id", "enrolledLabels", "pendingLabels", "tokensFree", "tokensHeld", "drawsInFlight", "attested"];
153
+ readonly properties: {
154
+ readonly contextId: {
155
+ readonly type: "string";
156
+ readonly minLength: 1;
157
+ };
158
+ readonly community: {
159
+ readonly type: "string";
160
+ readonly minLength: 1;
161
+ };
162
+ readonly memberDid: {
163
+ readonly type: "string";
164
+ readonly minLength: 1;
165
+ readonly description: "The member DID the engine draws tokens as. Bound into every token request.";
166
+ };
167
+ readonly suite: {
168
+ readonly type: "string";
169
+ readonly minLength: 1;
170
+ readonly maxLength: 64;
171
+ };
172
+ readonly id: {
173
+ readonly $ref: "#/$defs/Multibase";
174
+ readonly description: "The vetter's PCS identifier for this community.";
175
+ };
176
+ readonly enrolledLabels: {
177
+ readonly type: "array";
178
+ readonly description: "Class labels this vetter holds a credential under, newest first.";
179
+ readonly items: {
180
+ readonly type: "string";
181
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
182
+ };
183
+ };
184
+ readonly pendingLabels: {
185
+ readonly type: "array";
186
+ readonly description: "Class labels requested and not yet accepted.";
187
+ readonly items: {
188
+ readonly type: "string";
189
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
190
+ };
191
+ };
192
+ readonly tokensFree: {
193
+ readonly type: "integer";
194
+ readonly minimum: 0;
195
+ readonly description: "Tokens held and not reserved.";
196
+ };
197
+ readonly tokensHeld: {
198
+ readonly type: "integer";
199
+ readonly minimum: 0;
200
+ readonly description: "Tokens held in all.";
201
+ };
202
+ readonly drawsInFlight: {
203
+ readonly type: "array";
204
+ readonly description: "Draws requested and not yet accepted or abandoned.";
205
+ readonly items: {
206
+ readonly $ref: "#/$defs/TokenDraw";
207
+ };
208
+ };
209
+ readonly attested: {
210
+ readonly type: "integer";
211
+ readonly minimum: 0;
212
+ readonly description: "Attestations made through this engine.";
213
+ };
214
+ };
215
+ };
216
+ readonly TokenDraw: {
217
+ readonly title: "TokenDraw";
218
+ readonly description: "One draw of the token drip: a label and a tick.";
219
+ readonly type: "object";
220
+ readonly additionalProperties: false;
221
+ readonly required: readonly ["label", "tick"];
222
+ readonly properties: {
223
+ readonly label: {
224
+ readonly type: "string";
225
+ readonly minLength: 1;
226
+ readonly maxLength: 128;
227
+ };
228
+ readonly tick: {
229
+ readonly type: "integer";
230
+ readonly minimum: 0;
231
+ };
232
+ };
233
+ };
234
+ readonly Multibase: {
235
+ readonly title: "Multibase";
236
+ readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
237
+ readonly type: "string";
238
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
239
+ };
240
+ readonly CommunityParameters: {
241
+ readonly title: "CommunityParameters";
242
+ readonly description: "The community's hidden-vetting parameters exactly as its join manifest publishes them, under the criterion's `vetting.ext`. The caller copies them in verbatim on every call that needs them, because the community rotates labels and the engine keeps no copy of its own: a stale copy costs the caller a refused proof, never a mistaken one.";
243
+ readonly $ref: "#/$defs/PublishedConfig";
244
+ };
245
+ readonly PublishedConfig: {
246
+ readonly title: "PublishedConfig";
247
+ 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.";
248
+ readonly type: "object";
249
+ readonly additionalProperties: false;
250
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
251
+ readonly properties: {
252
+ readonly suite: {
253
+ readonly type: "string";
254
+ readonly minLength: 1;
255
+ };
256
+ readonly helperKey: {
257
+ readonly type: "string";
258
+ readonly minLength: 1;
259
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
260
+ };
261
+ readonly tokenKey: {
262
+ readonly type: "string";
263
+ readonly minLength: 1;
264
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
265
+ };
266
+ readonly vetterLabels: {
267
+ readonly type: "array";
268
+ readonly items: {
269
+ readonly type: "string";
270
+ readonly minLength: 1;
271
+ };
272
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
273
+ };
274
+ readonly tokenLabels: {
275
+ readonly type: "array";
276
+ readonly items: {
277
+ readonly type: "string";
278
+ readonly minLength: 1;
279
+ };
280
+ };
281
+ readonly dripPerTick: {
282
+ readonly type: "integer";
283
+ readonly minimum: 1;
284
+ };
285
+ readonly tickLength: {
286
+ readonly $ref: "#/$defs/TickLength";
287
+ };
288
+ readonly events: {
289
+ readonly type: "array";
290
+ readonly items: {
291
+ readonly $ref: "#/$defs/PublishedEvent";
292
+ };
293
+ };
294
+ };
295
+ };
296
+ readonly PublishedEvent: {
297
+ readonly title: "PublishedEvent";
298
+ 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.";
299
+ readonly type: "object";
300
+ readonly additionalProperties: false;
301
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
302
+ readonly properties: {
303
+ readonly eventId: {
304
+ readonly type: "string";
305
+ readonly minLength: 1;
306
+ };
307
+ readonly startDate: {
308
+ readonly type: "string";
309
+ readonly format: "date";
310
+ };
311
+ readonly endDate: {
312
+ readonly type: "string";
313
+ readonly format: "date";
314
+ };
315
+ readonly groupFloor: {
316
+ readonly type: "integer";
317
+ readonly minimum: 1;
318
+ };
319
+ readonly tiers: {
320
+ readonly type: "array";
321
+ readonly items: {
322
+ readonly $ref: "#/$defs/Tier";
323
+ };
324
+ };
325
+ };
326
+ };
327
+ readonly Tier: {
328
+ readonly title: "Tier";
329
+ readonly type: "object";
330
+ readonly additionalProperties: false;
331
+ readonly required: readonly ["name", "dripPerTick"];
332
+ readonly properties: {
333
+ readonly name: {
334
+ readonly type: "string";
335
+ readonly minLength: 1;
336
+ readonly description: "How the menu names it: desk, busy-desk.";
337
+ };
338
+ readonly dripPerTick: {
339
+ readonly type: "integer";
340
+ readonly minimum: 1;
341
+ readonly description: "How many tokens a tick under this tier yields.";
342
+ };
343
+ };
344
+ };
345
+ readonly TickLength: {
346
+ readonly title: "TickLength";
347
+ readonly type: "string";
348
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
349
+ readonly description: "The length of one tick of the drip, as an ISO 8601 duration in days and/or hours — at least `PT1H`. A label's tick `t` is the window starting `t` tick lengths after the label's start (`vtc/vetting/vetters/pcs-tokens`).";
350
+ };
351
+ };
352
+ };
353
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
354
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
355
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
356
+ readonly $ref: "#/$defs/Response";
357
+ readonly $defs: {
358
+ readonly Response: {
359
+ readonly $anchor: "response";
360
+ readonly title: "VTA PCS — Tokens — Accept — response payload";
361
+ readonly type: "object";
362
+ readonly additionalProperties: false;
363
+ readonly required: readonly ["received", "vetter"];
364
+ readonly properties: {
365
+ readonly received: {
366
+ readonly type: "integer";
367
+ readonly minimum: 0;
368
+ readonly description: "Tokens taken into the wallet.";
369
+ };
370
+ readonly vetter: {
371
+ readonly $ref: "#/$defs/VetterSummary";
372
+ };
373
+ readonly ext: {
374
+ readonly $ref: "#/$defs/Ext";
375
+ };
376
+ };
377
+ };
378
+ readonly Ext: {
379
+ readonly title: "Ext";
380
+ 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.";
381
+ readonly type: "object";
382
+ readonly minProperties: 1;
383
+ readonly additionalProperties: true;
384
+ readonly propertyNames: {
385
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
386
+ };
387
+ };
388
+ readonly VetterSummary: {
389
+ readonly title: "VetterSummary";
390
+ readonly description: "A vetter engine as the VTA holds it, without its key, its credentials or its tokens.";
391
+ readonly type: "object";
392
+ readonly additionalProperties: false;
393
+ readonly required: readonly ["contextId", "community", "memberDid", "suite", "id", "enrolledLabels", "pendingLabels", "tokensFree", "tokensHeld", "drawsInFlight", "attested"];
394
+ readonly properties: {
395
+ readonly contextId: {
396
+ readonly type: "string";
397
+ readonly minLength: 1;
398
+ };
399
+ readonly community: {
400
+ readonly type: "string";
401
+ readonly minLength: 1;
402
+ };
403
+ readonly memberDid: {
404
+ readonly type: "string";
405
+ readonly minLength: 1;
406
+ readonly description: "The member DID the engine draws tokens as. Bound into every token request.";
407
+ };
408
+ readonly suite: {
409
+ readonly type: "string";
410
+ readonly minLength: 1;
411
+ readonly maxLength: 64;
412
+ };
413
+ readonly id: {
414
+ readonly $ref: "#/$defs/Multibase";
415
+ readonly description: "The vetter's PCS identifier for this community.";
416
+ };
417
+ readonly enrolledLabels: {
418
+ readonly type: "array";
419
+ readonly description: "Class labels this vetter holds a credential under, newest first.";
420
+ readonly items: {
421
+ readonly type: "string";
422
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
423
+ };
424
+ };
425
+ readonly pendingLabels: {
426
+ readonly type: "array";
427
+ readonly description: "Class labels requested and not yet accepted.";
428
+ readonly items: {
429
+ readonly type: "string";
430
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
431
+ };
432
+ };
433
+ readonly tokensFree: {
434
+ readonly type: "integer";
435
+ readonly minimum: 0;
436
+ readonly description: "Tokens held and not reserved.";
437
+ };
438
+ readonly tokensHeld: {
439
+ readonly type: "integer";
440
+ readonly minimum: 0;
441
+ readonly description: "Tokens held in all.";
442
+ };
443
+ readonly drawsInFlight: {
444
+ readonly type: "array";
445
+ readonly description: "Draws requested and not yet accepted or abandoned.";
446
+ readonly items: {
447
+ readonly $ref: "#/$defs/TokenDraw";
448
+ };
449
+ };
450
+ readonly attested: {
451
+ readonly type: "integer";
452
+ readonly minimum: 0;
453
+ readonly description: "Attestations made through this engine.";
454
+ };
455
+ };
456
+ };
457
+ readonly TokenDraw: {
458
+ readonly title: "TokenDraw";
459
+ readonly description: "One draw of the token drip: a label and a tick.";
460
+ readonly type: "object";
461
+ readonly additionalProperties: false;
462
+ readonly required: readonly ["label", "tick"];
463
+ readonly properties: {
464
+ readonly label: {
465
+ readonly type: "string";
466
+ readonly minLength: 1;
467
+ readonly maxLength: 128;
468
+ };
469
+ readonly tick: {
470
+ readonly type: "integer";
471
+ readonly minimum: 0;
472
+ };
473
+ };
474
+ };
475
+ readonly Multibase: {
476
+ readonly title: "Multibase";
477
+ readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
478
+ readonly type: "string";
479
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
480
+ };
481
+ readonly CommunityParameters: {
482
+ readonly title: "CommunityParameters";
483
+ readonly description: "The community's hidden-vetting parameters exactly as its join manifest publishes them, under the criterion's `vetting.ext`. The caller copies them in verbatim on every call that needs them, because the community rotates labels and the engine keeps no copy of its own: a stale copy costs the caller a refused proof, never a mistaken one.";
484
+ readonly $ref: "#/$defs/PublishedConfig";
485
+ };
486
+ readonly PublishedConfig: {
487
+ readonly title: "PublishedConfig";
488
+ 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.";
489
+ readonly type: "object";
490
+ readonly additionalProperties: false;
491
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
492
+ readonly properties: {
493
+ readonly suite: {
494
+ readonly type: "string";
495
+ readonly minLength: 1;
496
+ };
497
+ readonly helperKey: {
498
+ readonly type: "string";
499
+ readonly minLength: 1;
500
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
501
+ };
502
+ readonly tokenKey: {
503
+ readonly type: "string";
504
+ readonly minLength: 1;
505
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
506
+ };
507
+ readonly vetterLabels: {
508
+ readonly type: "array";
509
+ readonly items: {
510
+ readonly type: "string";
511
+ readonly minLength: 1;
512
+ };
513
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
514
+ };
515
+ readonly tokenLabels: {
516
+ readonly type: "array";
517
+ readonly items: {
518
+ readonly type: "string";
519
+ readonly minLength: 1;
520
+ };
521
+ };
522
+ readonly dripPerTick: {
523
+ readonly type: "integer";
524
+ readonly minimum: 1;
525
+ };
526
+ readonly tickLength: {
527
+ readonly $ref: "#/$defs/TickLength";
528
+ };
529
+ readonly events: {
530
+ readonly type: "array";
531
+ readonly items: {
532
+ readonly $ref: "#/$defs/PublishedEvent";
533
+ };
534
+ };
535
+ };
536
+ };
537
+ readonly PublishedEvent: {
538
+ readonly title: "PublishedEvent";
539
+ 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.";
540
+ readonly type: "object";
541
+ readonly additionalProperties: false;
542
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
543
+ readonly properties: {
544
+ readonly eventId: {
545
+ readonly type: "string";
546
+ readonly minLength: 1;
547
+ };
548
+ readonly startDate: {
549
+ readonly type: "string";
550
+ readonly format: "date";
551
+ };
552
+ readonly endDate: {
553
+ readonly type: "string";
554
+ readonly format: "date";
555
+ };
556
+ readonly groupFloor: {
557
+ readonly type: "integer";
558
+ readonly minimum: 1;
559
+ };
560
+ readonly tiers: {
561
+ readonly type: "array";
562
+ readonly items: {
563
+ readonly $ref: "#/$defs/Tier";
564
+ };
565
+ };
566
+ };
567
+ };
568
+ readonly Tier: {
569
+ readonly title: "Tier";
570
+ readonly type: "object";
571
+ readonly additionalProperties: false;
572
+ readonly required: readonly ["name", "dripPerTick"];
573
+ readonly properties: {
574
+ readonly name: {
575
+ readonly type: "string";
576
+ readonly minLength: 1;
577
+ readonly description: "How the menu names it: desk, busy-desk.";
578
+ };
579
+ readonly dripPerTick: {
580
+ readonly type: "integer";
581
+ readonly minimum: 1;
582
+ readonly description: "How many tokens a tick under this tier yields.";
583
+ };
584
+ };
585
+ };
586
+ readonly TickLength: {
587
+ readonly title: "TickLength";
588
+ readonly type: "string";
589
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
590
+ readonly description: "The length of one tick of the drip, as an ISO 8601 duration in days and/or hours — at least `PT1H`. A label's tick `t` is the window starting `t` tick lengths after the label's start (`vtc/vetting/vetters/pcs-tokens`).";
591
+ };
592
+ };
593
+ };
594
+ /**
595
+ * SPEC.md §7.2 policy for the request variant, from this specification's
596
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
597
+ * per-specification and cannot be derived from the document alone, and
598
+ * item 2 needs the schema this carries.
599
+ */
600
+ export declare const SPEC: {
601
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1";
602
+ readonly isBearer: false;
603
+ readonly isProofRequired: true;
604
+ readonly isRecipientRequired: true;
605
+ readonly isIssuedAtRequired: true;
606
+ readonly payloadSchema: {
607
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
608
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1";
609
+ readonly title: "VTA PCS — Tokens — Accept — payload";
610
+ readonly description: "A vetter's client hands its VTA the community's answer to a token draw; the VTA unblinds the tokens into the vetter's wallet.";
611
+ readonly type: "object";
612
+ readonly additionalProperties: false;
613
+ readonly required: readonly ["contextId", "community", "parameters", "response"];
614
+ readonly properties: {
615
+ readonly contextId: {
616
+ readonly type: "string";
617
+ readonly minLength: 1;
618
+ readonly description: "The context the engine belongs to. Its key is derived from this context's base.";
619
+ };
620
+ readonly community: {
621
+ readonly type: "string";
622
+ readonly minLength: 1;
623
+ readonly description: "The community's DID: the helper whose parameters the engine runs under.";
624
+ };
625
+ readonly parameters: {
626
+ readonly $ref: "#/$defs/CommunityParameters";
627
+ readonly description: "The community's published hidden-vetting parameters, copied verbatim from its join manifest.";
628
+ };
629
+ readonly response: {
630
+ readonly type: "object";
631
+ readonly additionalProperties: false;
632
+ readonly required: readonly ["label", "tick", "preCredentials"];
633
+ readonly description: "The payload of the community's vtc/vetting/vetters/pcs-tokens/0.1 response, without its ext.";
634
+ readonly properties: {
635
+ readonly label: {
636
+ readonly type: "string";
637
+ readonly minLength: 1;
638
+ readonly maxLength: 128;
639
+ };
640
+ readonly tick: {
641
+ readonly type: "integer";
642
+ readonly minimum: 0;
643
+ };
644
+ readonly preCredentials: {
645
+ readonly type: "array";
646
+ readonly minItems: 1;
647
+ readonly maxItems: 64;
648
+ readonly items: {
649
+ readonly type: "string";
650
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
651
+ };
652
+ };
653
+ };
654
+ };
655
+ readonly ext: {
656
+ readonly $ref: "#/$defs/Ext";
657
+ };
658
+ };
659
+ readonly $defs: {
660
+ readonly Response: {
661
+ readonly $anchor: "response";
662
+ readonly title: "VTA PCS — Tokens — Accept — response payload";
663
+ readonly type: "object";
664
+ readonly additionalProperties: false;
665
+ readonly required: readonly ["received", "vetter"];
666
+ readonly properties: {
667
+ readonly received: {
668
+ readonly type: "integer";
669
+ readonly minimum: 0;
670
+ readonly description: "Tokens taken into the wallet.";
671
+ };
672
+ readonly vetter: {
673
+ readonly $ref: "#/$defs/VetterSummary";
674
+ };
675
+ readonly ext: {
676
+ readonly $ref: "#/$defs/Ext";
677
+ };
678
+ };
679
+ };
680
+ readonly Ext: {
681
+ readonly title: "Ext";
682
+ 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.";
683
+ readonly type: "object";
684
+ readonly minProperties: 1;
685
+ readonly additionalProperties: true;
686
+ readonly propertyNames: {
687
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
688
+ };
689
+ };
690
+ readonly VetterSummary: {
691
+ readonly title: "VetterSummary";
692
+ readonly description: "A vetter engine as the VTA holds it, without its key, its credentials or its tokens.";
693
+ readonly type: "object";
694
+ readonly additionalProperties: false;
695
+ readonly required: readonly ["contextId", "community", "memberDid", "suite", "id", "enrolledLabels", "pendingLabels", "tokensFree", "tokensHeld", "drawsInFlight", "attested"];
696
+ readonly properties: {
697
+ readonly contextId: {
698
+ readonly type: "string";
699
+ readonly minLength: 1;
700
+ };
701
+ readonly community: {
702
+ readonly type: "string";
703
+ readonly minLength: 1;
704
+ };
705
+ readonly memberDid: {
706
+ readonly type: "string";
707
+ readonly minLength: 1;
708
+ readonly description: "The member DID the engine draws tokens as. Bound into every token request.";
709
+ };
710
+ readonly suite: {
711
+ readonly type: "string";
712
+ readonly minLength: 1;
713
+ readonly maxLength: 64;
714
+ };
715
+ readonly id: {
716
+ readonly $ref: "#/$defs/Multibase";
717
+ readonly description: "The vetter's PCS identifier for this community.";
718
+ };
719
+ readonly enrolledLabels: {
720
+ readonly type: "array";
721
+ readonly description: "Class labels this vetter holds a credential under, newest first.";
722
+ readonly items: {
723
+ readonly type: "string";
724
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
725
+ };
726
+ };
727
+ readonly pendingLabels: {
728
+ readonly type: "array";
729
+ readonly description: "Class labels requested and not yet accepted.";
730
+ readonly items: {
731
+ readonly type: "string";
732
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
733
+ };
734
+ };
735
+ readonly tokensFree: {
736
+ readonly type: "integer";
737
+ readonly minimum: 0;
738
+ readonly description: "Tokens held and not reserved.";
739
+ };
740
+ readonly tokensHeld: {
741
+ readonly type: "integer";
742
+ readonly minimum: 0;
743
+ readonly description: "Tokens held in all.";
744
+ };
745
+ readonly drawsInFlight: {
746
+ readonly type: "array";
747
+ readonly description: "Draws requested and not yet accepted or abandoned.";
748
+ readonly items: {
749
+ readonly $ref: "#/$defs/TokenDraw";
750
+ };
751
+ };
752
+ readonly attested: {
753
+ readonly type: "integer";
754
+ readonly minimum: 0;
755
+ readonly description: "Attestations made through this engine.";
756
+ };
757
+ };
758
+ };
759
+ readonly TokenDraw: {
760
+ readonly title: "TokenDraw";
761
+ readonly description: "One draw of the token drip: a label and a tick.";
762
+ readonly type: "object";
763
+ readonly additionalProperties: false;
764
+ readonly required: readonly ["label", "tick"];
765
+ readonly properties: {
766
+ readonly label: {
767
+ readonly type: "string";
768
+ readonly minLength: 1;
769
+ readonly maxLength: 128;
770
+ };
771
+ readonly tick: {
772
+ readonly type: "integer";
773
+ readonly minimum: 0;
774
+ };
775
+ };
776
+ };
777
+ readonly Multibase: {
778
+ readonly title: "Multibase";
779
+ readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
780
+ readonly type: "string";
781
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
782
+ };
783
+ readonly CommunityParameters: {
784
+ readonly title: "CommunityParameters";
785
+ readonly description: "The community's hidden-vetting parameters exactly as its join manifest publishes them, under the criterion's `vetting.ext`. The caller copies them in verbatim on every call that needs them, because the community rotates labels and the engine keeps no copy of its own: a stale copy costs the caller a refused proof, never a mistaken one.";
786
+ readonly $ref: "#/$defs/PublishedConfig";
787
+ };
788
+ readonly PublishedConfig: {
789
+ readonly title: "PublishedConfig";
790
+ 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.";
791
+ readonly type: "object";
792
+ readonly additionalProperties: false;
793
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
794
+ readonly properties: {
795
+ readonly suite: {
796
+ readonly type: "string";
797
+ readonly minLength: 1;
798
+ };
799
+ readonly helperKey: {
800
+ readonly type: "string";
801
+ readonly minLength: 1;
802
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
803
+ };
804
+ readonly tokenKey: {
805
+ readonly type: "string";
806
+ readonly minLength: 1;
807
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
808
+ };
809
+ readonly vetterLabels: {
810
+ readonly type: "array";
811
+ readonly items: {
812
+ readonly type: "string";
813
+ readonly minLength: 1;
814
+ };
815
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
816
+ };
817
+ readonly tokenLabels: {
818
+ readonly type: "array";
819
+ readonly items: {
820
+ readonly type: "string";
821
+ readonly minLength: 1;
822
+ };
823
+ };
824
+ readonly dripPerTick: {
825
+ readonly type: "integer";
826
+ readonly minimum: 1;
827
+ };
828
+ readonly tickLength: {
829
+ readonly $ref: "#/$defs/TickLength";
830
+ };
831
+ readonly events: {
832
+ readonly type: "array";
833
+ readonly items: {
834
+ readonly $ref: "#/$defs/PublishedEvent";
835
+ };
836
+ };
837
+ };
838
+ };
839
+ readonly PublishedEvent: {
840
+ readonly title: "PublishedEvent";
841
+ 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.";
842
+ readonly type: "object";
843
+ readonly additionalProperties: false;
844
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
845
+ readonly properties: {
846
+ readonly eventId: {
847
+ readonly type: "string";
848
+ readonly minLength: 1;
849
+ };
850
+ readonly startDate: {
851
+ readonly type: "string";
852
+ readonly format: "date";
853
+ };
854
+ readonly endDate: {
855
+ readonly type: "string";
856
+ readonly format: "date";
857
+ };
858
+ readonly groupFloor: {
859
+ readonly type: "integer";
860
+ readonly minimum: 1;
861
+ };
862
+ readonly tiers: {
863
+ readonly type: "array";
864
+ readonly items: {
865
+ readonly $ref: "#/$defs/Tier";
866
+ };
867
+ };
868
+ };
869
+ };
870
+ readonly Tier: {
871
+ readonly title: "Tier";
872
+ readonly type: "object";
873
+ readonly additionalProperties: false;
874
+ readonly required: readonly ["name", "dripPerTick"];
875
+ readonly properties: {
876
+ readonly name: {
877
+ readonly type: "string";
878
+ readonly minLength: 1;
879
+ readonly description: "How the menu names it: desk, busy-desk.";
880
+ };
881
+ readonly dripPerTick: {
882
+ readonly type: "integer";
883
+ readonly minimum: 1;
884
+ readonly description: "How many tokens a tick under this tier yields.";
885
+ };
886
+ };
887
+ };
888
+ readonly TickLength: {
889
+ readonly title: "TickLength";
890
+ readonly type: "string";
891
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
892
+ readonly description: "The length of one tick of the drip, as an ISO 8601 duration in days and/or hours — at least `PT1H`. A label's tick `t` is the window starting `t` tick lengths after the label's start (`vtc/vetting/vetters/pcs-tokens`).";
893
+ };
894
+ };
895
+ };
896
+ };
897
+ /**
898
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
899
+ * tracks the *issuer* party's requirement because a response swaps the
900
+ * parties (§7.3 item 5).
901
+ */
902
+ export declare const RESPONSE_SPEC: {
903
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/tokens/accept/0.1#response";
904
+ readonly isBearer: false;
905
+ readonly isProofRequired: false;
906
+ readonly isRecipientRequired: true;
907
+ readonly isIssuedAtRequired: true;
908
+ readonly payloadSchema: {
909
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
910
+ readonly $ref: "#/$defs/Response";
911
+ readonly $defs: {
912
+ readonly Response: {
913
+ readonly $anchor: "response";
914
+ readonly title: "VTA PCS — Tokens — Accept — response payload";
915
+ readonly type: "object";
916
+ readonly additionalProperties: false;
917
+ readonly required: readonly ["received", "vetter"];
918
+ readonly properties: {
919
+ readonly received: {
920
+ readonly type: "integer";
921
+ readonly minimum: 0;
922
+ readonly description: "Tokens taken into the wallet.";
923
+ };
924
+ readonly vetter: {
925
+ readonly $ref: "#/$defs/VetterSummary";
926
+ };
927
+ readonly ext: {
928
+ readonly $ref: "#/$defs/Ext";
929
+ };
930
+ };
931
+ };
932
+ readonly Ext: {
933
+ readonly title: "Ext";
934
+ 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.";
935
+ readonly type: "object";
936
+ readonly minProperties: 1;
937
+ readonly additionalProperties: true;
938
+ readonly propertyNames: {
939
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
940
+ };
941
+ };
942
+ readonly VetterSummary: {
943
+ readonly title: "VetterSummary";
944
+ readonly description: "A vetter engine as the VTA holds it, without its key, its credentials or its tokens.";
945
+ readonly type: "object";
946
+ readonly additionalProperties: false;
947
+ readonly required: readonly ["contextId", "community", "memberDid", "suite", "id", "enrolledLabels", "pendingLabels", "tokensFree", "tokensHeld", "drawsInFlight", "attested"];
948
+ readonly properties: {
949
+ readonly contextId: {
950
+ readonly type: "string";
951
+ readonly minLength: 1;
952
+ };
953
+ readonly community: {
954
+ readonly type: "string";
955
+ readonly minLength: 1;
956
+ };
957
+ readonly memberDid: {
958
+ readonly type: "string";
959
+ readonly minLength: 1;
960
+ readonly description: "The member DID the engine draws tokens as. Bound into every token request.";
961
+ };
962
+ readonly suite: {
963
+ readonly type: "string";
964
+ readonly minLength: 1;
965
+ readonly maxLength: 64;
966
+ };
967
+ readonly id: {
968
+ readonly $ref: "#/$defs/Multibase";
969
+ readonly description: "The vetter's PCS identifier for this community.";
970
+ };
971
+ readonly enrolledLabels: {
972
+ readonly type: "array";
973
+ readonly description: "Class labels this vetter holds a credential under, newest first.";
974
+ readonly items: {
975
+ readonly type: "string";
976
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
977
+ };
978
+ };
979
+ readonly pendingLabels: {
980
+ readonly type: "array";
981
+ readonly description: "Class labels requested and not yet accepted.";
982
+ readonly items: {
983
+ readonly type: "string";
984
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
985
+ };
986
+ };
987
+ readonly tokensFree: {
988
+ readonly type: "integer";
989
+ readonly minimum: 0;
990
+ readonly description: "Tokens held and not reserved.";
991
+ };
992
+ readonly tokensHeld: {
993
+ readonly type: "integer";
994
+ readonly minimum: 0;
995
+ readonly description: "Tokens held in all.";
996
+ };
997
+ readonly drawsInFlight: {
998
+ readonly type: "array";
999
+ readonly description: "Draws requested and not yet accepted or abandoned.";
1000
+ readonly items: {
1001
+ readonly $ref: "#/$defs/TokenDraw";
1002
+ };
1003
+ };
1004
+ readonly attested: {
1005
+ readonly type: "integer";
1006
+ readonly minimum: 0;
1007
+ readonly description: "Attestations made through this engine.";
1008
+ };
1009
+ };
1010
+ };
1011
+ readonly TokenDraw: {
1012
+ readonly title: "TokenDraw";
1013
+ readonly description: "One draw of the token drip: a label and a tick.";
1014
+ readonly type: "object";
1015
+ readonly additionalProperties: false;
1016
+ readonly required: readonly ["label", "tick"];
1017
+ readonly properties: {
1018
+ readonly label: {
1019
+ readonly type: "string";
1020
+ readonly minLength: 1;
1021
+ readonly maxLength: 128;
1022
+ };
1023
+ readonly tick: {
1024
+ readonly type: "integer";
1025
+ readonly minimum: 0;
1026
+ };
1027
+ };
1028
+ };
1029
+ readonly Multibase: {
1030
+ readonly title: "Multibase";
1031
+ readonly description: "A binary value, multibase base58btc over the suite's canonical encoding.";
1032
+ readonly type: "string";
1033
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
1034
+ };
1035
+ readonly CommunityParameters: {
1036
+ readonly title: "CommunityParameters";
1037
+ readonly description: "The community's hidden-vetting parameters exactly as its join manifest publishes them, under the criterion's `vetting.ext`. The caller copies them in verbatim on every call that needs them, because the community rotates labels and the engine keeps no copy of its own: a stale copy costs the caller a refused proof, never a mistaken one.";
1038
+ readonly $ref: "#/$defs/PublishedConfig";
1039
+ };
1040
+ readonly PublishedConfig: {
1041
+ readonly title: "PublishedConfig";
1042
+ 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.";
1043
+ readonly type: "object";
1044
+ readonly additionalProperties: false;
1045
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
1046
+ readonly properties: {
1047
+ readonly suite: {
1048
+ readonly type: "string";
1049
+ readonly minLength: 1;
1050
+ };
1051
+ readonly helperKey: {
1052
+ readonly type: "string";
1053
+ readonly minLength: 1;
1054
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
1055
+ };
1056
+ readonly tokenKey: {
1057
+ readonly type: "string";
1058
+ readonly minLength: 1;
1059
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
1060
+ };
1061
+ readonly vetterLabels: {
1062
+ readonly type: "array";
1063
+ readonly items: {
1064
+ readonly type: "string";
1065
+ readonly minLength: 1;
1066
+ };
1067
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
1068
+ };
1069
+ readonly tokenLabels: {
1070
+ readonly type: "array";
1071
+ readonly items: {
1072
+ readonly type: "string";
1073
+ readonly minLength: 1;
1074
+ };
1075
+ };
1076
+ readonly dripPerTick: {
1077
+ readonly type: "integer";
1078
+ readonly minimum: 1;
1079
+ };
1080
+ readonly tickLength: {
1081
+ readonly $ref: "#/$defs/TickLength";
1082
+ };
1083
+ readonly events: {
1084
+ readonly type: "array";
1085
+ readonly items: {
1086
+ readonly $ref: "#/$defs/PublishedEvent";
1087
+ };
1088
+ };
1089
+ };
1090
+ };
1091
+ readonly PublishedEvent: {
1092
+ readonly title: "PublishedEvent";
1093
+ 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.";
1094
+ readonly type: "object";
1095
+ readonly additionalProperties: false;
1096
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
1097
+ readonly properties: {
1098
+ readonly eventId: {
1099
+ readonly type: "string";
1100
+ readonly minLength: 1;
1101
+ };
1102
+ readonly startDate: {
1103
+ readonly type: "string";
1104
+ readonly format: "date";
1105
+ };
1106
+ readonly endDate: {
1107
+ readonly type: "string";
1108
+ readonly format: "date";
1109
+ };
1110
+ readonly groupFloor: {
1111
+ readonly type: "integer";
1112
+ readonly minimum: 1;
1113
+ };
1114
+ readonly tiers: {
1115
+ readonly type: "array";
1116
+ readonly items: {
1117
+ readonly $ref: "#/$defs/Tier";
1118
+ };
1119
+ };
1120
+ };
1121
+ };
1122
+ readonly Tier: {
1123
+ readonly title: "Tier";
1124
+ readonly type: "object";
1125
+ readonly additionalProperties: false;
1126
+ readonly required: readonly ["name", "dripPerTick"];
1127
+ readonly properties: {
1128
+ readonly name: {
1129
+ readonly type: "string";
1130
+ readonly minLength: 1;
1131
+ readonly description: "How the menu names it: desk, busy-desk.";
1132
+ };
1133
+ readonly dripPerTick: {
1134
+ readonly type: "integer";
1135
+ readonly minimum: 1;
1136
+ readonly description: "How many tokens a tick under this tier yields.";
1137
+ };
1138
+ };
1139
+ };
1140
+ readonly TickLength: {
1141
+ readonly title: "TickLength";
1142
+ readonly type: "string";
1143
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
1144
+ readonly description: "The length of one tick of the drip, as an ISO 8601 duration in days and/or hours — at least `PT1H`. A label's tick `t` is the window starting `t` tick lengths after the label's start (`vtc/vetting/vetters/pcs-tokens`).";
1145
+ };
1146
+ };
1147
+ };
1148
+ };
1149
+ //# sourceMappingURL=payload.d.ts.map