@thinkai/tai-api-contract 2.139.0 → 2.141.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 +23 -2
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +66 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +23 -2
- package/src/index.ts +27 -0
|
@@ -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;
|
|
@@ -4875,8 +4875,10 @@ export interface components {
|
|
|
4875
4875
|
codeWikiGuidance?: components["schemas"]["CodeWikiGuidanceDto"];
|
|
4876
4876
|
};
|
|
4877
4877
|
DeliveryRoleConfigDto: {
|
|
4878
|
-
/** @description
|
|
4878
|
+
/** @description First connected workspace repo (`owner/repo`) that holds this kind of evidence. Kept so a saved single-repo role still reads. Same value as `providerSlugs[0]`. */
|
|
4879
4879
|
providerSlug: string;
|
|
4880
|
+
/** @description Connected repos that hold this kind of evidence. When omitted, `providerSlug` is read as a one-element list. An explicit list replaces Auto for that kind. */
|
|
4881
|
+
providerSlugs?: string[];
|
|
4880
4882
|
/**
|
|
4881
4883
|
* @description IaC engine hint (terraform role only).
|
|
4882
4884
|
* @enum {string}
|
|
@@ -8266,6 +8268,25 @@ export interface components {
|
|
|
8266
8268
|
IngestCoverageAiDetailDto: {
|
|
8267
8269
|
factFamilies?: components["schemas"]["IngestCoverageFactFamilyDto"][];
|
|
8268
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;
|
|
8269
8290
|
};
|
|
8270
8291
|
IngestCoverageSdlcComponentDto: {
|
|
8271
8292
|
/** @enum {string} */
|