@thinkai/tai-api-contract 2.224.0 → 2.226.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.224.0
4
+ version: 2.226.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: SDLC Engineering Health insights — DORA, CI, collaboration, security, governance, and operational metrics for `/insights/sdlc/overview`.
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:
@@ -30313,6 +30553,17 @@ components:
30313
30553
  - sec-secret-scanning
30314
30554
  - sec-self-approvals
30315
30555
  - sec-unreviewed-merge
30556
+ - sec-critical-open
30557
+ - sec-past-due
30558
+ - sec-scan-coverage
30559
+ - sec-code-scanning-backlog
30560
+ - sec-sonar-vulnerabilities
30561
+ - sec-quality-gate-failing
30562
+ - sec-posture-gaps
30563
+ - sec-security-incidents
30564
+ - sec-security-tickets
30565
+ - sec-ai-pr-share
30566
+ - sec-ai-unreviewed-merge
30316
30567
  - gov-branch-protection
30317
30568
  - gov-stale-branches
30318
30569
  - gov-orphaned-repos
@@ -30359,6 +30610,17 @@ components:
30359
30610
  value:
30360
30611
  type: number
30361
30612
 
30613
+ SdlcMetricBreakdownItemDto:
30614
+ type: object
30615
+ required: [key, label, value]
30616
+ properties:
30617
+ key:
30618
+ type: string
30619
+ label:
30620
+ type: string
30621
+ value:
30622
+ type: number
30623
+
30362
30624
  SdlcMetricDto:
30363
30625
  type: object
30364
30626
  required: [id, name, dataStatus, healthStatus, value, drilldownAvailable]
@@ -30395,6 +30657,11 @@ components:
30395
30657
  type: array
30396
30658
  items:
30397
30659
  $ref: "#/components/schemas/SdlcDailySeriesPointDto"
30660
+ breakdown:
30661
+ type: array
30662
+ description: Severity or category segments (e.g. Dependabot critical/high/medium/low).
30663
+ items:
30664
+ $ref: "#/components/schemas/SdlcMetricBreakdownItemDto"
30398
30665
  unavailableReason:
30399
30666
  type: string
30400
30667
 
@@ -30475,6 +30742,368 @@ components:
30475
30742
  nextCursor:
30476
30743
  type: string
30477
30744
 
