@thinkai/tai-api-contract 2.85.0 → 2.89.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 +125 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +131 -4
- package/package.json +1 -1
- package/src/generated/openapi.ts +125 -3
|
@@ -2847,6 +2847,26 @@ export interface paths {
|
|
|
2847
2847
|
patch?: never;
|
|
2848
2848
|
trace?: never;
|
|
2849
2849
|
};
|
|
2850
|
+
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}/wiki/export": {
|
|
2851
|
+
parameters: {
|
|
2852
|
+
query?: never;
|
|
2853
|
+
header?: never;
|
|
2854
|
+
path?: never;
|
|
2855
|
+
cookie?: never;
|
|
2856
|
+
};
|
|
2857
|
+
/**
|
|
2858
|
+
* Export the wiki as an Open Knowledge Format (OKF) v0.2 bundle
|
|
2859
|
+
* @description Adapter over the stored wiki for OKF-aware platforms and agents. Does not change the live pages. Rewrites `wiki:` links to relative concept paths, adds YAML front matter plus reserved `index.md` / `log.md`, and validates Mermaid (invalid diagrams are demoted to a text fence inside the export).
|
|
2860
|
+
*/
|
|
2861
|
+
get: operations["exportCodeChatWikiOkf"];
|
|
2862
|
+
put?: never;
|
|
2863
|
+
post?: never;
|
|
2864
|
+
delete?: never;
|
|
2865
|
+
options?: never;
|
|
2866
|
+
head?: never;
|
|
2867
|
+
patch?: never;
|
|
2868
|
+
trace?: never;
|
|
2869
|
+
};
|
|
2850
2870
|
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}/wiki/{slug}": {
|
|
2851
2871
|
parameters: {
|
|
2852
2872
|
query?: never;
|
|
@@ -7333,6 +7353,8 @@ export interface components {
|
|
|
7333
7353
|
edgeCount: number;
|
|
7334
7354
|
commitSha?: string | null;
|
|
7335
7355
|
errorMessage?: string | null;
|
|
7356
|
+
/** @description Human-readable indexing stage while a job is running (queued, clone, graph, save, wiki). Cleared when the index is ready or failed. */
|
|
7357
|
+
progressMessage?: string | null;
|
|
7336
7358
|
/** Format: date-time */
|
|
7337
7359
|
indexedAt?: string | null;
|
|
7338
7360
|
/** Format: date-time */
|
|
@@ -7352,6 +7374,11 @@ export interface components {
|
|
|
7352
7374
|
CodeChatSyncIndexesBodyDto: {
|
|
7353
7375
|
/** @description Optional subset; omit or empty to enqueue all readiness GitHub repos. */
|
|
7354
7376
|
repoIds?: string[];
|
|
7377
|
+
/**
|
|
7378
|
+
* @description When true, re-enqueue even if the repository is already indexing or was indexed within the last 10 minutes.
|
|
7379
|
+
* @default false
|
|
7380
|
+
*/
|
|
7381
|
+
force: boolean;
|
|
7355
7382
|
};
|
|
7356
7383
|
CodeChatSyncIndexesResultDto: {
|
|
7357
7384
|
enqueued: number;
|
|
@@ -7367,7 +7394,7 @@ export interface components {
|
|
|
7367
7394
|
* @description Stable machine-readable skip reason
|
|
7368
7395
|
* @enum {string}
|
|
7369
7396
|
*/
|
|
7370
|
-
code: "repo_ineligible";
|
|
7397
|
+
code: "repo_ineligible" | "indexed_recently" | "index_in_progress";
|
|
7371
7398
|
};
|
|
7372
7399
|
CodeChatThreadDto: {
|
|
7373
7400
|
/** Format: uuid */
|
|
@@ -7494,6 +7521,23 @@ export interface components {
|
|
|
7494
7521
|
CodeChatWikiPageListDto: {
|
|
7495
7522
|
items: components["schemas"]["CodeChatWikiPageDto"][];
|
|
7496
7523
|
};
|
|
7524
|
+
/** @description Portable OKF v0.2 knowledge bundle. Unpack `files` into a directory tree for OKF-aware tools; the in-app wiki is unchanged. */
|
|
7525
|
+
CodeChatWikiOkfExportDto: {
|
|
7526
|
+
/** @enum {string} */
|
|
7527
|
+
kind: "okf-bundle";
|
|
7528
|
+
/** @enum {string} */
|
|
7529
|
+
okfVersion: "0.2";
|
|
7530
|
+
/** Format: date-time */
|
|
7531
|
+
generatedAt: string;
|
|
7532
|
+
repoName: string;
|
|
7533
|
+
files: {
|
|
7534
|
+
/** @description Path inside the bundle (e.g. concepts/overview.md) */
|
|
7535
|
+
path: string;
|
|
7536
|
+
content: string;
|
|
7537
|
+
}[];
|
|
7538
|
+
/** @description Concept paths whose Mermaid failed validation and was exported as a text fence */
|
|
7539
|
+
demotedDiagrams: string[];
|
|
7540
|
+
};
|
|
7497
7541
|
CodeChatSymbolQueryBodyDto: {
|
|
7498
7542
|
query: string;
|
|
7499
7543
|
repoIds?: string[];
|
|
@@ -7594,8 +7638,14 @@ export interface components {
|
|
|
7594
7638
|
}[];
|
|
7595
7639
|
};
|
|
7596
7640
|
CodeChatVisualizeBodyDto: {
|
|
7597
|
-
/**
|
|
7598
|
-
|
|
7641
|
+
/**
|
|
7642
|
+
* @description Omit or send `auto` to let the server pick the most informative view for the repository. `blast` traces `query` as a symbol and falls back to a focused subgraph, or to impact hotspots when `query` is empty.
|
|
7643
|
+
* @enum {string}
|
|
7644
|
+
*/
|
|
7645
|
+
kind?: "auto" | "dependency" | "module" | "focus" | "impact" | "blast" | "atlas";
|
|
7646
|
+
/** @description Symbol, path, or plain-language request ("how does billing reach the ledger"). Free text is resolved against the graph to seed a focused view. */
|
|
7647
|
+
query?: string;
|
|
7648
|
+
/** @description Deprecated alias for `query`. */
|
|
7599
7649
|
symbol?: string;
|
|
7600
7650
|
repoIds?: string[];
|
|
7601
7651
|
};
|
|
@@ -7610,10 +7660,34 @@ export interface components {
|
|
|
7610
7660
|
source: string;
|
|
7611
7661
|
/** @description Set when dependency edges could not be resolved and a fallback view is shown. */
|
|
7612
7662
|
note?: string;
|
|
7663
|
+
/** @description Short plain-prose narrative for the Engineering Context Graph panel. LLM-written when the workspace has an agent execution key, otherwise a deterministic reading of hubs and areas from the graph. */
|
|
7664
|
+
architectureBrief?: string;
|
|
7665
|
+
/**
|
|
7666
|
+
* @description Which reading of the repository this diagram is. `module` rolls files up into source groups when too few file dependencies resolved for a file map, `focus` answers a plain-language request, `impact` shows the most depended-on files, and `blast` traces one symbol.
|
|
7667
|
+
* @enum {string}
|
|
7668
|
+
*/
|
|
7669
|
+
kind?: "dependency" | "module" | "focus" | "impact" | "blast";
|
|
7670
|
+
/** @description Measured facts about the graph — hubs, dependency coverage, test share, route count. */
|
|
7671
|
+
insights?: string[];
|
|
7672
|
+
/** @description Present when free text drove the view. */
|
|
7673
|
+
focus?: {
|
|
7674
|
+
query: string;
|
|
7675
|
+
/** @description Files that matched the request and seeded the graph. */
|
|
7676
|
+
paths: string[];
|
|
7677
|
+
};
|
|
7613
7678
|
nodes: {
|
|
7614
7679
|
id: string;
|
|
7615
7680
|
label: string;
|
|
7616
7681
|
kind?: string;
|
|
7682
|
+
path?: string;
|
|
7683
|
+
summary?: string;
|
|
7684
|
+
group?: string;
|
|
7685
|
+
inDegree?: number;
|
|
7686
|
+
outDegree?: number;
|
|
7687
|
+
/** @description File matched the request; highlight it as the answer. */
|
|
7688
|
+
isFocus?: boolean;
|
|
7689
|
+
/** @description Files behind a module box. */
|
|
7690
|
+
weight?: number;
|
|
7617
7691
|
}[];
|
|
7618
7692
|
edges: {
|
|
7619
7693
|
from: string;
|
|
@@ -8313,6 +8387,7 @@ export type CodeChatModuleInventoryRowDto = components['schemas']['CodeChatModul
|
|
|
8313
8387
|
export type CodeChatStructuredBlockDto = components['schemas']['CodeChatStructuredBlockDto'];
|
|
8314
8388
|
export type CodeChatWikiPageDto = components['schemas']['CodeChatWikiPageDto'];
|
|
8315
8389
|
export type CodeChatWikiPageListDto = components['schemas']['CodeChatWikiPageListDto'];
|
|
8390
|
+
export type CodeChatWikiOkfExportDto = components['schemas']['CodeChatWikiOkfExportDto'];
|
|
8316
8391
|
export type CodeChatSymbolQueryBodyDto = components['schemas']['CodeChatSymbolQueryBodyDto'];
|
|
8317
8392
|
export type CodeChatSymbolHitDto = components['schemas']['CodeChatSymbolHitDto'];
|
|
8318
8393
|
export type CodeChatSymbolHitListDto = components['schemas']['CodeChatSymbolHitListDto'];
|
|
@@ -15837,6 +15912,53 @@ export interface operations {
|
|
|
15837
15912
|
};
|
|
15838
15913
|
};
|
|
15839
15914
|
};
|
|
15915
|
+
exportCodeChatWikiOkf: {
|
|
15916
|
+
parameters: {
|
|
15917
|
+
query?: {
|
|
15918
|
+
format?: "okf";
|
|
15919
|
+
};
|
|
15920
|
+
header?: never;
|
|
15921
|
+
path: {
|
|
15922
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
15923
|
+
indexId: string;
|
|
15924
|
+
};
|
|
15925
|
+
cookie?: never;
|
|
15926
|
+
};
|
|
15927
|
+
requestBody?: never;
|
|
15928
|
+
responses: {
|
|
15929
|
+
/** @description OKF bundle (JSON with a files array of path/content pairs) */
|
|
15930
|
+
200: {
|
|
15931
|
+
headers: {
|
|
15932
|
+
[name: string]: unknown;
|
|
15933
|
+
};
|
|
15934
|
+
content: {
|
|
15935
|
+
"application/json": components["schemas"]["CodeChatWikiOkfExportDto"];
|
|
15936
|
+
};
|
|
15937
|
+
};
|
|
15938
|
+
/** @description Unsupported format */
|
|
15939
|
+
400: {
|
|
15940
|
+
headers: {
|
|
15941
|
+
[name: string]: unknown;
|
|
15942
|
+
};
|
|
15943
|
+
content?: never;
|
|
15944
|
+
};
|
|
15945
|
+
401: components["responses"]["Unauthorized"];
|
|
15946
|
+
/** @description Index not found */
|
|
15947
|
+
404: {
|
|
15948
|
+
headers: {
|
|
15949
|
+
[name: string]: unknown;
|
|
15950
|
+
};
|
|
15951
|
+
content?: never;
|
|
15952
|
+
};
|
|
15953
|
+
/** @description Wiki has no pages yet */
|
|
15954
|
+
409: {
|
|
15955
|
+
headers: {
|
|
15956
|
+
[name: string]: unknown;
|
|
15957
|
+
};
|
|
15958
|
+
content?: never;
|
|
15959
|
+
};
|
|
15960
|
+
};
|
|
15961
|
+
};
|
|
15840
15962
|
getCodeChatWikiPage: {
|
|
15841
15963
|
parameters: {
|
|
15842
15964
|
query?: never;
|