forked from alpha-omega-security/scrutineer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
904 lines (855 loc) · 30.5 KB
/
openapi.yaml
File metadata and controls
904 lines (855 loc) · 30.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
openapi: 3.1.0
info:
title: Scrutineer Skill API
version: 0.3.0
description: |
A narrow HTTP surface that claude-code skills use while they run. The
goal is enough to let a skill orchestrate other skills and read prior
scan outputs without pushing that logic into scrutineer's Go code.
Every scrutineer skill scan is issued a bearer token that is staged into
the workspace context.json. Skills authenticate with that token. A token
is only valid while its originating scan is running, and only grants
access to the repository the scan was issued against.
The `/v1/*` paths are an unauthenticated, localhost-only export surface
intended for external scripts (jq, cron, CI dumps). They emit JSONL and
rely on the same host-header check as the browser UI; see threatmodel.md.
servers:
- url: http://127.0.0.1:8080/api
description: Local scrutineer server
security:
- bearerAuth: []
paths:
/repositories/{id}:
get:
summary: Fetch a repository summary
operationId: getRepository
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema: { $ref: '#/components/schemas/Repository' }
'403': { $ref: '#/components/responses/Forbidden' }
'404': { $ref: '#/components/responses/NotFound' }
/repositories/{id}/scans:
get:
summary: List scans for a repository
operationId: listRepositoryScans
parameters:
- $ref: '#/components/parameters/RepositoryID'
- name: status
in: query
schema:
type: string
enum: [queued, running, done, failed]
- name: skill
in: query
schema: { type: string }
description: Filter by skill name (matches Scan.skill_name).
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Scan' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/maintainers:
get:
summary: List maintainers linked to this repository
operationId: listRepositoryMaintainers
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Maintainer' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/packages:
get:
summary: List published packages produced by this repository
operationId: listRepositoryPackages
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Package' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/advisories:
get:
summary: List published advisories affecting this repository's packages
operationId: listRepositoryAdvisories
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Advisory' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/dependents:
get:
summary: List downstream dependents of this repository's packages
operationId: listRepositoryDependents
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Dependent' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/dependencies:
get:
summary: List dependencies declared by this repository's manifests
operationId: listRepositoryDependencies
parameters:
- $ref: '#/components/parameters/RepositoryID'
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/Dependency' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/findings:
get:
summary: List findings across every scan on this repository
operationId: listRepositoryFindings
parameters:
- $ref: '#/components/parameters/RepositoryID'
- name: severity
in: query
schema: { type: string, enum: [Critical, High, Medium, Low] }
- name: status
in: query
schema:
type: string
enum: [new, enriched, triaged, ready, reported, acknowledged, fixed, published, rejected, duplicate]
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/FindingSummary' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/dependency-findings:
get:
summary: List findings on libraries this repository depends on
description: >
Joins this repository's Dependency rows against every Package row
scrutineer knows about and returns the live findings on the matched
library repositories. git-pkgs ecosystem names (gem, golang,
composer) are normalised to packages.ecosyste.ms names (rubygems,
go, packagist) before matching. Findings already marked fixed,
rejected or duplicate are excluded. Consumed by the reachability
skill.
operationId: listRepositoryDependencyFindings
parameters:
- $ref: '#/components/parameters/RepositoryID'
- name: severity
in: query
schema: { type: string, enum: [Critical, High, Medium, Low] }
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/DependencyFinding' }
'403': { $ref: '#/components/responses/Forbidden' }
/repositories/{id}/skills/{name}/run:
post:
summary: Enqueue a skill scan against this repository
operationId: runSkill
parameters:
- $ref: '#/components/parameters/RepositoryID'
- name: name
in: path
required: true
schema: { type: string }
description: Skill name (matches the SKILL.md `name` field).
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
model:
type: string
description: Override model; defaults to the system default.
responses:
'201':
description: Scan enqueued
content:
application/json:
schema: { $ref: '#/components/schemas/Scan' }
'403': { $ref: '#/components/responses/Forbidden' }
'404':
description: Skill or repository not found
content:
application/json:
schema: { $ref: '#/components/schemas/Error' }
/findings/{id}:
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
patch:
summary: Update mutable fields on a finding
operationId: patchFinding
description: |
Each field value is written through the history-tracked path.
Skills write with source=model_suggested; the browser UI (behind
its own session) writes with source=analyst. Unknown field names
are rejected.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [fields]
properties:
by:
type: string
description: Optional author string for the history row.
fields:
type: object
additionalProperties: { type: string }
description: |
Map of field name to new value. Allowed fields:
title, severity, status, cwe, location, affected,
cve_id, cvss_vector, fix_version, fix_commit,
resolution, disclosure_draft, assignee.
responses:
'204': { description: Updated }
'403': { $ref: '#/components/responses/Forbidden' }
'404': { $ref: '#/components/responses/NotFound' }
/findings/{id}/notes:
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
get:
summary: List notes on a finding
operationId: listFindingNotes
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/FindingNote' }
post:
summary: Append a note to a finding
operationId: addFindingNote
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [body]
properties:
body: { type: string }
by: { type: string }
responses:
'201':
description: Created
content:
application/json:
schema: { $ref: '#/components/schemas/FindingNote' }
/findings/{id}/communications:
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
get:
summary: List logged communications for a finding
operationId: listFindingCommunications
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/FindingCommunication' }
post:
summary: Log a communication (sent or received) about a finding
operationId: addFindingCommunication
requestBody:
required: true
content:
application/json:
schema: { $ref: '#/components/schemas/FindingCommunication' }
responses:
'201':
description: Created
content:
application/json:
schema: { $ref: '#/components/schemas/FindingCommunication' }
/findings/{id}/references:
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
get:
summary: List references attached to a finding
operationId: listFindingReferences
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/FindingReference' }
post:
summary: Attach an external reference to a finding
operationId: addFindingReference
requestBody:
required: true
content:
application/json:
schema: { $ref: '#/components/schemas/FindingReference' }
responses:
'201':
description: Created
content:
application/json:
schema: { $ref: '#/components/schemas/FindingReference' }
/findings/{id}/labels:
put:
summary: Replace the set of labels on a finding
operationId: setFindingLabels
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [labels]
properties:
labels:
type: array
items: { type: string }
description: Label names. Missing labels are created on demand.
responses:
'204': { description: Updated }
/findings/{id}/history:
get:
summary: List the history rows recorded for a finding
operationId: listFindingHistory
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/FindingHistory' }
/findings/{id}/skills/{name}/run:
post:
summary: Enqueue a finding-scoped skill (verify, patch, disclose)
operationId: runFindingSkill
description: |
The authenticated scan's repository must own the finding. The scan
that gets enqueued has FindingID set so its skill body can read
`scrutineer.finding_id` from context.json and act on one finding
specifically.
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
description: Finding id.
- name: name
in: path
required: true
schema: { type: string }
description: Skill name.
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
model: { type: string }
responses:
'201':
description: Scan enqueued
content:
application/json:
schema: { $ref: '#/components/schemas/Scan' }
'403': { $ref: '#/components/responses/Forbidden' }
'404':
description: Finding or skill not found
content:
application/json:
schema: { $ref: '#/components/schemas/Error' }
/scans/{id}:
get:
summary: Fetch a scan with its report (if complete)
operationId: getScan
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
responses:
'200':
description: OK
content:
application/json:
schema: { $ref: '#/components/schemas/ScanDetail' }
'403': { $ref: '#/components/responses/Forbidden' }
'404': { $ref: '#/components/responses/NotFound' }
/findings/{id}:
get:
summary: Fetch one finding with its six-step prose
operationId: getFinding
parameters:
- name: id
in: path
required: true
schema: { type: integer, format: int64 }
responses:
'200':
description: OK
content:
application/json:
schema: { $ref: '#/components/schemas/FindingDetail' }
'403': { $ref: '#/components/responses/Forbidden' }
'404': { $ref: '#/components/responses/NotFound' }
/skills:
get:
summary: List installed skills
operationId: listSkills
parameters:
- name: active
in: query
schema: { type: boolean }
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items: { $ref: '#/components/schemas/SkillSummary' }
/v1/repositories/{id}/findings:
get:
summary: Export findings for a repository as JSONL
description: |
Returns one JSON object per line (`application/x-ndjson`). No bearer
token; localhost-only. Each line is a `FindingExport` carrying the
full set of `db.Finding` columns.
operationId: exportRepositoryFindings
security: []
parameters:
- $ref: '#/components/parameters/RepositoryID'
- name: format
in: query
description: Only `jsonl` is supported; other values get a 400.
schema: { type: string, enum: [jsonl] }
- name: severity
in: query
schema: { type: string, enum: [Critical, High, Medium, Low] }
- name: status
in: query
schema:
type: string
enum: [new, enriched, triaged, ready, reported, acknowledged, fixed, published, rejected, duplicate]
responses:
'200':
description: JSONL stream of FindingExport objects, one per line.
content:
application/x-ndjson:
schema: { $ref: '#/components/schemas/FindingExport' }
'400':
description: Unsupported format query value
'403':
description: Host header is not localhost
'404':
description: Repository not found
/v1/findings:
get:
summary: Export findings across all repositories as JSONL
description: |
Returns one JSON object per line (`application/x-ndjson`). No bearer
token; localhost-only. Each line is a `FindingExport` carrying the
full set of `db.Finding` columns.
operationId: exportFindings
security: []
parameters:
- name: format
in: query
schema: { type: string, enum: [jsonl] }
- name: severity
in: query
schema: { type: string, enum: [Critical, High, Medium, Low] }
- name: status
in: query
schema:
type: string
enum: [new, enriched, triaged, ready, reported, acknowledged, fixed, published, rejected, duplicate]
responses:
'200':
description: JSONL stream of FindingExport objects, one per line.
content:
application/x-ndjson:
schema: { $ref: '#/components/schemas/FindingExport' }
'400':
description: Unsupported format query value
'403':
description: Host header is not localhost
/v1/scans:
get:
summary: Export scans across all repositories as JSONL
description: |
Returns one JSON object per line (`application/x-ndjson`). No bearer
token; localhost-only. Each line is a `ScanExport` carrying the full
set of `db.Scan` columns minus `api_token` (the per-scan bearer must
not leak through an unauthenticated channel).
operationId: exportScans
security: []
parameters:
- name: format
in: query
schema: { type: string, enum: [jsonl] }
- name: status
in: query
schema: { type: string, enum: [queued, running, done, failed] }
- name: skill
in: query
schema: { type: string }
responses:
'200':
description: JSONL stream of ScanExport objects, one per line.
content:
application/x-ndjson:
schema: { $ref: '#/components/schemas/ScanExport' }
'400':
description: Unsupported format query value
'403':
description: Host header is not localhost
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
parameters:
RepositoryID:
name: id
in: path
required: true
schema: { type: integer, format: int64 }
responses:
NotFound:
description: Resource not found
content:
application/json:
schema: { $ref: '#/components/schemas/Error' }
Forbidden:
description: Token does not grant access to this resource
content:
application/json:
schema: { $ref: '#/components/schemas/Error' }
schemas:
Error:
type: object
required: [error]
properties:
error: { type: string }
Repository:
type: object
required: [id, url, name]
properties:
id: { type: integer, format: int64 }
url: { type: string, format: uri }
name: { type: string }
full_name: { type: string }
default_branch: { type: string }
html_url: { type: string }
stars: { type: integer }
forks: { type: integer }
archived: { type: boolean }
languages: { type: string, description: Comma-joined language names. }
license: { type: string }
Scan:
type: object
required: [id, kind, status, repository_id]
properties:
id: { type: integer, format: int64 }
repository_id: { type: integer, format: int64 }
kind: { type: string }
status: { type: string, enum: [queued, running, done, failed] }
model: { type: string }
commit: { type: string }
skill_name: { type: string }
skill_version: { type: integer }
started_at: { type: string, format: date-time, nullable: true }
finished_at: { type: string, format: date-time, nullable: true }
error: { type: string }
ScanDetail:
allOf:
- $ref: '#/components/schemas/Scan'
- type: object
properties:
report: { type: string, description: Raw output report (may be JSON text). }
log: { type: string }
Maintainer:
type: object
required: [id, login]
properties:
id: { type: integer, format: int64 }
login: { type: string }
name: { type: string }
email: { type: string }
status: { type: string, enum: [active, inactive, unknown] }
notes: { type: string }
Package:
type: object
required: [id, name, ecosystem]
properties:
id: { type: integer, format: int64 }
name: { type: string }
ecosystem: { type: string }
purl: { type: string }
latest_version: { type: string }
downloads: { type: integer, format: int64 }
dependent_packages: { type: integer }
dependent_repos: { type: integer }
registry_url: { type: string }
latest_release_at: { type: string, format: date-time, nullable: true }
Advisory:
type: object
required: [id]
properties:
id: { type: integer, format: int64 }
uuid: { type: string }
url: { type: string }
title: { type: string }
severity: { type: string }
cvss_score: { type: number }
classification: { type: string }
packages: { type: string, description: Comma-joined affected package names. }
published_at: { type: string, format: date-time, nullable: true }
withdrawn_at: { type: string, format: date-time, nullable: true }
Dependent:
type: object
required: [id, name, ecosystem]
properties:
id: { type: integer, format: int64 }
name: { type: string }
ecosystem: { type: string }
purl: { type: string }
repository_url: { type: string }
downloads: { type: integer, format: int64 }
dependent_repos: { type: integer }
registry_url: { type: string }
latest_version: { type: string }
Dependency:
type: object
required: [id, name, ecosystem]
properties:
id: { type: integer, format: int64 }
name: { type: string }
ecosystem: { type: string }
purl: { type: string }
requirement: { type: string }
dependency_type: { type: string }
manifest_path: { type: string }
manifest_kind: { type: string }
DependencyFinding:
type: object
required: [package, ecosystem, finding_id, library_repository_id, severity]
properties:
package: { type: string }
ecosystem: { type: string }
requirement: { type: string }
manifest_path: { type: string }
dependency_type: { type: string }
finding_id: { type: integer, format: int64 }
library_repository_id: { type: integer, format: int64 }
library_repository_url: { type: string, format: uri }
title: { type: string }
severity: { type: string, enum: [Critical, High, Medium, Low] }
cwe: { type: string }
location: { type: string, description: file:line inside the library }
sinks: { type: string }
status: { type: string }
trace: { type: string }
boundary: { type: string }
FindingSummary:
type: object
required: [id, scan_id, repository_id, severity, location]
properties:
id: { type: integer, format: int64 }
scan_id: { type: integer, format: int64 }
repository_id: { type: integer, format: int64 }
finding_id: { type: string, description: Short id within the scan report (F1, F2, ...). }
sinks: { type: string, description: Comma-joined sink ids. }
title: { type: string }
severity: { type: string, enum: [Critical, High, Medium, Low] }
status: { type: string }
cwe: { type: string }
location: { type: string }
affected: { type: string }
cve_id: { type: string }
cvss_vector: { type: string }
cvss_score: { type: number }
fix_version: { type: string }
fix_commit: { type: string }
resolution: { type: string, enum: [fix, migrate, workaround, adopt, wontfix, ""] }
assignee: { type: string }
FindingDetail:
allOf:
- $ref: '#/components/schemas/FindingSummary'
- type: object
description: Adds the six-step narrative and disclosure draft text.
properties:
trace: { type: string }
boundary: { type: string }
validation: { type: string }
prior_art: { type: string }
reach: { type: string }
rating: { type: string }
disclosure_draft: { type: string }
FindingExport:
description: |
Full db.Finding row used by the unauthenticated JSONL export. Adds
the dedup, denormalised, and timestamp columns that the bearer-only
FindingDetail leaves out.
allOf:
- $ref: '#/components/schemas/FindingDetail'
- type: object
properties:
commit: { type: string }
sub_path: { type: string }
fingerprint: { type: string }
last_seen_scan_id: { type: integer, format: int64 }
last_seen_commit: { type: string }
seen_count: { type: integer }
created_at: { type: string, format: date-time }
updated_at: { type: string, format: date-time }
ScanExport:
description: |
Full db.Scan row used by the unauthenticated JSONL export, minus
api_token.
allOf:
- $ref: '#/components/schemas/ScanDetail'
- type: object
properties:
skill_id: { type: integer, format: int64, nullable: true }
finding_id: { type: integer, format: int64, nullable: true }
sub_path: { type: string }
cost_usd: { type: number }
turns: { type: integer }
input_tokens: { type: integer }
output_tokens: { type: integer }
cache_read_tokens: { type: integer }
cache_write_tokens: { type: integer }
prompt: { type: string }
findings_count: { type: integer }
created_at: { type: string, format: date-time }
updated_at: { type: string, format: date-time }
FindingNote:
type: object
required: [id, finding_id, body]
properties:
id: { type: integer, format: int64 }
finding_id: { type: integer, format: int64 }
body: { type: string }
by: { type: string }
created_at: { type: string, format: date-time }
FindingCommunication:
type: object
required: [channel, direction, actor]
properties:
id: { type: integer, format: int64 }
finding_id: { type: integer, format: int64 }
channel: { type: string, enum: [email, ghsa, issue, pr, direct, registry] }
direction: { type: string, enum: [outbound, inbound] }
actor: { type: string }
body: { type: string }
offered_help: { type: string, enum: [pr, funding, adoption, "none", ""] }
at: { type: string, format: date-time }
created_at: { type: string, format: date-time }
FindingReference:
type: object
required: [url]
properties:
id: { type: integer, format: int64 }
finding_id: { type: integer, format: int64 }
url: { type: string, format: uri }
tags: { type: string, description: Comma-joined tags (issue, pr, cve, ghsa, patch, advisory, discussion, article). }
summary: { type: string }
created_at: { type: string, format: date-time }
FindingHistory:
type: object
required: [id, finding_id, field, new_value, source]
properties:
id: { type: integer, format: int64 }
finding_id: { type: integer, format: int64 }
field: { type: string }
old_value: { type: string }
new_value: { type: string }
source: { type: string, enum: [tool, model_suggested, analyst] }
by: { type: string }
created_at: { type: string, format: date-time }
SkillSummary:
type: object
required: [id, name, description]
properties:
id: { type: integer, format: int64 }
name: { type: string }
description: { type: string }
output_kind: { type: string }
output_file: { type: string }
version: { type: integer }
active: { type: boolean }