@thinkai/tai-api-contract 2.195.0 → 2.196.1

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.
@@ -5175,7 +5175,7 @@ export interface paths {
5175
5175
  };
5176
5176
  /**
5177
5177
  * Ingest / backfill data coverage
5178
- * @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. AI usage detail includes spend reconciliation (`spendReconciliationStatus`, `spendDataQuality`, provider and stored cent totals, `spendReconcileCheckedAt`) read from the refresh-status snapshot. This GET does not call Cursor or Claude. Productivity, HR, monitoring, and SDLC pipelines omit those fields. `nextScheduledAt` is the scheduled poll instant for `ai_usage`, `hris`, and `monitoring`. It is null for productivity and SDLC, when that sync worker is disabled, or when there has been no attempt. A past instant means the poll is overdue; it is not moved forward to now and is not an ETA. Monitoring `sync` copies stored `issueCount`, `deploymentCount`, and `eventCount` (null when unset). HRIS leaves those three null. Requires workspace membership. Disconnected sources are omitted.
5178
+ * @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. Every pipeline includes always-present `dataTrust` (`status` + `verificationMethod`) as a unified trust summary derived from existing coverage signals (stale, gaps, productivity `verificationStatus`, AI `spendReconciliationStatus`, pipeline `status`). It does not replace Source verified, Spend matched, or Backfill complete fields. 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. AI usage detail includes spend reconciliation (`spendReconciliationStatus`, `spendDataQuality`, provider and stored cent totals, `spendReconcileCheckedAt`) read from the refresh-status snapshot. This GET does not call Cursor or Claude. Productivity, HR, monitoring, and SDLC pipelines omit those fields. `nextScheduledAt` is the scheduled poll instant for `ai_usage`, `hris`, and `monitoring`. It is null for productivity and SDLC, when that sync worker is disabled, or when there has been no attempt (`hris`/`monitoring` use last status `never`). For `hris` and `monitoring`, the value is the next PHASE2 daily UTC cron after now (`15 2` / `30 2`, not lastAttempt plus interval) and is therefore in the future when set. For `ai_usage`, it is the next weekly workspace slot and a past instant means that poll is overdue; it is not moved forward to now and is not an ETA. Monitoring `sync` copies stored `issueCount`, `deploymentCount`, and `eventCount` (null when unset). HRIS leaves those three null. Requires workspace membership. Disconnected sources are omitted. Insights / Measure / Engineering Health response DTOs do not include `dataTrust`.
5179
5179
  */
5180
5180
  get: operations["getWorkspaceIngestCoverage"];
5181
5181
  put?: never;
@@ -10770,6 +10770,21 @@ export interface components {
10770
10770
  /** @description Monitoring meta event count. Null for HRIS and when the stored count is unset. */
10771
10771
  eventCount?: number | null;
10772
10772
  };
10773
+ /**
10774
+ * @description Unified data-trust summary for one ingest-coverage pipeline. Derived from existing coverage signals; does not rename Source verified, Spend matched, or Backfill complete.
10775
+ * @enum {string}
10776
+ */
10777
+ DataTrustStatus: "verified" | "provisional" | "degraded" | "unknown";
10778
+ /**
10779
+ * @description Which check decided `dataTrust.status` (or `none` when no applicable check). When several checks tie, prefer checksum > source_count > calendar_gap > none.
10780
+ * @enum {string}
10781
+ */
10782
+ DataTrustVerificationMethod: "calendar_gap" | "source_count" | "checksum" | "none";
10783
+ /** @description Always-present Data trust summary on each ingest-coverage pipeline (`GET …/ingest-coverage` only). Additive to Source verified / Spend matched / Backfill complete lines. Derived from existing coverage signals only. Not added to Insights / Measure / Engineering Health response DTOs. */
10784
+ DataTrustDto: {
10785
+ status: components["schemas"]["DataTrustStatus"];
10786
+ verificationMethod: components["schemas"]["DataTrustVerificationMethod"];
10787
+ };
10773
10788
  IngestCoveragePipelineDto: {
10774
10789
  id: string;
10775
10790
  /** @enum {string} */
@@ -10790,7 +10805,7 @@ export interface components {
10790
10805
  lastErrorMessage?: string | null;
10791
10806
  /**
10792
10807
  * Format: date-time
10793
- * @description Scheduled poll instant. Set for ai_usage (next weekly workspace slot), hris, and monitoring (last attempt plus the worker interval, including when that instant is already past). Null for productivity_github and sdlc_github, when the sync worker is disabled, or when lastAttemptAt is null. Not an ETA and not advanced to now when the worker is late.
10808
+ * @description Scheduled poll instant. Set for ai_usage (next weekly workspace slot; a past instant means the poll is overdue and is not advanced to now), hris (next PHASE2 daily UTC cron `15 2` after now), and monitoring (next PHASE2 daily UTC cron `30 2` after now). HRIS/Monitoring values are always in the future when set — not lastAttempt plus interval. Null for productivity_github and sdlc_github, when the sync worker is disabled, or when there has been no attempt (hris/monitoring: last status never). Not an ETA.
10794
10809
  */
10795
10810
  nextScheduledAt?: string | null;
10796
10811
  /** Format: int64 */
@@ -10806,6 +10821,7 @@ export interface components {
10806
10821
  ai?: components["schemas"]["IngestCoverageAiDetailDto"];
10807
10822
  sdlc?: components["schemas"]["IngestCoverageSdlcDetailDto"];
10808
10823
  sync?: components["schemas"]["IngestCoverageSyncDetailDto"];
10824
+ dataTrust: components["schemas"]["DataTrustDto"];
10809
10825
  };
10810
10826
  IngestCoverageDto: {
10811
10827
  pipelines: components["schemas"]["IngestCoveragePipelineDto"][];
@@ -13532,6 +13548,9 @@ export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiD
13532
13548
  export type IngestCoverageSdlcComponentDto = components['schemas']['IngestCoverageSdlcComponentDto'];
13533
13549
  export type IngestCoverageSdlcDetailDto = components['schemas']['IngestCoverageSdlcDetailDto'];
13534
13550
  export type IngestCoverageSyncDetailDto = components['schemas']['IngestCoverageSyncDetailDto'];
13551
+ export type DataTrustStatus = components['schemas']['DataTrustStatus'];
13552
+ export type DataTrustVerificationMethod = components['schemas']['DataTrustVerificationMethod'];
13553
+ export type DataTrustDto = components['schemas']['DataTrustDto'];
13535
13554
  export type IngestCoveragePipelineDto = components['schemas']['IngestCoveragePipelineDto'];
13536
13555
  export type IngestCoverageDto = components['schemas']['IngestCoverageDto'];
13537
13556
  export type IngestRunDto = components['schemas']['IngestRunDto'];