30745
+ SecurityFindingSource:
30746
+ type: string
30747
+ enum:
30748
+ - github_dependabot
30749
+ - github_secret_scanning
30750
+ - github_code_scanning
30751
+ - sonar_vulnerability
30752
+ - sonar_hotspot
30753
+ - readiness_gap
30754
+ - code_insights
30755
+ - incident
30756
+ - ticket
30757
+
30758
+ SecurityFindingCategory:
30759
+ type: string
30760
+ enum: [dependency, secret, code, posture, incident, ticket]
30761
+
30762
+ SecuritySeverity:
30763
+ type: string
30764
+ enum: [critical, high, medium, low, unknown]
30765
+
30766
+ SecurityAiInvolvement:
30767
+ type: string
30768
+ enum: [measured, estimated, none, unknown]
30769
+
30770
+ SecurityFindingState:
30771
+ type: string
30772
+ enum: [open, fixed, dismissed]
30773
+
30774
+ SecurityFindingActionKind:
30775
+ type: string
30776
+ enum:
30777
+ - fix_pr
30778
+ - open_source
30779
+ - rotate_secret
30780
+ - assign_owner
30781
+ - open_incident
30782
+ - open_ticket
30783
+
30784
+ SecurityFindingActionDto:
30785
+ type: object
30786
+ required: [kind]
30787
+ properties:
30788
+ kind:
30789
+ $ref: "#/components/schemas/SecurityFindingActionKind"
30790
+ href:
30791
+ type: string
30792
+ format: uri
30793
+ readinessIssueId:
30794
+ type: string
30795
+
30796
+ SecurityNamedRefDto:
30797
+ type: object
30798
+ required: [id, name]
30799
+ properties:
30800
+ id: { type: string }
30801
+ name: { type: string }
30802
+
30803
+ SecurityRepoRefDto:
30804
+ type: object
30805
+ required: [id, slug]
30806
+ properties:
30807
+ id: { type: string }
30808
+ slug: { type: string }
30809
+
30810
+ SecurityFindingDto:
30811
+ type: object
30812
+ required:
30813
+ - id
30814
+ - source
30815
+ - sourceLabel
30816
+ - category
30817
+ - severity
30818
+ - title
30819
+ - repo
30820
+ - team
30821
+ - openedAt
30822
+ - dueAt
30823
+ - pastDue
30824
+ - state
30825
+ - url
30826
+ - aiInvolvement
30827
+ - alsoSeenIn
30828
+ - primaryAction
30829
+ - redacted
30830
+ properties:
30831
+ id: { type: string }
30832
+ source:
30833
+ $ref: "#/components/schemas/SecurityFindingSource"
30834
+ sourceLabel: { type: string }
30835
+ category:
30836
+ $ref: "#/components/schemas/SecurityFindingCategory"
30837
+ severity:
30838
+ $ref: "#/components/schemas/SecuritySeverity"
30839
+ title: { type: string }
30840
+ repo:
30841
+ allOf:
30842
+ - $ref: "#/components/schemas/SecurityRepoRefDto"
30843
+ nullable: true
30844
+ team:
30845
+ allOf:
30846
+ - $ref: "#/components/schemas/SecurityNamedRefDto"
30847
+ nullable: true
30848
+ openedAt:
30849
+ type: string
30850
+ format: date-time
30851
+ dueAt:
30852
+ type: string
30853
+ format: date-time
30854
+ nullable: true
30855
+ pastDue: { type: boolean }
30856
+ state:
30857
+ $ref: "#/components/schemas/SecurityFindingState"
30858
+ url:
30859
+ type: string
30860
+ format: uri
30861
+ nullable: true
30862
+ aiInvolvement:
30863
+ $ref: "#/components/schemas/SecurityAiInvolvement"
30864
+ alsoSeenIn:
30865
+ type: array
30866
+ items:
30867
+ $ref: "#/components/schemas/SecurityFindingSource"
30868
+ primaryAction:
30869
+ $ref: "#/components/schemas/SecurityFindingActionDto"
30870
+ redacted: { type: boolean }
30871
+
30872
+ SecurityDataSourceCategory:
30873
+ type: string
30874
+ enum: [source_control, code_quality, ai_tools, incidents, tickets, security]
30875
+
30876
+ SecurityDataSourceStatus:
30877
+ type: string
30878
+ enum: [connected, stale, needs_permission, not_connected, coming_soon]
30879
+
30880
+ SecurityDataSourceDto:
30881
+ type: object
30882
+ required: [id, name, category, status, lastSuccessAt, feeds]
30883
+ properties:
30884
+ id: { type: string }
30885
+ name: { type: string }
30886
+ category:
30887
+ $ref: "#/components/schemas/SecurityDataSourceCategory"
30888
+ status:
30889
+ $ref: "#/components/schemas/SecurityDataSourceStatus"
30890
+ lastSuccessAt:
30891
+ type: string
30892
+ format: date-time
30893
+ nullable: true
30894
+ feeds:
30895
+ type: array
30896
+ items:
30897
+ $ref: "#/components/schemas/SdlcMetricId"
30898
+ actionLabel: { type: string }
30899
+ actionHref: { type: string }
30900
+
30901
+ SecurityBlindSpotMissing:
30902
+ type: string
30903
+ enum: [dependabot, secret_scanning, sast, review_rule, owner]
30904
+
30905
+ SecurityBlindSpotDto:
30906
+ type: object
30907
+ required: [repo, team, missing]
30908
+ properties:
30909
+ repo:
30910
+ $ref: "#/components/schemas/SecurityRepoRefDto"
30911
+ team:
30912
+ allOf:
30913
+ - $ref: "#/components/schemas/SecurityNamedRefDto"
30914
+ nullable: true
30915
+ missing:
30916
+ type: array
30917
+ items:
30918
+ $ref: "#/components/schemas/SecurityBlindSpotMissing"
30919
+
30920
+ SecurityTeamRollupDto:
30921
+ type: object
30922
+ required:
30923
+ [team, criticalOpen, pastDue, scanCoveragePercent, aiUnreviewedPercent, openFindings]
30924
+ properties:
30925
+ team:
30926
+ allOf:
30927
+ - $ref: "#/components/schemas/SecurityNamedRefDto"
30928
+ nullable: true
30929
+ criticalOpen: { type: integer, minimum: 0 }
30930
+ pastDue: { type: integer, minimum: 0 }
30931
+ scanCoveragePercent:
30932
+ type: number
30933
+ nullable: true
30934
+ aiUnreviewedPercent:
30935
+ type: number
30936
+ nullable: true
30937
+ openFindings: { type: integer, minimum: 0 }
30938
+
30939
+ SecurityAiRiskDto:
30940
+ type: object
30941
+ required:
30942
+ - agentPrSharePercent
30943
+ - agentUnreviewedPercent
30944
+ - humanUnreviewedPercent
30945
+ - acceptedAiLinesByTeam
30946
+ - guardrails
30947
+ - attributionQuality
30948
+ properties:
30949
+ agentPrSharePercent:
30950
+ type: number
30951
+ nullable: true
30952
+ agentUnreviewedPercent:
30953
+ type: number
30954
+ nullable: true
30955
+ humanUnreviewedPercent:
30956
+ type: number
30957
+ nullable: true
30958
+ acceptedAiLinesByTeam:
30959
+ type: array
30960
+ items:
30961
+ type: object
30962
+ required: [team, lines]
30963
+ properties:
30964
+ team:
30965
+ allOf:
30966
+ - $ref: "#/components/schemas/SecurityNamedRefDto"
30967
+ nullable: true
30968
+ lines: { type: integer, minimum: 0 }
30969
+ guardrails:
30970
+ type: object
30971
+ required:
30972
+ - reposWithAgentIgnore
30973
+ - reposWithMcpPosture
30974
+ - reposWithSecretsScanner
30975
+ - reposScanned
30976
+ properties:
30977
+ reposWithAgentIgnore: { type: integer, minimum: 0 }
30978
+ reposWithMcpPosture: { type: integer, minimum: 0 }
30979
+ reposWithSecretsScanner: { type: integer, minimum: 0 }
30980
+ reposScanned: { type: integer, minimum: 0 }
30981
+ attributionQuality:
30982
+ $ref: "#/components/schemas/SecurityAiInvolvement"
30983
+
30984
+ SecurityPostureDto:
30985
+ type: object
30986
+ required:
30987
+ - asOf
30988
+ - rangeId
30989
+ - headline
30990
+ - dataSources
30991
+ - fixFirst
30992
+ - blindSpots
30993
+ - teams
30994
+ - aiRisk
30995
+ - viewer
30996
+ - _meta
30997
+ properties:
30998
+ asOf:
30999
+ type: string
31000
+ format: date-time
31001
+ rangeId: { type: string }
31002
+ headline:
31003
+ type: object
31004
+ required: [criticalOpen, pastDue, reposWithoutCoverage, unownedFindings]
31005
+ properties:
31006
+ criticalOpen: { type: integer, minimum: 0 }
31007
+ pastDue: { type: integer, minimum: 0 }
31008
+ reposWithoutCoverage: { type: integer, minimum: 0 }
31009
+ unownedFindings: { type: integer, minimum: 0 }
31010
+ dataSources:
31011
+ type: array
31012
+ items:
31013
+ $ref: "#/components/schemas/SecurityDataSourceDto"
31014
+ fixFirst:
31015
+ type: array
31016
+ items:
31017
+ $ref: "#/components/schemas/SecurityFindingDto"
31018
+ blindSpots:
31019
+ type: array
31020
+ items:
31021
+ $ref: "#/components/schemas/SecurityBlindSpotDto"
31022
+ teams:
31023
+ type: array
31024
+ items:
31025
+ $ref: "#/components/schemas/SecurityTeamRollupDto"
31026
+ aiRisk:
31027
+ $ref: "#/components/schemas/SecurityAiRiskDto"
31028
+ viewer:
31029
+ type: object
31030
+ required: [isAdmin, ownedTeamIds]
31031
+ properties:
31032
+ isAdmin: { type: boolean }
31033
+ ownedTeamIds:
31034
+ type: array
31035
+ items: { type: string }
31036
+ _meta:
31037
+ $ref: "#/components/schemas/InsightsResponseMeta"
31038
+
31039
+ SecurityFindingsPageDto:
31040
+ type: object
31041
+ required: [items, total]
31042
+ properties:
31043
+ items:
31044
+ type: array
31045
+ items:
31046
+ $ref: "#/components/schemas/SecurityFindingDto"
31047
+ nextCursor: { type: string }
31048
+ total: { type: integer, minimum: 0 }
31049
+
31050
+ SecuritySettingsDto:
31051
+ type: object
31052
+ required: [slaDays, incidentRules, ticketRules]
31053
+ properties:
31054
+ slaDays:
31055
+ type: object
31056
+ required: [critical, high, medium, low]
31057
+ properties:
31058
+ critical:
31059
+ type: integer
31060
+ minimum: 1
31061
+ maximum: 365
31062
+ nullable: true
31063
+ high:
31064
+ type: integer
31065
+ minimum: 1
31066
+ maximum: 365
31067
+ nullable: true
31068
+ medium:
31069
+ type: integer
31070
+ minimum: 1
31071
+ maximum: 365
31072
+ nullable: true
31073
+ low:
31074
+ type: integer
31075
+ minimum: 1
31076
+ maximum: 365
31077
+ nullable: true
31078
+ incidentRules:
31079
+ type: object
31080
+ required: [labels, severityNames, titleKeywords]
31081
+ properties:
31082
+ labels:
31083
+ type: array
31084
+ maxItems: 50
31085
+ items: { type: string, maxLength: 100 }
31086
+ severityNames:
31087
+ type: array
31088
+ maxItems: 50
31089
+ items: { type: string, maxLength: 100 }
31090
+ titleKeywords:
31091
+ type: array
31092
+ maxItems: 50
31093
+ items: { type: string, maxLength: 100 }
31094
+ ticketRules:
31095
+ type: object
31096
+ required: [labels, issueTypes]
31097
+ properties:
31098
+ labels:
31099
+ type: array
31100
+ maxItems: 50
31101
+ items: { type: string, maxLength: 100 }
31102
+ issueTypes:
31103
+ type: array
31104
+ maxItems: 50
31105
+ items: { type: string, maxLength: 100 }
31106
+
30478
31107
  InsightsResponseMeta:
30479
31108
  type: object
30480
31109
  required: [syncedAt, isMock]