@thinkai/tai-api-contract 2.225.0 → 2.227.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.
- package/dist/generated/openapi.d.ts +469 -2
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +160 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +705 -3
- package/openapi/x-test-status-map.json +20 -0
- package/package.json +1 -1
- package/src/generated/openapi.ts +469 -2
- package/src/index.ts +200 -1
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.227.0
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -60,7 +60,10 @@ tags:
|
|
|
60
60
|
- name: YourAiJourney
|
|
61
61
|
description: Your AI Journey dashboard aggregators (epic #267); composes readiness, metrics, and AI-spend data for the /dashboard page
|
|
62
62
|
- name: SdlcInsights
|
|
63
|
-
description:
|
|
63
|
+
description: >
|
|
64
|
+
SDLC Engineering Health insights — DORA, CI, collaboration, security, governance,
|
|
65
|
+
and operational metrics for `/insights/sdlc/overview`, plus Security & Risk findings
|
|
66
|
+
under `/insights/security/*`.
|
|
64
67
|
- name: InsightsRecommendations
|
|
65
68
|
description: >
|
|
66
69
|
Cross-analysis Insights & Recommendations page (`/insights-recommendations`).
|
|
@@ -5604,6 +5607,223 @@ paths:
|
|
|
5604
5607
|
"404":
|
|
5605
5608
|
description: Workspace or metric not found
|
|
5606
5609
|
|
|
5610
|
+
/workspaces/{workspaceId}/insights/security/posture:
|
|
5611
|
+
get:
|
|
5612
|
+
tags: [SdlcInsights]
|
|
5613
|
+
summary: Security & Risk posture roll-up
|
|
5614
|
+
description: >
|
|
5615
|
+
Headline KPIs, data-source strip, Fix-first queue, blind spots, team rollups,
|
|
5616
|
+
and AI risk for `/insights/sdlc/security-risk`. Finding detail for secrets and
|
|
5617
|
+
critical/high vulnerabilities is redacted unless the caller is a workspace admin
|
|
5618
|
+
or a member of the finding's owning team. Returns 404 `security_findings_disabled`
|
|
5619
|
+
when the runtime flag is off.
|
|
5620
|
+
operationId: getSecurityPosture
|
|
5621
|
+
parameters:
|
|
5622
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5623
|
+
responses:
|
|
5624
|
+
"200":
|
|
5625
|
+
description: Security posture payload
|
|
5626
|
+
content:
|
|
5627
|
+
application/json:
|
|
5628
|
+
schema:
|
|
5629
|
+
$ref: "#/components/schemas/SecurityPostureDto"
|
|
5630
|
+
"400":
|
|
5631
|
+
description: Invalid query parameters
|
|
5632
|
+
content:
|
|
5633
|
+
application/json:
|
|
5634
|
+
schema:
|
|
5635
|
+
type: object
|
|
5636
|
+
required: [error]
|
|
5637
|
+
properties:
|
|
5638
|
+
error: { type: string, example: invalid_query }
|
|
5639
|
+
"401":
|
|
5640
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5641
|
+
"403":
|
|
5642
|
+
$ref: "#/components/responses/Forbidden"
|
|
5643
|
+
"404":
|
|
5644
|
+
description: Workspace not found, or security findings flag off
|
|
5645
|
+
content:
|
|
5646
|
+
application/json:
|
|
5647
|
+
schema:
|
|
5648
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5649
|
+
examples:
|
|
5650
|
+
flagOff:
|
|
5651
|
+
value:
|
|
5652
|
+
error: Security findings are not enabled for this workspace
|
|
5653
|
+
code: security_findings_disabled
|
|
5654
|
+
|
|
5655
|
+
/workspaces/{workspaceId}/insights/security/findings:
|
|
5656
|
+
get:
|
|
5657
|
+
tags: [SdlcInsights]
|
|
5658
|
+
summary: Security & Risk findings page
|
|
5659
|
+
description: >
|
|
5660
|
+
Paginated security findings with optional filters. Applies the same redaction
|
|
5661
|
+
rules as the posture endpoint. Returns 404 `security_findings_disabled` when
|
|
5662
|
+
the runtime flag is off.
|
|
5663
|
+
operationId: getSecurityFindings
|
|
5664
|
+
parameters:
|
|
5665
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5666
|
+
- name: source
|
|
5667
|
+
in: query
|
|
5668
|
+
schema:
|
|
5669
|
+
$ref: "#/components/schemas/SecurityFindingSource"
|
|
5670
|
+
- name: category
|
|
5671
|
+
in: query
|
|
5672
|
+
schema:
|
|
5673
|
+
$ref: "#/components/schemas/SecurityFindingCategory"
|
|
5674
|
+
- name: severity
|
|
5675
|
+
in: query
|
|
5676
|
+
schema:
|
|
5677
|
+
$ref: "#/components/schemas/SecuritySeverity"
|
|
5678
|
+
- name: state
|
|
5679
|
+
in: query
|
|
5680
|
+
schema:
|
|
5681
|
+
$ref: "#/components/schemas/SecurityFindingState"
|
|
5682
|
+
- name: teamId
|
|
5683
|
+
in: query
|
|
5684
|
+
description: Filter to findings owned by this team id.
|
|
5685
|
+
schema:
|
|
5686
|
+
type: string
|
|
5687
|
+
- name: repoId
|
|
5688
|
+
in: query
|
|
5689
|
+
description: Filter to findings for this internal repo id.
|
|
5690
|
+
schema:
|
|
5691
|
+
type: string
|
|
5692
|
+
- name: pastDue
|
|
5693
|
+
in: query
|
|
5694
|
+
schema:
|
|
5695
|
+
type: boolean
|
|
5696
|
+
- name: cursor
|
|
5697
|
+
in: query
|
|
5698
|
+
schema:
|
|
5699
|
+
type: string
|
|
5700
|
+
- name: limit
|
|
5701
|
+
in: query
|
|
5702
|
+
schema:
|
|
5703
|
+
type: integer
|
|
5704
|
+
minimum: 1
|
|
5705
|
+
maximum: 100
|
|
5706
|
+
default: 25
|
|
5707
|
+
responses:
|
|
5708
|
+
"200":
|
|
5709
|
+
description: Findings page
|
|
5710
|
+
content:
|
|
5711
|
+
application/json:
|
|
5712
|
+
schema:
|
|
5713
|
+
$ref: "#/components/schemas/SecurityFindingsPageDto"
|
|
5714
|
+
"400":
|
|
5715
|
+
description: Invalid query parameters
|
|
5716
|
+
content:
|
|
5717
|
+
application/json:
|
|
5718
|
+
schema:
|
|
5719
|
+
type: object
|
|
5720
|
+
required: [error]
|
|
5721
|
+
properties:
|
|
5722
|
+
error: { type: string, example: invalid_query }
|
|
5723
|
+
"401":
|
|
5724
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5725
|
+
"403":
|
|
5726
|
+
$ref: "#/components/responses/Forbidden"
|
|
5727
|
+
"404":
|
|
5728
|
+
description: Workspace not found, or security findings flag off
|
|
5729
|
+
content:
|
|
5730
|
+
application/json:
|
|
5731
|
+
schema:
|
|
5732
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5733
|
+
examples:
|
|
5734
|
+
flagOff:
|
|
5735
|
+
value:
|
|
5736
|
+
error: Security findings are not enabled for this workspace
|
|
5737
|
+
code: security_findings_disabled
|
|
5738
|
+
|
|
5739
|
+
/workspaces/{workspaceId}/insights/security/settings:
|
|
5740
|
+
get:
|
|
5741
|
+
tags: [SdlcInsights]
|
|
5742
|
+
summary: Security & Risk settings
|
|
5743
|
+
description: >
|
|
5744
|
+
Fix-by targets and incident/ticket classification rules for the workspace.
|
|
5745
|
+
Returns 404 `security_findings_disabled` when the runtime flag is off.
|
|
5746
|
+
operationId: getSecuritySettings
|
|
5747
|
+
parameters:
|
|
5748
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5749
|
+
responses:
|
|
5750
|
+
"200":
|
|
5751
|
+
description: Current settings (defaults when no row exists)
|
|
5752
|
+
content:
|
|
5753
|
+
application/json:
|
|
5754
|
+
schema:
|
|
5755
|
+
$ref: "#/components/schemas/SecuritySettingsDto"
|
|
5756
|
+
"401":
|
|
5757
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5758
|
+
"403":
|
|
5759
|
+
$ref: "#/components/responses/Forbidden"
|
|
5760
|
+
"404":
|
|
5761
|
+
description: Workspace not found, or security findings flag off
|
|
5762
|
+
content:
|
|
5763
|
+
application/json:
|
|
5764
|
+
schema:
|
|
5765
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5766
|
+
examples:
|
|
5767
|
+
flagOff:
|
|
5768
|
+
value:
|
|
5769
|
+
error: Security findings are not enabled for this workspace
|
|
5770
|
+
code: security_findings_disabled
|
|
5771
|
+
put:
|
|
5772
|
+
tags: [SdlcInsights]
|
|
5773
|
+
summary: Update Security & Risk settings
|
|
5774
|
+
description: >
|
|
5775
|
+
Workspace-admin only. Validates SLA days (1–365 or null) and classification
|
|
5776
|
+
list caps (50 entries × 100 characters). Empty incident/ticket lists match
|
|
5777
|
+
nothing. Returns 403 `security_settings_admin_required` for non-admins and
|
|
5778
|
+
404 `security_findings_disabled` when the runtime flag is off.
|
|
5779
|
+
operationId: putSecuritySettings
|
|
5780
|
+
parameters:
|
|
5781
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5782
|
+
requestBody:
|
|
5783
|
+
required: true
|
|
5784
|
+
content:
|
|
5785
|
+
application/json:
|
|
5786
|
+
schema:
|
|
5787
|
+
$ref: "#/components/schemas/SecuritySettingsDto"
|
|
5788
|
+
responses:
|
|
5789
|
+
"200":
|
|
5790
|
+
description: Updated settings
|
|
5791
|
+
content:
|
|
5792
|
+
application/json:
|
|
5793
|
+
schema:
|
|
5794
|
+
$ref: "#/components/schemas/SecuritySettingsDto"
|
|
5795
|
+
"400":
|
|
5796
|
+
description: Invalid settings payload
|
|
5797
|
+
content:
|
|
5798
|
+
application/json:
|
|
5799
|
+
schema:
|
|
5800
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5801
|
+
example:
|
|
5802
|
+
error: Invalid SLA day
|
|
5803
|
+
code: invalid_input
|
|
5804
|
+
"401":
|
|
5805
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5806
|
+
"403":
|
|
5807
|
+
description: Caller is not a workspace admin
|
|
5808
|
+
content:
|
|
5809
|
+
application/json:
|
|
5810
|
+
schema:
|
|
5811
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5812
|
+
example:
|
|
5813
|
+
error: Workspace admin access is required to change security settings
|
|
5814
|
+
code: security_settings_admin_required
|
|
5815
|
+
"404":
|
|
5816
|
+
description: Workspace not found, or security findings flag off
|
|
5817
|
+
content:
|
|
5818
|
+
application/json:
|
|
5819
|
+
schema:
|
|
5820
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5821
|
+
examples:
|
|
5822
|
+
flagOff:
|
|
5823
|
+
value:
|
|
5824
|
+
error: Security findings are not enabled for this workspace
|
|
5825
|
+
code: security_findings_disabled
|
|
5826
|
+
|
|
5607
5827
|
/workspaces/{workspaceId}/insights/recommendations-page/bundle:
|
|
5608
5828
|
get:
|
|
5609
5829
|
tags: [InsightsRecommendations]
|
|
@@ -23190,6 +23410,11 @@ components:
|
|
|
23190
23410
|
type: boolean
|
|
23191
23411
|
description: >
|
|
23192
23412
|
True when installation grants Vulnerability alerts and Secret scanning alerts read for SDLC security metrics.
|
|
23413
|
+
codeScanningPermissionsOk:
|
|
23414
|
+
type: boolean
|
|
23415
|
+
description: >
|
|
23416
|
+
Soft tier: true when installation grants security_events read for code scanning alerts.
|
|
23417
|
+
Independent of securityPermissionsOk so Dependabot/secret scanning keep working without it.
|
|
23193
23418
|
financialPermissionsOk:
|
|
23194
23419
|
type: boolean
|
|
23195
23420
|
description: >
|
|
@@ -23200,6 +23425,11 @@ components:
|
|
|
23200
23425
|
items:
|
|
23201
23426
|
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
23202
23427
|
description: Security alert permissions still needed for SDLC security metrics.
|
|
23428
|
+
missingCodeScanningPermissions:
|
|
23429
|
+
type: array
|
|
23430
|
+
items:
|
|
23431
|
+
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
23432
|
+
description: Code scanning permissions still needed for Security & Risk code scanning metrics.
|
|
23203
23433
|
missingFinancialPermissions:
|
|
23204
23434
|
type: array
|
|
23205
23435
|
items:
|
|
@@ -23747,6 +23977,11 @@ components:
|
|
|
23747
23977
|
securityPermissionsOk:
|
|
23748
23978
|
type: boolean
|
|
23749
23979
|
description: True when every connected installation grants security alert read permissions.
|
|
23980
|
+
codeScanningPermissionsOk:
|
|
23981
|
+
type: boolean
|
|
23982
|
+
description: >
|
|
23983
|
+
Soft tier: true when every connected installation grants code scanning alert read.
|
|
23984
|
+
Independent of securityPermissionsOk.
|
|
23750
23985
|
financialPermissionsOk:
|
|
23751
23986
|
type: boolean
|
|
23752
23987
|
description: True when every connected installation grants financial/operational read permissions.
|
|
@@ -23755,6 +23990,11 @@ components:
|
|
|
23755
23990
|
items:
|
|
23756
23991
|
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
23757
23992
|
description: Aggregated security permissions missing on installations with security gaps.
|
|
23993
|
+
missingCodeScanningPermissions:
|
|
23994
|
+
type: array
|
|
23995
|
+
items:
|
|
23996
|
+
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
23997
|
+
description: Aggregated code scanning permissions missing on installations with code scanning gaps.
|
|
23758
23998
|
missingFinancialPermissions:
|
|
23759
23999
|
type: array
|
|
23760
24000
|
items:
|
|
@@ -29182,6 +29422,55 @@ components:
|
|
|
29182
29422
|
description: >
|
|
29183
29423
|
Inclusive calendar-day window ending today (UTC), matching Home ship-weight KPIs (30).
|
|
29184
29424
|
|
|
29425
|
+
IngestCoverageProductivityInstallDto:
|
|
29426
|
+
type: object
|
|
29427
|
+
required:
|
|
29428
|
+
- vcsConnectionId
|
|
29429
|
+
- accountLogin
|
|
29430
|
+
- phase
|
|
29431
|
+
- historicalWeekStart
|
|
29432
|
+
- expectedWeeks
|
|
29433
|
+
- weeksCompleted
|
|
29434
|
+
- pendingRepoCount
|
|
29435
|
+
- totalRepoCount
|
|
29436
|
+
- failedRepoCount
|
|
29437
|
+
- skippedRepoCount
|
|
29438
|
+
additionalProperties: false
|
|
29439
|
+
properties:
|
|
29440
|
+
vcsConnectionId:
|
|
29441
|
+
type: string
|
|
29442
|
+
accountLogin:
|
|
29443
|
+
type: string
|
|
29444
|
+
description: GitHub org or user login for this App installation.
|
|
29445
|
+
phase:
|
|
29446
|
+
type: string
|
|
29447
|
+
enum: [recent, historical, complete]
|
|
29448
|
+
nullable: true
|
|
29449
|
+
historicalWeekStart:
|
|
29450
|
+
type: string
|
|
29451
|
+
nullable: true
|
|
29452
|
+
description: Current historical week cursor (ISO); null when not in a week walk.
|
|
29453
|
+
expectedWeeks:
|
|
29454
|
+
type: integer
|
|
29455
|
+
minimum: 1
|
|
29456
|
+
description: ceil(targetWindowDays / 7) week slots for this install.
|
|
29457
|
+
weeksCompleted:
|
|
29458
|
+
type: integer
|
|
29459
|
+
minimum: 0
|
|
29460
|
+
description: Fully finished week slots only; the in-progress week is excluded.
|
|
29461
|
+
pendingRepoCount:
|
|
29462
|
+
type: integer
|
|
29463
|
+
minimum: 0
|
|
29464
|
+
totalRepoCount:
|
|
29465
|
+
type: integer
|
|
29466
|
+
minimum: 0
|
|
29467
|
+
failedRepoCount:
|
|
29468
|
+
type: integer
|
|
29469
|
+
minimum: 0
|
|
29470
|
+
skippedRepoCount:
|
|
29471
|
+
type: integer
|
|
29472
|
+
minimum: 0
|
|
29473
|
+
|
|
29185
29474
|
IngestCoverageProductivityDetailDto:
|
|
29186
29475
|
type: object
|
|
29187
29476
|
required: [verificationStatus, sourceCapturePercent]
|
|
@@ -29197,12 +29486,15 @@ components:
|
|
|
29197
29486
|
pendingRepoCount:
|
|
29198
29487
|
type: integer
|
|
29199
29488
|
minimum: 0
|
|
29489
|
+
description: Sum of pending repo counts across installs.
|
|
29200
29490
|
skippedRepoCount:
|
|
29201
29491
|
type: integer
|
|
29202
29492
|
minimum: 0
|
|
29493
|
+
description: Sum of skipped repo counts across installs.
|
|
29203
29494
|
failedRepoCount:
|
|
29204
29495
|
type: integer
|
|
29205
29496
|
minimum: 0
|
|
29497
|
+
description: Sum of failed repo counts across installs.
|
|
29206
29498
|
coveragePercent:
|
|
29207
29499
|
type: number
|
|
29208
29500
|
nullable: true
|
|
@@ -29211,11 +29503,32 @@ components:
|
|
|
29211
29503
|
minimum: 0
|
|
29212
29504
|
description: >
|
|
29213
29505
|
Full repository count before the `repos` array is capped (500). When greater
|
|
29214
|
-
than `repos.length`, the list is truncated for the response.
|
|
29506
|
+
than `repos.length`, the list is truncated for the response. Multi-install
|
|
29507
|
+
workspaces use the sum of per-install totals.
|
|
29215
29508
|
repos:
|
|
29216
29509
|
type: array
|
|
29217
29510
|
items:
|
|
29218
29511
|
$ref: "#/components/schemas/IngestCoverageProductivityRepoDto"
|
|
29512
|
+
installs:
|
|
29513
|
+
type: array
|
|
29514
|
+
description: One row per GitHub VCS connection (install) in the workspace.
|
|
29515
|
+
items:
|
|
29516
|
+
$ref: "#/components/schemas/IngestCoverageProductivityInstallDto"
|
|
29517
|
+
overallWeeksCompleted:
|
|
29518
|
+
type: integer
|
|
29519
|
+
minimum: 0
|
|
29520
|
+
description: Sum of weeksCompleted across installs (backfill overall).
|
|
29521
|
+
overallWeeksExpected:
|
|
29522
|
+
type: integer
|
|
29523
|
+
minimum: 0
|
|
29524
|
+
description: installCount × expectedWeeks (backfill overall denominator).
|
|
29525
|
+
overallProgressPercent:
|
|
29526
|
+
type: number
|
|
29527
|
+
minimum: 0
|
|
29528
|
+
maximum: 100
|
|
29529
|
+
description: >
|
|
29530
|
+
overallWeeksCompleted / overallWeeksExpected as 0–100 (one decimal).
|
|
29531
|
+
Used for backfill chrome; incremental mode uses repo counts instead.
|
|
29219
29532
|
selfHeal:
|
|
29220
29533
|
description: >
|
|
29221
29534
|
Latest depth-scan and week-reconcile summary from stored activity rows.
|
|
@@ -30313,6 +30626,17 @@ components:
|
|
|
30313
30626
|
- sec-secret-scanning
|
|
30314
30627
|
- sec-self-approvals
|
|
30315
30628
|
- sec-unreviewed-merge
|
|
30629
|
+
- sec-critical-open
|
|
30630
|
+
- sec-past-due
|
|
30631
|
+
- sec-scan-coverage
|
|
30632
|
+
- sec-code-scanning-backlog
|
|
30633
|
+
- sec-sonar-vulnerabilities
|
|
30634
|
+
- sec-quality-gate-failing
|
|
30635
|
+
- sec-posture-gaps
|
|
30636
|
+
- sec-security-incidents
|
|
30637
|
+
- sec-security-tickets
|
|
30638
|
+
- sec-ai-pr-share
|
|
30639
|
+
- sec-ai-unreviewed-merge
|
|
30316
30640
|
- gov-branch-protection
|
|
30317
30641
|
- gov-stale-branches
|
|
30318
30642
|
- gov-orphaned-repos
|
|
@@ -30359,6 +30683,17 @@ components:
|
|
|
30359
30683
|
value:
|
|
30360
30684
|
type: number
|
|
30361
30685
|
|
|
30686
|
+
SdlcMetricBreakdownItemDto:
|
|
30687
|
+
type: object
|
|
30688
|
+
required: [key, label, value]
|
|
30689
|
+
properties:
|
|
30690
|
+
key:
|
|
30691
|
+
type: string
|
|
30692
|
+
label:
|
|
30693
|
+
type: string
|
|
30694
|
+
value:
|
|
30695
|
+
type: number
|
|
30696
|
+
|
|
30362
30697
|
SdlcMetricDto:
|
|
30363
30698
|
type: object
|
|
30364
30699
|
required: [id, name, dataStatus, healthStatus, value, drilldownAvailable]
|
|
@@ -30395,6 +30730,11 @@ components:
|
|
|
30395
30730
|
type: array
|
|
30396
30731
|
items:
|
|
30397
30732
|
$ref: "#/components/schemas/SdlcDailySeriesPointDto"
|
|
30733
|
+
breakdown:
|
|
30734
|
+
type: array
|
|
30735
|
+
description: Severity or category segments (e.g. Dependabot critical/high/medium/low).
|
|
30736
|
+
items:
|
|
30737
|
+
$ref: "#/components/schemas/SdlcMetricBreakdownItemDto"
|
|
30398
30738
|
unavailableReason:
|
|
30399
30739
|
type: string
|
|
30400
30740
|
|
|
@@ -30475,6 +30815,368 @@ components:
|
|
|
30475
30815
|
nextCursor:
|
|
30476
30816
|
type: string
|
|
30477
30817
|
|
|
30818
|
+
SecurityFindingSource:
|
|
30819
|
+
type: string
|
|
30820
|
+
enum:
|
|
30821
|
+
- github_dependabot
|
|
30822
|
+
- github_secret_scanning
|
|
30823
|
+
- github_code_scanning
|
|
30824
|
+
- sonar_vulnerability
|
|
30825
|
+
- sonar_hotspot
|
|
30826
|
+
- readiness_gap
|
|
30827
|
+
- code_insights
|
|
30828
|
+
- incident
|
|
30829
|
+
- ticket
|
|
30830
|
+
|
|
30831
|
+
SecurityFindingCategory:
|
|
30832
|
+
type: string
|
|
30833
|
+
enum: [dependency, secret, code, posture, incident, ticket]
|
|
30834
|
+
|
|
30835
|
+
SecuritySeverity:
|
|
30836
|
+
type: string
|
|
30837
|
+
enum: [critical, high, medium, low, unknown]
|
|
30838
|
+
|
|
30839
|
+
SecurityAiInvolvement:
|
|
30840
|
+
type: string
|
|
30841
|
+
enum: [measured, estimated, none, unknown]
|
|
30842
|
+
|
|
30843
|
+
SecurityFindingState:
|
|
30844
|
+
type: string
|
|
30845
|
+
enum: [open, fixed, dismissed]
|
|
30846
|
+
|
|
30847
|
+
SecurityFindingActionKind:
|
|
30848
|
+
type: string
|
|
30849
|
+
enum:
|
|
30850
|
+
- fix_pr
|
|
30851
|
+
- open_source
|
|
30852
|
+
- rotate_secret
|
|
30853
|
+
- assign_owner
|
|
30854
|
+
- open_incident
|
|
30855
|
+
- open_ticket
|
|
30856
|
+
|
|
30857
|
+
SecurityFindingActionDto:
|
|
30858
|
+
type: object
|
|
30859
|
+
required: [kind]
|
|
30860
|
+
properties:
|
|
30861
|
+
kind:
|
|
30862
|
+
$ref: "#/components/schemas/SecurityFindingActionKind"
|
|
30863
|
+
href:
|
|
30864
|
+
type: string
|
|
30865
|
+
format: uri
|
|
30866
|
+
readinessIssueId:
|
|
30867
|
+
type: string
|
|
30868
|
+
|
|
30869
|
+
SecurityNamedRefDto:
|
|
30870
|
+
type: object
|
|
30871
|
+
required: [id, name]
|
|
30872
|
+
properties:
|
|
30873
|
+
id: { type: string }
|
|
30874
|
+
name: { type: string }
|
|
30875
|
+
|
|
30876
|
+
SecurityRepoRefDto:
|
|
30877
|
+
type: object
|
|
30878
|
+
required: [id, slug]
|
|
30879
|
+
properties:
|
|
30880
|
+
id: { type: string }
|
|
30881
|
+
slug: { type: string }
|
|
30882
|
+
|
|
30883
|
+
SecurityFindingDto:
|
|
30884
|
+
type: object
|
|
30885
|
+
required:
|
|
30886
|
+
- id
|
|
30887
|
+
- source
|
|
30888
|
+
- sourceLabel
|
|
30889
|
+
- category
|
|
30890
|
+
- severity
|
|
30891
|
+
- title
|
|
30892
|
+
- repo
|
|
30893
|
+
- team
|
|
30894
|
+
- openedAt
|
|
30895
|
+
- dueAt
|
|
30896
|
+
- pastDue
|
|
30897
|
+
- state
|
|
30898
|
+
- url
|
|
30899
|
+
- aiInvolvement
|
|
30900
|
+
- alsoSeenIn
|
|
30901
|
+
- primaryAction
|
|
30902
|
+
- redacted
|
|
30903
|
+
properties:
|
|
30904
|
+
id: { type: string }
|
|
30905
|
+
source:
|
|
30906
|
+
$ref: "#/components/schemas/SecurityFindingSource"
|
|
30907
|
+
sourceLabel: { type: string }
|
|
30908
|
+
category:
|
|
30909
|
+
$ref: "#/components/schemas/SecurityFindingCategory"
|
|
30910
|
+
severity:
|
|
30911
|
+
$ref: "#/components/schemas/SecuritySeverity"
|
|
30912
|
+
title: { type: string }
|
|
30913
|
+
repo:
|
|
30914
|
+
allOf:
|
|
30915
|
+
- $ref: "#/components/schemas/SecurityRepoRefDto"
|
|
30916
|
+
nullable: true
|
|
30917
|
+
team:
|
|
30918
|
+
allOf:
|
|
30919
|
+
- $ref: "#/components/schemas/SecurityNamedRefDto"
|
|
30920
|
+
nullable: true
|
|
30921
|
+
openedAt:
|
|
30922
|
+
type: string
|
|
30923
|
+
format: date-time
|
|
30924
|
+
dueAt:
|
|
30925
|
+
type: string
|
|
30926
|
+
format: date-time
|
|
30927
|
+
nullable: true
|
|
30928
|
+
pastDue: { type: boolean }
|
|
30929
|
+
state:
|
|
30930
|
+
$ref: "#/components/schemas/SecurityFindingState"
|
|
30931
|
+
url:
|
|
30932
|
+
type: string
|
|
30933
|
+
format: uri
|
|
30934
|
+
nullable: true
|
|
30935
|
+
aiInvolvement:
|
|
30936
|
+
$ref: "#/components/schemas/SecurityAiInvolvement"
|
|
30937
|
+
alsoSeenIn:
|
|
30938
|
+
type: array
|
|
30939
|
+
items:
|
|
30940
|
+
$ref: "#/components/schemas/SecurityFindingSource"
|
|
30941
|
+
primaryAction:
|
|
30942
|
+
$ref: "#/components/schemas/SecurityFindingActionDto"
|
|
30943
|
+
redacted: { type: boolean }
|
|
30944
|
+
|
|
30945
|
+
SecurityDataSourceCategory:
|
|
30946
|
+
type: string
|
|
30947
|
+
enum: [source_control, code_quality, ai_tools, incidents, tickets, security]
|
|
30948
|
+
|
|
30949
|
+
SecurityDataSourceStatus:
|
|
30950
|
+
type: string
|
|
30951
|
+
enum: [connected, stale, needs_permission, not_connected, coming_soon]
|
|
30952
|
+
|
|
30953
|
+
SecurityDataSourceDto:
|
|
30954
|
+
type: object
|
|
30955
|
+
required: [id, name, category, status, lastSuccessAt, feeds]
|
|
30956
|
+
properties:
|
|
30957
|
+
id: { type: string }
|
|
30958
|
+
name: { type: string }
|
|
30959
|
+
category:
|
|
30960
|
+
$ref: "#/components/schemas/SecurityDataSourceCategory"
|
|
30961
|
+
status:
|
|
30962
|
+
$ref: "#/components/schemas/SecurityDataSourceStatus"
|
|
30963
|
+
lastSuccessAt:
|
|
30964
|
+
type: string
|
|
30965
|
+
format: date-time
|
|
30966
|
+
nullable: true
|
|
30967
|
+
feeds:
|
|
30968
|
+
type: array
|
|
30969
|
+
items:
|
|
30970
|
+
$ref: "#/components/schemas/SdlcMetricId"
|
|
30971
|
+
actionLabel: { type: string }
|
|
30972
|
+
actionHref: { type: string }
|
|
30973
|
+
|
|
30974
|
+
SecurityBlindSpotMissing:
|
|
30975
|
+
type: string
|
|
30976
|
+
enum: [dependabot, secret_scanning, sast, review_rule, owner]
|
|
30977
|
+
|
|
30978
|
+
SecurityBlindSpotDto:
|
|
30979
|
+
type: object
|
|
30980
|
+
required: [repo, team, missing]
|
|
30981
|
+
properties:
|
|
30982
|
+
repo:
|
|
30983
|
+
$ref: "#/components/schemas/SecurityRepoRefDto"
|
|
30984
|
+
team:
|
|
30985
|
+
allOf:
|
|
30986
|
+
- $ref: "#/components/schemas/SecurityNamedRefDto"
|
|
30987
|
+
nullable: true
|
|
30988
|
+
missing:
|
|
30989
|
+
type: array
|
|
30990
|
+
items:
|
|
30991
|
+
$ref: "#/components/schemas/SecurityBlindSpotMissing"
|
|
30992
|
+
|
|
30993
|
+
SecurityTeamRollupDto:
|
|
30994
|
+
type: object
|
|
30995
|
+
required:
|
|
30996
|
+
[team, criticalOpen, pastDue, scanCoveragePercent, aiUnreviewedPercent, openFindings]
|
|
30997
|
+
properties:
|
|
30998
|
+
team:
|
|
30999
|
+
allOf:
|
|
31000
|
+
- $ref: "#/components/schemas/SecurityNamedRefDto"
|
|
31001
|
+
nullable: true
|
|
31002
|
+
criticalOpen: { type: integer, minimum: 0 }
|
|
31003
|
+
pastDue: { type: integer, minimum: 0 }
|
|
31004
|
+
scanCoveragePercent:
|
|
31005
|
+
type: number
|
|
31006
|
+
nullable: true
|
|
31007
|
+
aiUnreviewedPercent:
|
|
31008
|
+
type: number
|
|
31009
|
+
nullable: true
|
|
31010
|
+
openFindings: { type: integer, minimum: 0 }
|
|
31011
|
+
|
|
31012
|
+
SecurityAiRiskDto:
|
|
31013
|
+
type: object
|
|
31014
|
+
required:
|
|
31015
|
+
- agentPrSharePercent
|
|
31016
|
+
- agentUnreviewedPercent
|
|
31017
|
+
- humanUnreviewedPercent
|
|
31018
|
+
- acceptedAiLinesByTeam
|
|
31019
|
+
- guardrails
|
|
31020
|
+
- attributionQuality
|
|
31021
|
+
properties:
|
|
31022
|
+
agentPrSharePercent:
|
|
31023
|
+
type: number
|
|
31024
|
+
nullable: true
|
|
31025
|
+
agentUnreviewedPercent:
|
|
31026
|
+
type: number
|
|
31027
|
+
nullable: true
|
|
31028
|
+
humanUnreviewedPercent:
|
|
31029
|
+
type: number
|
|
31030
|
+
nullable: true
|
|
31031
|
+
acceptedAiLinesByTeam:
|
|
31032
|
+
type: array
|
|
31033
|
+
items:
|
|
31034
|
+
type: object
|
|
31035
|
+
required: [team, lines]
|
|
31036
|
+
properties:
|
|
31037
|
+
team:
|
|
31038
|
+
allOf:
|
|
31039
|
+
- $ref: "#/components/schemas/SecurityNamedRefDto"
|
|
31040
|
+
nullable: true
|
|
31041
|
+
lines: { type: integer, minimum: 0 }
|
|
31042
|
+
guardrails:
|
|
31043
|
+
type: object
|
|
31044
|
+
required:
|
|
31045
|
+
- reposWithAgentIgnore
|
|
31046
|
+
- reposWithMcpPosture
|
|
31047
|
+
- reposWithSecretsScanner
|
|
31048
|
+
- reposScanned
|
|
31049
|
+
properties:
|
|
31050
|
+
reposWithAgentIgnore: { type: integer, minimum: 0 }
|
|
31051
|
+
reposWithMcpPosture: { type: integer, minimum: 0 }
|
|
31052
|
+
reposWithSecretsScanner: { type: integer, minimum: 0 }
|
|
31053
|
+
reposScanned: { type: integer, minimum: 0 }
|
|
31054
|
+
attributionQuality:
|
|
31055
|
+
$ref: "#/components/schemas/SecurityAiInvolvement"
|
|
31056
|
+
|
|
31057
|
+
SecurityPostureDto:
|
|
31058
|
+
type: object
|
|
31059
|
+
required:
|
|
31060
|
+
- asOf
|
|
31061
|
+
- rangeId
|
|
31062
|
+
- headline
|
|
31063
|
+
- dataSources
|
|
31064
|
+
- fixFirst
|
|
31065
|
+
- blindSpots
|
|
31066
|
+
- teams
|
|
31067
|
+
- aiRisk
|
|
31068
|
+
- viewer
|
|
31069
|
+
- _meta
|
|
31070
|
+
properties:
|
|
31071
|
+
asOf:
|
|
31072
|
+
type: string
|
|
31073
|
+
format: date-time
|
|
31074
|
+
rangeId: { type: string }
|
|
31075
|
+
headline:
|
|
31076
|
+
type: object
|
|
31077
|
+
required: [criticalOpen, pastDue, reposWithoutCoverage, unownedFindings]
|
|
31078
|
+
properties:
|
|
31079
|
+
criticalOpen: { type: integer, minimum: 0 }
|
|
31080
|
+
pastDue: { type: integer, minimum: 0 }
|
|
31081
|
+
reposWithoutCoverage: { type: integer, minimum: 0 }
|
|
31082
|
+
unownedFindings: { type: integer, minimum: 0 }
|
|
31083
|
+
dataSources:
|
|
31084
|
+
type: array
|
|
31085
|
+
items:
|
|
31086
|
+
$ref: "#/components/schemas/SecurityDataSourceDto"
|
|
31087
|
+
fixFirst:
|
|
31088
|
+
type: array
|
|
31089
|
+
items:
|
|
31090
|
+
$ref: "#/components/schemas/SecurityFindingDto"
|
|
31091
|
+
blindSpots:
|
|
31092
|
+
type: array
|
|
31093
|
+
items:
|
|
31094
|
+
$ref: "#/components/schemas/SecurityBlindSpotDto"
|
|
31095
|
+
teams:
|
|
31096
|
+
type: array
|
|
31097
|
+
items:
|
|
31098
|
+
$ref: "#/components/schemas/SecurityTeamRollupDto"
|
|
31099
|
+
aiRisk:
|
|
31100
|
+
$ref: "#/components/schemas/SecurityAiRiskDto"
|
|
31101
|
+
viewer:
|
|
31102
|
+
type: object
|
|
31103
|
+
required: [isAdmin, ownedTeamIds]
|
|
31104
|
+
properties:
|
|
31105
|
+
isAdmin: { type: boolean }
|
|
31106
|
+
ownedTeamIds:
|
|
31107
|
+
type: array
|
|
31108
|
+
items: { type: string }
|
|
31109
|
+
_meta:
|
|
31110
|
+
$ref: "#/components/schemas/InsightsResponseMeta"
|
|
31111
|
+
|
|
31112
|
+
SecurityFindingsPageDto:
|
|
31113
|
+
type: object
|
|
31114
|
+
required: [items, total]
|
|
31115
|
+
properties:
|
|
31116
|
+
items:
|
|
31117
|
+
type: array
|
|
31118
|
+
items:
|
|
31119
|
+
$ref: "#/components/schemas/SecurityFindingDto"
|
|
31120
|
+
nextCursor: { type: string }
|
|
31121
|
+
total: { type: integer, minimum: 0 }
|
|
31122
|
+
|
|
31123
|
+
SecuritySettingsDto:
|
|
31124
|
+
type: object
|
|
31125
|
+
required: [slaDays, incidentRules, ticketRules]
|
|
31126
|
+
properties:
|
|
31127
|
+
slaDays:
|
|
31128
|
+
type: object
|
|
31129
|
+
required: [critical, high, medium, low]
|
|
31130
|
+
properties:
|
|
31131
|
+
critical:
|
|
31132
|
+
type: integer
|
|
31133
|
+
minimum: 1
|
|
31134
|
+
maximum: 365
|
|
31135
|
+
nullable: true
|
|
31136
|
+
high:
|
|
31137
|
+
type: integer
|
|
31138
|
+
minimum: 1
|
|
31139
|
+
maximum: 365
|
|
31140
|
+
nullable: true
|
|
31141
|
+
medium:
|
|
31142
|
+
type: integer
|
|
31143
|
+
minimum: 1
|
|
31144
|
+
maximum: 365
|
|
31145
|
+
nullable: true
|
|
31146
|
+
low:
|
|
31147
|
+
type: integer
|
|
31148
|
+
minimum: 1
|
|
31149
|
+
maximum: 365
|
|
31150
|
+
nullable: true
|
|
31151
|
+
incidentRules:
|
|
31152
|
+
type: object
|
|
31153
|
+
required: [labels, severityNames, titleKeywords]
|
|
31154
|
+
properties:
|
|
31155
|
+
labels:
|
|
31156
|
+
type: array
|
|
31157
|
+
maxItems: 50
|
|
31158
|
+
items: { type: string, maxLength: 100 }
|
|
31159
|
+
severityNames:
|
|
31160
|
+
type: array
|
|
31161
|
+
maxItems: 50
|
|
31162
|
+
items: { type: string, maxLength: 100 }
|
|
31163
|
+
titleKeywords:
|
|
31164
|
+
type: array
|
|
31165
|
+
maxItems: 50
|
|
31166
|
+
items: { type: string, maxLength: 100 }
|
|
31167
|
+
ticketRules:
|
|
31168
|
+
type: object
|
|
31169
|
+
required: [labels, issueTypes]
|
|
31170
|
+
properties:
|
|
31171
|
+
labels:
|
|
31172
|
+
type: array
|
|
31173
|
+
maxItems: 50
|
|
31174
|
+
items: { type: string, maxLength: 100 }
|
|
31175
|
+
issueTypes:
|
|
31176
|
+
type: array
|
|
31177
|
+
maxItems: 50
|
|
31178
|
+
items: { type: string, maxLength: 100 }
|
|
31179
|
+
|
|
30478
31180
|
InsightsResponseMeta:
|
|
30479
31181
|
type: object
|
|
30480
31182
|
required: [syncedAt, isMock]
|