@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.
@@ -1923,6 +1923,70 @@ export interface paths {
1923
1923
  patch?: never;
1924
1924
  trace?: never;
1925
1925
  };
1926
+ "/workspaces/{workspaceId}/insights/security/posture": {
1927
+ parameters: {
1928
+ query?: never;
1929
+ header?: never;
1930
+ path?: never;
1931
+ cookie?: never;
1932
+ };
1933
+ /**
1934
+ * Security & Risk posture roll-up
1935
+ * @description Headline KPIs, data-source strip, Fix-first queue, blind spots, team rollups, and AI risk for `/insights/sdlc/security-risk`. Finding detail for secrets and critical/high vulnerabilities is redacted unless the caller is a workspace admin or a member of the finding's owning team. Returns 404 `security_findings_disabled` when the runtime flag is off.
1936
+ */
1937
+ get: operations["getSecurityPosture"];
1938
+ put?: never;
1939
+ post?: never;
1940
+ delete?: never;
1941
+ options?: never;
1942
+ head?: never;
1943
+ patch?: never;
1944
+ trace?: never;
1945
+ };
1946
+ "/workspaces/{workspaceId}/insights/security/findings": {
1947
+ parameters: {
1948
+ query?: never;
1949
+ header?: never;
1950
+ path?: never;
1951
+ cookie?: never;
1952
+ };
1953
+ /**
1954
+ * Security & Risk findings page
1955
+ * @description Paginated security findings with optional filters. Applies the same redaction rules as the posture endpoint. Returns 404 `security_findings_disabled` when the runtime flag is off.
1956
+ */
1957
+ get: operations["getSecurityFindings"];
1958
+ put?: never;
1959
+ post?: never;
1960
+ delete?: never;
1961
+ options?: never;
1962
+ head?: never;
1963
+ patch?: never;
1964
+ trace?: never;
1965
+ };
1966
+ "/workspaces/{workspaceId}/insights/security/settings": {
1967
+ parameters: {
1968
+ query?: never;
1969
+ header?: never;
1970
+ path?: never;
1971
+ cookie?: never;
1972
+ };
1973
+ /**
1974
+ * Security & Risk settings
1975
+ * @description Fix-by targets and incident/ticket classification rules for the workspace. Returns 404 `security_findings_disabled` when the runtime flag is off.
1976
+ */
1977
+ get: operations["getSecuritySettings"];
1978
+ /**
1979
+ * Update Security & Risk settings
1980
+ * @description Workspace-admin only. Validates SLA days (1–365 or null) and classification list caps (50 entries × 100 characters). Empty incident/ticket lists match nothing. Returns 403 `security_settings_admin_required` for non-admins and 404 `security_findings_disabled` when the runtime flag is off.
1981
+ */
1982
+ put: operations["putSecuritySettings"];
1983
+ post?: never;
1984
+ delete?: never;
1985
+ options?: never;
1986
+ head?: never;
1987
+ patch?: never;
1988
+ trace?: never;
1989
+ };
1926
1990
  "/workspaces/{workspaceId}/insights/recommendations-page/bundle": {
1927
1991
  parameters: {
1928
1992
  query?: never;
@@ -9513,10 +9577,14 @@ export interface components {
9513
9577
  corePermissionsOk: boolean;
9514
9578
  /** @description True when installation grants Vulnerability alerts and Secret scanning alerts read for SDLC security metrics. */
9515
9579
  securityPermissionsOk: boolean;
9580
+ /** @description Soft tier: true when installation grants security_events read for code scanning alerts. Independent of securityPermissionsOk so Dependabot/secret scanning keep working without it. */
9581
+ codeScanningPermissionsOk?: boolean;
9516
9582
  /** @description True when installation grants financial/operational SDLC metric permissions (Actions, Deployments, and org Administration / Copilot seat reads for organization installs). */
9517
9583
  financialPermissionsOk: boolean;
9518
9584
  /** @description Security alert permissions still needed for SDLC security metrics. */
9519
9585
  missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9586
+ /** @description Code scanning permissions still needed for Security & Risk code scanning metrics. */
9587
+ missingCodeScanningPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9520
9588
  /** @description Financial/operational permissions still needed for SDLC financial metrics. */
9521
9589
  missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9522
9590
  /** @description Human-readable summary when security App permissions are missing. */
@@ -9809,10 +9877,14 @@ export interface components {
9809
9877
  corePermissionsOk: boolean;
9810
9878
  /** @description True when every connected installation grants security alert read permissions. */
9811
9879
  securityPermissionsOk: boolean;
9880
+ /** @description Soft tier: true when every connected installation grants code scanning alert read. Independent of securityPermissionsOk. */
9881
+ codeScanningPermissionsOk?: boolean;
9812
9882
  /** @description True when every connected installation grants financial/operational read permissions. */
9813
9883
  financialPermissionsOk: boolean;
9814
9884
  /** @description Aggregated security permissions missing on installations with security gaps. */
9815
9885
  missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9886
+ /** @description Aggregated code scanning permissions missing on installations with code scanning gaps. */
9887
+ missingCodeScanningPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9816
9888
  /** @description Aggregated financial permissions missing on installations with financial gaps. */
9817
9889
  missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9818
9890
  /** @description Human-readable summary when security App permissions are missing. */
@@ -12681,7 +12753,7 @@ export interface components {
12681
12753
  /** @enum {string} */
12682
12754
  SdlcModuleId: "dora" | "ci-pipeline" | "collaboration-pr" | "security-risk" | "governance-architecture" | "financial-operational";
12683
12755
  /** @enum {string} */
12684
- SdlcMetricId: "dora-deployment-frequency" | "dora-lead-time" | "dora-cfr" | "dora-mttr" | "ci-success-rate" | "ci-duration-p50-p95" | "ci-flakiness" | "ci-queue-wait" | "ci-cache-hit" | "pr-review-time" | "pr-bus-factor" | "pr-size" | "pr-abandonment" | "pr-review-depth" | "pr-draft-duration" | "pr-merge-conflicts" | "pr-commit-density" | "sec-dependabot-backlog" | "sec-vuln-mttr" | "sec-secret-scanning" | "sec-self-approvals" | "sec-unreviewed-merge" | "gov-branch-protection" | "gov-stale-branches" | "gov-orphaned-repos" | "gov-readme-health" | "gov-codeowners" | "gov-issue-pr-linkage" | "fin-gha-minutes" | "fin-copilot-utilization" | "fin-org-inactivity" | "fin-env-drift" | "fin-release-cadence" | "fin-api-rate-limit";
12756
+ SdlcMetricId: "dora-deployment-frequency" | "dora-lead-time" | "dora-cfr" | "dora-mttr" | "ci-success-rate" | "ci-duration-p50-p95" | "ci-flakiness" | "ci-queue-wait" | "ci-cache-hit" | "pr-review-time" | "pr-bus-factor" | "pr-size" | "pr-abandonment" | "pr-review-depth" | "pr-draft-duration" | "pr-merge-conflicts" | "pr-commit-density" | "sec-dependabot-backlog" | "sec-vuln-mttr" | "sec-secret-scanning" | "sec-self-approvals" | "sec-unreviewed-merge" | "sec-critical-open" | "sec-past-due" | "sec-scan-coverage" | "sec-code-scanning-backlog" | "sec-sonar-vulnerabilities" | "sec-quality-gate-failing" | "sec-posture-gaps" | "sec-security-incidents" | "sec-security-tickets" | "sec-ai-pr-share" | "sec-ai-unreviewed-merge" | "gov-branch-protection" | "gov-stale-branches" | "gov-orphaned-repos" | "gov-readme-health" | "gov-codeowners" | "gov-issue-pr-linkage" | "fin-gha-minutes" | "fin-copilot-utilization" | "fin-org-inactivity" | "fin-env-drift" | "fin-release-cadence" | "fin-api-rate-limit";
12685
12757
  /** @enum {string} */
12686
12758
  SdlcMetricDataStatus: "live" | "preview" | "unavailable";
12687
12759
  /** @enum {string} */
@@ -12701,6 +12773,11 @@ export interface components {
12701
12773
  date: string;
12702
12774
  value: number;
12703
12775
  };
12776
+ SdlcMetricBreakdownItemDto: {
12777
+ key: string;
12778
+ label: string;
12779
+ value: number;
12780
+ };
12704
12781
  SdlcMetricDto: {
12705
12782
  id: components["schemas"]["SdlcMetricId"];
12706
12783
  name: string;
@@ -12714,6 +12791,8 @@ export interface components {
12714
12791
  benchmarkBand?: components["schemas"]["SdlcBenchmarkBand"];
12715
12792
  drilldownAvailable: boolean;
12716
12793
  dailySeries?: components["schemas"]["SdlcDailySeriesPointDto"][];
12794
+ /** @description Severity or category segments (e.g. Dependabot critical/high/medium/low). */
12795
+ breakdown?: components["schemas"]["SdlcMetricBreakdownItemDto"][];
12717
12796
  unavailableReason?: string;
12718
12797
  };
12719
12798
  SdlcModuleDto: {
@@ -12751,6 +12830,143 @@ export interface components {
12751
12830
  items: components["schemas"]["SdlcDrilldownItemDto"][];
12752
12831
  nextCursor?: string;
12753
12832
  };
12833
+ /** @enum {string} */
12834
+ SecurityFindingSource: "github_dependabot" | "github_secret_scanning" | "github_code_scanning" | "sonar_vulnerability" | "sonar_hotspot" | "readiness_gap" | "code_insights" | "incident" | "ticket";
12835
+ /** @enum {string} */
12836
+ SecurityFindingCategory: "dependency" | "secret" | "code" | "posture" | "incident" | "ticket";
12837
+ /** @enum {string} */
12838
+ SecuritySeverity: "critical" | "high" | "medium" | "low" | "unknown";
12839
+ /** @enum {string} */
12840
+ SecurityAiInvolvement: "measured" | "estimated" | "none" | "unknown";
12841
+ /** @enum {string} */
12842
+ SecurityFindingState: "open" | "fixed" | "dismissed";
12843
+ /** @enum {string} */
12844
+ SecurityFindingActionKind: "fix_pr" | "open_source" | "rotate_secret" | "assign_owner" | "open_incident" | "open_ticket";
12845
+ SecurityFindingActionDto: {
12846
+ kind: components["schemas"]["SecurityFindingActionKind"];
12847
+ /** Format: uri */
12848
+ href?: string;
12849
+ readinessIssueId?: string;
12850
+ };
12851
+ SecurityNamedRefDto: {
12852
+ id: string;
12853
+ name: string;
12854
+ };
12855
+ SecurityRepoRefDto: {
12856
+ id: string;
12857
+ slug: string;
12858
+ };
12859
+ SecurityFindingDto: {
12860
+ id: string;
12861
+ source: components["schemas"]["SecurityFindingSource"];
12862
+ sourceLabel: string;
12863
+ category: components["schemas"]["SecurityFindingCategory"];
12864
+ severity: components["schemas"]["SecuritySeverity"];
12865
+ title: string;
12866
+ repo: components["schemas"]["SecurityRepoRefDto"] | null;
12867
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12868
+ /** Format: date-time */
12869
+ openedAt: string;
12870
+ /** Format: date-time */
12871
+ dueAt: string | null;
12872
+ pastDue: boolean;
12873
+ state: components["schemas"]["SecurityFindingState"];
12874
+ /** Format: uri */
12875
+ url: string | null;
12876
+ aiInvolvement: components["schemas"]["SecurityAiInvolvement"];
12877
+ alsoSeenIn: components["schemas"]["SecurityFindingSource"][];
12878
+ primaryAction: components["schemas"]["SecurityFindingActionDto"];
12879
+ redacted: boolean;
12880
+ };
12881
+ /** @enum {string} */
12882
+ SecurityDataSourceCategory: "source_control" | "code_quality" | "ai_tools" | "incidents" | "tickets" | "security";
12883
+ /** @enum {string} */
12884
+ SecurityDataSourceStatus: "connected" | "stale" | "needs_permission" | "not_connected" | "coming_soon";
12885
+ SecurityDataSourceDto: {
12886
+ id: string;
12887
+ name: string;
12888
+ category: components["schemas"]["SecurityDataSourceCategory"];
12889
+ status: components["schemas"]["SecurityDataSourceStatus"];
12890
+ /** Format: date-time */
12891
+ lastSuccessAt: string | null;
12892
+ feeds: components["schemas"]["SdlcMetricId"][];
12893
+ actionLabel?: string;
12894
+ actionHref?: string;
12895
+ };
12896
+ /** @enum {string} */
12897
+ SecurityBlindSpotMissing: "dependabot" | "secret_scanning" | "sast" | "review_rule" | "owner";
12898
+ SecurityBlindSpotDto: {
12899
+ repo: components["schemas"]["SecurityRepoRefDto"];
12900
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12901
+ missing: components["schemas"]["SecurityBlindSpotMissing"][];
12902
+ };
12903
+ SecurityTeamRollupDto: {
12904
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12905
+ criticalOpen: number;
12906
+ pastDue: number;
12907
+ scanCoveragePercent: number | null;
12908
+ aiUnreviewedPercent: number | null;
12909
+ openFindings: number;
12910
+ };
12911
+ SecurityAiRiskDto: {
12912
+ agentPrSharePercent: number | null;
12913
+ agentUnreviewedPercent: number | null;
12914
+ humanUnreviewedPercent: number | null;
12915
+ acceptedAiLinesByTeam: {
12916
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12917
+ lines: number;
12918
+ }[];
12919
+ guardrails: {
12920
+ reposWithAgentIgnore: number;
12921
+ reposWithMcpPosture: number;
12922
+ reposWithSecretsScanner: number;
12923
+ reposScanned: number;
12924
+ };
12925
+ attributionQuality: components["schemas"]["SecurityAiInvolvement"];
12926
+ };
12927
+ SecurityPostureDto: {
12928
+ /** Format: date-time */
12929
+ asOf: string;
12930
+ rangeId: string;
12931
+ headline: {
12932
+ criticalOpen: number;
12933
+ pastDue: number;
12934
+ reposWithoutCoverage: number;
12935
+ unownedFindings: number;
12936
+ };
12937
+ dataSources: components["schemas"]["SecurityDataSourceDto"][];
12938
+ fixFirst: components["schemas"]["SecurityFindingDto"][];
12939
+ blindSpots: components["schemas"]["SecurityBlindSpotDto"][];
12940
+ teams: components["schemas"]["SecurityTeamRollupDto"][];
12941
+ aiRisk: components["schemas"]["SecurityAiRiskDto"];
12942
+ viewer: {
12943
+ isAdmin: boolean;
12944
+ ownedTeamIds: string[];
12945
+ };
12946
+ _meta: components["schemas"]["InsightsResponseMeta"];
12947
+ };
12948
+ SecurityFindingsPageDto: {
12949
+ items: components["schemas"]["SecurityFindingDto"][];
12950
+ nextCursor?: string;
12951
+ total: number;
12952
+ };
12953
+ SecuritySettingsDto: {
12954
+ slaDays: {
12955
+ critical: number | null;
12956
+ high: number | null;
12957
+ medium: number | null;
12958
+ low: number | null;
12959
+ };
12960
+ incidentRules: {
12961
+ labels: string[];
12962
+ severityNames: string[];
12963
+ titleKeywords: string[];
12964
+ };
12965
+ ticketRules: {
12966
+ labels: string[];
12967
+ issueTypes: string[];
12968
+ };
12969
+ };
12754
12970
  InsightsResponseMeta: {
12755
12971
  /**
12756
12972
  * Format: date-time
@@ -15299,11 +15515,32 @@ export type SdlcMetricHealthStatus = components['schemas']['SdlcMetricHealthStat
15299
15515
  export type SdlcBenchmarkBand = components['schemas']['SdlcBenchmarkBand'];
15300
15516
  export type SdlcMetricTrendDto = components['schemas']['SdlcMetricTrendDto'];
15301
15517
  export type SdlcDailySeriesPointDto = components['schemas']['SdlcDailySeriesPointDto'];
15518
+ export type SdlcMetricBreakdownItemDto = components['schemas']['SdlcMetricBreakdownItemDto'];
15302
15519
  export type SdlcMetricDto = components['schemas']['SdlcMetricDto'];
15303
15520
  export type SdlcModuleDto = components['schemas']['SdlcModuleDto'];
15304
15521
  export type SdlcOverviewDto = components['schemas']['SdlcOverviewDto'];
15305
15522
  export type SdlcDrilldownItemDto = components['schemas']['SdlcDrilldownItemDto'];
15306
15523
  export type SdlcDrilldownDto = components['schemas']['SdlcDrilldownDto'];
15524
+ export type SecurityFindingSource = components['schemas']['SecurityFindingSource'];
15525
+ export type SecurityFindingCategory = components['schemas']['SecurityFindingCategory'];
15526
+ export type SecuritySeverity = components['schemas']['SecuritySeverity'];
15527
+ export type SecurityAiInvolvement = components['schemas']['SecurityAiInvolvement'];
15528
+ export type SecurityFindingState = components['schemas']['SecurityFindingState'];
15529
+ export type SecurityFindingActionKind = components['schemas']['SecurityFindingActionKind'];
15530
+ export type SecurityFindingActionDto = components['schemas']['SecurityFindingActionDto'];
15531
+ export type SecurityNamedRefDto = components['schemas']['SecurityNamedRefDto'];
15532
+ export type SecurityRepoRefDto = components['schemas']['SecurityRepoRefDto'];
15533
+ export type SecurityFindingDto = components['schemas']['SecurityFindingDto'];
15534
+ export type SecurityDataSourceCategory = components['schemas']['SecurityDataSourceCategory'];
15535
+ export type SecurityDataSourceStatus = components['schemas']['SecurityDataSourceStatus'];
15536
+ export type SecurityDataSourceDto = components['schemas']['SecurityDataSourceDto'];
15537
+ export type SecurityBlindSpotMissing = components['schemas']['SecurityBlindSpotMissing'];
15538
+ export type SecurityBlindSpotDto = components['schemas']['SecurityBlindSpotDto'];
15539
+ export type SecurityTeamRollupDto = components['schemas']['SecurityTeamRollupDto'];
15540
+ export type SecurityAiRiskDto = components['schemas']['SecurityAiRiskDto'];
15541
+ export type SecurityPostureDto = components['schemas']['SecurityPostureDto'];
15542
+ export type SecurityFindingsPageDto = components['schemas']['SecurityFindingsPageDto'];
15543
+ export type SecuritySettingsDto = components['schemas']['SecuritySettingsDto'];
15307
15544
  export type InsightsResponseMeta = components['schemas']['InsightsResponseMeta'];
15308
15545
  export type InsightsVerdictStatus = components['schemas']['InsightsVerdictStatus'];
15309
15546
  export type InsightsRecommendationsVerdictSummary = components['schemas']['InsightsRecommendationsVerdictSummary'];
@@ -21050,6 +21287,207 @@ export interface operations {
21050
21287
  };
21051
21288
  };
21052
21289
  };
21290
+ getSecurityPosture: {
21291
+ parameters: {
21292
+ query?: never;
21293
+ header?: never;
21294
+ path: {
21295
+ workspaceId: components["parameters"]["WorkspaceId"];
21296
+ };
21297
+ cookie?: never;
21298
+ };
21299
+ requestBody?: never;
21300
+ responses: {
21301
+ /** @description Security posture payload */
21302
+ 200: {
21303
+ headers: {
21304
+ [name: string]: unknown;
21305
+ };
21306
+ content: {
21307
+ "application/json": components["schemas"]["SecurityPostureDto"];
21308
+ };
21309
+ };
21310
+ /** @description Invalid query parameters */
21311
+ 400: {
21312
+ headers: {
21313
+ [name: string]: unknown;
21314
+ };
21315
+ content: {
21316
+ "application/json": {
21317
+ /** @example invalid_query */
21318
+ error: string;
21319
+ };
21320
+ };
21321
+ };
21322
+ 401: components["responses"]["Unauthorized"];
21323
+ 403: components["responses"]["Forbidden"];
21324
+ /** @description Workspace not found, or security findings flag off */
21325
+ 404: {
21326
+ headers: {
21327
+ [name: string]: unknown;
21328
+ };
21329
+ content: {
21330
+ "application/json": components["schemas"]["ErrorMessageDto"];
21331
+ };
21332
+ };
21333
+ };
21334
+ };
21335
+ getSecurityFindings: {
21336
+ parameters: {
21337
+ query?: {
21338
+ source?: components["schemas"]["SecurityFindingSource"];
21339
+ category?: components["schemas"]["SecurityFindingCategory"];
21340
+ severity?: components["schemas"]["SecuritySeverity"];
21341
+ state?: components["schemas"]["SecurityFindingState"];
21342
+ /** @description Filter to findings owned by this team id. */
21343
+ teamId?: string;
21344
+ /** @description Filter to findings for this internal repo id. */
21345
+ repoId?: string;
21346
+ pastDue?: boolean;
21347
+ cursor?: string;
21348
+ limit?: number;
21349
+ };
21350
+ header?: never;
21351
+ path: {
21352
+ workspaceId: components["parameters"]["WorkspaceId"];
21353
+ };
21354
+ cookie?: never;
21355
+ };
21356
+ requestBody?: never;
21357
+ responses: {
21358
+ /** @description Findings page */
21359
+ 200: {
21360
+ headers: {
21361
+ [name: string]: unknown;
21362
+ };
21363
+ content: {
21364
+ "application/json": components["schemas"]["SecurityFindingsPageDto"];
21365
+ };
21366
+ };
21367
+ /** @description Invalid query parameters */
21368
+ 400: {
21369
+ headers: {
21370
+ [name: string]: unknown;
21371
+ };
21372
+ content: {
21373
+ "application/json": {
21374
+ /** @example invalid_query */
21375
+ error: string;
21376
+ };
21377
+ };
21378
+ };
21379
+ 401: components["responses"]["Unauthorized"];
21380
+ 403: components["responses"]["Forbidden"];
21381
+ /** @description Workspace not found, or security findings flag off */
21382
+ 404: {
21383
+ headers: {
21384
+ [name: string]: unknown;
21385
+ };
21386
+ content: {
21387
+ "application/json": components["schemas"]["ErrorMessageDto"];
21388
+ };
21389
+ };
21390
+ };
21391
+ };
21392
+ getSecuritySettings: {
21393
+ parameters: {
21394
+ query?: never;
21395
+ header?: never;
21396
+ path: {
21397
+ workspaceId: components["parameters"]["WorkspaceId"];
21398
+ };
21399
+ cookie?: never;
21400
+ };
21401
+ requestBody?: never;
21402
+ responses: {
21403
+ /** @description Current settings (defaults when no row exists) */
21404
+ 200: {
21405
+ headers: {
21406
+ [name: string]: unknown;
21407
+ };
21408
+ content: {
21409
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21410
+ };
21411
+ };
21412
+ 401: components["responses"]["Unauthorized"];
21413
+ 403: components["responses"]["Forbidden"];
21414
+ /** @description Workspace not found, or security findings flag off */
21415
+ 404: {
21416
+ headers: {
21417
+ [name: string]: unknown;
21418
+ };
21419
+ content: {
21420
+ "application/json": components["schemas"]["ErrorMessageDto"];
21421
+ };
21422
+ };
21423
+ };
21424
+ };
21425
+ putSecuritySettings: {
21426
+ parameters: {
21427
+ query?: never;
21428
+ header?: never;
21429
+ path: {
21430
+ workspaceId: components["parameters"]["WorkspaceId"];
21431
+ };
21432
+ cookie?: never;
21433
+ };
21434
+ requestBody: {
21435
+ content: {
21436
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21437
+ };
21438
+ };
21439
+ responses: {
21440
+ /** @description Updated settings */
21441
+ 200: {
21442
+ headers: {
21443
+ [name: string]: unknown;
21444
+ };
21445
+ content: {
21446
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21447
+ };
21448
+ };
21449
+ /** @description Invalid settings payload */
21450
+ 400: {
21451
+ headers: {
21452
+ [name: string]: unknown;
21453
+ };
21454
+ content: {
21455
+ /**
21456
+ * @example {
21457
+ * "error": "Invalid SLA day",
21458
+ * "code": "invalid_input"
21459
+ * }
21460
+ */
21461
+ "application/json": components["schemas"]["ErrorMessageDto"];
21462
+ };
21463
+ };
21464
+ 401: components["responses"]["Unauthorized"];
21465
+ /** @description Caller is not a workspace admin */
21466
+ 403: {
21467
+ headers: {
21468
+ [name: string]: unknown;
21469
+ };
21470
+ content: {
21471
+ /**
21472
+ * @example {
21473
+ * "error": "Workspace admin access is required to change security settings",
21474
+ * "code": "security_settings_admin_required"
21475
+ * }
21476
+ */
21477
+ "application/json": components["schemas"]["ErrorMessageDto"];
21478
+ };
21479
+ };
21480
+ /** @description Workspace not found, or security findings flag off */
21481
+ 404: {
21482
+ headers: {
21483
+ [name: string]: unknown;
21484
+ };
21485
+ content: {
21486
+ "application/json": components["schemas"]["ErrorMessageDto"];
21487
+ };
21488
+ };
21489
+ };
21490
+ };
21053
21491
  getInsightsRecommendationsPageBundle: {
21054
21492
  parameters: {
21055
21493
  query: {