@thinkai/tai-api-contract 2.131.0 → 2.132.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.
@@ -1543,7 +1543,7 @@ export interface paths {
1543
1543
  };
1544
1544
  /**
1545
1545
  * GitHub App installation status for workspace
1546
- * @description Returns whether a GitHub App installation is linked and cached repo metadata. When no installation exists, returns 200 with `installed: false` (never 404 for missing install). Use `refresh=true` to bypass cache and re-list repositories from GitHub, and to run inline productivity ingest (`on_demand`) for the current UTC week when backfill phase is `complete`.
1546
+ * @description Returns whether a GitHub App installation is linked and cached repo metadata. When no installation exists, returns 200 with `installed: false` (never 404 for missing install). Use `refresh=true` to bypass cache and re-list repositories from GitHub, and to run inline productivity ingest (`on_demand`) for the current UTC week.
1547
1547
  */
1548
1548
  get: operations["getWorkspaceGithubInstallationStatus"];
1549
1549
  put?: never;
@@ -4123,7 +4123,7 @@ export interface paths {
4123
4123
  };
4124
4124
  /**
4125
4125
  * Ingest / backfill data coverage
4126
- * @description Read-only snapshot of historical ingest coverage for connected pipelines (productivity GitHub, AI usage/spend per provider, SDLC components, monitoring, HRIS). Aggregates existing watermarks and stored day/week evidence — does not trigger ingest or refresh. Requires workspace membership. Disconnected sources are omitted.
4126
+ * @description Read-only snapshot of historical ingest coverage for connected pipelines (productivity GitHub, AI usage/spend per provider, SDLC components, monitoring, HRIS). Aggregates existing watermarks and stored day/week evidence — does not trigger ingest or refresh. Productivity detail may include `selfHeal` (latest depth scan and week reconcile) read from stored activity rows; this GET does not run a scan. `selfHeal` is null when neither event exists. Requires workspace membership. Disconnected sources are omitted.
4127
4127
  */
4128
4128
  get: operations["getWorkspaceIngestCoverage"];
4129
4129
  put?: never;
@@ -8059,6 +8059,26 @@ export interface components {
8059
8059
  gaps?: components["schemas"]["IngestCoverageGapDto"][];
8060
8060
  lastErrorKind?: string | null;
8061
8061
  };
8062
+ /** @description Latest depth scan read from stored activity. `capturePercent` is the minimum existing capture ratio over that scan's repo checks with a GitHub merge count, or null when none qualify. */
8063
+ IngestCoverageProductivityDepthScanDto: {
8064
+ /** Format: date-time */
8065
+ completedAt: string | null;
8066
+ reposScanned: number;
8067
+ /** @description Metadata underIngestedCount from the completed depth-scan event. */
8068
+ gapCount: number;
8069
+ capturePercent: number | null;
8070
+ weeksQueued: number;
8071
+ };
8072
+ IngestCoverageProductivityWeekReconcileDto: {
8073
+ /** Format: date-time */
8074
+ completedAt: string | null;
8075
+ weeksChecked: number;
8076
+ weeksQueued: number;
8077
+ };
8078
+ IngestCoverageProductivitySelfHealDto: {
8079
+ depthScan: components["schemas"]["IngestCoverageProductivityDepthScanDto"];
8080
+ weekReconcile: components["schemas"]["IngestCoverageProductivityWeekReconcileDto"];
8081
+ };
8062
8082
  IngestCoverageProductivityDetailDto: {
8063
8083
  /** @enum {string|null} */
8064
8084
  phase?: "recent" | "historical" | "complete" | null;
@@ -8068,6 +8088,8 @@ export interface components {
8068
8088
  failedRepoCount?: number;
8069
8089
  coveragePercent?: number | null;
8070
8090
  repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
8091
+ /** @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. */
8092
+ selfHeal?: components["schemas"]["IngestCoverageProductivitySelfHealDto"] | null;
8071
8093
  };
8072
8094
  IngestCoverageFactFamilyDto: {
8073
8095
  /** @enum {string} */
@@ -10316,6 +10338,9 @@ export type WorkspaceAbsenceListDto = components['schemas']['WorkspaceAbsenceLis
10316
10338
  export type IngestCoverageGapDto = components['schemas']['IngestCoverageGapDto'];
10317
10339
  export type IngestCoverageLastRunDto = components['schemas']['IngestCoverageLastRunDto'];
10318
10340
  export type IngestCoverageProductivityRepoDto = components['schemas']['IngestCoverageProductivityRepoDto'];
10341
+ export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
10342
+ export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
10343
+ export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
10319
10344
  export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
10320
10345
  export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
10321
10346
  export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
@@ -14828,7 +14853,7 @@ export interface operations {
14828
14853
  getWorkspaceGithubInstallationStatus: {
14829
14854
  parameters: {
14830
14855
  query?: {
14831
- /** @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. */
14856
+ /** @description When true, bypass `tai_workspace_vcs_repos_cache` and re-fetch from GitHub, then poll and merge productivity metrics for the current UTC week even while historical backfill is active or metrics already exist. Response includes `productivityRefreshInProgress` while the workspace advisory lock is held. */
14832
14857
  refresh?: boolean;
14833
14858
  /** @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. */
14834
14859
  permissionsRefresh?: boolean;