@openvtc/trust-tasks 0.20.1 → 0.20.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 (32) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/index.d.ts +5 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/vetting/attestation/0.1/payload.d.ts +690 -0
  7. package/dist/vetting/attestation/0.1/payload.d.ts.map +1 -0
  8. package/dist/vetting/attestation/0.1/payload.js +374 -0
  9. package/dist/vetting/attestation/0.1/payload.js.map +1 -0
  10. package/dist/vtc/vetting/pcs-challenge/0.1/payload.d.ts +261 -0
  11. package/dist/vtc/vetting/pcs-challenge/0.1/payload.d.ts.map +1 -0
  12. package/dist/vtc/vetting/pcs-challenge/0.1/payload.js +145 -0
  13. package/dist/vtc/vetting/pcs-challenge/0.1/payload.js.map +1 -0
  14. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.d.ts +546 -0
  15. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.d.ts.map +1 -0
  16. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.js +290 -0
  17. package/dist/vtc/vetting/vetters/event-mode/0.1/payload.js.map +1 -0
  18. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.d.ts +336 -0
  19. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.d.ts.map +1 -0
  20. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.js +178 -0
  21. package/dist/vtc/vetting/vetters/pcs-root/0.1/payload.js.map +1 -0
  22. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts +402 -0
  23. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.d.ts.map +1 -0
  24. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js +205 -0
  25. package/dist/vtc/vetting/vetters/pcs-tokens/0.1/payload.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/index.ts +5 -0
  28. package/src/vetting/attestation/0.1/payload.ts +493 -0
  29. package/src/vtc/vetting/pcs-challenge/0.1/payload.ts +187 -0
  30. package/src/vtc/vetting/vetters/event-mode/0.1/payload.ts +375 -0
  31. package/src/vtc/vetting/vetters/pcs-root/0.1/payload.ts +241 -0
  32. package/src/vtc/vetting/vetters/pcs-tokens/0.1/payload.ts +286 -0
