@thinkai/tai-api-contract 2.92.0 → 2.93.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 +50 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +97 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +50 -0
- package/src/index.ts +34 -0
|
@@ -4229,6 +4229,10 @@ export interface components {
|
|
|
4229
4229
|
*/
|
|
4230
4230
|
date: string;
|
|
4231
4231
|
mergedPrCount: number;
|
|
4232
|
+
/** @description Sum of ship-weight scores for PRs merged on this day. */
|
|
4233
|
+
shipWeightSum?: number;
|
|
4234
|
+
/** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
|
|
4235
|
+
shipWeightPendingCount?: number;
|
|
4232
4236
|
/** @description GitHub Actions CI build failures on this day from `ciFailureRuns` ledger when CI ingest is enabled. */
|
|
4233
4237
|
ciFailuresCount?: number;
|
|
4234
4238
|
/** @description Mean hours from PR creation to first review for PRs merged on this day. */
|
|
@@ -4248,6 +4252,10 @@ export interface components {
|
|
|
4248
4252
|
/** @description Short label for the week column (MM/DD), aligned with Measure charts. */
|
|
4249
4253
|
weekLabel?: string;
|
|
4250
4254
|
mergedPrCount: number;
|
|
4255
|
+
/** @description Sum of ship-weight scores for PRs merged in this week bucket. */
|
|
4256
|
+
shipWeightSum?: number;
|
|
4257
|
+
/** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
|
|
4258
|
+
shipWeightPendingCount?: number;
|
|
4251
4259
|
/** @description DORA change failure rate (deployments/incidents), not CI build failures. */
|
|
4252
4260
|
failRatePercent: number;
|
|
4253
4261
|
/** @description GitHub Actions / Checks CI build failure rate for the week bucket (failed runs / (failed + passed) * 100). Zero when GitHub Actions CI is disabled. */
|
|
@@ -4308,6 +4316,10 @@ export interface components {
|
|
|
4308
4316
|
/** @description Short label for the week column (MM/DD), aligned with Measure charts. */
|
|
4309
4317
|
weekLabel?: string;
|
|
4310
4318
|
mergedPrCount: number;
|
|
4319
|
+
/** @description Sum of ship-weight scores for PRs merged in this week bucket. */
|
|
4320
|
+
shipWeightSum?: number;
|
|
4321
|
+
/** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
|
|
4322
|
+
shipWeightPendingCount?: number;
|
|
4311
4323
|
};
|
|
4312
4324
|
ProductivityInsightsMergedPrContributorRowDto: {
|
|
4313
4325
|
/** @description Canonical person identifier (matches org chart person_id / employeeId). */
|
|
@@ -4357,6 +4369,8 @@ export interface components {
|
|
|
4357
4369
|
subtitle?: string;
|
|
4358
4370
|
/** @description Average weekly merged PR count over the selected range. */
|
|
4359
4371
|
periodAvgMergedPrs: number;
|
|
4372
|
+
/** @description Average weekly ship-weight sum over the selected range. */
|
|
4373
|
+
periodAvgShipWeight?: number;
|
|
4360
4374
|
/** @description Average change failure rate over the range when available. */
|
|
4361
4375
|
avgFailRatePercent?: number;
|
|
4362
4376
|
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
@@ -4364,7 +4378,13 @@ export interface components {
|
|
|
4364
4378
|
};
|
|
4365
4379
|
ProductivityInsightsTeamSummaryDto: {
|
|
4366
4380
|
totalMergedPrs: number;
|
|
4381
|
+
/** @description Sum of ship-weight scores for merged PRs over the selected range. */
|
|
4382
|
+
totalShipWeight?: number;
|
|
4383
|
+
/** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
|
|
4384
|
+
shipWeightBackfillPending?: boolean;
|
|
4367
4385
|
avgMergedPrsPerWeek: number;
|
|
4386
|
+
/** @description Mean weekly ship-weight sum over the selected range. */
|
|
4387
|
+
avgShipWeightPerWeek?: number;
|
|
4368
4388
|
/** @description Average DORA change failure rate over the range when available. */
|
|
4369
4389
|
avgFailRatePercent: number;
|
|
4370
4390
|
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
@@ -4434,6 +4454,10 @@ export interface components {
|
|
|
4434
4454
|
date: string;
|
|
4435
4455
|
dayIndex: number;
|
|
4436
4456
|
mergedPrCount: number;
|
|
4457
|
+
/** @description Sum of ship-weight scores for PRs merged on this day. */
|
|
4458
|
+
shipWeightSum?: number;
|
|
4459
|
+
/** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
|
|
4460
|
+
shipWeightPendingCount?: number;
|
|
4437
4461
|
mergedPrs: string[];
|
|
4438
4462
|
absent: boolean;
|
|
4439
4463
|
absenceType?: string;
|
|
@@ -4470,14 +4494,24 @@ export interface components {
|
|
|
4470
4494
|
};
|
|
4471
4495
|
ProductivityInsightsContributorActivitySummaryDto: {
|
|
4472
4496
|
totalMergedPrs: number;
|
|
4497
|
+
/** @description Sum of ship-weight scores for merged PRs over the selected range. */
|
|
4498
|
+
totalShipWeight?: number;
|
|
4499
|
+
/** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
|
|
4500
|
+
shipWeightBackfillPending?: boolean;
|
|
4473
4501
|
avgMergedPrsPerWeek: number;
|
|
4502
|
+
/** @description Mean weekly ship-weight sum over the selected range. */
|
|
4503
|
+
avgShipWeightPerWeek?: number;
|
|
4474
4504
|
totalAbsenceDays: number;
|
|
4475
4505
|
/** @description CI failure rate (%) over the selected range when GitHub Actions CI ingest is enabled (failures / runs × 100); otherwise average DORA change failure rate when available. */
|
|
4476
4506
|
avgFailRate: number;
|
|
4477
4507
|
/** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
|
|
4478
4508
|
avgCiFailRate?: number;
|
|
4479
4509
|
mergedPrDelta: number;
|
|
4510
|
+
/** @description Change in total ship-weight sum vs the prior comparison window. */
|
|
4511
|
+
shipWeightDelta?: number;
|
|
4480
4512
|
avgMergedPrsPerWeekDelta: number;
|
|
4513
|
+
/** @description Change in mean weekly ship-weight sum vs the prior comparison window. */
|
|
4514
|
+
avgShipWeightPerWeekDelta?: number;
|
|
4481
4515
|
totalAbsenceDaysDelta: number;
|
|
4482
4516
|
avgFailRateDelta: number;
|
|
4483
4517
|
/** @description Change in average CI build failure rate vs the prior comparison window. */
|
|
@@ -4524,6 +4558,8 @@ export interface components {
|
|
|
4524
4558
|
subtitle?: string;
|
|
4525
4559
|
/** @description Mean weekly merged PR count across the selected range. */
|
|
4526
4560
|
periodAvgMergedPrs: number;
|
|
4561
|
+
/** @description Mean weekly ship-weight sum across the selected range. */
|
|
4562
|
+
periodAvgShipWeight?: number;
|
|
4527
4563
|
/** @description Mean weekly change-failure rate when available. */
|
|
4528
4564
|
avgFailRatePercent?: number;
|
|
4529
4565
|
/** @description Mean weekly GitHub Actions CI build failure rate when CI ingest is enabled. */
|
|
@@ -4883,6 +4919,10 @@ export interface components {
|
|
|
4883
4919
|
date: string;
|
|
4884
4920
|
dayLabel?: string;
|
|
4885
4921
|
mergedPrCount: number;
|
|
4922
|
+
/** @description Sum of ship-weight scores for PRs merged on this day. */
|
|
4923
|
+
shipWeightSum?: number;
|
|
4924
|
+
/** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
|
|
4925
|
+
shipWeightPendingCount?: number;
|
|
4886
4926
|
tokenCount: number;
|
|
4887
4927
|
};
|
|
4888
4928
|
AiUsageSpendRoiProductivitySignalWeekDto: {
|
|
@@ -4893,6 +4933,10 @@ export interface components {
|
|
|
4893
4933
|
weekLabel?: string;
|
|
4894
4934
|
/** @description Estimated merged PR count in the bucket from dashboard velocity metrics. */
|
|
4895
4935
|
mergedPrCount: number;
|
|
4936
|
+
/** @description Sum of ship-weight scores for PRs merged in this week bucket. */
|
|
4937
|
+
shipWeightSum?: number;
|
|
4938
|
+
/** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
|
|
4939
|
+
shipWeightPendingCount?: number;
|
|
4896
4940
|
/** @description Total AI-tool tokens consumed in the bucket. */
|
|
4897
4941
|
tokenCount: number;
|
|
4898
4942
|
};
|
|
@@ -4915,6 +4959,8 @@ export interface components {
|
|
|
4915
4959
|
/** Format: date-time */
|
|
4916
4960
|
generatedAt: string;
|
|
4917
4961
|
totalMergedPrs: number;
|
|
4962
|
+
/** @description Sum of ship-weight scores for merged PRs over the selected range. */
|
|
4963
|
+
totalShipWeight?: number;
|
|
4918
4964
|
totalSpendCents: number;
|
|
4919
4965
|
activeUsers: number;
|
|
4920
4966
|
totalEngineers: number;
|
|
@@ -6786,6 +6832,10 @@ export interface components {
|
|
|
6786
6832
|
bucketEnd: string;
|
|
6787
6833
|
weekLabel: string;
|
|
6788
6834
|
mergedPrCount: number;
|
|
6835
|
+
/** @description Sum of ship-weight scores for PRs merged in this week bucket. */
|
|
6836
|
+
shipWeightSum?: number;
|
|
6837
|
+
/** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
|
|
6838
|
+
shipWeightPendingCount?: number;
|
|
6789
6839
|
tokenCount: number;
|
|
6790
6840
|
};
|
|
6791
6841
|
YourAiJourneyAiSpendDto: {
|