@thinkai/tai-api-contract 2.212.0 → 2.214.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 +18 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +44 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +18 -1
- package/src/index.ts +17 -0
|
@@ -11236,6 +11236,18 @@ export interface components {
|
|
|
11236
11236
|
depthScan: components["schemas"]["IngestCoverageProductivityDepthScanDto"];
|
|
11237
11237
|
weekReconcile: components["schemas"]["IngestCoverageProductivityWeekReconcileDto"];
|
|
11238
11238
|
};
|
|
11239
|
+
/** @description Post-ingest ship-weight scoring progress for org-ledger GitHub PRs. Additive to Backfill complete, Source verified, and Data trust — does not change pipeline status. Aligns with Home Ship weight BACKFILLING (pendingCount > 0). */
|
|
11240
|
+
IngestCoverageShipWeightScoringDto: {
|
|
11241
|
+
/**
|
|
11242
|
+
* @description up_to_date when no GitHub ledger PRs in the window lack shipWeight; in_progress when pendingCount > 0.
|
|
11243
|
+
* @enum {string}
|
|
11244
|
+
*/
|
|
11245
|
+
status: "up_to_date" | "in_progress";
|
|
11246
|
+
/** @description Distinct org-ledger GitHub merged PRs in the window still missing shipWeight. */
|
|
11247
|
+
pendingCount: number;
|
|
11248
|
+
/** @description Inclusive calendar-day window ending today (UTC), matching Home ship-weight KPIs (30). */
|
|
11249
|
+
windowDays: number;
|
|
11250
|
+
};
|
|
11239
11251
|
IngestCoverageProductivityDetailDto: {
|
|
11240
11252
|
/** @enum {string|null} */
|
|
11241
11253
|
phase?: "recent" | "historical" | "complete" | null;
|
|
@@ -11244,9 +11256,13 @@ export interface components {
|
|
|
11244
11256
|
skippedRepoCount?: number;
|
|
11245
11257
|
failedRepoCount?: number;
|
|
11246
11258
|
coveragePercent?: number | null;
|
|
11259
|
+
/** @description Full repository count before the `repos` array is capped (500). When greater than `repos.length`, the list is truncated for the response. */
|
|
11260
|
+
totalRepoCount?: number;
|
|
11247
11261
|
repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
|
|
11248
11262
|
/** @description Latest depth-scan and week-reconcile summary from stored activity rows. Null when neither event exists. The coverage GET does not run a scan. */
|
|
11249
11263
|
selfHeal?: components["schemas"]["IngestCoverageProductivitySelfHealDto"] | null;
|
|
11264
|
+
/** @description Org-ledger ship-weight scoring for the Home-aligned window. Null when metrics cannot be loaded. Separate from productivity backfill phase / Backfill complete. */
|
|
11265
|
+
shipWeightScoring?: components["schemas"]["IngestCoverageShipWeightScoringDto"] | null;
|
|
11250
11266
|
/**
|
|
11251
11267
|
* @description Whether the latest depth-scan sample counts as source-verified. unverified when phase is not complete or no depth scan has completed. stale when phase is complete and the scan is at least 7 days old. insufficient_sample when a fresh scan has no usable GitHub merge count. below_target when that fresh minimum capture is under 90. verified when it is 90 or higher. Other pipeline kinds omit this field.
|
|
11252
11268
|
* @enum {string}
|
|
@@ -11391,7 +11407,7 @@ export interface components {
|
|
|
11391
11407
|
targetWindowDays: number;
|
|
11392
11408
|
ingestedFrom?: string | null;
|
|
11393
11409
|
ingestedTo?: string | null;
|
|
11394
|
-
/** @description Productivity: stored merged pull requests divided by merged pull requests GitHub has in the 180-day window. Sums the latest numeric check of each repository. A check with 0 stored and 0 on GitHub counts as covered and does not change the ratio. 100 when every checked repository is in that state. Null when no repository has a numeric check. Other pipeline kinds keep their own progress meaning. */
|
|
11410
|
+
/** @description Productivity: stored merged pull requests divided by merged pull requests GitHub has in the 180-day window. Sums the latest numeric check of each repository. A check with 0 stored and 0 on GitHub counts as covered and does not change the ratio. 100 when every checked repository is in that state. Null when no repository has a numeric check. AI usage: lookback window fill (days present / expected days), including after backfill closes; while Cursor spend backfill is open may use the spend cursor instead. Null when no expected window exists yet. Other pipeline kinds keep their own progress meaning. */
|
|
11395
11411
|
progressPercent?: number | null;
|
|
11396
11412
|
/** Format: date-time */
|
|
11397
11413
|
lastSuccessAt?: string | null;
|
|
@@ -14224,6 +14240,7 @@ export type ProductivityDualVcsCutoverPatchDto = components['schemas']['Producti
|
|
|
14224
14240
|
export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
|
|
14225
14241
|
export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
|
|
14226
14242
|
export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
|
|
14243
|
+
export type IngestCoverageShipWeightScoringDto = components['schemas']['IngestCoverageShipWeightScoringDto'];
|
|
14227
14244
|
export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
|
|
14228
14245
|
export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
|
|
14229
14246
|
export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
|