@thinkai/tai-api-contract 2.103.0 → 2.105.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.
@@ -2331,6 +2331,26 @@ export interface paths {
2331
2331
  patch?: never;
2332
2332
  trace?: never;
2333
2333
  };
2334
+ "/workspaces/{workspaceId}/readiness/score-history/average": {
2335
+ parameters: {
2336
+ query?: never;
2337
+ header?: never;
2338
+ path?: never;
2339
+ cookie?: never;
2340
+ };
2341
+ /**
2342
+ * Workspace-average readiness score time-series
2343
+ * @description Returns pre-aggregated workspace-average readiness scores over time, aligned with agentic-foundation `summary.averageOverallScore`. Each point reflects the mean of each repo's latest succeeded run score over **totalRepoCount** (unscanned repos count as 0%). Per-repo input runs are loaded without applying `since` so repos scanned before the window still contribute carry-forward scores; `since` filters **returned** points only. Appends a final point from the live dashboard summary when the current average differs from the last visible point (or when the filtered window is empty). `limitPerRepo` bounds how many succeeded runs per repo are considered when building the series.
2344
+ */
2345
+ get: operations["getReadinessAverageScoreHistory"];
2346
+ put?: never;
2347
+ post?: never;
2348
+ delete?: never;
2349
+ options?: never;
2350
+ head?: never;
2351
+ patch?: never;
2352
+ trace?: never;
2353
+ };
2334
2354
  "/workspaces/{workspaceId}/agentic-foundation/repo-scope": {
2335
2355
  parameters: {
2336
2356
  query?: never;
@@ -6351,6 +6371,10 @@ export interface components {
6351
6371
  /** @description Per-criterion status counts from the latest successful scan */
6352
6372
  criteriaSummary?: components["schemas"]["ReadinessCriteriaSummaryDto"] | null;
6353
6373
  issues: components["schemas"]["ReadinessIssueDto"][];
6374
+ /** @description Count of issues with fixStatus=open. Prefer over scanning issues[] on list projections. */
6375
+ openIssueCount?: number;
6376
+ /** @description Open issues with severity=critical. */
6377
+ criticalOpenIssueCount?: number;
6354
6378
  };
6355
6379
  DimensionScoreDetailDto: {
6356
6380
  dimensionId: components["schemas"]["ReadinessDimensionId"];
@@ -6365,6 +6389,10 @@ export interface components {
6365
6389
  /** @description Individual rubric criterion outcomes from the latest successful scan. Always present on the single-repo detail endpoint; empty array when no scan has completed yet for this dimension. */
6366
6390
  criteriaDetails: components["schemas"]["CriterionDetailDto"][];
6367
6391
  issues: components["schemas"]["ReadinessIssueDto"][];
6392
+ /** @description Count of issues with fixStatus=open. */
6393
+ openIssueCount?: number;
6394
+ /** @description Open issues with severity=critical. */
6395
+ criticalOpenIssueCount?: number;
6368
6396
  };
6369
6397
  ReadinessRepoRunHistoryItemDto: {
6370
6398
  /** Format: uuid */
@@ -6415,6 +6443,16 @@ export interface components {
6415
6443
  generatedAt: string;
6416
6444
  repos: components["schemas"]["ReadinessRepoScoreHistoryDto"][];
6417
6445
  };
6446
+ WorkspaceAverageReadinessScoreHistoryDto: {
6447
+ /** Format: uuid */
6448
+ workspaceId: string;
6449
+ /** Format: date-time */
6450
+ generatedAt: string;
6451
+ /** @description All non-archived repos in the workspace (denominator for average; unscored repos count as 0%). */
6452
+ totalRepoCount: number;
6453
+ /** @description Workspace-average score after each scan event, ascending by `finishedAt`. May include a final point from the live dashboard summary. */
6454
+ points: components["schemas"]["ReadinessScoreHistoryPointDto"][];
6455
+ };
6418
6456
  RepoReadinessScoreDto: {
6419
6457
  /** Format: uuid */
6420
6458
  repoId: string;
@@ -8649,6 +8687,7 @@ export type ReadinessScoreHistoryDimensionScoreDto = components['schemas']['Read
8649
8687
  export type ReadinessScoreHistoryPointDto = components['schemas']['ReadinessScoreHistoryPointDto'];
8650
8688
  export type ReadinessRepoScoreHistoryDto = components['schemas']['ReadinessRepoScoreHistoryDto'];
8651
8689
  export type WorkspaceReadinessScoreHistoryDto = components['schemas']['WorkspaceReadinessScoreHistoryDto'];
8690
+ export type WorkspaceAverageReadinessScoreHistoryDto = components['schemas']['WorkspaceAverageReadinessScoreHistoryDto'];
8652
8691
  export type RepoReadinessScoreDto = components['schemas']['RepoReadinessScoreDto'];
8653
8692
  export type LinkedRolePendingDto = components['schemas']['LinkedRolePendingDto'];
8654
8693
  export type LinkedRoleAssessmentDto = components['schemas']['LinkedRoleAssessmentDto'];
@@ -15015,6 +15054,61 @@ export interface operations {
15015
15054
  };
15016
15055
  };
15017
15056
  };
15057
+ getReadinessAverageScoreHistory: {
15058
+ parameters: {
15059
+ query?: {
15060
+ /** @description ISO-8601 lower bound on returned point `finishedAt` (inclusive). Per-repo input runs are loaded without this filter so scores established before the window still contribute to aggregation. */
15061
+ since?: string;
15062
+ limitPerRepo?: number;
15063
+ };
15064
+ header?: never;
15065
+ path: {
15066
+ workspaceId: components["parameters"]["WorkspaceId"];
15067
+ };
15068
+ cookie?: never;
15069
+ };
15070
+ requestBody?: never;
15071
+ responses: {
15072
+ /** @description Workspace-average score history */
15073
+ 200: {
15074
+ headers: {
15075
+ [name: string]: unknown;
15076
+ };
15077
+ content: {
15078
+ "application/json": components["schemas"]["WorkspaceAverageReadinessScoreHistoryDto"];
15079
+ };
15080
+ };
15081
+ /** @description Invalid query */
15082
+ 400: {
15083
+ headers: {
15084
+ [name: string]: unknown;
15085
+ };
15086
+ content: {
15087
+ "application/json": components["schemas"]["ErrorMessageDto"];
15088
+ };
15089
+ };
15090
+ 401: components["responses"]["Unauthorized"];
15091
+ 403: components["responses"]["Forbidden"];
15092
+ /** @description Workspace does not exist */
15093
+ 404: {
15094
+ headers: {
15095
+ [name: string]: unknown;
15096
+ };
15097
+ content: {
15098
+ "application/json": components["schemas"]["ErrorMessageDto"];
15099
+ };
15100
+ };
15101
+ /** @description Readiness score history or dashboard summary not supported */
15102
+ 501: {
15103
+ headers: {
15104
+ [name: string]: unknown;
15105
+ };
15106
+ content: {
15107
+ "application/json": components["schemas"]["ErrorMessageDto"];
15108
+ };
15109
+ };
15110
+ };
15111
+ };
15018
15112
  putAgenticFoundationRepoScope: {
15019
15113
  parameters: {
15020
15114
  query?: never;