@openai/codex-security 0.5.1 → 0.7.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 (313) hide show
  1. package/README.md +151 -36
  2. package/_bundled_plugin/.mcp.json +1 -0
  3. package/_bundled_plugin/mcp/helpers.mjs.br.part-000 +0 -0
  4. package/_bundled_plugin/mcp/helpers.mjs.br.part-001 +0 -0
  5. package/_bundled_plugin/mcp/native/THIRD_PARTY_NOTICES.txt +1 -1
  6. package/_bundled_plugin/mcp/native/darwin-arm64/unix.node +0 -0
  7. package/_bundled_plugin/mcp/native/darwin-x64/unix.node +0 -0
  8. package/_bundled_plugin/mcp/native/linux-arm64-gnu/unix.node +0 -0
  9. package/_bundled_plugin/mcp/native/linux-arm64-musl/unix.node +0 -0
  10. package/_bundled_plugin/mcp/native/linux-x64-gnu/unix.node +0 -0
  11. package/_bundled_plugin/mcp/native/win32-arm64/windows.node +0 -0
  12. package/_bundled_plugin/mcp/native/win32-x64/windows.node +0 -0
  13. package/_bundled_plugin/mcp/server.mjs.br.part-000 +0 -0
  14. package/_bundled_plugin/mcp/server.mjs.br.part-001 +0 -0
  15. package/_bundled_plugin/mcp/server.mjs.br.part-002 +0 -0
  16. package/_bundled_plugin/references/access-advisory.md +11 -0
  17. package/_bundled_plugin/references/core-scan.md +30 -77
  18. package/_bundled_plugin/references/final-report.md +45 -189
  19. package/_bundled_plugin/references/scan-contract.md +2 -0
  20. package/_bundled_plugin/references/scan-prologue.md +1 -1
  21. package/_bundled_plugin/references/scan-runtime.md +1 -5
  22. package/_bundled_plugin/references/threat-model.md +33 -41
  23. package/_bundled_plugin/schemas/coverage.schema.json +12 -1
  24. package/_bundled_plugin/schemas/scan-manifest.schema.json +1 -0
  25. package/_bundled_plugin/schemas/tools/deep-reducer.schema.json +38 -1
  26. package/_bundled_plugin/scripts/deep_scan_config.py +39 -39
  27. package/_bundled_plugin/scripts/deep_scan_workbench.py +145 -85
  28. package/_bundled_plugin/scripts/finalize_scan_contract.py +189 -57
  29. package/_bundled_plugin/scripts/report_projection.py +44 -15
  30. package/_bundled_plugin/scripts/threat_model_projection.py +4 -2
  31. package/_bundled_plugin/scripts/windows_scan_local_files.py +43 -14
  32. package/_bundled_plugin/scripts/workbench/retained_coverage.py +3218 -0
  33. package/_bundled_plugin/scripts/workbench/retained_records.py +627 -0
  34. package/_bundled_plugin/scripts/workbench/saved_coverage.py +644 -1
  35. package/_bundled_plugin/scripts/workbench/saved_outputs.py +72 -0
  36. package/_bundled_plugin/scripts/workbench/saved_sources.py +712 -0
  37. package/_bundled_plugin/scripts/workbench_cli.py +3 -0
  38. package/_bundled_plugin/scripts/workbench_coverage_receipts.py +479 -0
  39. package/_bundled_plugin/scripts/workbench_db.py +51 -22
  40. package/_bundled_plugin/scripts/workbench_feedback.py +0 -1
  41. package/_bundled_plugin/scripts/workbench_finding_workflows.py +53 -9
  42. package/_bundled_plugin/scripts/workbench_native_indexes.py +56 -44
  43. package/_bundled_plugin/scripts/workbench_saved_results.py +641 -2387
  44. package/_bundled_plugin/scripts/workbench_scan_history.py +72 -7
  45. package/_bundled_plugin/scripts/workbench_schema.py +1 -1
  46. package/_bundled_plugin/scripts/workbench_source_scopes.py +4 -1
  47. package/_bundled_plugin/scripts/workbench_target.py +142 -17
  48. package/_bundled_plugin/scripts/workbench_validation.py +9 -2
  49. package/_bundled_plugin/shared/workbench-history-repairs.json +21 -0
  50. package/_bundled_plugin/shared/workbench-migrations.json +44 -0
  51. package/_bundled_plugin/skills/assess-patch-risk/SKILL.md +3 -14
  52. package/_bundled_plugin/skills/assess-patch-risk/references/windows-validation.md +14 -0
  53. package/_bundled_plugin/skills/attack-path-analysis/SKILL.md +38 -103
  54. package/_bundled_plugin/skills/attack-path-analysis/references/attack-path-facts.md +11 -73
  55. package/_bundled_plugin/skills/attack-path-analysis/references/severity-policy.md +57 -116
  56. package/_bundled_plugin/skills/deep-security-scan/SKILL.md +28 -51
  57. package/_bundled_plugin/skills/define-security-policy/SKILL.md +9 -9
  58. package/_bundled_plugin/skills/finding-discovery/SKILL.md +26 -140
  59. package/_bundled_plugin/skills/fix-finding/SKILL.md +19 -30
  60. package/_bundled_plugin/skills/propose-security-hardening/SKILL.md +28 -218
  61. package/_bundled_plugin/skills/propose-security-hardening/references/proposal-format.md +29 -424
  62. package/_bundled_plugin/skills/publish-findings/SKILL.md +134 -0
  63. package/_bundled_plugin/skills/publish-findings/agents/openai.yaml +6 -0
  64. package/_bundled_plugin/skills/publish-findings/references/wiz-import.md +64 -0
  65. package/_bundled_plugin/skills/security-diff-scan/SKILL.md +12 -12
  66. package/_bundled_plugin/skills/security-scan/SKILL.md +28 -16
  67. package/_bundled_plugin/skills/security-scan/references/desktop-scan.md +11 -17
  68. package/_bundled_plugin/skills/security-scan/references/scan-artifacts-and-ledger.md +52 -69
  69. package/_bundled_plugin/skills/threat-model/SKILL.md +16 -9
  70. package/_bundled_plugin/skills/triage-finding/SKILL.md +5 -15
  71. package/_bundled_plugin/skills/triage-finding/references/ticket-intake.md +6 -6
  72. package/_bundled_plugin/skills/validation/SKILL.md +42 -104
  73. package/_bundled_plugin/skills/validation/references/validation-guidance.md +21 -106
  74. package/_bundled_plugin/skills/verify-fix/SKILL.md +8 -4
  75. package/_bundled_plugin/skills/vulnerability-writeup/SKILL.md +21 -159
  76. package/_bundled_plugin/skills/vulnerability-writeup/references/report-format.md +18 -60
  77. package/dist/api.d.ts +8 -3
  78. package/dist/api.d.ts.map +1 -1
  79. package/dist/api.js +414 -72
  80. package/dist/api.js.map +1 -1
  81. package/dist/auth.d.ts.map +1 -1
  82. package/dist/auth.js +4 -1
  83. package/dist/auth.js.map +1 -1
  84. package/dist/classify-severity-records.d.ts +5 -2
  85. package/dist/classify-severity-records.d.ts.map +1 -1
  86. package/dist/classify-severity-records.js +40 -34
  87. package/dist/classify-severity-records.js.map +1 -1
  88. package/dist/classify-severity.d.ts +5 -1
  89. package/dist/classify-severity.d.ts.map +1 -1
  90. package/dist/classify-severity.js +20 -30
  91. package/dist/classify-severity.js.map +1 -1
  92. package/dist/cli-help.d.ts.map +1 -1
  93. package/dist/cli-help.js +1 -0
  94. package/dist/cli-help.js.map +1 -1
  95. package/dist/cli.d.ts +9 -2
  96. package/dist/cli.d.ts.map +1 -1
  97. package/dist/cli.js +802 -149
  98. package/dist/cli.js.map +1 -1
  99. package/dist/cloud-endpoint.d.ts +6 -0
  100. package/dist/cloud-endpoint.d.ts.map +1 -0
  101. package/dist/cloud-endpoint.js +51 -0
  102. package/dist/cloud-endpoint.js.map +1 -0
  103. package/dist/cloud-publish.d.ts.map +1 -1
  104. package/dist/cloud-publish.js +7 -5
  105. package/dist/cloud-publish.js.map +1 -1
  106. package/dist/component-scan.d.ts +8 -2
  107. package/dist/component-scan.d.ts.map +1 -1
  108. package/dist/component-scan.js +2 -0
  109. package/dist/component-scan.js.map +1 -1
  110. package/dist/contract.d.ts +2 -0
  111. package/dist/contract.d.ts.map +1 -1
  112. package/dist/contract.js +67 -33
  113. package/dist/contract.js.map +1 -1
  114. package/dist/cost.d.ts +18 -0
  115. package/dist/cost.d.ts.map +1 -1
  116. package/dist/cost.js +107 -12
  117. package/dist/cost.js.map +1 -1
  118. package/dist/coverage-presentation.d.ts +6 -0
  119. package/dist/coverage-presentation.d.ts.map +1 -0
  120. package/dist/coverage-presentation.js +34 -0
  121. package/dist/coverage-presentation.js.map +1 -0
  122. package/dist/custom-validation-prompt.js +3 -3
  123. package/dist/custom-validation-prompt.js.map +1 -1
  124. package/dist/custom-validation.d.ts.map +1 -1
  125. package/dist/custom-validation.js +30 -4
  126. package/dist/custom-validation.js.map +1 -1
  127. package/dist/deduplication/checkpointed-review.d.ts.map +1 -1
  128. package/dist/deduplication/checkpointed-review.js +3 -1
  129. package/dist/deduplication/checkpointed-review.js.map +1 -1
  130. package/dist/deduplication/scan.d.ts.map +1 -1
  131. package/dist/deduplication/scan.js +7 -5
  132. package/dist/deduplication/scan.js.map +1 -1
  133. package/dist/default-severity-rubric.d.ts +3 -0
  134. package/dist/default-severity-rubric.d.ts.map +1 -0
  135. package/dist/default-severity-rubric.js +67 -0
  136. package/dist/default-severity-rubric.js.map +1 -0
  137. package/dist/endor-findings.d.ts +8 -0
  138. package/dist/endor-findings.d.ts.map +1 -0
  139. package/dist/endor-findings.js +238 -0
  140. package/dist/endor-findings.js.map +1 -0
  141. package/dist/external-findings-import.d.ts +5 -0
  142. package/dist/external-findings-import.d.ts.map +1 -0
  143. package/dist/external-findings-import.js +46 -0
  144. package/dist/external-findings-import.js.map +1 -0
  145. package/dist/external-findings-local.d.ts +63 -0
  146. package/dist/external-findings-local.d.ts.map +1 -0
  147. package/dist/external-findings-local.js +344 -0
  148. package/dist/external-findings-local.js.map +1 -0
  149. package/dist/external-findings-publish.d.ts +73 -0
  150. package/dist/external-findings-publish.d.ts.map +1 -0
  151. package/dist/external-findings-publish.js +721 -0
  152. package/dist/external-findings-publish.js.map +1 -0
  153. package/dist/external-findings-read.d.ts +16 -0
  154. package/dist/external-findings-read.d.ts.map +1 -0
  155. package/dist/external-findings-read.js +97 -0
  156. package/dist/external-findings-read.js.map +1 -0
  157. package/dist/external-findings.d.ts +21 -0
  158. package/dist/external-findings.d.ts.map +1 -0
  159. package/dist/external-findings.js +2 -0
  160. package/dist/external-findings.js.map +1 -0
  161. package/dist/external-import-contract.d.ts +15 -0
  162. package/dist/external-import-contract.d.ts.map +1 -0
  163. package/dist/external-import-contract.js +262 -0
  164. package/dist/external-import-contract.js.map +1 -0
  165. package/dist/external-import-models.d.ts +362 -0
  166. package/dist/external-import-models.d.ts.map +1 -0
  167. package/dist/external-import-models.js +3 -0
  168. package/dist/external-import-models.js.map +1 -0
  169. package/dist/external-imports-feature.d.ts +6 -0
  170. package/dist/external-imports-feature.d.ts.map +1 -0
  171. package/dist/external-imports-feature.js +51 -0
  172. package/dist/external-imports-feature.js.map +1 -0
  173. package/dist/finding-workflow.d.ts +23 -6
  174. package/dist/finding-workflow.d.ts.map +1 -1
  175. package/dist/finding-workflow.js +23 -10
  176. package/dist/finding-workflow.js.map +1 -1
  177. package/dist/github-advisories.d.ts +386 -0
  178. package/dist/github-advisories.d.ts.map +1 -0
  179. package/dist/github-advisories.js +133 -0
  180. package/dist/github-advisories.js.map +1 -0
  181. package/dist/github-findings.d.ts +11 -0
  182. package/dist/github-findings.d.ts.map +1 -0
  183. package/dist/github-findings.js +258 -0
  184. package/dist/github-findings.js.map +1 -0
  185. package/dist/hosted-remediation-protocol.d.ts +2 -1
  186. package/dist/hosted-remediation-protocol.d.ts.map +1 -1
  187. package/dist/hosted-remediation-protocol.js +17 -11
  188. package/dist/hosted-remediation-protocol.js.map +1 -1
  189. package/dist/hosted-remediation.d.ts +4 -0
  190. package/dist/hosted-remediation.d.ts.map +1 -1
  191. package/dist/hosted-remediation.js +22 -3
  192. package/dist/hosted-remediation.js.map +1 -1
  193. package/dist/hosted-scan.d.ts +16 -0
  194. package/dist/hosted-scan.d.ts.map +1 -1
  195. package/dist/hosted-scan.js +9 -2
  196. package/dist/hosted-scan.js.map +1 -1
  197. package/dist/import-scan.js +1 -1
  198. package/dist/import-scan.js.map +1 -1
  199. package/dist/index.d.ts +16 -3
  200. package/dist/index.d.ts.map +1 -1
  201. package/dist/index.js +9 -1
  202. package/dist/index.js.map +1 -1
  203. package/dist/knowledge-base.d.ts +1 -0
  204. package/dist/knowledge-base.d.ts.map +1 -1
  205. package/dist/knowledge-base.js +17 -8
  206. package/dist/knowledge-base.js.map +1 -1
  207. package/dist/models.d.ts +1 -0
  208. package/dist/models.d.ts.map +1 -1
  209. package/dist/models.js.map +1 -1
  210. package/dist/owner-evidence.d.ts +2 -0
  211. package/dist/owner-evidence.d.ts.map +1 -1
  212. package/dist/owner-evidence.js +2 -1
  213. package/dist/owner-evidence.js.map +1 -1
  214. package/dist/project-config-schema.d.ts +2 -0
  215. package/dist/project-config-schema.d.ts.map +1 -1
  216. package/dist/project-config-schema.js +1 -0
  217. package/dist/project-config-schema.js.map +1 -1
  218. package/dist/project-config.d.ts +1 -0
  219. package/dist/project-config.d.ts.map +1 -1
  220. package/dist/project-config.js +2 -0
  221. package/dist/project-config.js.map +1 -1
  222. package/dist/publish.d.ts +2 -0
  223. package/dist/publish.d.ts.map +1 -1
  224. package/dist/publish.js +1 -1
  225. package/dist/publish.js.map +1 -1
  226. package/dist/remediation.d.ts +7 -25
  227. package/dist/remediation.d.ts.map +1 -1
  228. package/dist/remediation.js +18 -28
  229. package/dist/remediation.js.map +1 -1
  230. package/dist/result.d.ts +4 -0
  231. package/dist/result.d.ts.map +1 -1
  232. package/dist/result.js +10 -0
  233. package/dist/result.js.map +1 -1
  234. package/dist/runtime.d.ts +1 -0
  235. package/dist/runtime.d.ts.map +1 -1
  236. package/dist/runtime.js +10 -8
  237. package/dist/runtime.js.map +1 -1
  238. package/dist/scan-dashboard.d.ts +5 -3
  239. package/dist/scan-dashboard.d.ts.map +1 -1
  240. package/dist/scan-dashboard.js +79 -26
  241. package/dist/scan-dashboard.js.map +1 -1
  242. package/dist/scan-history-renderer.d.ts.map +1 -1
  243. package/dist/scan-history-renderer.js +8 -2
  244. package/dist/scan-history-renderer.js.map +1 -1
  245. package/dist/scan-owner-suggestions.d.ts +8 -0
  246. package/dist/scan-owner-suggestions.d.ts.map +1 -0
  247. package/dist/scan-owner-suggestions.js +33 -0
  248. package/dist/scan-owner-suggestions.js.map +1 -0
  249. package/dist/scan-settings.d.ts +1 -0
  250. package/dist/scan-settings.d.ts.map +1 -1
  251. package/dist/scan-settings.js +4 -0
  252. package/dist/scan-settings.js.map +1 -1
  253. package/dist/scan-usage-display.d.ts +8 -0
  254. package/dist/scan-usage-display.d.ts.map +1 -0
  255. package/dist/scan-usage-display.js +46 -0
  256. package/dist/scan-usage-display.js.map +1 -0
  257. package/dist/scanner-import.d.ts +20 -0
  258. package/dist/scanner-import.d.ts.map +1 -0
  259. package/dist/scanner-import.js +208 -0
  260. package/dist/scanner-import.js.map +1 -0
  261. package/dist/security-policy-diff.d.ts +2 -0
  262. package/dist/security-policy-diff.d.ts.map +1 -0
  263. package/dist/security-policy-diff.js +197 -0
  264. package/dist/security-policy-diff.js.map +1 -0
  265. package/dist/security-policy.d.ts +7 -3
  266. package/dist/security-policy.d.ts.map +1 -1
  267. package/dist/security-policy.js +11 -76
  268. package/dist/security-policy.js.map +1 -1
  269. package/dist/semgrep-findings.d.ts +10 -0
  270. package/dist/semgrep-findings.d.ts.map +1 -0
  271. package/dist/semgrep-findings.js +293 -0
  272. package/dist/semgrep-findings.js.map +1 -0
  273. package/dist/severity-review.d.ts +3 -0
  274. package/dist/severity-review.d.ts.map +1 -1
  275. package/dist/severity-review.js +19 -0
  276. package/dist/severity-review.js.map +1 -1
  277. package/dist/severity-store.js +7 -2
  278. package/dist/severity-store.js.map +1 -1
  279. package/dist/skill-authentication.d.ts +18 -0
  280. package/dist/skill-authentication.d.ts.map +1 -0
  281. package/dist/skill-authentication.js +82 -0
  282. package/dist/skill-authentication.js.map +1 -0
  283. package/dist/snyk-findings.d.ts +10 -0
  284. package/dist/snyk-findings.d.ts.map +1 -0
  285. package/dist/snyk-findings.js +350 -0
  286. package/dist/snyk-findings.js.map +1 -0
  287. package/dist/suggest-owners.d.ts +4 -1
  288. package/dist/suggest-owners.d.ts.map +1 -1
  289. package/dist/suggest-owners.js +53 -21
  290. package/dist/suggest-owners.js.map +1 -1
  291. package/dist/targets.d.ts +2 -2
  292. package/dist/targets.d.ts.map +1 -1
  293. package/dist/targets.js +16 -3
  294. package/dist/targets.js.map +1 -1
  295. package/dist/wiz-csv.d.ts +9 -0
  296. package/dist/wiz-csv.d.ts.map +1 -0
  297. package/dist/wiz-csv.js +116 -0
  298. package/dist/wiz-csv.js.map +1 -0
  299. package/dist/wiz-findings.d.ts +5 -0
  300. package/dist/wiz-findings.d.ts.map +1 -0
  301. package/dist/wiz-findings.js +464 -0
  302. package/dist/wiz-findings.js.map +1 -0
  303. package/docs/classify-severity-records.md +30 -13
  304. package/docs/cli.md +835 -47
  305. package/docs/findings-service.md +119 -118
  306. package/docs/hosted-remediation.md +43 -24
  307. package/docs/hosted-scans.md +38 -0
  308. package/package.json +11 -9
  309. package/schemas/external-findings.schema.json +1421 -0
  310. package/schemas/project-config.schema.json +4 -0
  311. package/_bundled_plugin/scripts/generate_in_scope_files.py +0 -277
  312. package/_bundled_plugin/scripts/generate_rank_input.py +0 -350
  313. package/_bundled_plugin/scripts/rank_preview.py +0 -129
