@thinkai/tai-api-contract 2.256.0 → 2.257.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.
|
@@ -4615,6 +4615,46 @@ export interface paths {
|
|
|
4615
4615
|
patch?: never;
|
|
4616
4616
|
trace?: never;
|
|
4617
4617
|
};
|
|
4618
|
+
"/workspaces/{workspaceId}/code-chat/threads/{threadId}/turn/stream": {
|
|
4619
|
+
parameters: {
|
|
4620
|
+
query?: never;
|
|
4621
|
+
header?: never;
|
|
4622
|
+
path?: never;
|
|
4623
|
+
cookie?: never;
|
|
4624
|
+
};
|
|
4625
|
+
/**
|
|
4626
|
+
* Reattach to the Ask that is running on a thread
|
|
4627
|
+
* @description For a page that reloaded while an Ask was running. Replays the stages and answer text so far, then follows the turn live. Closing this stream does not stop the turn; use the cancel route. A few pages can follow one turn; past that the oldest is dropped. Runs on one replica: when the turn is not running there, the reply is JSON `{ running: false }` and the page reads the saved thread instead.
|
|
4628
|
+
*/
|
|
4629
|
+
get: operations["streamCodeChatTurn"];
|
|
4630
|
+
put?: never;
|
|
4631
|
+
post?: never;
|
|
4632
|
+
delete?: never;
|
|
4633
|
+
options?: never;
|
|
4634
|
+
head?: never;
|
|
4635
|
+
patch?: never;
|
|
4636
|
+
trace?: never;
|
|
4637
|
+
};
|
|
4638
|
+
"/workspaces/{workspaceId}/code-chat/threads/{threadId}/cancel": {
|
|
4639
|
+
parameters: {
|
|
4640
|
+
query?: never;
|
|
4641
|
+
header?: never;
|
|
4642
|
+
path?: never;
|
|
4643
|
+
cookie?: never;
|
|
4644
|
+
};
|
|
4645
|
+
get?: never;
|
|
4646
|
+
put?: never;
|
|
4647
|
+
/**
|
|
4648
|
+
* Stop the Ask that is running on a thread
|
|
4649
|
+
* @description An Ask keeps running when the reader's page closes or reloads. This is the Stop button. Runs on one replica; `cancelled` is false when no turn was running there, and the turn then ends at its time limit.
|
|
4650
|
+
*/
|
|
4651
|
+
post: operations["cancelCodeChatTurn"];
|
|
4652
|
+
delete?: never;
|
|
4653
|
+
options?: never;
|
|
4654
|
+
head?: never;
|
|
4655
|
+
patch?: never;
|
|
4656
|
+
trace?: never;
|
|
4657
|
+
};
|
|
4618
4658
|
"/workspaces/{workspaceId}/code-chat/threads/{threadId}/messages/{messageId}/feedback": {
|
|
4619
4659
|
parameters: {
|
|
4620
4660
|
query?: never;
|
|
@@ -29776,7 +29816,7 @@ export interface operations {
|
|
|
29776
29816
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29777
29817
|
};
|
|
29778
29818
|
};
|
|
29779
|
-
/** @description Chat not ready, no ready corpus in thread scope,
|
|
29819
|
+
/** @description Chat not ready, no ready corpus in thread scope, `continueAsk` expired / mismatched (`continue_expired`), or this thread is still answering its last question (`ask_turn_in_progress`). */
|
|
29780
29820
|
409: {
|
|
29781
29821
|
headers: {
|
|
29782
29822
|
[name: string]: unknown;
|
|
@@ -29806,6 +29846,77 @@ export interface operations {
|
|
|
29806
29846
|
};
|
|
29807
29847
|
};
|
|
29808
29848
|
};
|
|
29849
|
+
streamCodeChatTurn: {
|
|
29850
|
+
parameters: {
|
|
29851
|
+
query?: never;
|
|
29852
|
+
header?: never;
|
|
29853
|
+
path: {
|
|
29854
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29855
|
+
threadId: string;
|
|
29856
|
+
};
|
|
29857
|
+
cookie?: never;
|
|
29858
|
+
};
|
|
29859
|
+
requestBody?: never;
|
|
29860
|
+
responses: {
|
|
29861
|
+
/** @description `text/event-stream` with `event: turn` (`{ startedAt }`), then `event: stage` (`{ stage, detail? }`), `event: token` (`{ text }`, the text so far, then new text), `event: reset` (`{}`), `event: error` (`{ error, code }`), and `event: done` (CodeChatMessageReplyDto). The stream ends after `done` or `error`, or without either when the turn was stopped or dropped this page; read the thread then. */
|
|
29862
|
+
200: {
|
|
29863
|
+
headers: {
|
|
29864
|
+
[name: string]: unknown;
|
|
29865
|
+
};
|
|
29866
|
+
content: {
|
|
29867
|
+
"application/json": {
|
|
29868
|
+
running: boolean;
|
|
29869
|
+
};
|
|
29870
|
+
"text/event-stream": string;
|
|
29871
|
+
};
|
|
29872
|
+
};
|
|
29873
|
+
401: components["responses"]["Unauthorized"];
|
|
29874
|
+
/** @description Not found */
|
|
29875
|
+
404: {
|
|
29876
|
+
headers: {
|
|
29877
|
+
[name: string]: unknown;
|
|
29878
|
+
};
|
|
29879
|
+
content: {
|
|
29880
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29881
|
+
};
|
|
29882
|
+
};
|
|
29883
|
+
};
|
|
29884
|
+
};
|
|
29885
|
+
cancelCodeChatTurn: {
|
|
29886
|
+
parameters: {
|
|
29887
|
+
query?: never;
|
|
29888
|
+
header?: never;
|
|
29889
|
+
path: {
|
|
29890
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29891
|
+
threadId: string;
|
|
29892
|
+
};
|
|
29893
|
+
cookie?: never;
|
|
29894
|
+
};
|
|
29895
|
+
requestBody?: never;
|
|
29896
|
+
responses: {
|
|
29897
|
+
/** @description Stop was requested (or nothing was running) */
|
|
29898
|
+
200: {
|
|
29899
|
+
headers: {
|
|
29900
|
+
[name: string]: unknown;
|
|
29901
|
+
};
|
|
29902
|
+
content: {
|
|
29903
|
+
"application/json": {
|
|
29904
|
+
cancelled: boolean;
|
|
29905
|
+
};
|
|
29906
|
+
};
|
|
29907
|
+
};
|
|
29908
|
+
401: components["responses"]["Unauthorized"];
|
|
29909
|
+
/** @description Not found */
|
|
29910
|
+
404: {
|
|
29911
|
+
headers: {
|
|
29912
|
+
[name: string]: unknown;
|
|
29913
|
+
};
|
|
29914
|
+
content: {
|
|
29915
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29916
|
+
};
|
|
29917
|
+
};
|
|
29918
|
+
};
|
|
29919
|
+
};
|
|
29809
29920
|
postCodeChatMessageFeedback: {
|
|
29810
29921
|
parameters: {
|
|
29811
29922
|
query?: never;
|