@thinkai/tai-api-contract 2.207.0 → 2.208.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.207.0
4
+ version: 2.208.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}/...`.
@@ -28098,6 +28098,12 @@ components:
28098
28098
  nodeCount: { type: integer }
28099
28099
  edgeCount: { type: integer }
28100
28100
  commitSha: { type: string, nullable: true }
28101
+ defaultBranch:
28102
+ type: string
28103
+ nullable: true
28104
+ description: >
28105
+ Host default branch for this repository (`tai_workspace_repos.default_branch`).
28106
+ Refreshed on tip-changing rebuilds. SPA wiki chip: `{defaultBranch} @ {shortSha}`.
28101
28107
  errorMessage: { type: string, nullable: true }
28102
28108
  progressMessage:
28103
28109
  type: string
@@ -28375,6 +28381,12 @@ components:
28375
28381
  type: array
28376
28382
  items: { $ref: "#/components/schemas/CodeChatAttachmentMetaDto" }
28377
28383
  description: Present on user turns that included uploaded files
28384
+ usage:
28385
+ allOf:
28386
+ - $ref: "#/components/schemas/CodeIntelligenceUsageDto"
28387
+ description: >
28388
+ Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread
28389
+ detail (assistant turns). Omitted when no ledger rows exist for the message.
28378
28390
 
28379
28391
  CodeChatThreadDetailDto:
28380
28392
  allOf:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.207.0",
3
+ "version": "2.208.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -11642,6 +11642,8 @@ export interface components {
11642
11642
  nodeCount: number;
11643
11643
  edgeCount: number;
11644
11644
  commitSha?: string | null;
11645
+ /** @description Host default branch for this repository (`tai_workspace_repos.default_branch`). Refreshed on tip-changing rebuilds. SPA wiki chip: `{defaultBranch} @ {shortSha}`. */
11646
+ defaultBranch?: string | null;
11645
11647
  errorMessage?: string | null;
11646
11648
  /** @description Human-readable indexing stage while a job is running (queued, clone, graph, save, wiki). Cleared when the index is ready or failed. */
11647
11649
  progressMessage?: string | null;
@@ -11823,6 +11825,8 @@ export interface components {
11823
11825
  createdAt: string;
11824
11826
  /** @description Present on user turns that included uploaded files */
11825
11827
  attachments?: components["schemas"]["CodeChatAttachmentMetaDto"][];
11828
+ /** @description Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread detail (assistant turns). Omitted when no ledger rows exist for the message. */
11829
+ usage?: components["schemas"]["CodeIntelligenceUsageDto"];
11826
11830
  };
11827
11831
  CodeChatThreadDetailDto: components["schemas"]["CodeChatThreadDto"] & {
11828
11832
  messages: components["schemas"]["CodeChatMessageDto"][];