@@ -0,0 +1,1421 @@
1
+ {
2
+ "$defs": {
3
+ "FindingImportItem": {
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "client_id": {
7
+ "maxLength": 128,
8
+ "minLength": 1,
9
+ "title": "Client Id",
10
+ "type": "string"
11
+ },
12
+ "source_finding_id": {
13
+ "maxLength": 512,
14
+ "minLength": 1,
15
+ "title": "Source Finding Id",
16
+ "type": "string"
17
+ },
18
+ "expected_version": {
19
+ "minimum": 0,
20
+ "title": "Expected Version",
21
+ "type": "integer"
22
+ },
23
+ "evidence": {
24
+ "$ref": "#/$defs/ImportedFindingEvidence"
25
+ }
26
+ },
27
+ "required": [
28
+ "client_id",
29
+ "source_finding_id",
30
+ "expected_version",
31
+ "evidence"
32
+ ],
33
+ "title": "FindingImportItem",
34
+ "type": "object"
35
+ },
36
+ "FindingImportReceipt": {
37
+ "additionalProperties": false,
38
+ "properties": {
39
+ "id": {
40
+ "format": "uuid",
41
+ "title": "Id",
42
+ "type": "string"
43
+ },
44
+ "object": {
45
+ "const": "security.finding_import",
46
+ "default": "security.finding_import",
47
+ "title": "Object",
48
+ "type": "string"
49
+ },
50
+ "repository": {
51
+ "$ref": "#/$defs/ImportDestination"
52
+ },
53
+ "source": {
54
+ "$ref": "#/$defs/ImportSource"
55
+ },
56
+ "actor": {
57
+ "title": "Actor",
58
+ "type": "string"
59
+ },
60
+ "created_at": {
61
+ "title": "Created At",
62
+ "type": "integer"
63
+ },
64
+ "item_count": {
65
+ "maximum": 100,
66
+ "minimum": 1,
67
+ "title": "Item Count",
68
+ "type": "integer"
69
+ },
70
+ "counts": {
71
+ "$ref": "#/$defs/ImportCounts"
72
+ },
73
+ "results": {
74
+ "items": {
75
+ "$ref": "#/$defs/FindingImportResult"
76
+ },
77
+ "title": "Results",
78
+ "type": "array"
79
+ }
80
+ },
81
+ "required": [
82
+ "id",
83
+ "repository",
84
+ "source",
85
+ "actor",
86
+ "created_at",
87
+ "item_count",
88
+ "counts",
89
+ "results"
90
+ ],
91
+ "title": "FindingImportReceipt",
92
+ "type": "object"
93
+ },
94
+ "FindingImportRequest": {
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "request_id": {
98
+ "format": "uuid",
99
+ "title": "Request Id",
100
+ "type": "string"
101
+ },
102
+ "repository": {
103
+ "$ref": "#/$defs/ImportDestination"
104
+ },
105
+ "source": {
106
+ "$ref": "#/$defs/ImportSource"
107
+ },
108
+ "items": {
109
+ "items": {
110
+ "$ref": "#/$defs/FindingImportItem"
111
+ },
112
+ "maxItems": 100,
113
+ "minItems": 1,
114
+ "title": "Items",
115
+ "type": "array"
116
+ }
117
+ },
118
+ "required": ["request_id", "repository", "source", "items"],
119
+ "title": "FindingImportRequest",
120
+ "type": "object"
121
+ },
122
+ "FindingImportResult": {
123
+ "additionalProperties": false,
124
+ "properties": {
125
+ "client_id": {
126
+ "title": "Client Id",
127
+ "type": "string"
128
+ },
129
+ "outcome": {
130
+ "enum": ["created", "updated", "unchanged", "error"],
131
+ "title": "Outcome",
132
+ "type": "string"
133
+ },
134
+ "source_report_id": {
135
+ "anyOf": [
136
+ {
137
+ "pattern": "^aif_[0-9a-f]{64}$",
138
+ "type": "string"
139
+ },
140
+ {
141
+ "type": "null"
142
+ }
143
+ ],
144
+ "default": null,
145
+ "title": "Source Report Id"
146
+ },
147
+ "observation_id": {
148
+ "anyOf": [
149
+ {
150
+ "pattern": "^aio_[0-9a-f]{64}$",
151
+ "type": "string"
152
+ },
153
+ {
154
+ "type": "null"
155
+ }
156
+ ],
157
+ "default": null,
158
+ "title": "Observation Id"
159
+ },
160
+ "canonical_finding_id": {
161
+ "anyOf": [
162
+ {
163
+ "pattern": "^acf_[0-9a-f]{32}$",
164
+ "type": "string"
165
+ },
166
+ {
167
+ "type": "null"
168
+ }
169
+ ],
170
+ "default": null,
171
+ "title": "Canonical Finding Id"
172
+ },
173
+ "version": {
174
+ "anyOf": [
175
+ {
176
+ "minimum": 1,
177
+ "type": "integer"
178
+ },
179
+ {
180
+ "type": "null"
181
+ }
182
+ ],
183
+ "default": null,
184
+ "title": "Version"
185
+ },
186
+ "error": {
187
+ "anyOf": [
188
+ {
189
+ "$ref": "#/$defs/ImportItemError"
190
+ },
191
+ {
192
+ "type": "null"
193
+ }
194
+ ],
195
+ "default": null
196
+ }
197
+ },
198
+ "required": ["client_id", "outcome"],
199
+ "title": "FindingImportResult",
200
+ "type": "object"
201
+ },
202
+ "ImportCounts": {
203
+ "additionalProperties": false,
204
+ "properties": {
205
+ "created": {
206
+ "default": 0,
207
+ "minimum": 0,
208
+ "title": "Created",
209
+ "type": "integer"
210
+ },
211
+ "updated": {
212
+ "default": 0,
213
+ "minimum": 0,
214
+ "title": "Updated",
215
+ "type": "integer"
216
+ },
217
+ "unchanged": {
218
+ "default": 0,
219
+ "minimum": 0,
220
+ "title": "Unchanged",
221
+ "type": "integer"
222
+ },
223
+ "error": {
224
+ "default": 0,
225
+ "minimum": 0,
226
+ "title": "Error",
227
+ "type": "integer"
228
+ }
229
+ },
230
+ "title": "ImportCounts",
231
+ "type": "object"
232
+ },
233
+ "ImportDestination": {
234
+ "additionalProperties": false,
235
+ "properties": {
236
+ "id": {
237
+ "maxLength": 512,
238
+ "minLength": 1,
239
+ "title": "Id",
240
+ "type": "string"
241
+ },
242
+ "repo_connector_id": {
243
+ "maxLength": 512,
244
+ "minLength": 1,
245
+ "title": "Repo Connector Id",
246
+ "type": "string"
247
+ },
248
+ "environment_id": {
249
+ "maxLength": 512,
250
+ "minLength": 1,
251
+ "title": "Environment Id",
252
+ "type": "string"
253
+ },
254
+ "reset_marker": {
255
+ "maxLength": 512,
256
+ "minLength": 1,
257
+ "title": "Reset Marker",
258
+ "type": "string"
259
+ }
260
+ },
261
+ "required": ["id", "repo_connector_id", "environment_id", "reset_marker"],
262
+ "title": "ImportDestination",
263
+ "type": "object"
264
+ },
265
+ "ImportItemError": {
266
+ "additionalProperties": false,
267
+ "properties": {
268
+ "code": {
269
+ "enum": [
270
+ "version_conflict",
271
+ "scope_conflict",
272
+ "stale_source_snapshot"
273
+ ],
274
+ "title": "Code",
275
+ "type": "string"
276
+ },
277
+ "message": {
278
+ "title": "Message",
279
+ "type": "string"
280
+ }
281
+ },
282
+ "required": ["code", "message"],
283
+ "title": "ImportItemError",
284
+ "type": "object"
285
+ },
286
+ "ImportRepository": {
287
+ "additionalProperties": false,
288
+ "properties": {
289
+ "id": {
290
+ "title": "Id",
291
+ "type": "string"
292
+ },
293
+ "object": {
294
+ "const": "security.repository",
295
+ "default": "security.repository",
296
+ "title": "Object",
297
+ "type": "string"
298
+ },
299
+ "repo_connector_id": {
300
+ "title": "Repo Connector Id",
301
+ "type": "string"
302
+ },
303
+ "url": {
304
+ "title": "Url",
305
+ "type": "string"
306
+ },
307
+ "default_branch": {
308
+ "anyOf": [
309
+ {
310
+ "type": "string"
311
+ },
312
+ {
313
+ "type": "null"
314
+ }
315
+ ],
316
+ "default": null,
317
+ "title": "Default Branch"
318
+ },
319
+ "reset_marker": {
320
+ "title": "Reset Marker",
321
+ "type": "string"
322
+ },
323
+ "import_environment_id": {
324
+ "anyOf": [
325
+ {
326
+ "type": "string"
327
+ },
328
+ {
329
+ "type": "null"
330
+ }
331
+ ],
332
+ "default": null,
333
+ "title": "Import Environment Id"
334
+ }
335
+ },
336
+ "required": ["id", "repo_connector_id", "url", "reset_marker"],
337
+ "title": "ImportRepository",
338
+ "type": "object"
339
+ },
340
+ "ImportRepositoryPage": {
341
+ "additionalProperties": false,
342
+ "properties": {
343
+ "object": {
344
+ "const": "page",
345
+ "default": "page",
346
+ "title": "Object",
347
+ "type": "string"
348
+ },
349
+ "data": {
350
+ "items": {
351
+ "$ref": "#/$defs/ImportRepository"
352
+ },
353
+ "title": "Data",
354
+ "type": "array"
355
+ },
356
+ "has_more": {
357
+ "title": "Has More",
358
+ "type": "boolean"
359
+ },
360
+ "next": {
361
+ "anyOf": [
362
+ {
363
+ "maxLength": 4096,
364
+ "type": "string"
365
+ },
366
+ {
367
+ "type": "null"
368
+ }
369
+ ],
370
+ "title": "Next"
371
+ }
372
+ },
373
+ "required": ["data", "has_more", "next"],
374
+ "title": "ImportRepositoryPage",
375
+ "type": "object"
376
+ },
377
+ "ImportSource": {
378
+ "additionalProperties": false,
379
+ "properties": {
380
+ "provider": {
381
+ "enum": ["wiz", "endor", "snyk", "github", "semgrep"],
382
+ "title": "Provider",
383
+ "type": "string"
384
+ },
385
+ "source_key": {
386
+ "maxLength": 512,
387
+ "minLength": 1,
388
+ "title": "Source Key",
389
+ "type": "string"
390
+ }
391
+ },
392
+ "required": ["provider", "source_key"],
393
+ "title": "ImportSource",
394
+ "type": "object"
395
+ },
396
+ "ImportedAdvisoryContext": {
397
+ "additionalProperties": false,
398
+ "description": "Where the advisory was read; applicability is assessed separately.",
399
+ "properties": {
400
+ "source": {
401
+ "enum": ["repository", "global"],
402
+ "title": "Source",
403
+ "type": "string"
404
+ }
405
+ },
406
+ "required": ["source"],
407
+ "title": "ImportedAdvisoryContext",
408
+ "type": "object"
409
+ },
410
+ "ImportedAssessment": {
411
+ "additionalProperties": false,
412
+ "properties": {
413
+ "state": {
414
+ "const": "not_assessed",
415
+ "default": "not_assessed",
416
+ "title": "State",
417
+ "type": "string"
418
+ }
419
+ },
420
+ "title": "ImportedAssessment",
421
+ "type": "object"
422
+ },
423
+ "ImportedCodeContext": {
424
+ "additionalProperties": false,
425
+ "description": "Optional range and snippet for the evidence's first source location.",
426
+ "properties": {
427
+ "end_line": {
428
+ "anyOf": [
429
+ {
430
+ "minimum": 1,
431
+ "type": "integer"
432
+ },
433
+ {
434
+ "type": "null"
435
+ }
436
+ ],
437
+ "default": null,
438
+ "title": "End Line"
439
+ },
440
+ "snippet": {
441
+ "anyOf": [
442
+ {
443
+ "maxLength": 65536,
444
+ "type": "string"
445
+ },
446
+ {
447
+ "type": "null"
448
+ }
449
+ ],
450
+ "default": null,
451
+ "title": "Snippet"
452
+ }
453
+ },
454
+ "title": "ImportedCodeContext",
455
+ "type": "object"
456
+ },
457
+ "ImportedConfigurationDetails": {
458
+ "additionalProperties": false,
459
+ "properties": {
460
+ "platform": {
461
+ "anyOf": [
462
+ {
463
+ "maxLength": 512,
464
+ "minLength": 1,
465
+ "type": "string"
466
+ },
467
+ {
468
+ "type": "null"
469
+ }
470
+ ],
471
+ "default": null,
472
+ "title": "Platform"
473
+ },
474
+ "cloud_platform": {
475
+ "anyOf": [
476
+ {
477
+ "maxLength": 512,
478
+ "minLength": 1,
479
+ "type": "string"
480
+ },
481
+ {
482
+ "type": "null"
483
+ }
484
+ ],
485
+ "default": null,
486
+ "title": "Cloud Platform"
487
+ },
488
+ "expected": {
489
+ "anyOf": [
490
+ {
491
+ "maxLength": 65536,
492
+ "type": "string"
493
+ },
494
+ {
495
+ "type": "null"
496
+ }
497
+ ],
498
+ "default": null,
499
+ "title": "Expected"
500
+ },
501
+ "actual": {
502
+ "anyOf": [
503
+ {
504
+ "maxLength": 65536,
505
+ "type": "string"
506
+ },
507
+ {
508
+ "type": "null"
509
+ }
510
+ ],
511
+ "default": null,
512
+ "title": "Actual"
513
+ }
514
+ },
515
+ "title": "ImportedConfigurationDetails",
516
+ "type": "object"
517
+ },
518
+ "ImportedFindingDetails": {
519
+ "additionalProperties": false,
520
+ "description": "Typed repository evidence; vendor state is not a Codex assessment.",
521
+ "properties": {
522
+ "kind": {
523
+ "enum": ["sast", "secret", "iac", "advisory"],
524
+ "title": "Kind",
525
+ "type": "string"
526
+ },
527
+ "repository": {
528
+ "anyOf": [
529
+ {
530
+ "$ref": "#/$defs/ImportedRepositoryReference"
531
+ },
532
+ {
533
+ "type": "null"
534
+ }
535
+ ]
536
+ },
537
+ "advisory": {
538
+ "anyOf": [
539
+ {
540
+ "$ref": "#/$defs/ImportedAdvisoryContext"
541
+ },
542
+ {
543
+ "type": "null"
544
+ }
545
+ ]
546
+ },
547
+ "source_status": {
548
+ "anyOf": [
549
+ {
550
+ "maxLength": 512,
551
+ "minLength": 1,
552
+ "type": "string"
553
+ },
554
+ {
555
+ "type": "null"
556
+ }
557
+ ],
558
+ "default": null,
559
+ "title": "Source Status"
560
+ },
561
+ "scanner_origin": {
562
+ "anyOf": [
563
+ {
564
+ "maxLength": 512,
565
+ "minLength": 1,
566
+ "type": "string"
567
+ },
568
+ {
569
+ "type": "null"
570
+ }
571
+ ],
572
+ "default": null,
573
+ "title": "Scanner Origin"
574
+ },
575
+ "scanner_verdict": {
576
+ "anyOf": [
577
+ {
578
+ "maxLength": 512,
579
+ "minLength": 1,
580
+ "type": "string"
581
+ },
582
+ {
583
+ "type": "null"
584
+ }
585
+ ],
586
+ "default": null,
587
+ "title": "Scanner Verdict"
588
+ },
589
+ "rule": {
590
+ "anyOf": [
591
+ {
592
+ "$ref": "#/$defs/ImportedFindingRule"
593
+ },
594
+ {
595
+ "type": "null"
596
+ }
597
+ ],
598
+ "default": null
599
+ },
600
+ "weakness_ids": {
601
+ "default": [],
602
+ "items": {
603
+ "maxLength": 512,
604
+ "minLength": 1,
605
+ "type": "string"
606
+ },
607
+ "maxItems": 100,
608
+ "title": "Weakness Ids",
609
+ "type": "array"
610
+ },
611
+ "remediation_instructions": {
612
+ "anyOf": [
613
+ {
614
+ "maxLength": 65536,
615
+ "type": "string"
616
+ },
617
+ {
618
+ "type": "null"
619
+ }
620
+ ],
621
+ "default": null,
622
+ "title": "Remediation Instructions"
623
+ },
624
+ "code": {
625
+ "anyOf": [
626
+ {
627
+ "$ref": "#/$defs/ImportedCodeContext"
628
+ },
629
+ {
630
+ "type": "null"
631
+ }
632
+ ],
633
+ "default": null
634
+ },
635
+ "secret": {
636
+ "anyOf": [
637
+ {
638
+ "$ref": "#/$defs/ImportedSecretDetails"
639
+ },
640
+ {
641
+ "type": "null"
642
+ }
643
+ ],
644
+ "default": null
645
+ },
646
+ "configuration": {
647
+ "anyOf": [
648
+ {
649
+ "$ref": "#/$defs/ImportedConfigurationDetails"
650
+ },
651
+ {
652
+ "type": "null"
653
+ }
654
+ ],
655
+ "default": null
656
+ },
657
+ "file_url": {
658
+ "anyOf": [
659
+ {
660
+ "maxLength": 2048,
661
+ "type": "string"
662
+ },
663
+ {
664
+ "type": "null"
665
+ }
666
+ ],
667
+ "default": null,
668
+ "title": "File Url"
669
+ }
670
+ },
671
+ "required": ["kind"],
672
+ "title": "ImportedFindingDetails",
673
+ "type": "object"
674
+ },
675
+ "ImportedFindingEvidence": {
676
+ "additionalProperties": false,
677
+ "properties": {
678
+ "title": {
679
+ "maxLength": 512,
680
+ "minLength": 1,
681
+ "title": "Title",
682
+ "type": "string"
683
+ },
684
+ "severity": {
685
+ "enum": [
686
+ "critical",
687
+ "high",
688
+ "medium",
689
+ "low",
690
+ "informational",
691
+ "unknown"
692
+ ],
693
+ "title": "Severity",
694
+ "type": "string"
695
+ },
696
+ "description": {
697
+ "anyOf": [
698
+ {
699
+ "maxLength": 65536,
700
+ "type": "string"
701
+ },
702
+ {
703
+ "type": "null"
704
+ }
705
+ ],
706
+ "default": null,
707
+ "title": "Description"
708
+ },
709
+ "url": {
710
+ "anyOf": [
711
+ {
712
+ "maxLength": 2048,
713
+ "type": "string"
714
+ },
715
+ {
716
+ "type": "null"
717
+ }
718
+ ],
719
+ "default": null,
720
+ "title": "Url"
721
+ },
722
+ "advisory_ids": {
723
+ "default": [],
724
+ "items": {
725
+ "maxLength": 512,
726
+ "minLength": 1,
727
+ "type": "string"
728
+ },
729
+ "maxItems": 100,
730
+ "title": "Advisory Ids",
731
+ "type": "array"
732
+ },
733
+ "packages": {
734
+ "default": [],
735
+ "items": {
736
+ "$ref": "#/$defs/ImportedPackage"
737
+ },
738
+ "maxItems": 100,
739
+ "title": "Packages",
740
+ "type": "array"
741
+ },
742
+ "locations": {
743
+ "default": [],
744
+ "items": {
745
+ "$ref": "#/$defs/ImportedLocation"
746
+ },
747
+ "maxItems": 100,
748
+ "title": "Locations",
749
+ "type": "array"
750
+ },
751
+ "branch": {
752
+ "anyOf": [
753
+ {
754
+ "maxLength": 512,
755
+ "minLength": 1,
756
+ "type": "string"
757
+ },
758
+ {
759
+ "type": "null"
760
+ }
761
+ ],
762
+ "default": null,
763
+ "title": "Branch"
764
+ },
765
+ "code_revision": {
766
+ "anyOf": [
767
+ {
768
+ "maxLength": 512,
769
+ "minLength": 1,
770
+ "type": "string"
771
+ },
772
+ {
773
+ "type": "null"
774
+ }
775
+ ],
776
+ "default": null,
777
+ "title": "Code Revision"
778
+ },
779
+ "source_scan_id": {
780
+ "anyOf": [
781
+ {
782
+ "maxLength": 512,
783
+ "minLength": 1,
784
+ "type": "string"
785
+ },
786
+ {
787
+ "type": "null"
788
+ }
789
+ ],
790
+ "default": null,
791
+ "title": "Source Scan Id"
792
+ },
793
+ "image_digests": {
794
+ "default": [],
795
+ "items": {
796
+ "maxLength": 512,
797
+ "minLength": 1,
798
+ "type": "string"
799
+ },
800
+ "maxItems": 100,
801
+ "title": "Image Digests",
802
+ "type": "array"
803
+ },
804
+ "source_updated_at": {
805
+ "anyOf": [
806
+ {
807
+ "minimum": 0,
808
+ "type": "integer"
809
+ },
810
+ {
811
+ "type": "null"
812
+ }
813
+ ],
814
+ "default": null,
815
+ "title": "Source Updated At"
816
+ },
817
+ "source_data": {
818
+ "additionalProperties": true,
819
+ "default": {},
820
+ "title": "Source Data",
821
+ "type": "object"
822
+ },
823
+ "details": {
824
+ "anyOf": [
825
+ {
826
+ "$ref": "#/$defs/ImportedFindingDetails"
827
+ },
828
+ {
829
+ "type": "null"
830
+ }
831
+ ]
832
+ }
833
+ },
834
+ "required": ["title", "severity"],
835
+ "title": "ImportedFindingEvidence",
836
+ "type": "object"
837
+ },
838
+ "ImportedFindingRule": {
839
+ "additionalProperties": false,
840
+ "properties": {
841
+ "id": {
842
+ "anyOf": [
843
+ {
844
+ "maxLength": 512,
845
+ "minLength": 1,
846
+ "type": "string"
847
+ },
848
+ {
849
+ "type": "null"
850
+ }
851
+ ],
852
+ "default": null,
853
+ "title": "Id"
854
+ },
855
+ "short_id": {
856
+ "anyOf": [
857
+ {
858
+ "maxLength": 512,
859
+ "minLength": 1,
860
+ "type": "string"
861
+ },
862
+ {
863
+ "type": "null"
864
+ }
865
+ ],
866
+ "default": null,
867
+ "title": "Short Id"
868
+ },
869
+ "name": {
870
+ "anyOf": [
871
+ {
872
+ "maxLength": 512,
873
+ "minLength": 1,
874
+ "type": "string"
875
+ },
876
+ {
877
+ "type": "null"
878
+ }
879
+ ],
880
+ "default": null,
881
+ "title": "Name"
882
+ }
883
+ },
884
+ "title": "ImportedFindingRule",
885
+ "type": "object"
886
+ },
887
+ "ImportedLocation": {
888
+ "additionalProperties": false,
889
+ "properties": {
890
+ "path": {
891
+ "maxLength": 2048,
892
+ "minLength": 1,
893
+ "title": "Path",
894
+ "type": "string"
895
+ },
896
+ "line": {
897
+ "anyOf": [
898
+ {
899
+ "minimum": 1,
900
+ "type": "integer"
901
+ },
902
+ {
903
+ "type": "null"
904
+ }
905
+ ],
906
+ "default": null,
907
+ "title": "Line"
908
+ }
909
+ },
910
+ "required": ["path"],
911
+ "title": "ImportedLocation",
912
+ "type": "object"
913
+ },
914
+ "ImportedPackage": {
915
+ "additionalProperties": false,
916
+ "properties": {
917
+ "name": {
918
+ "maxLength": 512,
919
+ "minLength": 1,
920
+ "title": "Name",
921
+ "type": "string"
922
+ },
923
+ "ecosystem": {
924
+ "anyOf": [
925
+ {
926
+ "maxLength": 512,
927
+ "minLength": 1,
928
+ "type": "string"
929
+ },
930
+ {
931
+ "type": "null"
932
+ }
933
+ ],
934
+ "default": null,
935
+ "title": "Ecosystem"
936
+ },
937
+ "installed_version": {
938
+ "anyOf": [
939
+ {
940
+ "maxLength": 512,
941
+ "minLength": 1,
942
+ "type": "string"
943
+ },
944
+ {
945
+ "type": "null"
946
+ }
947
+ ],
948
+ "default": null,
949
+ "title": "Installed Version"
950
+ },
951
+ "vulnerable_version_range": {
952
+ "anyOf": [
953
+ {
954
+ "maxLength": 512,
955
+ "minLength": 1,
956
+ "type": "string"
957
+ },
958
+ {
959
+ "type": "null"
960
+ }
961
+ ],
962
+ "title": "Vulnerable Version Range"
963
+ },
964
+ "manifest_path": {
965
+ "anyOf": [
966
+ {
967
+ "maxLength": 2048,
968
+ "type": "string"
969
+ },
970
+ {
971
+ "type": "null"
972
+ }
973
+ ],
974
+ "default": null,
975
+ "title": "Manifest Path"
976
+ },
977
+ "fixed_versions": {
978
+ "default": [],
979
+ "items": {
980
+ "maxLength": 512,
981
+ "minLength": 1,
982
+ "type": "string"
983
+ },
984
+ "maxItems": 100,
985
+ "title": "Fixed Versions",
986
+ "type": "array"
987
+ }
988
+ },
989
+ "required": ["name"],
990
+ "title": "ImportedPackage",
991
+ "type": "object"
992
+ },
993
+ "ImportedRepositoryReference": {
994
+ "additionalProperties": false,
995
+ "description": "Vendor repository identity, resolved to the full source-control URL.",
996
+ "properties": {
997
+ "url": {
998
+ "maxLength": 2048,
999
+ "minLength": 1,
1000
+ "title": "Url",
1001
+ "type": "string"
1002
+ },
1003
+ "id": {
1004
+ "anyOf": [
1005
+ {
1006
+ "maxLength": 512,
1007
+ "minLength": 1,
1008
+ "type": "string"
1009
+ },
1010
+ {
1011
+ "type": "null"
1012
+ }
1013
+ ],
1014
+ "default": null,
1015
+ "title": "Id"
1016
+ },
1017
+ "name": {
1018
+ "anyOf": [
1019
+ {
1020
+ "maxLength": 512,
1021
+ "minLength": 1,
1022
+ "type": "string"
1023
+ },
1024
+ {
1025
+ "type": "null"
1026
+ }
1027
+ ],
1028
+ "default": null,
1029
+ "title": "Name"
1030
+ }
1031
+ },
1032
+ "required": ["url"],
1033
+ "title": "ImportedRepositoryReference",
1034
+ "type": "object"
1035
+ },
1036
+ "ImportedSecretConfidence": {
1037
+ "maxLength": 512,
1038
+ "minLength": 1,
1039
+ "type": "string"
1040
+ },
1041
+ "ImportedSecretDetails": {
1042
+ "additionalProperties": false,
1043
+ "properties": {
1044
+ "type": {
1045
+ "anyOf": [
1046
+ {
1047
+ "maxLength": 512,
1048
+ "minLength": 1,
1049
+ "type": "string"
1050
+ },
1051
+ {
1052
+ "type": "null"
1053
+ }
1054
+ ],
1055
+ "default": null,
1056
+ "title": "Type"
1057
+ },
1058
+ "confidence": {
1059
+ "anyOf": [
1060
+ {
1061
+ "$ref": "#/$defs/ImportedSecretConfidence"
1062
+ },
1063
+ {
1064
+ "type": "null"
1065
+ }
1066
+ ],
1067
+ "default": null
1068
+ },
1069
+ "validation_status": {
1070
+ "anyOf": [
1071
+ {
1072
+ "maxLength": 512,
1073
+ "minLength": 1,
1074
+ "type": "string"
1075
+ },
1076
+ {
1077
+ "type": "null"
1078
+ }
1079
+ ],
1080
+ "default": null,
1081
+ "title": "Validation Status"
1082
+ },
1083
+ "is_encrypted": {
1084
+ "anyOf": [
1085
+ {
1086
+ "type": "boolean"
1087
+ },
1088
+ {
1089
+ "type": "null"
1090
+ }
1091
+ ],
1092
+ "default": null,
1093
+ "title": "Is Encrypted"
1094
+ },
1095
+ "is_managed": {
1096
+ "anyOf": [
1097
+ {
1098
+ "type": "boolean"
1099
+ },
1100
+ {
1101
+ "type": "null"
1102
+ }
1103
+ ],
1104
+ "default": null,
1105
+ "title": "Is Managed"
1106
+ },
1107
+ "introduced_commit": {
1108
+ "anyOf": [
1109
+ {
1110
+ "maxLength": 512,
1111
+ "minLength": 1,
1112
+ "type": "string"
1113
+ },
1114
+ {
1115
+ "type": "null"
1116
+ }
1117
+ ],
1118
+ "default": null,
1119
+ "title": "Introduced Commit"
1120
+ }
1121
+ },
1122
+ "title": "ImportedSecretDetails",
1123
+ "type": "object"
1124
+ },
1125
+ "LastImport": {
1126
+ "additionalProperties": false,
1127
+ "properties": {
1128
+ "id": {
1129
+ "format": "uuid",
1130
+ "title": "Id",
1131
+ "type": "string"
1132
+ },
1133
+ "actor": {
1134
+ "title": "Actor",
1135
+ "type": "string"
1136
+ },
1137
+ "created_at": {
1138
+ "title": "Created At",
1139
+ "type": "integer"
1140
+ }
1141
+ },
1142
+ "required": ["id", "actor", "created_at"],
1143
+ "title": "LastImport",
1144
+ "type": "object"
1145
+ },
1146
+ "SourceReport": {
1147
+ "additionalProperties": false,
1148
+ "properties": {
1149
+ "id": {
1150
+ "pattern": "^aif_[0-9a-f]{64}$",
1151
+ "title": "Id",
1152
+ "type": "string"
1153
+ },
1154
+ "object": {
1155
+ "const": "security.source_report",
1156
+ "default": "security.source_report",
1157
+ "title": "Object",
1158
+ "type": "string"
1159
+ },
1160
+ "origin": {
1161
+ "const": "imported",
1162
+ "default": "imported",
1163
+ "title": "Origin",
1164
+ "type": "string"
1165
+ },
1166
+ "repo_id": {
1167
+ "title": "Repo Id",
1168
+ "type": "string"
1169
+ },
1170
+ "repo_connector_id": {
1171
+ "title": "Repo Connector Id",
1172
+ "type": "string"
1173
+ },
1174
+ "environment_id": {
1175
+ "title": "Environment Id",
1176
+ "type": "string"
1177
+ },
1178
+ "canonical_finding_id": {
1179
+ "pattern": "^acf_[0-9a-f]{32}$",
1180
+ "title": "Canonical Finding Id",
1181
+ "type": "string"
1182
+ },
1183
+ "source": {
1184
+ "$ref": "#/$defs/ImportSource"
1185
+ },
1186
+ "source_finding_id": {
1187
+ "title": "Source Finding Id",
1188
+ "type": "string"
1189
+ },
1190
+ "observation_id": {
1191
+ "pattern": "^aio_[0-9a-f]{64}$",
1192
+ "title": "Observation Id",
1193
+ "type": "string"
1194
+ },
1195
+ "version": {
1196
+ "minimum": 1,
1197
+ "title": "Version",
1198
+ "type": "integer"
1199
+ },
1200
+ "evidence": {
1201
+ "$ref": "#/$defs/ImportedFindingEvidence"
1202
+ },
1203
+ "assessment": {
1204
+ "$ref": "#/$defs/ImportedAssessment"
1205
+ },
1206
+ "last_import": {
1207
+ "anyOf": [
1208
+ {
1209
+ "$ref": "#/$defs/LastImport"
1210
+ },
1211
+ {
1212
+ "type": "null"
1213
+ }
1214
+ ],
1215
+ "default": null
1216
+ },
1217
+ "created_at": {
1218
+ "title": "Created At",
1219
+ "type": "integer"
1220
+ },
1221
+ "updated_at": {
1222
+ "title": "Updated At",
1223
+ "type": "integer"
1224
+ }
1225
+ },
1226
+ "required": [
1227
+ "id",
1228
+ "repo_id",
1229
+ "repo_connector_id",
1230
+ "environment_id",
1231
+ "canonical_finding_id",
1232
+ "source",
1233
+ "source_finding_id",
1234
+ "observation_id",
1235
+ "version",
1236
+ "evidence",
1237
+ "created_at",
1238
+ "updated_at"
1239
+ ],
1240
+ "title": "SourceReport",
1241
+ "type": "object"
1242
+ },
1243
+ "SourceReportPage": {
1244
+ "additionalProperties": false,
1245
+ "properties": {
1246
+ "object": {
1247
+ "const": "page",
1248
+ "default": "page",
1249
+ "title": "Object",
1250
+ "type": "string"
1251
+ },
1252
+ "data": {
1253
+ "items": {
1254
+ "$ref": "#/$defs/SourceReportSummary"
1255
+ },
1256
+ "title": "Data",
1257
+ "type": "array"
1258
+ },
1259
+ "has_more": {
1260
+ "title": "Has More",
1261
+ "type": "boolean"
1262
+ },
1263
+ "next": {
1264
+ "anyOf": [
1265
+ {
1266
+ "maxLength": 4096,
1267
+ "type": "string"
1268
+ },
1269
+ {
1270
+ "type": "null"
1271
+ }
1272
+ ],
1273
+ "title": "Next"
1274
+ }
1275
+ },
1276
+ "required": ["data", "has_more", "next"],
1277
+ "title": "SourceReportPage",
1278
+ "type": "object"
1279
+ },
1280
+ "SourceReportSummary": {
1281
+ "additionalProperties": false,
1282
+ "properties": {
1283
+ "id": {
1284
+ "pattern": "^aif_[0-9a-f]{64}$",
1285
+ "title": "Id",
1286
+ "type": "string"
1287
+ },
1288
+ "object": {
1289
+ "const": "security.source_report_summary",
1290
+ "default": "security.source_report_summary",
1291
+ "title": "Object",
1292
+ "type": "string"
1293
+ },
1294
+ "origin": {
1295
+ "const": "imported",
1296
+ "default": "imported",
1297
+ "title": "Origin",
1298
+ "type": "string"
1299
+ },
1300
+ "repo_id": {
1301
+ "title": "Repo Id",
1302
+ "type": "string"
1303
+ },
1304
+ "repo_connector_id": {
1305
+ "title": "Repo Connector Id",
1306
+ "type": "string"
1307
+ },
1308
+ "environment_id": {
1309
+ "title": "Environment Id",
1310
+ "type": "string"
1311
+ },
1312
+ "canonical_finding_id": {
1313
+ "pattern": "^acf_[0-9a-f]{32}$",
1314
+ "title": "Canonical Finding Id",
1315
+ "type": "string"
1316
+ },
1317
+ "source": {
1318
+ "$ref": "#/$defs/ImportSource"
1319
+ },
1320
+ "source_finding_id": {
1321
+ "title": "Source Finding Id",
1322
+ "type": "string"
1323
+ },
1324
+ "observation_id": {
1325
+ "pattern": "^aio_[0-9a-f]{64}$",
1326
+ "title": "Observation Id",
1327
+ "type": "string"
1328
+ },
1329
+ "version": {
1330
+ "minimum": 1,
1331
+ "title": "Version",
1332
+ "type": "integer"
1333
+ },
1334
+ "title": {
1335
+ "title": "Title",
1336
+ "type": "string"
1337
+ },
1338
+ "severity": {
1339
+ "enum": [
1340
+ "critical",
1341
+ "high",
1342
+ "medium",
1343
+ "low",
1344
+ "informational",
1345
+ "unknown"
1346
+ ],
1347
+ "title": "Severity",
1348
+ "type": "string"
1349
+ },
1350
+ "source_updated_at": {
1351
+ "anyOf": [
1352
+ {
1353
+ "type": "integer"
1354
+ },
1355
+ {
1356
+ "type": "null"
1357
+ }
1358
+ ],
1359
+ "title": "Source Updated At"
1360
+ },
1361
+ "assessment": {
1362
+ "$ref": "#/$defs/ImportedAssessment"
1363
+ },
1364
+ "created_at": {
1365
+ "title": "Created At",
1366
+ "type": "integer"
1367
+ },
1368
+ "updated_at": {
1369
+ "title": "Updated At",
1370
+ "type": "integer"
1371
+ }
1372
+ },
1373
+ "required": [
1374
+ "id",
1375
+ "repo_id",
1376
+ "repo_connector_id",
1377
+ "environment_id",
1378
+ "canonical_finding_id",
1379
+ "source",
1380
+ "source_finding_id",
1381
+ "observation_id",
1382
+ "version",
1383
+ "title",
1384
+ "severity",
1385
+ "source_updated_at",
1386
+ "created_at",
1387
+ "updated_at"
1388
+ ],
1389
+ "title": "SourceReportSummary",
1390
+ "type": "object"
1391
+ }
1392
+ },
1393
+ "additionalProperties": false,
1394
+ "description": "Schema export root; transport endpoints return the individual models.",
1395
+ "properties": {
1396
+ "request": {
1397
+ "$ref": "#/$defs/FindingImportRequest"
1398
+ },
1399
+ "receipt": {
1400
+ "$ref": "#/$defs/FindingImportReceipt"
1401
+ },
1402
+ "repositories": {
1403
+ "$ref": "#/$defs/ImportRepositoryPage"
1404
+ },
1405
+ "source_report": {
1406
+ "$ref": "#/$defs/SourceReport"
1407
+ },
1408
+ "source_reports": {
1409
+ "$ref": "#/$defs/SourceReportPage"
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "request",
1414
+ "receipt",
1415
+ "repositories",
1416
+ "source_report",
1417
+ "source_reports"
1418
+ ],
1419
+ "title": "ExternalFindingContracts",
1420
+ "type": "object"
1421
+ }