@thinkai/tai-api-contract 2.66.0 → 2.67.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.
|
@@ -4764,6 +4764,15 @@ export interface components {
|
|
|
4764
4764
|
*/
|
|
4765
4765
|
error: "github_permissions_check_failed";
|
|
4766
4766
|
};
|
|
4767
|
+
/**
|
|
4768
|
+
* @description Whether a GitHub Code security product is enabled and readable for sampled repos. `partial` means mixed enablement across the sample; `unknown` when not probed or grants missing.
|
|
4769
|
+
* @enum {string}
|
|
4770
|
+
*/
|
|
4771
|
+
GithubProductSettingStatus: "ok" | "not_enabled" | "partial" | "forbidden" | "unknown";
|
|
4772
|
+
GithubProductSettingsDto: {
|
|
4773
|
+
dependabotAlerts: components["schemas"]["GithubProductSettingStatus"];
|
|
4774
|
+
secretScanning: components["schemas"]["GithubProductSettingStatus"];
|
|
4775
|
+
};
|
|
4767
4776
|
GithubInstallationSummaryDto: {
|
|
4768
4777
|
installationId: string;
|
|
4769
4778
|
account: components["schemas"]["GithubAccountDto"];
|
|
@@ -4777,6 +4786,20 @@ export interface components {
|
|
|
4777
4786
|
permissionsUpgradeRequired: boolean;
|
|
4778
4787
|
/** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
|
|
4779
4788
|
corePermissionsOk: boolean;
|
|
4789
|
+
/** @description True when installation grants Vulnerability alerts and Secret scanning alerts read for SDLC security metrics. */
|
|
4790
|
+
securityPermissionsOk: boolean;
|
|
4791
|
+
/** @description True when installation grants financial/operational SDLC metric permissions (Actions, Deployments, and org Administration / Copilot seat reads for organization installs). */
|
|
4792
|
+
financialPermissionsOk: boolean;
|
|
4793
|
+
/** @description Security alert permissions still needed for SDLC security metrics. */
|
|
4794
|
+
missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4795
|
+
/** @description Financial/operational permissions still needed for SDLC financial metrics. */
|
|
4796
|
+
missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4797
|
+
/** @description Human-readable summary when security App permissions are missing. */
|
|
4798
|
+
securityUpgradeMessage?: string | null;
|
|
4799
|
+
/** @description Human-readable summary when financial App permissions are missing. */
|
|
4800
|
+
financialUpgradeMessage?: string | null;
|
|
4801
|
+
/** @description Dependabot alerts and secret scanning enablement on sampled repos (throttled probe). Omitted when security App grants are missing or the probe has not run. */
|
|
4802
|
+
githubProductSettings?: components["schemas"]["GithubProductSettingsDto"] | null;
|
|
4780
4803
|
/** @description True when automated fixes are enabled and the linked Automations (write) installation grants write permissions required for fix PRs. */
|
|
4781
4804
|
writePermissionsOk: boolean;
|
|
4782
4805
|
/** @description Alias for `!writePermissionsOk`. */
|
|
@@ -4961,6 +4984,20 @@ export interface components {
|
|
|
4961
4984
|
permissionsUpgradeRequired: boolean;
|
|
4962
4985
|
/** @description True when every connected installation grants core read permissions. */
|
|
4963
4986
|
corePermissionsOk: boolean;
|
|
4987
|
+
/** @description True when every connected installation grants security alert read permissions. */
|
|
4988
|
+
securityPermissionsOk: boolean;
|
|
4989
|
+
/** @description True when every connected installation grants financial/operational read permissions. */
|
|
4990
|
+
financialPermissionsOk: boolean;
|
|
4991
|
+
/** @description Aggregated security permissions missing on installations with security gaps. */
|
|
4992
|
+
missingSecurityPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4993
|
+
/** @description Aggregated financial permissions missing on installations with financial gaps. */
|
|
4994
|
+
missingFinancialPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4995
|
+
/** @description Human-readable summary when security App permissions are missing. */
|
|
4996
|
+
securityUpgradeMessage?: string | null;
|
|
4997
|
+
/** @description Human-readable summary when financial App permissions are missing. */
|
|
4998
|
+
financialUpgradeMessage?: string | null;
|
|
4999
|
+
/** @description Workspace-wide Code security product status reduced from installations. */
|
|
5000
|
+
githubProductSettings?: components["schemas"]["GithubProductSettingsDto"] | null;
|
|
4964
5001
|
/** @description True when every connected installation grants write permissions for automated fixes. */
|
|
4965
5002
|
writePermissionsOk: boolean;
|
|
4966
5003
|
/** @description True when any connected installation lacks write permissions for automated fixes. */
|
|
@@ -6810,6 +6847,8 @@ export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLim
|
|
|
6810
6847
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
6811
6848
|
export type GithubWritePermissionsRequiredErrorDto = components['schemas']['GithubWritePermissionsRequiredErrorDto'];
|
|
6812
6849
|
export type GithubPermissionsCheckFailedErrorDto = components['schemas']['GithubPermissionsCheckFailedErrorDto'];
|
|
6850
|
+
export type GithubProductSettingStatus = components['schemas']['GithubProductSettingStatus'];
|
|
6851
|
+
export type GithubProductSettingsDto = components['schemas']['GithubProductSettingsDto'];
|
|
6813
6852
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
6814
6853
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
6815
6854
|
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
@@ -10430,8 +10469,10 @@ export interface operations {
|
|
|
10430
10469
|
query?: {
|
|
10431
10470
|
/** @description When true, bypass `tai_workspace_vcs_repos_cache` and re-fetch from GitHub. When productivity backfill phase is `complete`, also triggers inline `on_demand` ingest for the current UTC week (gap-fill only when metrics are missing). Response includes `productivityRefreshInProgress` while the workspace advisory lock is held. */
|
|
10432
10471
|
refresh?: boolean;
|
|
10433
|
-
/** @description When true, re-fetch GitHub App and installation permission metadata (used by the login permission gate after the user approves on GitHub). */
|
|
10472
|
+
/** @description When true, re-fetch GitHub App and installation permission metadata (used by the login permission gate after the user approves on GitHub). Clears App-permission and product-settings caches so the next `productSettingsRefresh` re-probes. Does not itself call alert-list APIs; use `productSettingsRefresh` for that. */
|
|
10434
10473
|
permissionsRefresh?: boolean;
|
|
10474
|
+
/** @description When true, probe Dependabot alerts and secret scanning enablement on a small sample of connected repositories (only when security App grants are present). Without this flag, status returns previously cached `githubProductSettings` only (no live probe). Results are cached server-side for several minutes. */
|
|
10475
|
+
productSettingsRefresh?: boolean;
|
|
10435
10476
|
/** @description Page size for the nested installation repo list (default 25, max 100). */
|
|
10436
10477
|
repoLimit?: components["parameters"]["GithubRepoLimit"];
|
|
10437
10478
|
/** @description Zero-based offset into the merged installation repo list. */
|