@thinkai/tai-api-contract 2.256.0 → 2.258.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;
@@ -13287,6 +13327,10 @@ export interface components {
13287
13327
  provider: string;
13288
13328
  /** Format: date-time */
13289
13329
  updatedAt: string | null;
13330
+ /** @description Roster columns the HRIS returns. Read-only: a changed value arrives on the next sync and a blank stays blank. PATCH and CSV import ignore these columns. */
13331
+ providerColumns: string[];
13332
+ /** @description Roster columns the HRIS does not return. Only these accept user input (overlay). */
13333
+ overlayColumns: string[];
13290
13334
  people: components["schemas"]["HrisRosterPersonDto"][];
13291
13335
  };
13292
13336
  HrisRosterPersonPatchDto: {
@@ -29776,7 +29820,7 @@ export interface operations {
29776
29820
  "application/json": components["schemas"]["ErrorMessageDto"];
29777
29821
  };
29778
29822
  };
29779
- /** @description Chat not ready, no ready corpus in thread scope, or `continueAsk` expired / mismatched (`continue_expired`). */
29823
+ /** @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
29824
  409: {
29781
29825
  headers: {
29782
29826
  [name: string]: unknown;
@@ -29806,6 +29850,77 @@ export interface operations {
29806
29850
  };
29807
29851
  };
29808
29852
  };
29853
+ streamCodeChatTurn: {
29854
+ parameters: {
29855
+ query?: never;
29856
+ header?: never;
29857
+ path: {
29858
+ workspaceId: components["parameters"]["WorkspaceId"];
29859
+ threadId: string;
29860
+ };
29861
+ cookie?: never;
29862
+ };
29863
+ requestBody?: never;
29864
+ responses: {
29865
+ /** @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. */
29866
+ 200: {
29867
+ headers: {
29868
+ [name: string]: unknown;
29869
+ };
29870
+ content: {
29871
+ "application/json": {
29872
+ running: boolean;
29873
+ };
29874
+ "text/event-stream": string;
29875
+ };
29876
+ };
29877
+ 401: components["responses"]["Unauthorized"];
29878
+ /** @description Not found */
29879
+ 404: {
29880
+ headers: {
29881
+ [name: string]: unknown;
29882
+ };
29883
+ content: {
29884
+ "application/json": components["schemas"]["ErrorMessageDto"];
29885
+ };
29886
+ };
29887
+ };
29888
+ };
29889
+ cancelCodeChatTurn: {
29890
+ parameters: {
29891
+ query?: never;
29892
+ header?: never;
29893
+ path: {
29894
+ workspaceId: components["parameters"]["WorkspaceId"];
29895
+ threadId: string;
29896
+ };
29897
+ cookie?: never;
29898
+ };
29899
+ requestBody?: never;
29900
+ responses: {
29901
+ /** @description Stop was requested (or nothing was running) */
29902
+ 200: {
29903
+ headers: {
29904
+ [name: string]: unknown;
29905
+ };
29906
+ content: {
29907
+ "application/json": {
29908
+ cancelled: boolean;
29909
+ };
29910
+ };
29911
+ };
29912
+ 401: components["responses"]["Unauthorized"];
29913
+ /** @description Not found */
29914
+ 404: {
29915
+ headers: {
29916
+ [name: string]: unknown;
29917
+ };
29918
+ content: {
29919
+ "application/json": components["schemas"]["ErrorMessageDto"];
29920
+ };
29921
+ };
29922
+ };
29923
+ };
29809
29924
  postCodeChatMessageFeedback: {
29810
29925
  parameters: {
29811
29926
  query?: never;