@sentropic/focus 0.5.0-rc.9 → 0.6.0-rc.10

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 (69) hide show
  1. package/dist/artifact/check.d.ts +54 -0
  2. package/dist/artifact/check.d.ts.map +1 -0
  3. package/dist/artifact/check.js +148 -0
  4. package/dist/artifact/check.js.map +1 -0
  5. package/dist/artifact/index.d.ts +5 -0
  6. package/dist/artifact/index.d.ts.map +1 -0
  7. package/dist/artifact/index.js +3 -0
  8. package/dist/artifact/index.js.map +1 -0
  9. package/dist/artifact/manifest.d.ts +148 -0
  10. package/dist/artifact/manifest.d.ts.map +1 -0
  11. package/dist/artifact/manifest.js +485 -0
  12. package/dist/artifact/manifest.js.map +1 -0
  13. package/dist/cli/index.d.ts +1 -1
  14. package/dist/cli/index.d.ts.map +1 -1
  15. package/dist/cli/index.js +12 -3
  16. package/dist/cli/index.js.map +1 -1
  17. package/dist/index.d.ts +4 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +2 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/model.d.ts +39 -5
  22. package/dist/model.d.ts.map +1 -1
  23. package/dist/model.js +3 -2
  24. package/dist/model.js.map +1 -1
  25. package/dist/registry/definitions.d.ts.map +1 -1
  26. package/dist/registry/definitions.js +44 -17
  27. package/dist/registry/definitions.js.map +1 -1
  28. package/dist/render/evidence.d.ts +13 -3
  29. package/dist/render/evidence.d.ts.map +1 -1
  30. package/dist/render/evidence.js +60 -7
  31. package/dist/render/evidence.js.map +1 -1
  32. package/dist/render/html.d.ts +3 -3
  33. package/dist/render/html.d.ts.map +1 -1
  34. package/dist/render/html.js +42 -6
  35. package/dist/render/html.js.map +1 -1
  36. package/dist/render/markdown-table.d.ts +5 -0
  37. package/dist/render/markdown-table.d.ts.map +1 -0
  38. package/dist/render/markdown-table.js +9 -0
  39. package/dist/render/markdown-table.js.map +1 -0
  40. package/dist/render/md.d.ts +3 -3
  41. package/dist/render/md.d.ts.map +1 -1
  42. package/dist/render/md.js +34 -5
  43. package/dist/render/md.js.map +1 -1
  44. package/dist/render/presentation.d.ts +2 -2
  45. package/dist/render/presentation.d.ts.map +1 -1
  46. package/dist/render/presentation.js +2 -2
  47. package/dist/render/presentation.js.map +1 -1
  48. package/dist/render/terminal.d.ts +3 -3
  49. package/dist/render/terminal.d.ts.map +1 -1
  50. package/dist/render/terminal.js +28 -8
  51. package/dist/render/terminal.js.map +1 -1
  52. package/dist/track/index.js +3 -3
  53. package/dist/track/index.js.map +1 -1
  54. package/dist/validation/index.d.ts +18 -3
  55. package/dist/validation/index.d.ts.map +1 -1
  56. package/dist/validation/index.js +212 -14
  57. package/dist/validation/index.js.map +1 -1
  58. package/dist/validation/readability.d.ts +14 -2
  59. package/dist/validation/readability.d.ts.map +1 -1
  60. package/dist/validation/readability.js +232 -14
  61. package/dist/validation/readability.js.map +1 -1
  62. package/package.json +8 -3
  63. package/registry/entries.v1.json +45 -6
  64. package/schemas/decision-dossier-document.v1.0.schema.json +193 -0
  65. package/schemas/decision-dossier-document.v1.schema.json +31 -7
  66. package/schemas/decision-dossier-document.v2.0.schema.json +925 -0
  67. package/schemas/decision-dossier-document.v2.schema.json +156 -6
  68. package/schemas/report-document.v1.schema.json +1068 -0
  69. package/skills/focus/SKILL.md +22 -4
