@thinkai/tai-api-contract 2.146.0 → 2.147.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 +14 -14
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +22 -26
- package/package.json +1 -1
- package/src/generated/openapi.ts +14 -14
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.147.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}/...`.
|
|
@@ -7591,12 +7591,12 @@ paths:
|
|
|
7591
7591
|
/workspaces/{workspaceId}/readiness/issues/{issueId}/fix-guide:
|
|
7592
7592
|
get:
|
|
7593
7593
|
tags: [RepositoryReadiness]
|
|
7594
|
-
summary: Get
|
|
7594
|
+
summary: Get fix instructions for a readiness issue
|
|
7595
7595
|
description: >
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7596
|
+
G1–G5 return the markdown guide written during the latest successful scan.
|
|
7597
|
+
Every other issue returns the remediation already stored for that issue
|
|
7598
|
+
(latest succeeded criterion row, otherwise the issue description).
|
|
7599
|
+
When that text is missing, returns `404` so the page can show the empty-guide state.
|
|
7600
7600
|
operationId: getReadinessIssueFixGuide
|
|
7601
7601
|
parameters:
|
|
7602
7602
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
@@ -7609,16 +7609,11 @@ paths:
|
|
|
7609
7609
|
schema:
|
|
7610
7610
|
$ref: "#/components/schemas/ReadinessFixGuideDto"
|
|
7611
7611
|
"400":
|
|
7612
|
-
description:
|
|
7612
|
+
description: issueId is not a UUID
|
|
7613
7613
|
content:
|
|
7614
7614
|
application/json:
|
|
7615
7615
|
schema:
|
|
7616
7616
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7617
|
-
examples:
|
|
7618
|
-
not_guidance:
|
|
7619
|
-
value:
|
|
7620
|
-
error: "Fix guide is only available for G1–G5 governance criteria"
|
|
7621
|
-
code: fix_guide_not_guidance
|
|
7622
7617
|
"401":
|
|
7623
7618
|
$ref: "#/components/responses/Unauthorized"
|
|
7624
7619
|
"403":
|
|
@@ -7865,7 +7860,7 @@ paths:
|
|
|
7865
7860
|
schema:
|
|
7866
7861
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7867
7862
|
example:
|
|
7868
|
-
error: No ready
|
|
7863
|
+
error: No ready code map is available to write the workspace agent file.
|
|
7869
7864
|
code: agent_md_not_ready
|
|
7870
7865
|
|
|
7871
7866
|
/workspaces/{workspaceId}/code-intelligence/token-usage/summary:
|
|
@@ -8196,7 +8191,7 @@ paths:
|
|
|
8196
8191
|
schema:
|
|
8197
8192
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
8198
8193
|
example:
|
|
8199
|
-
error: Repository exceeds the workspace eligibility limits and cannot be
|
|
8194
|
+
error: Repository exceeds the workspace eligibility limits and cannot be scanned
|
|
8200
8195
|
code: repo_ineligible
|
|
8201
8196
|
|
|
8202
8197
|
/workspaces/{workspaceId}/code-chat/indexes/sync:
|
|
@@ -8356,9 +8351,9 @@ paths:
|
|
|
8356
8351
|
examples:
|
|
8357
8352
|
chat_not_ready:
|
|
8358
8353
|
value:
|
|
8359
|
-
error:
|
|
8354
|
+
error: Scanning repositories (0/2).
|
|
8360
8355
|
code: chat_not_ready
|
|
8361
|
-
progressMessage:
|
|
8356
|
+
progressMessage: Scanning repositories (0/2).
|
|
8362
8357
|
"422":
|
|
8363
8358
|
description: Execution key required
|
|
8364
8359
|
content:
|
|
@@ -8594,7 +8589,7 @@ paths:
|
|
|
8594
8589
|
"403":
|
|
8595
8590
|
description: Code Intelligence is disabled for this workspace
|
|
8596
8591
|
"409":
|
|
8597
|
-
description: No ready
|
|
8592
|
+
description: No ready code map in scope
|
|
8598
8593
|
|
|
8599
8594
|
/workspaces/{workspaceId}/knowledge-pages/generate/status:
|
|
8600
8595
|
get:
|
|
@@ -8644,7 +8639,7 @@ paths:
|
|
|
8644
8639
|
"403":
|
|
8645
8640
|
description: Code Intelligence is disabled for this workspace
|
|
8646
8641
|
"409":
|
|
8647
|
-
description: No ready
|
|
8642
|
+
description: No ready code map in scope
|
|
8648
8643
|
|
|
8649
8644
|
/workspaces/{workspaceId}/knowledge-graph:
|
|
8650
8645
|
get:
|
|
@@ -8824,7 +8819,7 @@ paths:
|
|
|
8824
8819
|
"401":
|
|
8825
8820
|
$ref: "#/components/responses/Unauthorized"
|
|
8826
8821
|
"404":
|
|
8827
|
-
description:
|
|
8822
|
+
description: Code map not found
|
|
8828
8823
|
"409":
|
|
8829
8824
|
description: Wiki has no pages yet
|
|
8830
8825
|
|
|
@@ -8878,7 +8873,7 @@ paths:
|
|
|
8878
8873
|
"401":
|
|
8879
8874
|
$ref: "#/components/responses/Unauthorized"
|
|
8880
8875
|
"409":
|
|
8881
|
-
description:
|
|
8876
|
+
description: Code map not ready
|
|
8882
8877
|
|
|
8883
8878
|
/workspaces/{workspaceId}/code-chat/indexes/{indexId}/origin-prompt:
|
|
8884
8879
|
get:
|
|
@@ -8925,7 +8920,7 @@ paths:
|
|
|
8925
8920
|
"401":
|
|
8926
8921
|
$ref: "#/components/responses/Unauthorized"
|
|
8927
8922
|
"404":
|
|
8928
|
-
description:
|
|
8923
|
+
description: Code map not ready
|
|
8929
8924
|
content:
|
|
8930
8925
|
application/json:
|
|
8931
8926
|
schema:
|
|
@@ -18235,7 +18230,7 @@ components:
|
|
|
18235
18230
|
rubricId:
|
|
18236
18231
|
type: string
|
|
18237
18232
|
maxLength: 16
|
|
18238
|
-
description: G1–G5
|
|
18233
|
+
description: Rubric criterion id (G1–G5 guides, or any other issue with stored remediation)
|
|
18239
18234
|
sourceRunId:
|
|
18240
18235
|
type: string
|
|
18241
18236
|
format: uuid
|
|
@@ -21195,8 +21190,8 @@ components:
|
|
|
21195
21190
|
type: boolean
|
|
21196
21191
|
default: false
|
|
21197
21192
|
description: >
|
|
21198
|
-
When true, re-enqueue even if the repository is already indexing
|
|
21199
|
-
indexed within the last 10 minutes.
|
|
21193
|
+
When true, re-enqueue even if the repository is already indexing, was
|
|
21194
|
+
indexed within the last 10 minutes, or failed after three indexing attempts.
|
|
21200
21195
|
indexOnly:
|
|
21201
21196
|
type: boolean
|
|
21202
21197
|
default: false
|
|
@@ -21230,11 +21225,12 @@ components:
|
|
|
21230
21225
|
repoName: { type: string }
|
|
21231
21226
|
code:
|
|
21232
21227
|
type: string
|
|
21233
|
-
enum: [repo_ineligible, indexed_recently, index_in_progress, ecg_source_off]
|
|
21228
|
+
enum: [repo_ineligible, indexed_recently, index_in_progress, ecg_source_off, index_failed]
|
|
21234
21229
|
description: >
|
|
21235
21230
|
Stable machine-readable skip reason. `ecg_source_off` covers a source turned off
|
|
21236
21231
|
for Engineering Context Graph and non-GitHub providers that stay listed but are
|
|
21237
|
-
never indexed.
|
|
21232
|
+
never indexed. `index_failed` means indexing already failed after three attempts
|
|
21233
|
+
and stays failed until an admin force sync.
|
|
21238
21234
|
|
|
21239
21235
|
CodeChatThreadDto:
|
|
21240
21236
|
type: object
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -2872,8 +2872,8 @@ export interface paths {
|
|
|
2872
2872
|
cookie?: never;
|
|
2873
2873
|
};
|
|
2874
2874
|
/**
|
|
2875
|
-
* Get
|
|
2876
|
-
* @description
|
|
2875
|
+
* Get fix instructions for a readiness issue
|
|
2876
|
+
* @description G1–G5 return the markdown guide written during the latest successful scan. Every other issue returns the remediation already stored for that issue (latest succeeded criterion row, otherwise the issue description). When that text is missing, returns `404` so the page can show the empty-guide state.
|
|
2877
2877
|
*/
|
|
2878
2878
|
get: operations["getReadinessIssueFixGuide"];
|
|
2879
2879
|
put?: never;
|
|
@@ -7740,7 +7740,7 @@ export interface components {
|
|
|
7740
7740
|
issueId: string;
|
|
7741
7741
|
/** Format: uuid */
|
|
7742
7742
|
repoId: string;
|
|
7743
|
-
/** @description G1–G5
|
|
7743
|
+
/** @description Rubric criterion id (G1–G5 guides, or any other issue with stored remediation) */
|
|
7744
7744
|
rubricId: string;
|
|
7745
7745
|
/**
|
|
7746
7746
|
* Format: uuid
|
|
@@ -9099,7 +9099,7 @@ export interface components {
|
|
|
9099
9099
|
/** @description Optional subset; omit or empty to enqueue all readiness GitHub repos. */
|
|
9100
9100
|
repoIds?: string[];
|
|
9101
9101
|
/**
|
|
9102
|
-
* @description When true, re-enqueue even if the repository is already indexing
|
|
9102
|
+
* @description When true, re-enqueue even if the repository is already indexing, was indexed within the last 10 minutes, or failed after three indexing attempts.
|
|
9103
9103
|
* @default false
|
|
9104
9104
|
*/
|
|
9105
9105
|
force: boolean;
|
|
@@ -9120,10 +9120,10 @@ export interface components {
|
|
|
9120
9120
|
repoId: string;
|
|
9121
9121
|
repoName: string;
|
|
9122
9122
|
/**
|
|
9123
|
-
* @description Stable machine-readable skip reason. `ecg_source_off` covers a source turned off for Engineering Context Graph and non-GitHub providers that stay listed but are never indexed.
|
|
9123
|
+
* @description Stable machine-readable skip reason. `ecg_source_off` covers a source turned off for Engineering Context Graph and non-GitHub providers that stay listed but are never indexed. `index_failed` means indexing already failed after three attempts and stays failed until an admin force sync.
|
|
9124
9124
|
* @enum {string}
|
|
9125
9125
|
*/
|
|
9126
|
-
code: "repo_ineligible" | "indexed_recently" | "index_in_progress" | "ecg_source_off";
|
|
9126
|
+
code: "repo_ineligible" | "indexed_recently" | "index_in_progress" | "ecg_source_off" | "index_failed";
|
|
9127
9127
|
};
|
|
9128
9128
|
CodeChatThreadDto: {
|
|
9129
9129
|
/** Format: uuid */
|
|
@@ -18653,7 +18653,7 @@ export interface operations {
|
|
|
18653
18653
|
"application/json": components["schemas"]["ReadinessFixGuideDto"];
|
|
18654
18654
|
};
|
|
18655
18655
|
};
|
|
18656
|
-
/** @description
|
|
18656
|
+
/** @description issueId is not a UUID */
|
|
18657
18657
|
400: {
|
|
18658
18658
|
headers: {
|
|
18659
18659
|
[name: string]: unknown;
|
|
@@ -18918,7 +18918,7 @@ export interface operations {
|
|
|
18918
18918
|
content: {
|
|
18919
18919
|
/**
|
|
18920
18920
|
* @example {
|
|
18921
|
-
* "error": "No ready
|
|
18921
|
+
* "error": "No ready code map is available to write the workspace agent file.",
|
|
18922
18922
|
* "code": "agent_md_not_ready"
|
|
18923
18923
|
* }
|
|
18924
18924
|
*/
|
|
@@ -19292,7 +19292,7 @@ export interface operations {
|
|
|
19292
19292
|
content: {
|
|
19293
19293
|
/**
|
|
19294
19294
|
* @example {
|
|
19295
|
-
* "error": "Repository exceeds the workspace eligibility limits and cannot be
|
|
19295
|
+
* "error": "Repository exceeds the workspace eligibility limits and cannot be scanned",
|
|
19296
19296
|
* "code": "repo_ineligible"
|
|
19297
19297
|
* }
|
|
19298
19298
|
*/
|
|
@@ -19783,7 +19783,7 @@ export interface operations {
|
|
|
19783
19783
|
};
|
|
19784
19784
|
content?: never;
|
|
19785
19785
|
};
|
|
19786
|
-
/** @description No ready
|
|
19786
|
+
/** @description No ready code map in scope */
|
|
19787
19787
|
409: {
|
|
19788
19788
|
headers: {
|
|
19789
19789
|
[name: string]: unknown;
|
|
@@ -19854,7 +19854,7 @@ export interface operations {
|
|
|
19854
19854
|
};
|
|
19855
19855
|
content?: never;
|
|
19856
19856
|
};
|
|
19857
|
-
/** @description No ready
|
|
19857
|
+
/** @description No ready code map in scope */
|
|
19858
19858
|
409: {
|
|
19859
19859
|
headers: {
|
|
19860
19860
|
[name: string]: unknown;
|
|
@@ -20090,7 +20090,7 @@ export interface operations {
|
|
|
20090
20090
|
content?: never;
|
|
20091
20091
|
};
|
|
20092
20092
|
401: components["responses"]["Unauthorized"];
|
|
20093
|
-
/** @description
|
|
20093
|
+
/** @description Code map not found */
|
|
20094
20094
|
404: {
|
|
20095
20095
|
headers: {
|
|
20096
20096
|
[name: string]: unknown;
|
|
@@ -20160,7 +20160,7 @@ export interface operations {
|
|
|
20160
20160
|
};
|
|
20161
20161
|
};
|
|
20162
20162
|
401: components["responses"]["Unauthorized"];
|
|
20163
|
-
/** @description
|
|
20163
|
+
/** @description Code map not ready */
|
|
20164
20164
|
409: {
|
|
20165
20165
|
headers: {
|
|
20166
20166
|
[name: string]: unknown;
|
|
@@ -20215,7 +20215,7 @@ export interface operations {
|
|
|
20215
20215
|
};
|
|
20216
20216
|
};
|
|
20217
20217
|
401: components["responses"]["Unauthorized"];
|
|
20218
|
-
/** @description
|
|
20218
|
+
/** @description Code map not ready */
|
|
20219
20219
|
404: {
|
|
20220
20220
|
headers: {
|
|
20221
20221
|
[name: string]: unknown;
|