@real-life/trust-protocol 0.4.0 → 0.5.0

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 (88) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +47 -25
  3. package/dist/adapters/vti-mediator.d.ts +18 -3
  4. package/dist/adapters/vti-mediator.d.ts.map +1 -1
  5. package/dist/adapters/vti-mediator.js +51 -13
  6. package/dist/adapters/vti-mediator.js.map +1 -1
  7. package/dist/codec.d.ts +9 -1
  8. package/dist/codec.d.ts.map +1 -1
  9. package/dist/codec.js +107 -23
  10. package/dist/codec.js.map +1 -1
  11. package/dist/engine.d.ts +15 -3
  12. package/dist/engine.d.ts.map +1 -1
  13. package/dist/engine.js +130 -16
  14. package/dist/engine.js.map +1 -1
  15. package/dist/entropy.d.ts +1 -1
  16. package/dist/entropy.d.ts.map +1 -1
  17. package/dist/entropy.js +1 -1
  18. package/dist/entropy.js.map +1 -1
  19. package/dist/events.d.ts +21 -0
  20. package/dist/events.d.ts.map +1 -1
  21. package/dist/events.js.map +1 -1
  22. package/dist/holder-api.d.ts +29 -1
  23. package/dist/holder-api.d.ts.map +1 -1
  24. package/dist/holder-api.js +12 -2
  25. package/dist/holder-api.js.map +1 -1
  26. package/dist/holder-state-v2.d.ts +858 -0
  27. package/dist/holder-state-v2.d.ts.map +1 -0
  28. package/dist/holder-state-v2.js +2 -0
  29. package/dist/holder-state-v2.js.map +1 -0
  30. package/dist/index.d.ts +2 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +10 -6
  33. package/dist/index.js.map +1 -1
  34. package/dist/internal.d.ts +2 -1
  35. package/dist/internal.d.ts.map +1 -1
  36. package/dist/internal.js +1 -1
  37. package/dist/internal.js.map +1 -1
  38. package/dist/introduction/holder.d.ts.map +1 -1
  39. package/dist/introduction/holder.js +7 -0
  40. package/dist/introduction/holder.js.map +1 -1
  41. package/dist/invariants.d.ts.map +1 -1
  42. package/dist/invariants.js +70 -0
  43. package/dist/invariants.js.map +1 -1
  44. package/dist/membership/holder.d.ts +3 -5
  45. package/dist/membership/holder.d.ts.map +1 -1
  46. package/dist/membership/holder.js +165 -88
  47. package/dist/membership/holder.js.map +1 -1
  48. package/dist/membership.d.ts +31 -0
  49. package/dist/membership.d.ts.map +1 -1
  50. package/dist/membership.js +25 -2
  51. package/dist/membership.js.map +1 -1
  52. package/dist/message/holder.d.ts +49 -0
  53. package/dist/message/holder.d.ts.map +1 -0
  54. package/dist/message/holder.js +290 -0
  55. package/dist/message/holder.js.map +1 -0
  56. package/dist/message.d.ts +43 -0
  57. package/dist/message.d.ts.map +1 -0
  58. package/dist/message.js +51 -0
  59. package/dist/message.js.map +1 -0
  60. package/dist/receive.d.ts +4 -3
  61. package/dist/receive.d.ts.map +1 -1
  62. package/dist/receive.js +23 -4
  63. package/dist/receive.js.map +1 -1
  64. package/dist/results.d.ts +17 -2
  65. package/dist/results.d.ts.map +1 -1
  66. package/dist/results.js.map +1 -1
  67. package/dist/schemas.d.ts.map +1 -1
  68. package/dist/schemas.js +9 -6
  69. package/dist/schemas.js.map +1 -1
  70. package/dist/state.d.ts +66 -5
  71. package/dist/state.d.ts.map +1 -1
  72. package/dist/state.js +2 -1
  73. package/dist/state.js.map +1 -1
  74. package/dist/trust/continuity.d.ts.map +1 -1
  75. package/dist/trust/continuity.js +7 -1
  76. package/dist/trust/continuity.js.map +1 -1
  77. package/dist/trust/entries.d.ts.map +1 -1
  78. package/dist/trust/entries.js +103 -2
  79. package/dist/trust/entries.js.map +1 -1
  80. package/dist/views.d.ts +34 -2
  81. package/dist/views.d.ts.map +1 -1
  82. package/dist/views.js +19 -1
  83. package/dist/views.js.map +1 -1
  84. package/dist/wire.d.ts +47 -6
  85. package/dist/wire.d.ts.map +1 -1
  86. package/dist/wire.js.map +1 -1
  87. package/package.json +6 -2
  88. package/schemas/holder-state-v2.schema.json +4123 -0
