@openvtc/trust-tasks 0.25.1 → 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 (115) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/_shared/components.d.ts +304 -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 +14 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +14 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/vetting/_shared/0.1/hidden-vetting.d.ts +16 -0
  25. package/dist/vetting/_shared/0.1/hidden-vetting.d.ts.map +1 -0
  26. package/dist/vetting/_shared/0.1/hidden-vetting.js +6 -0
  27. package/dist/vetting/_shared/0.1/hidden-vetting.js.map +1 -0
  28. package/dist/vetting/attestation/0.1/payload.d.ts +94 -146
  29. package/dist/vetting/attestation/0.1/payload.d.ts.map +1 -1
  30. package/dist/vetting/attestation/0.1/payload.js +43 -43
  31. package/dist/vetting/attestation/0.1/payload.js.map +1 -1
  32. package/dist/vta/_shared/0.4/pcs-engine.d.ts +16 -0
  33. package/dist/vta/_shared/0.4/pcs-engine.d.ts.map +1 -0
  34. package/dist/vta/_shared/0.4/pcs-engine.js +6 -0
  35. package/dist/vta/_shared/0.4/pcs-engine.js.map +1 -0
  36. package/dist/vta/pcs/applications/create/0.1/payload.d.ts +1215 -0
  37. package/dist/vta/pcs/applications/create/0.1/payload.d.ts.map +1 -0
  38. package/dist/vta/pcs/applications/create/0.1/payload.js +724 -0
  39. package/dist/vta/pcs/applications/create/0.1/payload.js.map +1 -0
  40. package/dist/vta/pcs/applications/delete/0.1/payload.d.ts +253 -0
  41. package/dist/vta/pcs/applications/delete/0.1/payload.d.ts.map +1 -0
  42. package/dist/vta/pcs/applications/delete/0.1/payload.js +146 -0
  43. package/dist/vta/pcs/applications/delete/0.1/payload.js.map +1 -0
  44. package/dist/vta/pcs/applications/show/0.1/payload.d.ts +733 -0
  45. package/dist/vta/pcs/applications/show/0.1/payload.d.ts.map +1 -0
  46. package/dist/vta/pcs/applications/show/0.1/payload.js +450 -0
  47. package/dist/vta/pcs/applications/show/0.1/payload.js.map +1 -0
  48. package/dist/vta/pcs/attest/0.1/payload.d.ts +1456 -0
  49. package/dist/vta/pcs/attest/0.1/payload.d.ts.map +1 -0
  50. package/dist/vta/pcs/attest/0.1/payload.js +876 -0
  51. package/dist/vta/pcs/attest/0.1/payload.js.map +1 -0
  52. package/dist/vta/pcs/prove/0.1/payload.d.ts +1348 -0
  53. package/dist/vta/pcs/prove/0.1/payload.d.ts.map +1 -0
  54. package/dist/vta/pcs/prove/0.1/payload.js +804 -0
  55. package/dist/vta/pcs/prove/0.1/payload.js.map +1 -0
  56. package/dist/vta/pcs/root-accept/0.1/payload.d.ts +1100 -0
  57. package/dist/vta/pcs/root-accept/0.1/payload.d.ts.map +1 -0
  58. package/dist/vta/pcs/root-accept/0.1/payload.js +634 -0
  59. package/dist/vta/pcs/root-accept/0.1/payload.js.map +1 -0
  60. package/dist/vta/pcs/root-request/0.1/payload.d.ts +880 -0
  61. package/dist/vta/pcs/root-request/0.1/payload.d.ts.map +1 -0
  62. package/dist/vta/pcs/root-request/0.1/payload.js +496 -0
  63. package/dist/vta/pcs/root-request/0.1/payload.js.map +1 -0
  64. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts +612 -0
  65. package/dist/vta/pcs/tokens/abandon/0.1/payload.d.ts.map +1 -0
  66. package/dist/vta/pcs/tokens/abandon/0.1/payload.js +355 -0
  67. package/dist/vta/pcs/tokens/abandon/0.1/payload.js.map +1 -0
  68. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts +1149 -0
  69. package/dist/vta/pcs/tokens/accept/0.1/payload.d.ts.map +1 -0
  70. package/dist/vta/pcs/tokens/accept/0.1/payload.js +657 -0
  71. package/dist/vta/pcs/tokens/accept/0.1/payload.js.map +1 -0
  72. package/dist/vta/pcs/tokens/request/0.1/payload.d.ts +908 -0
  73. package/dist/vta/pcs/tokens/request/0.1/payload.d.ts.map +1 -0
  74. package/dist/vta/pcs/tokens/request/0.1/payload.js +508 -0
  75. package/dist/vta/pcs/tokens/request/0.1/payload.js.map +1 -0
  76. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts +1423 -0
  77. package/dist/vta/pcs/verify-attestation/0.1/payload.d.ts.map +1 -0
  78. package/dist/vta/pcs/verify-attestation/0.1/payload.js +850 -0
  79. package/dist/vta/pcs/verify-attestation/0.1/payload.js.map +1 -0
  80. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts +605 -0
  81. package/dist/vta/pcs/vetter/show/0.1/payload.d.ts.map +1 -0
  82. package/dist/vta/pcs/vetter/show/0.1/payload.js +351 -0
  83. package/dist/vta/pcs/vetter/show/0.1/payload.js.map +1 -0
  84. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts +403 -486
  85. package/dist/vtc/vetting/hidden/publish/0.1/payload.d.ts.map +1 -1
  86. package/dist/vtc/vetting/hidden/publish/0.1/payload.js +240 -240
  87. package/dist/vtc/vetting/hidden/publish/0.1/payload.js.map +1 -1
  88. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts +482 -565
  89. package/dist/vtc/vetting/hidden/show/0.1/payload.d.ts.map +1 -1
  90. package/dist/vtc/vetting/hidden/show/0.1/payload.js +294 -294
  91. package/dist/vtc/vetting/hidden/show/0.1/payload.js.map +1 -1
  92. package/package.json +1 -1
  93. package/src/_shared/components.ts +308 -2
  94. package/src/device/list/0.1/payload.ts +6 -2
  95. package/src/device/list/0.2/payload.ts +6 -2
  96. package/src/device/register/0.1/payload.ts +6 -2
  97. package/src/device/register/0.2/payload.ts +6 -2
  98. package/src/index.ts +14 -0
  99. package/src/vetting/_shared/0.1/hidden-vetting.ts +17 -0
  100. package/src/vetting/attestation/0.1/payload.ts +49 -101
  101. package/src/vta/_shared/0.4/pcs-engine.ts +17 -0
  102. package/src/vta/pcs/applications/create/0.1/payload.ts +768 -0
  103. package/src/vta/pcs/applications/delete/0.1/payload.ts +182 -0
  104. package/src/vta/pcs/applications/show/0.1/payload.ts +482 -0
  105. package/src/vta/pcs/attest/0.1/payload.ts +943 -0
  106. package/src/vta/pcs/prove/0.1/payload.ts +845 -0
  107. package/src/vta/pcs/root-accept/0.1/payload.ts +681 -0
  108. package/src/vta/pcs/root-request/0.1/payload.ts +559 -0
  109. package/src/vta/pcs/tokens/abandon/0.1/payload.ts +392 -0
  110. package/src/vta/pcs/tokens/accept/0.1/payload.ts +713 -0
  111. package/src/vta/pcs/tokens/request/0.1/payload.ts +581 -0
  112. package/src/vta/pcs/verify-attestation/0.1/payload.ts +888 -0
  113. package/src/vta/pcs/vetter/show/0.1/payload.ts +387 -0
  114. package/src/vtc/vetting/hidden/publish/0.1/payload.ts +247 -331
  115. package/src/vtc/vetting/hidden/show/0.1/payload.ts +295 -379