@@ -0,0 +1,178 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/pcs-root/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-root/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-root/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-root/0.1",
21
+ "title": "VTC — Vetting PCS Root Credential — payload",
22
+ "description": "A vetter asks the community to blind-sign its class credential for a vetting period. What the community signs is a commitment it cannot open, so the credential it issues is one it cannot later recognise — which is what lets the vetter attest without being named.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "label",
27
+ "id",
28
+ "request"
29
+ ],
30
+ "properties": {
31
+ "label": {
32
+ "type": "string",
33
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$",
34
+ "description": "The class label asked for, `vetter/<YYYY-MM>`. A community issues under its current label only; a stale client is refused rather than silently served under another."
35
+ },
36
+ "id": {
37
+ "type": "string",
38
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
39
+ "description": "The vetter's PCS identifier, multibase base58btc. Recorded once and required again at every later label: a member holding two identifiers could be counted twice in one proof."
40
+ },
41
+ "request": {
42
+ "type": "object",
43
+ "description": "The blinded root request, as the suite serialises it. Opaque to the community beyond verifying it; its members are fixed by the suite named in the criterion's parameters, not by this schema.",
44
+ "properties": {
45
+ "encoding": {
46
+ "type": "string",
47
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
48
+ "description": "The issuance encoding the suite carries."
49
+ },
50
+ "t0": {
51
+ "type": "string",
52
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
53
+ "description": "The request's tag under the root context."
54
+ },
55
+ "proof": {
56
+ "type": "string",
57
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
58
+ "description": "The proof that the commitment is well formed and the requester holds its secret."
59
+ }
60
+ },
61
+ "required": [
62
+ "proof"
63
+ ]
64
+ },
65
+ "ext": {
66
+ "$ref": "#/$defs/Ext"
67
+ }
68
+ },
69
+ "$defs": {
70
+ "Response": {
71
+ "$anchor": "response",
72
+ "title": "VTC Vetting PCS Root Credential — response payload",
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "label",
77
+ "preCredential"
78
+ ],
79
+ "description": "The blind pre-credential. The vetter unblinds it into a credential the community has never seen.",
80
+ "properties": {
81
+ "label": {
82
+ "type": "string",
83
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$",
84
+ "description": "The label signed under — the one asked for."
85
+ },
86
+ "preCredential": {
87
+ "type": "string",
88
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
89
+ "description": "The pre-credential, multibase base58btc. Useless to anyone but the holder of the request's blinding state."
90
+ },
91
+ "ext": {
92
+ "$ref": "#/$defs/Ext"
93
+ }
94
+ }
95
+ },
96
+ "Ext": {
97
+ "title": "Ext",
98
+ "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.",
99
+ "type": "object",
100
+ "minProperties": 1,
101
+ "additionalProperties": true,
102
+ "propertyNames": {
103
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
104
+ }
105
+ }
106
+ }
107
+ };
108
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
109
+ export const RESPONSE_PAYLOAD_SCHEMA = {
110
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
111
+ "$ref": "#/$defs/Response",
112
+ "$defs": {
113
+ "Response": {
114
+ "$anchor": "response",
115
+ "title": "VTC Vetting PCS Root Credential — response payload",
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "label",
120
+ "preCredential"
121
+ ],
122
+ "description": "The blind pre-credential. The vetter unblinds it into a credential the community has never seen.",
123
+ "properties": {
124
+ "label": {
125
+ "type": "string",
126
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$",
127
+ "description": "The label signed under — the one asked for."
128
+ },
129
+ "preCredential": {
130
+ "type": "string",
131
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
132
+ "description": "The pre-credential, multibase base58btc. Useless to anyone but the holder of the request's blinding state."
133
+ },
134
+ "ext": {
135
+ "$ref": "#/$defs/Ext"
136
+ }
137
+ }
138
+ },
139
+ "Ext": {
140
+ "title": "Ext",
141
+ "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.",
142
+ "type": "object",
143
+ "minProperties": 1,
144
+ "additionalProperties": true,
145
+ "propertyNames": {
146
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
147
+ }
148
+ }
149
+ }
150
+ };
151
+ /**
152
+ * SPEC.md §7.2 policy for the request variant, from this specification's
153
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
154
+ * per-specification and cannot be derived from the document alone, and
155
+ * item 2 needs the schema this carries.
156
+ */
157
+ export const SPEC = {
158
+ typeUri: TYPE_URI,
159
+ isBearer: false,
160
+ isProofRequired: true,
161
+ isRecipientRequired: true,
162
+ isIssuedAtRequired: true,
163
+ payloadSchema: PAYLOAD_SCHEMA,
164
+ };
165
+ /**
166
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
167
+ * tracks the *issuer* party's requirement because a response swaps the
168
+ * parties (§7.3 item 5).
169
+ */
170
+ export const RESPONSE_SPEC = {
171
+ typeUri: RESPONSE_TYPE_URI,
172
+ isBearer: false,
173
+ isProofRequired: true,
174
+ isRecipientRequired: true,
175
+ isIssuedAtRequired: true,
176
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
177
+ };
178
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/pcs-root/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uEAAgF,CAAC;AAKlH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,8DAA8D;IACrE,OAAO,EAAE,6CAA6C;IACtD,aAAa,EAAE,wQAAwQ;IACvR,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,OAAO;QACP,IAAI;QACJ,SAAS;KACV;IACD,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,4BAA4B;YACvC,aAAa,EAAE,sKAAsK;SACtL;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,QA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,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,402 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/pcs-tokens/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A vetter draws its tick of attestation tokens. The draw is unconditional and on a schedule — a vetter asks whether or not it has vetted anyone — because a fetch that tracked activity would report activity.
8
+ */
9
+ export interface VTCVettingPCSTokensPayload {
10
+ /**
11
+ * The token label to draw under: the community's current monthly label, or an event label it has approved for this vetter.
12
+ */
13
+ label: string;
14
+ /**
15
+ * The vetter's own schedule counter for this label. It makes `once per tick` a rule the community can enforce without learning whether the vetter has been busy.
16
+ */
17
+ tick: number;
18
+ /**
19
+ * One blinded serial per token asked for. More than the community's published `dripPerTick` is refused outright — the cap is the community's, not the asker's restraint.
20
+ *
21
+ * @minItems 1
22
+ * @maxItems 64
23
+ */
24
+ requests: [
25
+ {
26
+ /**
27
+ * A commitment to a serial only the vetter knows.
28
+ */
29
+ commitment: string;
30
+ /**
31
+ * Proof that the commitment opens to a serial the vetter holds, bound to this label, member and tick.
32
+ */
33
+ openingProof: string;
34
+ },
35
+ ...{
36
+ /**
37
+ * A commitment to a serial only the vetter knows.
38
+ */
39
+ commitment: string;
40
+ /**
41
+ * Proof that the commitment opens to a serial the vetter holds, bound to this label, member and tick.
42
+ */
43
+ openingProof: string;
44
+ }[]
45
+ ];
46
+ ext?: Ext;
47
+ }
48
+ /**
49
+ * One blind signature per request, in the order asked.
50
+ */
51
+ export interface VTCVettingPCSTokensResponsePayload {
52
+ /**
53
+ * The label served.
54
+ */
55
+ label: string;
56
+ /**
57
+ * The tick served.
58
+ */
59
+ tick: number;
60
+ /**
61
+ * The blind signatures, positionally matching `requests`.
62
+ *
63
+ * @minItems 1
64
+ * @maxItems 64
65
+ */
66
+ preCredentials: [string, ...string[]];
67
+ ext?: Ext;
68
+ }
69
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
70
+ export type { Ext };
71
+ /** Trust Task type URI. */
72
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1";
73
+ /** Stable alias for this specification's request payload shape. */
74
+ export type Payload = VTCVettingPCSTokensPayload;
75
+ /** Trust Task response type URI (request type URI + "#response"). */
76
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1#response";
77
+ /** Stable alias for this specification's success-response payload shape. */
78
+ export type Response = VTCVettingPCSTokensResponsePayload;
79
+ /**
80
+ * This specification's payload schema, as a value.
81
+ *
82
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
83
+ * rather than only as a `.json` file because TypeScript types are erased
84
+ * at runtime: without a schema a consumer has nothing to validate, and
85
+ * every REQUIRED payload member is optional in practice. Cross-file
86
+ * `$ref`s are already inlined, so it needs no resolver.
87
+ */
88
+ export declare const PAYLOAD_SCHEMA: {
89
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
90
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1";
91
+ readonly title: "VTC — Vetting PCS Tokens — payload";
92
+ readonly description: "A vetter draws its tick of attestation tokens. The draw is unconditional and on a schedule — a vetter asks whether or not it has vetted anyone — because a fetch that tracked activity would report activity.";
93
+ readonly type: "object";
94
+ readonly additionalProperties: false;
95
+ readonly required: readonly ["label", "tick", "requests"];
96
+ readonly properties: {
97
+ readonly label: {
98
+ readonly type: "string";
99
+ readonly minLength: 1;
100
+ readonly maxLength: 128;
101
+ readonly description: "The token label to draw under: the community's current monthly label, or an event label it has approved for this vetter.";
102
+ };
103
+ readonly tick: {
104
+ readonly type: "integer";
105
+ readonly minimum: 0;
106
+ readonly description: "The vetter's own schedule counter for this label. It makes `once per tick` a rule the community can enforce without learning whether the vetter has been busy.";
107
+ };
108
+ readonly requests: {
109
+ readonly type: "array";
110
+ readonly minItems: 1;
111
+ readonly maxItems: 64;
112
+ readonly description: "One blinded serial per token asked for. More than the community's published `dripPerTick` is refused outright — the cap is the community's, not the asker's restraint.";
113
+ readonly items: {
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["commitment", "openingProof"];
117
+ readonly properties: {
118
+ readonly commitment: {
119
+ readonly type: "string";
120
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
121
+ readonly description: "A commitment to a serial only the vetter knows.";
122
+ };
123
+ readonly openingProof: {
124
+ readonly type: "string";
125
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
126
+ readonly description: "Proof that the commitment opens to a serial the vetter holds, bound to this label, member and tick.";
127
+ };
128
+ };
129
+ };
130
+ };
131
+ readonly ext: {
132
+ readonly $ref: "#/$defs/Ext";
133
+ };
134
+ };
135
+ readonly $defs: {
136
+ readonly Response: {
137
+ readonly $anchor: "response";
138
+ readonly title: "VTC Vetting PCS Tokens — response payload";
139
+ readonly type: "object";
140
+ readonly additionalProperties: false;
141
+ readonly required: readonly ["label", "tick", "preCredentials"];
142
+ readonly description: "One blind signature per request, in the order asked.";
143
+ readonly properties: {
144
+ readonly label: {
145
+ readonly type: "string";
146
+ readonly minLength: 1;
147
+ readonly maxLength: 128;
148
+ readonly description: "The label served.";
149
+ };
150
+ readonly tick: {
151
+ readonly type: "integer";
152
+ readonly minimum: 0;
153
+ readonly description: "The tick served.";
154
+ };
155
+ readonly preCredentials: {
156
+ readonly type: "array";
157
+ readonly minItems: 1;
158
+ readonly maxItems: 64;
159
+ readonly description: "The blind signatures, positionally matching `requests`.";
160
+ readonly items: {
161
+ readonly type: "string";
162
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
163
+ };
164
+ };
165
+ readonly ext: {
166
+ readonly $ref: "#/$defs/Ext";
167
+ };
168
+ };
169
+ };
170
+ readonly Ext: {
171
+ readonly title: "Ext";
172
+ 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.";
173
+ readonly type: "object";
174
+ readonly minProperties: 1;
175
+ readonly additionalProperties: true;
176
+ readonly propertyNames: {
177
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
178
+ };
179
+ };
180
+ };
181
+ };
182
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
183
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
184
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
185
+ readonly $ref: "#/$defs/Response";
186
+ readonly $defs: {
187
+ readonly Response: {
188
+ readonly $anchor: "response";
189
+ readonly title: "VTC Vetting PCS Tokens — response payload";
190
+ readonly type: "object";
191
+ readonly additionalProperties: false;
192
+ readonly required: readonly ["label", "tick", "preCredentials"];
193
+ readonly description: "One blind signature per request, in the order asked.";
194
+ readonly properties: {
195
+ readonly label: {
196
+ readonly type: "string";
197
+ readonly minLength: 1;
198
+ readonly maxLength: 128;
199
+ readonly description: "The label served.";
200
+ };
201
+ readonly tick: {
202
+ readonly type: "integer";
203
+ readonly minimum: 0;
204
+ readonly description: "The tick served.";
205
+ };
206
+ readonly preCredentials: {
207
+ readonly type: "array";
208
+ readonly minItems: 1;
209
+ readonly maxItems: 64;
210
+ readonly description: "The blind signatures, positionally matching `requests`.";
211
+ readonly items: {
212
+ readonly type: "string";
213
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
214
+ };
215
+ };
216
+ readonly ext: {
217
+ readonly $ref: "#/$defs/Ext";
218
+ };
219
+ };
220
+ };
221
+ readonly Ext: {
222
+ readonly title: "Ext";
223
+ 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.";
224
+ readonly type: "object";
225
+ readonly minProperties: 1;
226
+ readonly additionalProperties: true;
227
+ readonly propertyNames: {
228
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
229
+ };
230
+ };
231
+ };
232
+ };
233
+ /**
234
+ * SPEC.md §7.2 policy for the request variant, from this specification's
235
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
236
+ * per-specification and cannot be derived from the document alone, and
237
+ * item 2 needs the schema this carries.
238
+ */
239
+ export declare const SPEC: {
240
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1";
241
+ readonly isBearer: false;
242
+ readonly isProofRequired: true;
243
+ readonly isRecipientRequired: true;
244
+ readonly isIssuedAtRequired: true;
245
+ readonly payloadSchema: {
246
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
247
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1";
248
+ readonly title: "VTC — Vetting PCS Tokens — payload";
249
+ readonly description: "A vetter draws its tick of attestation tokens. The draw is unconditional and on a schedule — a vetter asks whether or not it has vetted anyone — because a fetch that tracked activity would report activity.";
250
+ readonly type: "object";
251
+ readonly additionalProperties: false;
252
+ readonly required: readonly ["label", "tick", "requests"];
253
+ readonly properties: {
254
+ readonly label: {
255
+ readonly type: "string";
256
+ readonly minLength: 1;
257
+ readonly maxLength: 128;
258
+ readonly description: "The token label to draw under: the community's current monthly label, or an event label it has approved for this vetter.";
259
+ };
260
+ readonly tick: {
261
+ readonly type: "integer";
262
+ readonly minimum: 0;
263
+ readonly description: "The vetter's own schedule counter for this label. It makes `once per tick` a rule the community can enforce without learning whether the vetter has been busy.";
264
+ };
265
+ readonly requests: {
266
+ readonly type: "array";
267
+ readonly minItems: 1;
268
+ readonly maxItems: 64;
269
+ readonly description: "One blinded serial per token asked for. More than the community's published `dripPerTick` is refused outright — the cap is the community's, not the asker's restraint.";
270
+ readonly items: {
271
+ readonly type: "object";
272
+ readonly additionalProperties: false;
273
+ readonly required: readonly ["commitment", "openingProof"];
274
+ readonly properties: {
275
+ readonly commitment: {
276
+ readonly type: "string";
277
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
278
+ readonly description: "A commitment to a serial only the vetter knows.";
279
+ };
280
+ readonly openingProof: {
281
+ readonly type: "string";
282
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
283
+ readonly description: "Proof that the commitment opens to a serial the vetter holds, bound to this label, member and tick.";
284
+ };
285
+ };
286
+ };
287
+ };
288
+ readonly ext: {
289
+ readonly $ref: "#/$defs/Ext";
290
+ };
291
+ };
292
+ readonly $defs: {
293
+ readonly Response: {
294
+ readonly $anchor: "response";
295
+ readonly title: "VTC Vetting PCS Tokens — response payload";
296
+ readonly type: "object";
297
+ readonly additionalProperties: false;
298
+ readonly required: readonly ["label", "tick", "preCredentials"];
299
+ readonly description: "One blind signature per request, in the order asked.";
300
+ readonly properties: {
301
+ readonly label: {
302
+ readonly type: "string";
303
+ readonly minLength: 1;
304
+ readonly maxLength: 128;
305
+ readonly description: "The label served.";
306
+ };
307
+ readonly tick: {
308
+ readonly type: "integer";
309
+ readonly minimum: 0;
310
+ readonly description: "The tick served.";
311
+ };
312
+ readonly preCredentials: {
313
+ readonly type: "array";
314
+ readonly minItems: 1;
315
+ readonly maxItems: 64;
316
+ readonly description: "The blind signatures, positionally matching `requests`.";
317
+ readonly items: {
318
+ readonly type: "string";
319
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
320
+ };
321
+ };
322
+ readonly ext: {
323
+ readonly $ref: "#/$defs/Ext";
324
+ };
325
+ };
326
+ };
327
+ readonly Ext: {
328
+ readonly title: "Ext";
329
+ 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.";
330
+ readonly type: "object";
331
+ readonly minProperties: 1;
332
+ readonly additionalProperties: true;
333
+ readonly propertyNames: {
334
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
335
+ };
336
+ };
337
+ };
338
+ };
339
+ };
340
+ /**
341
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
342
+ * tracks the *issuer* party's requirement because a response swaps the
343
+ * parties (§7.3 item 5).
344
+ */
345
+ export declare const RESPONSE_SPEC: {
346
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-tokens/0.1#response";
347
+ readonly isBearer: false;
348
+ readonly isProofRequired: true;
349
+ readonly isRecipientRequired: true;
350
+ readonly isIssuedAtRequired: true;
351
+ readonly payloadSchema: {
352
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
353
+ readonly $ref: "#/$defs/Response";
354
+ readonly $defs: {
355
+ readonly Response: {
356
+ readonly $anchor: "response";
357
+ readonly title: "VTC Vetting PCS Tokens — response payload";
358
+ readonly type: "object";
359
+ readonly additionalProperties: false;
360
+ readonly required: readonly ["label", "tick", "preCredentials"];
361
+ readonly description: "One blind signature per request, in the order asked.";
362
+ readonly properties: {
363
+ readonly label: {
364
+ readonly type: "string";
365
+ readonly minLength: 1;
366
+ readonly maxLength: 128;
367
+ readonly description: "The label served.";
368
+ };
369
+ readonly tick: {
370
+ readonly type: "integer";
371
+ readonly minimum: 0;
372
+ readonly description: "The tick served.";
373
+ };
374
+ readonly preCredentials: {
375
+ readonly type: "array";
376
+ readonly minItems: 1;
377
+ readonly maxItems: 64;
378
+ readonly description: "The blind signatures, positionally matching `requests`.";
379
+ readonly items: {
380
+ readonly type: "string";
381
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
382
+ };
383
+ };
384
+ readonly ext: {
385
+ readonly $ref: "#/$defs/Ext";
386
+ };
387
+ };
388
+ };
389
+ readonly Ext: {
390
+ readonly title: "Ext";
391
+ 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.";
392
+ readonly type: "object";
393
+ readonly minProperties: 1;
394
+ readonly additionalProperties: true;
395
+ readonly propertyNames: {
396
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
397
+ };
398
+ };
399
+ };
400
+ };
401
+ };
402
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/vetting/vetters/pcs-tokens/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,QAAQ,EAAE;QACR;YACE;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YACnB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;SACtB;QACD,GAAG;YACD;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YACnB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;SACtB,EAAE;KACJ,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,gEAAyE,CAAC;AAElG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAEjD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,yEAAkF,CAAC;AAEpH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,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