@thinkai/tai-api-contract 2.102.0 → 2.104.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.102.0
4
+ version: 2.104.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}/...`.
@@ -9504,6 +9504,14 @@ components:
9504
9504
  readinessAnonymize:
9505
9505
  type: boolean
9506
9506
  description: Clear `requested_by_user_id` on readiness runs for matching app users.
9507
+ codeChat:
9508
+ type: boolean
9509
+ description: >
9510
+ Delete Engineering Context Graph / Code Chat threads for matching app users
9511
+ in the workspace (messages cascade).
9512
+ codeKnowledgeAnonymize:
9513
+ type: boolean
9514
+ description: Clear `requested_by_user_id` on code-knowledge jobs for matching app users.
9507
9515
 
9508
9516
  EraseInsightsPersonResultDto:
9509
9517
  type: object
@@ -9526,6 +9534,12 @@ components:
9526
9534
  readinessRunsAnonymized:
9527
9535
  type: integer
9528
9536
  minimum: 0
9537
+ codeChatThreadsDeleted:
9538
+ type: integer
9539
+ minimum: 0
9540
+ codeKnowledgeJobsAnonymized:
9541
+ type: integer
9542
+ minimum: 0
9529
9543
  auditEntriesAnonymized:
9530
9544
  type: integer
9531
9545
  minimum: 0
@@ -13290,6 +13304,10 @@ components:
13290
13304
  type: boolean
13291
13305
  readinessAnonymize:
13292
13306
  type: boolean
13307
+ codeChat:
13308
+ type: boolean
13309
+ codeKnowledgeAnonymize:
13310
+ type: boolean
13293
13311
 
13294
13312
  PrivacyRequestPersonErasureResultDto:
13295
13313
  type: object
@@ -13303,6 +13321,10 @@ components:
13303
13321
  type: integer
13304
13322
  readinessRunsAnonymized:
13305
13323
  type: integer
13324
+ codeChatThreadsDeleted:
13325
+ type: integer
13326
+ codeKnowledgeJobsAnonymized:
13327
+ type: integer
13306
13328
  auditEntriesAnonymized:
13307
13329
  type: integer
13308
13330
 
@@ -13344,7 +13366,7 @@ components:
13344
13366
  sections:
13345
13367
  type: object
13346
13368
  additionalProperties: true
13347
- description: Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity).
13369
+ description: Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity, code chat).
13348
13370
  residualPersonData:
13349
13371
  type: array
13350
13372
  items:
@@ -14913,6 +14935,14 @@ components:
14913
14935
  type: array
14914
14936
  items:
14915
14937
  $ref: "#/components/schemas/ReadinessIssueDto"
14938
+ openIssueCount:
14939
+ type: integer
14940
+ minimum: 0
14941
+ description: Count of issues with fixStatus=open. Prefer over scanning issues[] on list projections.
14942
+ criticalOpenIssueCount:
14943
+ type: integer
14944
+ minimum: 0
14945
+ description: Open issues with severity=critical.
14916
14946
 
14917
14947
  DimensionScoreDetailDto:
14918
14948
  type: object
@@ -14951,6 +14981,14 @@ components:
14951
14981
  type: array
14952
14982
  items:
14953
14983
  $ref: "#/components/schemas/ReadinessIssueDto"
14984
+ openIssueCount:
14985
+ type: integer
14986
+ minimum: 0
14987
+ description: Count of issues with fixStatus=open.
14988
+ criticalOpenIssueCount:
14989
+ type: integer
14990
+ minimum: 0
14991
+ description: Open issues with severity=critical.
14954
14992
 
14955
14993
  ReadinessRepoRunHistoryItemDto:
14956
14994
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.102.0",
3
+ "version": "2.104.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3760,6 +3760,10 @@ export interface components {
3760
3760
  absences?: boolean;
3761
3761
  /** @description Clear `requested_by_user_id` on readiness runs for matching app users. */
3762
3762
  readinessAnonymize?: boolean;
3763
+ /** @description Delete Engineering Context Graph / Code Chat threads for matching app users in the workspace (messages cascade). */
3764
+ codeChat?: boolean;
3765
+ /** @description Clear `requested_by_user_id` on code-knowledge jobs for matching app users. */
3766
+ codeKnowledgeAnonymize?: boolean;
3763
3767
  };
3764
3768
  EraseInsightsPersonResultDto: {
3765
3769
  /** @enum {boolean} */
@@ -3767,6 +3771,8 @@ export interface components {
3767
3771
  aiToolRowsDeleted: number;
3768
3772
  absencesDeleted: number;
3769
3773
  readinessRunsAnonymized: number;
3774
+ codeChatThreadsDeleted?: number;
3775
+ codeKnowledgeJobsAnonymized?: number;
3770
3776
  auditEntriesAnonymized: number;
3771
3777
  };
3772
3778
  OrgChartNodeDto: {
@@ -5569,12 +5575,16 @@ export interface components {
5569
5575
  aiToolData?: boolean;
5570
5576
  absences?: boolean;
5571
5577
  readinessAnonymize?: boolean;
5578
+ codeChat?: boolean;
5579
+ codeKnowledgeAnonymize?: boolean;
5572
5580
  };
5573
5581
  PrivacyRequestPersonErasureResultDto: {
5574
5582
  deleted: boolean;
5575
5583
  aiToolRowsDeleted?: number;
5576
5584
  absencesDeleted?: number;
5577
5585
  readinessRunsAnonymized?: number;
5586
+ codeChatThreadsDeleted?: number;
5587
+ codeKnowledgeJobsAnonymized?: number;
5578
5588
  auditEntriesAnonymized?: number;
5579
5589
  };
5580
5590
  /** @description DSAR export bundle assembled on demand for an access/portability request. `sections` holds the subject's data grouped by source; shapes vary by section, so values are opaque objects. */
@@ -5595,7 +5605,7 @@ export interface components {
5595
5605
  subject: {
5596
5606
  [key: string]: unknown;
5597
5607
  };
5598
- /** @description Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity). */
5608
+ /** @description Per-source personal data (memberships, AI-tool, dashboard, absences, org chart, activity, code chat). */
5599
5609
  sections?: {
5600
5610
  [key: string]: unknown;
5601
5611
  };
@@ -6342,6 +6352,10 @@ export interface components {
6342
6352
  /** @description Per-criterion status counts from the latest successful scan */
6343
6353
  criteriaSummary?: components["schemas"]["ReadinessCriteriaSummaryDto"] | null;
6344
6354
  issues: components["schemas"]["ReadinessIssueDto"][];
6355
+ /** @description Count of issues with fixStatus=open. Prefer over scanning issues[] on list projections. */
6356
+ openIssueCount?: number;
6357
+ /** @description Open issues with severity=critical. */
6358
+ criticalOpenIssueCount?: number;
6345
6359
  };
6346
6360
  DimensionScoreDetailDto: {
6347
6361
  dimensionId: components["schemas"]["ReadinessDimensionId"];
@@ -6356,6 +6370,10 @@ export interface components {
6356
6370
  /** @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. */
6357
6371
  criteriaDetails: components["schemas"]["CriterionDetailDto"][];
6358
6372
  issues: components["schemas"]["ReadinessIssueDto"][];
6373
+ /** @description Count of issues with fixStatus=open. */
6374
+ openIssueCount?: number;
6375
+ /** @description Open issues with severity=critical. */
6376
+ criticalOpenIssueCount?: number;
6359
6377
  };
6360
6378
  ReadinessRepoRunHistoryItemDto: {
6361
6379
  /** Format: uuid */