@@ -0,0 +1,1068 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:sentropic:focus:ReportDocument:1.0.0",
4
+ "title": "ReportDocument — informational report with embedded evidence",
5
+ "description": "Explicit report. No decision nodes or interactions. Evidence integrity and strict readability are checked by validateFocusForPresentation.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "ref",
10
+ "subject",
11
+ "title",
12
+ "hash",
13
+ "cursor",
14
+ "sections",
15
+ "interactions",
16
+ "provenance",
17
+ "amendmentTrace",
18
+ "schemaVersion",
19
+ "sources",
20
+ "citations",
21
+ "evidenceGroups",
22
+ "annexes",
23
+ "kind"
24
+ ],
25
+ "properties": {
26
+ "ref": {
27
+ "type": "string"
28
+ },
29
+ "subject": {
30
+ "type": "string"
31
+ },
32
+ "title": {
33
+ "type": "string"
34
+ },
35
+ "hash": {
36
+ "type": "string"
37
+ },
38
+ "cursor": {
39
+ "type": "string"
40
+ },
41
+ "sections": {
42
+ "type": "array",
43
+ "items": {
44
+ "$ref": "#/$defs/section"
45
+ }
46
+ },
47
+ "interactions": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/$defs/interaction"
51
+ },
52
+ "maxItems": 0
53
+ },
54
+ "provenance": {
55
+ "$ref": "#/$defs/provenance"
56
+ },
57
+ "amendmentTrace": {
58
+ "type": "array",
59
+ "items": {
60
+ "$ref": "#/$defs/amendmentStep"
61
+ }
62
+ },
63
+ "readability": {
64
+ "$ref": "#/$defs/readability"
65
+ },
66
+ "schemaVersion": {
67
+ "const": 2
68
+ },
69
+ "sources": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/$defs/evidenceSource"
73
+ }
74
+ },
75
+ "citations": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/$defs/evidenceCitation"
79
+ }
80
+ },
81
+ "evidenceGroups": {
82
+ "type": "array",
83
+ "items": {
84
+ "$ref": "#/$defs/evidenceGroup"
85
+ }
86
+ },
87
+ "annexes": {
88
+ "type": "array",
89
+ "items": {
90
+ "$ref": "#/$defs/evidenceAnnex"
91
+ }
92
+ },
93
+ "kind": {
94
+ "const": "report"
95
+ }
96
+ },
97
+ "$defs": {
98
+ "readability": {
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "properties": {
102
+ "ownerRequestQuote": {
103
+ "type": "string"
104
+ },
105
+ "noOwnerRequest": {
106
+ "type": "boolean"
107
+ },
108
+ "stakes": {
109
+ "type": "string"
110
+ },
111
+ "stakesLevel": {
112
+ "enum": [
113
+ "low",
114
+ "medium",
115
+ "high"
116
+ ]
117
+ },
118
+ "readingBudgetMinutes": {
119
+ "type": "number"
120
+ },
121
+ "glossary": {
122
+ "type": "array",
123
+ "items": {
124
+ "$ref": "#/$defs/glossaryEntry"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "glossaryEntry": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "term",
134
+ "definition"
135
+ ],
136
+ "properties": {
137
+ "term": {
138
+ "type": "string"
139
+ },
140
+ "definition": {
141
+ "type": "string"
142
+ }
143
+ }
144
+ },
145
+ "section": {
146
+ "oneOf": [
147
+ {
148
+ "$ref": "#/$defs/proseNode"
149
+ },
150
+ {
151
+ "$ref": "#/$defs/amendmentTraceNode"
152
+ },
153
+ {
154
+ "$ref": "#/$defs/diagramNode"
155
+ }
156
+ ]
157
+ },
158
+ "sectionInput": {
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "required": [
162
+ "ref",
163
+ "kind"
164
+ ],
165
+ "properties": {
166
+ "ref": {
167
+ "type": "string",
168
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
169
+ },
170
+ "kind": {
171
+ "type": "string",
172
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
173
+ },
174
+ "label": {
175
+ "type": "string",
176
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
177
+ }
178
+ }
179
+ },
180
+ "proseNode": {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": [
184
+ "kind",
185
+ "id",
186
+ "targetRef",
187
+ "markdown"
188
+ ],
189
+ "properties": {
190
+ "kind": {
191
+ "const": "prose"
192
+ },
193
+ "id": {
194
+ "type": "string"
195
+ },
196
+ "targetRef": {
197
+ "type": "string"
198
+ },
199
+ "markdown": {
200
+ "type": "string"
201
+ },
202
+ "inputs": {
203
+ "type": "array",
204
+ "items": {
205
+ "$ref": "#/$defs/sectionInput"
206
+ }
207
+ },
208
+ "completionCriterion": {
209
+ "type": "string",
210
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
211
+ },
212
+ "citationRefs": {
213
+ "type": "array",
214
+ "items": {
215
+ "type": "string",
216
+ "minLength": 1
217
+ }
218
+ }
219
+ }
220
+ },
221
+ "questionNode": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "kind",
226
+ "id",
227
+ "targetRef",
228
+ "question",
229
+ "state"
230
+ ],
231
+ "properties": {
232
+ "kind": {
233
+ "const": "question"
234
+ },
235
+ "id": {
236
+ "type": "string"
237
+ },
238
+ "targetRef": {
239
+ "type": "string"
240
+ },
241
+ "question": {
242
+ "type": "string"
243
+ },
244
+ "recommendedAnswer": {
245
+ "type": "string"
246
+ },
247
+ "answer": {
248
+ "type": "string"
249
+ },
250
+ "state": {
251
+ "enum": [
252
+ "open",
253
+ "answered",
254
+ "validated"
255
+ ]
256
+ },
257
+ "context": {
258
+ "type": "string"
259
+ },
260
+ "readingTimeMinutes": {
261
+ "type": "number"
262
+ },
263
+ "recommendedOptionId": {
264
+ "type": "string"
265
+ },
266
+ "inputs": {
267
+ "type": "array",
268
+ "items": {
269
+ "$ref": "#/$defs/sectionInput"
270
+ }
271
+ },
272
+ "completionCriterion": {
273
+ "type": "string",
274
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
275
+ },
276
+ "citationRefs": {
277
+ "type": "array",
278
+ "items": {
279
+ "type": "string",
280
+ "minLength": 1
281
+ }
282
+ }
283
+ }
284
+ },
285
+ "optionNode": {
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": [
289
+ "kind",
290
+ "id",
291
+ "targetRef",
292
+ "label",
293
+ "annotation"
294
+ ],
295
+ "properties": {
296
+ "kind": {
297
+ "const": "option"
298
+ },
299
+ "id": {
300
+ "type": "string"
301
+ },
302
+ "targetRef": {
303
+ "type": "string"
304
+ },
305
+ "label": {
306
+ "type": "string"
307
+ },
308
+ "body": {
309
+ "type": "string"
310
+ },
311
+ "annotation": {
312
+ "enum": [
313
+ "none",
314
+ "accept",
315
+ "reject",
316
+ "comment"
317
+ ]
318
+ },
319
+ "annotationComment": {
320
+ "type": "string"
321
+ },
322
+ "consequence": {
323
+ "type": "string"
324
+ },
325
+ "citationRefs": {
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string",
329
+ "minLength": 1
330
+ }
331
+ }
332
+ }
333
+ },
334
+ "optionSetNode": {
335
+ "type": "object",
336
+ "additionalProperties": false,
337
+ "required": [
338
+ "kind",
339
+ "id",
340
+ "targetRef",
341
+ "options"
342
+ ],
343
+ "properties": {
344
+ "kind": {
345
+ "const": "optionSet"
346
+ },
347
+ "id": {
348
+ "type": "string"
349
+ },
350
+ "targetRef": {
351
+ "type": "string"
352
+ },
353
+ "title": {
354
+ "type": "string"
355
+ },
356
+ "options": {
357
+ "type": "array",
358
+ "items": {
359
+ "$ref": "#/$defs/optionNode"
360
+ }
361
+ },
362
+ "questionId": {
363
+ "type": "string"
364
+ },
365
+ "citationRefs": {
366
+ "type": "array",
367
+ "items": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ }
371
+ }
372
+ }
373
+ },
374
+ "outcomeNode": {
375
+ "type": "object",
376
+ "additionalProperties": false,
377
+ "required": [
378
+ "kind",
379
+ "id",
380
+ "targetRef",
381
+ "modality",
382
+ "statement"
383
+ ],
384
+ "properties": {
385
+ "kind": {
386
+ "const": "outcome"
387
+ },
388
+ "id": {
389
+ "type": "string"
390
+ },
391
+ "targetRef": {
392
+ "type": "string"
393
+ },
394
+ "modality": {
395
+ "enum": [
396
+ "decision",
397
+ "orientation",
398
+ "amendment",
399
+ "comment"
400
+ ]
401
+ },
402
+ "statement": {
403
+ "type": "string"
404
+ },
405
+ "questionId": {
406
+ "type": "string"
407
+ },
408
+ "citationRefs": {
409
+ "type": "array",
410
+ "items": {
411
+ "type": "string",
412
+ "minLength": 1
413
+ }
414
+ }
415
+ }
416
+ },
417
+ "amendmentTraceNode": {
418
+ "type": "object",
419
+ "additionalProperties": false,
420
+ "required": [
421
+ "kind",
422
+ "id",
423
+ "targetRef",
424
+ "steps"
425
+ ],
426
+ "properties": {
427
+ "kind": {
428
+ "const": "amendmentTrace"
429
+ },
430
+ "id": {
431
+ "type": "string"
432
+ },
433
+ "targetRef": {
434
+ "type": "string"
435
+ },
436
+ "steps": {
437
+ "type": "array",
438
+ "items": {
439
+ "$ref": "#/$defs/amendmentStep"
440
+ }
441
+ },
442
+ "citationRefs": {
443
+ "type": "array",
444
+ "items": {
445
+ "type": "string",
446
+ "minLength": 1
447
+ }
448
+ }
449
+ }
450
+ },
451
+ "diagramNode": {
452
+ "type": "object",
453
+ "additionalProperties": false,
454
+ "required": [
455
+ "kind",
456
+ "id",
457
+ "targetRef",
458
+ "alt"
459
+ ],
460
+ "properties": {
461
+ "kind": {
462
+ "const": "diagram"
463
+ },
464
+ "id": {
465
+ "type": "string"
466
+ },
467
+ "targetRef": {
468
+ "type": "string"
469
+ },
470
+ "syntax": {
471
+ "enum": [
472
+ "mermaid",
473
+ "plantuml"
474
+ ]
475
+ },
476
+ "source": {
477
+ "type": "string",
478
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
479
+ },
480
+ "sourceRef": {
481
+ "type": "string",
482
+ "pattern": "^[A-Za-z][A-Za-z0-9+.-]*:\\S+$"
483
+ },
484
+ "renderComponent": {
485
+ "type": "string",
486
+ "pattern": "^[A-Za-z][A-Za-z0-9-]*$"
487
+ },
488
+ "alt": {
489
+ "type": "string",
490
+ "pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
491
+ },
492
+ "scene": {
493
+ "type": "object",
494
+ "description": "diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model."
495
+ },
496
+ "citationRefs": {
497
+ "type": "array",
498
+ "items": {
499
+ "type": "string",
500
+ "minLength": 1
501
+ }
502
+ }
503
+ },
504
+ "allOf": [
505
+ {
506
+ "oneOf": [
507
+ {
508
+ "required": [
509
+ "source"
510
+ ]
511
+ },
512
+ {
513
+ "required": [
514
+ "sourceRef"
515
+ ]
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "not": {
521
+ "allOf": [
522
+ {
523
+ "required": [
524
+ "source"
525
+ ]
526
+ },
527
+ {
528
+ "not": {
529
+ "required": [
530
+ "syntax"
531
+ ]
532
+ }
533
+ }
534
+ ]
535
+ }
536
+ },
537
+ {
538
+ "not": {
539
+ "allOf": [
540
+ {
541
+ "required": [
542
+ "source"
543
+ ]
544
+ },
545
+ {
546
+ "required": [
547
+ "renderComponent"
548
+ ]
549
+ }
550
+ ]
551
+ }
552
+ },
553
+ {
554
+ "not": {
555
+ "allOf": [
556
+ {
557
+ "required": [
558
+ "sourceRef"
559
+ ]
560
+ },
561
+ {
562
+ "not": {
563
+ "required": [
564
+ "renderComponent"
565
+ ]
566
+ }
567
+ }
568
+ ]
569
+ }
570
+ },
571
+ {
572
+ "not": {
573
+ "allOf": [
574
+ {
575
+ "required": [
576
+ "sourceRef"
577
+ ]
578
+ },
579
+ {
580
+ "required": [
581
+ "syntax"
582
+ ]
583
+ }
584
+ ]
585
+ }
586
+ },
587
+ {
588
+ "not": {
589
+ "allOf": [
590
+ {
591
+ "required": [
592
+ "sourceRef"
593
+ ]
594
+ },
595
+ {
596
+ "required": [
597
+ "scene"
598
+ ]
599
+ }
600
+ ]
601
+ }
602
+ }
603
+ ]
604
+ },
605
+ "interaction": {
606
+ "type": "object",
607
+ "additionalProperties": false,
608
+ "required": [
609
+ "name",
610
+ "targetRef",
611
+ "label",
612
+ "enabled"
613
+ ],
614
+ "properties": {
615
+ "name": {
616
+ "type": "string"
617
+ },
618
+ "targetRef": {
619
+ "type": "string"
620
+ },
621
+ "label": {
622
+ "type": "string"
623
+ },
624
+ "enabled": {
625
+ "const": false
626
+ }
627
+ }
628
+ },
629
+ "comprehensionEvidence": {
630
+ "type": "object",
631
+ "additionalProperties": false,
632
+ "required": [
633
+ "subject",
634
+ "dossierHash"
635
+ ],
636
+ "properties": {
637
+ "subject": {
638
+ "type": "string"
639
+ },
640
+ "dossierHash": {
641
+ "type": "string"
642
+ },
643
+ "signature": {
644
+ "type": "string"
645
+ }
646
+ }
647
+ },
648
+ "provenance": {
649
+ "type": "object",
650
+ "additionalProperties": false,
651
+ "required": [
652
+ "source",
653
+ "readAt"
654
+ ],
655
+ "properties": {
656
+ "source": {
657
+ "type": "string"
658
+ },
659
+ "readAt": {
660
+ "type": "string"
661
+ },
662
+ "comprehensionEvidence": {
663
+ "$ref": "#/$defs/comprehensionEvidence"
664
+ }
665
+ }
666
+ },
667
+ "amendmentStep": {
668
+ "type": "object",
669
+ "additionalProperties": false,
670
+ "required": [
671
+ "at",
672
+ "author",
673
+ "summary"
674
+ ],
675
+ "properties": {
676
+ "at": {
677
+ "type": "string"
678
+ },
679
+ "author": {
680
+ "type": "string"
681
+ },
682
+ "summary": {
683
+ "type": "string"
684
+ }
685
+ }
686
+ },
687
+ "evidenceSource": {
688
+ "type": "object",
689
+ "additionalProperties": false,
690
+ "required": [
691
+ "id",
692
+ "title",
693
+ "origin",
694
+ "mediaType",
695
+ "encoding",
696
+ "data",
697
+ "sha256",
698
+ "size"
699
+ ],
700
+ "properties": {
701
+ "id": {
702
+ "type": "string",
703
+ "minLength": 1
704
+ },
705
+ "title": {
706
+ "type": "string",
707
+ "minLength": 1
708
+ },
709
+ "origin": {
710
+ "oneOf": [
711
+ {
712
+ "type": "object",
713
+ "additionalProperties": false,
714
+ "required": [
715
+ "uri"
716
+ ],
717
+ "properties": {
718
+ "uri": {
719
+ "type": "string",
720
+ "minLength": 1
721
+ }
722
+ }
723
+ },
724
+ {
725
+ "type": "object",
726
+ "additionalProperties": false,
727
+ "required": [
728
+ "repo",
729
+ "revision",
730
+ "path"
731
+ ],
732
+ "properties": {
733
+ "repo": {
734
+ "type": "string",
735
+ "minLength": 1
736
+ },
737
+ "revision": {
738
+ "type": "string",
739
+ "minLength": 1
740
+ },
741
+ "path": {
742
+ "type": "string",
743
+ "minLength": 1
744
+ }
745
+ }
746
+ }
747
+ ]
748
+ },
749
+ "mediaType": {
750
+ "anyOf": [
751
+ {
752
+ "type": "string",
753
+ "pattern": "^text/[a-z0-9.+-]+$"
754
+ },
755
+ {
756
+ "enum": [
757
+ "application/json",
758
+ "application/yaml",
759
+ "application/x-yaml",
760
+ "application/x-ndjson",
761
+ "image/png",
762
+ "image/jpeg"
763
+ ]
764
+ }
765
+ ]
766
+ },
767
+ "encoding": {
768
+ "const": "base64"
769
+ },
770
+ "data": {
771
+ "type": "string"
772
+ },
773
+ "sha256": {
774
+ "type": "string",
775
+ "pattern": "^[a-f0-9]{64}$"
776
+ },
777
+ "size": {
778
+ "type": "integer",
779
+ "minimum": 0
780
+ },
781
+ "width": {
782
+ "type": "integer",
783
+ "minimum": 1
784
+ },
785
+ "height": {
786
+ "type": "integer",
787
+ "minimum": 1
788
+ },
789
+ "alt": {
790
+ "type": "string",
791
+ "minLength": 1
792
+ }
793
+ },
794
+ "allOf": [
795
+ {
796
+ "if": {
797
+ "properties": {
798
+ "mediaType": {
799
+ "enum": [
800
+ "image/png",
801
+ "image/jpeg"
802
+ ]
803
+ }
804
+ },
805
+ "required": [
806
+ "mediaType"
807
+ ]
808
+ },
809
+ "then": {
810
+ "required": [
811
+ "width",
812
+ "height",
813
+ "alt"
814
+ ]
815
+ },
816
+ "else": {
817
+ "not": {
818
+ "anyOf": [
819
+ {
820
+ "required": [
821
+ "width"
822
+ ]
823
+ },
824
+ {
825
+ "required": [
826
+ "height"
827
+ ]
828
+ },
829
+ {
830
+ "required": [
831
+ "alt"
832
+ ]
833
+ }
834
+ ]
835
+ }
836
+ }
837
+ }
838
+ ]
839
+ },
840
+ "evidenceCitation": {
841
+ "type": "object",
842
+ "additionalProperties": false,
843
+ "required": [
844
+ "id",
845
+ "sourceId",
846
+ "label",
847
+ "locator"
848
+ ],
849
+ "properties": {
850
+ "id": {
851
+ "type": "string",
852
+ "minLength": 1
853
+ },
854
+ "sourceId": {
855
+ "type": "string",
856
+ "minLength": 1
857
+ },
858
+ "label": {
859
+ "type": "string",
860
+ "minLength": 1
861
+ },
862
+ "locator": {
863
+ "oneOf": [
864
+ {
865
+ "type": "object",
866
+ "additionalProperties": false,
867
+ "required": [
868
+ "kind",
869
+ "start",
870
+ "end"
871
+ ],
872
+ "properties": {
873
+ "kind": {
874
+ "const": "lines"
875
+ },
876
+ "start": {
877
+ "type": "integer",
878
+ "minimum": 1
879
+ },
880
+ "end": {
881
+ "type": "integer",
882
+ "minimum": 1
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "type": "object",
888
+ "additionalProperties": false,
889
+ "required": [
890
+ "kind",
891
+ "caption"
892
+ ],
893
+ "properties": {
894
+ "kind": {
895
+ "const": "image"
896
+ },
897
+ "caption": {
898
+ "type": "string",
899
+ "minLength": 1
900
+ }
901
+ }
902
+ }
903
+ ]
904
+ }
905
+ }
906
+ },
907
+ "evidenceGroup": {
908
+ "type": "object",
909
+ "additionalProperties": false,
910
+ "required": [
911
+ "id",
912
+ "summary",
913
+ "citationRefs",
914
+ "sourceRefs"
915
+ ],
916
+ "properties": {
917
+ "id": {
918
+ "type": "string",
919
+ "minLength": 1
920
+ },
921
+ "summary": {
922
+ "type": "string",
923
+ "minLength": 1
924
+ },
925
+ "citationRefs": {
926
+ "type": "array",
927
+ "items": {
928
+ "type": "string",
929
+ "minLength": 1
930
+ }
931
+ },
932
+ "sourceRefs": {
933
+ "type": "array",
934
+ "items": {
935
+ "type": "string",
936
+ "minLength": 1
937
+ }
938
+ }
939
+ }
940
+ },
941
+ "evidenceAnnex": {
942
+ "type": "object",
943
+ "additionalProperties": false,
944
+ "required": [
945
+ "id",
946
+ "title",
947
+ "summary",
948
+ "backRefs",
949
+ "blocks"
950
+ ],
951
+ "properties": {
952
+ "id": {
953
+ "type": "string",
954
+ "minLength": 1
955
+ },
956
+ "title": {
957
+ "type": "string",
958
+ "minLength": 1
959
+ },
960
+ "summary": {
961
+ "type": "string",
962
+ "minLength": 1
963
+ },
964
+ "backRefs": {
965
+ "type": "array",
966
+ "items": {
967
+ "type": "string",
968
+ "minLength": 1
969
+ }
970
+ },
971
+ "blocks": {
972
+ "type": "array",
973
+ "items": {
974
+ "oneOf": [
975
+ {
976
+ "type": "object",
977
+ "additionalProperties": false,
978
+ "required": [
979
+ "kind",
980
+ "text"
981
+ ],
982
+ "properties": {
983
+ "kind": {
984
+ "const": "text"
985
+ },
986
+ "text": {
987
+ "type": "string"
988
+ }
989
+ }
990
+ },
991
+ {
992
+ "type": "object",
993
+ "additionalProperties": false,
994
+ "required": [
995
+ "kind",
996
+ "text"
997
+ ],
998
+ "properties": {
999
+ "kind": {
1000
+ "const": "code"
1001
+ },
1002
+ "text": {
1003
+ "type": "string"
1004
+ },
1005
+ "language": {
1006
+ "type": "string",
1007
+ "minLength": 1
1008
+ }
1009
+ }
1010
+ },
1011
+ {
1012
+ "type": "object",
1013
+ "additionalProperties": false,
1014
+ "required": [
1015
+ "kind",
1016
+ "columns",
1017
+ "rows"
1018
+ ],
1019
+ "properties": {
1020
+ "kind": {
1021
+ "const": "table"
1022
+ },
1023
+ "columns": {
1024
+ "type": "array",
1025
+ "items": {
1026
+ "type": "string",
1027
+ "minLength": 1
1028
+ },
1029
+ "minItems": 1
1030
+ },
1031
+ "rows": {
1032
+ "type": "array",
1033
+ "items": {
1034
+ "type": "array",
1035
+ "items": {
1036
+ "type": "string"
1037
+ }
1038
+ }
1039
+ }
1040
+ }
1041
+ },
1042
+ {
1043
+ "type": "object",
1044
+ "additionalProperties": false,
1045
+ "required": [
1046
+ "kind",
1047
+ "citationRefs"
1048
+ ],
1049
+ "properties": {
1050
+ "kind": {
1051
+ "const": "references"
1052
+ },
1053
+ "citationRefs": {
1054
+ "type": "array",
1055
+ "items": {
1056
+ "type": "string",
1057
+ "minLength": 1
1058
+ }
1059
+ }
1060
+ }
1061
+ }
1062
+ ]
1063
+ }
1064
+ }
1065
+ }
1066
+ }
1067
+ }
1068
+ }