@thinkai/tai-api-contract 2.81.0 → 2.82.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.
@@ -7324,6 +7324,18 @@ export interface components {
7324
7324
  CodeChatSyncIndexesResultDto: {
7325
7325
  enqueued: number;
7326
7326
  items?: components["schemas"]["CodeChatIndexDto"][];
7327
+ /** @description Repositories requested (or considered) for sync but not enqueued */
7328
+ skipped?: components["schemas"]["CodeChatSkippedRepoDto"][];
7329
+ };
7330
+ CodeChatSkippedRepoDto: {
7331
+ /** Format: uuid */
7332
+ repoId: string;
7333
+ repoName: string;
7334
+ /**
7335
+ * @description Stable machine-readable skip reason
7336
+ * @enum {string}
7337
+ */
7338
+ code: "repo_ineligible";
7327
7339
  };
7328
7340
  CodeChatThreadDto: {
7329
7341
  /** Format: uuid */
@@ -7386,8 +7398,48 @@ export interface components {
7386
7398
  content: string;
7387
7399
  };
7388
7400
  CodeChatMessageReplyDto: components["schemas"]["CodeChatMessageDto"] & {
7401
+ /**
7402
+ * @description How the assistant answer was produced. `inventory` returns a deterministic catalog (APIs or modules) rather than LLM synthesis.
7403
+ * @enum {string}
7404
+ */
7405
+ mode: "llm" | "retrieval" | "inventory";
7406
+ /** @description Optional typed inventory payload for rich UI tables */
7407
+ structured?: components["schemas"]["CodeChatStructuredBlockDto"];
7408
+ /** @description True when wiki pages from one or more repos contributed to LLM context */
7409
+ groundedInWiki?: boolean;
7410
+ /** @description Repository names whose wiki pages grounded the answer */
7411
+ wikiRepos?: string[];
7412
+ };
7413
+ CodeChatApiRouteRowDto: {
7414
+ method: string;
7415
+ path: string;
7416
+ file: string;
7417
+ line?: number;
7418
+ summary?: string;
7419
+ /** Format: uuid */
7420
+ repoId?: string;
7421
+ repoName?: string;
7422
+ providerSlug?: string;
7423
+ commitSha?: string | null;
7424
+ };
7425
+ CodeChatModuleInventoryRowDto: {
7426
+ name: string;
7389
7427
  /** @enum {string} */
7390
- mode: "llm" | "retrieval";
7428
+ kind: "package" | "root" | "area";
7429
+ path: string;
7430
+ summary?: string;
7431
+ /** Format: uuid */
7432
+ repoId?: string;
7433
+ repoName?: string;
7434
+ };
7435
+ CodeChatStructuredBlockDto: {
7436
+ /** @enum {string} */
7437
+ kind: "api_inventory";
7438
+ rows: components["schemas"]["CodeChatApiRouteRowDto"][];
7439
+ } | {
7440
+ /** @enum {string} */
7441
+ kind: "module_inventory";
7442
+ rows: components["schemas"]["CodeChatModuleInventoryRowDto"][];
7391
7443
  };
7392
7444
  CodeChatWikiPageDto: {
7393
7445
  /** Format: uuid */
@@ -8214,6 +8266,7 @@ export type CodeChatIndexListDto = components['schemas']['CodeChatIndexListDto']
8214
8266
  export type CodeChatCreateIndexBodyDto = components['schemas']['CodeChatCreateIndexBodyDto'];
8215
8267
  export type CodeChatSyncIndexesBodyDto = components['schemas']['CodeChatSyncIndexesBodyDto'];
8216
8268
  export type CodeChatSyncIndexesResultDto = components['schemas']['CodeChatSyncIndexesResultDto'];
8269
+ export type CodeChatSkippedRepoDto = components['schemas']['CodeChatSkippedRepoDto'];
8217
8270
  export type CodeChatThreadDto = components['schemas']['CodeChatThreadDto'];
8218
8271
  export type CodeChatThreadListDto = components['schemas']['CodeChatThreadListDto'];
8219
8272
  export type CodeChatCreateThreadBodyDto = components['schemas']['CodeChatCreateThreadBodyDto'];
@@ -8222,6 +8275,9 @@ export type CodeChatMessageDto = components['schemas']['CodeChatMessageDto'];
8222
8275
  export type CodeChatThreadDetailDto = components['schemas']['CodeChatThreadDetailDto'];
8223
8276
  export type CodeChatPostMessageBodyDto = components['schemas']['CodeChatPostMessageBodyDto'];
8224
8277
  export type CodeChatMessageReplyDto = components['schemas']['CodeChatMessageReplyDto'];
8278
+ export type CodeChatApiRouteRowDto = components['schemas']['CodeChatApiRouteRowDto'];
8279
+ export type CodeChatModuleInventoryRowDto = components['schemas']['CodeChatModuleInventoryRowDto'];
8280
+ export type CodeChatStructuredBlockDto = components['schemas']['CodeChatStructuredBlockDto'];
8225
8281
  export type CodeChatWikiPageDto = components['schemas']['CodeChatWikiPageDto'];
8226
8282
  export type CodeChatWikiPageListDto = components['schemas']['CodeChatWikiPageListDto'];
8227
8283
  export type CodeChatSymbolQueryBodyDto = components['schemas']['CodeChatSymbolQueryBodyDto'];
@@ -15416,6 +15472,21 @@ export interface operations {
15416
15472
  "application/json": components["schemas"]["ErrorMessageDto"];
15417
15473
  };
15418
15474
  };
15475
+ /** @description Repository blocked by workspace eligibility or size limits */
15476
+ 422: {
15477
+ headers: {
15478
+ [name: string]: unknown;
15479
+ };
15480
+ content: {
15481
+ /**
15482
+ * @example {
15483
+ * "error": "Repository exceeds the workspace eligibility limits and cannot be indexed",
15484
+ * "code": "repo_ineligible"
15485
+ * }
15486
+ */
15487
+ "application/json": components["schemas"]["ErrorMessageDto"];
15488
+ };
15489
+ };
15419
15490
  };
15420
15491
  };
15421
15492
  syncCodeChatIndexes: {