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