@@ -0,0 +1,908 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/pcs/tokens/request/0.1/payload.schema.json
4
+ */
5
+ import type { CommunityParameters, Ext, PublishedConfig, PublishedEvent, TickLength, Tier } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A vetter's client asks its VTA for one draw of the attestation-token drip: blinded serials bound to the vetter's member DID, the label and the tick.
8
+ */
9
+ export interface VTAPCSTokensRequestPayload {
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 token label to draw under.
24
+ */
25
+ label: string;
26
+ /**
27
+ * The tick of the label being drawn.
28
+ */
29
+ tick: number;
30
+ /**
31
+ * How many tokens to ask for: normally the parameters' dripPerTick.
32
+ */
33
+ count: number;
34
+ ext?: Ext;
35
+ }
36
+ export interface VTAPCSTokensRequestResponsePayload {
37
+ request: TokenDrawRequest;
38
+ ext?: Ext;
39
+ }
40
+ /**
41
+ * The payload of a vtc/vetting/vetters/pcs-tokens/0.1 request, without its ext.
42
+ */
43
+ export interface TokenDrawRequest {
44
+ label: string;
45
+ tick: number;
46
+ /**
47
+ * @minItems 1
48
+ * @maxItems 64
49
+ */
50
+ requests: [
51
+ {
52
+ commitment: string;
53
+ openingProof: string;
54
+ },
55
+ ...{
56
+ commitment: string;
57
+ openingProof: string;
58
+ }[]
59
+ ];
60
+ }
61
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
62
+ export type { CommunityParameters, Ext, PublishedConfig, PublishedEvent, TickLength, Tier };
63
+ /** Trust Task type URI. */
64
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1";
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = VTAPCSTokensRequestPayload;
67
+ /** Trust Task response type URI (request type URI + "#response"). */
68
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1#response";
69
+ /** Stable alias for this specification's success-response payload shape. */
70
+ export type Response = VTAPCSTokensRequestResponsePayload;
71
+ /**
72
+ * This specification's payload schema, as a value.
73
+ *
74
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
75
+ * rather than only as a `.json` file because TypeScript types are erased
76
+ * at runtime: without a schema a consumer has nothing to validate, and
77
+ * every REQUIRED payload member is optional in practice. Cross-file
78
+ * `$ref`s are already inlined, so it needs no resolver.
79
+ */
80
+ export declare const PAYLOAD_SCHEMA: {
81
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
82
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1";
83
+ readonly title: "VTA PCS — Tokens — Request — payload";
84
+ readonly description: "A vetter's client asks its VTA for one draw of the attestation-token drip: blinded serials bound to the vetter's member DID, the label and the tick.";
85
+ readonly type: "object";
86
+ readonly additionalProperties: false;
87
+ readonly required: readonly ["contextId", "community", "parameters", "label", "tick", "count"];
88
+ readonly properties: {
89
+ readonly contextId: {
90
+ readonly type: "string";
91
+ readonly minLength: 1;
92
+ readonly description: "The context the engine belongs to. Its key is derived from this context's base.";
93
+ };
94
+ readonly community: {
95
+ readonly type: "string";
96
+ readonly minLength: 1;
97
+ readonly description: "The community's DID: the helper whose parameters the engine runs under.";
98
+ };
99
+ readonly parameters: {
100
+ readonly $ref: "#/$defs/CommunityParameters";
101
+ readonly description: "The community's published hidden-vetting parameters, copied verbatim from its join manifest.";
102
+ };
103
+ readonly label: {
104
+ readonly type: "string";
105
+ readonly minLength: 1;
106
+ readonly maxLength: 128;
107
+ readonly description: "The token label to draw under.";
108
+ };
109
+ readonly tick: {
110
+ readonly type: "integer";
111
+ readonly minimum: 0;
112
+ readonly description: "The tick of the label being drawn.";
113
+ };
114
+ readonly count: {
115
+ readonly type: "integer";
116
+ readonly minimum: 1;
117
+ readonly maximum: 64;
118
+ readonly description: "How many tokens to ask for: normally the parameters' dripPerTick.";
119
+ };
120
+ readonly ext: {
121
+ readonly $ref: "#/$defs/Ext";
122
+ };
123
+ };
124
+ readonly $defs: {
125
+ readonly TokenDrawRequest: {
126
+ readonly title: "TokenDrawRequest";
127
+ readonly description: "The payload of a vtc/vetting/vetters/pcs-tokens/0.1 request, without its ext.";
128
+ readonly type: "object";
129
+ readonly additionalProperties: false;
130
+ readonly required: readonly ["label", "tick", "requests"];
131
+ readonly properties: {
132
+ readonly label: {
133
+ readonly type: "string";
134
+ readonly minLength: 1;
135
+ readonly maxLength: 128;
136
+ };
137
+ readonly tick: {
138
+ readonly type: "integer";
139
+ readonly minimum: 0;
140
+ };
141
+ readonly requests: {
142
+ readonly type: "array";
143
+ readonly minItems: 1;
144
+ readonly maxItems: 64;
145
+ readonly items: {
146
+ readonly type: "object";
147
+ readonly additionalProperties: false;
148
+ readonly required: readonly ["commitment", "openingProof"];
149
+ readonly properties: {
150
+ readonly commitment: {
151
+ readonly type: "string";
152
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
153
+ };
154
+ readonly openingProof: {
155
+ readonly type: "string";
156
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ readonly Response: {
164
+ readonly $anchor: "response";
165
+ readonly title: "VTA PCS — Tokens — Request — response payload";
166
+ readonly type: "object";
167
+ readonly additionalProperties: false;
168
+ readonly required: readonly ["request"];
169
+ readonly properties: {
170
+ readonly request: {
171
+ readonly $ref: "#/$defs/TokenDrawRequest";
172
+ };
173
+ readonly ext: {
174
+ readonly $ref: "#/$defs/Ext";
175
+ };
176
+ };
177
+ };
178
+ readonly Ext: {
179
+ readonly title: "Ext";
180
+ 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.";
181
+ readonly type: "object";
182
+ readonly minProperties: 1;
183
+ readonly additionalProperties: true;
184
+ readonly propertyNames: {
185
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
186
+ };
187
+ };
188
+ readonly CommunityParameters: {
189
+ readonly title: "CommunityParameters";
190
+ 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.";
191
+ readonly $ref: "#/$defs/PublishedConfig";
192
+ };
193
+ readonly PublishedConfig: {
194
+ readonly title: "PublishedConfig";
195
+ 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.";
196
+ readonly type: "object";
197
+ readonly additionalProperties: false;
198
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
199
+ readonly properties: {
200
+ readonly suite: {
201
+ readonly type: "string";
202
+ readonly minLength: 1;
203
+ };
204
+ readonly helperKey: {
205
+ readonly type: "string";
206
+ readonly minLength: 1;
207
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
208
+ };
209
+ readonly tokenKey: {
210
+ readonly type: "string";
211
+ readonly minLength: 1;
212
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
213
+ };
214
+ readonly vetterLabels: {
215
+ readonly type: "array";
216
+ readonly items: {
217
+ readonly type: "string";
218
+ readonly minLength: 1;
219
+ };
220
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
221
+ };
222
+ readonly tokenLabels: {
223
+ readonly type: "array";
224
+ readonly items: {
225
+ readonly type: "string";
226
+ readonly minLength: 1;
227
+ };
228
+ };
229
+ readonly dripPerTick: {
230
+ readonly type: "integer";
231
+ readonly minimum: 1;
232
+ };
233
+ readonly tickLength: {
234
+ readonly $ref: "#/$defs/TickLength";
235
+ };
236
+ readonly events: {
237
+ readonly type: "array";
238
+ readonly items: {
239
+ readonly $ref: "#/$defs/PublishedEvent";
240
+ };
241
+ };
242
+ };
243
+ };
244
+ readonly PublishedEvent: {
245
+ readonly title: "PublishedEvent";
246
+ 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.";
247
+ readonly type: "object";
248
+ readonly additionalProperties: false;
249
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
250
+ readonly properties: {
251
+ readonly eventId: {
252
+ readonly type: "string";
253
+ readonly minLength: 1;
254
+ };
255
+ readonly startDate: {
256
+ readonly type: "string";
257
+ readonly format: "date";
258
+ };
259
+ readonly endDate: {
260
+ readonly type: "string";
261
+ readonly format: "date";
262
+ };
263
+ readonly groupFloor: {
264
+ readonly type: "integer";
265
+ readonly minimum: 1;
266
+ };
267
+ readonly tiers: {
268
+ readonly type: "array";
269
+ readonly items: {
270
+ readonly $ref: "#/$defs/Tier";
271
+ };
272
+ };
273
+ };
274
+ };
275
+ readonly Tier: {
276
+ readonly title: "Tier";
277
+ readonly type: "object";
278
+ readonly additionalProperties: false;
279
+ readonly required: readonly ["name", "dripPerTick"];
280
+ readonly properties: {
281
+ readonly name: {
282
+ readonly type: "string";
283
+ readonly minLength: 1;
284
+ readonly description: "How the menu names it: desk, busy-desk.";
285
+ };
286
+ readonly dripPerTick: {
287
+ readonly type: "integer";
288
+ readonly minimum: 1;
289
+ readonly description: "How many tokens a tick under this tier yields.";
290
+ };
291
+ };
292
+ };
293
+ readonly TickLength: {
294
+ readonly title: "TickLength";
295
+ readonly type: "string";
296
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
297
+ 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`).";
298
+ };
299
+ };
300
+ };
301
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
302
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
303
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
304
+ readonly $ref: "#/$defs/Response";
305
+ readonly $defs: {
306
+ readonly TokenDrawRequest: {
307
+ readonly title: "TokenDrawRequest";
308
+ readonly description: "The payload of a vtc/vetting/vetters/pcs-tokens/0.1 request, without its ext.";
309
+ readonly type: "object";
310
+ readonly additionalProperties: false;
311
+ readonly required: readonly ["label", "tick", "requests"];
312
+ readonly properties: {
313
+ readonly label: {
314
+ readonly type: "string";
315
+ readonly minLength: 1;
316
+ readonly maxLength: 128;
317
+ };
318
+ readonly tick: {
319
+ readonly type: "integer";
320
+ readonly minimum: 0;
321
+ };
322
+ readonly requests: {
323
+ readonly type: "array";
324
+ readonly minItems: 1;
325
+ readonly maxItems: 64;
326
+ readonly items: {
327
+ readonly type: "object";
328
+ readonly additionalProperties: false;
329
+ readonly required: readonly ["commitment", "openingProof"];
330
+ readonly properties: {
331
+ readonly commitment: {
332
+ readonly type: "string";
333
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
334
+ };
335
+ readonly openingProof: {
336
+ readonly type: "string";
337
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
338
+ };
339
+ };
340
+ };
341
+ };
342
+ };
343
+ };
344
+ readonly Response: {
345
+ readonly $anchor: "response";
346
+ readonly title: "VTA PCS — Tokens — Request — response payload";
347
+ readonly type: "object";
348
+ readonly additionalProperties: false;
349
+ readonly required: readonly ["request"];
350
+ readonly properties: {
351
+ readonly request: {
352
+ readonly $ref: "#/$defs/TokenDrawRequest";
353
+ };
354
+ readonly ext: {
355
+ readonly $ref: "#/$defs/Ext";
356
+ };
357
+ };
358
+ };
359
+ readonly Ext: {
360
+ readonly title: "Ext";
361
+ 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.";
362
+ readonly type: "object";
363
+ readonly minProperties: 1;
364
+ readonly additionalProperties: true;
365
+ readonly propertyNames: {
366
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
367
+ };
368
+ };
369
+ readonly CommunityParameters: {
370
+ readonly title: "CommunityParameters";
371
+ 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.";
372
+ readonly $ref: "#/$defs/PublishedConfig";
373
+ };
374
+ readonly PublishedConfig: {
375
+ readonly title: "PublishedConfig";
376
+ 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.";
377
+ readonly type: "object";
378
+ readonly additionalProperties: false;
379
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
380
+ readonly properties: {
381
+ readonly suite: {
382
+ readonly type: "string";
383
+ readonly minLength: 1;
384
+ };
385
+ readonly helperKey: {
386
+ readonly type: "string";
387
+ readonly minLength: 1;
388
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
389
+ };
390
+ readonly tokenKey: {
391
+ readonly type: "string";
392
+ readonly minLength: 1;
393
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
394
+ };
395
+ readonly vetterLabels: {
396
+ readonly type: "array";
397
+ readonly items: {
398
+ readonly type: "string";
399
+ readonly minLength: 1;
400
+ };
401
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
402
+ };
403
+ readonly tokenLabels: {
404
+ readonly type: "array";
405
+ readonly items: {
406
+ readonly type: "string";
407
+ readonly minLength: 1;
408
+ };
409
+ };
410
+ readonly dripPerTick: {
411
+ readonly type: "integer";
412
+ readonly minimum: 1;
413
+ };
414
+ readonly tickLength: {
415
+ readonly $ref: "#/$defs/TickLength";
416
+ };
417
+ readonly events: {
418
+ readonly type: "array";
419
+ readonly items: {
420
+ readonly $ref: "#/$defs/PublishedEvent";
421
+ };
422
+ };
423
+ };
424
+ };
425
+ readonly PublishedEvent: {
426
+ readonly title: "PublishedEvent";
427
+ 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.";
428
+ readonly type: "object";
429
+ readonly additionalProperties: false;
430
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
431
+ readonly properties: {
432
+ readonly eventId: {
433
+ readonly type: "string";
434
+ readonly minLength: 1;
435
+ };
436
+ readonly startDate: {
437
+ readonly type: "string";
438
+ readonly format: "date";
439
+ };
440
+ readonly endDate: {
441
+ readonly type: "string";
442
+ readonly format: "date";
443
+ };
444
+ readonly groupFloor: {
445
+ readonly type: "integer";
446
+ readonly minimum: 1;
447
+ };
448
+ readonly tiers: {
449
+ readonly type: "array";
450
+ readonly items: {
451
+ readonly $ref: "#/$defs/Tier";
452
+ };
453
+ };
454
+ };
455
+ };
456
+ readonly Tier: {
457
+ readonly title: "Tier";
458
+ readonly type: "object";
459
+ readonly additionalProperties: false;
460
+ readonly required: readonly ["name", "dripPerTick"];
461
+ readonly properties: {
462
+ readonly name: {
463
+ readonly type: "string";
464
+ readonly minLength: 1;
465
+ readonly description: "How the menu names it: desk, busy-desk.";
466
+ };
467
+ readonly dripPerTick: {
468
+ readonly type: "integer";
469
+ readonly minimum: 1;
470
+ readonly description: "How many tokens a tick under this tier yields.";
471
+ };
472
+ };
473
+ };
474
+ readonly TickLength: {
475
+ readonly title: "TickLength";
476
+ readonly type: "string";
477
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
478
+ 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`).";
479
+ };
480
+ };
481
+ };
482
+ /**
483
+ * SPEC.md §7.2 policy for the request variant, from this specification's
484
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
485
+ * per-specification and cannot be derived from the document alone, and
486
+ * item 2 needs the schema this carries.
487
+ */
488
+ export declare const SPEC: {
489
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1";
490
+ readonly isBearer: false;
491
+ readonly isProofRequired: true;
492
+ readonly isRecipientRequired: true;
493
+ readonly isIssuedAtRequired: true;
494
+ readonly payloadSchema: {
495
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
496
+ readonly $id: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1";
497
+ readonly title: "VTA PCS — Tokens — Request — payload";
498
+ readonly description: "A vetter's client asks its VTA for one draw of the attestation-token drip: blinded serials bound to the vetter's member DID, the label and the tick.";
499
+ readonly type: "object";
500
+ readonly additionalProperties: false;
501
+ readonly required: readonly ["contextId", "community", "parameters", "label", "tick", "count"];
502
+ readonly properties: {
503
+ readonly contextId: {
504
+ readonly type: "string";
505
+ readonly minLength: 1;
506
+ readonly description: "The context the engine belongs to. Its key is derived from this context's base.";
507
+ };
508
+ readonly community: {
509
+ readonly type: "string";
510
+ readonly minLength: 1;
511
+ readonly description: "The community's DID: the helper whose parameters the engine runs under.";
512
+ };
513
+ readonly parameters: {
514
+ readonly $ref: "#/$defs/CommunityParameters";
515
+ readonly description: "The community's published hidden-vetting parameters, copied verbatim from its join manifest.";
516
+ };
517
+ readonly label: {
518
+ readonly type: "string";
519
+ readonly minLength: 1;
520
+ readonly maxLength: 128;
521
+ readonly description: "The token label to draw under.";
522
+ };
523
+ readonly tick: {
524
+ readonly type: "integer";
525
+ readonly minimum: 0;
526
+ readonly description: "The tick of the label being drawn.";
527
+ };
528
+ readonly count: {
529
+ readonly type: "integer";
530
+ readonly minimum: 1;
531
+ readonly maximum: 64;
532
+ readonly description: "How many tokens to ask for: normally the parameters' dripPerTick.";
533
+ };
534
+ readonly ext: {
535
+ readonly $ref: "#/$defs/Ext";
536
+ };
537
+ };
538
+ readonly $defs: {
539
+ readonly TokenDrawRequest: {
540
+ readonly title: "TokenDrawRequest";
541
+ readonly description: "The payload of a vtc/vetting/vetters/pcs-tokens/0.1 request, without its ext.";
542
+ readonly type: "object";
543
+ readonly additionalProperties: false;
544
+ readonly required: readonly ["label", "tick", "requests"];
545
+ readonly properties: {
546
+ readonly label: {
547
+ readonly type: "string";
548
+ readonly minLength: 1;
549
+ readonly maxLength: 128;
550
+ };
551
+ readonly tick: {
552
+ readonly type: "integer";
553
+ readonly minimum: 0;
554
+ };
555
+ readonly requests: {
556
+ readonly type: "array";
557
+ readonly minItems: 1;
558
+ readonly maxItems: 64;
559
+ readonly items: {
560
+ readonly type: "object";
561
+ readonly additionalProperties: false;
562
+ readonly required: readonly ["commitment", "openingProof"];
563
+ readonly properties: {
564
+ readonly commitment: {
565
+ readonly type: "string";
566
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
567
+ };
568
+ readonly openingProof: {
569
+ readonly type: "string";
570
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
571
+ };
572
+ };
573
+ };
574
+ };
575
+ };
576
+ };
577
+ readonly Response: {
578
+ readonly $anchor: "response";
579
+ readonly title: "VTA PCS — Tokens — Request — response payload";
580
+ readonly type: "object";
581
+ readonly additionalProperties: false;
582
+ readonly required: readonly ["request"];
583
+ readonly properties: {
584
+ readonly request: {
585
+ readonly $ref: "#/$defs/TokenDrawRequest";
586
+ };
587
+ readonly ext: {
588
+ readonly $ref: "#/$defs/Ext";
589
+ };
590
+ };
591
+ };
592
+ readonly Ext: {
593
+ readonly title: "Ext";
594
+ 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.";
595
+ readonly type: "object";
596
+ readonly minProperties: 1;
597
+ readonly additionalProperties: true;
598
+ readonly propertyNames: {
599
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
600
+ };
601
+ };
602
+ readonly CommunityParameters: {
603
+ readonly title: "CommunityParameters";
604
+ 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.";
605
+ readonly $ref: "#/$defs/PublishedConfig";
606
+ };
607
+ readonly PublishedConfig: {
608
+ readonly title: "PublishedConfig";
609
+ 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.";
610
+ readonly type: "object";
611
+ readonly additionalProperties: false;
612
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
613
+ readonly properties: {
614
+ readonly suite: {
615
+ readonly type: "string";
616
+ readonly minLength: 1;
617
+ };
618
+ readonly helperKey: {
619
+ readonly type: "string";
620
+ readonly minLength: 1;
621
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
622
+ };
623
+ readonly tokenKey: {
624
+ readonly type: "string";
625
+ readonly minLength: 1;
626
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
627
+ };
628
+ readonly vetterLabels: {
629
+ readonly type: "array";
630
+ readonly items: {
631
+ readonly type: "string";
632
+ readonly minLength: 1;
633
+ };
634
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
635
+ };
636
+ readonly tokenLabels: {
637
+ readonly type: "array";
638
+ readonly items: {
639
+ readonly type: "string";
640
+ readonly minLength: 1;
641
+ };
642
+ };
643
+ readonly dripPerTick: {
644
+ readonly type: "integer";
645
+ readonly minimum: 1;
646
+ };
647
+ readonly tickLength: {
648
+ readonly $ref: "#/$defs/TickLength";
649
+ };
650
+ readonly events: {
651
+ readonly type: "array";
652
+ readonly items: {
653
+ readonly $ref: "#/$defs/PublishedEvent";
654
+ };
655
+ };
656
+ };
657
+ };
658
+ readonly PublishedEvent: {
659
+ readonly title: "PublishedEvent";
660
+ 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.";
661
+ readonly type: "object";
662
+ readonly additionalProperties: false;
663
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
664
+ readonly properties: {
665
+ readonly eventId: {
666
+ readonly type: "string";
667
+ readonly minLength: 1;
668
+ };
669
+ readonly startDate: {
670
+ readonly type: "string";
671
+ readonly format: "date";
672
+ };
673
+ readonly endDate: {
674
+ readonly type: "string";
675
+ readonly format: "date";
676
+ };
677
+ readonly groupFloor: {
678
+ readonly type: "integer";
679
+ readonly minimum: 1;
680
+ };
681
+ readonly tiers: {
682
+ readonly type: "array";
683
+ readonly items: {
684
+ readonly $ref: "#/$defs/Tier";
685
+ };
686
+ };
687
+ };
688
+ };
689
+ readonly Tier: {
690
+ readonly title: "Tier";
691
+ readonly type: "object";
692
+ readonly additionalProperties: false;
693
+ readonly required: readonly ["name", "dripPerTick"];
694
+ readonly properties: {
695
+ readonly name: {
696
+ readonly type: "string";
697
+ readonly minLength: 1;
698
+ readonly description: "How the menu names it: desk, busy-desk.";
699
+ };
700
+ readonly dripPerTick: {
701
+ readonly type: "integer";
702
+ readonly minimum: 1;
703
+ readonly description: "How many tokens a tick under this tier yields.";
704
+ };
705
+ };
706
+ };
707
+ readonly TickLength: {
708
+ readonly title: "TickLength";
709
+ readonly type: "string";
710
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
711
+ 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`).";
712
+ };
713
+ };
714
+ };
715
+ };
716
+ /**
717
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
718
+ * tracks the *issuer* party's requirement because a response swaps the
719
+ * parties (§7.3 item 5).
720
+ */
721
+ export declare const RESPONSE_SPEC: {
722
+ readonly typeUri: "https://trusttasks.org/spec/vta/pcs/tokens/request/0.1#response";
723
+ readonly isBearer: false;
724
+ readonly isProofRequired: false;
725
+ readonly isRecipientRequired: true;
726
+ readonly isIssuedAtRequired: true;
727
+ readonly payloadSchema: {
728
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
729
+ readonly $ref: "#/$defs/Response";
730
+ readonly $defs: {
731
+ readonly TokenDrawRequest: {
732
+ readonly title: "TokenDrawRequest";
733
+ readonly description: "The payload of a vtc/vetting/vetters/pcs-tokens/0.1 request, without its ext.";
734
+ readonly type: "object";
735
+ readonly additionalProperties: false;
736
+ readonly required: readonly ["label", "tick", "requests"];
737
+ readonly properties: {
738
+ readonly label: {
739
+ readonly type: "string";
740
+ readonly minLength: 1;
741
+ readonly maxLength: 128;
742
+ };
743
+ readonly tick: {
744
+ readonly type: "integer";
745
+ readonly minimum: 0;
746
+ };
747
+ readonly requests: {
748
+ readonly type: "array";
749
+ readonly minItems: 1;
750
+ readonly maxItems: 64;
751
+ readonly items: {
752
+ readonly type: "object";
753
+ readonly additionalProperties: false;
754
+ readonly required: readonly ["commitment", "openingProof"];
755
+ readonly properties: {
756
+ readonly commitment: {
757
+ readonly type: "string";
758
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
759
+ };
760
+ readonly openingProof: {
761
+ readonly type: "string";
762
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
763
+ };
764
+ };
765
+ };
766
+ };
767
+ };
768
+ };
769
+ readonly Response: {
770
+ readonly $anchor: "response";
771
+ readonly title: "VTA PCS — Tokens — Request — response payload";
772
+ readonly type: "object";
773
+ readonly additionalProperties: false;
774
+ readonly required: readonly ["request"];
775
+ readonly properties: {
776
+ readonly request: {
777
+ readonly $ref: "#/$defs/TokenDrawRequest";
778
+ };
779
+ readonly ext: {
780
+ readonly $ref: "#/$defs/Ext";
781
+ };
782
+ };
783
+ };
784
+ readonly Ext: {
785
+ readonly title: "Ext";
786
+ 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.";
787
+ readonly type: "object";
788
+ readonly minProperties: 1;
789
+ readonly additionalProperties: true;
790
+ readonly propertyNames: {
791
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
792
+ };
793
+ };
794
+ readonly CommunityParameters: {
795
+ readonly title: "CommunityParameters";
796
+ 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.";
797
+ readonly $ref: "#/$defs/PublishedConfig";
798
+ };
799
+ readonly PublishedConfig: {
800
+ readonly title: "PublishedConfig";
801
+ 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.";
802
+ readonly type: "object";
803
+ readonly additionalProperties: false;
804
+ readonly required: readonly ["suite", "helperKey", "tokenKey", "vetterLabels", "tokenLabels", "dripPerTick", "tickLength", "events"];
805
+ readonly properties: {
806
+ readonly suite: {
807
+ readonly type: "string";
808
+ readonly minLength: 1;
809
+ };
810
+ readonly helperKey: {
811
+ readonly type: "string";
812
+ readonly minLength: 1;
813
+ readonly description: "The helper verification key, multibase — named for its role on the wire rather than for hvk.";
814
+ };
815
+ readonly tokenKey: {
816
+ readonly type: "string";
817
+ readonly minLength: 1;
818
+ readonly description: "The token verification key, multibase — named for its role on the wire rather than for tvk.";
819
+ };
820
+ readonly vetterLabels: {
821
+ readonly type: "array";
822
+ readonly items: {
823
+ readonly type: "string";
824
+ readonly minLength: 1;
825
+ };
826
+ readonly description: "Class labels published whole, e.g. vetter/2026-09 — a request names one of these, not the bare period.";
827
+ };
828
+ readonly tokenLabels: {
829
+ readonly type: "array";
830
+ readonly items: {
831
+ readonly type: "string";
832
+ readonly minLength: 1;
833
+ };
834
+ };
835
+ readonly dripPerTick: {
836
+ readonly type: "integer";
837
+ readonly minimum: 1;
838
+ };
839
+ readonly tickLength: {
840
+ readonly $ref: "#/$defs/TickLength";
841
+ };
842
+ readonly events: {
843
+ readonly type: "array";
844
+ readonly items: {
845
+ readonly $ref: "#/$defs/PublishedEvent";
846
+ };
847
+ };
848
+ };
849
+ };
850
+ readonly PublishedEvent: {
851
+ readonly title: "PublishedEvent";
852
+ 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.";
853
+ readonly type: "object";
854
+ readonly additionalProperties: false;
855
+ readonly required: readonly ["eventId", "startDate", "endDate", "groupFloor", "tiers"];
856
+ readonly properties: {
857
+ readonly eventId: {
858
+ readonly type: "string";
859
+ readonly minLength: 1;
860
+ };
861
+ readonly startDate: {
862
+ readonly type: "string";
863
+ readonly format: "date";
864
+ };
865
+ readonly endDate: {
866
+ readonly type: "string";
867
+ readonly format: "date";
868
+ };
869
+ readonly groupFloor: {
870
+ readonly type: "integer";
871
+ readonly minimum: 1;
872
+ };
873
+ readonly tiers: {
874
+ readonly type: "array";
875
+ readonly items: {
876
+ readonly $ref: "#/$defs/Tier";
877
+ };
878
+ };
879
+ };
880
+ };
881
+ readonly Tier: {
882
+ readonly title: "Tier";
883
+ readonly type: "object";
884
+ readonly additionalProperties: false;
885
+ readonly required: readonly ["name", "dripPerTick"];
886
+ readonly properties: {
887
+ readonly name: {
888
+ readonly type: "string";
889
+ readonly minLength: 1;
890
+ readonly description: "How the menu names it: desk, busy-desk.";
891
+ };
892
+ readonly dripPerTick: {
893
+ readonly type: "integer";
894
+ readonly minimum: 1;
895
+ readonly description: "How many tokens a tick under this tier yields.";
896
+ };
897
+ };
898
+ };
899
+ readonly TickLength: {
900
+ readonly title: "TickLength";
901
+ readonly type: "string";
902
+ readonly pattern: "^P(?:\\d+D(?:T\\d+H)?|T\\d+H)$";
903
+ 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`).";
904
+ };
905
+ };
906
+ };
907
+ };
908
+ //# sourceMappingURL=payload.d.ts.map