@thinkai/tai-api-contract 2.116.0 → 2.118.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 +333 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +345 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +333 -0
package/src/generated/openapi.ts
CHANGED
|
@@ -3093,6 +3093,23 @@ export interface paths {
|
|
|
3093
3093
|
patch?: never;
|
|
3094
3094
|
trace?: never;
|
|
3095
3095
|
};
|
|
3096
|
+
"/workspaces/{workspaceId}/knowledge-pages/generate/status": {
|
|
3097
|
+
parameters: {
|
|
3098
|
+
query?: never;
|
|
3099
|
+
header?: never;
|
|
3100
|
+
path?: never;
|
|
3101
|
+
cookie?: never;
|
|
3102
|
+
};
|
|
3103
|
+
/** Get live workspace context generation progress */
|
|
3104
|
+
get: operations["getWorkspaceContextGenerationStatus"];
|
|
3105
|
+
put?: never;
|
|
3106
|
+
post?: never;
|
|
3107
|
+
delete?: never;
|
|
3108
|
+
options?: never;
|
|
3109
|
+
head?: never;
|
|
3110
|
+
patch?: never;
|
|
3111
|
+
trace?: never;
|
|
3112
|
+
};
|
|
3096
3113
|
"/workspaces/{workspaceId}/knowledge-pages/prd/generate": {
|
|
3097
3114
|
parameters: {
|
|
3098
3115
|
query?: never;
|
|
@@ -3113,6 +3130,46 @@ export interface paths {
|
|
|
3113
3130
|
patch?: never;
|
|
3114
3131
|
trace?: never;
|
|
3115
3132
|
};
|
|
3133
|
+
"/workspaces/{workspaceId}/knowledge-graph": {
|
|
3134
|
+
parameters: {
|
|
3135
|
+
query?: never;
|
|
3136
|
+
header?: never;
|
|
3137
|
+
path?: never;
|
|
3138
|
+
cookie?: never;
|
|
3139
|
+
};
|
|
3140
|
+
/**
|
|
3141
|
+
* Get the persisted workspace knowledge graph
|
|
3142
|
+
* @description Cross-repository graph (repo nodes and dependency edges) built when workspace knowledge pages are generated. Empty until the first successful generate.
|
|
3143
|
+
*/
|
|
3144
|
+
get: operations["getWorkspaceKnowledgeGraph"];
|
|
3145
|
+
put?: never;
|
|
3146
|
+
post?: never;
|
|
3147
|
+
delete?: never;
|
|
3148
|
+
options?: never;
|
|
3149
|
+
head?: never;
|
|
3150
|
+
patch?: never;
|
|
3151
|
+
trace?: never;
|
|
3152
|
+
};
|
|
3153
|
+
"/workspaces/{workspaceId}/knowledge-pages/export": {
|
|
3154
|
+
parameters: {
|
|
3155
|
+
query?: never;
|
|
3156
|
+
header?: never;
|
|
3157
|
+
path?: never;
|
|
3158
|
+
cookie?: never;
|
|
3159
|
+
};
|
|
3160
|
+
/**
|
|
3161
|
+
* Export workspace knowledge for local use
|
|
3162
|
+
* @description Download workspace context as `WORKSPACE.md` (markdown) or a structured `wkg-pack` JSON bundle. Markdown rewrites `ecg://` deep links per `linkMode`.
|
|
3163
|
+
*/
|
|
3164
|
+
get: operations["exportWorkspaceKnowledgePages"];
|
|
3165
|
+
put?: never;
|
|
3166
|
+
post?: never;
|
|
3167
|
+
delete?: never;
|
|
3168
|
+
options?: never;
|
|
3169
|
+
head?: never;
|
|
3170
|
+
patch?: never;
|
|
3171
|
+
trace?: never;
|
|
3172
|
+
};
|
|
3116
3173
|
"/workspaces/{workspaceId}/code-intelligence/repo-wiki-json": {
|
|
3117
3174
|
parameters: {
|
|
3118
3175
|
query?: never;
|
|
@@ -8372,6 +8429,8 @@ export interface components {
|
|
|
8372
8429
|
GenerateWorkspaceKnowledgePagesBodyDto: {
|
|
8373
8430
|
/** @description Ready repository indexes to synthesize from. Omit or send empty for all ready indexes. */
|
|
8374
8431
|
repoIds?: string[];
|
|
8432
|
+
/** @description When true and execution keys are configured, run a deeper LLM pass to expand Key decisions with multi-repo citations (falls back to deterministic on failure). */
|
|
8433
|
+
deepResearch?: boolean;
|
|
8375
8434
|
};
|
|
8376
8435
|
GenerateWorkspaceKnowledgePagesResultDto: {
|
|
8377
8436
|
items: components["schemas"]["WorkspaceKnowledgePageDto"][];
|
|
@@ -8385,6 +8444,21 @@ export interface components {
|
|
|
8385
8444
|
platformToolIds?: string[];
|
|
8386
8445
|
usage?: components["schemas"]["CodeIntelligenceUsageDto"];
|
|
8387
8446
|
};
|
|
8447
|
+
WorkspaceContextGenerationStatusDto: {
|
|
8448
|
+
/** @enum {string} */
|
|
8449
|
+
phase: "inventory" | "facts" | "contracts" | "integrations" | "clustering" | "llm" | "persisted";
|
|
8450
|
+
/** @enum {string} */
|
|
8451
|
+
status: "running" | "complete" | "failed";
|
|
8452
|
+
detail: string;
|
|
8453
|
+
/** Format: date-time */
|
|
8454
|
+
updatedAt: string;
|
|
8455
|
+
partial?: {
|
|
8456
|
+
repoCount?: number;
|
|
8457
|
+
contractCount?: number;
|
|
8458
|
+
groupCount?: number;
|
|
8459
|
+
standaloneCount?: number;
|
|
8460
|
+
};
|
|
8461
|
+
};
|
|
8388
8462
|
GeneratePrdDraftBodyDto: {
|
|
8389
8463
|
/** @description Feature or change the PRD should describe */
|
|
8390
8464
|
featureIntent: string;
|
|
@@ -8410,6 +8484,7 @@ export interface components {
|
|
|
8410
8484
|
id: string;
|
|
8411
8485
|
/** Format: uuid */
|
|
8412
8486
|
workspaceId: string;
|
|
8487
|
+
/** @description Page slug. `workspace-agent` is the canonical hub; supporting pages include `workspace-overview`, `cross-repo-map`, `shared-concepts`, and `prd-*` drafts. */
|
|
8413
8488
|
slug: string;
|
|
8414
8489
|
title: string;
|
|
8415
8490
|
bodyMd: string;
|
|
@@ -8444,11 +8519,158 @@ export interface components {
|
|
|
8444
8519
|
platformMissingToolIds: string[];
|
|
8445
8520
|
/** @description Bounded markdown summary of platform evidence for the system panel */
|
|
8446
8521
|
platformSnippet?: string;
|
|
8522
|
+
insights?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
8523
|
+
};
|
|
8524
|
+
WorkspaceContextInsightsDto: {
|
|
8525
|
+
/** @enum {string} */
|
|
8526
|
+
kind: "workspace-insights";
|
|
8527
|
+
/** @enum {integer} */
|
|
8528
|
+
version: 2;
|
|
8529
|
+
/** Format: date-time */
|
|
8530
|
+
generatedAt: string;
|
|
8531
|
+
repoRoles: {
|
|
8532
|
+
/** Format: uuid */
|
|
8533
|
+
repoId: string;
|
|
8534
|
+
repoName: string;
|
|
8535
|
+
role: string;
|
|
8536
|
+
rationale: string;
|
|
8537
|
+
}[];
|
|
8538
|
+
emergentInsights: {
|
|
8539
|
+
kind: string;
|
|
8540
|
+
title: string;
|
|
8541
|
+
detail: string;
|
|
8542
|
+
repoIds: string[];
|
|
8543
|
+
/** @enum {string} */
|
|
8544
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8545
|
+
evidenceRefs?: string[];
|
|
8546
|
+
}[];
|
|
8547
|
+
sharedConcepts: {
|
|
8548
|
+
term: string;
|
|
8549
|
+
repoNames: string[];
|
|
8550
|
+
kind: string;
|
|
8551
|
+
}[];
|
|
8552
|
+
crossRepoLinks: components["schemas"]["WorkspaceKnowledgeCrossRepoLinkDto"][];
|
|
8553
|
+
contracts: {
|
|
8554
|
+
id: string;
|
|
8555
|
+
kind: string;
|
|
8556
|
+
specKey: string;
|
|
8557
|
+
producers: {
|
|
8558
|
+
[key: string]: unknown;
|
|
8559
|
+
}[];
|
|
8560
|
+
consumers: {
|
|
8561
|
+
[key: string]: unknown;
|
|
8562
|
+
}[];
|
|
8563
|
+
/** @enum {string} */
|
|
8564
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8565
|
+
score: number;
|
|
8566
|
+
}[];
|
|
8567
|
+
groups: {
|
|
8568
|
+
id: string;
|
|
8569
|
+
kind: string;
|
|
8570
|
+
label: string;
|
|
8571
|
+
repoIds: string[];
|
|
8572
|
+
backboneContractIds: string[];
|
|
8573
|
+
possibilityLinkCount: number;
|
|
8574
|
+
integrationSummary: string;
|
|
8575
|
+
summary: string;
|
|
8576
|
+
}[];
|
|
8577
|
+
standaloneRepos: {
|
|
8578
|
+
/** Format: uuid */
|
|
8579
|
+
repoId: string;
|
|
8580
|
+
repoName: string;
|
|
8581
|
+
summary: string;
|
|
8582
|
+
}[];
|
|
8583
|
+
coverage: {
|
|
8584
|
+
/** Format: uuid */
|
|
8585
|
+
repoId: string;
|
|
8586
|
+
detected: number;
|
|
8587
|
+
resolved: number;
|
|
8588
|
+
external: number;
|
|
8589
|
+
unresolved: number;
|
|
8590
|
+
}[];
|
|
8591
|
+
integrationFootprints: {
|
|
8592
|
+
/** Format: uuid */
|
|
8593
|
+
repoId: string;
|
|
8594
|
+
repoName: string;
|
|
8595
|
+
availableSignals: string[];
|
|
8596
|
+
missingSignals: string[];
|
|
8597
|
+
gaps: string[];
|
|
8598
|
+
}[];
|
|
8599
|
+
integrationOpportunities: string[];
|
|
8447
8600
|
};
|
|
8448
8601
|
WorkspaceKnowledgePageListDto: {
|
|
8449
8602
|
items: components["schemas"]["WorkspaceKnowledgePageDto"][];
|
|
8450
8603
|
systemContext?: components["schemas"]["WorkspaceKnowledgeSystemContextDto"];
|
|
8451
8604
|
};
|
|
8605
|
+
WorkspaceKnowledgeGraphNodeDto: {
|
|
8606
|
+
id: string;
|
|
8607
|
+
label: string;
|
|
8608
|
+
score?: number;
|
|
8609
|
+
contractId?: string;
|
|
8610
|
+
/** @enum {string} */
|
|
8611
|
+
kind: "repo" | "package" | "protocol";
|
|
8612
|
+
};
|
|
8613
|
+
WorkspaceKnowledgeGraphEdgeDto: {
|
|
8614
|
+
/** @description Source node id (usually repoId) */
|
|
8615
|
+
from: string;
|
|
8616
|
+
/** @description Target node id (usually repoId) */
|
|
8617
|
+
to: string;
|
|
8618
|
+
relation: string;
|
|
8619
|
+
label?: string;
|
|
8620
|
+
/** @enum {string} */
|
|
8621
|
+
certainty?: "fact" | "inference" | "possibility";
|
|
8622
|
+
};
|
|
8623
|
+
WorkspaceKnowledgeGraphDto: {
|
|
8624
|
+
/** @enum {string} */
|
|
8625
|
+
kind: "workspace-kg";
|
|
8626
|
+
version: number;
|
|
8627
|
+
/** Format: date-time */
|
|
8628
|
+
exportedAt: string;
|
|
8629
|
+
nodes: components["schemas"]["WorkspaceKnowledgeGraphNodeDto"][];
|
|
8630
|
+
edges: components["schemas"]["WorkspaceKnowledgeGraphEdgeDto"][];
|
|
8631
|
+
};
|
|
8632
|
+
WorkspaceKnowledgeCrossRepoLinkDto: {
|
|
8633
|
+
/** Format: uuid */
|
|
8634
|
+
fromRepoId: string;
|
|
8635
|
+
/** Format: uuid */
|
|
8636
|
+
toRepoId: string;
|
|
8637
|
+
fromRepoName?: string;
|
|
8638
|
+
toRepoName?: string;
|
|
8639
|
+
relation: string;
|
|
8640
|
+
/** @enum {string} */
|
|
8641
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8642
|
+
evidence: string;
|
|
8643
|
+
label: string;
|
|
8644
|
+
};
|
|
8645
|
+
WorkspaceKnowledgePackRepoDto: {
|
|
8646
|
+
/** Format: uuid */
|
|
8647
|
+
repoId: string;
|
|
8648
|
+
repoName: string;
|
|
8649
|
+
commitSha?: string | null;
|
|
8650
|
+
providerSlug?: string | null;
|
|
8651
|
+
wikiOutline?: {
|
|
8652
|
+
slug: string;
|
|
8653
|
+
title: string;
|
|
8654
|
+
}[];
|
|
8655
|
+
};
|
|
8656
|
+
WorkspaceKnowledgePackPageDto: {
|
|
8657
|
+
slug: string;
|
|
8658
|
+
title: string;
|
|
8659
|
+
bodyMd: string;
|
|
8660
|
+
};
|
|
8661
|
+
WorkspaceKnowledgePackDto: {
|
|
8662
|
+
/** @enum {string} */
|
|
8663
|
+
kind: "wkg-pack";
|
|
8664
|
+
version: number;
|
|
8665
|
+
/** Format: date-time */
|
|
8666
|
+
exportedAt: string;
|
|
8667
|
+
workspaceName?: string;
|
|
8668
|
+
pages: components["schemas"]["WorkspaceKnowledgePackPageDto"][];
|
|
8669
|
+
crossRepoLinks: components["schemas"]["WorkspaceKnowledgeCrossRepoLinkDto"][];
|
|
8670
|
+
repos: components["schemas"]["WorkspaceKnowledgePackRepoDto"][];
|
|
8671
|
+
graph?: components["schemas"]["WorkspaceKnowledgeGraphDto"];
|
|
8672
|
+
workspaceContext?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
8673
|
+
};
|
|
8452
8674
|
CodeIntelligenceUsageDto: {
|
|
8453
8675
|
/** @description Ledger operation key (code_chat, prd_generate, workspace_kb, wiki_json_outline, wiki_enrich, …) */
|
|
8454
8676
|
operation: string;
|
|
@@ -9465,11 +9687,20 @@ export type RepoWikiJsonSummaryDto = components['schemas']['RepoWikiJsonSummaryD
|
|
|
9465
9687
|
export type RepoWikiJsonSummaryListDto = components['schemas']['RepoWikiJsonSummaryListDto'];
|
|
9466
9688
|
export type GenerateWorkspaceKnowledgePagesBodyDto = components['schemas']['GenerateWorkspaceKnowledgePagesBodyDto'];
|
|
9467
9689
|
export type GenerateWorkspaceKnowledgePagesResultDto = components['schemas']['GenerateWorkspaceKnowledgePagesResultDto'];
|
|
9690
|
+
export type WorkspaceContextGenerationStatusDto = components['schemas']['WorkspaceContextGenerationStatusDto'];
|
|
9468
9691
|
export type GeneratePrdDraftBodyDto = components['schemas']['GeneratePrdDraftBodyDto'];
|
|
9469
9692
|
export type GeneratePrdDraftResultDto = components['schemas']['GeneratePrdDraftResultDto'];
|
|
9470
9693
|
export type WorkspaceKnowledgePageDto = components['schemas']['WorkspaceKnowledgePageDto'];
|
|
9471
9694
|
export type WorkspaceKnowledgeSystemContextDto = components['schemas']['WorkspaceKnowledgeSystemContextDto'];
|
|
9695
|
+
export type WorkspaceContextInsightsDto = components['schemas']['WorkspaceContextInsightsDto'];
|
|
9472
9696
|
export type WorkspaceKnowledgePageListDto = components['schemas']['WorkspaceKnowledgePageListDto'];
|
|
9697
|
+
export type WorkspaceKnowledgeGraphNodeDto = components['schemas']['WorkspaceKnowledgeGraphNodeDto'];
|
|
9698
|
+
export type WorkspaceKnowledgeGraphEdgeDto = components['schemas']['WorkspaceKnowledgeGraphEdgeDto'];
|
|
9699
|
+
export type WorkspaceKnowledgeGraphDto = components['schemas']['WorkspaceKnowledgeGraphDto'];
|
|
9700
|
+
export type WorkspaceKnowledgeCrossRepoLinkDto = components['schemas']['WorkspaceKnowledgeCrossRepoLinkDto'];
|
|
9701
|
+
export type WorkspaceKnowledgePackRepoDto = components['schemas']['WorkspaceKnowledgePackRepoDto'];
|
|
9702
|
+
export type WorkspaceKnowledgePackPageDto = components['schemas']['WorkspaceKnowledgePackPageDto'];
|
|
9703
|
+
export type WorkspaceKnowledgePackDto = components['schemas']['WorkspaceKnowledgePackDto'];
|
|
9473
9704
|
export type CodeIntelligenceUsageDto = components['schemas']['CodeIntelligenceUsageDto'];
|
|
9474
9705
|
export type CodeIntelligenceTokenUsageByOperationDto = components['schemas']['CodeIntelligenceTokenUsageByOperationDto'];
|
|
9475
9706
|
export type CodeIntelligenceTokenUsageByRepoDto = components['schemas']['CodeIntelligenceTokenUsageByRepoDto'];
|
|
@@ -17620,6 +17851,29 @@ export interface operations {
|
|
|
17620
17851
|
};
|
|
17621
17852
|
};
|
|
17622
17853
|
};
|
|
17854
|
+
getWorkspaceContextGenerationStatus: {
|
|
17855
|
+
parameters: {
|
|
17856
|
+
query?: never;
|
|
17857
|
+
header?: never;
|
|
17858
|
+
path: {
|
|
17859
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17860
|
+
};
|
|
17861
|
+
cookie?: never;
|
|
17862
|
+
};
|
|
17863
|
+
requestBody?: never;
|
|
17864
|
+
responses: {
|
|
17865
|
+
/** @description Current or most recent workspace context generation phase */
|
|
17866
|
+
200: {
|
|
17867
|
+
headers: {
|
|
17868
|
+
[name: string]: unknown;
|
|
17869
|
+
};
|
|
17870
|
+
content: {
|
|
17871
|
+
"application/json": components["schemas"]["WorkspaceContextGenerationStatusDto"];
|
|
17872
|
+
};
|
|
17873
|
+
};
|
|
17874
|
+
401: components["responses"]["Unauthorized"];
|
|
17875
|
+
};
|
|
17876
|
+
};
|
|
17623
17877
|
generatePrdDraft: {
|
|
17624
17878
|
parameters: {
|
|
17625
17879
|
query?: never;
|
|
@@ -17668,6 +17922,85 @@ export interface operations {
|
|
|
17668
17922
|
};
|
|
17669
17923
|
};
|
|
17670
17924
|
};
|
|
17925
|
+
getWorkspaceKnowledgeGraph: {
|
|
17926
|
+
parameters: {
|
|
17927
|
+
query?: never;
|
|
17928
|
+
header?: never;
|
|
17929
|
+
path: {
|
|
17930
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17931
|
+
};
|
|
17932
|
+
cookie?: never;
|
|
17933
|
+
};
|
|
17934
|
+
requestBody?: never;
|
|
17935
|
+
responses: {
|
|
17936
|
+
/** @description Workspace knowledge graph */
|
|
17937
|
+
200: {
|
|
17938
|
+
headers: {
|
|
17939
|
+
[name: string]: unknown;
|
|
17940
|
+
};
|
|
17941
|
+
content: {
|
|
17942
|
+
"application/json": components["schemas"]["WorkspaceKnowledgeGraphDto"];
|
|
17943
|
+
};
|
|
17944
|
+
};
|
|
17945
|
+
401: components["responses"]["Unauthorized"];
|
|
17946
|
+
/** @description Graph not generated yet */
|
|
17947
|
+
404: {
|
|
17948
|
+
headers: {
|
|
17949
|
+
[name: string]: unknown;
|
|
17950
|
+
};
|
|
17951
|
+
content?: never;
|
|
17952
|
+
};
|
|
17953
|
+
};
|
|
17954
|
+
};
|
|
17955
|
+
exportWorkspaceKnowledgePages: {
|
|
17956
|
+
parameters: {
|
|
17957
|
+
query?: {
|
|
17958
|
+
format?: "markdown" | "wkg-pack" | "zip";
|
|
17959
|
+
/** @description How to rewrite ecg:// links in markdown export */
|
|
17960
|
+
linkMode?: "github" | "platform" | "relative";
|
|
17961
|
+
};
|
|
17962
|
+
header?: never;
|
|
17963
|
+
path: {
|
|
17964
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
17965
|
+
};
|
|
17966
|
+
cookie?: never;
|
|
17967
|
+
};
|
|
17968
|
+
requestBody?: never;
|
|
17969
|
+
responses: {
|
|
17970
|
+
/** @description Export payload (markdown body or wkg-pack JSON) */
|
|
17971
|
+
200: {
|
|
17972
|
+
headers: {
|
|
17973
|
+
[name: string]: unknown;
|
|
17974
|
+
};
|
|
17975
|
+
content: {
|
|
17976
|
+
"text/markdown": string;
|
|
17977
|
+
"application/json": components["schemas"]["WorkspaceKnowledgePackDto"];
|
|
17978
|
+
};
|
|
17979
|
+
};
|
|
17980
|
+
401: components["responses"]["Unauthorized"];
|
|
17981
|
+
/** @description Code Intelligence is disabled for this workspace */
|
|
17982
|
+
403: {
|
|
17983
|
+
headers: {
|
|
17984
|
+
[name: string]: unknown;
|
|
17985
|
+
};
|
|
17986
|
+
content?: never;
|
|
17987
|
+
};
|
|
17988
|
+
/** @description No workspace knowledge pages to export */
|
|
17989
|
+
404: {
|
|
17990
|
+
headers: {
|
|
17991
|
+
[name: string]: unknown;
|
|
17992
|
+
};
|
|
17993
|
+
content?: never;
|
|
17994
|
+
};
|
|
17995
|
+
/** @description ZIP export not implemented (use markdown or wkg-pack) */
|
|
17996
|
+
501: {
|
|
17997
|
+
headers: {
|
|
17998
|
+
[name: string]: unknown;
|
|
17999
|
+
};
|
|
18000
|
+
content?: never;
|
|
18001
|
+
};
|
|
18002
|
+
};
|
|
18003
|
+
};
|
|
17671
18004
|
listRepoWikiJsonSummaries: {
|
|
17672
18005
|
parameters: {
|
|
17673
18006
|
query?: never;
|