@handfly/protocol 0.0.0-stage → 0.1.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.
@@ -0,0 +1,988 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "protocol_version": 1,
4
+ "max_fragment_bytes": 8192,
5
+ "definitions": {
6
+ "Envelope": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "type": "object",
9
+ "properties": {
10
+ "protocol_version": {
11
+ "type": "number",
12
+ "const": 1
13
+ },
14
+ "repo_id": {
15
+ "type": "string",
16
+ "format": "uuid",
17
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
18
+ },
19
+ "kind": {
20
+ "type": "string",
21
+ "enum": [
22
+ "structure_delta",
23
+ "item_specs",
24
+ "fragments"
25
+ ]
26
+ },
27
+ "created_at": {
28
+ "type": "string",
29
+ "format": "date-time",
30
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
31
+ },
32
+ "items_count": {
33
+ "type": "integer",
34
+ "minimum": 0,
35
+ "maximum": 9007199254740991
36
+ },
37
+ "bytes": {
38
+ "type": "integer",
39
+ "minimum": 0,
40
+ "maximum": 9007199254740991
41
+ },
42
+ "sha256": {
43
+ "type": "string",
44
+ "pattern": "^[0-9a-f]{64}$"
45
+ },
46
+ "payload": {}
47
+ },
48
+ "required": [
49
+ "protocol_version",
50
+ "repo_id",
51
+ "kind",
52
+ "created_at",
53
+ "items_count",
54
+ "bytes",
55
+ "sha256",
56
+ "payload"
57
+ ]
58
+ },
59
+ "StructureDelta": {
60
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
61
+ "type": "object",
62
+ "properties": {
63
+ "snapshot": {
64
+ "type": "string",
65
+ "pattern": "^[0-9a-f]{64}$"
66
+ },
67
+ "base_snapshot": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string",
71
+ "pattern": "^[0-9a-f]{64}$"
72
+ },
73
+ {
74
+ "type": "null"
75
+ }
76
+ ]
77
+ },
78
+ "full": {
79
+ "type": "boolean"
80
+ },
81
+ "upsert_nodes": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "object",
85
+ "properties": {
86
+ "id": {
87
+ "type": "string",
88
+ "pattern": "^[0-9a-f]{40}$"
89
+ },
90
+ "kind": {
91
+ "type": "string",
92
+ "enum": [
93
+ "module",
94
+ "class",
95
+ "function",
96
+ "method",
97
+ "route",
98
+ "view",
99
+ "model",
100
+ "model_field",
101
+ "serializer",
102
+ "component",
103
+ "hook",
104
+ "test",
105
+ "task",
106
+ "signal_handler"
107
+ ]
108
+ },
109
+ "qname": {
110
+ "type": "string",
111
+ "minLength": 1,
112
+ "maxLength": 512,
113
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
114
+ },
115
+ "name": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "maxLength": 512,
119
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
120
+ },
121
+ "path": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 512,
125
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
126
+ },
127
+ "language": {
128
+ "type": "string",
129
+ "enum": [
130
+ "python",
131
+ "typescript",
132
+ "javascript",
133
+ "java",
134
+ "csharp",
135
+ "go",
136
+ "php",
137
+ "kotlin",
138
+ "swift",
139
+ "rust",
140
+ "cpp",
141
+ "shell",
142
+ "hcl"
143
+ ]
144
+ },
145
+ "span": {
146
+ "type": "array",
147
+ "prefixItems": [
148
+ {
149
+ "type": "integer",
150
+ "minimum": 1,
151
+ "maximum": 9007199254740991
152
+ },
153
+ {
154
+ "type": "integer",
155
+ "minimum": 1,
156
+ "maximum": 9007199254740991
157
+ }
158
+ ],
159
+ "items": false,
160
+ "minItems": 2,
161
+ "maxItems": 2
162
+ },
163
+ "loc": {
164
+ "type": "integer",
165
+ "minimum": 0,
166
+ "maximum": 9007199254740991
167
+ },
168
+ "complexity": {
169
+ "type": "integer",
170
+ "minimum": 0,
171
+ "maximum": 9007199254740991
172
+ },
173
+ "tags": {
174
+ "default": [],
175
+ "maxItems": 32,
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string",
179
+ "pattern": "^[a-z0-9_.:-]{1,64}$"
180
+ }
181
+ },
182
+ "criticality": {
183
+ "type": "number",
184
+ "minimum": 0,
185
+ "maximum": 100
186
+ },
187
+ "criticality_terms": {
188
+ "type": "object",
189
+ "propertyNames": {
190
+ "type": "string"
191
+ },
192
+ "additionalProperties": {
193
+ "type": "number"
194
+ }
195
+ },
196
+ "origin": {
197
+ "default": "unknown",
198
+ "type": "string",
199
+ "enum": [
200
+ "human",
201
+ "agent",
202
+ "unknown"
203
+ ]
204
+ },
205
+ "origin_fraction": {
206
+ "type": "number",
207
+ "minimum": 0,
208
+ "maximum": 1
209
+ }
210
+ },
211
+ "required": [
212
+ "id",
213
+ "kind",
214
+ "qname",
215
+ "name",
216
+ "path",
217
+ "language",
218
+ "span",
219
+ "loc",
220
+ "complexity"
221
+ ]
222
+ }
223
+ },
224
+ "delete_nodes": {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "string",
228
+ "pattern": "^[0-9a-f]{40}$"
229
+ }
230
+ },
231
+ "upsert_edges": {
232
+ "type": "array",
233
+ "items": {
234
+ "type": "object",
235
+ "properties": {
236
+ "from": {
237
+ "type": "string",
238
+ "pattern": "^[0-9a-f]{40}$"
239
+ },
240
+ "to": {
241
+ "type": "string",
242
+ "pattern": "^[0-9a-f]{40}$"
243
+ },
244
+ "kind": {
245
+ "type": "string",
246
+ "enum": [
247
+ "calls",
248
+ "imports",
249
+ "reads",
250
+ "writes",
251
+ "tests",
252
+ "renders",
253
+ "routes_to",
254
+ "http_calls",
255
+ "inherits",
256
+ "fk",
257
+ "handles_event",
258
+ "enqueues",
259
+ "signals",
260
+ "contains"
261
+ ]
262
+ },
263
+ "confidence": {
264
+ "type": "string",
265
+ "enum": [
266
+ "resolved",
267
+ "heuristic"
268
+ ]
269
+ },
270
+ "line": {
271
+ "type": "integer",
272
+ "minimum": 0,
273
+ "maximum": 9007199254740991
274
+ }
275
+ },
276
+ "required": [
277
+ "from",
278
+ "to",
279
+ "kind",
280
+ "confidence"
281
+ ]
282
+ }
283
+ },
284
+ "delete_edges": {
285
+ "type": "array",
286
+ "items": {
287
+ "type": "array",
288
+ "prefixItems": [
289
+ {
290
+ "type": "string"
291
+ },
292
+ {
293
+ "type": "string"
294
+ },
295
+ {
296
+ "type": "string",
297
+ "enum": [
298
+ "calls",
299
+ "imports",
300
+ "reads",
301
+ "writes",
302
+ "tests",
303
+ "renders",
304
+ "routes_to",
305
+ "http_calls",
306
+ "inherits",
307
+ "fk",
308
+ "handles_event",
309
+ "enqueues",
310
+ "signals",
311
+ "contains"
312
+ ]
313
+ }
314
+ ],
315
+ "items": false,
316
+ "minItems": 3,
317
+ "maxItems": 3
318
+ }
319
+ },
320
+ "concept_hits": {
321
+ "type": "array",
322
+ "items": {
323
+ "type": "object",
324
+ "properties": {
325
+ "node_id": {
326
+ "type": "string",
327
+ "pattern": "^[0-9a-f]{40}$"
328
+ },
329
+ "slug": {
330
+ "type": "string",
331
+ "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
332
+ },
333
+ "confidence": {
334
+ "type": "number",
335
+ "minimum": 0,
336
+ "maximum": 1
337
+ },
338
+ "pattern": {
339
+ "type": "string",
340
+ "maxLength": 128
341
+ }
342
+ },
343
+ "required": [
344
+ "node_id",
345
+ "slug",
346
+ "confidence",
347
+ "pattern"
348
+ ]
349
+ }
350
+ },
351
+ "stats": {
352
+ "type": "object",
353
+ "properties": {
354
+ "files": {
355
+ "type": "integer",
356
+ "minimum": -9007199254740991,
357
+ "maximum": 9007199254740991
358
+ },
359
+ "lines": {
360
+ "type": "integer",
361
+ "minimum": -9007199254740991,
362
+ "maximum": 9007199254740991
363
+ },
364
+ "nodes": {
365
+ "type": "integer",
366
+ "minimum": -9007199254740991,
367
+ "maximum": 9007199254740991
368
+ },
369
+ "edges": {
370
+ "type": "integer",
371
+ "minimum": -9007199254740991,
372
+ "maximum": 9007199254740991
373
+ },
374
+ "resolution_rate": {
375
+ "type": "number",
376
+ "minimum": 0,
377
+ "maximum": 1
378
+ },
379
+ "duration_ms": {
380
+ "type": "integer",
381
+ "minimum": -9007199254740991,
382
+ "maximum": 9007199254740991
383
+ }
384
+ },
385
+ "required": [
386
+ "files",
387
+ "lines",
388
+ "nodes",
389
+ "edges",
390
+ "resolution_rate",
391
+ "duration_ms"
392
+ ]
393
+ }
394
+ },
395
+ "required": [
396
+ "snapshot",
397
+ "base_snapshot",
398
+ "full",
399
+ "upsert_nodes",
400
+ "delete_nodes",
401
+ "upsert_edges",
402
+ "delete_edges",
403
+ "concept_hits",
404
+ "stats"
405
+ ]
406
+ },
407
+ "ItemSpec": {
408
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
409
+ "type": "object",
410
+ "properties": {
411
+ "fingerprint": {
412
+ "type": "string",
413
+ "pattern": "^[0-9a-f]{64}$"
414
+ },
415
+ "template_key": {
416
+ "type": "string",
417
+ "maxLength": 128
418
+ },
419
+ "type": {
420
+ "type": "string",
421
+ "enum": [
422
+ "seeded_bug",
423
+ "output_prediction",
424
+ "flow_trace",
425
+ "change_impact",
426
+ "agent_diff_review",
427
+ "explanation",
428
+ "state_trace",
429
+ "failure_triage",
430
+ "cloze",
431
+ "reverse_trace",
432
+ "kill_mutant",
433
+ "fix_bug",
434
+ "query_count",
435
+ "concept_check",
436
+ "find_vuln",
437
+ "cost_scale",
438
+ "null_contract",
439
+ "spot_difference",
440
+ "parsons",
441
+ "race_schedule"
442
+ ]
443
+ },
444
+ "concepts": {
445
+ "minItems": 1,
446
+ "maxItems": 4,
447
+ "type": "array",
448
+ "items": {
449
+ "type": "object",
450
+ "properties": {
451
+ "slug": {
452
+ "type": "string"
453
+ },
454
+ "weight": {
455
+ "type": "number",
456
+ "exclusiveMinimum": 0,
457
+ "maximum": 1
458
+ }
459
+ },
460
+ "required": [
461
+ "slug",
462
+ "weight"
463
+ ]
464
+ }
465
+ },
466
+ "component_node_id": {
467
+ "type": "string",
468
+ "pattern": "^[0-9a-f]{40}$"
469
+ },
470
+ "criticality": {
471
+ "type": "number",
472
+ "minimum": 0,
473
+ "maximum": 100
474
+ },
475
+ "difficulty": {
476
+ "type": "number",
477
+ "minimum": 0,
478
+ "maximum": 1
479
+ },
480
+ "grading_method": {
481
+ "type": "string",
482
+ "enum": [
483
+ "line_locate",
484
+ "exact_output",
485
+ "choice",
486
+ "ordered_set",
487
+ "weighted_set",
488
+ "rubric",
489
+ "decision",
490
+ "triage",
491
+ "cloze",
492
+ "local_exec",
493
+ "count",
494
+ "vuln",
495
+ "cost",
496
+ "contract",
497
+ "spot",
498
+ "race"
499
+ ]
500
+ },
501
+ "verification": {
502
+ "type": "object",
503
+ "properties": {
504
+ "kind": {
505
+ "type": "string",
506
+ "enum": [
507
+ "execution",
508
+ "structural",
509
+ "static",
510
+ "none"
511
+ ]
512
+ },
513
+ "all_edges_resolved": {
514
+ "default": false,
515
+ "type": "boolean"
516
+ },
517
+ "evidence": {
518
+ "default": {},
519
+ "type": "object",
520
+ "propertyNames": {
521
+ "type": "string"
522
+ },
523
+ "additionalProperties": {}
524
+ }
525
+ },
526
+ "required": [
527
+ "kind"
528
+ ]
529
+ },
530
+ "voice_compatible": {
531
+ "type": "boolean"
532
+ },
533
+ "est_seconds": {
534
+ "type": "integer",
535
+ "minimum": 10,
536
+ "maximum": 900
537
+ },
538
+ "prompt": {
539
+ "type": "object",
540
+ "propertyNames": {
541
+ "type": "string"
542
+ },
543
+ "additionalProperties": {}
544
+ },
545
+ "expected": {
546
+ "type": "object",
547
+ "propertyNames": {
548
+ "type": "string"
549
+ },
550
+ "additionalProperties": {}
551
+ },
552
+ "fragment": {
553
+ "type": "object",
554
+ "properties": {
555
+ "path": {
556
+ "type": "string",
557
+ "minLength": 1,
558
+ "maxLength": 512,
559
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
560
+ },
561
+ "start_line": {
562
+ "type": "integer",
563
+ "minimum": 1,
564
+ "maximum": 9007199254740991
565
+ },
566
+ "end_line": {
567
+ "type": "integer",
568
+ "minimum": 1,
569
+ "maximum": 9007199254740991
570
+ }
571
+ },
572
+ "required": [
573
+ "path",
574
+ "start_line",
575
+ "end_line"
576
+ ]
577
+ }
578
+ },
579
+ "required": [
580
+ "fingerprint",
581
+ "template_key",
582
+ "type",
583
+ "concepts",
584
+ "component_node_id",
585
+ "criticality",
586
+ "difficulty",
587
+ "grading_method",
588
+ "verification",
589
+ "voice_compatible",
590
+ "est_seconds",
591
+ "prompt",
592
+ "expected",
593
+ "fragment"
594
+ ]
595
+ },
596
+ "ItemSpecBatch": {
597
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
598
+ "type": "object",
599
+ "properties": {
600
+ "specs": {
601
+ "maxItems": 2000,
602
+ "type": "array",
603
+ "items": {
604
+ "type": "object",
605
+ "properties": {
606
+ "fingerprint": {
607
+ "type": "string",
608
+ "pattern": "^[0-9a-f]{64}$"
609
+ },
610
+ "template_key": {
611
+ "type": "string",
612
+ "maxLength": 128
613
+ },
614
+ "type": {
615
+ "type": "string",
616
+ "enum": [
617
+ "seeded_bug",
618
+ "output_prediction",
619
+ "flow_trace",
620
+ "change_impact",
621
+ "agent_diff_review",
622
+ "explanation",
623
+ "state_trace",
624
+ "failure_triage",
625
+ "cloze",
626
+ "reverse_trace",
627
+ "kill_mutant",
628
+ "fix_bug",
629
+ "query_count",
630
+ "concept_check",
631
+ "find_vuln",
632
+ "cost_scale",
633
+ "null_contract",
634
+ "spot_difference",
635
+ "parsons",
636
+ "race_schedule"
637
+ ]
638
+ },
639
+ "concepts": {
640
+ "minItems": 1,
641
+ "maxItems": 4,
642
+ "type": "array",
643
+ "items": {
644
+ "type": "object",
645
+ "properties": {
646
+ "slug": {
647
+ "type": "string"
648
+ },
649
+ "weight": {
650
+ "type": "number",
651
+ "exclusiveMinimum": 0,
652
+ "maximum": 1
653
+ }
654
+ },
655
+ "required": [
656
+ "slug",
657
+ "weight"
658
+ ]
659
+ }
660
+ },
661
+ "component_node_id": {
662
+ "type": "string",
663
+ "pattern": "^[0-9a-f]{40}$"
664
+ },
665
+ "criticality": {
666
+ "type": "number",
667
+ "minimum": 0,
668
+ "maximum": 100
669
+ },
670
+ "difficulty": {
671
+ "type": "number",
672
+ "minimum": 0,
673
+ "maximum": 1
674
+ },
675
+ "grading_method": {
676
+ "type": "string",
677
+ "enum": [
678
+ "line_locate",
679
+ "exact_output",
680
+ "choice",
681
+ "ordered_set",
682
+ "weighted_set",
683
+ "rubric",
684
+ "decision",
685
+ "triage",
686
+ "cloze",
687
+ "local_exec",
688
+ "count",
689
+ "vuln",
690
+ "cost",
691
+ "contract",
692
+ "spot",
693
+ "race"
694
+ ]
695
+ },
696
+ "verification": {
697
+ "type": "object",
698
+ "properties": {
699
+ "kind": {
700
+ "type": "string",
701
+ "enum": [
702
+ "execution",
703
+ "structural",
704
+ "static",
705
+ "none"
706
+ ]
707
+ },
708
+ "all_edges_resolved": {
709
+ "default": false,
710
+ "type": "boolean"
711
+ },
712
+ "evidence": {
713
+ "default": {},
714
+ "type": "object",
715
+ "propertyNames": {
716
+ "type": "string"
717
+ },
718
+ "additionalProperties": {}
719
+ }
720
+ },
721
+ "required": [
722
+ "kind"
723
+ ]
724
+ },
725
+ "voice_compatible": {
726
+ "type": "boolean"
727
+ },
728
+ "est_seconds": {
729
+ "type": "integer",
730
+ "minimum": 10,
731
+ "maximum": 900
732
+ },
733
+ "prompt": {
734
+ "type": "object",
735
+ "propertyNames": {
736
+ "type": "string"
737
+ },
738
+ "additionalProperties": {}
739
+ },
740
+ "expected": {
741
+ "type": "object",
742
+ "propertyNames": {
743
+ "type": "string"
744
+ },
745
+ "additionalProperties": {}
746
+ },
747
+ "fragment": {
748
+ "type": "object",
749
+ "properties": {
750
+ "path": {
751
+ "type": "string",
752
+ "minLength": 1,
753
+ "maxLength": 512,
754
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
755
+ },
756
+ "start_line": {
757
+ "type": "integer",
758
+ "minimum": 1,
759
+ "maximum": 9007199254740991
760
+ },
761
+ "end_line": {
762
+ "type": "integer",
763
+ "minimum": 1,
764
+ "maximum": 9007199254740991
765
+ }
766
+ },
767
+ "required": [
768
+ "path",
769
+ "start_line",
770
+ "end_line"
771
+ ]
772
+ }
773
+ },
774
+ "required": [
775
+ "fingerprint",
776
+ "template_key",
777
+ "type",
778
+ "concepts",
779
+ "component_node_id",
780
+ "criticality",
781
+ "difficulty",
782
+ "grading_method",
783
+ "verification",
784
+ "voice_compatible",
785
+ "est_seconds",
786
+ "prompt",
787
+ "expected",
788
+ "fragment"
789
+ ]
790
+ }
791
+ }
792
+ },
793
+ "required": [
794
+ "specs"
795
+ ]
796
+ },
797
+ "Fragment": {
798
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
799
+ "type": "object",
800
+ "properties": {
801
+ "fingerprint": {
802
+ "type": "string",
803
+ "pattern": "^[0-9a-f]{64}$"
804
+ },
805
+ "path": {
806
+ "type": "string",
807
+ "minLength": 1,
808
+ "maxLength": 512,
809
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
810
+ },
811
+ "start_line": {
812
+ "type": "integer",
813
+ "minimum": 1,
814
+ "maximum": 9007199254740991
815
+ },
816
+ "end_line": {
817
+ "type": "integer",
818
+ "minimum": 1,
819
+ "maximum": 9007199254740991
820
+ },
821
+ "language": {
822
+ "type": "string",
823
+ "enum": [
824
+ "python",
825
+ "typescript",
826
+ "javascript",
827
+ "java",
828
+ "csharp",
829
+ "go",
830
+ "php",
831
+ "kotlin",
832
+ "swift",
833
+ "rust",
834
+ "cpp",
835
+ "shell",
836
+ "hcl"
837
+ ]
838
+ },
839
+ "text": {
840
+ "type": "string"
841
+ },
842
+ "redactions": {
843
+ "type": "array",
844
+ "items": {
845
+ "type": "object",
846
+ "properties": {
847
+ "rule": {
848
+ "type": "string"
849
+ },
850
+ "line": {
851
+ "type": "integer",
852
+ "minimum": 1,
853
+ "maximum": 9007199254740991
854
+ }
855
+ },
856
+ "required": [
857
+ "rule",
858
+ "line"
859
+ ]
860
+ }
861
+ },
862
+ "origin_lines": {
863
+ "default": [],
864
+ "type": "array",
865
+ "items": {
866
+ "type": "integer",
867
+ "minimum": 1,
868
+ "maximum": 9007199254740991
869
+ }
870
+ },
871
+ "evidence": {
872
+ "type": "string",
873
+ "maxLength": 4096
874
+ }
875
+ },
876
+ "required": [
877
+ "fingerprint",
878
+ "path",
879
+ "start_line",
880
+ "end_line",
881
+ "language",
882
+ "text",
883
+ "redactions"
884
+ ]
885
+ },
886
+ "FragmentBatch": {
887
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
888
+ "type": "object",
889
+ "properties": {
890
+ "fragments": {
891
+ "maxItems": 50,
892
+ "type": "array",
893
+ "items": {
894
+ "type": "object",
895
+ "properties": {
896
+ "fingerprint": {
897
+ "type": "string",
898
+ "pattern": "^[0-9a-f]{64}$"
899
+ },
900
+ "path": {
901
+ "type": "string",
902
+ "minLength": 1,
903
+ "maxLength": 512,
904
+ "pattern": "^[^\\n\\r\\t\"'`]+$"
905
+ },
906
+ "start_line": {
907
+ "type": "integer",
908
+ "minimum": 1,
909
+ "maximum": 9007199254740991
910
+ },
911
+ "end_line": {
912
+ "type": "integer",
913
+ "minimum": 1,
914
+ "maximum": 9007199254740991
915
+ },
916
+ "language": {
917
+ "type": "string",
918
+ "enum": [
919
+ "python",
920
+ "typescript",
921
+ "javascript",
922
+ "java",
923
+ "csharp",
924
+ "go",
925
+ "php",
926
+ "kotlin",
927
+ "swift",
928
+ "rust",
929
+ "cpp",
930
+ "shell",
931
+ "hcl"
932
+ ]
933
+ },
934
+ "text": {
935
+ "type": "string"
936
+ },
937
+ "redactions": {
938
+ "type": "array",
939
+ "items": {
940
+ "type": "object",
941
+ "properties": {
942
+ "rule": {
943
+ "type": "string"
944
+ },
945
+ "line": {
946
+ "type": "integer",
947
+ "minimum": 1,
948
+ "maximum": 9007199254740991
949
+ }
950
+ },
951
+ "required": [
952
+ "rule",
953
+ "line"
954
+ ]
955
+ }
956
+ },
957
+ "origin_lines": {
958
+ "default": [],
959
+ "type": "array",
960
+ "items": {
961
+ "type": "integer",
962
+ "minimum": 1,
963
+ "maximum": 9007199254740991
964
+ }
965
+ },
966
+ "evidence": {
967
+ "type": "string",
968
+ "maxLength": 4096
969
+ }
970
+ },
971
+ "required": [
972
+ "fingerprint",
973
+ "path",
974
+ "start_line",
975
+ "end_line",
976
+ "language",
977
+ "text",
978
+ "redactions"
979
+ ]
980
+ }
981
+ }
982
+ },
983
+ "required": [
984
+ "fragments"
985
+ ]
986
+ }
987
+ }
988
+ }