@thinkai/tai-api-contract 2.144.1 → 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.144.1
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
@@ -19372,6 +19410,14 @@ components:
19372
19410
  type: string
19373
19411
  minLength: 1
19374
19412
  maxLength: 256
19413
+ shareMode:
19414
+ type: string
19415
+ enum: [internal, external]
19416
+ default: internal
19417
+ description: >
19418
+ Export audience recorded for audit. `external` means the client generated a
19419
+ share-safe PDF with organizational identifiers redacted. Omitted legacy requests
19420
+ are recorded as `internal`.
19375
19421
  providerIds:
19376
19422
  type: array
19377
19423
  maxItems: 32
@@ -21212,6 +21258,16 @@ components:
21212
21258
  createdAt: { type: string, format: date-time }
21213
21259
  updatedAt: { type: string, format: date-time }
21214
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
+
21215
21271
  CodeChatThreadListDto:
21216
21272
  type: object
21217
21273
  required: [items]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.144.1",
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": {
@@ -8241,6 +8242,12 @@ export interface components {
8241
8242
  /** @description IANA timezone printed on the PDF cover. */
8242
8243
  timezone: string;
8243
8244
  filename: string;
8245
+ /**
8246
+ * @description Export audience recorded for audit. `external` means the client generated a share-safe PDF with organizational identifiers redacted. Omitted legacy requests are recorded as `internal`.
8247
+ * @default internal
8248
+ * @enum {string}
8249
+ */
8250
+ shareMode: "internal" | "external";
8244
8251
  providerIds?: string[];
8245
8252
  repoIds?: string[];
8246
8253
  };
@@ -9139,6 +9146,10 @@ export interface components {
9139
9146
  /** Format: date-time */
9140
9147
  updatedAt: string;
9141
9148
  };
9149
+ CodeChatThreadPatchBodyDto: {
9150
+ /** @description Display title for the conversation. */
9151
+ title: string;
9152
+ };
9142
9153
  CodeChatThreadListDto: {
9143
9154
  items: components["schemas"]["CodeChatThreadDto"][];
9144
9155
  };
@@ -10820,6 +10831,7 @@ export type CodeChatSyncIndexesBodyDto = components['schemas']['CodeChatSyncInde
10820
10831
  export type CodeChatSyncIndexesResultDto = components['schemas']['CodeChatSyncIndexesResultDto'];
10821
10832
  export type CodeChatSkippedRepoDto = components['schemas']['CodeChatSkippedRepoDto'];
10822
10833
  export type CodeChatThreadDto = components['schemas']['CodeChatThreadDto'];
10834
+ export type CodeChatThreadPatchBodyDto = components['schemas']['CodeChatThreadPatchBodyDto'];
10823
10835
  export type CodeChatThreadListDto = components['schemas']['CodeChatThreadListDto'];
10824
10836
  export type CodeChatCreateThreadBodyDto = components['schemas']['CodeChatCreateThreadBodyDto'];
10825
10837
  export type CodeChatCitationDto = components['schemas']['CodeChatCitationDto'];
@@ -19544,6 +19556,52 @@ export interface operations {
19544
19556
  };
19545
19557
  };
19546
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
+ };
19547
19605
  postCodeChatMessage: {
19548
19606
  parameters: {
19549
19607
  query?: never;