@thinkai/tai-api-contract 2.140.0 → 2.142.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.
@@ -4147,7 +4147,7 @@ export interface paths {
4147
4147
  };
4148
4148
  /**
4149
4149
  * Ingest / backfill data coverage
4150
- * @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. `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.
4150
+ * @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.
4151
4151
  */
4152
4152
  get: operations["getWorkspaceIngestCoverage"];
4153
4153
  put?: never;
@@ -8268,6 +8268,25 @@ export interface components {
8268
8268
  IngestCoverageAiDetailDto: {
8269
8269
  factFamilies?: components["schemas"]["IngestCoverageFactFamilyDto"][];
8270
8270
  refreshInProgress?: boolean;
8271
+ /**
8272
+ * @description Whether the latest spend compare counts as source-aligned. not_applicable for Claude Team or any tier without per-day canonical spend. unverified when no snapshot exists or canonical backfill is still incomplete. stale when the snapshot is at least 7 days old. insufficient_sample when fewer than 7 complete days were stored. mismatch when provider and stored cents differ beyond tolerance. matched when they agree within tolerance. Productivity, HR, monitoring, and SDLC pipelines omit this field.
8273
+ * @enum {string}
8274
+ */
8275
+ spendReconciliationStatus: "unverified" | "matched" | "mismatch" | "insufficient_sample" | "not_applicable" | "stale";
8276
+ /**
8277
+ * @description Trust for spend. measured only when spendReconciliationStatus is matched. estimated when the status is mismatch, stale, insufficient_sample, or unverified while spend exists. Null when not_applicable or there is no spend to check.
8278
+ * @enum {string|null}
8279
+ */
8280
+ spendDataQuality: "measured" | "estimated" | null;
8281
+ /** @description Provider side of the last compare, in cents. Null when no snapshot cents are shown (not_applicable, unverified, or a thin sample). */
8282
+ providerSpendCents: number | null;
8283
+ /** @description Stored canonical sum of the last compare, in cents. Null when no snapshot cents are shown. */
8284
+ storedSpendCents: number | null;
8285
+ /**
8286
+ * Format: date-time
8287
+ * @description When the spend-reconcile snapshot was written. Null when no snapshot is shown.
8288
+ */
8289
+ spendReconcileCheckedAt: string | null;
8271
8290
  };
8272
8291
  IngestCoverageSdlcComponentDto: {
8273
8292
  /** @enum {string} */
@@ -8925,6 +8944,11 @@ export interface components {
8925
8944
  * @default false
8926
8945
  */
8927
8946
  force: boolean;
8947
+ /**
8948
+ * @description When true, each enqueued knowledge job clones the repository, builds the code graph, marks the index ready, and finishes with wiki tracks skipped. It does not write wiki pages and does not require an execution key. Omit or false to keep the full pipeline, including wiki. Distinct from skipLlm, which still writes a skeleton wiki. A job that is already queued or running keeps the options it was enqueued with.
8949
+ * @default false
8950
+ */
8951
+ indexOnly: boolean;
8928
8952
  };
8929
8953
  CodeChatSyncIndexesResultDto: {
8930
8954
  enqueued: number;