@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.
@@ -456,6 +456,26 @@
456
456
  "method": "GET",
457
457
  "path": "/workspaces/{workspaceId}/insights/sdlc/drilldown/{metricId}"
458
458
  },
459
+ "getSecurityPosture": {
460
+ "status": "implemented",
461
+ "method": "GET",
462
+ "path": "/workspaces/{workspaceId}/insights/security/posture"
463
+ },
464
+ "getSecurityFindings": {
465
+ "status": "implemented",
466
+ "method": "GET",
467
+ "path": "/workspaces/{workspaceId}/insights/security/findings"
468
+ },
469
+ "getSecuritySettings": {
470
+ "status": "implemented",
471
+ "method": "GET",
472
+ "path": "/workspaces/{workspaceId}/insights/security/settings"
473
+ },
474
+ "putSecuritySettings": {
475
+ "status": "implemented",
476
+ "method": "PUT",
477
+ "path": "/workspaces/{workspaceId}/insights/security/settings"
478
+ },
459
479
  "getInsightsRecommendationsPageBundle": {
460
480
  "status": "implemented",
461
481
  "method": "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.225.0",
3
+ "version": "2.227.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1924,6 +1924,70 @@ export interface paths {
1924
1924
  patch?: never;
1925
1925
  trace?: never;
1926
1926
  };
