@thinkai/tai-api-contract 2.195.0 → 2.196.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 +20 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +39 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +20 -1
- package/src/index.ts +24 -0
|
@@ -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. 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. 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} */
|
|
@@ -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'];
|