@openvtc/trust-tasks 0.16.4 → 0.16.5

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.
@@ -0,0 +1,630 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/credentials/list/0.1/payload.schema.json
4
+ */
5
+ import type { CredentialId, Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Derived at read time. `revoked` takes precedence over `expired`: a credential revoked before its window closed is revoked, and reporting it as merely expired would hide that somebody acted.
8
+ */
9
+ export type IssuedCredentialStatus = "active" | "expired" | "revoked";
10
+ /**
11
+ * Enumerate the credentials an agent has issued, as metadata. Every filter is optional and those present are AND-combined.
12
+ */
13
+ export interface VTACredentialsList {
14
+ /**
15
+ * Only credentials issued to this DID.
16
+ */
17
+ holder?: string;
18
+ /**
19
+ * Only credentials carrying this type tag beyond `VerifiableCredential`.
20
+ */
21
+ credentialType?: string;
22
+ /**
23
+ * Only credentials in this state. Derived by the agent at read time, never stored.
24
+ */
25
+ status?: "active" | "expired" | "revoked";
26
+ /**
27
+ * Maximum records to return. The agent MAY return fewer and caps this value.
28
+ */
29
+ pageSize?: number;
30
+ /**
31
+ * Continue a previous page. Opaque — consumers must not construct or parse one.
32
+ */
33
+ cursor?: string;
34
+ /**
35
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
36
+ */
37
+ ext?: Ext;
38
+ }
39
+ export interface VTACredentialsListResponsePayload {
40
+ /**
41
+ * One summary per matching credential. Empty when nothing matched — a successful answer, not an error.
42
+ */
43
+ credentials: IssuedCredentialSummary[];
44
+ /**
45
+ * The agent stopped early. A consumer must not read a truncated page as a complete account of what was issued.
46
+ */
47
+ truncated: boolean;
48
+ /**
49
+ * Pass to the next request to continue. Absent when the page is the last.
50
+ */
51
+ cursor?: string;
52
+ /**
53
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
54
+ */
55
+ ext?: Ext;
56
+ }
57
+ /**
58
+ * A body-free projection of an issuance record. Carries no claim content by construction — see the specification's rationale for why a list does not return credentials.
59
+ */
60
+ export interface IssuedCredentialSummary {
61
+ /**
62
+ * The id `vta/credentials/revoke` is keyed on.
63
+ */
64
+ credentialId: CredentialId;
65
+ /**
66
+ * Who the credential was issued to.
67
+ */
68
+ holder: string;
69
+ /**
70
+ * The type tag beyond `VerifiableCredential`, when the credential carries one.
71
+ */
72
+ credentialType?: string;
73
+ issuedAt: string;
74
+ expiresAt: string;
75
+ status: IssuedCredentialStatus;
76
+ /**
77
+ * Present iff `status` is `revoked`.
78
+ */
79
+ revokedAt?: string;
80
+ /**
81
+ * Free text recorded at revocation. Disclosed to every caller entitled to this list — see Security & Privacy.
82
+ */
83
+ revocationReason?: string;
84
+ }
85
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
86
+ export type { CredentialId, Ext };
87
+ /** Trust Task type URI. */
88
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/credentials/list/0.1";
89
+ /** Stable alias for this specification's request payload shape. */
90
+ export type Payload = VTACredentialsList;
91
+ /** Trust Task response type URI (request type URI + "#response"). */
92
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/credentials/list/0.1#response";
93
+ /** Stable alias for this specification's success-response payload shape. */
94
+ export type Response = VTACredentialsListResponsePayload;
95
+ /**
96
+ * This specification's payload schema, as a value.
97
+ *
98
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
99
+ * rather than only as a `.json` file because TypeScript types are erased
100
+ * at runtime: without a schema a consumer has nothing to validate, and
101
+ * every REQUIRED payload member is optional in practice. Cross-file
102
+ * `$ref`s are already inlined, so it needs no resolver.
103
+ */
104
+ export declare const PAYLOAD_SCHEMA: {
105
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
106
+ readonly $id: "https://trusttasks.org/spec/vta/credentials/list/0.1";
107
+ readonly title: "VTA Credentials — List";
108
+ readonly description: "Enumerate the credentials an agent has issued, as metadata. Every filter is optional and those present are AND-combined.";
109
+ readonly type: "object";
110
+ readonly additionalProperties: false;
111
+ readonly properties: {
112
+ readonly holder: {
113
+ readonly $ref: "#/$defs/Did";
114
+ readonly description: "Only credentials issued to this DID.";
115
+ };
116
+ readonly credentialType: {
117
+ readonly type: "string";
118
+ readonly minLength: 1;
119
+ readonly maxLength: 256;
120
+ readonly description: "Only credentials carrying this type tag beyond `VerifiableCredential`.";
121
+ };
122
+ readonly status: {
123
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
124
+ readonly description: "Only credentials in this state. Derived by the agent at read time, never stored.";
125
+ };
126
+ readonly pageSize: {
127
+ readonly type: "integer";
128
+ readonly minimum: 1;
129
+ readonly maximum: 1000;
130
+ readonly description: "Maximum records to return. The agent MAY return fewer and caps this value.";
131
+ };
132
+ readonly cursor: {
133
+ readonly type: "string";
134
+ readonly minLength: 1;
135
+ readonly maxLength: 4096;
136
+ readonly description: "Continue a previous page. Opaque — consumers must not construct or parse one.";
137
+ };
138
+ readonly ext: {
139
+ readonly $ref: "#/$defs/Ext";
140
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
141
+ };
142
+ };
143
+ readonly $defs: {
144
+ readonly Response: {
145
+ readonly $anchor: "response";
146
+ readonly title: "VTA Credentials List — response payload";
147
+ readonly type: "object";
148
+ readonly additionalProperties: false;
149
+ readonly required: readonly ["credentials", "truncated"];
150
+ readonly properties: {
151
+ readonly credentials: {
152
+ readonly type: "array";
153
+ readonly items: {
154
+ readonly $ref: "#/$defs/IssuedCredentialSummary";
155
+ };
156
+ readonly description: "One summary per matching credential. Empty when nothing matched — a successful answer, not an error.";
157
+ };
158
+ readonly truncated: {
159
+ readonly type: "boolean";
160
+ readonly description: "The agent stopped early. A consumer must not read a truncated page as a complete account of what was issued.";
161
+ };
162
+ readonly cursor: {
163
+ readonly type: "string";
164
+ readonly minLength: 1;
165
+ readonly maxLength: 4096;
166
+ readonly description: "Pass to the next request to continue. Absent when the page is the last.";
167
+ };
168
+ readonly ext: {
169
+ readonly $ref: "#/$defs/Ext";
170
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
171
+ };
172
+ };
173
+ };
174
+ readonly IssuedCredentialSummary: {
175
+ readonly title: "IssuedCredentialSummary";
176
+ readonly description: "A body-free projection of an issuance record. Carries no claim content by construction — see the specification's rationale for why a list does not return credentials.";
177
+ readonly type: "object";
178
+ readonly additionalProperties: false;
179
+ readonly required: readonly ["credentialId", "holder", "issuedAt", "expiresAt", "status"];
180
+ readonly properties: {
181
+ readonly credentialId: {
182
+ readonly $ref: "#/$defs/CredentialId";
183
+ readonly description: "The id `vta/credentials/revoke` is keyed on.";
184
+ };
185
+ readonly holder: {
186
+ readonly $ref: "#/$defs/Did";
187
+ readonly description: "Who the credential was issued to.";
188
+ };
189
+ readonly credentialType: {
190
+ readonly type: "string";
191
+ readonly minLength: 1;
192
+ readonly maxLength: 256;
193
+ readonly description: "The type tag beyond `VerifiableCredential`, when the credential carries one.";
194
+ };
195
+ readonly issuedAt: {
196
+ readonly type: "string";
197
+ readonly format: "date-time";
198
+ };
199
+ readonly expiresAt: {
200
+ readonly type: "string";
201
+ readonly format: "date-time";
202
+ };
203
+ readonly status: {
204
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
205
+ };
206
+ readonly revokedAt: {
207
+ readonly type: "string";
208
+ readonly format: "date-time";
209
+ readonly description: "Present iff `status` is `revoked`.";
210
+ };
211
+ readonly revocationReason: {
212
+ readonly type: "string";
213
+ readonly maxLength: 1024;
214
+ readonly description: "Free text recorded at revocation. Disclosed to every caller entitled to this list — see Security & Privacy.";
215
+ };
216
+ };
217
+ };
218
+ readonly IssuedCredentialStatus: {
219
+ readonly type: "string";
220
+ readonly enum: readonly ["active", "expired", "revoked"];
221
+ readonly description: "Derived at read time. `revoked` takes precedence over `expired`: a credential revoked before its window closed is revoked, and reporting it as merely expired would hide that somebody acted.";
222
+ };
223
+ readonly Did: {
224
+ readonly type: "string";
225
+ readonly pattern: "^did:[a-z0-9]+:.+$";
226
+ readonly maxLength: 2048;
227
+ };
228
+ readonly CredentialId: {
229
+ readonly $anchor: "credentialId";
230
+ readonly title: "CredentialId";
231
+ readonly description: "Stable identifier for an issued credential — the handle for revocation and audit. Opaque to the holder: it MUST be echoed verbatim when revoking and MUST NOT be parsed.";
232
+ readonly type: "string";
233
+ readonly minLength: 1;
234
+ };
235
+ readonly Ext: {
236
+ readonly title: "Ext";
237
+ 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.";
238
+ readonly type: "object";
239
+ readonly minProperties: 1;
240
+ readonly additionalProperties: true;
241
+ readonly propertyNames: {
242
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
243
+ };
244
+ };
245
+ };
246
+ };
247
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
248
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
249
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
250
+ readonly $ref: "#/$defs/Response";
251
+ readonly $defs: {
252
+ readonly Response: {
253
+ readonly $anchor: "response";
254
+ readonly title: "VTA Credentials List — response payload";
255
+ readonly type: "object";
256
+ readonly additionalProperties: false;
257
+ readonly required: readonly ["credentials", "truncated"];
258
+ readonly properties: {
259
+ readonly credentials: {
260
+ readonly type: "array";
261
+ readonly items: {
262
+ readonly $ref: "#/$defs/IssuedCredentialSummary";
263
+ };
264
+ readonly description: "One summary per matching credential. Empty when nothing matched — a successful answer, not an error.";
265
+ };
266
+ readonly truncated: {
267
+ readonly type: "boolean";
268
+ readonly description: "The agent stopped early. A consumer must not read a truncated page as a complete account of what was issued.";
269
+ };
270
+ readonly cursor: {
271
+ readonly type: "string";
272
+ readonly minLength: 1;
273
+ readonly maxLength: 4096;
274
+ readonly description: "Pass to the next request to continue. Absent when the page is the last.";
275
+ };
276
+ readonly ext: {
277
+ readonly $ref: "#/$defs/Ext";
278
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
279
+ };
280
+ };
281
+ };
282
+ readonly IssuedCredentialSummary: {
283
+ readonly title: "IssuedCredentialSummary";
284
+ readonly description: "A body-free projection of an issuance record. Carries no claim content by construction — see the specification's rationale for why a list does not return credentials.";
285
+ readonly type: "object";
286
+ readonly additionalProperties: false;
287
+ readonly required: readonly ["credentialId", "holder", "issuedAt", "expiresAt", "status"];
288
+ readonly properties: {
289
+ readonly credentialId: {
290
+ readonly $ref: "#/$defs/CredentialId";
291
+ readonly description: "The id `vta/credentials/revoke` is keyed on.";
292
+ };
293
+ readonly holder: {
294
+ readonly $ref: "#/$defs/Did";
295
+ readonly description: "Who the credential was issued to.";
296
+ };
297
+ readonly credentialType: {
298
+ readonly type: "string";
299
+ readonly minLength: 1;
300
+ readonly maxLength: 256;
301
+ readonly description: "The type tag beyond `VerifiableCredential`, when the credential carries one.";
302
+ };
303
+ readonly issuedAt: {
304
+ readonly type: "string";
305
+ readonly format: "date-time";
306
+ };
307
+ readonly expiresAt: {
308
+ readonly type: "string";
309
+ readonly format: "date-time";
310
+ };
311
+ readonly status: {
312
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
313
+ };
314
+ readonly revokedAt: {
315
+ readonly type: "string";
316
+ readonly format: "date-time";
317
+ readonly description: "Present iff `status` is `revoked`.";
318
+ };
319
+ readonly revocationReason: {
320
+ readonly type: "string";
321
+ readonly maxLength: 1024;
322
+ readonly description: "Free text recorded at revocation. Disclosed to every caller entitled to this list — see Security & Privacy.";
323
+ };
324
+ };
325
+ };
326
+ readonly IssuedCredentialStatus: {
327
+ readonly type: "string";
328
+ readonly enum: readonly ["active", "expired", "revoked"];
329
+ readonly description: "Derived at read time. `revoked` takes precedence over `expired`: a credential revoked before its window closed is revoked, and reporting it as merely expired would hide that somebody acted.";
330
+ };
331
+ readonly Did: {
332
+ readonly type: "string";
333
+ readonly pattern: "^did:[a-z0-9]+:.+$";
334
+ readonly maxLength: 2048;
335
+ };
336
+ readonly CredentialId: {
337
+ readonly $anchor: "credentialId";
338
+ readonly title: "CredentialId";
339
+ readonly description: "Stable identifier for an issued credential — the handle for revocation and audit. Opaque to the holder: it MUST be echoed verbatim when revoking and MUST NOT be parsed.";
340
+ readonly type: "string";
341
+ readonly minLength: 1;
342
+ };
343
+ readonly Ext: {
344
+ readonly title: "Ext";
345
+ 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.";
346
+ readonly type: "object";
347
+ readonly minProperties: 1;
348
+ readonly additionalProperties: true;
349
+ readonly propertyNames: {
350
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
351
+ };
352
+ };
353
+ };
354
+ };
355
+ /**
356
+ * SPEC.md §7.2 policy for the request variant, from this specification's
357
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
358
+ * per-specification and cannot be derived from the document alone, and
359
+ * item 2 needs the schema this carries.
360
+ */
361
+ export declare const SPEC: {
362
+ readonly typeUri: "https://trusttasks.org/spec/vta/credentials/list/0.1";
363
+ readonly isBearer: false;
364
+ readonly isProofRequired: false;
365
+ readonly isRecipientRequired: true;
366
+ readonly isIssuedAtRequired: false;
367
+ readonly payloadSchema: {
368
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
369
+ readonly $id: "https://trusttasks.org/spec/vta/credentials/list/0.1";
370
+ readonly title: "VTA Credentials — List";
371
+ readonly description: "Enumerate the credentials an agent has issued, as metadata. Every filter is optional and those present are AND-combined.";
372
+ readonly type: "object";
373
+ readonly additionalProperties: false;
374
+ readonly properties: {
375
+ readonly holder: {
376
+ readonly $ref: "#/$defs/Did";
377
+ readonly description: "Only credentials issued to this DID.";
378
+ };
379
+ readonly credentialType: {
380
+ readonly type: "string";
381
+ readonly minLength: 1;
382
+ readonly maxLength: 256;
383
+ readonly description: "Only credentials carrying this type tag beyond `VerifiableCredential`.";
384
+ };
385
+ readonly status: {
386
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
387
+ readonly description: "Only credentials in this state. Derived by the agent at read time, never stored.";
388
+ };
389
+ readonly pageSize: {
390
+ readonly type: "integer";
391
+ readonly minimum: 1;
392
+ readonly maximum: 1000;
393
+ readonly description: "Maximum records to return. The agent MAY return fewer and caps this value.";
394
+ };
395
+ readonly cursor: {
396
+ readonly type: "string";
397
+ readonly minLength: 1;
398
+ readonly maxLength: 4096;
399
+ readonly description: "Continue a previous page. Opaque — consumers must not construct or parse one.";
400
+ };
401
+ readonly ext: {
402
+ readonly $ref: "#/$defs/Ext";
403
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
404
+ };
405
+ };
406
+ readonly $defs: {
407
+ readonly Response: {
408
+ readonly $anchor: "response";
409
+ readonly title: "VTA Credentials List — response payload";
410
+ readonly type: "object";
411
+ readonly additionalProperties: false;
412
+ readonly required: readonly ["credentials", "truncated"];
413
+ readonly properties: {
414
+ readonly credentials: {
415
+ readonly type: "array";
416
+ readonly items: {
417
+ readonly $ref: "#/$defs/IssuedCredentialSummary";
418
+ };
419
+ readonly description: "One summary per matching credential. Empty when nothing matched — a successful answer, not an error.";
420
+ };
421
+ readonly truncated: {
422
+ readonly type: "boolean";
423
+ readonly description: "The agent stopped early. A consumer must not read a truncated page as a complete account of what was issued.";
424
+ };
425
+ readonly cursor: {
426
+ readonly type: "string";
427
+ readonly minLength: 1;
428
+ readonly maxLength: 4096;
429
+ readonly description: "Pass to the next request to continue. Absent when the page is the last.";
430
+ };
431
+ readonly ext: {
432
+ readonly $ref: "#/$defs/Ext";
433
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
434
+ };
435
+ };
436
+ };
437
+ readonly IssuedCredentialSummary: {
438
+ readonly title: "IssuedCredentialSummary";
439
+ readonly description: "A body-free projection of an issuance record. Carries no claim content by construction — see the specification's rationale for why a list does not return credentials.";
440
+ readonly type: "object";
441
+ readonly additionalProperties: false;
442
+ readonly required: readonly ["credentialId", "holder", "issuedAt", "expiresAt", "status"];
443
+ readonly properties: {
444
+ readonly credentialId: {
445
+ readonly $ref: "#/$defs/CredentialId";
446
+ readonly description: "The id `vta/credentials/revoke` is keyed on.";
447
+ };
448
+ readonly holder: {
449
+ readonly $ref: "#/$defs/Did";
450
+ readonly description: "Who the credential was issued to.";
451
+ };
452
+ readonly credentialType: {
453
+ readonly type: "string";
454
+ readonly minLength: 1;
455
+ readonly maxLength: 256;
456
+ readonly description: "The type tag beyond `VerifiableCredential`, when the credential carries one.";
457
+ };
458
+ readonly issuedAt: {
459
+ readonly type: "string";
460
+ readonly format: "date-time";
461
+ };
462
+ readonly expiresAt: {
463
+ readonly type: "string";
464
+ readonly format: "date-time";
465
+ };
466
+ readonly status: {
467
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
468
+ };
469
+ readonly revokedAt: {
470
+ readonly type: "string";
471
+ readonly format: "date-time";
472
+ readonly description: "Present iff `status` is `revoked`.";
473
+ };
474
+ readonly revocationReason: {
475
+ readonly type: "string";
476
+ readonly maxLength: 1024;
477
+ readonly description: "Free text recorded at revocation. Disclosed to every caller entitled to this list — see Security & Privacy.";
478
+ };
479
+ };
480
+ };
481
+ readonly IssuedCredentialStatus: {
482
+ readonly type: "string";
483
+ readonly enum: readonly ["active", "expired", "revoked"];
484
+ readonly description: "Derived at read time. `revoked` takes precedence over `expired`: a credential revoked before its window closed is revoked, and reporting it as merely expired would hide that somebody acted.";
485
+ };
486
+ readonly Did: {
487
+ readonly type: "string";
488
+ readonly pattern: "^did:[a-z0-9]+:.+$";
489
+ readonly maxLength: 2048;
490
+ };
491
+ readonly CredentialId: {
492
+ readonly $anchor: "credentialId";
493
+ readonly title: "CredentialId";
494
+ readonly description: "Stable identifier for an issued credential — the handle for revocation and audit. Opaque to the holder: it MUST be echoed verbatim when revoking and MUST NOT be parsed.";
495
+ readonly type: "string";
496
+ readonly minLength: 1;
497
+ };
498
+ readonly Ext: {
499
+ readonly title: "Ext";
500
+ 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.";
501
+ readonly type: "object";
502
+ readonly minProperties: 1;
503
+ readonly additionalProperties: true;
504
+ readonly propertyNames: {
505
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
506
+ };
507
+ };
508
+ };
509
+ };
510
+ };
511
+ /**
512
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
513
+ * tracks the *issuer* party's requirement because a response swaps the
514
+ * parties (§7.3 item 5).
515
+ */
516
+ export declare const RESPONSE_SPEC: {
517
+ readonly typeUri: "https://trusttasks.org/spec/vta/credentials/list/0.1#response";
518
+ readonly isBearer: false;
519
+ readonly isProofRequired: false;
520
+ readonly isRecipientRequired: true;
521
+ readonly isIssuedAtRequired: false;
522
+ readonly payloadSchema: {
523
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
524
+ readonly $ref: "#/$defs/Response";
525
+ readonly $defs: {
526
+ readonly Response: {
527
+ readonly $anchor: "response";
528
+ readonly title: "VTA Credentials List — response payload";
529
+ readonly type: "object";
530
+ readonly additionalProperties: false;
531
+ readonly required: readonly ["credentials", "truncated"];
532
+ readonly properties: {
533
+ readonly credentials: {
534
+ readonly type: "array";
535
+ readonly items: {
536
+ readonly $ref: "#/$defs/IssuedCredentialSummary";
537
+ };
538
+ readonly description: "One summary per matching credential. Empty when nothing matched — a successful answer, not an error.";
539
+ };
540
+ readonly truncated: {
541
+ readonly type: "boolean";
542
+ readonly description: "The agent stopped early. A consumer must not read a truncated page as a complete account of what was issued.";
543
+ };
544
+ readonly cursor: {
545
+ readonly type: "string";
546
+ readonly minLength: 1;
547
+ readonly maxLength: 4096;
548
+ readonly description: "Pass to the next request to continue. Absent when the page is the last.";
549
+ };
550
+ readonly ext: {
551
+ readonly $ref: "#/$defs/Ext";
552
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
553
+ };
554
+ };
555
+ };
556
+ readonly IssuedCredentialSummary: {
557
+ readonly title: "IssuedCredentialSummary";
558
+ readonly description: "A body-free projection of an issuance record. Carries no claim content by construction — see the specification's rationale for why a list does not return credentials.";
559
+ readonly type: "object";
560
+ readonly additionalProperties: false;
561
+ readonly required: readonly ["credentialId", "holder", "issuedAt", "expiresAt", "status"];
562
+ readonly properties: {
563
+ readonly credentialId: {
564
+ readonly $ref: "#/$defs/CredentialId";
565
+ readonly description: "The id `vta/credentials/revoke` is keyed on.";
566
+ };
567
+ readonly holder: {
568
+ readonly $ref: "#/$defs/Did";
569
+ readonly description: "Who the credential was issued to.";
570
+ };
571
+ readonly credentialType: {
572
+ readonly type: "string";
573
+ readonly minLength: 1;
574
+ readonly maxLength: 256;
575
+ readonly description: "The type tag beyond `VerifiableCredential`, when the credential carries one.";
576
+ };
577
+ readonly issuedAt: {
578
+ readonly type: "string";
579
+ readonly format: "date-time";
580
+ };
581
+ readonly expiresAt: {
582
+ readonly type: "string";
583
+ readonly format: "date-time";
584
+ };
585
+ readonly status: {
586
+ readonly $ref: "#/$defs/IssuedCredentialStatus";
587
+ };
588
+ readonly revokedAt: {
589
+ readonly type: "string";
590
+ readonly format: "date-time";
591
+ readonly description: "Present iff `status` is `revoked`.";
592
+ };
593
+ readonly revocationReason: {
594
+ readonly type: "string";
595
+ readonly maxLength: 1024;
596
+ readonly description: "Free text recorded at revocation. Disclosed to every caller entitled to this list — see Security & Privacy.";
597
+ };
598
+ };
599
+ };
600
+ readonly IssuedCredentialStatus: {
601
+ readonly type: "string";
602
+ readonly enum: readonly ["active", "expired", "revoked"];
603
+ readonly description: "Derived at read time. `revoked` takes precedence over `expired`: a credential revoked before its window closed is revoked, and reporting it as merely expired would hide that somebody acted.";
604
+ };
605
+ readonly Did: {
606
+ readonly type: "string";
607
+ readonly pattern: "^did:[a-z0-9]+:.+$";
608
+ readonly maxLength: 2048;
609
+ };
610
+ readonly CredentialId: {
611
+ readonly $anchor: "credentialId";
612
+ readonly title: "CredentialId";
613
+ readonly description: "Stable identifier for an issued credential — the handle for revocation and audit. Opaque to the holder: it MUST be echoed verbatim when revoking and MUST NOT be parsed.";
614
+ readonly type: "string";
615
+ readonly minLength: 1;
616
+ };
617
+ readonly Ext: {
618
+ readonly title: "Ext";
619
+ 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.";
620
+ readonly type: "object";
621
+ readonly minProperties: 1;
622
+ readonly additionalProperties: true;
623
+ readonly propertyNames: {
624
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
625
+ };
626
+ };
627
+ };
628
+ };
629
+ };
630
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/credentials/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG3E;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACvC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,kHAAkH;AAClH,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC;AAElC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAEzC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}