@thinkai/tai-api-contract 2.104.0 → 2.106.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;
@@ -6423,6 +6443,16 @@ export interface components {
6423
6443
  generatedAt: string;
6424
6444
  repos: components["schemas"]["ReadinessRepoScoreHistoryDto"][];
6425
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
+ };
6426
6456
  RepoReadinessScoreDto: {
6427
6457
  /** Format: uuid */
6428
6458
  repoId: string;
@@ -8412,6 +8442,8 @@ export interface components {
8412
8442
  ReadinessFixStatusFilter: "queued" | "generating" | "pr-created" | "merged" | "failed";
8413
8443
  /** @description Filter fixes to a single workspace repository id. */
8414
8444
  ReadinessFixRepoIdFilter: string;
8445
+ /** @description Filter fixes to specific readiness issue ids (repeat param or comma-separated UUIDs). At most 100 ids per request. Omitted = no issue-id filter. */
8446
+ ReadinessFixIssueIdsFilter: string[];
8415
8447
  /** @description Case-insensitive filter on repo name, issue title, label, or description. */
8416
8448
  ReadinessFixSearch: string;
8417
8449
  /** @description Page size for the nested installation repo list (default 25, max 100). */
@@ -8657,6 +8689,7 @@ export type ReadinessScoreHistoryDimensionScoreDto = components['schemas']['Read
8657
8689
  export type ReadinessScoreHistoryPointDto = components['schemas']['ReadinessScoreHistoryPointDto'];
8658
8690
  export type ReadinessRepoScoreHistoryDto = components['schemas']['ReadinessRepoScoreHistoryDto'];
8659
8691
  export type WorkspaceReadinessScoreHistoryDto = components['schemas']['WorkspaceReadinessScoreHistoryDto'];
8692
+ export type WorkspaceAverageReadinessScoreHistoryDto = components['schemas']['WorkspaceAverageReadinessScoreHistoryDto'];
8660
8693
  export type RepoReadinessScoreDto = components['schemas']['RepoReadinessScoreDto'];
8661
8694
  export type LinkedRolePendingDto = components['schemas']['LinkedRolePendingDto'];
8662
8695
  export type LinkedRoleAssessmentDto = components['schemas']['LinkedRoleAssessmentDto'];
@@ -8889,6 +8922,7 @@ export type ParameterReadinessRepoLanguage = components['parameters']['Readiness
8889
8922
  export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
8890
8923
  export type ParameterReadinessFixStatusFilter = components['parameters']['ReadinessFixStatusFilter'];
8891
8924
  export type ParameterReadinessFixRepoIdFilter = components['parameters']['ReadinessFixRepoIdFilter'];
8925
+ export type ParameterReadinessFixIssueIdsFilter = components['parameters']['ReadinessFixIssueIdsFilter'];
8892
8926
  export type ParameterReadinessFixSearch = components['parameters']['ReadinessFixSearch'];
8893
8927
  export type ParameterGithubRepoLimit = components['parameters']['GithubRepoLimit'];
8894
8928
  export type ParameterGithubRepoOffset = components['parameters']['GithubRepoOffset'];
@@ -15023,6 +15057,61 @@ export interface operations {
15023
15057
  };
15024
15058
  };
15025
15059
  };
15060
+ getReadinessAverageScoreHistory: {
15061
+ parameters: {
15062
+ query?: {
15063
+ /** @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. */
15064
+ since?: string;
15065
+ limitPerRepo?: number;
15066
+ };
15067
+ header?: never;
15068
+ path: {
15069
+ workspaceId: components["parameters"]["WorkspaceId"];
15070
+ };
15071
+ cookie?: never;
15072
+ };
15073
+ requestBody?: never;
15074
+ responses: {
15075
+ /** @description Workspace-average score history */
15076
+ 200: {
15077
+ headers: {
15078
+ [name: string]: unknown;
15079
+ };
15080
+ content: {
15081
+ "application/json": components["schemas"]["WorkspaceAverageReadinessScoreHistoryDto"];
15082
+ };
15083
+ };
15084
+ /** @description Invalid query */
15085
+ 400: {
15086
+ headers: {
15087
+ [name: string]: unknown;
15088
+ };
15089
+ content: {
15090
+ "application/json": components["schemas"]["ErrorMessageDto"];
15091
+ };
15092
+ };
15093
+ 401: components["responses"]["Unauthorized"];
15094
+ 403: components["responses"]["Forbidden"];
15095
+ /** @description Workspace does not exist */
15096
+ 404: {
15097
+ headers: {
15098
+ [name: string]: unknown;
15099
+ };
15100
+ content: {
15101
+ "application/json": components["schemas"]["ErrorMessageDto"];
15102
+ };
15103
+ };
15104
+ /** @description Readiness score history or dashboard summary not supported */
15105
+ 501: {
15106
+ headers: {
15107
+ [name: string]: unknown;
15108
+ };
15109
+ content: {
15110
+ "application/json": components["schemas"]["ErrorMessageDto"];
15111
+ };
15112
+ };
15113
+ };
15114
+ };
15026
15115
  putAgenticFoundationRepoScope: {
15027
15116
  parameters: {
15028
15117
  query?: never;
@@ -15716,6 +15805,8 @@ export interface operations {
15716
15805
  status?: components["parameters"]["ReadinessFixStatusFilter"];
15717
15806
  /** @description Filter fixes to a single workspace repository id. */
15718
15807
  repoId?: components["parameters"]["ReadinessFixRepoIdFilter"];
15808
+ /** @description Filter fixes to specific readiness issue ids (repeat param or comma-separated UUIDs). At most 100 ids per request. Omitted = no issue-id filter. */
15809
+ issueIds?: components["parameters"]["ReadinessFixIssueIdsFilter"];
15719
15810
  };
15720
15811
  header?: never;
15721
15812
  path: {
@@ -15734,7 +15825,7 @@ export interface operations {
15734
15825
  "application/json": components["schemas"]["ReadinessFixListDto"];
15735
15826
  };
15736
15827
  };
15737
- /** @description Invalid pagination or sort query */
15828
+ /** @description Invalid pagination, sort, or issueIds query */
15738
15829
  400: {
15739
15830
  headers: {
15740
15831
  [name: string]: unknown;