@openvtc/trust-tasks 0.28.17 → 0.28.18

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 (37) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/_shared/components.d.ts +26 -1
  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/vta/collection/_shared/0.1/collection.d.ts +2 -2
  9. package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -1
  10. package/dist/vta/collection/list/0.1/payload.d.ts +4 -4
  11. package/dist/vta/collection/list/0.1/payload.js +2 -2
  12. package/dist/vta/collection/list/0.1/payload.js.map +1 -1
  13. package/dist/vta/collection/settings/set/0.1/payload.d.ts +469 -0
  14. package/dist/vta/collection/settings/set/0.1/payload.d.ts.map +1 -0
  15. package/dist/vta/collection/settings/set/0.1/payload.js +275 -0
  16. package/dist/vta/collection/settings/set/0.1/payload.js.map +1 -0
  17. package/dist/vta/collection/settings/show/0.1/payload.d.ts +437 -0
  18. package/dist/vta/collection/settings/show/0.1/payload.d.ts.map +1 -0
  19. package/dist/vta/collection/settings/show/0.1/payload.js +260 -0
  20. package/dist/vta/collection/settings/show/0.1/payload.js.map +1 -0
  21. package/dist/vtn/registry/check/0.1/payload.d.ts +528 -0
  22. package/dist/vtn/registry/check/0.1/payload.d.ts.map +1 -0
  23. package/dist/vtn/registry/check/0.1/payload.js +282 -0
  24. package/dist/vtn/registry/check/0.1/payload.js.map +1 -0
  25. package/dist/vtn/registry/status/0.1/payload.d.ts +736 -0
  26. package/dist/vtn/registry/status/0.1/payload.d.ts.map +1 -0
  27. package/dist/vtn/registry/status/0.1/payload.js +421 -0
  28. package/dist/vtn/registry/status/0.1/payload.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/_shared/components.ts +26 -1
  31. package/src/index.ts +12 -0
  32. package/src/vta/collection/_shared/0.1/collection.ts +2 -2
  33. package/src/vta/collection/list/0.1/payload.ts +2 -2
  34. package/src/vta/collection/settings/set/0.1/payload.ts +319 -0
  35. package/src/vta/collection/settings/show/0.1/payload.ts +296 -0
  36. package/src/vtn/registry/check/0.1/payload.ts +365 -0
  37. package/src/vtn/registry/status/0.1/payload.ts +502 -0
