@thinkai/tai-api-contract 2.211.0 → 2.211.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.
|
@@ -3905,6 +3905,26 @@ export interface paths {
|
|
|
3905
3905
|
patch?: never;
|
|
3906
3906
|
trace?: never;
|
|
3907
3907
|
};
|
|
3908
|
+
"/workspaces/{workspaceId}/code-chat/knowledge-jobs/{jobId}/cancel": {
|
|
3909
|
+
parameters: {
|
|
3910
|
+
query?: never;
|
|
3911
|
+
header?: never;
|
|
3912
|
+
path?: never;
|
|
3913
|
+
cookie?: never;
|
|
3914
|
+
};
|
|
3915
|
+
get?: never;
|
|
3916
|
+
put?: never;
|
|
3917
|
+
/**
|
|
3918
|
+
* Cancel a queued or running knowledge job
|
|
3919
|
+
* @description Any workspace member when Engineering Context Graph is on. Clears the worker lease so in-flight work stops at the next ownership check. Restores the index to ready when a usable graph already exists (`graph_json` and `node_count > 0`); otherwise marks the index failed with "Cancelled by user". Authz matches other CodeChat member routes (Code Intelligence enabled); unlike continue, no execution key is required.
|
|
3920
|
+
*/
|
|
3921
|
+
post: operations["cancelCodeChatKnowledgeJob"];
|
|
3922
|
+
delete?: never;
|
|
3923
|
+
options?: never;
|
|
3924
|
+
head?: never;
|
|
3925
|
+
patch?: never;
|
|
3926
|
+
trace?: never;
|
|
3927
|
+
};
|
|
3908
3928
|
"/workspaces/{workspaceId}/code-chat/readiness": {
|
|
3909
3929
|
parameters: {
|
|
3910
3930
|
query?: never;
|
|
@@ -25148,6 +25168,62 @@ export interface operations {
|
|
|
25148
25168
|
};
|
|
25149
25169
|
};
|
|
25150
25170
|
};
|
|
25171
|
+
cancelCodeChatKnowledgeJob: {
|
|
25172
|
+
parameters: {
|
|
25173
|
+
query?: never;
|
|
25174
|
+
header?: never;
|
|
25175
|
+
path: {
|
|
25176
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
25177
|
+
/** @description Active knowledge job id (`tai_workspace_code_knowledge_jobs.id`). */
|
|
25178
|
+
jobId: string;
|
|
25179
|
+
};
|
|
25180
|
+
cookie?: never;
|
|
25181
|
+
};
|
|
25182
|
+
requestBody?: never;
|
|
25183
|
+
responses: {
|
|
25184
|
+
/** @description Job cancelled */
|
|
25185
|
+
200: {
|
|
25186
|
+
headers: {
|
|
25187
|
+
[name: string]: unknown;
|
|
25188
|
+
};
|
|
25189
|
+
content: {
|
|
25190
|
+
"application/json": {
|
|
25191
|
+
job: components["schemas"]["CodeKnowledgeJobDto"];
|
|
25192
|
+
};
|
|
25193
|
+
};
|
|
25194
|
+
};
|
|
25195
|
+
401: components["responses"]["Unauthorized"];
|
|
25196
|
+
/** @description Engineering Context Graph is off */
|
|
25197
|
+
403: {
|
|
25198
|
+
headers: {
|
|
25199
|
+
[name: string]: unknown;
|
|
25200
|
+
};
|
|
25201
|
+
content: {
|
|
25202
|
+
/**
|
|
25203
|
+
* @example {
|
|
25204
|
+
* "error": "Code Intelligence is disabled for this workspace",
|
|
25205
|
+
* "code": "code_intelligence_disabled"
|
|
25206
|
+
* }
|
|
25207
|
+
*/
|
|
25208
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25209
|
+
};
|
|
25210
|
+
};
|
|
25211
|
+
/** @description No active knowledge job to cancel */
|
|
25212
|
+
404: {
|
|
25213
|
+
headers: {
|
|
25214
|
+
[name: string]: unknown;
|
|
25215
|
+
};
|
|
25216
|
+
content: {
|
|
25217
|
+
/**
|
|
25218
|
+
* @example {
|
|
25219
|
+
* "error": "No active knowledge job to cancel"
|
|
25220
|
+
* }
|
|
25221
|
+
*/
|
|
25222
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
25223
|
+
};
|
|
25224
|
+
};
|
|
25225
|
+
};
|
|
25226
|
+
};
|
|
25151
25227
|
getCodeChatReadiness: {
|
|
25152
25228
|
parameters: {
|
|
25153
25229
|
query?: never;
|