@thinkai/tai-api-contract 2.177.0 → 2.180.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.
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.180.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}/...`.
|
|
@@ -9268,6 +9268,32 @@ paths:
|
|
|
9268
9268
|
"401":
|
|
9269
9269
|
$ref: "#/components/responses/Unauthorized"
|
|
9270
9270
|
|
|
9271
|
+
/workspaces/{workspaceId}/knowledge-pages/{slug}:
|
|
9272
|
+
delete:
|
|
9273
|
+
tags: [CodeChat]
|
|
9274
|
+
summary: Delete a workspace knowledge page by slug
|
|
9275
|
+
description: >-
|
|
9276
|
+
Removes one page (typically a `prd-*` / `rfc-*` / `adr-*` draft). Does not
|
|
9277
|
+
regenerate the rest of the knowledge base.
|
|
9278
|
+
operationId: deleteWorkspaceKnowledgePage
|
|
9279
|
+
parameters:
|
|
9280
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
9281
|
+
- name: slug
|
|
9282
|
+
in: path
|
|
9283
|
+
required: true
|
|
9284
|
+
schema: { type: string, minLength: 1, maxLength: 200 }
|
|
9285
|
+
responses:
|
|
9286
|
+
"204":
|
|
9287
|
+
description: Page deleted
|
|
9288
|
+
"401":
|
|
9289
|
+
$ref: "#/components/responses/Unauthorized"
|
|
9290
|
+
"404":
|
|
9291
|
+
description: Page not found (`knowledge_page_not_found`)
|
|
9292
|
+
content:
|
|
9293
|
+
application/json:
|
|
9294
|
+
schema:
|
|
9295
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9296
|
+
|
|
9271
9297
|
/workspaces/{workspaceId}/knowledge-pages/generate:
|
|
9272
9298
|
post:
|
|
9273
9299
|
tags: [CodeChat]
|
|
@@ -24463,6 +24489,7 @@ components:
|
|
|
24463
24489
|
- explain
|
|
24464
24490
|
- platform_ops
|
|
24465
24491
|
- feature_impact
|
|
24492
|
+
- pr_review
|
|
24466
24493
|
- prd_request
|
|
24467
24494
|
description: Classified Ask intent for the turn
|
|
24468
24495
|
skillId:
|
|
@@ -24475,8 +24502,30 @@ components:
|
|
|
24475
24502
|
- chat-cicd
|
|
24476
24503
|
- chat-stack
|
|
24477
24504
|
- chat-platform
|
|
24505
|
+
- chat-workspace
|
|
24506
|
+
- chat-product
|
|
24507
|
+
- chat-pr-review
|
|
24478
24508
|
- chat-wiki
|
|
24479
24509
|
description: Conversation skill pack that grounded the LLM answer (Wave 10)
|
|
24510
|
+
userMessage:
|
|
24511
|
+
type: string
|
|
24512
|
+
description: >
|
|
24513
|
+
Short customer-safe summary when mode is failed. Shown in the reply body;
|
|
24514
|
+
raw provider detail is only in providerFailures / debug marker.
|
|
24515
|
+
providerFailures:
|
|
24516
|
+
type: array
|
|
24517
|
+
description: >
|
|
24518
|
+
Structured provider failures for Conversations ⓘ hover (primary first).
|
|
24519
|
+
Also embedded in content as `<!-- code-intel-debug:{...} -->` for reload.
|
|
24520
|
+
items:
|
|
24521
|
+
type: object
|
|
24522
|
+
required: [provider, sanitized, raw]
|
|
24523
|
+
properties:
|
|
24524
|
+
provider:
|
|
24525
|
+
type: string
|
|
24526
|
+
enum: [anthropic_messages, cursor_agent]
|
|
24527
|
+
sanitized: { type: string }
|
|
24528
|
+
raw: { type: string }
|
|
24480
24529
|
usage:
|
|
24481
24530
|
$ref: "#/components/schemas/CodeIntelligenceUsageDto"
|
|
24482
24531
|
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3432,6 +3432,26 @@ export interface paths {
|
|
|
3432
3432
|
patch?: never;
|
|
3433
3433
|
trace?: never;
|
|
3434
3434
|
};
|
|
3435
|
+
"/workspaces/{workspaceId}/knowledge-pages/{slug}": {
|
|
3436
|
+
parameters: {
|
|
3437
|
+
query?: never;
|
|
3438
|
+
header?: never;
|
|
3439
|
+
path?: never;
|
|
3440
|
+
cookie?: never;
|
|
3441
|
+
};
|
|
3442
|
+
get?: never;
|
|
3443
|
+
put?: never;
|
|
3444
|
+
post?: never;
|
|
3445
|
+
/**
|
|
3446
|
+
* Delete a workspace knowledge page by slug
|
|
3447
|
+
* @description Removes one page (typically a `prd-*` / `rfc-*` / `adr-*` draft). Does not regenerate the rest of the knowledge base.
|
|
3448
|
+
*/
|
|
3449
|
+
delete: operations["deleteWorkspaceKnowledgePage"];
|
|
3450
|
+
options?: never;
|
|
3451
|
+
head?: never;
|
|
3452
|
+
patch?: never;
|
|
3453
|
+
trace?: never;
|
|
3454
|
+
};
|
|
3435
3455
|
"/workspaces/{workspaceId}/knowledge-pages/generate": {
|
|
3436
3456
|
parameters: {
|
|
3437
3457
|
query?: never;
|
|
@@ -10305,12 +10325,21 @@ export interface components {
|
|
|
10305
10325
|
* @description Classified Ask intent for the turn
|
|
10306
10326
|
* @enum {string}
|
|
10307
10327
|
*/
|
|
10308
|
-
intent?: "inventory_apis" | "inventory_modules" | "explain" | "platform_ops" | "feature_impact" | "prd_request";
|
|
10328
|
+
intent?: "inventory_apis" | "inventory_modules" | "explain" | "platform_ops" | "feature_impact" | "pr_review" | "prd_request";
|
|
10309
10329
|
/**
|
|
10310
10330
|
* @description Conversation skill pack that grounded the LLM answer (Wave 10)
|
|
10311
10331
|
* @enum {string}
|
|
10312
10332
|
*/
|
|
10313
|
-
skillId?: "chat-api-detail" | "chat-architecture" | "chat-tests" | "chat-contracts" | "chat-cicd" | "chat-stack" | "chat-platform" | "chat-wiki";
|
|
10333
|
+
skillId?: "chat-api-detail" | "chat-architecture" | "chat-tests" | "chat-contracts" | "chat-cicd" | "chat-stack" | "chat-platform" | "chat-workspace" | "chat-product" | "chat-pr-review" | "chat-wiki";
|
|
10334
|
+
/** @description Short customer-safe summary when mode is failed. Shown in the reply body; raw provider detail is only in providerFailures / debug marker. */
|
|
10335
|
+
userMessage?: string;
|
|
10336
|
+
/** @description Structured provider failures for Conversations ⓘ hover (primary first). Also embedded in content as `<!-- code-intel-debug:{...} -->` for reload. */
|
|
10337
|
+
providerFailures?: {
|
|
10338
|
+
/** @enum {string} */
|
|
10339
|
+
provider: "anthropic_messages" | "cursor_agent";
|
|
10340
|
+
sanitized: string;
|
|
10341
|
+
raw: string;
|
|
10342
|
+
}[];
|
|
10314
10343
|
usage?: components["schemas"]["CodeIntelligenceUsageDto"];
|
|
10315
10344
|
};
|
|
10316
10345
|
CodeChatApiRouteRowDto: {
|
|
@@ -21748,6 +21777,37 @@ export interface operations {
|
|
|
21748
21777
|
401: components["responses"]["Unauthorized"];
|
|
21749
21778
|
};
|
|
21750
21779
|
};
|
|
21780
|
+
deleteWorkspaceKnowledgePage: {
|
|
21781
|
+
parameters: {
|
|
21782
|
+
query?: never;
|
|
21783
|
+
header?: never;
|
|
21784
|
+
path: {
|
|
21785
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21786
|
+
slug: string;
|
|
21787
|
+
};
|
|
21788
|
+
cookie?: never;
|
|
21789
|
+
};
|
|
21790
|
+
requestBody?: never;
|
|
21791
|
+
responses: {
|
|
21792
|
+
/** @description Page deleted */
|
|
21793
|
+
204: {
|
|
21794
|
+
headers: {
|
|
21795
|
+
[name: string]: unknown;
|
|
21796
|
+
};
|
|
21797
|
+
content?: never;
|
|
21798
|
+
};
|
|
21799
|
+
401: components["responses"]["Unauthorized"];
|
|
21800
|
+
/** @description Page not found (`knowledge_page_not_found`) */
|
|
21801
|
+
404: {
|
|
21802
|
+
headers: {
|
|
21803
|
+
[name: string]: unknown;
|
|
21804
|
+
};
|
|
21805
|
+
content: {
|
|
21806
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21807
|
+
};
|
|
21808
|
+
};
|
|
21809
|
+
};
|
|
21810
|
+
};
|
|
21751
21811
|
generateWorkspaceKnowledgePages: {
|
|
21752
21812
|
parameters: {
|
|
21753
21813
|
query?: never;
|