@@ -0,0 +1,4123 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://real-life.org/trust-protocol/lib/holder-state-v2.schema.json",
4
+ "title": "HolderState, codec 2",
5
+ "description": "NON-NORMATIVE. The stored state of an @real-life/trust-protocol holder at codec 2 (lib/src/codec.ts): the library's storage format, not a protocol artifact. lib/src/holder-state-v2.ts is generated from it (scripts/build-holder-state-types.mjs). Not expressible here and checked by the codec alone: a record's id equals its key (contacts, relationships, groups, duties, rotations, prompts, acts, roster, invitations, records, introductions, offers, challenges, the inbox), an envelope's rkid equals its recipient's keyAgreement, and a set of strings (joining.surfaced, joining.declined, messages.blocked, messages.ready) is sorted.",
6
+ "type": "object",
7
+ "properties": {
8
+ "codec": {
9
+ "const": 2
10
+ },
11
+ "commitSeq": {
12
+ "$ref": "#/$defs/Dec"
13
+ },
14
+ "lastWhen": {
15
+ "$ref": "#/$defs/Millis"
16
+ },
17
+ "register": {
18
+ "type": "object",
19
+ "properties": {
20
+ "labels": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ },
25
+ "uniqueItems": true
26
+ },
27
+ "pairNonces": {
28
+ "type": "object",
29
+ "additionalProperties": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "carriers": {
34
+ "type": "object",
35
+ "additionalProperties": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "properties": {
40
+ "nonce": {
41
+ "type": "string"
42
+ },
43
+ "generation": {
44
+ "$ref": "#/$defs/Dec"
45
+ }
46
+ },
47
+ "required": [
48
+ "nonce",
49
+ "generation"
50
+ ],
51
+ "additionalProperties": false
52
+ }
53
+ }
54
+ },
55
+ "devices": {
56
+ "type": "object",
57
+ "properties": {
58
+ "names": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string"
62
+ },
63
+ "uniqueItems": true
64
+ },
65
+ "revoked": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ },
70
+ "uniqueItems": true
71
+ }
72
+ },
73
+ "required": [
74
+ "names",
75
+ "revoked"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "community": {
80
+ "anyOf": [
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "genesis": {
85
+ "type": "string"
86
+ },
87
+ "head": {
88
+ "$ref": "#/$defs/Dec"
89
+ }
90
+ },
91
+ "required": [
92
+ "genesis",
93
+ "head"
94
+ ],
95
+ "additionalProperties": false
96
+ },
97
+ {
98
+ "type": "null"
99
+ }
100
+ ]
101
+ },
102
+ "lineage": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object"
106
+ }
107
+ }
108
+ },
109
+ "required": [
110
+ "labels",
111
+ "pairNonces",
112
+ "carriers",
113
+ "devices",
114
+ "community",
115
+ "lineage"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ "addresses": {
120
+ "type": "object",
121
+ "properties": {
122
+ "keys": {
123
+ "type": "object",
124
+ "additionalProperties": {
125
+ "type": "object",
126
+ "properties": {
127
+ "label": {
128
+ "type": "string"
129
+ },
130
+ "lastShown": {
131
+ "$ref": "#/$defs/Millis"
132
+ },
133
+ "retiredAt": {
134
+ "$ref": "#/$defs/Millis"
135
+ }
136
+ },
137
+ "required": [
138
+ "label",
139
+ "lastShown"
140
+ ],
141
+ "additionalProperties": false
142
+ }
143
+ },
144
+ "tombstones": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string"
148
+ },
149
+ "uniqueItems": true
150
+ }
151
+ },
152
+ "required": [
153
+ "keys",
154
+ "tombstones"
155
+ ],
156
+ "additionalProperties": false
157
+ },
158
+ "contacts": {
159
+ "type": "object",
160
+ "additionalProperties": {
161
+ "$ref": "#/$defs/Contact"
162
+ }
163
+ },
164
+ "relationships": {
165
+ "type": "object",
166
+ "additionalProperties": {
167
+ "$ref": "#/$defs/Relationship"
168
+ }
169
+ },
170
+ "entryOrder": {
171
+ "type": "object",
172
+ "properties": {
173
+ "nextPos": {
174
+ "$ref": "#/$defs/Dec"
175
+ },
176
+ "heads": {
177
+ "type": "array",
178
+ "items": {
179
+ "type": "string"
180
+ },
181
+ "uniqueItems": true
182
+ }
183
+ },
184
+ "required": [
185
+ "nextPos",
186
+ "heads"
187
+ ],
188
+ "additionalProperties": false
189
+ },
190
+ "groups": {
191
+ "type": "object",
192
+ "additionalProperties": {
193
+ "$ref": "#/$defs/Group"
194
+ }
195
+ },
196
+ "profile": {
197
+ "type": "object",
198
+ "properties": {
199
+ "body": true,
200
+ "revision": {
201
+ "$ref": "#/$defs/Dec"
202
+ }
203
+ },
204
+ "required": [
205
+ "body",
206
+ "revision"
207
+ ],
208
+ "additionalProperties": false
209
+ },
210
+ "effects": {
211
+ "type": "object",
212
+ "additionalProperties": {
213
+ "type": "object",
214
+ "properties": {
215
+ "ack": {
216
+ "anyOf": [
217
+ {
218
+ "$ref": "#/$defs/StoredAck"
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ]
224
+ },
225
+ "expiresAt": {
226
+ "$ref": "#/$defs/Millis"
227
+ }
228
+ },
229
+ "required": [
230
+ "ack",
231
+ "expiresAt"
232
+ ],
233
+ "additionalProperties": false
234
+ }
235
+ },
236
+ "outbox": {
237
+ "type": "object",
238
+ "additionalProperties": {
239
+ "$ref": "#/$defs/OutboxItem"
240
+ }
241
+ },
242
+ "duties": {
243
+ "type": "object",
244
+ "additionalProperties": {
245
+ "$ref": "#/$defs/Duty"
246
+ }
247
+ },
248
+ "rotations": {
249
+ "type": "object",
250
+ "additionalProperties": {
251
+ "$ref": "#/$defs/Rotation"
252
+ }
253
+ },
254
+ "prompts": {
255
+ "type": "object",
256
+ "additionalProperties": {
257
+ "$ref": "#/$defs/Prompt"
258
+ }
259
+ },
260
+ "acts": {
261
+ "type": "object",
262
+ "additionalProperties": {
263
+ "$ref": "#/$defs/ActRecord"
264
+ }
265
+ },
266
+ "encounter": {
267
+ "type": "object",
268
+ "properties": {
269
+ "challenges": {
270
+ "type": "object",
271
+ "additionalProperties": {
272
+ "type": "object",
273
+ "properties": {
274
+ "value": {
275
+ "type": "string"
276
+ },
277
+ "tCh": {
278
+ "$ref": "#/$defs/Millis"
279
+ },
280
+ "label": {
281
+ "type": "string"
282
+ },
283
+ "card": {
284
+ "type": "object"
285
+ }
286
+ },
287
+ "required": [
288
+ "value",
289
+ "tCh",
290
+ "label",
291
+ "card"
292
+ ],
293
+ "additionalProperties": false
294
+ }
295
+ },
296
+ "records": {
297
+ "type": "object",
298
+ "additionalProperties": {
299
+ "$ref": "#/$defs/EnactmentRecord"
300
+ }
301
+ },
302
+ "introductions": {
303
+ "type": "object",
304
+ "additionalProperties": {
305
+ "$ref": "#/$defs/IntroAct"
306
+ }
307
+ },
308
+ "offers": {
309
+ "type": "object",
310
+ "additionalProperties": {
311
+ "type": "object",
312
+ "properties": {
313
+ "id": {
314
+ "type": "string"
315
+ },
316
+ "mediatorContactId": {
317
+ "type": "string"
318
+ },
319
+ "pin": {
320
+ "type": "string"
321
+ },
322
+ "target": {
323
+ "type": "string"
324
+ },
325
+ "at": {
326
+ "$ref": "#/$defs/Millis"
327
+ },
328
+ "label": {
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "id",
334
+ "mediatorContactId",
335
+ "pin",
336
+ "target",
337
+ "at"
338
+ ],
339
+ "additionalProperties": false
340
+ }
341
+ },
342
+ "designators": {
343
+ "type": "object",
344
+ "additionalProperties": {
345
+ "type": "string"
346
+ }
347
+ },
348
+ "declarations": {
349
+ "type": "object",
350
+ "additionalProperties": {
351
+ "type": "object",
352
+ "properties": {
353
+ "issuer": {
354
+ "type": "string"
355
+ },
356
+ "role": {
357
+ "type": "string"
358
+ },
359
+ "revision": {
360
+ "$ref": "#/$defs/Dec"
361
+ },
362
+ "constants": {
363
+ "type": "object",
364
+ "additionalProperties": {
365
+ "type": "string"
366
+ }
367
+ },
368
+ "at": {
369
+ "$ref": "#/$defs/Millis"
370
+ }
371
+ },
372
+ "required": [
373
+ "issuer",
374
+ "role",
375
+ "revision",
376
+ "constants",
377
+ "at"
378
+ ],
379
+ "additionalProperties": false
380
+ }
381
+ }
382
+ },
383
+ "required": [
384
+ "challenges",
385
+ "records",
386
+ "introductions",
387
+ "offers",
388
+ "designators",
389
+ "declarations"
390
+ ],
391
+ "additionalProperties": false
392
+ },
393
+ "joining": {
394
+ "type": "object",
395
+ "properties": {
396
+ "preludes": {
397
+ "type": "object",
398
+ "additionalProperties": {
399
+ "type": "object",
400
+ "properties": {
401
+ "group": {
402
+ "type": "string"
403
+ },
404
+ "inviter": {
405
+ "type": "string"
406
+ },
407
+ "contactId": {
408
+ "type": "string"
409
+ },
410
+ "rkid": {
411
+ "type": "string"
412
+ },
413
+ "memberLabel": {
414
+ "type": "string"
415
+ },
416
+ "at": {
417
+ "$ref": "#/$defs/Millis"
418
+ }
419
+ },
420
+ "required": [
421
+ "group",
422
+ "inviter",
423
+ "contactId",
424
+ "rkid",
425
+ "memberLabel",
426
+ "at"
427
+ ],
428
+ "additionalProperties": false
429
+ }
430
+ },
431
+ "invites": {
432
+ "type": "object",
433
+ "additionalProperties": {
434
+ "type": "object",
435
+ "properties": {
436
+ "credDigest": {
437
+ "type": "string"
438
+ },
439
+ "group": {
440
+ "type": "string"
441
+ },
442
+ "name": {
443
+ "type": "string"
444
+ },
445
+ "contactId": {
446
+ "type": "string",
447
+ "description": "the contact of the relationship its prelude binding attributed it to (RLTP-MT-3100); absent for an invitation attributed to none"
448
+ },
449
+ "rkid": {
450
+ "type": "string"
451
+ },
452
+ "memberLabel": {
453
+ "type": "string"
454
+ },
455
+ "invite": {
456
+ "type": "object"
457
+ },
458
+ "promptId": {
459
+ "type": "string"
460
+ },
461
+ "validUntil": {
462
+ "$ref": "#/$defs/Millis"
463
+ },
464
+ "status": {
465
+ "enum": [
466
+ "open",
467
+ "accepted",
468
+ "declined",
469
+ "joined"
470
+ ]
471
+ },
472
+ "at": {
473
+ "$ref": "#/$defs/Millis"
474
+ },
475
+ "acceptDigest": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ "required": [
480
+ "credDigest",
481
+ "group",
482
+ "name",
483
+ "memberLabel",
484
+ "invite",
485
+ "promptId",
486
+ "validUntil",
487
+ "status",
488
+ "at"
489
+ ],
490
+ "additionalProperties": false,
491
+ "dependentRequired": {
492
+ "contactId": [
493
+ "rkid"
494
+ ],
495
+ "rkid": [
496
+ "contactId"
497
+ ]
498
+ }
499
+ }
500
+ },
501
+ "surfaced": {
502
+ "type": "array",
503
+ "items": {
504
+ "type": "string"
505
+ },
506
+ "uniqueItems": true,
507
+ "description": "the credential digest of every invitation surfaced, for the life of the holder (RLTP-MT-3130); sorted"
508
+ },
509
+ "declined": {
510
+ "type": "array",
511
+ "items": {
512
+ "type": "string"
513
+ },
514
+ "uniqueItems": true,
515
+ "description": "the register of declined invitations (Message Tasks 6.4): credential digests, holder-wide, for the life of the holder; sorted"
516
+ }
517
+ },
518
+ "required": [
519
+ "preludes",
520
+ "invites",
521
+ "surfaced",
522
+ "declined"
523
+ ],
524
+ "additionalProperties": false
525
+ },
526
+ "messages": {
527
+ "type": "object",
528
+ "description": "Message Tasks 0.1 on the holder (message/holder.ts); the time mark of RLTP-MSG-4060 is lastWhen",
529
+ "properties": {
530
+ "blocked": {
531
+ "type": "array",
532
+ "items": {
533
+ "type": "string"
534
+ },
535
+ "uniqueItems": true,
536
+ "description": "the relationships under a block (Message Tasks 6.1), by relationship id; sorted"
537
+ },
538
+ "rates": {
539
+ "type": "object",
540
+ "description": "per relationship id: acceptance times inside the last 24 hours (Message Tasks 4.2)",
541
+ "additionalProperties": {
542
+ "type": "object",
543
+ "properties": {
544
+ "invites": {
545
+ "type": "array",
546
+ "items": {
547
+ "$ref": "#/$defs/Millis"
548
+ }
549
+ },
550
+ "messages": {
551
+ "type": "array",
552
+ "items": {
553
+ "$ref": "#/$defs/Millis"
554
+ }
555
+ }
556
+ },
557
+ "required": [
558
+ "invites",
559
+ "messages"
560
+ ],
561
+ "additionalProperties": false
562
+ }
563
+ },
564
+ "ready": {
565
+ "type": "array",
566
+ "items": {
567
+ "type": "string"
568
+ },
569
+ "uniqueItems": true,
570
+ "description": "the own pair labels of the ready tuples (Message Tasks 5.1); sorted"
571
+ },
572
+ "records": {
573
+ "type": "object",
574
+ "description": "the completion record (Message Tasks 4.4), per own pair label: mid → bodyDigest and sentAt",
575
+ "additionalProperties": {
576
+ "type": "object",
577
+ "additionalProperties": {
578
+ "type": "object",
579
+ "properties": {
580
+ "bodyDigest": {
581
+ "type": "string"
582
+ },
583
+ "sentAt": {
584
+ "$ref": "#/$defs/Millis"
585
+ }
586
+ },
587
+ "required": [
588
+ "bodyDigest",
589
+ "sentAt"
590
+ ],
591
+ "additionalProperties": false
592
+ }
593
+ }
594
+ },
595
+ "inbox": {
596
+ "type": "object",
597
+ "description": "the inbox (Message Tasks 4.5), by the accepted document digest",
598
+ "additionalProperties": {
599
+ "type": "object",
600
+ "properties": {
601
+ "id": {
602
+ "type": "string"
603
+ },
604
+ "tuple": {
605
+ "type": "string"
606
+ },
607
+ "mid": {
608
+ "type": "string"
609
+ },
610
+ "body": {
611
+ "type": "object"
612
+ },
613
+ "receivedAt": {
614
+ "$ref": "#/$defs/Millis"
615
+ },
616
+ "displayAt": {
617
+ "$ref": "#/$defs/Millis"
618
+ }
619
+ },
620
+ "required": [
621
+ "id",
622
+ "tuple",
623
+ "mid",
624
+ "body",
625
+ "receivedAt",
626
+ "displayAt"
627
+ ],
628
+ "additionalProperties": false
629
+ }
630
+ }
631
+ },
632
+ "required": [
633
+ "blocked",
634
+ "rates",
635
+ "ready",
636
+ "records",
637
+ "inbox"
638
+ ],
639
+ "additionalProperties": false
640
+ }
641
+ },
642
+ "required": [
643
+ "codec",
644
+ "commitSeq",
645
+ "lastWhen",
646
+ "register",
647
+ "addresses",
648
+ "contacts",
649
+ "relationships",
650
+ "entryOrder",
651
+ "groups",
652
+ "profile",
653
+ "effects",
654
+ "outbox",
655
+ "duties",
656
+ "rotations",
657
+ "prompts",
658
+ "acts",
659
+ "encounter",
660
+ "joining",
661
+ "messages"
662
+ ],
663
+ "additionalProperties": false,
664
+ "$defs": {
665
+ "Dec": {
666
+ "description": "a counter as a canonical decimal string",
667
+ "type": "string",
668
+ "pattern": "^(0|[1-9][0-9]{0,17})$"
669
+ },
670
+ "Millis": {
671
+ "description": "milliseconds since the epoch, a safe non-negative integer",
672
+ "type": "integer",
673
+ "minimum": 0,
674
+ "maximum": 9007199254740991
675
+ },
676
+ "Setting": {
677
+ "enum": [
678
+ "default",
679
+ "on",
680
+ "off"
681
+ ]
682
+ },
683
+ "TrustClass": {
684
+ "enum": [
685
+ "star",
686
+ "groupStar",
687
+ "anchorMapping",
688
+ "sealedGroupStar",
689
+ "profile"
690
+ ]
691
+ },
692
+ "Recipient": {
693
+ "type": "object",
694
+ "properties": {
695
+ "contactId": {
696
+ "type": "string"
697
+ },
698
+ "rkid": {
699
+ "type": "string"
700
+ },
701
+ "keyAgreement": {
702
+ "type": "string"
703
+ },
704
+ "anchor": {
705
+ "type": "string"
706
+ },
707
+ "via": {
708
+ "type": "string"
709
+ }
710
+ },
711
+ "required": [
712
+ "contactId",
713
+ "rkid",
714
+ "keyAgreement"
715
+ ],
716
+ "additionalProperties": false
717
+ },
718
+ "Envelope": {
719
+ "type": "object",
720
+ "properties": {
721
+ "rkid": {
722
+ "type": "string"
723
+ },
724
+ "epk": {
725
+ "type": "string"
726
+ },
727
+ "nonce": {
728
+ "type": "string"
729
+ },
730
+ "ciphertext": {
731
+ "type": "string"
732
+ }
733
+ },
734
+ "required": [
735
+ "rkid",
736
+ "epk",
737
+ "nonce",
738
+ "ciphertext"
739
+ ],
740
+ "additionalProperties": false
741
+ },
742
+ "Assembly": {
743
+ "type": "object",
744
+ "properties": {
745
+ "salt": {
746
+ "$ref": "#/$defs/Dec"
747
+ },
748
+ "chunks": {
749
+ "type": "object",
750
+ "additionalProperties": true
751
+ }
752
+ },
753
+ "required": [
754
+ "salt",
755
+ "chunks"
756
+ ],
757
+ "additionalProperties": false
758
+ },
759
+ "StarPair": {
760
+ "type": "object",
761
+ "properties": {
762
+ "member": {
763
+ "type": "string"
764
+ },
765
+ "head": {
766
+ "type": "string"
767
+ }
768
+ },
769
+ "required": [
770
+ "member",
771
+ "head"
772
+ ],
773
+ "additionalProperties": false
774
+ },
775
+ "GroupStarItem": {
776
+ "anyOf": [
777
+ {
778
+ "type": "object",
779
+ "properties": {
780
+ "group": {
781
+ "type": "string"
782
+ },
783
+ "mode": {
784
+ "const": "digest"
785
+ }
786
+ },
787
+ "required": [
788
+ "group",
789
+ "mode"
790
+ ],
791
+ "additionalProperties": false
792
+ },
793
+ {
794
+ "type": "object",
795
+ "properties": {
796
+ "group": {
797
+ "type": "string"
798
+ },
799
+ "mode": {
800
+ "const": "sealed"
801
+ },
802
+ "member": {
803
+ "type": "string"
804
+ },
805
+ "memberOp": {
806
+ "type": "string"
807
+ }
808
+ },
809
+ "required": [
810
+ "group",
811
+ "mode",
812
+ "member",
813
+ "memberOp"
814
+ ],
815
+ "additionalProperties": false
816
+ }
817
+ ]
818
+ },
819
+ "StarOutInflight": {
820
+ "type": "object",
821
+ "properties": {
822
+ "view": {
823
+ "type": "array",
824
+ "items": {
825
+ "$ref": "#/$defs/StarPair"
826
+ }
827
+ },
828
+ "viewDigest": {
829
+ "type": "string"
830
+ },
831
+ "digests": {
832
+ "type": "array",
833
+ "items": {
834
+ "type": "string"
835
+ }
836
+ },
837
+ "acked": {
838
+ "type": "array",
839
+ "items": {
840
+ "type": "string"
841
+ }
842
+ }
843
+ },
844
+ "required": [
845
+ "view",
846
+ "viewDigest",
847
+ "digests",
848
+ "acked"
849
+ ],
850
+ "additionalProperties": false
851
+ },
852
+ "StarOut": {
853
+ "description": "the sender side of one reconciled sequence (5.4); snapshot and snapshotDigest are null together",
854
+ "type": "object",
855
+ "properties": {
856
+ "lastSalt": {
857
+ "$ref": "#/$defs/Dec"
858
+ },
859
+ "exhausted": {
860
+ "type": "boolean"
861
+ },
862
+ "hwm": {
863
+ "$ref": "#/$defs/Dec"
864
+ },
865
+ "snapshot": {
866
+ "anyOf": [
867
+ {
868
+ "type": "array",
869
+ "items": {
870
+ "$ref": "#/$defs/StarPair"
871
+ }
872
+ },
873
+ {
874
+ "type": "null"
875
+ }
876
+ ]
877
+ },
878
+ "snapshotDigest": {
879
+ "anyOf": [
880
+ {
881
+ "type": "string"
882
+ },
883
+ {
884
+ "type": "null"
885
+ }
886
+ ]
887
+ },
888
+ "inflight": {
889
+ "type": "object",
890
+ "additionalProperties": {
891
+ "$ref": "#/$defs/StarOutInflight"
892
+ }
893
+ }
894
+ },
895
+ "required": [
896
+ "lastSalt",
897
+ "exhausted",
898
+ "hwm",
899
+ "snapshot",
900
+ "snapshotDigest",
901
+ "inflight"
902
+ ],
903
+ "additionalProperties": false,
904
+ "if": {
905
+ "properties": {
906
+ "snapshot": {
907
+ "type": "null"
908
+ }
909
+ }
910
+ },
911
+ "then": {
912
+ "properties": {
913
+ "snapshotDigest": {
914
+ "type": "null"
915
+ }
916
+ }
917
+ },
918
+ "else": {
919
+ "properties": {
920
+ "snapshotDigest": {
921
+ "type": "string"
922
+ }
923
+ }
924
+ }
925
+ },
926
+ "StarIn": {
927
+ "type": "object",
928
+ "properties": {
929
+ "hwm": {
930
+ "$ref": "#/$defs/Dec"
931
+ },
932
+ "lowerBound": {
933
+ "$ref": "#/$defs/Dec"
934
+ },
935
+ "assembly": {
936
+ "anyOf": [
937
+ {
938
+ "$ref": "#/$defs/Assembly"
939
+ },
940
+ {
941
+ "type": "null"
942
+ }
943
+ ]
944
+ },
945
+ "accepted": {
946
+ "anyOf": [
947
+ {
948
+ "type": "object",
949
+ "properties": {
950
+ "salt": {
951
+ "$ref": "#/$defs/Dec"
952
+ },
953
+ "blinded": {
954
+ "type": "array",
955
+ "items": {
956
+ "type": "string"
957
+ }
958
+ },
959
+ "matches": {
960
+ "type": "array",
961
+ "items": {
962
+ "type": "string"
963
+ }
964
+ }
965
+ },
966
+ "required": [
967
+ "salt",
968
+ "blinded",
969
+ "matches"
970
+ ],
971
+ "additionalProperties": false
972
+ },
973
+ {
974
+ "type": "null"
975
+ }
976
+ ]
977
+ }
978
+ },
979
+ "required": [
980
+ "hwm",
981
+ "lowerBound",
982
+ "assembly",
983
+ "accepted"
984
+ ],
985
+ "additionalProperties": false
986
+ },
987
+ "GroupStarOutInflight": {
988
+ "type": "object",
989
+ "properties": {
990
+ "view": {
991
+ "type": "array",
992
+ "items": {
993
+ "$ref": "#/$defs/GroupStarItem"
994
+ }
995
+ },
996
+ "viewDigest": {
997
+ "type": "string"
998
+ },
999
+ "digests": {
1000
+ "type": "array",
1001
+ "items": {
1002
+ "type": "string"
1003
+ }
1004
+ },
1005
+ "acked": {
1006
+ "type": "array",
1007
+ "items": {
1008
+ "type": "string"
1009
+ }
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "view",
1014
+ "viewDigest",
1015
+ "digests",
1016
+ "acked"
1017
+ ],
1018
+ "additionalProperties": false
1019
+ },
1020
+ "GroupStarOut": {
1021
+ "description": "the sender side of one reconciled sequence (5.4); snapshot and snapshotDigest are null together",
1022
+ "type": "object",
1023
+ "properties": {
1024
+ "lastSalt": {
1025
+ "$ref": "#/$defs/Dec"
1026
+ },
1027
+ "exhausted": {
1028
+ "type": "boolean"
1029
+ },
1030
+ "hwm": {
1031
+ "$ref": "#/$defs/Dec"
1032
+ },
1033
+ "snapshot": {
1034
+ "anyOf": [
1035
+ {
1036
+ "type": "array",
1037
+ "items": {
1038
+ "$ref": "#/$defs/GroupStarItem"
1039
+ }
1040
+ },
1041
+ {
1042
+ "type": "null"
1043
+ }
1044
+ ]
1045
+ },
1046
+ "snapshotDigest": {
1047
+ "anyOf": [
1048
+ {
1049
+ "type": "string"
1050
+ },
1051
+ {
1052
+ "type": "null"
1053
+ }
1054
+ ]
1055
+ },
1056
+ "inflight": {
1057
+ "type": "object",
1058
+ "additionalProperties": {
1059
+ "$ref": "#/$defs/GroupStarOutInflight"
1060
+ }
1061
+ }
1062
+ },
1063
+ "required": [
1064
+ "lastSalt",
1065
+ "exhausted",
1066
+ "hwm",
1067
+ "snapshot",
1068
+ "snapshotDigest",
1069
+ "inflight"
1070
+ ],
1071
+ "additionalProperties": false,
1072
+ "if": {
1073
+ "properties": {
1074
+ "snapshot": {
1075
+ "type": "null"
1076
+ }
1077
+ }
1078
+ },
1079
+ "then": {
1080
+ "properties": {
1081
+ "snapshotDigest": {
1082
+ "type": "null"
1083
+ }
1084
+ }
1085
+ },
1086
+ "else": {
1087
+ "properties": {
1088
+ "snapshotDigest": {
1089
+ "type": "string"
1090
+ }
1091
+ }
1092
+ }
1093
+ },
1094
+ "GroupStarIn": {
1095
+ "type": "object",
1096
+ "properties": {
1097
+ "hwm": {
1098
+ "$ref": "#/$defs/Dec"
1099
+ },
1100
+ "lowerBound": {
1101
+ "$ref": "#/$defs/Dec"
1102
+ },
1103
+ "assembly": {
1104
+ "anyOf": [
1105
+ {
1106
+ "$ref": "#/$defs/Assembly"
1107
+ },
1108
+ {
1109
+ "type": "null"
1110
+ }
1111
+ ]
1112
+ },
1113
+ "accepted": {
1114
+ "anyOf": [
1115
+ {
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "salt": {
1119
+ "$ref": "#/$defs/Dec"
1120
+ },
1121
+ "entries": {
1122
+ "type": "array",
1123
+ "items": {
1124
+ "type": "object",
1125
+ "properties": {
1126
+ "d": {
1127
+ "type": "string"
1128
+ },
1129
+ "c": {
1130
+ "type": "string"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "d",
1135
+ "c"
1136
+ ],
1137
+ "additionalProperties": false
1138
+ }
1139
+ },
1140
+ "groups": {
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "string"
1144
+ }
1145
+ }
1146
+ },
1147
+ "required": [
1148
+ "salt",
1149
+ "entries",
1150
+ "groups"
1151
+ ],
1152
+ "additionalProperties": false
1153
+ },
1154
+ {
1155
+ "type": "null"
1156
+ }
1157
+ ]
1158
+ }
1159
+ },
1160
+ "required": [
1161
+ "hwm",
1162
+ "lowerBound",
1163
+ "assembly",
1164
+ "accepted"
1165
+ ],
1166
+ "additionalProperties": false
1167
+ },
1168
+ "ContinuityDue": {
1169
+ "anyOf": [
1170
+ {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "kind": {
1174
+ "const": "choice"
1175
+ },
1176
+ "prior": {
1177
+ "type": "string"
1178
+ },
1179
+ "alts": {
1180
+ "type": "array",
1181
+ "items": {
1182
+ "type": "string"
1183
+ }
1184
+ }
1185
+ },
1186
+ "required": [
1187
+ "kind",
1188
+ "prior",
1189
+ "alts"
1190
+ ],
1191
+ "additionalProperties": false
1192
+ },
1193
+ {
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "kind": {
1197
+ "enum": [
1198
+ "report",
1199
+ "align"
1200
+ ]
1201
+ },
1202
+ "prior": {
1203
+ "type": "string"
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "kind",
1208
+ "prior"
1209
+ ],
1210
+ "additionalProperties": false
1211
+ }
1212
+ ]
1213
+ },
1214
+ "LogHead": {
1215
+ "anyOf": [
1216
+ {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "genesis": {
1220
+ "type": "string"
1221
+ },
1222
+ "empty": {
1223
+ "const": true
1224
+ }
1225
+ },
1226
+ "required": [
1227
+ "genesis",
1228
+ "empty"
1229
+ ],
1230
+ "additionalProperties": false
1231
+ },
1232
+ {
1233
+ "type": "object",
1234
+ "properties": {
1235
+ "genesis": {
1236
+ "type": "string"
1237
+ },
1238
+ "entryId": {
1239
+ "type": "string"
1240
+ },
1241
+ "gen": {
1242
+ "type": "integer",
1243
+ "minimum": 1,
1244
+ "maximum": 9007199254740991
1245
+ },
1246
+ "next": {
1247
+ "type": "string"
1248
+ },
1249
+ "commit": {
1250
+ "type": "string"
1251
+ }
1252
+ },
1253
+ "required": [
1254
+ "genesis",
1255
+ "entryId",
1256
+ "gen",
1257
+ "next",
1258
+ "commit"
1259
+ ],
1260
+ "additionalProperties": false
1261
+ }
1262
+ ]
1263
+ },
1264
+ "Tuple": {
1265
+ "description": "one enactment's tuple of a relationship (Trust 6.4)",
1266
+ "type": "object",
1267
+ "properties": {
1268
+ "ownPairLabel": {
1269
+ "type": "string"
1270
+ },
1271
+ "counterpartAnchor": {
1272
+ "type": "string"
1273
+ },
1274
+ "counterpartKeyAgreement": {
1275
+ "type": "string"
1276
+ },
1277
+ "rkid": {
1278
+ "type": "string"
1279
+ },
1280
+ "entryId": {
1281
+ "type": "string"
1282
+ },
1283
+ "priorCandidates": {
1284
+ "type": "array",
1285
+ "items": {
1286
+ "type": "object",
1287
+ "properties": {
1288
+ "ownPairLabel": {
1289
+ "type": "string"
1290
+ },
1291
+ "counterpartAnchor": {
1292
+ "type": "string"
1293
+ },
1294
+ "replaces": {
1295
+ "type": "array",
1296
+ "items": {
1297
+ "type": "string"
1298
+ }
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "ownPairLabel",
1303
+ "counterpartAnchor"
1304
+ ],
1305
+ "additionalProperties": false
1306
+ }
1307
+ },
1308
+ "starOut": {
1309
+ "$ref": "#/$defs/StarOut"
1310
+ },
1311
+ "starIn": {
1312
+ "$ref": "#/$defs/StarIn"
1313
+ },
1314
+ "groupStarOut": {
1315
+ "$ref": "#/$defs/GroupStarOut"
1316
+ },
1317
+ "groupStarIn": {
1318
+ "$ref": "#/$defs/GroupStarIn"
1319
+ },
1320
+ "probeOut": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "seq": {
1324
+ "$ref": "#/$defs/Dec"
1325
+ },
1326
+ "inflight": {
1327
+ "type": "object",
1328
+ "additionalProperties": {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "digests": {
1332
+ "type": "array",
1333
+ "items": {
1334
+ "type": "string"
1335
+ }
1336
+ },
1337
+ "acked": {
1338
+ "type": "array",
1339
+ "items": {
1340
+ "type": "string"
1341
+ }
1342
+ }
1343
+ },
1344
+ "required": [
1345
+ "digests",
1346
+ "acked"
1347
+ ],
1348
+ "additionalProperties": false
1349
+ }
1350
+ },
1351
+ "done": {
1352
+ "type": "boolean"
1353
+ }
1354
+ },
1355
+ "required": [
1356
+ "seq",
1357
+ "inflight",
1358
+ "done"
1359
+ ],
1360
+ "additionalProperties": false
1361
+ },
1362
+ "probeIn": {
1363
+ "type": "object",
1364
+ "properties": {
1365
+ "hwm": {
1366
+ "$ref": "#/$defs/Dec"
1367
+ },
1368
+ "lowerBound": {
1369
+ "$ref": "#/$defs/Dec"
1370
+ },
1371
+ "assembly": {
1372
+ "anyOf": [
1373
+ {
1374
+ "$ref": "#/$defs/Assembly"
1375
+ },
1376
+ {
1377
+ "type": "null"
1378
+ }
1379
+ ]
1380
+ }
1381
+ },
1382
+ "required": [
1383
+ "hwm",
1384
+ "lowerBound",
1385
+ "assembly"
1386
+ ],
1387
+ "additionalProperties": false
1388
+ },
1389
+ "continuityOut": {
1390
+ "type": "object",
1391
+ "properties": {
1392
+ "rev": {
1393
+ "$ref": "#/$defs/Dec"
1394
+ },
1395
+ "body": true,
1396
+ "proof": true,
1397
+ "sent": {
1398
+ "type": "array",
1399
+ "items": {
1400
+ "type": "string"
1401
+ }
1402
+ },
1403
+ "align": {
1404
+ "type": "boolean"
1405
+ },
1406
+ "chosen": {
1407
+ "anyOf": [
1408
+ {
1409
+ "type": "string"
1410
+ },
1411
+ {
1412
+ "type": "null"
1413
+ }
1414
+ ]
1415
+ },
1416
+ "reported": {
1417
+ "anyOf": [
1418
+ {
1419
+ "type": "string"
1420
+ },
1421
+ {
1422
+ "type": "null"
1423
+ }
1424
+ ]
1425
+ },
1426
+ "aligned": {
1427
+ "type": "boolean"
1428
+ },
1429
+ "due": {
1430
+ "anyOf": [
1431
+ {
1432
+ "$ref": "#/$defs/ContinuityDue"
1433
+ },
1434
+ {
1435
+ "type": "null"
1436
+ }
1437
+ ]
1438
+ }
1439
+ },
1440
+ "required": [
1441
+ "rev",
1442
+ "body",
1443
+ "proof",
1444
+ "sent",
1445
+ "align",
1446
+ "chosen",
1447
+ "reported",
1448
+ "aligned",
1449
+ "due"
1450
+ ],
1451
+ "additionalProperties": false
1452
+ },
1453
+ "continuityIn": {
1454
+ "type": "object",
1455
+ "properties": {
1456
+ "rev": {
1457
+ "$ref": "#/$defs/Dec"
1458
+ },
1459
+ "body": true,
1460
+ "recordPrior": {
1461
+ "anyOf": [
1462
+ {
1463
+ "type": "string"
1464
+ },
1465
+ {
1466
+ "type": "null"
1467
+ }
1468
+ ]
1469
+ }
1470
+ },
1471
+ "required": [
1472
+ "rev",
1473
+ "body",
1474
+ "recordPrior"
1475
+ ],
1476
+ "additionalProperties": false
1477
+ },
1478
+ "mappingOut": {
1479
+ "type": "object",
1480
+ "properties": {
1481
+ "rev": {
1482
+ "$ref": "#/$defs/Dec"
1483
+ },
1484
+ "body": true,
1485
+ "underAnchor": {
1486
+ "anyOf": [
1487
+ {
1488
+ "type": "string"
1489
+ },
1490
+ {
1491
+ "type": "null"
1492
+ }
1493
+ ]
1494
+ }
1495
+ },
1496
+ "required": [
1497
+ "rev",
1498
+ "body",
1499
+ "underAnchor"
1500
+ ],
1501
+ "additionalProperties": false
1502
+ },
1503
+ "mappingIn": {
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "rev": {
1507
+ "$ref": "#/$defs/Dec"
1508
+ },
1509
+ "body": true,
1510
+ "self": {
1511
+ "anyOf": [
1512
+ {
1513
+ "type": "string"
1514
+ },
1515
+ {
1516
+ "type": "null"
1517
+ }
1518
+ ]
1519
+ },
1520
+ "card": true
1521
+ },
1522
+ "required": [
1523
+ "rev",
1524
+ "body",
1525
+ "self",
1526
+ "card"
1527
+ ],
1528
+ "additionalProperties": false
1529
+ },
1530
+ "profileOut": {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "rev": {
1534
+ "$ref": "#/$defs/Dec"
1535
+ }
1536
+ },
1537
+ "required": [
1538
+ "rev"
1539
+ ],
1540
+ "additionalProperties": false
1541
+ },
1542
+ "profileIn": {
1543
+ "type": "object",
1544
+ "properties": {
1545
+ "rev": {
1546
+ "$ref": "#/$defs/Dec"
1547
+ },
1548
+ "body": true,
1549
+ "verifiedSeq": {
1550
+ "$ref": "#/$defs/Dec"
1551
+ }
1552
+ },
1553
+ "required": [
1554
+ "rev",
1555
+ "body",
1556
+ "verifiedSeq"
1557
+ ],
1558
+ "additionalProperties": false
1559
+ },
1560
+ "deactivated": {
1561
+ "type": "boolean"
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "ownPairLabel",
1566
+ "counterpartAnchor",
1567
+ "counterpartKeyAgreement",
1568
+ "rkid",
1569
+ "entryId",
1570
+ "priorCandidates",
1571
+ "starOut",
1572
+ "starIn",
1573
+ "groupStarOut",
1574
+ "groupStarIn",
1575
+ "probeOut",
1576
+ "probeIn",
1577
+ "continuityOut",
1578
+ "continuityIn",
1579
+ "mappingOut",
1580
+ "mappingIn",
1581
+ "profileOut",
1582
+ "profileIn",
1583
+ "deactivated"
1584
+ ],
1585
+ "additionalProperties": false
1586
+ },
1587
+ "Relationship": {
1588
+ "type": "object",
1589
+ "properties": {
1590
+ "id": {
1591
+ "type": "string"
1592
+ },
1593
+ "contactId": {
1594
+ "type": "string"
1595
+ },
1596
+ "tuples": {
1597
+ "type": "array",
1598
+ "items": {
1599
+ "$ref": "#/$defs/Tuple"
1600
+ }
1601
+ },
1602
+ "activeHead": {
1603
+ "type": "string"
1604
+ },
1605
+ "earliestAnchor": {
1606
+ "anyOf": [
1607
+ {
1608
+ "type": "string"
1609
+ },
1610
+ {
1611
+ "type": "null"
1612
+ }
1613
+ ]
1614
+ },
1615
+ "links": {
1616
+ "type": "array",
1617
+ "items": {
1618
+ "type": "object",
1619
+ "properties": {
1620
+ "prev": {
1621
+ "type": "string"
1622
+ },
1623
+ "next": {
1624
+ "type": "string"
1625
+ }
1626
+ },
1627
+ "required": [
1628
+ "prev",
1629
+ "next"
1630
+ ],
1631
+ "additionalProperties": false
1632
+ }
1633
+ },
1634
+ "bindings": {
1635
+ "type": "object",
1636
+ "additionalProperties": {
1637
+ "type": "array",
1638
+ "items": {
1639
+ "type": "string"
1640
+ },
1641
+ "uniqueItems": true
1642
+ }
1643
+ },
1644
+ "heldCounterpartHead": {
1645
+ "anyOf": [
1646
+ {
1647
+ "type": "string"
1648
+ },
1649
+ {
1650
+ "type": "null"
1651
+ }
1652
+ ]
1653
+ },
1654
+ "memory": {
1655
+ "type": "object",
1656
+ "additionalProperties": true
1657
+ },
1658
+ "provenance": {
1659
+ "type": "object",
1660
+ "properties": {
1661
+ "kind": {
1662
+ "enum": [
1663
+ "ceremony",
1664
+ "introduced"
1665
+ ]
1666
+ },
1667
+ "at": {
1668
+ "$ref": "#/$defs/Millis"
1669
+ },
1670
+ "via": {
1671
+ "type": "string"
1672
+ },
1673
+ "viaPin": {
1674
+ "type": "string"
1675
+ }
1676
+ },
1677
+ "required": [
1678
+ "kind",
1679
+ "at"
1680
+ ],
1681
+ "additionalProperties": false
1682
+ },
1683
+ "chainedInto": {
1684
+ "anyOf": [
1685
+ {
1686
+ "type": "string"
1687
+ },
1688
+ {
1689
+ "type": "null"
1690
+ }
1691
+ ]
1692
+ },
1693
+ "firstVerified": {
1694
+ "anyOf": [
1695
+ {
1696
+ "$ref": "#/$defs/Dec"
1697
+ },
1698
+ {
1699
+ "type": "null"
1700
+ }
1701
+ ]
1702
+ }
1703
+ },
1704
+ "required": [
1705
+ "id",
1706
+ "contactId",
1707
+ "tuples",
1708
+ "activeHead",
1709
+ "earliestAnchor",
1710
+ "links",
1711
+ "bindings",
1712
+ "heldCounterpartHead",
1713
+ "memory",
1714
+ "provenance",
1715
+ "chainedInto",
1716
+ "firstVerified"
1717
+ ],
1718
+ "additionalProperties": false
1719
+ },
1720
+ "Contact": {
1721
+ "description": "one entry of the deliverable set (Trust 2120, 2140); its id equals its key",
1722
+ "type": "object",
1723
+ "properties": {
1724
+ "id": {
1725
+ "type": "string"
1726
+ },
1727
+ "pos": {
1728
+ "anyOf": [
1729
+ {
1730
+ "$ref": "#/$defs/Dec"
1731
+ },
1732
+ {
1733
+ "type": "null"
1734
+ }
1735
+ ]
1736
+ },
1737
+ "status": {
1738
+ "enum": [
1739
+ "none",
1740
+ "admitted",
1741
+ "pending"
1742
+ ]
1743
+ },
1744
+ "aliases": {
1745
+ "type": "array",
1746
+ "items": {
1747
+ "type": "string"
1748
+ },
1749
+ "uniqueItems": true
1750
+ },
1751
+ "relIds": {
1752
+ "type": "array",
1753
+ "items": {
1754
+ "type": "string"
1755
+ },
1756
+ "uniqueItems": true
1757
+ },
1758
+ "anchorHead": {
1759
+ "anyOf": [
1760
+ {
1761
+ "type": "string"
1762
+ },
1763
+ {
1764
+ "type": "null"
1765
+ }
1766
+ ]
1767
+ },
1768
+ "settings": {
1769
+ "type": "object",
1770
+ "properties": {
1771
+ "star": {
1772
+ "$ref": "#/$defs/Setting"
1773
+ },
1774
+ "groupStar": {
1775
+ "$ref": "#/$defs/Setting"
1776
+ },
1777
+ "anchorMapping": {
1778
+ "$ref": "#/$defs/Setting"
1779
+ },
1780
+ "sealedGroupStar": {
1781
+ "$ref": "#/$defs/Setting"
1782
+ },
1783
+ "profile": {
1784
+ "$ref": "#/$defs/Setting"
1785
+ }
1786
+ },
1787
+ "required": [
1788
+ "star",
1789
+ "groupStar",
1790
+ "anchorMapping",
1791
+ "sealedGroupStar",
1792
+ "profile"
1793
+ ],
1794
+ "additionalProperties": false
1795
+ },
1796
+ "groupSettings": {
1797
+ "type": "object",
1798
+ "additionalProperties": {
1799
+ "$ref": "#/$defs/Setting"
1800
+ }
1801
+ }
1802
+ },
1803
+ "required": [
1804
+ "id",
1805
+ "pos",
1806
+ "status",
1807
+ "aliases",
1808
+ "relIds",
1809
+ "anchorHead",
1810
+ "settings",
1811
+ "groupSettings"
1812
+ ],
1813
+ "additionalProperties": false
1814
+ },
1815
+ "OutboxStep": {
1816
+ "anyOf": [
1817
+ {
1818
+ "type": "object",
1819
+ "properties": {
1820
+ "status": {
1821
+ "const": "submitted"
1822
+ },
1823
+ "at": {
1824
+ "$ref": "#/$defs/Millis"
1825
+ },
1826
+ "attempt": {
1827
+ "type": "integer",
1828
+ "minimum": 1,
1829
+ "maximum": 9007199254740991
1830
+ }
1831
+ },
1832
+ "required": [
1833
+ "status",
1834
+ "at",
1835
+ "attempt"
1836
+ ],
1837
+ "additionalProperties": false
1838
+ },
1839
+ {
1840
+ "type": "object",
1841
+ "properties": {
1842
+ "status": {
1843
+ "const": "awaiting-transport"
1844
+ },
1845
+ "at": {
1846
+ "$ref": "#/$defs/Millis"
1847
+ },
1848
+ "reason": {
1849
+ "enum": [
1850
+ "offline",
1851
+ "transport-unreachable",
1852
+ "carrier-refused-retriable"
1853
+ ]
1854
+ }
1855
+ },
1856
+ "required": [
1857
+ "status",
1858
+ "at",
1859
+ "reason"
1860
+ ],
1861
+ "additionalProperties": false
1862
+ },
1863
+ {
1864
+ "type": "object",
1865
+ "properties": {
1866
+ "status": {
1867
+ "const": "accepted"
1868
+ },
1869
+ "at": {
1870
+ "$ref": "#/$defs/Millis"
1871
+ }
1872
+ },
1873
+ "required": [
1874
+ "status",
1875
+ "at"
1876
+ ],
1877
+ "additionalProperties": false
1878
+ },
1879
+ {
1880
+ "type": "object",
1881
+ "properties": {
1882
+ "status": {
1883
+ "const": "delivered"
1884
+ },
1885
+ "at": {
1886
+ "$ref": "#/$defs/Millis"
1887
+ },
1888
+ "late": {
1889
+ "type": "boolean"
1890
+ }
1891
+ },
1892
+ "required": [
1893
+ "status",
1894
+ "at",
1895
+ "late"
1896
+ ],
1897
+ "additionalProperties": false
1898
+ },
1899
+ {
1900
+ "type": "object",
1901
+ "properties": {
1902
+ "status": {
1903
+ "const": "failed"
1904
+ },
1905
+ "at": {
1906
+ "$ref": "#/$defs/Millis"
1907
+ },
1908
+ "reason": {
1909
+ "enum": [
1910
+ "unroutable",
1911
+ "oversize",
1912
+ "expired-by-adapter-policy",
1913
+ "task-expired"
1914
+ ]
1915
+ }
1916
+ },
1917
+ "required": [
1918
+ "status",
1919
+ "at",
1920
+ "reason"
1921
+ ],
1922
+ "additionalProperties": false
1923
+ },
1924
+ {
1925
+ "type": "object",
1926
+ "properties": {
1927
+ "status": {
1928
+ "const": "failed"
1929
+ },
1930
+ "at": {
1931
+ "$ref": "#/$defs/Millis"
1932
+ },
1933
+ "reason": {
1934
+ "const": "rejected-by-receiver"
1935
+ },
1936
+ "code": {
1937
+ "enum": [
1938
+ "malformedRequest",
1939
+ "unsupportedType",
1940
+ "proofRequired",
1941
+ "proofInvalid",
1942
+ "wrongRecipient",
1943
+ "identityMismatch"
1944
+ ]
1945
+ }
1946
+ },
1947
+ "required": [
1948
+ "status",
1949
+ "at",
1950
+ "reason",
1951
+ "code"
1952
+ ],
1953
+ "additionalProperties": false
1954
+ }
1955
+ ]
1956
+ },
1957
+ "OutboxItem": {
1958
+ "description": "an issued document; its envelope's rkid equals recipient.keyAgreement (not expressible here, checked by the codec)",
1959
+ "type": "object",
1960
+ "properties": {
1961
+ "type": {
1962
+ "type": "string"
1963
+ },
1964
+ "threadId": {
1965
+ "type": "string"
1966
+ },
1967
+ "recipient": {
1968
+ "$ref": "#/$defs/Recipient"
1969
+ },
1970
+ "envelope": {
1971
+ "$ref": "#/$defs/Envelope"
1972
+ },
1973
+ "attempt": {
1974
+ "type": "integer",
1975
+ "minimum": 1,
1976
+ "maximum": 9007199254740991
1977
+ },
1978
+ "history": {
1979
+ "type": "array",
1980
+ "items": {
1981
+ "$ref": "#/$defs/OutboxStep"
1982
+ }
1983
+ },
1984
+ "nextAttemptAt": {
1985
+ "$ref": "#/$defs/Millis"
1986
+ },
1987
+ "expiresAt": {
1988
+ "$ref": "#/$defs/Millis",
1989
+ "description": "the sender lifetime its type declares (Delivery RLTP-DEL-7020)"
1990
+ }
1991
+ },
1992
+ "required": [
1993
+ "type",
1994
+ "threadId",
1995
+ "recipient",
1996
+ "envelope",
1997
+ "attempt",
1998
+ "history"
1999
+ ],
2000
+ "additionalProperties": false
2001
+ },
2002
+ "StoredAck": {
2003
+ "type": "object",
2004
+ "properties": {
2005
+ "digest": {
2006
+ "type": "string"
2007
+ },
2008
+ "envelope": {
2009
+ "$ref": "#/$defs/Envelope"
2010
+ },
2011
+ "threadId": {
2012
+ "type": "string"
2013
+ },
2014
+ "recipient": {
2015
+ "$ref": "#/$defs/Recipient"
2016
+ },
2017
+ "at": {
2018
+ "$ref": "#/$defs/Millis"
2019
+ },
2020
+ "attempt": {
2021
+ "type": "integer",
2022
+ "minimum": 1,
2023
+ "maximum": 9007199254740991
2024
+ },
2025
+ "sent": {
2026
+ "type": "boolean"
2027
+ },
2028
+ "nextAttemptAt": {
2029
+ "$ref": "#/$defs/Millis"
2030
+ },
2031
+ "sentBy": {
2032
+ "enum": [
2033
+ "report",
2034
+ "horizon"
2035
+ ]
2036
+ }
2037
+ },
2038
+ "required": [
2039
+ "digest",
2040
+ "envelope",
2041
+ "threadId",
2042
+ "recipient",
2043
+ "at",
2044
+ "attempt",
2045
+ "sent"
2046
+ ],
2047
+ "additionalProperties": false
2048
+ },
2049
+ "ReissueMappingDuty": {
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "kind": {
2053
+ "const": "reissue-mapping"
2054
+ },
2055
+ "v": {
2056
+ "const": 1
2057
+ },
2058
+ "id": {
2059
+ "type": "string"
2060
+ },
2061
+ "contactId": {
2062
+ "type": "string"
2063
+ },
2064
+ "relId": {
2065
+ "type": "string"
2066
+ },
2067
+ "awaitHead": {
2068
+ "anyOf": [
2069
+ {
2070
+ "type": "string"
2071
+ },
2072
+ {
2073
+ "type": "null"
2074
+ }
2075
+ ]
2076
+ },
2077
+ "dueAt": {
2078
+ "$ref": "#/$defs/Millis"
2079
+ }
2080
+ },
2081
+ "required": [
2082
+ "kind",
2083
+ "v",
2084
+ "id",
2085
+ "contactId",
2086
+ "relId",
2087
+ "awaitHead"
2088
+ ],
2089
+ "additionalProperties": false
2090
+ },
2091
+ "ClassOnDuty": {
2092
+ "type": "object",
2093
+ "properties": {
2094
+ "kind": {
2095
+ "const": "class-on"
2096
+ },
2097
+ "v": {
2098
+ "const": 1
2099
+ },
2100
+ "id": {
2101
+ "type": "string"
2102
+ },
2103
+ "contactId": {
2104
+ "type": "string"
2105
+ },
2106
+ "relId": {
2107
+ "type": "string"
2108
+ },
2109
+ "cls": {
2110
+ "$ref": "#/$defs/TrustClass"
2111
+ },
2112
+ "dueAt": {
2113
+ "$ref": "#/$defs/Millis"
2114
+ }
2115
+ },
2116
+ "required": [
2117
+ "kind",
2118
+ "v",
2119
+ "id",
2120
+ "contactId",
2121
+ "relId",
2122
+ "cls"
2123
+ ],
2124
+ "additionalProperties": false
2125
+ },
2126
+ "ProfileDuty": {
2127
+ "type": "object",
2128
+ "properties": {
2129
+ "kind": {
2130
+ "const": "profile"
2131
+ },
2132
+ "v": {
2133
+ "const": 1
2134
+ },
2135
+ "id": {
2136
+ "type": "string"
2137
+ },
2138
+ "contactId": {
2139
+ "type": "string"
2140
+ },
2141
+ "relId": {
2142
+ "type": "string"
2143
+ },
2144
+ "rev": {
2145
+ "$ref": "#/$defs/Dec"
2146
+ },
2147
+ "dueAt": {
2148
+ "$ref": "#/$defs/Millis"
2149
+ }
2150
+ },
2151
+ "required": [
2152
+ "kind",
2153
+ "v",
2154
+ "id",
2155
+ "contactId",
2156
+ "relId",
2157
+ "rev"
2158
+ ],
2159
+ "additionalProperties": false
2160
+ },
2161
+ "ContinuityDuty": {
2162
+ "type": "object",
2163
+ "properties": {
2164
+ "kind": {
2165
+ "const": "continuity"
2166
+ },
2167
+ "v": {
2168
+ "const": 1
2169
+ },
2170
+ "id": {
2171
+ "type": "string"
2172
+ },
2173
+ "relId": {
2174
+ "type": "string"
2175
+ },
2176
+ "tuple": {
2177
+ "type": "string"
2178
+ },
2179
+ "step": {
2180
+ "enum": [
2181
+ "probe",
2182
+ "mapping"
2183
+ ]
2184
+ },
2185
+ "dueAt": {
2186
+ "$ref": "#/$defs/Millis"
2187
+ },
2188
+ "attempt": {
2189
+ "type": "integer",
2190
+ "minimum": 0,
2191
+ "maximum": 9007199254740991
2192
+ },
2193
+ "lastAt": {
2194
+ "$ref": "#/$defs/Millis"
2195
+ }
2196
+ },
2197
+ "required": [
2198
+ "kind",
2199
+ "v",
2200
+ "id",
2201
+ "relId",
2202
+ "tuple",
2203
+ "step"
2204
+ ],
2205
+ "additionalProperties": false
2206
+ },
2207
+ "MergeDuty": {
2208
+ "type": "object",
2209
+ "properties": {
2210
+ "kind": {
2211
+ "const": "merge"
2212
+ },
2213
+ "v": {
2214
+ "const": 1
2215
+ },
2216
+ "id": {
2217
+ "type": "string"
2218
+ },
2219
+ "entryIds": {
2220
+ "type": "array",
2221
+ "items": {
2222
+ "type": "string"
2223
+ },
2224
+ "uniqueItems": true
2225
+ },
2226
+ "relId": {
2227
+ "type": "string"
2228
+ },
2229
+ "witness": {
2230
+ "type": "object",
2231
+ "properties": {
2232
+ "heads": {
2233
+ "type": "object",
2234
+ "additionalProperties": {
2235
+ "type": "string"
2236
+ }
2237
+ },
2238
+ "superseded": {
2239
+ "type": "object",
2240
+ "additionalProperties": {
2241
+ "type": "array",
2242
+ "items": {
2243
+ "type": "string"
2244
+ },
2245
+ "uniqueItems": true
2246
+ }
2247
+ }
2248
+ },
2249
+ "required": [
2250
+ "heads",
2251
+ "superseded"
2252
+ ],
2253
+ "additionalProperties": false
2254
+ },
2255
+ "dueAt": {
2256
+ "$ref": "#/$defs/Millis"
2257
+ }
2258
+ },
2259
+ "required": [
2260
+ "kind",
2261
+ "v",
2262
+ "id",
2263
+ "entryIds",
2264
+ "relId",
2265
+ "witness"
2266
+ ],
2267
+ "additionalProperties": false
2268
+ },
2269
+ "RotationDuty": {
2270
+ "type": "object",
2271
+ "properties": {
2272
+ "kind": {
2273
+ "const": "rotation"
2274
+ },
2275
+ "v": {
2276
+ "const": 1
2277
+ },
2278
+ "id": {
2279
+ "type": "string"
2280
+ },
2281
+ "rotationId": {
2282
+ "type": "string"
2283
+ },
2284
+ "dueAt": {
2285
+ "$ref": "#/$defs/Millis"
2286
+ },
2287
+ "attempt": {
2288
+ "type": "integer",
2289
+ "minimum": 0,
2290
+ "maximum": 9007199254740991
2291
+ },
2292
+ "lastAt": {
2293
+ "$ref": "#/$defs/Millis"
2294
+ }
2295
+ },
2296
+ "required": [
2297
+ "kind",
2298
+ "v",
2299
+ "id",
2300
+ "rotationId"
2301
+ ],
2302
+ "additionalProperties": false
2303
+ },
2304
+ "IntroAckDuty": {
2305
+ "type": "object",
2306
+ "properties": {
2307
+ "kind": {
2308
+ "const": "intro-ack"
2309
+ },
2310
+ "v": {
2311
+ "const": 1
2312
+ },
2313
+ "id": {
2314
+ "type": "string"
2315
+ },
2316
+ "act": {
2317
+ "type": "string"
2318
+ },
2319
+ "dueAt": {
2320
+ "$ref": "#/$defs/Millis"
2321
+ }
2322
+ },
2323
+ "required": [
2324
+ "kind",
2325
+ "v",
2326
+ "id",
2327
+ "act"
2328
+ ],
2329
+ "additionalProperties": false
2330
+ },
2331
+ "UnknownDuty": {
2332
+ "description": "a duty of a kind or version this library does not handle: kept as it is",
2333
+ "type": "object",
2334
+ "properties": {
2335
+ "kind": {
2336
+ "type": "string"
2337
+ },
2338
+ "v": {
2339
+ "type": "integer",
2340
+ "minimum": 0,
2341
+ "maximum": 9007199254740991
2342
+ },
2343
+ "id": {
2344
+ "type": "string"
2345
+ }
2346
+ },
2347
+ "required": [
2348
+ "kind",
2349
+ "v",
2350
+ "id"
2351
+ ],
2352
+ "additionalProperties": true,
2353
+ "not": {
2354
+ "anyOf": [
2355
+ {
2356
+ "properties": {
2357
+ "kind": {
2358
+ "const": "reissue-mapping"
2359
+ },
2360
+ "v": {
2361
+ "const": 1
2362
+ }
2363
+ },
2364
+ "required": [
2365
+ "kind",
2366
+ "v"
2367
+ ]
2368
+ },
2369
+ {
2370
+ "properties": {
2371
+ "kind": {
2372
+ "const": "class-on"
2373
+ },
2374
+ "v": {
2375
+ "const": 1
2376
+ }
2377
+ },
2378
+ "required": [
2379
+ "kind",
2380
+ "v"
2381
+ ]
2382
+ },
2383
+ {
2384
+ "properties": {
2385
+ "kind": {
2386
+ "const": "profile"
2387
+ },
2388
+ "v": {
2389
+ "const": 1
2390
+ }
2391
+ },
2392
+ "required": [
2393
+ "kind",
2394
+ "v"
2395
+ ]
2396
+ },
2397
+ {
2398
+ "properties": {
2399
+ "kind": {
2400
+ "const": "continuity"
2401
+ },
2402
+ "v": {
2403
+ "const": 1
2404
+ }
2405
+ },
2406
+ "required": [
2407
+ "kind",
2408
+ "v"
2409
+ ]
2410
+ },
2411
+ {
2412
+ "properties": {
2413
+ "kind": {
2414
+ "const": "merge"
2415
+ },
2416
+ "v": {
2417
+ "const": 1
2418
+ }
2419
+ },
2420
+ "required": [
2421
+ "kind",
2422
+ "v"
2423
+ ]
2424
+ },
2425
+ {
2426
+ "properties": {
2427
+ "kind": {
2428
+ "const": "rotation"
2429
+ },
2430
+ "v": {
2431
+ "const": 1
2432
+ }
2433
+ },
2434
+ "required": [
2435
+ "kind",
2436
+ "v"
2437
+ ]
2438
+ },
2439
+ {
2440
+ "properties": {
2441
+ "kind": {
2442
+ "const": "intro-ack"
2443
+ },
2444
+ "v": {
2445
+ "const": 1
2446
+ }
2447
+ },
2448
+ "required": [
2449
+ "kind",
2450
+ "v"
2451
+ ]
2452
+ }
2453
+ ]
2454
+ }
2455
+ },
2456
+ "Duty": {
2457
+ "anyOf": [
2458
+ {
2459
+ "$ref": "#/$defs/ReissueMappingDuty"
2460
+ },
2461
+ {
2462
+ "$ref": "#/$defs/ClassOnDuty"
2463
+ },
2464
+ {
2465
+ "$ref": "#/$defs/ProfileDuty"
2466
+ },
2467
+ {
2468
+ "$ref": "#/$defs/ContinuityDuty"
2469
+ },
2470
+ {
2471
+ "$ref": "#/$defs/MergeDuty"
2472
+ },
2473
+ {
2474
+ "$ref": "#/$defs/RotationDuty"
2475
+ },
2476
+ {
2477
+ "$ref": "#/$defs/IntroAckDuty"
2478
+ },
2479
+ {
2480
+ "$ref": "#/$defs/UnknownDuty"
2481
+ }
2482
+ ]
2483
+ },
2484
+ "Event": {
2485
+ "description": "a journaled event (events.ts)",
2486
+ "anyOf": [
2487
+ {
2488
+ "type": "object",
2489
+ "properties": {
2490
+ "type": {
2491
+ "const": "contact.added"
2492
+ },
2493
+ "eventId": {
2494
+ "type": "string"
2495
+ },
2496
+ "commitSeq": {
2497
+ "$ref": "#/$defs/Dec"
2498
+ },
2499
+ "contactId": {
2500
+ "type": "string"
2501
+ },
2502
+ "actId": {
2503
+ "type": "string"
2504
+ }
2505
+ },
2506
+ "required": [
2507
+ "type",
2508
+ "eventId",
2509
+ "commitSeq",
2510
+ "contactId"
2511
+ ],
2512
+ "additionalProperties": false
2513
+ },
2514
+ {
2515
+ "type": "object",
2516
+ "properties": {
2517
+ "type": {
2518
+ "const": "contact.verified"
2519
+ },
2520
+ "eventId": {
2521
+ "type": "string"
2522
+ },
2523
+ "commitSeq": {
2524
+ "$ref": "#/$defs/Dec"
2525
+ },
2526
+ "contactId": {
2527
+ "type": "string"
2528
+ },
2529
+ "relationshipId": {
2530
+ "type": "string"
2531
+ },
2532
+ "actId": {
2533
+ "type": "string"
2534
+ }
2535
+ },
2536
+ "required": [
2537
+ "type",
2538
+ "eventId",
2539
+ "commitSeq",
2540
+ "contactId",
2541
+ "relationshipId"
2542
+ ],
2543
+ "additionalProperties": false
2544
+ },
2545
+ {
2546
+ "type": "object",
2547
+ "properties": {
2548
+ "type": {
2549
+ "const": "contact.chained"
2550
+ },
2551
+ "eventId": {
2552
+ "type": "string"
2553
+ },
2554
+ "commitSeq": {
2555
+ "$ref": "#/$defs/Dec"
2556
+ },
2557
+ "contactId": {
2558
+ "type": "string"
2559
+ },
2560
+ "from": {
2561
+ "type": "string"
2562
+ },
2563
+ "into": {
2564
+ "type": "string"
2565
+ },
2566
+ "actId": {
2567
+ "type": "string"
2568
+ }
2569
+ },
2570
+ "required": [
2571
+ "type",
2572
+ "eventId",
2573
+ "commitSeq",
2574
+ "contactId",
2575
+ "from",
2576
+ "into"
2577
+ ],
2578
+ "additionalProperties": false
2579
+ },
2580
+ {
2581
+ "type": "object",
2582
+ "properties": {
2583
+ "type": {
2584
+ "const": "contact.merged"
2585
+ },
2586
+ "eventId": {
2587
+ "type": "string"
2588
+ },
2589
+ "commitSeq": {
2590
+ "$ref": "#/$defs/Dec"
2591
+ },
2592
+ "contactId": {
2593
+ "type": "string"
2594
+ },
2595
+ "merged": {
2596
+ "type": "array",
2597
+ "items": {
2598
+ "type": "string"
2599
+ }
2600
+ },
2601
+ "actId": {
2602
+ "type": "string"
2603
+ }
2604
+ },
2605
+ "required": [
2606
+ "type",
2607
+ "eventId",
2608
+ "commitSeq",
2609
+ "contactId",
2610
+ "merged"
2611
+ ],
2612
+ "additionalProperties": false
2613
+ },
2614
+ {
2615
+ "type": "object",
2616
+ "properties": {
2617
+ "type": {
2618
+ "const": "contact.split"
2619
+ },
2620
+ "eventId": {
2621
+ "type": "string"
2622
+ },
2623
+ "commitSeq": {
2624
+ "$ref": "#/$defs/Dec"
2625
+ },
2626
+ "contactId": {
2627
+ "type": "string"
2628
+ },
2629
+ "leaver": {
2630
+ "type": "string"
2631
+ },
2632
+ "relationshipId": {
2633
+ "type": "string"
2634
+ },
2635
+ "actId": {
2636
+ "type": "string"
2637
+ }
2638
+ },
2639
+ "required": [
2640
+ "type",
2641
+ "eventId",
2642
+ "commitSeq",
2643
+ "contactId",
2644
+ "leaver",
2645
+ "relationshipId"
2646
+ ],
2647
+ "additionalProperties": false
2648
+ },
2649
+ {
2650
+ "type": "object",
2651
+ "properties": {
2652
+ "type": {
2653
+ "const": "contact.departed"
2654
+ },
2655
+ "eventId": {
2656
+ "type": "string"
2657
+ },
2658
+ "commitSeq": {
2659
+ "$ref": "#/$defs/Dec"
2660
+ },
2661
+ "contactId": {
2662
+ "type": "string"
2663
+ },
2664
+ "relationshipIds": {
2665
+ "type": "array",
2666
+ "items": {
2667
+ "type": "string"
2668
+ }
2669
+ },
2670
+ "removed": {
2671
+ "type": "boolean"
2672
+ },
2673
+ "actId": {
2674
+ "type": "string"
2675
+ }
2676
+ },
2677
+ "required": [
2678
+ "type",
2679
+ "eventId",
2680
+ "commitSeq",
2681
+ "contactId",
2682
+ "relationshipIds",
2683
+ "removed"
2684
+ ],
2685
+ "additionalProperties": false
2686
+ },
2687
+ {
2688
+ "type": "object",
2689
+ "properties": {
2690
+ "type": {
2691
+ "const": "trust.given"
2692
+ },
2693
+ "eventId": {
2694
+ "type": "string"
2695
+ },
2696
+ "commitSeq": {
2697
+ "$ref": "#/$defs/Dec"
2698
+ },
2699
+ "contactId": {
2700
+ "type": "string"
2701
+ },
2702
+ "actId": {
2703
+ "type": "string"
2704
+ }
2705
+ },
2706
+ "required": [
2707
+ "type",
2708
+ "eventId",
2709
+ "commitSeq",
2710
+ "contactId"
2711
+ ],
2712
+ "additionalProperties": false
2713
+ },
2714
+ {
2715
+ "type": "object",
2716
+ "properties": {
2717
+ "type": {
2718
+ "const": "trust.received"
2719
+ },
2720
+ "eventId": {
2721
+ "type": "string"
2722
+ },
2723
+ "commitSeq": {
2724
+ "$ref": "#/$defs/Dec"
2725
+ },
2726
+ "contactId": {
2727
+ "type": "string"
2728
+ },
2729
+ "actId": {
2730
+ "type": "string"
2731
+ }
2732
+ },
2733
+ "required": [
2734
+ "type",
2735
+ "eventId",
2736
+ "commitSeq",
2737
+ "contactId"
2738
+ ],
2739
+ "additionalProperties": false
2740
+ },
2741
+ {
2742
+ "type": "object",
2743
+ "properties": {
2744
+ "type": {
2745
+ "const": "trust.paused"
2746
+ },
2747
+ "eventId": {
2748
+ "type": "string"
2749
+ },
2750
+ "commitSeq": {
2751
+ "$ref": "#/$defs/Dec"
2752
+ },
2753
+ "contactId": {
2754
+ "type": "string"
2755
+ },
2756
+ "paused": {
2757
+ "type": "boolean"
2758
+ },
2759
+ "actId": {
2760
+ "type": "string"
2761
+ }
2762
+ },
2763
+ "required": [
2764
+ "type",
2765
+ "eventId",
2766
+ "commitSeq",
2767
+ "contactId",
2768
+ "paused"
2769
+ ],
2770
+ "additionalProperties": false
2771
+ },
2772
+ {
2773
+ "type": "object",
2774
+ "properties": {
2775
+ "type": {
2776
+ "const": "group.joined"
2777
+ },
2778
+ "eventId": {
2779
+ "type": "string"
2780
+ },
2781
+ "commitSeq": {
2782
+ "$ref": "#/$defs/Dec"
2783
+ },
2784
+ "groupId": {
2785
+ "type": "string"
2786
+ },
2787
+ "actId": {
2788
+ "type": "string"
2789
+ }
2790
+ },
2791
+ "required": [
2792
+ "type",
2793
+ "eventId",
2794
+ "commitSeq",
2795
+ "groupId"
2796
+ ],
2797
+ "additionalProperties": false
2798
+ },
2799
+ {
2800
+ "type": "object",
2801
+ "properties": {
2802
+ "type": {
2803
+ "const": "prompt.opened"
2804
+ },
2805
+ "eventId": {
2806
+ "type": "string"
2807
+ },
2808
+ "commitSeq": {
2809
+ "$ref": "#/$defs/Dec"
2810
+ },
2811
+ "promptId": {
2812
+ "type": "string"
2813
+ },
2814
+ "kind": {
2815
+ "enum": [
2816
+ "encounter-confirm",
2817
+ "group-invite",
2818
+ "introduction"
2819
+ ]
2820
+ },
2821
+ "actId": {
2822
+ "type": "string"
2823
+ }
2824
+ },
2825
+ "required": [
2826
+ "type",
2827
+ "eventId",
2828
+ "commitSeq",
2829
+ "promptId",
2830
+ "kind"
2831
+ ],
2832
+ "additionalProperties": false
2833
+ },
2834
+ {
2835
+ "type": "object",
2836
+ "properties": {
2837
+ "type": {
2838
+ "const": "prompt.decided"
2839
+ },
2840
+ "eventId": {
2841
+ "type": "string"
2842
+ },
2843
+ "commitSeq": {
2844
+ "$ref": "#/$defs/Dec"
2845
+ },
2846
+ "promptId": {
2847
+ "type": "string"
2848
+ },
2849
+ "kind": {
2850
+ "enum": [
2851
+ "encounter-confirm",
2852
+ "group-invite",
2853
+ "introduction"
2854
+ ]
2855
+ },
2856
+ "choice": {
2857
+ "enum": [
2858
+ "accept",
2859
+ "decline"
2860
+ ]
2861
+ },
2862
+ "actId": {
2863
+ "type": "string"
2864
+ }
2865
+ },
2866
+ "required": [
2867
+ "type",
2868
+ "eventId",
2869
+ "commitSeq",
2870
+ "promptId",
2871
+ "kind",
2872
+ "choice"
2873
+ ],
2874
+ "additionalProperties": false
2875
+ },
2876
+ {
2877
+ "type": "object",
2878
+ "properties": {
2879
+ "type": {
2880
+ "const": "delivery.status"
2881
+ },
2882
+ "eventId": {
2883
+ "type": "string"
2884
+ },
2885
+ "commitSeq": {
2886
+ "$ref": "#/$defs/Dec"
2887
+ },
2888
+ "digest": {
2889
+ "type": "string"
2890
+ },
2891
+ "threadId": {
2892
+ "type": "string"
2893
+ },
2894
+ "status": {
2895
+ "enum": [
2896
+ "submitted",
2897
+ "accepted",
2898
+ "delivered",
2899
+ "failed"
2900
+ ]
2901
+ },
2902
+ "actId": {
2903
+ "type": "string"
2904
+ },
2905
+ "late": {
2906
+ "type": "boolean"
2907
+ }
2908
+ },
2909
+ "required": [
2910
+ "type",
2911
+ "eventId",
2912
+ "commitSeq",
2913
+ "digest",
2914
+ "threadId",
2915
+ "status"
2916
+ ],
2917
+ "additionalProperties": false
2918
+ },
2919
+ {
2920
+ "type": "object",
2921
+ "properties": {
2922
+ "type": {
2923
+ "const": "profile.updated"
2924
+ },
2925
+ "eventId": {
2926
+ "type": "string"
2927
+ },
2928
+ "commitSeq": {
2929
+ "$ref": "#/$defs/Dec"
2930
+ },
2931
+ "contactId": {
2932
+ "anyOf": [
2933
+ {
2934
+ "type": "string"
2935
+ },
2936
+ {
2937
+ "type": "null"
2938
+ }
2939
+ ]
2940
+ },
2941
+ "actId": {
2942
+ "type": "string"
2943
+ }
2944
+ },
2945
+ "required": [
2946
+ "type",
2947
+ "eventId",
2948
+ "commitSeq",
2949
+ "contactId"
2950
+ ],
2951
+ "additionalProperties": false
2952
+ },
2953
+ {
2954
+ "type": "object",
2955
+ "properties": {
2956
+ "type": {
2957
+ "const": "anchor.rotated"
2958
+ },
2959
+ "eventId": {
2960
+ "type": "string"
2961
+ },
2962
+ "commitSeq": {
2963
+ "$ref": "#/$defs/Dec"
2964
+ },
2965
+ "generation": {
2966
+ "$ref": "#/$defs/Dec"
2967
+ },
2968
+ "actId": {
2969
+ "type": "string"
2970
+ }
2971
+ },
2972
+ "required": [
2973
+ "type",
2974
+ "eventId",
2975
+ "commitSeq",
2976
+ "generation"
2977
+ ],
2978
+ "additionalProperties": false
2979
+ },
2980
+ {
2981
+ "type": "object",
2982
+ "properties": {
2983
+ "type": {
2984
+ "const": "device.added"
2985
+ },
2986
+ "eventId": {
2987
+ "type": "string"
2988
+ },
2989
+ "commitSeq": {
2990
+ "$ref": "#/$defs/Dec"
2991
+ },
2992
+ "name": {
2993
+ "type": "string"
2994
+ },
2995
+ "actId": {
2996
+ "type": "string"
2997
+ }
2998
+ },
2999
+ "required": [
3000
+ "type",
3001
+ "eventId",
3002
+ "commitSeq",
3003
+ "name"
3004
+ ],
3005
+ "additionalProperties": false
3006
+ },
3007
+ {
3008
+ "type": "object",
3009
+ "properties": {
3010
+ "type": {
3011
+ "const": "device.revoked"
3012
+ },
3013
+ "eventId": {
3014
+ "type": "string"
3015
+ },
3016
+ "commitSeq": {
3017
+ "$ref": "#/$defs/Dec"
3018
+ },
3019
+ "name": {
3020
+ "type": "string"
3021
+ },
3022
+ "actId": {
3023
+ "type": "string"
3024
+ }
3025
+ },
3026
+ "required": [
3027
+ "type",
3028
+ "eventId",
3029
+ "commitSeq",
3030
+ "name"
3031
+ ],
3032
+ "additionalProperties": false
3033
+ },
3034
+ {
3035
+ "type": "object",
3036
+ "properties": {
3037
+ "type": {
3038
+ "const": "duty.unsupported"
3039
+ },
3040
+ "eventId": {
3041
+ "type": "string"
3042
+ },
3043
+ "commitSeq": {
3044
+ "$ref": "#/$defs/Dec"
3045
+ },
3046
+ "dutyId": {
3047
+ "type": "string"
3048
+ },
3049
+ "kind": {
3050
+ "type": "string"
3051
+ },
3052
+ "v": {
3053
+ "type": "integer",
3054
+ "minimum": 0,
3055
+ "maximum": 9007199254740991
3056
+ },
3057
+ "actId": {
3058
+ "type": "string"
3059
+ }
3060
+ },
3061
+ "required": [
3062
+ "type",
3063
+ "eventId",
3064
+ "commitSeq",
3065
+ "dutyId",
3066
+ "kind",
3067
+ "v"
3068
+ ],
3069
+ "additionalProperties": false
3070
+ },
3071
+ {
3072
+ "type": "object",
3073
+ "properties": {
3074
+ "type": {
3075
+ "const": "star.accepted"
3076
+ },
3077
+ "eventId": {
3078
+ "type": "string"
3079
+ },
3080
+ "commitSeq": {
3081
+ "$ref": "#/$defs/Dec"
3082
+ },
3083
+ "contactId": {
3084
+ "type": "string"
3085
+ },
3086
+ "relationshipId": {
3087
+ "type": "string"
3088
+ },
3089
+ "salt": {
3090
+ "$ref": "#/$defs/Dec"
3091
+ },
3092
+ "actId": {
3093
+ "type": "string"
3094
+ }
3095
+ },
3096
+ "required": [
3097
+ "type",
3098
+ "eventId",
3099
+ "commitSeq",
3100
+ "contactId",
3101
+ "relationshipId",
3102
+ "salt"
3103
+ ],
3104
+ "additionalProperties": false
3105
+ },
3106
+ {
3107
+ "type": "object",
3108
+ "properties": {
3109
+ "type": {
3110
+ "const": "groupStar.accepted"
3111
+ },
3112
+ "eventId": {
3113
+ "type": "string"
3114
+ },
3115
+ "commitSeq": {
3116
+ "$ref": "#/$defs/Dec"
3117
+ },
3118
+ "contactId": {
3119
+ "type": "string"
3120
+ },
3121
+ "relationshipId": {
3122
+ "type": "string"
3123
+ },
3124
+ "salt": {
3125
+ "$ref": "#/$defs/Dec"
3126
+ },
3127
+ "actId": {
3128
+ "type": "string"
3129
+ }
3130
+ },
3131
+ "required": [
3132
+ "type",
3133
+ "eventId",
3134
+ "commitSeq",
3135
+ "contactId",
3136
+ "relationshipId",
3137
+ "salt"
3138
+ ],
3139
+ "additionalProperties": false
3140
+ },
3141
+ {
3142
+ "type": "object",
3143
+ "properties": {
3144
+ "type": {
3145
+ "const": "encounter.shown"
3146
+ },
3147
+ "eventId": {
3148
+ "type": "string"
3149
+ },
3150
+ "commitSeq": {
3151
+ "$ref": "#/$defs/Dec"
3152
+ },
3153
+ "challenge": {
3154
+ "type": "string"
3155
+ },
3156
+ "card": {
3157
+ "type": "object"
3158
+ },
3159
+ "actId": {
3160
+ "type": "string"
3161
+ }
3162
+ },
3163
+ "required": [
3164
+ "type",
3165
+ "eventId",
3166
+ "commitSeq",
3167
+ "challenge",
3168
+ "card"
3169
+ ],
3170
+ "additionalProperties": false
3171
+ },
3172
+ {
3173
+ "type": "object",
3174
+ "properties": {
3175
+ "type": {
3176
+ "const": "encounter.scanned"
3177
+ },
3178
+ "eventId": {
3179
+ "type": "string"
3180
+ },
3181
+ "commitSeq": {
3182
+ "$ref": "#/$defs/Dec"
3183
+ },
3184
+ "contactId": {
3185
+ "type": "string"
3186
+ },
3187
+ "card": {
3188
+ "type": "object"
3189
+ },
3190
+ "actId": {
3191
+ "type": "string"
3192
+ }
3193
+ },
3194
+ "required": [
3195
+ "type",
3196
+ "eventId",
3197
+ "commitSeq",
3198
+ "contactId",
3199
+ "card"
3200
+ ],
3201
+ "additionalProperties": false
3202
+ },
3203
+ {
3204
+ "type": "object",
3205
+ "properties": {
3206
+ "type": {
3207
+ "const": "encounter.recorded"
3208
+ },
3209
+ "eventId": {
3210
+ "type": "string"
3211
+ },
3212
+ "commitSeq": {
3213
+ "$ref": "#/$defs/Dec"
3214
+ },
3215
+ "contactId": {
3216
+ "type": "string"
3217
+ },
3218
+ "relationshipId": {
3219
+ "type": "string"
3220
+ },
3221
+ "role": {
3222
+ "enum": [
3223
+ "scanner",
3224
+ "displayer"
3225
+ ]
3226
+ },
3227
+ "actId": {
3228
+ "type": "string"
3229
+ }
3230
+ },
3231
+ "required": [
3232
+ "type",
3233
+ "eventId",
3234
+ "commitSeq",
3235
+ "contactId",
3236
+ "relationshipId",
3237
+ "role"
3238
+ ],
3239
+ "additionalProperties": false
3240
+ },
3241
+ {
3242
+ "type": "object",
3243
+ "properties": {
3244
+ "type": {
3245
+ "const": "encounter.accepted"
3246
+ },
3247
+ "eventId": {
3248
+ "type": "string"
3249
+ },
3250
+ "commitSeq": {
3251
+ "$ref": "#/$defs/Dec"
3252
+ },
3253
+ "contactId": {
3254
+ "type": "string"
3255
+ },
3256
+ "relationshipId": {
3257
+ "type": "string"
3258
+ },
3259
+ "mutual": {
3260
+ "type": "boolean"
3261
+ },
3262
+ "actId": {
3263
+ "type": "string"
3264
+ }
3265
+ },
3266
+ "required": [
3267
+ "type",
3268
+ "eventId",
3269
+ "commitSeq",
3270
+ "contactId",
3271
+ "relationshipId",
3272
+ "mutual"
3273
+ ],
3274
+ "additionalProperties": false
3275
+ },
3276
+ {
3277
+ "type": "object",
3278
+ "properties": {
3279
+ "type": {
3280
+ "const": "group.founded"
3281
+ },
3282
+ "eventId": {
3283
+ "type": "string"
3284
+ },
3285
+ "commitSeq": {
3286
+ "$ref": "#/$defs/Dec"
3287
+ },
3288
+ "groupId": {
3289
+ "type": "string"
3290
+ },
3291
+ "actId": {
3292
+ "type": "string"
3293
+ }
3294
+ },
3295
+ "required": [
3296
+ "type",
3297
+ "eventId",
3298
+ "commitSeq",
3299
+ "groupId"
3300
+ ],
3301
+ "additionalProperties": false
3302
+ },
3303
+ {
3304
+ "type": "object",
3305
+ "properties": {
3306
+ "type": {
3307
+ "const": "group.admitted"
3308
+ },
3309
+ "eventId": {
3310
+ "type": "string"
3311
+ },
3312
+ "commitSeq": {
3313
+ "$ref": "#/$defs/Dec"
3314
+ },
3315
+ "groupId": {
3316
+ "type": "string"
3317
+ },
3318
+ "member": {
3319
+ "type": "string"
3320
+ },
3321
+ "actId": {
3322
+ "type": "string"
3323
+ }
3324
+ },
3325
+ "required": [
3326
+ "type",
3327
+ "eventId",
3328
+ "commitSeq",
3329
+ "groupId",
3330
+ "member"
3331
+ ],
3332
+ "additionalProperties": false
3333
+ },
3334
+ {
3335
+ "type": "object",
3336
+ "properties": {
3337
+ "type": {
3338
+ "const": "group.vouched"
3339
+ },
3340
+ "eventId": {
3341
+ "type": "string"
3342
+ },
3343
+ "commitSeq": {
3344
+ "$ref": "#/$defs/Dec"
3345
+ },
3346
+ "groupId": {
3347
+ "type": "string"
3348
+ },
3349
+ "member": {
3350
+ "type": "string"
3351
+ },
3352
+ "actId": {
3353
+ "type": "string"
3354
+ }
3355
+ },
3356
+ "required": [
3357
+ "type",
3358
+ "eventId",
3359
+ "commitSeq",
3360
+ "groupId",
3361
+ "member"
3362
+ ],
3363
+ "additionalProperties": false
3364
+ },
3365
+ {
3366
+ "type": "object",
3367
+ "properties": {
3368
+ "type": {
3369
+ "const": "contact.blocked"
3370
+ },
3371
+ "eventId": {
3372
+ "type": "string"
3373
+ },
3374
+ "commitSeq": {
3375
+ "$ref": "#/$defs/Dec"
3376
+ },
3377
+ "contactId": {
3378
+ "type": "string"
3379
+ },
3380
+ "blocked": {
3381
+ "type": "boolean"
3382
+ },
3383
+ "actId": {
3384
+ "type": "string"
3385
+ }
3386
+ },
3387
+ "required": [
3388
+ "type",
3389
+ "eventId",
3390
+ "commitSeq",
3391
+ "contactId",
3392
+ "blocked"
3393
+ ],
3394
+ "additionalProperties": false
3395
+ },
3396
+ {
3397
+ "type": "object",
3398
+ "properties": {
3399
+ "type": {
3400
+ "const": "message.sent"
3401
+ },
3402
+ "eventId": {
3403
+ "type": "string"
3404
+ },
3405
+ "commitSeq": {
3406
+ "$ref": "#/$defs/Dec"
3407
+ },
3408
+ "contactId": {
3409
+ "type": "string"
3410
+ },
3411
+ "mid": {
3412
+ "type": "string"
3413
+ },
3414
+ "digest": {
3415
+ "type": "string"
3416
+ },
3417
+ "actId": {
3418
+ "type": "string"
3419
+ }
3420
+ },
3421
+ "required": [
3422
+ "type",
3423
+ "eventId",
3424
+ "commitSeq",
3425
+ "contactId",
3426
+ "mid",
3427
+ "digest"
3428
+ ],
3429
+ "additionalProperties": false
3430
+ },
3431
+ {
3432
+ "type": "object",
3433
+ "properties": {
3434
+ "type": {
3435
+ "const": "message.received"
3436
+ },
3437
+ "eventId": {
3438
+ "type": "string"
3439
+ },
3440
+ "commitSeq": {
3441
+ "$ref": "#/$defs/Dec"
3442
+ },
3443
+ "contactId": {
3444
+ "type": "string"
3445
+ },
3446
+ "inboxId": {
3447
+ "type": "string"
3448
+ },
3449
+ "actId": {
3450
+ "type": "string"
3451
+ }
3452
+ },
3453
+ "required": [
3454
+ "type",
3455
+ "eventId",
3456
+ "commitSeq",
3457
+ "contactId",
3458
+ "inboxId"
3459
+ ],
3460
+ "additionalProperties": false
3461
+ }
3462
+ ]
3463
+ },
3464
+ "RosterEntry": {
3465
+ "type": "object",
3466
+ "properties": {
3467
+ "anchor": {
3468
+ "type": "string"
3469
+ },
3470
+ "op": {
3471
+ "type": "string"
3472
+ },
3473
+ "keyAgreement": {
3474
+ "type": "string"
3475
+ },
3476
+ "addedAt": {
3477
+ "$ref": "#/$defs/Millis"
3478
+ },
3479
+ "name": {
3480
+ "type": "string"
3481
+ },
3482
+ "contactId": {
3483
+ "type": "string"
3484
+ },
3485
+ "rkid": {
3486
+ "type": "string"
3487
+ }
3488
+ },
3489
+ "required": [
3490
+ "anchor",
3491
+ "op",
3492
+ "keyAgreement",
3493
+ "addedAt"
3494
+ ],
3495
+ "additionalProperties": false
3496
+ },
3497
+ "OpenInvitation": {
3498
+ "type": "object",
3499
+ "properties": {
3500
+ "invitee": {
3501
+ "type": "string"
3502
+ },
3503
+ "keyAgreement": {
3504
+ "type": "string"
3505
+ },
3506
+ "contactId": {
3507
+ "type": "string"
3508
+ },
3509
+ "rkid": {
3510
+ "type": "string"
3511
+ },
3512
+ "threadId": {
3513
+ "type": "string"
3514
+ },
3515
+ "credDigest": {
3516
+ "type": "string"
3517
+ },
3518
+ "invite": {
3519
+ "type": "object"
3520
+ },
3521
+ "validUntil": {
3522
+ "$ref": "#/$defs/Millis"
3523
+ }
3524
+ },
3525
+ "required": [
3526
+ "invitee",
3527
+ "keyAgreement",
3528
+ "contactId",
3529
+ "rkid",
3530
+ "threadId",
3531
+ "credDigest",
3532
+ "invite",
3533
+ "validUntil"
3534
+ ],
3535
+ "additionalProperties": false
3536
+ },
3537
+ "Evidence": {
3538
+ "type": "object",
3539
+ "properties": {
3540
+ "invite": {
3541
+ "type": "object"
3542
+ },
3543
+ "accept": {
3544
+ "type": "object"
3545
+ },
3546
+ "vouches": {
3547
+ "type": "array",
3548
+ "items": {
3549
+ "type": "object"
3550
+ }
3551
+ },
3552
+ "at": {
3553
+ "$ref": "#/$defs/Millis"
3554
+ }
3555
+ },
3556
+ "required": [
3557
+ "invite",
3558
+ "accept",
3559
+ "vouches",
3560
+ "at"
3561
+ ],
3562
+ "additionalProperties": false
3563
+ },
3564
+ "Group": {
3565
+ "description": "a group the holder is in; a listed group carries memberAnchor and memberOp (Trust 5400)",
3566
+ "type": "object",
3567
+ "properties": {
3568
+ "id": {
3569
+ "type": "string"
3570
+ },
3571
+ "name": {
3572
+ "type": "string"
3573
+ },
3574
+ "memberLabel": {
3575
+ "type": "string"
3576
+ },
3577
+ "rules": {
3578
+ "type": "object",
3579
+ "properties": {
3580
+ "vouchThreshold": {
3581
+ "$ref": "#/$defs/Dec"
3582
+ }
3583
+ },
3584
+ "required": [
3585
+ "vouchThreshold"
3586
+ ],
3587
+ "additionalProperties": false
3588
+ },
3589
+ "listed": {
3590
+ "type": "boolean"
3591
+ },
3592
+ "roster": {
3593
+ "type": "object",
3594
+ "additionalProperties": {
3595
+ "$ref": "#/$defs/RosterEntry"
3596
+ }
3597
+ },
3598
+ "invitations": {
3599
+ "type": "object",
3600
+ "additionalProperties": {
3601
+ "$ref": "#/$defs/OpenInvitation"
3602
+ }
3603
+ },
3604
+ "evidence": {
3605
+ "type": "object",
3606
+ "additionalProperties": {
3607
+ "$ref": "#/$defs/Evidence"
3608
+ }
3609
+ },
3610
+ "preludes": {
3611
+ "type": "object",
3612
+ "additionalProperties": {
3613
+ "type": "object",
3614
+ "properties": {
3615
+ "contactId": {
3616
+ "type": "string"
3617
+ },
3618
+ "rkid": {
3619
+ "type": "string"
3620
+ },
3621
+ "at": {
3622
+ "$ref": "#/$defs/Millis"
3623
+ }
3624
+ },
3625
+ "required": [
3626
+ "contactId",
3627
+ "rkid",
3628
+ "at"
3629
+ ],
3630
+ "additionalProperties": false
3631
+ }
3632
+ },
3633
+ "did": {
3634
+ "type": "string"
3635
+ },
3636
+ "genesis": {
3637
+ "type": "object"
3638
+ },
3639
+ "memberAnchor": {
3640
+ "type": "string"
3641
+ },
3642
+ "memberOp": {
3643
+ "type": "string"
3644
+ },
3645
+ "acceptDigest": {
3646
+ "type": "string"
3647
+ }
3648
+ },
3649
+ "required": [
3650
+ "id",
3651
+ "name",
3652
+ "memberLabel",
3653
+ "rules",
3654
+ "listed",
3655
+ "roster",
3656
+ "invitations",
3657
+ "evidence",
3658
+ "preludes"
3659
+ ],
3660
+ "additionalProperties": false,
3661
+ "if": {
3662
+ "properties": {
3663
+ "listed": {
3664
+ "const": true
3665
+ }
3666
+ },
3667
+ "required": [
3668
+ "listed"
3669
+ ]
3670
+ },
3671
+ "then": {
3672
+ "required": [
3673
+ "memberAnchor",
3674
+ "memberOp"
3675
+ ]
3676
+ }
3677
+ },
3678
+ "HeldCredential": {
3679
+ "type": "object",
3680
+ "properties": {
3681
+ "digest": {
3682
+ "type": "string"
3683
+ },
3684
+ "credential": {
3685
+ "type": "object"
3686
+ }
3687
+ },
3688
+ "required": [
3689
+ "digest",
3690
+ "credential"
3691
+ ],
3692
+ "additionalProperties": false
3693
+ },
3694
+ "EnactmentRecord": {
3695
+ "type": "object",
3696
+ "properties": {
3697
+ "ceremony": {
3698
+ "type": "string"
3699
+ },
3700
+ "own": {
3701
+ "type": "string"
3702
+ },
3703
+ "tCh": {
3704
+ "$ref": "#/$defs/Millis"
3705
+ },
3706
+ "peer": {
3707
+ "type": "string"
3708
+ },
3709
+ "counterpart": {
3710
+ "type": "string"
3711
+ },
3712
+ "card": {
3713
+ "type": "object"
3714
+ },
3715
+ "bind": {
3716
+ "type": "string"
3717
+ },
3718
+ "at": {
3719
+ "$ref": "#/$defs/Millis"
3720
+ },
3721
+ "label": {
3722
+ "type": "string"
3723
+ },
3724
+ "relId": {
3725
+ "type": "string"
3726
+ },
3727
+ "role": {
3728
+ "enum": [
3729
+ "scanner",
3730
+ "displayer"
3731
+ ]
3732
+ },
3733
+ "out": {
3734
+ "anyOf": [
3735
+ {
3736
+ "$ref": "#/$defs/HeldCredential"
3737
+ },
3738
+ {
3739
+ "type": "null"
3740
+ }
3741
+ ]
3742
+ },
3743
+ "in": {
3744
+ "anyOf": [
3745
+ {
3746
+ "$ref": "#/$defs/HeldCredential"
3747
+ },
3748
+ {
3749
+ "type": "null"
3750
+ }
3751
+ ]
3752
+ },
3753
+ "thread": {
3754
+ "anyOf": [
3755
+ {
3756
+ "type": "string"
3757
+ },
3758
+ {
3759
+ "type": "null"
3760
+ }
3761
+ ]
3762
+ },
3763
+ "bundleDigest": {
3764
+ "anyOf": [
3765
+ {
3766
+ "type": "string"
3767
+ },
3768
+ {
3769
+ "type": "null"
3770
+ }
3771
+ ]
3772
+ },
3773
+ "threads": {
3774
+ "type": "object",
3775
+ "additionalProperties": {
3776
+ "type": "string"
3777
+ }
3778
+ },
3779
+ "sentCard": {
3780
+ "anyOf": [
3781
+ {
3782
+ "type": "object"
3783
+ },
3784
+ {
3785
+ "type": "null"
3786
+ }
3787
+ ]
3788
+ },
3789
+ "counterPending": {
3790
+ "type": "boolean"
3791
+ }
3792
+ },
3793
+ "required": [
3794
+ "ceremony",
3795
+ "own",
3796
+ "tCh",
3797
+ "peer",
3798
+ "counterpart",
3799
+ "card",
3800
+ "bind",
3801
+ "at",
3802
+ "label",
3803
+ "relId",
3804
+ "role",
3805
+ "out",
3806
+ "in",
3807
+ "thread",
3808
+ "bundleDigest",
3809
+ "threads",
3810
+ "sentCard",
3811
+ "counterPending"
3812
+ ],
3813
+ "additionalProperties": false
3814
+ },
3815
+ "IntroAct": {
3816
+ "type": "object",
3817
+ "properties": {
3818
+ "key": {
3819
+ "type": "string"
3820
+ },
3821
+ "act": {
3822
+ "type": "string"
3823
+ },
3824
+ "role": {
3825
+ "enum": [
3826
+ "requester",
3827
+ "mediator",
3828
+ "target"
3829
+ ]
3830
+ },
3831
+ "status": {
3832
+ "enum": [
3833
+ "sent",
3834
+ "acked",
3835
+ "completed",
3836
+ "failed",
3837
+ "received",
3838
+ "forwarded",
3839
+ "consented",
3840
+ "refused"
3841
+ ]
3842
+ },
3843
+ "issuedAt": {
3844
+ "$ref": "#/$defs/Millis"
3845
+ },
3846
+ "request": {
3847
+ "type": "object"
3848
+ },
3849
+ "requestCard": {
3850
+ "type": "object"
3851
+ },
3852
+ "reply": {
3853
+ "anyOf": [
3854
+ {
3855
+ "type": "object"
3856
+ },
3857
+ {
3858
+ "type": "null"
3859
+ }
3860
+ ]
3861
+ },
3862
+ "replyCard": {
3863
+ "anyOf": [
3864
+ {
3865
+ "type": "object"
3866
+ },
3867
+ {
3868
+ "type": "null"
3869
+ }
3870
+ ]
3871
+ },
3872
+ "pins": {
3873
+ "type": "object",
3874
+ "properties": {
3875
+ "requester": {
3876
+ "type": "string"
3877
+ },
3878
+ "target": {
3879
+ "type": "string"
3880
+ },
3881
+ "mediator": {
3882
+ "type": "string"
3883
+ }
3884
+ },
3885
+ "required": [],
3886
+ "additionalProperties": false
3887
+ },
3888
+ "threads": {
3889
+ "type": "object",
3890
+ "properties": {
3891
+ "request": {
3892
+ "type": "string"
3893
+ },
3894
+ "forward": {
3895
+ "type": "string"
3896
+ }
3897
+ },
3898
+ "required": [
3899
+ "request"
3900
+ ],
3901
+ "additionalProperties": false
3902
+ },
3903
+ "at": {
3904
+ "$ref": "#/$defs/Millis"
3905
+ },
3906
+ "ackDelayMs": {
3907
+ "type": "integer",
3908
+ "minimum": 0,
3909
+ "maximum": 9007199254740991
3910
+ },
3911
+ "ownLabel": {
3912
+ "anyOf": [
3913
+ {
3914
+ "type": "string"
3915
+ },
3916
+ {
3917
+ "type": "null"
3918
+ }
3919
+ ]
3920
+ },
3921
+ "ack": {
3922
+ "anyOf": [
3923
+ {
3924
+ "type": "object"
3925
+ },
3926
+ {
3927
+ "type": "null"
3928
+ }
3929
+ ]
3930
+ },
3931
+ "replyForwarded": {
3932
+ "type": "boolean"
3933
+ },
3934
+ "vouchersSent": {
3935
+ "type": "boolean"
3936
+ },
3937
+ "pendingVoucher": {
3938
+ "anyOf": [
3939
+ {
3940
+ "type": "object"
3941
+ },
3942
+ {
3943
+ "type": "null"
3944
+ }
3945
+ ]
3946
+ },
3947
+ "voucher": {
3948
+ "anyOf": [
3949
+ {
3950
+ "type": "object"
3951
+ },
3952
+ {
3953
+ "type": "null"
3954
+ }
3955
+ ]
3956
+ },
3957
+ "vouched": {
3958
+ "type": "boolean"
3959
+ },
3960
+ "promptId": {
3961
+ "anyOf": [
3962
+ {
3963
+ "type": "string"
3964
+ },
3965
+ {
3966
+ "type": "null"
3967
+ }
3968
+ ]
3969
+ },
3970
+ "peerName": {
3971
+ "type": "string"
3972
+ }
3973
+ },
3974
+ "required": [
3975
+ "key",
3976
+ "act",
3977
+ "role",
3978
+ "status",
3979
+ "issuedAt",
3980
+ "request",
3981
+ "requestCard",
3982
+ "reply",
3983
+ "replyCard",
3984
+ "pins",
3985
+ "threads",
3986
+ "at",
3987
+ "ackDelayMs",
3988
+ "ownLabel",
3989
+ "ack",
3990
+ "replyForwarded",
3991
+ "vouchersSent",
3992
+ "pendingVoucher",
3993
+ "voucher",
3994
+ "vouched",
3995
+ "promptId"
3996
+ ],
3997
+ "additionalProperties": false
3998
+ },
3999
+ "Rotation": {
4000
+ "type": "object",
4001
+ "properties": {
4002
+ "id": {
4003
+ "type": "string"
4004
+ },
4005
+ "from": {
4006
+ "$ref": "#/$defs/Dec"
4007
+ },
4008
+ "to": {
4009
+ "$ref": "#/$defs/Dec"
4010
+ },
4011
+ "step": {
4012
+ "enum": [
4013
+ "register",
4014
+ "log",
4015
+ "duties"
4016
+ ]
4017
+ },
4018
+ "startedAt": {
4019
+ "$ref": "#/$defs/Millis"
4020
+ },
4021
+ "entry": true,
4022
+ "overHead": {
4023
+ "$ref": "#/$defs/LogHead"
4024
+ },
4025
+ "awaitHead": {
4026
+ "type": "object",
4027
+ "additionalProperties": {
4028
+ "anyOf": [
4029
+ {
4030
+ "type": "string"
4031
+ },
4032
+ {
4033
+ "type": "null"
4034
+ }
4035
+ ]
4036
+ }
4037
+ }
4038
+ },
4039
+ "required": [
4040
+ "id",
4041
+ "from",
4042
+ "to",
4043
+ "step",
4044
+ "startedAt",
4045
+ "entry",
4046
+ "overHead",
4047
+ "awaitHead"
4048
+ ],
4049
+ "additionalProperties": false
4050
+ },
4051
+ "Prompt": {
4052
+ "type": "object",
4053
+ "properties": {
4054
+ "id": {
4055
+ "type": "string"
4056
+ },
4057
+ "kind": {
4058
+ "enum": [
4059
+ "encounter-confirm",
4060
+ "group-invite",
4061
+ "introduction"
4062
+ ]
4063
+ },
4064
+ "openedAt": {
4065
+ "$ref": "#/$defs/Millis"
4066
+ },
4067
+ "contactId": {
4068
+ "type": "string"
4069
+ },
4070
+ "groupId": {
4071
+ "type": "string"
4072
+ },
4073
+ "expiresAt": {
4074
+ "$ref": "#/$defs/Millis"
4075
+ }
4076
+ },
4077
+ "required": [
4078
+ "id",
4079
+ "kind",
4080
+ "openedAt"
4081
+ ],
4082
+ "additionalProperties": false
4083
+ },
4084
+ "ActRecord": {
4085
+ "type": "object",
4086
+ "properties": {
4087
+ "actId": {
4088
+ "type": "string"
4089
+ },
4090
+ "inputHash": {
4091
+ "type": "string"
4092
+ },
4093
+ "commitSeq": {
4094
+ "$ref": "#/$defs/Dec"
4095
+ },
4096
+ "outboundDigests": {
4097
+ "type": "array",
4098
+ "items": {
4099
+ "type": "string"
4100
+ }
4101
+ },
4102
+ "events": {
4103
+ "type": "array",
4104
+ "items": {
4105
+ "$ref": "#/$defs/Event"
4106
+ }
4107
+ },
4108
+ "at": {
4109
+ "$ref": "#/$defs/Millis"
4110
+ }
4111
+ },
4112
+ "required": [
4113
+ "actId",
4114
+ "inputHash",
4115
+ "commitSeq",
4116
+ "outboundDigests",
4117
+ "events",
4118
+ "at"
4119
+ ],
4120
+ "additionalProperties": false
4121
+ }
4122
+ }
4123
+ }