@thinkai/tai-api-contract 2.158.0 → 2.160.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.158.0
4
+ version: 2.160.0
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -5990,11 +5990,22 @@ paths:
5990
5990
  schema:
5991
5991
  $ref: "#/components/schemas/ErrorMessageDto"
5992
5992
  "409":
5993
- description: A queued/running readiness analysis already exists for this repository slug
5993
+ description: >
5994
+ A queued/running readiness analysis already exists for this repository slug
5995
+ (`error: readiness_run_already_active`), or a live GitHub check found the repo
5996
+ archived (`code: repo_archived`). Archived repos are soft-archived as
5997
+ `github_archived` and pending fixes are cancelled.
5994
5998
  content:
5995
5999
  application/json:
5996
6000
  schema:
5997
6001
  $ref: "#/components/schemas/ErrorMessageDto"
6002
+ examples:
6003
+ already_active:
6004
+ value: { error: readiness_run_already_active }
6005
+ repo_archived:
6006
+ value:
6007
+ error: Repository is archived on GitHub
6008
+ code: repo_archived
5998
6009
 
5999
6010
  /workspaces/{workspaceId}/readiness/runs/{runId}:
6000
6011
  get:
@@ -7520,6 +7531,20 @@ paths:
7520
7531
  application/json:
7521
7532
  schema:
7522
7533
  $ref: "#/components/schemas/ErrorMessageDto"
7534
+ "409":
7535
+ description: >
7536
+ Live GitHub check found the repository archived (`code: repo_archived`). The repo is
7537
+ soft-archived as `github_archived` and pending fixes are cancelled with
7538
+ `error_code = repo_archived`.
7539
+ content:
7540
+ application/json:
7541
+ schema:
7542
+ $ref: "#/components/schemas/ErrorMessageDto"
7543
+ examples:
7544
+ repo_archived:
7545
+ value:
7546
+ error: Repository is archived on GitHub
7547
+ code: repo_archived
7523
7548
  "422":
7524
7549
  description: GitHub installation lacks write permissions required for automated fix PRs
7525
7550
  content:
@@ -18366,19 +18391,25 @@ components:
18366
18391
  type: string
18367
18392
  format: date-time
18368
18393
  nullable: true
18369
- description: Set when the repo has been soft-archived (removed from installation or integration disconnected). Null means active.
18394
+ description: Set when the repo has been soft-archived (removed from installation, archived on GitHub, or integration disconnected). Null means active.
18370
18395
  archivedReason:
18371
18396
  type: string
18372
18397
  nullable: true
18373
18398
  enum:
18374
18399
  [
18400
+ github_archived,
18375
18401
  github_removed,
18376
18402
  installation_disconnected,
18377
18403
  installation_replaced,
18378
18404
  superseded,
18379
18405
  user_removed,
18380
18406
  ]
18381
- description: Why the repo was archived. `user_removed` means excluded from Agentic Foundation scope only. Only present when `archivedAt` is set.
18407
+ description: >
18408
+ Why the repo was archived. `github_archived` means the repo is still granted by the
18409
+ GitHub installation but GitHub reports `archived === true` (default sync excludes it).
18410
+ `github_removed` means the slug is no longer in the installation listing.
18411
+ `user_removed` means excluded from Agentic Foundation scope only. Only present when
18412
+ `archivedAt` is set.
18382
18413
  eligibilityStatus:
18383
18414
  type: string
18384
18415
  enum: [eligible, ineligible]
@@ -18594,12 +18625,14 @@ components:
18594
18625
  nullable: true
18595
18626
  enum:
18596
18627
  [
18628
+ github_archived,
18597
18629
  github_removed,
18598
18630
  installation_disconnected,
18599
18631
  installation_replaced,
18600
18632
  superseded,
18601
18633
  user_removed,
18602
18634
  ]
18635
+ description: See RepoReadinessScoreDto.archivedReason.
18603
18636
  eligibilityStatus:
18604
18637
  type: string
18605
18638
  enum: [eligible, ineligible]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.158.0",
3
+ "version": "2.160.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -7790,14 +7790,14 @@ export interface components {
7790
7790
  lastRunErrorDetail?: string | null;
7791
7791
  /**
7792
7792
  * Format: date-time
7793
- * @description Set when the repo has been soft-archived (removed from installation or integration disconnected). Null means active.
7793
+ * @description Set when the repo has been soft-archived (removed from installation, archived on GitHub, or integration disconnected). Null means active.
7794
7794
  */
7795
7795
  archivedAt?: string | null;
7796
7796
  /**
7797
- * @description Why the repo was archived. `user_removed` means excluded from Agentic Foundation scope only. Only present when `archivedAt` is set.
7797
+ * @description Why the repo was archived. `github_archived` means the repo is still granted by the GitHub installation but GitHub reports `archived === true` (default sync excludes it). `github_removed` means the slug is no longer in the installation listing. `user_removed` means excluded from Agentic Foundation scope only. Only present when `archivedAt` is set.
7798
7798
  * @enum {string|null}
7799
7799
  */
7800
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
7800
+ archivedReason?: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
7801
7801
  /**
7802
7802
  * @description Whether the repo can be analyzed (#44/#729). Language support no longer makes a repo `ineligible` — a missing v1-supported stack is surfaced via `warnings` and the repo stays analyzable. It becomes `ineligible` when the most recent scan hit a hard size/file-count limit (e.g. code-size or file-count exceeded): the repo is then restricted here too so this surface matches the GitHub connect list's size gate after the scan. Null until the first sync/scan computes it.
7803
7803
  * @enum {string|null}
@@ -7882,8 +7882,11 @@ export interface components {
7882
7882
  lastRunErrorDetail?: string | null;
7883
7883
  /** Format: date-time */
7884
7884
  archivedAt?: string | null;
7885
- /** @enum {string|null} */
7886
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
7885
+ /**
7886
+ * @description See RepoReadinessScoreDto.archivedReason.
7887
+ * @enum {string|null}
7888
+ */
7889
+ archivedReason?: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
7887
7890
  /**
7888
7891
  * @description See RepoReadinessScoreDto.eligibilityStatus. Language support is advisory (#729) and surfaced via `warnings`.
7889
7892
  * @enum {string|null}
@@ -17523,7 +17526,7 @@ export interface operations {
17523
17526
  "application/json": components["schemas"]["ErrorMessageDto"];
17524
17527
  };
17525
17528
  };
17526
- /** @description A queued/running readiness analysis already exists for this repository slug */
17529
+ /** @description A queued/running readiness analysis already exists for this repository slug (`error: readiness_run_already_active`), or a live GitHub check found the repo archived (`code: repo_archived`). Archived repos are soft-archived as `github_archived` and pending fixes are cancelled. */
17527
17530
  409: {
17528
17531
  headers: {
17529
17532
  [name: string]: unknown;
@@ -19055,6 +19058,15 @@ export interface operations {
19055
19058
  "application/json": components["schemas"]["ErrorMessageDto"];
19056
19059
  };
19057
19060
  };
19061
+ /** @description Live GitHub check found the repository archived (`code: repo_archived`). The repo is soft-archived as `github_archived` and pending fixes are cancelled with `error_code = repo_archived`. */
19062
+ 409: {
19063
+ headers: {
19064
+ [name: string]: unknown;
19065
+ };
19066
+ content: {
19067
+ "application/json": components["schemas"]["ErrorMessageDto"];
19068
+ };
19069
+ };
19058
19070
  /** @description GitHub installation lacks write permissions required for automated fix PRs */
19059
19071
  422: {
19060
19072
  headers: {