@thinkai/tai-api-contract 2.145.0 → 2.146.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.145.0
4
+ version: 2.146.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}/...`.
@@ -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
@@ -21220,6 +21258,16 @@ components:
21220
21258
  createdAt: { type: string, format: date-time }
21221
21259
  updatedAt: { type: string, format: date-time }
21222
21260
 
21261
+ CodeChatThreadPatchBodyDto:
21262
+ type: object
21263
+ required: [title]
21264
+ properties:
21265
+ title:
21266
+ type: string
21267
+ minLength: 1
21268
+ maxLength: 200
21269
+ description: Display title for the conversation.
21270
+
21223
21271
  CodeChatThreadListDto:
21224
21272
  type: object
21225
21273
  required: [items]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.145.0",
3
+ "version": "2.146.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3233,7 +3233,8 @@ export interface paths {
3233
3233
  delete: operations["deleteCodeChatThread"];
3234
3234
  options?: never;
3235
3235
  head?: never;
3236
- patch?: never;
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": {
@@ -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'];
@@ -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;