@thinkai/tai-api-contract 2.145.0 → 2.147.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.
- package/dist/generated/openapi.d.ts +63 -11
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +63 -14
- package/package.json +1 -1
- package/src/generated/openapi.ts +63 -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.147.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}/...`.
|
|
@@ -7865,7 +7865,7 @@ paths:
|
|
|
7865
7865
|
schema:
|
|
7866
7866
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
7867
7867
|
example:
|
|
7868
|
-
error: No ready
|
|
7868
|
+
error: No ready code map is available to write the workspace agent file.
|
|
7869
7869
|
code: agent_md_not_ready
|
|
7870
7870
|
|
|
7871
7871
|
/workspaces/{workspaceId}/code-intelligence/token-usage/summary:
|
|
@@ -8196,7 +8196,7 @@ paths:
|
|
|
8196
8196
|
schema:
|
|
8197
8197
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
8198
8198
|
example:
|
|
8199
|
-
error: Repository exceeds the workspace eligibility limits and cannot be
|
|
8199
|
+
error: Repository exceeds the workspace eligibility limits and cannot be scanned
|
|
8200
8200
|
code: repo_ineligible
|
|
8201
8201
|
|
|
8202
8202
|
/workspaces/{workspaceId}/code-chat/indexes/sync:
|
|
@@ -8356,9 +8356,9 @@ paths:
|
|
|
8356
8356
|
examples:
|
|
8357
8357
|
chat_not_ready:
|
|
8358
8358
|
value:
|
|
8359
|
-
error:
|
|
8359
|
+
error: Scanning repositories (0/2).
|
|
8360
8360
|
code: chat_not_ready
|
|
8361
|
-
progressMessage:
|
|
8361
|
+
progressMessage: Scanning repositories (0/2).
|
|
8362
8362
|
"422":
|
|
8363
8363
|
description: Execution key required
|
|
8364
8364
|
content:
|
|
@@ -8393,6 +8393,44 @@ paths:
|
|
|
8393
8393
|
application/json:
|
|
8394
8394
|
schema:
|
|
8395
8395
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
8396
|
+
patch:
|
|
8397
|
+
tags: [CodeChat]
|
|
8398
|
+
summary: Rename a code chat thread
|
|
8399
|
+
operationId: patchCodeChatThread
|
|
8400
|
+
x-test-coverage-skip: title update covered by store RLS and unit tests
|
|
8401
|
+
parameters:
|
|
8402
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
8403
|
+
- name: threadId
|
|
8404
|
+
in: path
|
|
8405
|
+
required: true
|
|
8406
|
+
schema: { type: string, format: uuid }
|
|
8407
|
+
requestBody:
|
|
8408
|
+
required: true
|
|
8409
|
+
content:
|
|
8410
|
+
application/json:
|
|
8411
|
+
schema:
|
|
8412
|
+
$ref: "#/components/schemas/CodeChatThreadPatchBodyDto"
|
|
8413
|
+
responses:
|
|
8414
|
+
"200":
|
|
8415
|
+
description: Updated thread
|
|
8416
|
+
content:
|
|
8417
|
+
application/json:
|
|
8418
|
+
schema:
|
|
8419
|
+
$ref: "#/components/schemas/CodeChatThreadDto"
|
|
8420
|
+
"400":
|
|
8421
|
+
description: title is required (`invalid_input`)
|
|
8422
|
+
content:
|
|
8423
|
+
application/json:
|
|
8424
|
+
schema:
|
|
8425
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
8426
|
+
"401":
|
|
8427
|
+
$ref: "#/components/responses/Unauthorized"
|
|
8428
|
+
"404":
|
|
8429
|
+
description: Thread not found (`thread_not_found`)
|
|
8430
|
+
content:
|
|
8431
|
+
application/json:
|
|
8432
|
+
schema:
|
|
8433
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
8396
8434
|
delete:
|
|
8397
8435
|
tags: [CodeChat]
|
|
8398
8436
|
summary: Delete a code chat thread and its messages
|
|
@@ -8556,7 +8594,7 @@ paths:
|
|
|
8556
8594
|
"403":
|
|
8557
8595
|
description: Code Intelligence is disabled for this workspace
|
|
8558
8596
|
"409":
|
|
8559
|
-
description: No ready
|
|
8597
|
+
description: No ready code map in scope
|
|
8560
8598
|
|
|
8561
8599
|
/workspaces/{workspaceId}/knowledge-pages/generate/status:
|
|
8562
8600
|
get:
|
|
@@ -8606,7 +8644,7 @@ paths:
|
|
|
8606
8644
|
"403":
|
|
8607
8645
|
description: Code Intelligence is disabled for this workspace
|
|
8608
8646
|
"409":
|
|
8609
|
-
description: No ready
|
|
8647
|
+
description: No ready code map in scope
|
|
8610
8648
|
|
|
8611
8649
|
/workspaces/{workspaceId}/knowledge-graph:
|
|
8612
8650
|
get:
|
|
@@ -8786,7 +8824,7 @@ paths:
|
|
|
8786
8824
|
"401":
|
|
8787
8825
|
$ref: "#/components/responses/Unauthorized"
|
|
8788
8826
|
"404":
|
|
8789
|
-
description:
|
|
8827
|
+
description: Code map not found
|
|
8790
8828
|
"409":
|
|
8791
8829
|
description: Wiki has no pages yet
|
|
8792
8830
|
|
|
@@ -8840,7 +8878,7 @@ paths:
|
|
|
8840
8878
|
"401":
|
|
8841
8879
|
$ref: "#/components/responses/Unauthorized"
|
|
8842
8880
|
"409":
|
|
8843
|
-
description:
|
|
8881
|
+
description: Code map not ready
|
|
8844
8882
|
|
|
8845
8883
|
/workspaces/{workspaceId}/code-chat/indexes/{indexId}/origin-prompt:
|
|
8846
8884
|
get:
|
|
@@ -8887,7 +8925,7 @@ paths:
|
|
|
8887
8925
|
"401":
|
|
8888
8926
|
$ref: "#/components/responses/Unauthorized"
|
|
8889
8927
|
"404":
|
|
8890
|
-
description:
|
|
8928
|
+
description: Code map not ready
|
|
8891
8929
|
content:
|
|
8892
8930
|
application/json:
|
|
8893
8931
|
schema:
|
|
@@ -21157,8 +21195,8 @@ components:
|
|
|
21157
21195
|
type: boolean
|
|
21158
21196
|
default: false
|
|
21159
21197
|
description: >
|
|
21160
|
-
When true, re-enqueue even if the repository is already indexing
|
|
21161
|
-
indexed within the last 10 minutes.
|
|
21198
|
+
When true, re-enqueue even if the repository is already indexing, was
|
|
21199
|
+
indexed within the last 10 minutes, or failed after three indexing attempts.
|
|
21162
21200
|
indexOnly:
|
|
21163
21201
|
type: boolean
|
|
21164
21202
|
default: false
|
|
@@ -21192,11 +21230,12 @@ components:
|
|
|
21192
21230
|
repoName: { type: string }
|
|
21193
21231
|
code:
|
|
21194
21232
|
type: string
|
|
21195
|
-
enum: [repo_ineligible, indexed_recently, index_in_progress, ecg_source_off]
|
|
21233
|
+
enum: [repo_ineligible, indexed_recently, index_in_progress, ecg_source_off, index_failed]
|
|
21196
21234
|
description: >
|
|
21197
21235
|
Stable machine-readable skip reason. `ecg_source_off` covers a source turned off
|
|
21198
21236
|
for Engineering Context Graph and non-GitHub providers that stay listed but are
|
|
21199
|
-
never indexed.
|
|
21237
|
+
never indexed. `index_failed` means indexing already failed after three attempts
|
|
21238
|
+
and stays failed until an admin force sync.
|
|
21200
21239
|
|
|
21201
21240
|
CodeChatThreadDto:
|
|
21202
21241
|
type: object
|
|
@@ -21220,6 +21259,16 @@ components:
|
|
|
21220
21259
|
createdAt: { type: string, format: date-time }
|
|
21221
21260
|
updatedAt: { type: string, format: date-time }
|
|
21222
21261
|
|
|
21262
|
+
CodeChatThreadPatchBodyDto:
|
|
21263
|
+
type: object
|
|
21264
|
+
required: [title]
|
|
21265
|
+
properties:
|
|
21266
|
+
title:
|
|
21267
|
+
type: string
|
|
21268
|
+
minLength: 1
|
|
21269
|
+
maxLength: 200
|
|
21270
|
+
description: Display title for the conversation.
|
|
21271
|
+
|
|
21223
21272
|
CodeChatThreadListDto:
|
|
21224
21273
|
type: object
|
|
21225
21274
|
required: [items]
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3233,7 +3233,8 @@ export interface paths {
|
|
|
3233
3233
|
delete: operations["deleteCodeChatThread"];
|
|
3234
3234
|
options?: never;
|
|
3235
3235
|
head?: never;
|
|
3236
|
-
|
|
3236
|
+
/** Rename a code chat thread */
|
|
3237
|
+
patch: operations["patchCodeChatThread"];
|
|
3237
3238
|
trace?: never;
|
|
3238
3239
|
};
|
|
3239
3240
|
"/workspaces/{workspaceId}/code-chat/threads/{threadId}/messages": {
|
|
@@ -9098,7 +9099,7 @@ export interface components {
|
|
|
9098
9099
|
/** @description Optional subset; omit or empty to enqueue all readiness GitHub repos. */
|
|
9099
9100
|
repoIds?: string[];
|
|
9100
9101
|
/**
|
|
9101
|
-
* @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.
|
|
9102
9103
|
* @default false
|
|
9103
9104
|
*/
|
|
9104
9105
|
force: boolean;
|
|
@@ -9119,10 +9120,10 @@ export interface components {
|
|
|
9119
9120
|
repoId: string;
|
|
9120
9121
|
repoName: string;
|
|
9121
9122
|
/**
|
|
9122
|
-
* @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.
|
|
9123
9124
|
* @enum {string}
|
|
9124
9125
|
*/
|
|
9125
|
-
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";
|
|
9126
9127
|
};
|
|
9127
9128
|
CodeChatThreadDto: {
|
|
9128
9129
|
/** Format: uuid */
|
|
@@ -9145,6 +9146,10 @@ export interface components {
|
|
|
9145
9146
|
/** Format: date-time */
|
|
9146
9147
|
updatedAt: string;
|
|
9147
9148
|
};
|
|
9149
|
+
CodeChatThreadPatchBodyDto: {
|
|
9150
|
+
/** @description Display title for the conversation. */
|
|
9151
|
+
title: string;
|
|
9152
|
+
};
|
|
9148
9153
|
CodeChatThreadListDto: {
|
|
9149
9154
|
items: components["schemas"]["CodeChatThreadDto"][];
|
|
9150
9155
|
};
|
|
@@ -10826,6 +10831,7 @@ export type CodeChatSyncIndexesBodyDto = components['schemas']['CodeChatSyncInde
|
|
|
10826
10831
|
export type CodeChatSyncIndexesResultDto = components['schemas']['CodeChatSyncIndexesResultDto'];
|
|
10827
10832
|
export type CodeChatSkippedRepoDto = components['schemas']['CodeChatSkippedRepoDto'];
|
|
10828
10833
|
export type CodeChatThreadDto = components['schemas']['CodeChatThreadDto'];
|
|
10834
|
+
export type CodeChatThreadPatchBodyDto = components['schemas']['CodeChatThreadPatchBodyDto'];
|
|
10829
10835
|
export type CodeChatThreadListDto = components['schemas']['CodeChatThreadListDto'];
|
|
10830
10836
|
export type CodeChatCreateThreadBodyDto = components['schemas']['CodeChatCreateThreadBodyDto'];
|
|
10831
10837
|
export type CodeChatCitationDto = components['schemas']['CodeChatCitationDto'];
|
|
@@ -18912,7 +18918,7 @@ export interface operations {
|
|
|
18912
18918
|
content: {
|
|
18913
18919
|
/**
|
|
18914
18920
|
* @example {
|
|
18915
|
-
* "error": "No ready
|
|
18921
|
+
* "error": "No ready code map is available to write the workspace agent file.",
|
|
18916
18922
|
* "code": "agent_md_not_ready"
|
|
18917
18923
|
* }
|
|
18918
18924
|
*/
|
|
@@ -19286,7 +19292,7 @@ export interface operations {
|
|
|
19286
19292
|
content: {
|
|
19287
19293
|
/**
|
|
19288
19294
|
* @example {
|
|
19289
|
-
* "error": "Repository exceeds the workspace eligibility limits and cannot be
|
|
19295
|
+
* "error": "Repository exceeds the workspace eligibility limits and cannot be scanned",
|
|
19290
19296
|
* "code": "repo_ineligible"
|
|
19291
19297
|
* }
|
|
19292
19298
|
*/
|
|
@@ -19550,6 +19556,52 @@ export interface operations {
|
|
|
19550
19556
|
};
|
|
19551
19557
|
};
|
|
19552
19558
|
};
|
|
19559
|
+
patchCodeChatThread: {
|
|
19560
|
+
parameters: {
|
|
19561
|
+
query?: never;
|
|
19562
|
+
header?: never;
|
|
19563
|
+
path: {
|
|
19564
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19565
|
+
threadId: string;
|
|
19566
|
+
};
|
|
19567
|
+
cookie?: never;
|
|
19568
|
+
};
|
|
19569
|
+
requestBody: {
|
|
19570
|
+
content: {
|
|
19571
|
+
"application/json": components["schemas"]["CodeChatThreadPatchBodyDto"];
|
|
19572
|
+
};
|
|
19573
|
+
};
|
|
19574
|
+
responses: {
|
|
19575
|
+
/** @description Updated thread */
|
|
19576
|
+
200: {
|
|
19577
|
+
headers: {
|
|
19578
|
+
[name: string]: unknown;
|
|
19579
|
+
};
|
|
19580
|
+
content: {
|
|
19581
|
+
"application/json": components["schemas"]["CodeChatThreadDto"];
|
|
19582
|
+
};
|
|
19583
|
+
};
|
|
19584
|
+
/** @description title is required (`invalid_input`) */
|
|
19585
|
+
400: {
|
|
19586
|
+
headers: {
|
|
19587
|
+
[name: string]: unknown;
|
|
19588
|
+
};
|
|
19589
|
+
content: {
|
|
19590
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19591
|
+
};
|
|
19592
|
+
};
|
|
19593
|
+
401: components["responses"]["Unauthorized"];
|
|
19594
|
+
/** @description Thread not found (`thread_not_found`) */
|
|
19595
|
+
404: {
|
|
19596
|
+
headers: {
|
|
19597
|
+
[name: string]: unknown;
|
|
19598
|
+
};
|
|
19599
|
+
content: {
|
|
19600
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19601
|
+
};
|
|
19602
|
+
};
|
|
19603
|
+
};
|
|
19604
|
+
};
|
|
19553
19605
|
postCodeChatMessage: {
|
|
19554
19606
|
parameters: {
|
|
19555
19607
|
query?: never;
|
|
@@ -19731,7 +19783,7 @@ export interface operations {
|
|
|
19731
19783
|
};
|
|
19732
19784
|
content?: never;
|
|
19733
19785
|
};
|
|
19734
|
-
/** @description No ready
|
|
19786
|
+
/** @description No ready code map in scope */
|
|
19735
19787
|
409: {
|
|
19736
19788
|
headers: {
|
|
19737
19789
|
[name: string]: unknown;
|
|
@@ -19802,7 +19854,7 @@ export interface operations {
|
|
|
19802
19854
|
};
|
|
19803
19855
|
content?: never;
|
|
19804
19856
|
};
|
|
19805
|
-
/** @description No ready
|
|
19857
|
+
/** @description No ready code map in scope */
|
|
19806
19858
|
409: {
|
|
19807
19859
|
headers: {
|
|
19808
19860
|
[name: string]: unknown;
|
|
@@ -20038,7 +20090,7 @@ export interface operations {
|
|
|
20038
20090
|
content?: never;
|
|
20039
20091
|
};
|
|
20040
20092
|
401: components["responses"]["Unauthorized"];
|
|
20041
|
-
/** @description
|
|
20093
|
+
/** @description Code map not found */
|
|
20042
20094
|
404: {
|
|
20043
20095
|
headers: {
|
|
20044
20096
|
[name: string]: unknown;
|
|
@@ -20108,7 +20160,7 @@ export interface operations {
|
|
|
20108
20160
|
};
|
|
20109
20161
|
};
|
|
20110
20162
|
401: components["responses"]["Unauthorized"];
|
|
20111
|
-
/** @description
|
|
20163
|
+
/** @description Code map not ready */
|
|
20112
20164
|
409: {
|
|
20113
20165
|
headers: {
|
|
20114
20166
|
[name: string]: unknown;
|
|
@@ -20163,7 +20215,7 @@ export interface operations {
|
|
|
20163
20215
|
};
|
|
20164
20216
|
};
|
|
20165
20217
|
401: components["responses"]["Unauthorized"];
|
|
20166
|
-
/** @description
|
|
20218
|
+
/** @description Code map not ready */
|
|
20167
20219
|
404: {
|
|
20168
20220
|
headers: {
|
|
20169
20221
|
[name: string]: unknown;
|