1927
+ "/workspaces/{workspaceId}/insights/security/posture": {
1928
+ parameters: {
1929
+ query?: never;
1930
+ header?: never;
1931
+ path?: never;
1932
+ cookie?: never;
1933
+ };
1934
+ /**
1935
+ * Security & Risk posture roll-up
1936
+ * @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.
1937
+ */
1938
+ get: operations["getSecurityPosture"];
1939
+ put?: never;
1940
+ post?: never;
1941
+ delete?: never;
1942
+ options?: never;
1943
+ head?: never;
1944
+ patch?: never;
1945
+ trace?: never;
1946
+ };
1947
+ "/workspaces/{workspaceId}/insights/security/findings": {
1948
+ parameters: {
1949
+ query?: never;
1950
+ header?: never;
1951
+ path?: never;
1952
+ cookie?: never;
1953
+ };
1954
+ /**
1955
+ * Security & Risk findings page
1956
+ * @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.
1957
+ */
1958
+ get: operations["getSecurityFindings"];
1959
+ put?: never;
1960
+ post?: never;
1961
+ delete?: never;
1962
+ options?: never;
1963
+ head?: never;
1964
+ patch?: never;
1965
+ trace?: never;
1966
+ };
1967
+ "/workspaces/{workspaceId}/insights/security/settings": {
1968
+ parameters: {
1969
+ query?: never;
1970
+ header?: never;
1971
+ path?: never;
1972
+ cookie?: never;
1973
+ };
1974
+ /**
1975
+ * Security & Risk settings
1976
+ * @description Fix-by targets and incident/ticket classification rules for the workspace. Returns 404 `security_findings_disabled` when the runtime flag is off.
1977
+ */
1978
+ get: operations["getSecuritySettings"];
1979
+ /**
1980
+ * Update Security & Risk settings
1981
+ * @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.
1982
+ */
1983
+ put: operations["putSecuritySettings"];
1984
+ post?: never;
1985
+ delete?: never;
1986
+ options?: never;
1987
+ head?: never;
1988
+ patch?: never;
1989
+ trace?: never;
1990
+ };
1927
1991
  "/workspaces/{workspaceId}/insights/recommendations-page/bundle": {
1928
1992
  parameters: {
1929
1993
  query?: never;
@@ -9514,10 +9578,14 @@ export interface components {
9514
9578
  corePermissionsOk: boolean;
9515
9579
  /** @description True when installation grants Vulnerability alerts and Secret scanning alerts read for SDLC security metrics. */
9516
9580
  securityPermissionsOk: boolean;
9581
+ /** @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. */
9582
+ codeScanningPermissionsOk?: boolean;
9517
9583
  /** @description True when installation grants financial/operational SDLC metric permissions (Actions, Deployments, and org Administration / Copilot seat reads for organization installs). */
9518
9584
  financialPermissionsOk: boolean;
9519
9585
  /** @description Security alert permissions still needed for SDLC security metrics. */
9520
9586
  missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9587
+ /** @description Code scanning permissions still needed for Security & Risk code scanning metrics. */
9588
+ missingCodeScanningPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9521
9589
  /** @description Financial/operational permissions still needed for SDLC financial metrics. */
9522
9590
  missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9523
9591
  /** @description Human-readable summary when security App permissions are missing. */
@@ -9810,10 +9878,14 @@ export interface components {
9810
9878
  corePermissionsOk: boolean;
9811
9879
  /** @description True when every connected installation grants security alert read permissions. */
9812
9880
  securityPermissionsOk: boolean;
9881
+ /** @description Soft tier: true when every connected installation grants code scanning alert read. Independent of securityPermissionsOk. */
9882
+ codeScanningPermissionsOk?: boolean;
9813
9883
  /** @description True when every connected installation grants financial/operational read permissions. */
9814
9884
  financialPermissionsOk: boolean;
9815
9885
  /** @description Aggregated security permissions missing on installations with security gaps. */
9816
9886
  missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9887
+ /** @description Aggregated code scanning permissions missing on installations with code scanning gaps. */
9888
+ missingCodeScanningPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9817
9889
  /** @description Aggregated financial permissions missing on installations with financial gaps. */
9818
9890
  missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
9819
9891
  /** @description Human-readable summary when security App permissions are missing. */
@@ -12181,17 +12253,45 @@ export interface components {
12181
12253
  /** @description Inclusive calendar-day window ending today (UTC), matching Home ship-weight KPIs (30). */
12182
12254
  windowDays: number;
12183
12255
  };
12256
+ IngestCoverageProductivityInstallDto: {
12257
+ vcsConnectionId: string;
12258
+ /** @description GitHub org or user login for this App installation. */
12259
+ accountLogin: string;
12260
+ /** @enum {string|null} */
12261
+ phase: "recent" | "historical" | "complete" | null;
12262
+ /** @description Current historical week cursor (ISO); null when not in a week walk. */
12263
+ historicalWeekStart: string | null;
12264
+ /** @description ceil(targetWindowDays / 7) week slots for this install. */
12265
+ expectedWeeks: number;
12266
+ /** @description Fully finished week slots only; the in-progress week is excluded. */
12267
+ weeksCompleted: number;
12268
+ pendingRepoCount: number;
12269
+ totalRepoCount: number;
12270
+ failedRepoCount: number;
12271
+ skippedRepoCount: number;
12272
+ };
12184
12273
  IngestCoverageProductivityDetailDto: {
12185
12274
  /** @enum {string|null} */
12186
12275
  phase?: "recent" | "historical" | "complete" | null;
12187
12276
  historicalWeekStart?: string | null;
12277
+ /** @description Sum of pending repo counts across installs. */
12188
12278
  pendingRepoCount?: number;
12279
+ /** @description Sum of skipped repo counts across installs. */
12189
12280
  skippedRepoCount?: number;
12281
+ /** @description Sum of failed repo counts across installs. */
12190
12282
  failedRepoCount?: number;
12191
12283
  coveragePercent?: number | null;
12192
- /** @description Full repository count before the `repos` array is capped (500). When greater than `repos.length`, the list is truncated for the response. */
12284
+ /** @description Full repository count before the `repos` array is capped (500). When greater than `repos.length`, the list is truncated for the response. Multi-install workspaces use the sum of per-install totals. */
12193
12285
  totalRepoCount?: number;
12194
12286
  repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
12287
+ /** @description One row per GitHub VCS connection (install) in the workspace. */
12288
+ installs?: components["schemas"]["IngestCoverageProductivityInstallDto"][];
12289
+ /** @description Sum of weeksCompleted across installs (backfill overall). */
12290
+ overallWeeksCompleted?: number;
12291
+ /** @description installCount × expectedWeeks (backfill overall denominator). */
12292
+ overallWeeksExpected?: number;
12293
+ /** @description overallWeeksCompleted / overallWeeksExpected as 0–100 (one decimal). Used for backfill chrome; incremental mode uses repo counts instead. */
12294
+ overallProgressPercent?: number;
12195
12295
  /** @description Latest depth-scan and week-reconcile summary from stored activity rows. Null when neither event exists. The coverage GET does not run a scan. */
12196
12296
  selfHeal?: components["schemas"]["IngestCoverageProductivitySelfHealDto"] | null;
12197
12297
  /** @description Org-ledger ship-weight scoring for the Home-aligned window. Null when metrics cannot be loaded. Separate from productivity backfill phase / Backfill complete. */
@@ -12682,7 +12782,7 @@ export interface components {
12682
12782
  /** @enum {string} */
12683
12783
  SdlcModuleId: "dora" | "ci-pipeline" | "collaboration-pr" | "security-risk" | "governance-architecture" | "financial-operational";
12684
12784
  /** @enum {string} */
12685
- 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";
12785
+ 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";
12686
12786
  /** @enum {string} */
12687
12787
  SdlcMetricDataStatus: "live" | "preview" | "unavailable";
12688
12788
  /** @enum {string} */
@@ -12702,6 +12802,11 @@ export interface components {
12702
12802
  date: string;
12703
12803
  value: number;
12704
12804
  };
12805
+ SdlcMetricBreakdownItemDto: {
12806
+ key: string;
12807
+ label: string;
12808
+ value: number;
12809
+ };
12705
12810
  SdlcMetricDto: {
12706
12811
  id: components["schemas"]["SdlcMetricId"];
12707
12812
  name: string;
@@ -12715,6 +12820,8 @@ export interface components {
12715
12820
  benchmarkBand?: components["schemas"]["SdlcBenchmarkBand"];
12716
12821
  drilldownAvailable: boolean;
12717
12822
  dailySeries?: components["schemas"]["SdlcDailySeriesPointDto"][];
12823
+ /** @description Severity or category segments (e.g. Dependabot critical/high/medium/low). */
12824
+ breakdown?: components["schemas"]["SdlcMetricBreakdownItemDto"][];
12718
12825
  unavailableReason?: string;
12719
12826
  };
12720
12827
  SdlcModuleDto: {
@@ -12752,6 +12859,143 @@ export interface components {
12752
12859
  items: components["schemas"]["SdlcDrilldownItemDto"][];
12753
12860
  nextCursor?: string;
12754
12861
  };
12862
+ /** @enum {string} */
12863
+ SecurityFindingSource: "github_dependabot" | "github_secret_scanning" | "github_code_scanning" | "sonar_vulnerability" | "sonar_hotspot" | "readiness_gap" | "code_insights" | "incident" | "ticket";
12864
+ /** @enum {string} */
12865
+ SecurityFindingCategory: "dependency" | "secret" | "code" | "posture" | "incident" | "ticket";
12866
+ /** @enum {string} */
12867
+ SecuritySeverity: "critical" | "high" | "medium" | "low" | "unknown";
12868
+ /** @enum {string} */
12869
+ SecurityAiInvolvement: "measured" | "estimated" | "none" | "unknown";
12870
+ /** @enum {string} */
12871
+ SecurityFindingState: "open" | "fixed" | "dismissed";
12872
+ /** @enum {string} */
12873
+ SecurityFindingActionKind: "fix_pr" | "open_source" | "rotate_secret" | "assign_owner" | "open_incident" | "open_ticket";
12874
+ SecurityFindingActionDto: {
12875
+ kind: components["schemas"]["SecurityFindingActionKind"];
12876
+ /** Format: uri */
12877
+ href?: string;
12878
+ readinessIssueId?: string;
12879
+ };
12880
+ SecurityNamedRefDto: {
12881
+ id: string;
12882
+ name: string;
12883
+ };
12884
+ SecurityRepoRefDto: {
12885
+ id: string;
12886
+ slug: string;
12887
+ };
12888
+ SecurityFindingDto: {
12889
+ id: string;
12890
+ source: components["schemas"]["SecurityFindingSource"];
12891
+ sourceLabel: string;
12892
+ category: components["schemas"]["SecurityFindingCategory"];
12893
+ severity: components["schemas"]["SecuritySeverity"];
12894
+ title: string;
12895
+ repo: components["schemas"]["SecurityRepoRefDto"] | null;
12896
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12897
+ /** Format: date-time */
12898
+ openedAt: string;
12899
+ /** Format: date-time */
12900
+ dueAt: string | null;
12901
+ pastDue: boolean;
12902
+ state: components["schemas"]["SecurityFindingState"];
12903
+ /** Format: uri */
12904
+ url: string | null;
12905
+ aiInvolvement: components["schemas"]["SecurityAiInvolvement"];
12906
+ alsoSeenIn: components["schemas"]["SecurityFindingSource"][];
12907
+ primaryAction: components["schemas"]["SecurityFindingActionDto"];
12908
+ redacted: boolean;
12909
+ };
12910
+ /** @enum {string} */
12911
+ SecurityDataSourceCategory: "source_control" | "code_quality" | "ai_tools" | "incidents" | "tickets" | "security";
12912
+ /** @enum {string} */
12913
+ SecurityDataSourceStatus: "connected" | "stale" | "needs_permission" | "not_connected" | "coming_soon";
12914
+ SecurityDataSourceDto: {
12915
+ id: string;
12916
+ name: string;
12917
+ category: components["schemas"]["SecurityDataSourceCategory"];
12918
+ status: components["schemas"]["SecurityDataSourceStatus"];
12919
+ /** Format: date-time */
12920
+ lastSuccessAt: string | null;
12921
+ feeds: components["schemas"]["SdlcMetricId"][];
12922
+ actionLabel?: string;
12923
+ actionHref?: string;
12924
+ };
12925
+ /** @enum {string} */
12926
+ SecurityBlindSpotMissing: "dependabot" | "secret_scanning" | "sast" | "review_rule" | "owner";
12927
+ SecurityBlindSpotDto: {
12928
+ repo: components["schemas"]["SecurityRepoRefDto"];
12929
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12930
+ missing: components["schemas"]["SecurityBlindSpotMissing"][];
12931
+ };
12932
+ SecurityTeamRollupDto: {
12933
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12934
+ criticalOpen: number;
12935
+ pastDue: number;
12936
+ scanCoveragePercent: number | null;
12937
+ aiUnreviewedPercent: number | null;
12938
+ openFindings: number;
12939
+ };
12940
+ SecurityAiRiskDto: {
12941
+ agentPrSharePercent: number | null;
12942
+ agentUnreviewedPercent: number | null;
12943
+ humanUnreviewedPercent: number | null;
12944
+ acceptedAiLinesByTeam: {
12945
+ team: components["schemas"]["SecurityNamedRefDto"] | null;
12946
+ lines: number;
12947
+ }[];
12948
+ guardrails: {
12949
+ reposWithAgentIgnore: number;
12950
+ reposWithMcpPosture: number;
12951
+ reposWithSecretsScanner: number;
12952
+ reposScanned: number;
12953
+ };
12954
+ attributionQuality: components["schemas"]["SecurityAiInvolvement"];
12955
+ };
12956
+ SecurityPostureDto: {
12957
+ /** Format: date-time */
12958
+ asOf: string;
12959
+ rangeId: string;
12960
+ headline: {
12961
+ criticalOpen: number;
12962
+ pastDue: number;
12963
+ reposWithoutCoverage: number;
12964
+ unownedFindings: number;
12965
+ };
12966
+ dataSources: components["schemas"]["SecurityDataSourceDto"][];
12967
+ fixFirst: components["schemas"]["SecurityFindingDto"][];
12968
+ blindSpots: components["schemas"]["SecurityBlindSpotDto"][];
12969
+ teams: components["schemas"]["SecurityTeamRollupDto"][];
12970
+ aiRisk: components["schemas"]["SecurityAiRiskDto"];
12971
+ viewer: {
12972
+ isAdmin: boolean;
12973
+ ownedTeamIds: string[];
12974
+ };
12975
+ _meta: components["schemas"]["InsightsResponseMeta"];
12976
+ };
12977
+ SecurityFindingsPageDto: {
12978
+ items: components["schemas"]["SecurityFindingDto"][];
12979
+ nextCursor?: string;
12980
+ total: number;
12981
+ };
12982
+ SecuritySettingsDto: {
12983
+ slaDays: {
12984
+ critical: number | null;
12985
+ high: number | null;
12986
+ medium: number | null;
12987
+ low: number | null;
12988
+ };
12989
+ incidentRules: {
12990
+ labels: string[];
12991
+ severityNames: string[];
12992
+ titleKeywords: string[];
12993
+ };
12994
+ ticketRules: {
12995
+ labels: string[];
12996
+ issueTypes: string[];
12997
+ };
12998
+ };
12755
12999
  InsightsResponseMeta: {
12756
13000
  /**
12757
13001
  * Format: date-time
@@ -15247,6 +15491,7 @@ export type IngestCoverageProductivityDepthScanDto = components['schemas']['Inge
15247
15491
  export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
15248
15492
  export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
15249
15493
  export type IngestCoverageShipWeightScoringDto = components['schemas']['IngestCoverageShipWeightScoringDto'];
15494
+ export type IngestCoverageProductivityInstallDto = components['schemas']['IngestCoverageProductivityInstallDto'];
15250
15495
  export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
15251
15496
  export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
15252
15497
  export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
@@ -15300,11 +15545,32 @@ export type SdlcMetricHealthStatus = components['schemas']['SdlcMetricHealthStat
15300
15545
  export type SdlcBenchmarkBand = components['schemas']['SdlcBenchmarkBand'];
15301
15546
  export type SdlcMetricTrendDto = components['schemas']['SdlcMetricTrendDto'];
15302
15547
  export type SdlcDailySeriesPointDto = components['schemas']['SdlcDailySeriesPointDto'];
15548
+ export type SdlcMetricBreakdownItemDto = components['schemas']['SdlcMetricBreakdownItemDto'];
15303
15549
  export type SdlcMetricDto = components['schemas']['SdlcMetricDto'];
15304
15550
  export type SdlcModuleDto = components['schemas']['SdlcModuleDto'];
15305
15551
  export type SdlcOverviewDto = components['schemas']['SdlcOverviewDto'];
15306
15552
  export type SdlcDrilldownItemDto = components['schemas']['SdlcDrilldownItemDto'];
15307
15553
  export type SdlcDrilldownDto = components['schemas']['SdlcDrilldownDto'];
15554
+ export type SecurityFindingSource = components['schemas']['SecurityFindingSource'];
15555
+ export type SecurityFindingCategory = components['schemas']['SecurityFindingCategory'];
15556
+ export type SecuritySeverity = components['schemas']['SecuritySeverity'];
15557
+ export type SecurityAiInvolvement = components['schemas']['SecurityAiInvolvement'];
15558
+ export type SecurityFindingState = components['schemas']['SecurityFindingState'];
15559
+ export type SecurityFindingActionKind = components['schemas']['SecurityFindingActionKind'];
15560
+ export type SecurityFindingActionDto = components['schemas']['SecurityFindingActionDto'];
15561
+ export type SecurityNamedRefDto = components['schemas']['SecurityNamedRefDto'];
15562
+ export type SecurityRepoRefDto = components['schemas']['SecurityRepoRefDto'];
15563
+ export type SecurityFindingDto = components['schemas']['SecurityFindingDto'];
15564
+ export type SecurityDataSourceCategory = components['schemas']['SecurityDataSourceCategory'];
15565
+ export type SecurityDataSourceStatus = components['schemas']['SecurityDataSourceStatus'];
15566
+ export type SecurityDataSourceDto = components['schemas']['SecurityDataSourceDto'];
15567
+ export type SecurityBlindSpotMissing = components['schemas']['SecurityBlindSpotMissing'];
15568
+ export type SecurityBlindSpotDto = components['schemas']['SecurityBlindSpotDto'];
15569
+ export type SecurityTeamRollupDto = components['schemas']['SecurityTeamRollupDto'];
15570
+ export type SecurityAiRiskDto = components['schemas']['SecurityAiRiskDto'];
15571
+ export type SecurityPostureDto = components['schemas']['SecurityPostureDto'];
15572
+ export type SecurityFindingsPageDto = components['schemas']['SecurityFindingsPageDto'];
15573
+ export type SecuritySettingsDto = components['schemas']['SecuritySettingsDto'];
15308
15574
  export type InsightsResponseMeta = components['schemas']['InsightsResponseMeta'];
15309
15575
  export type InsightsVerdictStatus = components['schemas']['InsightsVerdictStatus'];
15310
15576
  export type InsightsRecommendationsVerdictSummary = components['schemas']['InsightsRecommendationsVerdictSummary'];
@@ -21051,6 +21317,207 @@ export interface operations {
21051
21317
  };
21052
21318
  };
21053
21319
  };
21320
+ getSecurityPosture: {
21321
+ parameters: {
21322
+ query?: never;
21323
+ header?: never;
21324
+ path: {
21325
+ workspaceId: components["parameters"]["WorkspaceId"];
21326
+ };
21327
+ cookie?: never;
21328
+ };
21329
+ requestBody?: never;
21330
+ responses: {
21331
+ /** @description Security posture payload */
21332
+ 200: {
21333
+ headers: {
21334
+ [name: string]: unknown;
21335
+ };
21336
+ content: {
21337
+ "application/json": components["schemas"]["SecurityPostureDto"];
21338
+ };
21339
+ };
21340
+ /** @description Invalid query parameters */
21341
+ 400: {
21342
+ headers: {
21343
+ [name: string]: unknown;
21344
+ };
21345
+ content: {
21346
+ "application/json": {
21347
+ /** @example invalid_query */
21348
+ error: string;
21349
+ };
21350
+ };
21351
+ };
21352
+ 401: components["responses"]["Unauthorized"];
21353
+ 403: components["responses"]["Forbidden"];
21354
+ /** @description Workspace not found, or security findings flag off */
21355
+ 404: {
21356
+ headers: {
21357
+ [name: string]: unknown;
21358
+ };
21359
+ content: {
21360
+ "application/json": components["schemas"]["ErrorMessageDto"];
21361
+ };
21362
+ };
21363
+ };
21364
+ };
21365
+ getSecurityFindings: {
21366
+ parameters: {
21367
+ query?: {
21368
+ source?: components["schemas"]["SecurityFindingSource"];
21369
+ category?: components["schemas"]["SecurityFindingCategory"];
21370
+ severity?: components["schemas"]["SecuritySeverity"];
21371
+ state?: components["schemas"]["SecurityFindingState"];
21372
+ /** @description Filter to findings owned by this team id. */
21373
+ teamId?: string;
21374
+ /** @description Filter to findings for this internal repo id. */
21375
+ repoId?: string;
21376
+ pastDue?: boolean;
21377
+ cursor?: string;
21378
+ limit?: number;
21379
+ };
21380
+ header?: never;
21381
+ path: {
21382
+ workspaceId: components["parameters"]["WorkspaceId"];
21383
+ };
21384
+ cookie?: never;
21385
+ };
21386
+ requestBody?: never;
21387
+ responses: {
21388
+ /** @description Findings page */
21389
+ 200: {
21390
+ headers: {
21391
+ [name: string]: unknown;
21392
+ };
21393
+ content: {
21394
+ "application/json": components["schemas"]["SecurityFindingsPageDto"];
21395
+ };
21396
+ };
21397
+ /** @description Invalid query parameters */
21398
+ 400: {
21399
+ headers: {
21400
+ [name: string]: unknown;
21401
+ };
21402
+ content: {
21403
+ "application/json": {
21404
+ /** @example invalid_query */
21405
+ error: string;
21406
+ };
21407
+ };
21408
+ };
21409
+ 401: components["responses"]["Unauthorized"];
21410
+ 403: components["responses"]["Forbidden"];
21411
+ /** @description Workspace not found, or security findings flag off */
21412
+ 404: {
21413
+ headers: {
21414
+ [name: string]: unknown;
21415
+ };
21416
+ content: {
21417
+ "application/json": components["schemas"]["ErrorMessageDto"];
21418
+ };
21419
+ };
21420
+ };
21421
+ };
21422
+ getSecuritySettings: {
21423
+ parameters: {
21424
+ query?: never;
21425
+ header?: never;
21426
+ path: {
21427
+ workspaceId: components["parameters"]["WorkspaceId"];
21428
+ };
21429
+ cookie?: never;
21430
+ };
21431
+ requestBody?: never;
21432
+ responses: {
21433
+ /** @description Current settings (defaults when no row exists) */
21434
+ 200: {
21435
+ headers: {
21436
+ [name: string]: unknown;
21437
+ };
21438
+ content: {
21439
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21440
+ };
21441
+ };
21442
+ 401: components["responses"]["Unauthorized"];
21443
+ 403: components["responses"]["Forbidden"];
21444
+ /** @description Workspace not found, or security findings flag off */
21445
+ 404: {
21446
+ headers: {
21447
+ [name: string]: unknown;
21448
+ };
21449
+ content: {
21450
+ "application/json": components["schemas"]["ErrorMessageDto"];
21451
+ };
21452
+ };
21453
+ };
21454
+ };
21455
+ putSecuritySettings: {
21456
+ parameters: {
21457
+ query?: never;
21458
+ header?: never;
21459
+ path: {
21460
+ workspaceId: components["parameters"]["WorkspaceId"];
21461
+ };
21462
+ cookie?: never;
21463
+ };
21464
+ requestBody: {
21465
+ content: {
21466
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21467
+ };
21468
+ };
21469
+ responses: {
21470
+ /** @description Updated settings */
21471
+ 200: {
21472
+ headers: {
21473
+ [name: string]: unknown;
21474
+ };
21475
+ content: {
21476
+ "application/json": components["schemas"]["SecuritySettingsDto"];
21477
+ };
21478
+ };
21479
+ /** @description Invalid settings payload */
21480
+ 400: {
21481
+ headers: {
21482
+ [name: string]: unknown;
21483
+ };
21484
+ content: {
21485
+ /**
21486
+ * @example {
21487
+ * "error": "Invalid SLA day",
21488
+ * "code": "invalid_input"
21489
+ * }
21490
+ */
21491
+ "application/json": components["schemas"]["ErrorMessageDto"];
21492
+ };
21493
+ };
21494
+ 401: components["responses"]["Unauthorized"];
21495
+ /** @description Caller is not a workspace admin */
21496
+ 403: {
21497
+ headers: {
21498
+ [name: string]: unknown;
21499
+ };
21500
+ content: {
21501
+ /**
21502
+ * @example {
21503
+ * "error": "Workspace admin access is required to change security settings",
21504
+ * "code": "security_settings_admin_required"
21505
+ * }
21506
+ */
21507
+ "application/json": components["schemas"]["ErrorMessageDto"];
21508
+ };
21509
+ };
21510
+ /** @description Workspace not found, or security findings flag off */
21511
+ 404: {
21512
+ headers: {
21513
+ [name: string]: unknown;
21514
+ };
21515
+ content: {
21516
+ "application/json": components["schemas"]["ErrorMessageDto"];
21517
+ };
21518
+ };
21519
+ };
21520
+ };
21054
21521
  getInsightsRecommendationsPageBundle: {
21055
21522
  parameters: {
21056
21523
  query: {