@openvtc/trust-tasks 0.26.11 → 0.26.13

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 (74) hide show
  1. package/CHANGELOG.md +303 -0
  2. package/dist/_shared/components.d.ts +18 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +12 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +12 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/keys/act/0.3/payload.d.ts +546 -0
  9. package/dist/rooms/keys/act/0.3/payload.d.ts.map +1 -0
  10. package/dist/rooms/keys/act/0.3/payload.js +305 -0
  11. package/dist/rooms/keys/act/0.3/payload.js.map +1 -0
  12. package/dist/rooms/owner/group/add/0.2/payload.d.ts +417 -0
  13. package/dist/rooms/owner/group/add/0.2/payload.d.ts.map +1 -0
  14. package/dist/rooms/owner/group/add/0.2/payload.js +218 -0
  15. package/dist/rooms/owner/group/add/0.2/payload.js.map +1 -0
  16. package/dist/vta/_shared/0.6/witness-party.d.ts +16 -0
  17. package/dist/vta/_shared/0.6/witness-party.d.ts.map +1 -0
  18. package/dist/vta/_shared/0.6/witness-party.js +6 -0
  19. package/dist/vta/_shared/0.6/witness-party.js.map +1 -0
  20. package/dist/vta/witness/accept/0.2/payload.d.ts +499 -0
  21. package/dist/vta/witness/accept/0.2/payload.d.ts.map +1 -0
  22. package/dist/vta/witness/accept/0.2/payload.js +278 -0
  23. package/dist/vta/witness/accept/0.2/payload.js.map +1 -0
  24. package/dist/vta/witness/list/0.1/payload.d.ts +673 -0
  25. package/dist/vta/witness/list/0.1/payload.d.ts.map +1 -0
  26. package/dist/vta/witness/list/0.1/payload.js +351 -0
  27. package/dist/vta/witness/list/0.1/payload.js.map +1 -0
  28. package/dist/vta/witness/open/0.2/payload.d.ts +500 -0
  29. package/dist/vta/witness/open/0.2/payload.d.ts.map +1 -0
  30. package/dist/vta/witness/open/0.2/payload.js +259 -0
  31. package/dist/vta/witness/open/0.2/payload.js.map +1 -0
  32. package/dist/vta/witness/present/0.2/payload.d.ts +303 -0
  33. package/dist/vta/witness/present/0.2/payload.d.ts.map +1 -0
  34. package/dist/vta/witness/present/0.2/payload.js +170 -0
  35. package/dist/vta/witness/present/0.2/payload.js.map +1 -0
  36. package/dist/vtc/members/personhood/assert/0.2/payload.d.ts +536 -0
  37. package/dist/vtc/members/personhood/assert/0.2/payload.d.ts.map +1 -0
  38. package/dist/vtc/members/personhood/assert/0.2/payload.js +228 -0
  39. package/dist/vtc/members/personhood/assert/0.2/payload.js.map +1 -0
  40. package/dist/vtc/members/registry-consent/0.1/payload.d.ts +311 -0
  41. package/dist/vtc/members/registry-consent/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/members/registry-consent/0.1/payload.js +183 -0
  43. package/dist/vtc/members/registry-consent/0.1/payload.js.map +1 -0
  44. package/dist/vtc/members/update/0.1/payload.d.ts +3 -3
  45. package/dist/vtc/members/update/0.1/payload.js +1 -1
  46. package/dist/vtc/members/update/0.1/payload.js.map +1 -1
  47. package/dist/witness/_shared/0.1/outcome-evidence.d.ts +16 -0
  48. package/dist/witness/_shared/0.1/outcome-evidence.d.ts.map +1 -0
  49. package/dist/witness/_shared/0.1/outcome-evidence.js +6 -0
  50. package/dist/witness/_shared/0.1/outcome-evidence.js.map +1 -0
  51. package/dist/witness/session/0.2/payload.d.ts +274 -0
  52. package/dist/witness/session/0.2/payload.d.ts.map +1 -0
  53. package/dist/witness/session/0.2/payload.js +152 -0
  54. package/dist/witness/session/0.2/payload.js.map +1 -0
  55. package/dist/witness/session/submit/0.2/payload.d.ts +295 -0
  56. package/dist/witness/session/submit/0.2/payload.d.ts.map +1 -0
  57. package/dist/witness/session/submit/0.2/payload.js +166 -0
  58. package/dist/witness/session/submit/0.2/payload.js.map +1 -0
  59. package/package.json +1 -1
  60. package/src/_shared/components.ts +17 -0
  61. package/src/index.ts +12 -0
  62. package/src/rooms/keys/act/0.3/payload.ts +380 -0
  63. package/src/rooms/owner/group/add/0.2/payload.ts +288 -0
  64. package/src/vta/_shared/0.6/witness-party.ts +17 -0
  65. package/src/vta/witness/accept/0.2/payload.ts +330 -0
  66. package/src/vta/witness/list/0.1/payload.ts +441 -0
  67. package/src/vta/witness/open/0.2/payload.ts +336 -0
  68. package/src/vta/witness/present/0.2/payload.ts +210 -0
  69. package/src/vtc/members/personhood/assert/0.2/payload.ts +421 -0
  70. package/src/vtc/members/registry-consent/0.1/payload.ts +231 -0
  71. package/src/vtc/members/update/0.1/payload.ts +2 -2
  72. package/src/witness/_shared/0.1/outcome-evidence.ts +17 -0
  73. package/src/witness/session/0.2/payload.ts +197 -0
  74. package/src/witness/session/submit/0.2/payload.ts +212 -0
