@thinkai/tai-api-contract 2.199.0 → 2.200.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 +39 -4
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +44 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +116 -8
- package/package.json +1 -1
- package/src/generated/openapi.ts +39 -4
- package/src/index.ts +55 -1
package/src/index.ts
CHANGED
|
@@ -1457,6 +1457,47 @@ export interface IngestCoverageProductivitySelfHealDto {
|
|
|
1457
1457
|
export type IngestCoverageVerificationStatus =
|
|
1458
1458
|
"unverified" | "verified" | "below_target" | "insufficient_sample" | "stale";
|
|
1459
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* Pipeline-level source reconcile outcome (L2).
|
|
1462
|
+
* Reuses the productivity Source verified statuses and adds `not_applicable`
|
|
1463
|
+
* when a connected provider exposes no countable/checksum reconcile surface.
|
|
1464
|
+
*/
|
|
1465
|
+
export type IngestCoverageSourceReconcileStatus =
|
|
1466
|
+
IngestCoverageVerificationStatus | "not_applicable";
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Which L2 reconcile check produced `sourceReconcile.verificationStatus`.
|
|
1470
|
+
* Maps into L1 `dataTrust.verificationMethod` (`source_count` / `checksum`).
|
|
1471
|
+
*/
|
|
1472
|
+
export type IngestCoverageSourceReconcileMethod = "source_count" | "checksum" | "none";
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Generalized Source verified / reconcile snapshot on a coverage pipeline.
|
|
1476
|
+
* Optional until a scheduled reconciler has written a row. Productivity GitHub
|
|
1477
|
+
* keeps nested `productivity.verificationStatus` / `sourceCapturePercent`;
|
|
1478
|
+
* AI spend stays on `ai.spendReconciliationStatus`.
|
|
1479
|
+
*/
|
|
1480
|
+
export interface IngestCoverageSourceReconcileDto {
|
|
1481
|
+
verificationStatus: IngestCoverageSourceReconcileStatus;
|
|
1482
|
+
/**
|
|
1483
|
+
* Minimum provider-vs-stored capture for a count reconcile (0–100, up to two
|
|
1484
|
+
* decimals). Null when the check is checksum-only, thin, not applicable, or
|
|
1485
|
+
* no sample exists.
|
|
1486
|
+
*/
|
|
1487
|
+
sourceCapturePercent: number | null;
|
|
1488
|
+
verificationMethod: IngestCoverageSourceReconcileMethod;
|
|
1489
|
+
/** When the snapshot was written. Null when status is unverified with no row. */
|
|
1490
|
+
checkedAt: string | null;
|
|
1491
|
+
/** Provider-side count for the reconcile window. Null when unset or N/A. */
|
|
1492
|
+
providerCount: number | null;
|
|
1493
|
+
/** Stored platform count for the reconcile window. Null when unset or N/A. */
|
|
1494
|
+
storedCount: number | null;
|
|
1495
|
+
/** Provider-side checksum (opaque). Null when method is not checksum. */
|
|
1496
|
+
providerChecksum: string | null;
|
|
1497
|
+
/** Stored platform checksum (opaque). Null when method is not checksum. */
|
|
1498
|
+
storedChecksum: string | null;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1460
1501
|
export interface IngestCoverageProductivityDetailDto {
|
|
1461
1502
|
phase?: "recent" | "historical" | "complete" | null;
|
|
1462
1503
|
historicalWeekStart?: string | null;
|
|
@@ -1564,7 +1605,14 @@ export interface IngestCoverageSyncDetailDto {
|
|
|
1564
1605
|
}
|
|
1565
1606
|
|
|
1566
1607
|
export type IngestCoveragePipelineKind =
|
|
1567
|
-
|
|
1608
|
+
| "productivity_github"
|
|
1609
|
+
| "productivity_bitbucket"
|
|
1610
|
+
| "ai_usage"
|
|
1611
|
+
| "sdlc_github"
|
|
1612
|
+
| "monitoring"
|
|
1613
|
+
| "hris"
|
|
1614
|
+
| "jira"
|
|
1615
|
+
| "pagerduty";
|
|
1568
1616
|
|
|
1569
1617
|
export type IngestCoveragePipelineStatus =
|
|
1570
1618
|
"not_started" | "backfilling" | "incremental" | "complete" | "failed" | "in_progress";
|
|
@@ -1628,6 +1676,12 @@ export interface IngestCoveragePipelineDto {
|
|
|
1628
1676
|
ai?: IngestCoverageAiDetailDto;
|
|
1629
1677
|
sdlc?: IngestCoverageSdlcDetailDto;
|
|
1630
1678
|
sync?: IngestCoverageSyncDetailDto;
|
|
1679
|
+
/**
|
|
1680
|
+
* Optional L2 source-reconcile snapshot (count / checksum vs provider API).
|
|
1681
|
+
* Null/omit when no scheduled reconcile has written a row for this pipeline.
|
|
1682
|
+
* Does not replace nested productivity verify fields or AI spend reconcile.
|
|
1683
|
+
*/
|
|
1684
|
+
sourceReconcile?: IngestCoverageSourceReconcileDto | null;
|
|
1631
1685
|
/**
|
|
1632
1686
|
* Always present. Unified Data trust summary for this pipeline.
|
|
1633
1687
|
* Additive to Source verified / Spend matched / Backfill complete.
|