@thinkai/tai-api-contract 2.74.0 → 2.76.0-pr.973.d7782c88

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.
@@ -2466,6 +2466,26 @@ export interface paths {
2466
2466
  patch?: never;
2467
2467
  trace?: never;
2468
2468
  };
2469
+ "/workspaces/{workspaceId}/readiness/issues/{issueId}/fix-guide": {
2470
+ parameters: {
2471
+ query?: never;
2472
+ header?: never;
2473
+ path?: never;
2474
+ cookie?: never;
2475
+ };
2476
+ /**
2477
+ * Get scan-time fix instruction guide (G1–G5)
2478
+ * @description Returns the markdown fix guide written during the latest successful scan for this issue. Applies only to platform-governance criteria **G1–G5** (`guidance` tier). **G6** and other rubrics must use the Automations PR Fix it flow (`POST .../readiness/fixes`). When no guide exists for a legacy run, returns `404` — re-scan the repository to generate instructions.
2479
+ */
2480
+ get: operations["getReadinessIssueFixGuide"];
2481
+ put?: never;
2482
+ post?: never;
2483
+ delete?: never;
2484
+ options?: never;
2485
+ head?: never;
2486
+ patch?: never;
2487
+ trace?: never;
2488
+ };
2469
2489
  "/workspaces/{workspaceId}/cursor/platform-key-consent": {
2470
2490
  parameters: {
2471
2491
  query?: never;
@@ -5935,6 +5955,27 @@ export interface components {
5935
5955
  /** Format: date-time */
5936
5956
  createdAt: string;
5937
5957
  };
5958
+ ReadinessFixGuideDto: {
5959
+ /** Format: uuid */
5960
+ issueId: string;
5961
+ /** Format: uuid */
5962
+ repoId: string;
5963
+ /** @description G1–G5 rubric criterion id */
5964
+ rubricId: string;
5965
+ /**
5966
+ * Format: uuid
5967
+ * @description Readiness scan run that produced this guide
5968
+ */
5969
+ sourceRunId: string;
5970
+ /** @enum {string} */
5971
+ status: "ready" | "failed";
5972
+ /** @description Sanitized markdown body including server-appended Re-scan section */
5973
+ markdown: string;
5974
+ /** @description Human-readable criterion label for page chrome */
5975
+ criterionTitle: string;
5976
+ /** @description Present when status is failed (guide assembly error at scan time) */
5977
+ errorDetail?: string | null;
5978
+ };
5938
5979
  /**
5939
5980
  * @description Transient failure codes. Use the retrigger endpoint to start a fresh fix request. `processor_error` — unexpected internal failure; safe to retrigger after checking batch-runner logs.
5940
5981
  * @enum {string}
@@ -6753,6 +6794,8 @@ export interface components {
6753
6794
  team: string;
6754
6795
  spendUsd: number;
6755
6796
  mergedPrs: number;
6797
+ /** @description True when the engineer is a GitHub contributor not mapped to an org-chart team. */
6798
+ isUnmapped?: boolean;
6756
6799
  };
6757
6800
  InsightsRecommendationsRoiQuadrant: {
6758
6801
  medianSpendUsd: number;
@@ -6932,6 +6975,8 @@ export interface components {
6932
6975
  /** @description Privacy request id (`tai_privacy_requests.id`). */
6933
6976
  PrivacyRequestId: string;
6934
6977
  FixId: string;
6978
+ /** @description Readiness issue id (`tai_workspace_repo_issues.id`). */
6979
+ ReadinessIssueId: string;
6935
6980
  /** @description Productivity insights time range. Daily windows: `7d`, `30d`, `90d`, `180d`, or custom `cr:YYYY-MM-DD:YYYY-MM-DD`. Weekly legacy: `4w`, `8w`, `q` (12 weeks), `12w`, `16w`. Omit when using explicit `from`/`to` day bounds. */
6936
6981
  InsightsProductivityRangeId: string;
6937
6982
  /** @description Inclusive start of a daily window (`YYYY-MM-DD`). When set with `to`, overrides `rangeId` for day-mode responses (max 180 days). */
@@ -7221,6 +7266,7 @@ export type ReadinessFixStatusSummaryDto = components['schemas']['ReadinessFixSt
7221
7266
  export type GithubInstalledRepoListDto = components['schemas']['GithubInstalledRepoListDto'];
7222
7267
  export type AgenticFoundationDashboardDto = components['schemas']['AgenticFoundationDashboardDto'];
7223
7268
  export type FixRequestDto = components['schemas']['FixRequestDto'];
7269
+ export type ReadinessFixGuideDto = components['schemas']['ReadinessFixGuideDto'];
7224
7270
  export type FixRetryableErrorCode = components['schemas']['FixRetryableErrorCode'];
7225
7271
  export type FixNonRetryableErrorCode = components['schemas']['FixNonRetryableErrorCode'];
7226
7272
  export type CreateFixRequestBodyDto = components['schemas']['CreateFixRequestBodyDto'];
@@ -7350,6 +7396,7 @@ export type ParameterWorkspaceMemberId = components['parameters']['WorkspaceMemb
7350
7396
  export type ParameterWorkspaceInvitationToken = components['parameters']['WorkspaceInvitationToken'];
7351
7397
  export type ParameterPrivacyRequestId = components['parameters']['PrivacyRequestId'];
7352
7398
  export type ParameterFixId = components['parameters']['FixId'];
7399
+ export type ParameterReadinessIssueId = components['parameters']['ReadinessIssueId'];
7353
7400
  export type ParameterInsightsProductivityRangeId = components['parameters']['InsightsProductivityRangeId'];
7354
7401
  export type ParameterInsightsProductivityFrom = components['parameters']['InsightsProductivityFrom'];
7355
7402
  export type ParameterInsightsProductivityTo = components['parameters']['InsightsProductivityTo'];
@@ -13903,6 +13950,50 @@ export interface operations {
13903
13950
  };
13904
13951
  };
13905
13952
  };
13953
+ getReadinessIssueFixGuide: {
13954
+ parameters: {
13955
+ query?: never;
13956
+ header?: never;
13957
+ path: {
13958
+ workspaceId: components["parameters"]["WorkspaceId"];
13959
+ /** @description Readiness issue id (`tai_workspace_repo_issues.id`). */
13960
+ issueId: components["parameters"]["ReadinessIssueId"];
13961
+ };
13962
+ cookie?: never;
13963
+ };
13964
+ requestBody?: never;
13965
+ responses: {
13966
+ /** @description Fix instruction guide */
13967
+ 200: {
13968
+ headers: {
13969
+ [name: string]: unknown;
13970
+ };
13971
+ content: {
13972
+ "application/json": components["schemas"]["ReadinessFixGuideDto"];
13973
+ };
13974
+ };
13975
+ /** @description Issue rubric is not G1–G5 (use PR Fix it for G6 and other criteria) */
13976
+ 400: {
13977
+ headers: {
13978
+ [name: string]: unknown;
13979
+ };
13980
+ content: {
13981
+ "application/json": components["schemas"]["ErrorMessageDto"];
13982
+ };
13983
+ };
13984
+ 401: components["responses"]["Unauthorized"];
13985
+ 403: components["responses"]["Forbidden"];
13986
+ /** @description Issue not found, or no guide for the latest scan (re-scan to generate) */
13987
+ 404: {
13988
+ headers: {
13989
+ [name: string]: unknown;
13990
+ };
13991
+ content: {
13992
+ "application/json": components["schemas"]["ErrorMessageDto"];
13993
+ };
13994
+ };
13995
+ };
13996
+ };
13906
13997
  putCursorPlatformKeyConsent: {
13907
13998
  parameters: {
13908
13999
  query?: never;