@@ -0,0 +1,736 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/registry/status/0.1/payload.schema.json
4
+ */
5
+ import type { Did_VtnV0_1 as Did, Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * An administrator's request for how the network's membership stands in its trust registry. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTNRegistryStatusPayload {
10
+ ext?: Ext;
11
+ }
12
+ export interface VTNRegistryStatusResponsePayload {
13
+ registry: Did;
14
+ authority: Did;
15
+ resource: string;
16
+ actions: {
17
+ member: string;
18
+ listed: string;
19
+ };
20
+ publishes: "members" | "membersAndListed";
21
+ writer: string;
22
+ connected: boolean;
23
+ lastSync?: Sync;
24
+ reachable: boolean;
25
+ records?: Row[];
26
+ reason?: string;
27
+ ext?: Ext;
28
+ }
29
+ export interface Sync {
30
+ /**
31
+ * When the reconcile ran.
32
+ */
33
+ reconciledAt?: string;
34
+ /**
35
+ * Records the entries project.
36
+ */
37
+ expected: number;
38
+ /**
39
+ * Records written, by party.
40
+ */
41
+ put: string[];
42
+ /**
43
+ * Records deleted, as `party action`.
44
+ */
45
+ deleted: string[];
46
+ /**
47
+ * Writes that failed, as `party: why`.
48
+ */
49
+ failed: string[];
50
+ /**
51
+ * Why nothing could be written at all, when so.
52
+ */
53
+ blocked?: string;
54
+ }
55
+ export interface Row {
56
+ did: Did;
57
+ /**
58
+ * The action the entries project, if any.
59
+ */
60
+ projected?: string;
61
+ /**
62
+ * The action the registry holds, if any.
63
+ */
64
+ held?: string;
65
+ result: "ok" | "missing" | "stale" | "wrong";
66
+ }
67
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
68
+ export type { Did, Ext };
69
+ /** Trust Task type URI. */
70
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtn/registry/status/0.1";
71
+ /**
72
+ * The earlier version of this specification that this one declares it
73
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
74
+ * `null`. Only the direct declaration — follow the chain with
75
+ * `extendsChain` / `readForSpec`.
76
+ */
77
+ export declare const EXTENDS: string | null;
78
+ /**
79
+ * Why this version is deprecated, or `null` while it is current. A
80
+ * superseded or retired version is still supported, and is withdrawn from
81
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
82
+ * Versions").
83
+ */
84
+ export declare const DEPRECATION: string | null;
85
+ /** Stable alias for this specification's request payload shape. */
86
+ export type Payload = VTNRegistryStatusPayload;
87
+ /** Trust Task response type URI (request type URI + "#response"). */
88
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtn/registry/status/0.1#response";
89
+ /** Stable alias for this specification's success-response payload shape. */
90
+ export type Response = VTNRegistryStatusResponsePayload;
91
+ /**
92
+ * This specification's payload schema, as a value.
93
+ *
94
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
95
+ * rather than only as a `.json` file because TypeScript types are erased
96
+ * at runtime: without a schema a consumer has nothing to validate, and
97
+ * every REQUIRED payload member is optional in practice. Cross-file
98
+ * `$ref`s are already inlined, so it needs no resolver.
99
+ */
100
+ export declare const PAYLOAD_SCHEMA: {
101
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
102
+ readonly $id: "https://trusttasks.org/spec/vtn/registry/status/0.1";
103
+ readonly title: "VTN Registry — Status — payload";
104
+ readonly description: "An administrator's request for how the network's membership stands in its trust registry. The outer document members are owned by the framework — SPEC §6.3.";
105
+ readonly type: "object";
106
+ readonly additionalProperties: false;
107
+ readonly properties: {
108
+ readonly ext: {
109
+ readonly $ref: "#/$defs/Ext";
110
+ };
111
+ };
112
+ readonly $defs: {
113
+ readonly Sync: {
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["expected", "put", "deleted", "failed"];
117
+ readonly properties: {
118
+ readonly reconciledAt: {
119
+ readonly type: "string";
120
+ readonly format: "date-time";
121
+ readonly description: "When the reconcile ran.";
122
+ };
123
+ readonly expected: {
124
+ readonly type: "integer";
125
+ readonly minimum: 0;
126
+ readonly description: "Records the entries project.";
127
+ };
128
+ readonly put: {
129
+ readonly type: "array";
130
+ readonly items: {
131
+ readonly type: "string";
132
+ };
133
+ readonly description: "Records written, by party.";
134
+ };
135
+ readonly deleted: {
136
+ readonly type: "array";
137
+ readonly items: {
138
+ readonly type: "string";
139
+ };
140
+ readonly description: "Records deleted, as `party action`.";
141
+ };
142
+ readonly failed: {
143
+ readonly type: "array";
144
+ readonly items: {
145
+ readonly type: "string";
146
+ };
147
+ readonly description: "Writes that failed, as `party: why`.";
148
+ };
149
+ readonly blocked: {
150
+ readonly type: "string";
151
+ readonly description: "Why nothing could be written at all, when so.";
152
+ };
153
+ };
154
+ };
155
+ readonly Row: {
156
+ readonly type: "object";
157
+ readonly additionalProperties: false;
158
+ readonly required: readonly ["did", "result"];
159
+ readonly properties: {
160
+ readonly did: {
161
+ readonly $ref: "#/$defs/Did";
162
+ };
163
+ readonly projected: {
164
+ readonly type: "string";
165
+ readonly description: "The action the entries project, if any.";
166
+ };
167
+ readonly held: {
168
+ readonly type: "string";
169
+ readonly description: "The action the registry holds, if any.";
170
+ };
171
+ readonly result: {
172
+ readonly enum: readonly ["ok", "missing", "stale", "wrong"];
173
+ };
174
+ };
175
+ };
176
+ readonly Response: {
177
+ readonly $anchor: "response";
178
+ readonly title: "VTN Registry — Status — response payload";
179
+ readonly type: "object";
180
+ readonly additionalProperties: false;
181
+ readonly required: readonly ["registry", "authority", "resource", "actions", "publishes", "writer", "connected", "reachable"];
182
+ readonly properties: {
183
+ readonly registry: {
184
+ readonly $ref: "#/$defs/Did";
185
+ };
186
+ readonly authority: {
187
+ readonly $ref: "#/$defs/Did";
188
+ };
189
+ readonly resource: {
190
+ readonly type: "string";
191
+ readonly minLength: 1;
192
+ };
193
+ readonly actions: {
194
+ readonly type: "object";
195
+ readonly additionalProperties: false;
196
+ readonly required: readonly ["member", "listed"];
197
+ readonly properties: {
198
+ readonly member: {
199
+ readonly type: "string";
200
+ readonly minLength: 1;
201
+ };
202
+ readonly listed: {
203
+ readonly type: "string";
204
+ readonly minLength: 1;
205
+ };
206
+ };
207
+ };
208
+ readonly publishes: {
209
+ readonly enum: readonly ["members", "membersAndListed"];
210
+ };
211
+ readonly writer: {
212
+ readonly type: "string";
213
+ readonly maxLength: 1024;
214
+ };
215
+ readonly connected: {
216
+ readonly type: "boolean";
217
+ };
218
+ readonly lastSync: {
219
+ readonly $ref: "#/$defs/Sync";
220
+ };
221
+ readonly reachable: {
222
+ readonly type: "boolean";
223
+ };
224
+ readonly records: {
225
+ readonly type: "array";
226
+ readonly items: {
227
+ readonly $ref: "#/$defs/Row";
228
+ };
229
+ };
230
+ readonly reason: {
231
+ readonly type: "string";
232
+ readonly maxLength: 1024;
233
+ };
234
+ readonly ext: {
235
+ readonly $ref: "#/$defs/Ext";
236
+ };
237
+ };
238
+ };
239
+ readonly Ext: {
240
+ readonly title: "Ext";
241
+ 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.";
242
+ readonly type: "object";
243
+ readonly minProperties: 1;
244
+ readonly additionalProperties: true;
245
+ readonly propertyNames: {
246
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
247
+ };
248
+ };
249
+ readonly Did: {
250
+ readonly type: "string";
251
+ readonly pattern: "^did:[a-z0-9]+:.+$";
252
+ readonly maxLength: 2048;
253
+ readonly description: "A DID.";
254
+ };
255
+ };
256
+ };
257
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
258
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
259
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
260
+ readonly $ref: "#/$defs/Response";
261
+ readonly $defs: {
262
+ readonly Sync: {
263
+ readonly type: "object";
264
+ readonly additionalProperties: false;
265
+ readonly required: readonly ["expected", "put", "deleted", "failed"];
266
+ readonly properties: {
267
+ readonly reconciledAt: {
268
+ readonly type: "string";
269
+ readonly format: "date-time";
270
+ readonly description: "When the reconcile ran.";
271
+ };
272
+ readonly expected: {
273
+ readonly type: "integer";
274
+ readonly minimum: 0;
275
+ readonly description: "Records the entries project.";
276
+ };
277
+ readonly put: {
278
+ readonly type: "array";
279
+ readonly items: {
280
+ readonly type: "string";
281
+ };
282
+ readonly description: "Records written, by party.";
283
+ };
284
+ readonly deleted: {
285
+ readonly type: "array";
286
+ readonly items: {
287
+ readonly type: "string";
288
+ };
289
+ readonly description: "Records deleted, as `party action`.";
290
+ };
291
+ readonly failed: {
292
+ readonly type: "array";
293
+ readonly items: {
294
+ readonly type: "string";
295
+ };
296
+ readonly description: "Writes that failed, as `party: why`.";
297
+ };
298
+ readonly blocked: {
299
+ readonly type: "string";
300
+ readonly description: "Why nothing could be written at all, when so.";
301
+ };
302
+ };
303
+ };
304
+ readonly Row: {
305
+ readonly type: "object";
306
+ readonly additionalProperties: false;
307
+ readonly required: readonly ["did", "result"];
308
+ readonly properties: {
309
+ readonly did: {
310
+ readonly $ref: "#/$defs/Did";
311
+ };
312
+ readonly projected: {
313
+ readonly type: "string";
314
+ readonly description: "The action the entries project, if any.";
315
+ };
316
+ readonly held: {
317
+ readonly type: "string";
318
+ readonly description: "The action the registry holds, if any.";
319
+ };
320
+ readonly result: {
321
+ readonly enum: readonly ["ok", "missing", "stale", "wrong"];
322
+ };
323
+ };
324
+ };
325
+ readonly Response: {
326
+ readonly $anchor: "response";
327
+ readonly title: "VTN Registry — Status — response payload";
328
+ readonly type: "object";
329
+ readonly additionalProperties: false;
330
+ readonly required: readonly ["registry", "authority", "resource", "actions", "publishes", "writer", "connected", "reachable"];
331
+ readonly properties: {
332
+ readonly registry: {
333
+ readonly $ref: "#/$defs/Did";
334
+ };
335
+ readonly authority: {
336
+ readonly $ref: "#/$defs/Did";
337
+ };
338
+ readonly resource: {
339
+ readonly type: "string";
340
+ readonly minLength: 1;
341
+ };
342
+ readonly actions: {
343
+ readonly type: "object";
344
+ readonly additionalProperties: false;
345
+ readonly required: readonly ["member", "listed"];
346
+ readonly properties: {
347
+ readonly member: {
348
+ readonly type: "string";
349
+ readonly minLength: 1;
350
+ };
351
+ readonly listed: {
352
+ readonly type: "string";
353
+ readonly minLength: 1;
354
+ };
355
+ };
356
+ };
357
+ readonly publishes: {
358
+ readonly enum: readonly ["members", "membersAndListed"];
359
+ };
360
+ readonly writer: {
361
+ readonly type: "string";
362
+ readonly maxLength: 1024;
363
+ };
364
+ readonly connected: {
365
+ readonly type: "boolean";
366
+ };
367
+ readonly lastSync: {
368
+ readonly $ref: "#/$defs/Sync";
369
+ };
370
+ readonly reachable: {
371
+ readonly type: "boolean";
372
+ };
373
+ readonly records: {
374
+ readonly type: "array";
375
+ readonly items: {
376
+ readonly $ref: "#/$defs/Row";
377
+ };
378
+ };
379
+ readonly reason: {
380
+ readonly type: "string";
381
+ readonly maxLength: 1024;
382
+ };
383
+ readonly ext: {
384
+ readonly $ref: "#/$defs/Ext";
385
+ };
386
+ };
387
+ };
388
+ readonly Ext: {
389
+ readonly title: "Ext";
390
+ 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.";
391
+ readonly type: "object";
392
+ readonly minProperties: 1;
393
+ readonly additionalProperties: true;
394
+ readonly propertyNames: {
395
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
396
+ };
397
+ };
398
+ readonly Did: {
399
+ readonly type: "string";
400
+ readonly pattern: "^did:[a-z0-9]+:.+$";
401
+ readonly maxLength: 2048;
402
+ readonly description: "A DID.";
403
+ };
404
+ };
405
+ };
406
+ /**
407
+ * SPEC.md §7.2 policy for the request variant, from this specification's
408
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
409
+ * per-specification and cannot be derived from the document alone, and
410
+ * item 2 needs the schema this carries.
411
+ */
412
+ export declare const SPEC: {
413
+ readonly typeUri: "https://trusttasks.org/spec/vtn/registry/status/0.1";
414
+ readonly isBearer: false;
415
+ readonly isProofRequired: true;
416
+ readonly isRecipientRequired: true;
417
+ readonly isIssuedAtRequired: false;
418
+ readonly payloadSchema: {
419
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
420
+ readonly $id: "https://trusttasks.org/spec/vtn/registry/status/0.1";
421
+ readonly title: "VTN Registry — Status — payload";
422
+ readonly description: "An administrator's request for how the network's membership stands in its trust registry. The outer document members are owned by the framework — SPEC §6.3.";
423
+ readonly type: "object";
424
+ readonly additionalProperties: false;
425
+ readonly properties: {
426
+ readonly ext: {
427
+ readonly $ref: "#/$defs/Ext";
428
+ };
429
+ };
430
+ readonly $defs: {
431
+ readonly Sync: {
432
+ readonly type: "object";
433
+ readonly additionalProperties: false;
434
+ readonly required: readonly ["expected", "put", "deleted", "failed"];
435
+ readonly properties: {
436
+ readonly reconciledAt: {
437
+ readonly type: "string";
438
+ readonly format: "date-time";
439
+ readonly description: "When the reconcile ran.";
440
+ };
441
+ readonly expected: {
442
+ readonly type: "integer";
443
+ readonly minimum: 0;
444
+ readonly description: "Records the entries project.";
445
+ };
446
+ readonly put: {
447
+ readonly type: "array";
448
+ readonly items: {
449
+ readonly type: "string";
450
+ };
451
+ readonly description: "Records written, by party.";
452
+ };
453
+ readonly deleted: {
454
+ readonly type: "array";
455
+ readonly items: {
456
+ readonly type: "string";
457
+ };
458
+ readonly description: "Records deleted, as `party action`.";
459
+ };
460
+ readonly failed: {
461
+ readonly type: "array";
462
+ readonly items: {
463
+ readonly type: "string";
464
+ };
465
+ readonly description: "Writes that failed, as `party: why`.";
466
+ };
467
+ readonly blocked: {
468
+ readonly type: "string";
469
+ readonly description: "Why nothing could be written at all, when so.";
470
+ };
471
+ };
472
+ };
473
+ readonly Row: {
474
+ readonly type: "object";
475
+ readonly additionalProperties: false;
476
+ readonly required: readonly ["did", "result"];
477
+ readonly properties: {
478
+ readonly did: {
479
+ readonly $ref: "#/$defs/Did";
480
+ };
481
+ readonly projected: {
482
+ readonly type: "string";
483
+ readonly description: "The action the entries project, if any.";
484
+ };
485
+ readonly held: {
486
+ readonly type: "string";
487
+ readonly description: "The action the registry holds, if any.";
488
+ };
489
+ readonly result: {
490
+ readonly enum: readonly ["ok", "missing", "stale", "wrong"];
491
+ };
492
+ };
493
+ };
494
+ readonly Response: {
495
+ readonly $anchor: "response";
496
+ readonly title: "VTN Registry — Status — response payload";
497
+ readonly type: "object";
498
+ readonly additionalProperties: false;
499
+ readonly required: readonly ["registry", "authority", "resource", "actions", "publishes", "writer", "connected", "reachable"];
500
+ readonly properties: {
501
+ readonly registry: {
502
+ readonly $ref: "#/$defs/Did";
503
+ };
504
+ readonly authority: {
505
+ readonly $ref: "#/$defs/Did";
506
+ };
507
+ readonly resource: {
508
+ readonly type: "string";
509
+ readonly minLength: 1;
510
+ };
511
+ readonly actions: {
512
+ readonly type: "object";
513
+ readonly additionalProperties: false;
514
+ readonly required: readonly ["member", "listed"];
515
+ readonly properties: {
516
+ readonly member: {
517
+ readonly type: "string";
518
+ readonly minLength: 1;
519
+ };
520
+ readonly listed: {
521
+ readonly type: "string";
522
+ readonly minLength: 1;
523
+ };
524
+ };
525
+ };
526
+ readonly publishes: {
527
+ readonly enum: readonly ["members", "membersAndListed"];
528
+ };
529
+ readonly writer: {
530
+ readonly type: "string";
531
+ readonly maxLength: 1024;
532
+ };
533
+ readonly connected: {
534
+ readonly type: "boolean";
535
+ };
536
+ readonly lastSync: {
537
+ readonly $ref: "#/$defs/Sync";
538
+ };
539
+ readonly reachable: {
540
+ readonly type: "boolean";
541
+ };
542
+ readonly records: {
543
+ readonly type: "array";
544
+ readonly items: {
545
+ readonly $ref: "#/$defs/Row";
546
+ };
547
+ };
548
+ readonly reason: {
549
+ readonly type: "string";
550
+ readonly maxLength: 1024;
551
+ };
552
+ readonly ext: {
553
+ readonly $ref: "#/$defs/Ext";
554
+ };
555
+ };
556
+ };
557
+ readonly Ext: {
558
+ readonly title: "Ext";
559
+ 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.";
560
+ readonly type: "object";
561
+ readonly minProperties: 1;
562
+ readonly additionalProperties: true;
563
+ readonly propertyNames: {
564
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
565
+ };
566
+ };
567
+ readonly Did: {
568
+ readonly type: "string";
569
+ readonly pattern: "^did:[a-z0-9]+:.+$";
570
+ readonly maxLength: 2048;
571
+ readonly description: "A DID.";
572
+ };
573
+ };
574
+ };
575
+ };
576
+ /**
577
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
578
+ * tracks the *issuer* party's requirement because a response swaps the
579
+ * parties (§7.3 item 5).
580
+ */
581
+ export declare const RESPONSE_SPEC: {
582
+ readonly typeUri: "https://trusttasks.org/spec/vtn/registry/status/0.1#response";
583
+ readonly isBearer: false;
584
+ readonly isProofRequired: true;
585
+ readonly isRecipientRequired: true;
586
+ readonly isIssuedAtRequired: false;
587
+ readonly payloadSchema: {
588
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
589
+ readonly $ref: "#/$defs/Response";
590
+ readonly $defs: {
591
+ readonly Sync: {
592
+ readonly type: "object";
593
+ readonly additionalProperties: false;
594
+ readonly required: readonly ["expected", "put", "deleted", "failed"];
595
+ readonly properties: {
596
+ readonly reconciledAt: {
597
+ readonly type: "string";
598
+ readonly format: "date-time";
599
+ readonly description: "When the reconcile ran.";
600
+ };
601
+ readonly expected: {
602
+ readonly type: "integer";
603
+ readonly minimum: 0;
604
+ readonly description: "Records the entries project.";
605
+ };
606
+ readonly put: {
607
+ readonly type: "array";
608
+ readonly items: {
609
+ readonly type: "string";
610
+ };
611
+ readonly description: "Records written, by party.";
612
+ };
613
+ readonly deleted: {
614
+ readonly type: "array";
615
+ readonly items: {
616
+ readonly type: "string";
617
+ };
618
+ readonly description: "Records deleted, as `party action`.";
619
+ };
620
+ readonly failed: {
621
+ readonly type: "array";
622
+ readonly items: {
623
+ readonly type: "string";
624
+ };
625
+ readonly description: "Writes that failed, as `party: why`.";
626
+ };
627
+ readonly blocked: {
628
+ readonly type: "string";
629
+ readonly description: "Why nothing could be written at all, when so.";
630
+ };
631
+ };
632
+ };
633
+ readonly Row: {
634
+ readonly type: "object";
635
+ readonly additionalProperties: false;
636
+ readonly required: readonly ["did", "result"];
637
+ readonly properties: {
638
+ readonly did: {
639
+ readonly $ref: "#/$defs/Did";
640
+ };
641
+ readonly projected: {
642
+ readonly type: "string";
643
+ readonly description: "The action the entries project, if any.";
644
+ };
645
+ readonly held: {
646
+ readonly type: "string";
647
+ readonly description: "The action the registry holds, if any.";
648
+ };
649
+ readonly result: {
650
+ readonly enum: readonly ["ok", "missing", "stale", "wrong"];
651
+ };
652
+ };
653
+ };
654
+ readonly Response: {
655
+ readonly $anchor: "response";
656
+ readonly title: "VTN Registry — Status — response payload";
657
+ readonly type: "object";
658
+ readonly additionalProperties: false;
659
+ readonly required: readonly ["registry", "authority", "resource", "actions", "publishes", "writer", "connected", "reachable"];
660
+ readonly properties: {
661
+ readonly registry: {
662
+ readonly $ref: "#/$defs/Did";
663
+ };
664
+ readonly authority: {
665
+ readonly $ref: "#/$defs/Did";
666
+ };
667
+ readonly resource: {
668
+ readonly type: "string";
669
+ readonly minLength: 1;
670
+ };
671
+ readonly actions: {
672
+ readonly type: "object";
673
+ readonly additionalProperties: false;
674
+ readonly required: readonly ["member", "listed"];
675
+ readonly properties: {
676
+ readonly member: {
677
+ readonly type: "string";
678
+ readonly minLength: 1;
679
+ };
680
+ readonly listed: {
681
+ readonly type: "string";
682
+ readonly minLength: 1;
683
+ };
684
+ };
685
+ };
686
+ readonly publishes: {
687
+ readonly enum: readonly ["members", "membersAndListed"];
688
+ };
689
+ readonly writer: {
690
+ readonly type: "string";
691
+ readonly maxLength: 1024;
692
+ };
693
+ readonly connected: {
694
+ readonly type: "boolean";
695
+ };
696
+ readonly lastSync: {
697
+ readonly $ref: "#/$defs/Sync";
698
+ };
699
+ readonly reachable: {
700
+ readonly type: "boolean";
701
+ };
702
+ readonly records: {
703
+ readonly type: "array";
704
+ readonly items: {
705
+ readonly $ref: "#/$defs/Row";
706
+ };
707
+ };
708
+ readonly reason: {
709
+ readonly type: "string";
710
+ readonly maxLength: 1024;
711
+ };
712
+ readonly ext: {
713
+ readonly $ref: "#/$defs/Ext";
714
+ };
715
+ };
716
+ };
717
+ readonly Ext: {
718
+ readonly title: "Ext";
719
+ 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.";
720
+ readonly type: "object";
721
+ readonly minProperties: 1;
722
+ readonly additionalProperties: true;
723
+ readonly propertyNames: {
724
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
725
+ };
726
+ };
727
+ readonly Did: {
728
+ readonly type: "string";
729
+ readonly pattern: "^did:[a-z0-9]+:.+$";
730
+ readonly maxLength: 2048;
731
+ readonly description: "A DID.";
732
+ };
733
+ };
734
+ };
735
+ };
736
+ //# sourceMappingURL=payload.d.ts.map