@@ -0,0 +1,536 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/members/personhood/assert/0.2/payload.schema.json
4
+ */
5
+ import type { EvidenceDocument, Ext, OutcomeEvidence } from "../../../../../_shared/components.js";
6
+ export interface VTCMembersPersonhoodAssertPayload {
7
+ /**
8
+ * The member asserting personhood; MUST equal the presentation's holder.
9
+ */
10
+ did: string;
11
+ /**
12
+ * A W3C Verifiable Presentation (opaque here). Its holder MUST match did, its proof.challenge MUST be the paired challengeId, and it MUST carry at least one credential satisfying the community's active personhood policy. A Verifiable Witness Credential in it counts only with paired outcomeEvidence.
13
+ */
14
+ presentation: {};
15
+ /**
16
+ * OPTIONAL. The outcome evidence of the witnessing sessions that the Verifiable Witness Credentials in presentation cite: one entry per VWC the member wants counted, each the witness/session document the VWC's taskContext names and the witness/session/submit #response that delivered it, exactly as stored, never re-serialised. A VWC with no paired entry counts for nothing; an entry pairing with no VWC in presentation is ignored.
17
+ *
18
+ * @minItems 1
19
+ * @maxItems 16
20
+ */
21
+ outcomeEvidence?: [OutcomeEvidence] | [OutcomeEvidence, OutcomeEvidence] | [OutcomeEvidence, OutcomeEvidence, OutcomeEvidence] | [OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence] | [OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence] | [OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence, OutcomeEvidence] | [
22
+ OutcomeEvidence,
23
+ OutcomeEvidence,
24
+ OutcomeEvidence,
25
+ OutcomeEvidence,
26
+ OutcomeEvidence,
27
+ OutcomeEvidence,
28
+ OutcomeEvidence
29
+ ] | [
30
+ OutcomeEvidence,
31
+ OutcomeEvidence,
32
+ OutcomeEvidence,
33
+ OutcomeEvidence,
34
+ OutcomeEvidence,
35
+ OutcomeEvidence,
36
+ OutcomeEvidence,
37
+ OutcomeEvidence
38
+ ] | [
39
+ OutcomeEvidence,
40
+ OutcomeEvidence,
41
+ OutcomeEvidence,
42
+ OutcomeEvidence,
43
+ OutcomeEvidence,
44
+ OutcomeEvidence,
45
+ OutcomeEvidence,
46
+ OutcomeEvidence,
47
+ OutcomeEvidence
48
+ ] | [
49
+ OutcomeEvidence,
50
+ OutcomeEvidence,
51
+ OutcomeEvidence,
52
+ OutcomeEvidence,
53
+ OutcomeEvidence,
54
+ OutcomeEvidence,
55
+ OutcomeEvidence,
56
+ OutcomeEvidence,
57
+ OutcomeEvidence,
58
+ OutcomeEvidence
59
+ ] | [
60
+ OutcomeEvidence,
61
+ OutcomeEvidence,
62
+ OutcomeEvidence,
63
+ OutcomeEvidence,
64
+ OutcomeEvidence,
65
+ OutcomeEvidence,
66
+ OutcomeEvidence,
67
+ OutcomeEvidence,
68
+ OutcomeEvidence,
69
+ OutcomeEvidence,
70
+ OutcomeEvidence
71
+ ] | [
72
+ OutcomeEvidence,
73
+ OutcomeEvidence,
74
+ OutcomeEvidence,
75
+ OutcomeEvidence,
76
+ OutcomeEvidence,
77
+ OutcomeEvidence,
78
+ OutcomeEvidence,
79
+ OutcomeEvidence,
80
+ OutcomeEvidence,
81
+ OutcomeEvidence,
82
+ OutcomeEvidence,
83
+ OutcomeEvidence
84
+ ] | [
85
+ OutcomeEvidence,
86
+ OutcomeEvidence,
87
+ OutcomeEvidence,
88
+ OutcomeEvidence,
89
+ OutcomeEvidence,
90
+ OutcomeEvidence,
91
+ OutcomeEvidence,
92
+ OutcomeEvidence,
93
+ OutcomeEvidence,
94
+ OutcomeEvidence,
95
+ OutcomeEvidence,
96
+ OutcomeEvidence,
97
+ OutcomeEvidence
98
+ ] | [
99
+ OutcomeEvidence,
100
+ OutcomeEvidence,
101
+ OutcomeEvidence,
102
+ OutcomeEvidence,
103
+ OutcomeEvidence,
104
+ OutcomeEvidence,
105
+ OutcomeEvidence,
106
+ OutcomeEvidence,
107
+ OutcomeEvidence,
108
+ OutcomeEvidence,
109
+ OutcomeEvidence,
110
+ OutcomeEvidence,
111
+ OutcomeEvidence,
112
+ OutcomeEvidence
113
+ ] | [
114
+ OutcomeEvidence,
115
+ OutcomeEvidence,
116
+ OutcomeEvidence,
117
+ OutcomeEvidence,
118
+ OutcomeEvidence,
119
+ OutcomeEvidence,
120
+ OutcomeEvidence,
121
+ OutcomeEvidence,
122
+ OutcomeEvidence,
123
+ OutcomeEvidence,
124
+ OutcomeEvidence,
125
+ OutcomeEvidence,
126
+ OutcomeEvidence,
127
+ OutcomeEvidence,
128
+ OutcomeEvidence
129
+ ] | [
130
+ OutcomeEvidence,
131
+ OutcomeEvidence,
132
+ OutcomeEvidence,
133
+ OutcomeEvidence,
134
+ OutcomeEvidence,
135
+ OutcomeEvidence,
136
+ OutcomeEvidence,
137
+ OutcomeEvidence,
138
+ OutcomeEvidence,
139
+ OutcomeEvidence,
140
+ OutcomeEvidence,
141
+ OutcomeEvidence,
142
+ OutcomeEvidence,
143
+ OutcomeEvidence,
144
+ OutcomeEvidence,
145
+ OutcomeEvidence
146
+ ];
147
+ ext?: Ext;
148
+ }
149
+ export interface VTCMembersPersonhoodAssertResponsePayload {
150
+ did: string;
151
+ /**
152
+ * Always true on success — the flag flipped or stayed asserted.
153
+ */
154
+ personhood: true;
155
+ /**
156
+ * Re-issued membership credential carrying the asserted personhood (opaque here).
157
+ */
158
+ vmc: {};
159
+ /**
160
+ * Re-issued role credential (opaque here): a Verifiable Authority Credential (`type` including `AuthorityCredential`) issued by the community with `issuerScope` `public`, whose `credentialSubject.authority` is `{ scope: <community DID>, actions: ["role:<name>"] }` — the shape vtc/vetting/vetters/grant/0.1 issues.
161
+ */
162
+ roleVac: {};
163
+ ext?: Ext;
164
+ }
165
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
166
+ export type { EvidenceDocument, Ext, OutcomeEvidence };
167
+ /** Trust Task type URI. */
168
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2";
169
+ /** Stable alias for this specification's request payload shape. */
170
+ export type Payload = VTCMembersPersonhoodAssertPayload;
171
+ /** Trust Task response type URI (request type URI + "#response"). */
172
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2#response";
173
+ /** Stable alias for this specification's success-response payload shape. */
174
+ export type Response = VTCMembersPersonhoodAssertResponsePayload;
175
+ /**
176
+ * This specification's payload schema, as a value.
177
+ *
178
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
179
+ * rather than only as a `.json` file because TypeScript types are erased
180
+ * at runtime: without a schema a consumer has nothing to validate, and
181
+ * every REQUIRED payload member is optional in practice. Cross-file
182
+ * `$ref`s are already inlined, so it needs no resolver.
183
+ */
184
+ export declare const PAYLOAD_SCHEMA: {
185
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
186
+ readonly $id: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2";
187
+ readonly title: "VTC Members Personhood-Assert — payload";
188
+ readonly type: "object";
189
+ readonly additionalProperties: false;
190
+ readonly required: readonly ["did", "presentation"];
191
+ readonly properties: {
192
+ readonly did: {
193
+ readonly type: "string";
194
+ readonly minLength: 1;
195
+ readonly description: "The member asserting personhood; MUST equal the presentation's holder.";
196
+ };
197
+ readonly presentation: {
198
+ readonly type: "object";
199
+ readonly description: "A W3C Verifiable Presentation (opaque here). Its holder MUST match did, its proof.challenge MUST be the paired challengeId, and it MUST carry at least one credential satisfying the community's active personhood policy. A Verifiable Witness Credential in it counts only with paired outcomeEvidence.";
200
+ };
201
+ readonly outcomeEvidence: {
202
+ readonly type: "array";
203
+ readonly minItems: 1;
204
+ readonly maxItems: 16;
205
+ readonly items: {
206
+ readonly $ref: "#/$defs/OutcomeEvidence";
207
+ };
208
+ readonly description: "OPTIONAL. The outcome evidence of the witnessing sessions that the Verifiable Witness Credentials in presentation cite: one entry per VWC the member wants counted, each the witness/session document the VWC's taskContext names and the witness/session/submit #response that delivered it, exactly as stored, never re-serialised. A VWC with no paired entry counts for nothing; an entry pairing with no VWC in presentation is ignored.";
209
+ };
210
+ readonly ext: {
211
+ readonly $ref: "#/$defs/Ext";
212
+ };
213
+ };
214
+ readonly $defs: {
215
+ readonly Response: {
216
+ readonly $anchor: "response";
217
+ readonly title: "VTC Members Personhood-Assert — response payload";
218
+ readonly type: "object";
219
+ readonly additionalProperties: false;
220
+ readonly required: readonly ["did", "personhood", "vmc", "roleVac"];
221
+ readonly properties: {
222
+ readonly did: {
223
+ readonly type: "string";
224
+ readonly minLength: 1;
225
+ };
226
+ readonly personhood: {
227
+ readonly type: "boolean";
228
+ readonly const: true;
229
+ readonly description: "Always true on success — the flag flipped or stayed asserted.";
230
+ };
231
+ readonly vmc: {
232
+ readonly type: "object";
233
+ readonly description: "Re-issued membership credential carrying the asserted personhood (opaque here).";
234
+ };
235
+ readonly roleVac: {
236
+ readonly type: "object";
237
+ readonly description: "Re-issued role credential (opaque here): a Verifiable Authority Credential (`type` including `AuthorityCredential`) issued by the community with `issuerScope` `public`, whose `credentialSubject.authority` is `{ scope: <community DID>, actions: [\"role:<name>\"] }` — the shape vtc/vetting/vetters/grant/0.1 issues.";
238
+ };
239
+ readonly ext: {
240
+ readonly $ref: "#/$defs/Ext";
241
+ };
242
+ };
243
+ };
244
+ readonly Ext: {
245
+ readonly title: "Ext";
246
+ 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.";
247
+ readonly type: "object";
248
+ readonly minProperties: 1;
249
+ readonly additionalProperties: true;
250
+ readonly propertyNames: {
251
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
252
+ };
253
+ };
254
+ readonly OutcomeEvidence: {
255
+ readonly title: "OutcomeEvidence";
256
+ readonly description: "One witnessing session's outcome evidence. `session` is the initiating witness/session document; `outcome` is the terminal witness/session/submit #response that the initiating document's own specification declares as its outcome evidence, under the witness's proof, delivering the VWC and its vwcDigestMultibase. A consumer pairs them with a presented VWC by SPEC §4.9.4's four checks and the witnessing checks of witness/session/submit (This response is the outcome evidence).";
257
+ readonly type: "object";
258
+ readonly additionalProperties: false;
259
+ readonly required: readonly ["session", "outcome"];
260
+ readonly properties: {
261
+ readonly session: {
262
+ readonly $ref: "#/$defs/EvidenceDocument";
263
+ readonly description: "The witness/session document that opened the session. The VWC's taskContext is its id and its taskDigestMultibase is computed over it (SPEC §4.9.3).";
264
+ };
265
+ readonly outcome: {
266
+ readonly $ref: "#/$defs/EvidenceDocument";
267
+ readonly description: "The witness/session/submit #response that closed the session, under the witness's proof. It carries the VWC and its vwcDigestMultibase.";
268
+ };
269
+ };
270
+ };
271
+ readonly EvidenceDocument: {
272
+ readonly title: "EvidenceDocument";
273
+ readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried exactly as it was sent or received, never re-serialised: a task digest and a proof are taken over its members, and a re-serialised copy reproduces neither reliably. Typed as an open object so every member survives; the checks that give it meaning belong to the task that reads it.";
274
+ readonly type: "object";
275
+ readonly minProperties: 1;
276
+ };
277
+ };
278
+ };
279
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
280
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
281
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
282
+ readonly $ref: "#/$defs/Response";
283
+ readonly $defs: {
284
+ readonly Response: {
285
+ readonly $anchor: "response";
286
+ readonly title: "VTC Members Personhood-Assert — response payload";
287
+ readonly type: "object";
288
+ readonly additionalProperties: false;
289
+ readonly required: readonly ["did", "personhood", "vmc", "roleVac"];
290
+ readonly properties: {
291
+ readonly did: {
292
+ readonly type: "string";
293
+ readonly minLength: 1;
294
+ };
295
+ readonly personhood: {
296
+ readonly type: "boolean";
297
+ readonly const: true;
298
+ readonly description: "Always true on success — the flag flipped or stayed asserted.";
299
+ };
300
+ readonly vmc: {
301
+ readonly type: "object";
302
+ readonly description: "Re-issued membership credential carrying the asserted personhood (opaque here).";
303
+ };
304
+ readonly roleVac: {
305
+ readonly type: "object";
306
+ readonly description: "Re-issued role credential (opaque here): a Verifiable Authority Credential (`type` including `AuthorityCredential`) issued by the community with `issuerScope` `public`, whose `credentialSubject.authority` is `{ scope: <community DID>, actions: [\"role:<name>\"] }` — the shape vtc/vetting/vetters/grant/0.1 issues.";
307
+ };
308
+ readonly ext: {
309
+ readonly $ref: "#/$defs/Ext";
310
+ };
311
+ };
312
+ };
313
+ readonly Ext: {
314
+ readonly title: "Ext";
315
+ 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.";
316
+ readonly type: "object";
317
+ readonly minProperties: 1;
318
+ readonly additionalProperties: true;
319
+ readonly propertyNames: {
320
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
321
+ };
322
+ };
323
+ readonly OutcomeEvidence: {
324
+ readonly title: "OutcomeEvidence";
325
+ readonly description: "One witnessing session's outcome evidence. `session` is the initiating witness/session document; `outcome` is the terminal witness/session/submit #response that the initiating document's own specification declares as its outcome evidence, under the witness's proof, delivering the VWC and its vwcDigestMultibase. A consumer pairs them with a presented VWC by SPEC §4.9.4's four checks and the witnessing checks of witness/session/submit (This response is the outcome evidence).";
326
+ readonly type: "object";
327
+ readonly additionalProperties: false;
328
+ readonly required: readonly ["session", "outcome"];
329
+ readonly properties: {
330
+ readonly session: {
331
+ readonly $ref: "#/$defs/EvidenceDocument";
332
+ readonly description: "The witness/session document that opened the session. The VWC's taskContext is its id and its taskDigestMultibase is computed over it (SPEC §4.9.3).";
333
+ };
334
+ readonly outcome: {
335
+ readonly $ref: "#/$defs/EvidenceDocument";
336
+ readonly description: "The witness/session/submit #response that closed the session, under the witness's proof. It carries the VWC and its vwcDigestMultibase.";
337
+ };
338
+ };
339
+ };
340
+ readonly EvidenceDocument: {
341
+ readonly title: "EvidenceDocument";
342
+ readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried exactly as it was sent or received, never re-serialised: a task digest and a proof are taken over its members, and a re-serialised copy reproduces neither reliably. Typed as an open object so every member survives; the checks that give it meaning belong to the task that reads it.";
343
+ readonly type: "object";
344
+ readonly minProperties: 1;
345
+ };
346
+ };
347
+ };
348
+ /**
349
+ * SPEC.md §7.2 policy for the request variant, from this specification's
350
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
351
+ * per-specification and cannot be derived from the document alone, and
352
+ * item 2 needs the schema this carries.
353
+ */
354
+ export declare const SPEC: {
355
+ readonly typeUri: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2";
356
+ readonly isBearer: false;
357
+ readonly isProofRequired: true;
358
+ readonly isRecipientRequired: true;
359
+ readonly isIssuedAtRequired: true;
360
+ readonly payloadSchema: {
361
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
362
+ readonly $id: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2";
363
+ readonly title: "VTC Members Personhood-Assert — payload";
364
+ readonly type: "object";
365
+ readonly additionalProperties: false;
366
+ readonly required: readonly ["did", "presentation"];
367
+ readonly properties: {
368
+ readonly did: {
369
+ readonly type: "string";
370
+ readonly minLength: 1;
371
+ readonly description: "The member asserting personhood; MUST equal the presentation's holder.";
372
+ };
373
+ readonly presentation: {
374
+ readonly type: "object";
375
+ readonly description: "A W3C Verifiable Presentation (opaque here). Its holder MUST match did, its proof.challenge MUST be the paired challengeId, and it MUST carry at least one credential satisfying the community's active personhood policy. A Verifiable Witness Credential in it counts only with paired outcomeEvidence.";
376
+ };
377
+ readonly outcomeEvidence: {
378
+ readonly type: "array";
379
+ readonly minItems: 1;
380
+ readonly maxItems: 16;
381
+ readonly items: {
382
+ readonly $ref: "#/$defs/OutcomeEvidence";
383
+ };
384
+ readonly description: "OPTIONAL. The outcome evidence of the witnessing sessions that the Verifiable Witness Credentials in presentation cite: one entry per VWC the member wants counted, each the witness/session document the VWC's taskContext names and the witness/session/submit #response that delivered it, exactly as stored, never re-serialised. A VWC with no paired entry counts for nothing; an entry pairing with no VWC in presentation is ignored.";
385
+ };
386
+ readonly ext: {
387
+ readonly $ref: "#/$defs/Ext";
388
+ };
389
+ };
390
+ readonly $defs: {
391
+ readonly Response: {
392
+ readonly $anchor: "response";
393
+ readonly title: "VTC Members Personhood-Assert — response payload";
394
+ readonly type: "object";
395
+ readonly additionalProperties: false;
396
+ readonly required: readonly ["did", "personhood", "vmc", "roleVac"];
397
+ readonly properties: {
398
+ readonly did: {
399
+ readonly type: "string";
400
+ readonly minLength: 1;
401
+ };
402
+ readonly personhood: {
403
+ readonly type: "boolean";
404
+ readonly const: true;
405
+ readonly description: "Always true on success — the flag flipped or stayed asserted.";
406
+ };
407
+ readonly vmc: {
408
+ readonly type: "object";
409
+ readonly description: "Re-issued membership credential carrying the asserted personhood (opaque here).";
410
+ };
411
+ readonly roleVac: {
412
+ readonly type: "object";
413
+ readonly description: "Re-issued role credential (opaque here): a Verifiable Authority Credential (`type` including `AuthorityCredential`) issued by the community with `issuerScope` `public`, whose `credentialSubject.authority` is `{ scope: <community DID>, actions: [\"role:<name>\"] }` — the shape vtc/vetting/vetters/grant/0.1 issues.";
414
+ };
415
+ readonly ext: {
416
+ readonly $ref: "#/$defs/Ext";
417
+ };
418
+ };
419
+ };
420
+ readonly Ext: {
421
+ readonly title: "Ext";
422
+ 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.";
423
+ readonly type: "object";
424
+ readonly minProperties: 1;
425
+ readonly additionalProperties: true;
426
+ readonly propertyNames: {
427
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
428
+ };
429
+ };
430
+ readonly OutcomeEvidence: {
431
+ readonly title: "OutcomeEvidence";
432
+ readonly description: "One witnessing session's outcome evidence. `session` is the initiating witness/session document; `outcome` is the terminal witness/session/submit #response that the initiating document's own specification declares as its outcome evidence, under the witness's proof, delivering the VWC and its vwcDigestMultibase. A consumer pairs them with a presented VWC by SPEC §4.9.4's four checks and the witnessing checks of witness/session/submit (This response is the outcome evidence).";
433
+ readonly type: "object";
434
+ readonly additionalProperties: false;
435
+ readonly required: readonly ["session", "outcome"];
436
+ readonly properties: {
437
+ readonly session: {
438
+ readonly $ref: "#/$defs/EvidenceDocument";
439
+ readonly description: "The witness/session document that opened the session. The VWC's taskContext is its id and its taskDigestMultibase is computed over it (SPEC §4.9.3).";
440
+ };
441
+ readonly outcome: {
442
+ readonly $ref: "#/$defs/EvidenceDocument";
443
+ readonly description: "The witness/session/submit #response that closed the session, under the witness's proof. It carries the VWC and its vwcDigestMultibase.";
444
+ };
445
+ };
446
+ };
447
+ readonly EvidenceDocument: {
448
+ readonly title: "EvidenceDocument";
449
+ readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried exactly as it was sent or received, never re-serialised: a task digest and a proof are taken over its members, and a re-serialised copy reproduces neither reliably. Typed as an open object so every member survives; the checks that give it meaning belong to the task that reads it.";
450
+ readonly type: "object";
451
+ readonly minProperties: 1;
452
+ };
453
+ };
454
+ };
455
+ };
456
+ /**
457
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
458
+ * tracks the *issuer* party's requirement because a response swaps the
459
+ * parties (§7.3 item 5).
460
+ */
461
+ export declare const RESPONSE_SPEC: {
462
+ readonly typeUri: "https://trusttasks.org/spec/vtc/members/personhood/assert/0.2#response";
463
+ readonly isBearer: false;
464
+ readonly isProofRequired: true;
465
+ readonly isRecipientRequired: true;
466
+ readonly isIssuedAtRequired: true;
467
+ readonly payloadSchema: {
468
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
469
+ readonly $ref: "#/$defs/Response";
470
+ readonly $defs: {
471
+ readonly Response: {
472
+ readonly $anchor: "response";
473
+ readonly title: "VTC Members Personhood-Assert — response payload";
474
+ readonly type: "object";
475
+ readonly additionalProperties: false;
476
+ readonly required: readonly ["did", "personhood", "vmc", "roleVac"];
477
+ readonly properties: {
478
+ readonly did: {
479
+ readonly type: "string";
480
+ readonly minLength: 1;
481
+ };
482
+ readonly personhood: {
483
+ readonly type: "boolean";
484
+ readonly const: true;
485
+ readonly description: "Always true on success — the flag flipped or stayed asserted.";
486
+ };
487
+ readonly vmc: {
488
+ readonly type: "object";
489
+ readonly description: "Re-issued membership credential carrying the asserted personhood (opaque here).";
490
+ };
491
+ readonly roleVac: {
492
+ readonly type: "object";
493
+ readonly description: "Re-issued role credential (opaque here): a Verifiable Authority Credential (`type` including `AuthorityCredential`) issued by the community with `issuerScope` `public`, whose `credentialSubject.authority` is `{ scope: <community DID>, actions: [\"role:<name>\"] }` — the shape vtc/vetting/vetters/grant/0.1 issues.";
494
+ };
495
+ readonly ext: {
496
+ readonly $ref: "#/$defs/Ext";
497
+ };
498
+ };
499
+ };
500
+ readonly Ext: {
501
+ readonly title: "Ext";
502
+ 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.";
503
+ readonly type: "object";
504
+ readonly minProperties: 1;
505
+ readonly additionalProperties: true;
506
+ readonly propertyNames: {
507
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
508
+ };
509
+ };
510
+ readonly OutcomeEvidence: {
511
+ readonly title: "OutcomeEvidence";
512
+ readonly description: "One witnessing session's outcome evidence. `session` is the initiating witness/session document; `outcome` is the terminal witness/session/submit #response that the initiating document's own specification declares as its outcome evidence, under the witness's proof, delivering the VWC and its vwcDigestMultibase. A consumer pairs them with a presented VWC by SPEC §4.9.4's four checks and the witnessing checks of witness/session/submit (This response is the outcome evidence).";
513
+ readonly type: "object";
514
+ readonly additionalProperties: false;
515
+ readonly required: readonly ["session", "outcome"];
516
+ readonly properties: {
517
+ readonly session: {
518
+ readonly $ref: "#/$defs/EvidenceDocument";
519
+ readonly description: "The witness/session document that opened the session. The VWC's taskContext is its id and its taskDigestMultibase is computed over it (SPEC §4.9.3).";
520
+ };
521
+ readonly outcome: {
522
+ readonly $ref: "#/$defs/EvidenceDocument";
523
+ readonly description: "The witness/session/submit #response that closed the session, under the witness's proof. It carries the VWC and its vwcDigestMultibase.";
524
+ };
525
+ };
526
+ };
527
+ readonly EvidenceDocument: {
528
+ readonly title: "EvidenceDocument";
529
+ readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried exactly as it was sent or received, never re-serialised: a task digest and a proof are taken over its members, and a re-serialised copy reproduces neither reliably. Typed as an open object so every member survives; the checks that give it meaning belong to the task that reads it.";
530
+ readonly type: "object";
531
+ readonly minProperties: 1;
532
+ };
533
+ };
534
+ };
535
+ };
536
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/members/personhood/assert/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGnG,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,YAAY,EAAE,EAAE,CAAC;IACjB;;;;;OAKG;IACH,eAAe,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