@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
|
@@ -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. */
|
|
@@ -12180,17 +12252,45 @@ export interface components {
|
|
|
12180
12252
|
/** @description Inclusive calendar-day window ending today (UTC), matching Home ship-weight KPIs (30). */
|
|
12181
12253
|
windowDays: number;
|
|
12182
12254
|
};
|
|
12255
|
+
IngestCoverageProductivityInstallDto: {
|
|
12256
|
+
vcsConnectionId: string;
|
|
12257
|
+
/** @description GitHub org or user login for this App installation. */
|
|
12258
|
+
accountLogin: string;
|
|
12259
|
+
/** @enum {string|null} */
|
|
12260
|
+
phase: "recent" | "historical" | "complete" | null;
|
|
12261
|
+
/** @description Current historical week cursor (ISO); null when not in a week walk. */
|
|
12262
|
+
historicalWeekStart: string | null;
|
|
12263
|
+
/** @description ceil(targetWindowDays / 7) week slots for this install. */
|
|
12264
|
+
expectedWeeks: number;
|
|
12265
|
+
/** @description Fully finished week slots only; the in-progress week is excluded. */
|
|
12266
|
+
weeksCompleted: number;
|
|
12267
|
+
pendingRepoCount: number;
|
|
12268
|
+
totalRepoCount: number;
|
|
12269
|
+
failedRepoCount: number;
|
|
12270
|
+
skippedRepoCount: number;
|
|
12271
|
+
};
|
|
12183
12272
|
IngestCoverageProductivityDetailDto: {
|
|
12184
12273
|
/** @enum {string|null} */
|
|
12185
12274
|
phase?: "recent" | "historical" | "complete" | null;
|
|
12186
12275
|
historicalWeekStart?: string | null;
|
|
12276
|
+
/** @description Sum of pending repo counts across installs. */
|
|
12187
12277
|
pendingRepoCount?: number;
|
|
12278
|
+
/** @description Sum of skipped repo counts across installs. */
|
|
12188
12279
|
skippedRepoCount?: number;
|
|
12280
|
+
/** @description Sum of failed repo counts across installs. */
|
|
12189
12281
|
failedRepoCount?: number;
|
|
12190
12282
|
coveragePercent?: number | null;
|
|
12191
|
-
/** @description Full repository count before the `repos` array is capped (500). When greater than `repos.length`, the list is truncated for the response. */
|
|
12283
|
+
/** @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. */
|
|
12192
12284
|
totalRepoCount?: number;
|
|
12193
12285
|
repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
|
|
12286
|
+
/** @description One row per GitHub VCS connection (install) in the workspace. */
|
|
12287
|
+
installs?: components["schemas"]["IngestCoverageProductivityInstallDto"][];
|
|
12288
|
+
/** @description Sum of weeksCompleted across installs (backfill overall). */
|
|
12289
|
+
overallWeeksCompleted?: number;
|
|
12290
|
+
/** @description installCount × expectedWeeks (backfill overall denominator). */
|
|
12291
|
+
overallWeeksExpected?: number;
|
|
12292
|
+
/** @description overallWeeksCompleted / overallWeeksExpected as 0–100 (one decimal). Used for backfill chrome; incremental mode uses repo counts instead. */
|
|
12293
|
+
overallProgressPercent?: number;
|
|
12194
12294
|
/** @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. */
|
|
12195
12295
|
selfHeal?: components["schemas"]["IngestCoverageProductivitySelfHealDto"] | null;
|
|
12196
12296
|
/** @description Org-ledger ship-weight scoring for the Home-aligned window. Null when metrics cannot be loaded. Separate from productivity backfill phase / Backfill complete. */
|
|
@@ -12681,7 +12781,7 @@ export interface components {
|
|
|
12681
12781
|
/** @enum {string} */
|
|
12682
12782
|
SdlcModuleId: "dora" | "ci-pipeline" | "collaboration-pr" | "security-risk" | "governance-architecture" | "financial-operational";
|
|
12683
12783
|
/** @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";
|
|
12784
|
+
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
12785
|
/** @enum {string} */
|
|
12686
12786
|
SdlcMetricDataStatus: "live" | "preview" | "unavailable";
|
|
12687
12787
|
/** @enum {string} */
|
|
@@ -12701,6 +12801,11 @@ export interface components {
|
|
|
12701
12801
|
date: string;
|
|
12702
12802
|
value: number;
|
|
12703
12803
|
};
|
|
12804
|
+
SdlcMetricBreakdownItemDto: {
|
|
12805
|
+
key: string;
|
|
12806
|
+
label: string;
|
|
12807
|
+
value: number;
|
|
12808
|
+
};
|
|
12704
12809
|
SdlcMetricDto: {
|
|
12705
12810
|
id: components["schemas"]["SdlcMetricId"];
|
|
12706
12811
|
name: string;
|
|
@@ -12714,6 +12819,8 @@ export interface components {
|
|
|
12714
12819
|
benchmarkBand?: components["schemas"]["SdlcBenchmarkBand"];
|
|
12715
12820
|
drilldownAvailable: boolean;
|
|
12716
12821
|
dailySeries?: components["schemas"]["SdlcDailySeriesPointDto"][];
|
|
12822
|
+
/** @description Severity or category segments (e.g. Dependabot critical/high/medium/low). */
|
|
12823
|
+
breakdown?: components["schemas"]["SdlcMetricBreakdownItemDto"][];
|
|
12717
12824
|
unavailableReason?: string;
|
|
12718
12825
|
};
|
|
12719
12826
|
SdlcModuleDto: {
|
|
@@ -12751,6 +12858,143 @@ export interface components {
|
|
|
12751
12858
|
items: components["schemas"]["SdlcDrilldownItemDto"][];
|
|
12752
12859
|
nextCursor?: string;
|
|
12753
12860
|
};
|
|
12861
|
+
/** @enum {string} */
|
|
12862
|
+
SecurityFindingSource: "github_dependabot" | "github_secret_scanning" | "github_code_scanning" | "sonar_vulnerability" | "sonar_hotspot" | "readiness_gap" | "code_insights" | "incident" | "ticket";
|
|
12863
|
+
/** @enum {string} */
|
|
12864
|
+
SecurityFindingCategory: "dependency" | "secret" | "code" | "posture" | "incident" | "ticket";
|
|
12865
|
+
/** @enum {string} */
|
|
12866
|
+
SecuritySeverity: "critical" | "high" | "medium" | "low" | "unknown";
|
|
12867
|
+
/** @enum {string} */
|
|
12868
|
+
SecurityAiInvolvement: "measured" | "estimated" | "none" | "unknown";
|
|
12869
|
+
/** @enum {string} */
|
|
12870
|
+
SecurityFindingState: "open" | "fixed" | "dismissed";
|
|
12871
|
+
/** @enum {string} */
|
|
12872
|
+
SecurityFindingActionKind: "fix_pr" | "open_source" | "rotate_secret" | "assign_owner" | "open_incident" | "open_ticket";
|
|
12873
|
+
SecurityFindingActionDto: {
|
|
12874
|
+
kind: components["schemas"]["SecurityFindingActionKind"];
|
|
12875
|
+
/** Format: uri */
|
|
12876
|
+
href?: string;
|
|
12877
|
+
readinessIssueId?: string;
|
|
12878
|
+
};
|
|
12879
|
+
SecurityNamedRefDto: {
|
|
12880
|
+
id: string;
|
|
12881
|
+
name: string;
|
|
12882
|
+
};
|
|
12883
|
+
SecurityRepoRefDto: {
|
|
12884
|
+
id: string;
|
|
12885
|
+
slug: string;
|
|
12886
|
+
};
|
|
12887
|
+
SecurityFindingDto: {
|
|
12888
|
+
id: string;
|
|
12889
|
+
source: components["schemas"]["SecurityFindingSource"];
|
|
12890
|
+
sourceLabel: string;
|
|
12891
|
+
category: components["schemas"]["SecurityFindingCategory"];
|
|
12892
|
+
severity: components["schemas"]["SecuritySeverity"];
|
|
12893
|
+
title: string;
|
|
12894
|
+
repo: components["schemas"]["SecurityRepoRefDto"] | null;
|
|
12895
|
+
team: components["schemas"]["SecurityNamedRefDto"] | null;
|
|
12896
|
+
/** Format: date-time */
|
|
12897
|
+
openedAt: string;
|
|
12898
|
+
/** Format: date-time */
|
|
12899
|
+
dueAt: string | null;
|
|
12900
|
+
pastDue: boolean;
|
|
12901
|
+
state: components["schemas"]["SecurityFindingState"];
|
|
12902
|
+
/** Format: uri */
|
|
12903
|
+
url: string | null;
|
|
12904
|
+
aiInvolvement: components["schemas"]["SecurityAiInvolvement"];
|
|
12905
|
+
alsoSeenIn: components["schemas"]["SecurityFindingSource"][];
|
|
12906
|
+
primaryAction: components["schemas"]["SecurityFindingActionDto"];
|
|
12907
|
+
redacted: boolean;
|
|
12908
|
+
};
|
|
12909
|
+
/** @enum {string} */
|
|
12910
|
+
SecurityDataSourceCategory: "source_control" | "code_quality" | "ai_tools" | "incidents" | "tickets" | "security";
|
|
12911
|
+
/** @enum {string} */
|
|
12912
|
+
SecurityDataSourceStatus: "connected" | "stale" | "needs_permission" | "not_connected" | "coming_soon";
|
|
12913
|
+
SecurityDataSourceDto: {
|
|
12914
|
+
id: string;
|
|
12915
|
+
name: string;
|
|
12916
|
+
category: components["schemas"]["SecurityDataSourceCategory"];
|
|
12917
|
+
status: components["schemas"]["SecurityDataSourceStatus"];
|
|
12918
|
+
/** Format: date-time */
|
|
12919
|
+
lastSuccessAt: string | null;
|
|
12920
|
+
feeds: components["schemas"]["SdlcMetricId"][];
|
|
12921
|
+
actionLabel?: string;
|
|
12922
|
+
actionHref?: string;
|
|
12923
|
+
};
|
|
12924
|
+
/** @enum {string} */
|
|
12925
|
+
SecurityBlindSpotMissing: "dependabot" | "secret_scanning" | "sast" | "review_rule" | "owner";
|
|
12926
|
+
SecurityBlindSpotDto: {
|
|
12927
|
+
repo: components["schemas"]["SecurityRepoRefDto"];
|
|
12928
|
+
team: components["schemas"]["SecurityNamedRefDto"] | null;
|
|
12929
|
+
missing: components["schemas"]["SecurityBlindSpotMissing"][];
|
|
12930
|
+
};
|
|
12931
|
+
SecurityTeamRollupDto: {
|
|
12932
|
+
team: components["schemas"]["SecurityNamedRefDto"] | null;
|
|
12933
|
+
criticalOpen: number;
|
|
12934
|
+
pastDue: number;
|
|
12935
|
+
scanCoveragePercent: number | null;
|
|
12936
|
+
aiUnreviewedPercent: number | null;
|
|
12937
|
+
openFindings: number;
|
|
12938
|
+
};
|
|
12939
|
+
SecurityAiRiskDto: {
|
|
12940
|
+
agentPrSharePercent: number | null;
|
|
12941
|
+
agentUnreviewedPercent: number | null;
|
|
12942
|
+
humanUnreviewedPercent: number | null;
|
|
12943
|
+
acceptedAiLinesByTeam: {
|
|
12944
|
+
team: components["schemas"]["SecurityNamedRefDto"] | null;
|
|
12945
|
+
lines: number;
|
|
12946
|
+
}[];
|
|
12947
|
+
guardrails: {
|
|
12948
|
+
reposWithAgentIgnore: number;
|
|
12949
|
+
reposWithMcpPosture: number;
|
|
12950
|
+
reposWithSecretsScanner: number;
|
|
12951
|
+
reposScanned: number;
|
|
12952
|
+
};
|
|
12953
|
+
attributionQuality: components["schemas"]["SecurityAiInvolvement"];
|
|
12954
|
+
};
|
|
12955
|
+
SecurityPostureDto: {
|
|
12956
|
+
/** Format: date-time */
|
|
12957
|
+
asOf: string;
|
|
12958
|
+
rangeId: string;
|
|
12959
|
+
headline: {
|
|
12960
|
+
criticalOpen: number;
|
|
12961
|
+
pastDue: number;
|
|
12962
|
+
reposWithoutCoverage: number;
|
|
12963
|
+
unownedFindings: number;
|
|
12964
|
+
};
|
|
12965
|
+
dataSources: components["schemas"]["SecurityDataSourceDto"][];
|
|
12966
|
+
fixFirst: components["schemas"]["SecurityFindingDto"][];
|
|
12967
|
+
blindSpots: components["schemas"]["SecurityBlindSpotDto"][];
|
|
12968
|
+
teams: components["schemas"]["SecurityTeamRollupDto"][];
|
|
12969
|
+
aiRisk: components["schemas"]["SecurityAiRiskDto"];
|
|
12970
|
+
viewer: {
|
|
12971
|
+
isAdmin: boolean;
|
|
12972
|
+
ownedTeamIds: string[];
|
|
12973
|
+
};
|
|
12974
|
+
_meta: components["schemas"]["InsightsResponseMeta"];
|
|
12975
|
+
};
|
|
12976
|
+
SecurityFindingsPageDto: {
|
|
12977
|
+
items: components["schemas"]["SecurityFindingDto"][];
|
|
12978
|
+
nextCursor?: string;
|
|
12979
|
+
total: number;
|
|
12980
|
+
};
|
|
12981
|
+
SecuritySettingsDto: {
|
|
12982
|
+
slaDays: {
|
|
12983
|
+
critical: number | null;
|
|
12984
|
+
high: number | null;
|
|
12985
|
+
medium: number | null;
|
|
12986
|
+
low: number | null;
|
|
12987
|
+
};
|
|
12988
|
+
incidentRules: {
|
|
12989
|
+
labels: string[];
|
|
12990
|
+
severityNames: string[];
|
|
12991
|
+
titleKeywords: string[];
|
|
12992
|
+
};
|
|
12993
|
+
ticketRules: {
|
|
12994
|
+
labels: string[];
|
|
12995
|
+
issueTypes: string[];
|
|
12996
|
+
};
|
|
12997
|
+
};
|
|
12754
12998
|
InsightsResponseMeta: {
|
|
12755
12999
|
/**
|
|
12756
13000
|
* Format: date-time
|
|
@@ -15246,6 +15490,7 @@ export type IngestCoverageProductivityDepthScanDto = components['schemas']['Inge
|
|
|
15246
15490
|
export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
|
|
15247
15491
|
export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
|
|
15248
15492
|
export type IngestCoverageShipWeightScoringDto = components['schemas']['IngestCoverageShipWeightScoringDto'];
|
|
15493
|
+
export type IngestCoverageProductivityInstallDto = components['schemas']['IngestCoverageProductivityInstallDto'];
|
|
15249
15494
|
export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
|
|
15250
15495
|
export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
|
|
15251
15496
|
export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
|
|
@@ -15299,11 +15544,32 @@ export type SdlcMetricHealthStatus = components['schemas']['SdlcMetricHealthStat
|
|
|
15299
15544
|
export type SdlcBenchmarkBand = components['schemas']['SdlcBenchmarkBand'];
|
|
15300
15545
|
export type SdlcMetricTrendDto = components['schemas']['SdlcMetricTrendDto'];
|
|
15301
15546
|
export type SdlcDailySeriesPointDto = components['schemas']['SdlcDailySeriesPointDto'];
|
|
15547
|
+
export type SdlcMetricBreakdownItemDto = components['schemas']['SdlcMetricBreakdownItemDto'];
|
|
15302
15548
|
export type SdlcMetricDto = components['schemas']['SdlcMetricDto'];
|
|
15303
15549
|
export type SdlcModuleDto = components['schemas']['SdlcModuleDto'];
|
|
15304
15550
|
export type SdlcOverviewDto = components['schemas']['SdlcOverviewDto'];
|
|
15305
15551
|
export type SdlcDrilldownItemDto = components['schemas']['SdlcDrilldownItemDto'];
|
|
15306
15552
|
export type SdlcDrilldownDto = components['schemas']['SdlcDrilldownDto'];
|
|
15553
|
+
export type SecurityFindingSource = components['schemas']['SecurityFindingSource'];
|
|
15554
|
+
export type SecurityFindingCategory = components['schemas']['SecurityFindingCategory'];
|
|
15555
|
+
export type SecuritySeverity = components['schemas']['SecuritySeverity'];
|
|
15556
|
+
export type SecurityAiInvolvement = components['schemas']['SecurityAiInvolvement'];
|
|
15557
|
+
export type SecurityFindingState = components['schemas']['SecurityFindingState'];
|
|
15558
|
+
export type SecurityFindingActionKind = components['schemas']['SecurityFindingActionKind'];
|
|
15559
|
+
export type SecurityFindingActionDto = components['schemas']['SecurityFindingActionDto'];
|
|
15560
|
+
export type SecurityNamedRefDto = components['schemas']['SecurityNamedRefDto'];
|
|
15561
|
+
export type SecurityRepoRefDto = components['schemas']['SecurityRepoRefDto'];
|
|
15562
|
+
export type SecurityFindingDto = components['schemas']['SecurityFindingDto'];
|
|
15563
|
+
export type SecurityDataSourceCategory = components['schemas']['SecurityDataSourceCategory'];
|
|
15564
|
+
export type SecurityDataSourceStatus = components['schemas']['SecurityDataSourceStatus'];
|
|
15565
|
+
export type SecurityDataSourceDto = components['schemas']['SecurityDataSourceDto'];
|
|
15566
|
+
export type SecurityBlindSpotMissing = components['schemas']['SecurityBlindSpotMissing'];
|
|
15567
|
+
export type SecurityBlindSpotDto = components['schemas']['SecurityBlindSpotDto'];
|
|
15568
|
+
export type SecurityTeamRollupDto = components['schemas']['SecurityTeamRollupDto'];
|
|
15569
|
+
export type SecurityAiRiskDto = components['schemas']['SecurityAiRiskDto'];
|
|
15570
|
+
export type SecurityPostureDto = components['schemas']['SecurityPostureDto'];
|
|
15571
|
+
export type SecurityFindingsPageDto = components['schemas']['SecurityFindingsPageDto'];
|
|
15572
|
+
export type SecuritySettingsDto = components['schemas']['SecuritySettingsDto'];
|
|
15307
15573
|
export type InsightsResponseMeta = components['schemas']['InsightsResponseMeta'];
|
|
15308
15574
|
export type InsightsVerdictStatus = components['schemas']['InsightsVerdictStatus'];
|
|
15309
15575
|
export type InsightsRecommendationsVerdictSummary = components['schemas']['InsightsRecommendationsVerdictSummary'];
|
|
@@ -21050,6 +21316,207 @@ export interface operations {
|
|
|
21050
21316
|
};
|
|
21051
21317
|
};
|
|
21052
21318
|
};
|
|
21319
|
+
getSecurityPosture: {
|
|
21320
|
+
parameters: {
|
|
21321
|
+
query?: never;
|
|
21322
|
+
header?: never;
|
|
21323
|
+
path: {
|
|
21324
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21325
|
+
};
|
|
21326
|
+
cookie?: never;
|
|
21327
|
+
};
|
|
21328
|
+
requestBody?: never;
|
|
21329
|
+
responses: {
|
|
21330
|
+
/** @description Security posture payload */
|
|
21331
|
+
200: {
|
|
21332
|
+
headers: {
|
|
21333
|
+
[name: string]: unknown;
|
|
21334
|
+
};
|
|
21335
|
+
content: {
|
|
21336
|
+
"application/json": components["schemas"]["SecurityPostureDto"];
|
|
21337
|
+
};
|
|
21338
|
+
};
|
|
21339
|
+
/** @description Invalid query parameters */
|
|
21340
|
+
400: {
|
|
21341
|
+
headers: {
|
|
21342
|
+
[name: string]: unknown;
|
|
21343
|
+
};
|
|
21344
|
+
content: {
|
|
21345
|
+
"application/json": {
|
|
21346
|
+
/** @example invalid_query */
|
|
21347
|
+
error: string;
|
|
21348
|
+
};
|
|
21349
|
+
};
|
|
21350
|
+
};
|
|
21351
|
+
401: components["responses"]["Unauthorized"];
|
|
21352
|
+
403: components["responses"]["Forbidden"];
|
|
21353
|
+
/** @description Workspace not found, or security findings flag off */
|
|
21354
|
+
404: {
|
|
21355
|
+
headers: {
|
|
21356
|
+
[name: string]: unknown;
|
|
21357
|
+
};
|
|
21358
|
+
content: {
|
|
21359
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21360
|
+
};
|
|
21361
|
+
};
|
|
21362
|
+
};
|
|
21363
|
+
};
|
|
21364
|
+
getSecurityFindings: {
|
|
21365
|
+
parameters: {
|
|
21366
|
+
query?: {
|
|
21367
|
+
source?: components["schemas"]["SecurityFindingSource"];
|
|
21368
|
+
category?: components["schemas"]["SecurityFindingCategory"];
|
|
21369
|
+
severity?: components["schemas"]["SecuritySeverity"];
|
|
21370
|
+
state?: components["schemas"]["SecurityFindingState"];
|
|
21371
|
+
/** @description Filter to findings owned by this team id. */
|
|
21372
|
+
teamId?: string;
|
|
21373
|
+
/** @description Filter to findings for this internal repo id. */
|
|
21374
|
+
repoId?: string;
|
|
21375
|
+
pastDue?: boolean;
|
|
21376
|
+
cursor?: string;
|
|
21377
|
+
limit?: number;
|
|
21378
|
+
};
|
|
21379
|
+
header?: never;
|
|
21380
|
+
path: {
|
|
21381
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21382
|
+
};
|
|
21383
|
+
cookie?: never;
|
|
21384
|
+
};
|
|
21385
|
+
requestBody?: never;
|
|
21386
|
+
responses: {
|
|
21387
|
+
/** @description Findings page */
|
|
21388
|
+
200: {
|
|
21389
|
+
headers: {
|
|
21390
|
+
[name: string]: unknown;
|
|
21391
|
+
};
|
|
21392
|
+
content: {
|
|
21393
|
+
"application/json": components["schemas"]["SecurityFindingsPageDto"];
|
|
21394
|
+
};
|
|
21395
|
+
};
|
|
21396
|
+
/** @description Invalid query parameters */
|
|
21397
|
+
400: {
|
|
21398
|
+
headers: {
|
|
21399
|
+
[name: string]: unknown;
|
|
21400
|
+
};
|
|
21401
|
+
content: {
|
|
21402
|
+
"application/json": {
|
|
21403
|
+
/** @example invalid_query */
|
|
21404
|
+
error: string;
|
|
21405
|
+
};
|
|
21406
|
+
};
|
|
21407
|
+
};
|
|
21408
|
+
401: components["responses"]["Unauthorized"];
|
|
21409
|
+
403: components["responses"]["Forbidden"];
|
|
21410
|
+
/** @description Workspace not found, or security findings flag off */
|
|
21411
|
+
404: {
|
|
21412
|
+
headers: {
|
|
21413
|
+
[name: string]: unknown;
|
|
21414
|
+
};
|
|
21415
|
+
content: {
|
|
21416
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21417
|
+
};
|
|
21418
|
+
};
|
|
21419
|
+
};
|
|
21420
|
+
};
|
|
21421
|
+
getSecuritySettings: {
|
|
21422
|
+
parameters: {
|
|
21423
|
+
query?: never;
|
|
21424
|
+
header?: never;
|
|
21425
|
+
path: {
|
|
21426
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21427
|
+
};
|
|
21428
|
+
cookie?: never;
|
|
21429
|
+
};
|
|
21430
|
+
requestBody?: never;
|
|
21431
|
+
responses: {
|
|
21432
|
+
/** @description Current settings (defaults when no row exists) */
|
|
21433
|
+
200: {
|
|
21434
|
+
headers: {
|
|
21435
|
+
[name: string]: unknown;
|
|
21436
|
+
};
|
|
21437
|
+
content: {
|
|
21438
|
+
"application/json": components["schemas"]["SecuritySettingsDto"];
|
|
21439
|
+
};
|
|
21440
|
+
};
|
|
21441
|
+
401: components["responses"]["Unauthorized"];
|
|
21442
|
+
403: components["responses"]["Forbidden"];
|
|
21443
|
+
/** @description Workspace not found, or security findings flag off */
|
|
21444
|
+
404: {
|
|
21445
|
+
headers: {
|
|
21446
|
+
[name: string]: unknown;
|
|
21447
|
+
};
|
|
21448
|
+
content: {
|
|
21449
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21450
|
+
};
|
|
21451
|
+
};
|
|
21452
|
+
};
|
|
21453
|
+
};
|
|
21454
|
+
putSecuritySettings: {
|
|
21455
|
+
parameters: {
|
|
21456
|
+
query?: never;
|
|
21457
|
+
header?: never;
|
|
21458
|
+
path: {
|
|
21459
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21460
|
+
};
|
|
21461
|
+
cookie?: never;
|
|
21462
|
+
};
|
|
21463
|
+
requestBody: {
|
|
21464
|
+
content: {
|
|
21465
|
+
"application/json": components["schemas"]["SecuritySettingsDto"];
|
|
21466
|
+
};
|
|
21467
|
+
};
|
|
21468
|
+
responses: {
|
|
21469
|
+
/** @description Updated settings */
|
|
21470
|
+
200: {
|
|
21471
|
+
headers: {
|
|
21472
|
+
[name: string]: unknown;
|
|
21473
|
+
};
|
|
21474
|
+
content: {
|
|
21475
|
+
"application/json": components["schemas"]["SecuritySettingsDto"];
|
|
21476
|
+
};
|
|
21477
|
+
};
|
|
21478
|
+
/** @description Invalid settings payload */
|
|
21479
|
+
400: {
|
|
21480
|
+
headers: {
|
|
21481
|
+
[name: string]: unknown;
|
|
21482
|
+
};
|
|
21483
|
+
content: {
|
|
21484
|
+
/**
|
|
21485
|
+
* @example {
|
|
21486
|
+
* "error": "Invalid SLA day",
|
|
21487
|
+
* "code": "invalid_input"
|
|
21488
|
+
* }
|
|
21489
|
+
*/
|
|
21490
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21491
|
+
};
|
|
21492
|
+
};
|
|
21493
|
+
401: components["responses"]["Unauthorized"];
|
|
21494
|
+
/** @description Caller is not a workspace admin */
|
|
21495
|
+
403: {
|
|
21496
|
+
headers: {
|
|
21497
|
+
[name: string]: unknown;
|
|
21498
|
+
};
|
|
21499
|
+
content: {
|
|
21500
|
+
/**
|
|
21501
|
+
* @example {
|
|
21502
|
+
* "error": "Workspace admin access is required to change security settings",
|
|
21503
|
+
* "code": "security_settings_admin_required"
|
|
21504
|
+
* }
|
|
21505
|
+
*/
|
|
21506
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21507
|
+
};
|
|
21508
|
+
};
|
|
21509
|
+
/** @description Workspace not found, or security findings flag off */
|
|
21510
|
+
404: {
|
|
21511
|
+
headers: {
|
|
21512
|
+
[name: string]: unknown;
|
|
21513
|
+
};
|
|
21514
|
+
content: {
|
|
21515
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21516
|
+
};
|
|
21517
|
+
};
|
|
21518
|
+
};
|
|
21519
|
+
};
|
|
21053
21520
|
getInsightsRecommendationsPageBundle: {
|
|
21054
21521
|
parameters: {
|
|
21055
21522
|
query: {
|