@thinkai/tai-api-contract 2.172.0 → 2.174.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/dist/generated/openapi.d.ts +126 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +121 -10
- package/package.json +1 -1
- package/src/generated/openapi.ts +126 -1
|
@@ -3278,7 +3278,7 @@ export interface paths {
|
|
|
3278
3278
|
};
|
|
3279
3279
|
/**
|
|
3280
3280
|
* Workspace chat readiness
|
|
3281
|
-
* @description Any workspace member. 403 `code_intelligence_disabled` when Engineering Context Graph is off. `status` is `indexing`, `generating_agent_md`, `failed`, or `ready`. Chat stays closed until `ready`: create thread and post message return `409 chat_not_ready` with `progressMessage` when status is not ready. An open index wave reports `indexing` until every job in that wave is terminal.
|
|
3281
|
+
* @description Any workspace member. 403 `code_intelligence_disabled` when Engineering Context Graph is off. `status` is `indexing`, `generating_agent_md`, `failed`, or `ready`. Chat stays closed until `ready`: create thread and post message return `409 chat_not_ready` with `progressMessage` when status is not ready. An open index wave reports `indexing` until every job in that wave is terminal. When ready, includes `activeProvider` and `attachmentLimits` for Conversations file uploads.
|
|
3282
3282
|
*/
|
|
3283
3283
|
get: operations["getCodeChatReadiness"];
|
|
3284
3284
|
put?: never;
|
|
@@ -3289,6 +3289,26 @@ export interface paths {
|
|
|
3289
3289
|
patch?: never;
|
|
3290
3290
|
trace?: never;
|
|
3291
3291
|
};
|
|
3292
|
+
"/workspaces/{workspaceId}/code-chat/attachments": {
|
|
3293
|
+
parameters: {
|
|
3294
|
+
query?: never;
|
|
3295
|
+
header?: never;
|
|
3296
|
+
path?: never;
|
|
3297
|
+
cookie?: never;
|
|
3298
|
+
};
|
|
3299
|
+
get?: never;
|
|
3300
|
+
put?: never;
|
|
3301
|
+
/**
|
|
3302
|
+
* Upload a Conversations attachment
|
|
3303
|
+
* @description Any workspace member when chat is ready. Validates size/type against the active provider profile (`attachmentLimits` from readiness). Returns metadata; pass `id` as `attachmentIds` on the next POST message. Max 5 MB per file.
|
|
3304
|
+
*/
|
|
3305
|
+
post: operations["postCodeChatAttachment"];
|
|
3306
|
+
delete?: never;
|
|
3307
|
+
options?: never;
|
|
3308
|
+
head?: never;
|
|
3309
|
+
patch?: never;
|
|
3310
|
+
trace?: never;
|
|
3311
|
+
};
|
|
3292
3312
|
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}": {
|
|
3293
3313
|
parameters: {
|
|
3294
3314
|
query?: never;
|
|
@@ -5504,6 +5524,26 @@ export interface components {
|
|
|
5504
5524
|
/** Format: date-time */
|
|
5505
5525
|
updatedAt: string | null;
|
|
5506
5526
|
};
|
|
5527
|
+
CodeChatAttachmentLimitsDto: {
|
|
5528
|
+
maxFiles: number;
|
|
5529
|
+
maxBytesPerFile: number;
|
|
5530
|
+
maxTotalBytes: number;
|
|
5531
|
+
maxTextChars: number;
|
|
5532
|
+
maxPdfPages: number;
|
|
5533
|
+
allowedMimeTypes: string[];
|
|
5534
|
+
allowedExtensions: string[];
|
|
5535
|
+
supportsImages: boolean;
|
|
5536
|
+
supportsPdf: boolean;
|
|
5537
|
+
};
|
|
5538
|
+
CodeChatAttachmentMetaDto: {
|
|
5539
|
+
/** Format: uuid */
|
|
5540
|
+
id: string;
|
|
5541
|
+
filename: string;
|
|
5542
|
+
mimeType: string;
|
|
5543
|
+
sizeBytes: number;
|
|
5544
|
+
/** Format: date-time */
|
|
5545
|
+
createdAt: string;
|
|
5546
|
+
};
|
|
5507
5547
|
CodeChatReadinessDto: {
|
|
5508
5548
|
/** @enum {string} */
|
|
5509
5549
|
status: "indexing" | "generating_agent_md" | "failed" | "ready";
|
|
@@ -5517,6 +5557,12 @@ export interface components {
|
|
|
5517
5557
|
indexingCadence: "daily" | "weekly" | "manual";
|
|
5518
5558
|
/** @enum {string|null} */
|
|
5519
5559
|
agentMdSource: "generated" | "admin" | null;
|
|
5560
|
+
/**
|
|
5561
|
+
* @description Active Ask synthesizer for attachment limit profiles
|
|
5562
|
+
* @enum {string|null}
|
|
5563
|
+
*/
|
|
5564
|
+
activeProvider?: "claude" | "cursor" | null;
|
|
5565
|
+
attachmentLimits?: components["schemas"]["CodeChatAttachmentLimitsDto"];
|
|
5520
5566
|
};
|
|
5521
5567
|
CodeWikiGuidanceDto: {
|
|
5522
5568
|
/**
|
|
@@ -10047,6 +10093,8 @@ export interface components {
|
|
|
10047
10093
|
citations: components["schemas"]["CodeChatCitationDto"][];
|
|
10048
10094
|
/** Format: date-time */
|
|
10049
10095
|
createdAt: string;
|
|
10096
|
+
/** @description Present on user turns that included uploaded files */
|
|
10097
|
+
attachments?: components["schemas"]["CodeChatAttachmentMetaDto"][];
|
|
10050
10098
|
};
|
|
10051
10099
|
CodeChatThreadDetailDto: components["schemas"]["CodeChatThreadDto"] & {
|
|
10052
10100
|
messages: components["schemas"]["CodeChatMessageDto"][];
|
|
@@ -10063,6 +10111,17 @@ export interface components {
|
|
|
10063
10111
|
* @enum {string}
|
|
10064
10112
|
*/
|
|
10065
10113
|
intent?: "inventory_apis" | "inventory_modules";
|
|
10114
|
+
/** @description Previously uploaded attachment ids to bind to this user turn */
|
|
10115
|
+
attachmentIds?: string[];
|
|
10116
|
+
};
|
|
10117
|
+
CodeChatUploadAttachmentBodyDto: {
|
|
10118
|
+
filename: string;
|
|
10119
|
+
mimeType: string;
|
|
10120
|
+
/** @description Base64-encoded file bytes (no data-URL prefix required) */
|
|
10121
|
+
contentBase64: string;
|
|
10122
|
+
/** Format: uuid */
|
|
10123
|
+
threadId?: string | null;
|
|
10124
|
+
pdfPageCount?: number | null;
|
|
10066
10125
|
};
|
|
10067
10126
|
CodeChatMessageReplyDto: components["schemas"]["CodeChatMessageDto"] & {
|
|
10068
10127
|
/**
|
|
@@ -11514,6 +11573,8 @@ export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntel
|
|
|
11514
11573
|
export type CodeWikiGuidanceTopicDto = components['schemas']['CodeWikiGuidanceTopicDto'];
|
|
11515
11574
|
export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntelligenceAgentMdDto'];
|
|
11516
11575
|
export type CodeIntelligenceAgentMdDto = components['schemas']['CodeIntelligenceAgentMdDto'];
|
|
11576
|
+
export type CodeChatAttachmentLimitsDto = components['schemas']['CodeChatAttachmentLimitsDto'];
|
|
11577
|
+
export type CodeChatAttachmentMetaDto = components['schemas']['CodeChatAttachmentMetaDto'];
|
|
11517
11578
|
export type CodeChatReadinessDto = components['schemas']['CodeChatReadinessDto'];
|
|
11518
11579
|
export type CodeWikiGuidanceDto = components['schemas']['CodeWikiGuidanceDto'];
|
|
11519
11580
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
@@ -11930,6 +11991,7 @@ export type CodeChatCitationDto = components['schemas']['CodeChatCitationDto'];
|
|
|
11930
11991
|
export type CodeChatMessageDto = components['schemas']['CodeChatMessageDto'];
|
|
11931
11992
|
export type CodeChatThreadDetailDto = components['schemas']['CodeChatThreadDetailDto'];
|
|
11932
11993
|
export type CodeChatPostMessageBodyDto = components['schemas']['CodeChatPostMessageBodyDto'];
|
|
11994
|
+
export type CodeChatUploadAttachmentBodyDto = components['schemas']['CodeChatUploadAttachmentBodyDto'];
|
|
11933
11995
|
export type CodeChatMessageReplyDto = components['schemas']['CodeChatMessageReplyDto'];
|
|
11934
11996
|
export type CodeChatApiRouteRowDto = components['schemas']['CodeChatApiRouteRowDto'];
|
|
11935
11997
|
export type CodeChatModuleInventoryRowDto = components['schemas']['CodeChatModuleInventoryRowDto'];
|
|
@@ -20940,6 +21002,69 @@ export interface operations {
|
|
|
20940
21002
|
};
|
|
20941
21003
|
};
|
|
20942
21004
|
};
|
|
21005
|
+
postCodeChatAttachment: {
|
|
21006
|
+
parameters: {
|
|
21007
|
+
query?: never;
|
|
21008
|
+
header?: never;
|
|
21009
|
+
path: {
|
|
21010
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21011
|
+
};
|
|
21012
|
+
cookie?: never;
|
|
21013
|
+
};
|
|
21014
|
+
requestBody: {
|
|
21015
|
+
content: {
|
|
21016
|
+
"application/json": components["schemas"]["CodeChatUploadAttachmentBodyDto"];
|
|
21017
|
+
};
|
|
21018
|
+
};
|
|
21019
|
+
responses: {
|
|
21020
|
+
/** @description Attachment stored */
|
|
21021
|
+
201: {
|
|
21022
|
+
headers: {
|
|
21023
|
+
[name: string]: unknown;
|
|
21024
|
+
};
|
|
21025
|
+
content: {
|
|
21026
|
+
"application/json": components["schemas"]["CodeChatAttachmentMetaDto"];
|
|
21027
|
+
};
|
|
21028
|
+
};
|
|
21029
|
+
/** @description Validation failed (size, type, totals) */
|
|
21030
|
+
400: {
|
|
21031
|
+
headers: {
|
|
21032
|
+
[name: string]: unknown;
|
|
21033
|
+
};
|
|
21034
|
+
content: {
|
|
21035
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21036
|
+
};
|
|
21037
|
+
};
|
|
21038
|
+
401: components["responses"]["Unauthorized"];
|
|
21039
|
+
/** @description Engineering Context Graph is off */
|
|
21040
|
+
403: {
|
|
21041
|
+
headers: {
|
|
21042
|
+
[name: string]: unknown;
|
|
21043
|
+
};
|
|
21044
|
+
content: {
|
|
21045
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21046
|
+
};
|
|
21047
|
+
};
|
|
21048
|
+
/** @description Chat not ready */
|
|
21049
|
+
409: {
|
|
21050
|
+
headers: {
|
|
21051
|
+
[name: string]: unknown;
|
|
21052
|
+
};
|
|
21053
|
+
content: {
|
|
21054
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21055
|
+
};
|
|
21056
|
+
};
|
|
21057
|
+
/** @description Could not process the file */
|
|
21058
|
+
422: {
|
|
21059
|
+
headers: {
|
|
21060
|
+
[name: string]: unknown;
|
|
21061
|
+
};
|
|
21062
|
+
content: {
|
|
21063
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21064
|
+
};
|
|
21065
|
+
};
|
|
21066
|
+
};
|
|
21067
|
+
};
|
|
20943
21068
|
getCodeChatIndex: {
|
|
20944
21069
|
parameters: {
|
|
20945
21070
|
query?: never;
|