@thinkai/tai-api-contract 2.207.0 → 2.208.1
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.
- package/dist/generated/openapi.d.ts +15 -11
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +24 -12
- package/package.json +1 -1
- package/src/generated/openapi.ts +15 -11
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.208.1
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -10267,7 +10267,7 @@ paths:
|
|
|
10267
10267
|
schema:
|
|
10268
10268
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
10269
10269
|
example:
|
|
10270
|
-
error: No ready
|
|
10270
|
+
error: No ready index is available to write the workspace agent file.
|
|
10271
10271
|
code: agent_md_not_ready
|
|
10272
10272
|
|
|
10273
10273
|
/workspaces/{workspaceId}/code-intelligence/token-usage/summary:
|
|
@@ -10997,7 +10997,7 @@ paths:
|
|
|
10997
10997
|
"403":
|
|
10998
10998
|
description: Code Intelligence is disabled for this workspace
|
|
10999
10999
|
"409":
|
|
11000
|
-
description: No ready
|
|
11000
|
+
description: No ready index in scope
|
|
11001
11001
|
|
|
11002
11002
|
/workspaces/{workspaceId}/knowledge-pages/generate/status:
|
|
11003
11003
|
get:
|
|
@@ -11021,7 +11021,7 @@ paths:
|
|
|
11021
11021
|
tags: [CodeChat]
|
|
11022
11022
|
summary: Generate a workspace-scoped PRD draft
|
|
11023
11023
|
description: >-
|
|
11024
|
-
Builds a PRD draft from ready
|
|
11024
|
+
Builds a PRD draft from ready indexes (required) plus optional wiki pages and
|
|
11025
11025
|
platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is
|
|
11026
11026
|
optional — scan at least one repository first. Upserts one workspace knowledge page
|
|
11027
11027
|
(`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base.
|
|
@@ -11048,14 +11048,14 @@ paths:
|
|
|
11048
11048
|
"403":
|
|
11049
11049
|
description: Code Intelligence is disabled for this workspace
|
|
11050
11050
|
"409":
|
|
11051
|
-
description: No ready
|
|
11051
|
+
description: No ready index in scope
|
|
11052
11052
|
|
|
11053
11053
|
/workspaces/{workspaceId}/knowledge-pages/rfc/generate:
|
|
11054
11054
|
post:
|
|
11055
11055
|
tags: [CodeChat]
|
|
11056
11056
|
summary: Generate a workspace-scoped RFC draft
|
|
11057
11057
|
description: >-
|
|
11058
|
-
Same grounding as PRD generate (ready
|
|
11058
|
+
Same grounding as PRD generate (ready indexes required; wiki optional; platform
|
|
11059
11059
|
evidence when available). Upserts `rfc-<slug>` / `rfc-draft` without replacing the KB.
|
|
11060
11060
|
operationId: generateRfcDraft
|
|
11061
11061
|
parameters:
|
|
@@ -11080,14 +11080,14 @@ paths:
|
|
|
11080
11080
|
"403":
|
|
11081
11081
|
description: Code Intelligence is disabled for this workspace
|
|
11082
11082
|
"409":
|
|
11083
|
-
description: No ready
|
|
11083
|
+
description: No ready index in scope
|
|
11084
11084
|
|
|
11085
11085
|
/workspaces/{workspaceId}/knowledge-pages/adr/generate:
|
|
11086
11086
|
post:
|
|
11087
11087
|
tags: [CodeChat]
|
|
11088
11088
|
summary: Generate a workspace-scoped ADR draft
|
|
11089
11089
|
description: >-
|
|
11090
|
-
Same grounding as PRD generate (ready
|
|
11090
|
+
Same grounding as PRD generate (ready indexes required; wiki optional; platform
|
|
11091
11091
|
evidence when available). Upserts `adr-<slug>` / `adr-draft` without replacing the KB.
|
|
11092
11092
|
operationId: generateAdrDraft
|
|
11093
11093
|
parameters:
|
|
@@ -11112,7 +11112,7 @@ paths:
|
|
|
11112
11112
|
"403":
|
|
11113
11113
|
description: Code Intelligence is disabled for this workspace
|
|
11114
11114
|
"409":
|
|
11115
|
-
description: No ready
|
|
11115
|
+
description: No ready index in scope
|
|
11116
11116
|
|
|
11117
11117
|
/workspaces/{workspaceId}/knowledge-graph:
|
|
11118
11118
|
get:
|
|
@@ -11292,7 +11292,7 @@ paths:
|
|
|
11292
11292
|
"401":
|
|
11293
11293
|
$ref: "#/components/responses/Unauthorized"
|
|
11294
11294
|
"404":
|
|
11295
|
-
description:
|
|
11295
|
+
description: Index not found
|
|
11296
11296
|
"409":
|
|
11297
11297
|
description: Wiki has no pages yet
|
|
11298
11298
|
|
|
@@ -11346,7 +11346,7 @@ paths:
|
|
|
11346
11346
|
"401":
|
|
11347
11347
|
$ref: "#/components/responses/Unauthorized"
|
|
11348
11348
|
"409":
|
|
11349
|
-
description:
|
|
11349
|
+
description: Index not ready
|
|
11350
11350
|
|
|
11351
11351
|
/workspaces/{workspaceId}/code-chat/indexes/{indexId}/origin-prompt:
|
|
11352
11352
|
get:
|
|
@@ -11393,7 +11393,7 @@ paths:
|
|
|
11393
11393
|
"401":
|
|
11394
11394
|
$ref: "#/components/responses/Unauthorized"
|
|
11395
11395
|
"404":
|
|
11396
|
-
description:
|
|
11396
|
+
description: Index not ready
|
|
11397
11397
|
content:
|
|
11398
11398
|
application/json:
|
|
11399
11399
|
schema:
|
|
@@ -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
package/src/generated/openapi.ts
CHANGED
|
@@ -4052,7 +4052,7 @@ export interface paths {
|
|
|
4052
4052
|
put?: never;
|
|
4053
4053
|
/**
|
|
4054
4054
|
* Generate a workspace-scoped PRD draft
|
|
4055
|
-
* @description Builds a PRD draft from ready
|
|
4055
|
+
* @description Builds a PRD draft from ready indexes (required) plus optional wiki pages and platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is optional — scan at least one repository first. Upserts one workspace knowledge page (`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base.
|
|
4056
4056
|
*/
|
|
4057
4057
|
post: operations["generatePrdDraft"];
|
|
4058
4058
|
delete?: never;
|
|
@@ -4072,7 +4072,7 @@ export interface paths {
|
|
|
4072
4072
|
put?: never;
|
|
4073
4073
|
/**
|
|
4074
4074
|
* Generate a workspace-scoped RFC draft
|
|
4075
|
-
* @description Same grounding as PRD generate (ready
|
|
4075
|
+
* @description Same grounding as PRD generate (ready indexes required; wiki optional; platform evidence when available). Upserts `rfc-<slug>` / `rfc-draft` without replacing the KB.
|
|
4076
4076
|
*/
|
|
4077
4077
|
post: operations["generateRfcDraft"];
|
|
4078
4078
|
delete?: never;
|
|
@@ -4092,7 +4092,7 @@ export interface paths {
|
|
|
4092
4092
|
put?: never;
|
|
4093
4093
|
/**
|
|
4094
4094
|
* Generate a workspace-scoped ADR draft
|
|
4095
|
-
* @description Same grounding as PRD generate (ready
|
|
4095
|
+
* @description Same grounding as PRD generate (ready indexes required; wiki optional; platform evidence when available). Upserts `adr-<slug>` / `adr-draft` without replacing the KB.
|
|
4096
4096
|
*/
|
|
4097
4097
|
post: operations["generateAdrDraft"];
|
|
4098
4098
|
delete?: never;
|
|
@@ -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"][];
|
|
@@ -24389,7 +24393,7 @@ export interface operations {
|
|
|
24389
24393
|
content: {
|
|
24390
24394
|
/**
|
|
24391
24395
|
* @example {
|
|
24392
|
-
* "error": "No ready
|
|
24396
|
+
* "error": "No ready index is available to write the workspace agent file.",
|
|
24393
24397
|
* "code": "agent_md_not_ready"
|
|
24394
24398
|
* }
|
|
24395
24399
|
*/
|
|
@@ -25237,7 +25241,7 @@ export interface operations {
|
|
|
25237
25241
|
};
|
|
25238
25242
|
content?: never;
|
|
25239
25243
|
};
|
|
25240
|
-
/** @description No ready
|
|
25244
|
+
/** @description No ready index in scope */
|
|
25241
25245
|
409: {
|
|
25242
25246
|
headers: {
|
|
25243
25247
|
[name: string]: unknown;
|
|
@@ -25308,7 +25312,7 @@ export interface operations {
|
|
|
25308
25312
|
};
|
|
25309
25313
|
content?: never;
|
|
25310
25314
|
};
|
|
25311
|
-
/** @description No ready
|
|
25315
|
+
/** @description No ready index in scope */
|
|
25312
25316
|
409: {
|
|
25313
25317
|
headers: {
|
|
25314
25318
|
[name: string]: unknown;
|
|
@@ -25356,7 +25360,7 @@ export interface operations {
|
|
|
25356
25360
|
};
|
|
25357
25361
|
content?: never;
|
|
25358
25362
|
};
|
|
25359
|
-
/** @description No ready
|
|
25363
|
+
/** @description No ready index in scope */
|
|
25360
25364
|
409: {
|
|
25361
25365
|
headers: {
|
|
25362
25366
|
[name: string]: unknown;
|
|
@@ -25404,7 +25408,7 @@ export interface operations {
|
|
|
25404
25408
|
};
|
|
25405
25409
|
content?: never;
|
|
25406
25410
|
};
|
|
25407
|
-
/** @description No ready
|
|
25411
|
+
/** @description No ready index in scope */
|
|
25408
25412
|
409: {
|
|
25409
25413
|
headers: {
|
|
25410
25414
|
[name: string]: unknown;
|
|
@@ -25640,7 +25644,7 @@ export interface operations {
|
|
|
25640
25644
|
content?: never;
|
|
25641
25645
|
};
|
|
25642
25646
|
401: components["responses"]["Unauthorized"];
|
|
25643
|
-
/** @description
|
|
25647
|
+
/** @description Index not found */
|
|
25644
25648
|
404: {
|
|
25645
25649
|
headers: {
|
|
25646
25650
|
[name: string]: unknown;
|
|
@@ -25710,7 +25714,7 @@ export interface operations {
|
|
|
25710
25714
|
};
|
|
25711
25715
|
};
|
|
25712
25716
|
401: components["responses"]["Unauthorized"];
|
|
25713
|
-
/** @description
|
|
25717
|
+
/** @description Index not ready */
|
|
25714
25718
|
409: {
|
|
25715
25719
|
headers: {
|
|
25716
25720
|
[name: string]: unknown;
|
|
@@ -25765,7 +25769,7 @@ export interface operations {
|
|
|
25765
25769
|
};
|
|
25766
25770
|
};
|
|
25767
25771
|
401: components["responses"]["Unauthorized"];
|
|
25768
|
-
/** @description
|
|
25772
|
+
/** @description Index not ready */
|
|
25769
25773
|
404: {
|
|
25770
25774
|
headers: {
|
|
25771
25775
|
[name: string]: unknown;
|