@thinkai/tai-api-contract 2.116.0 → 2.119.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 +498 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +656 -3
- package/package.json +1 -1
- package/src/generated/openapi.ts +498 -1
- package/src/index.ts +116 -0
package/package.json
CHANGED
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;
|
|
@@ -3867,6 +3924,26 @@ export interface paths {
|
|
|
3867
3924
|
patch: operations["patchWorkspaceZenHrBranch"];
|
|
3868
3925
|
trace?: never;
|
|
3869
3926
|
};
|
|
3927
|
+
"/workspaces/{workspaceId}/ingest-coverage": {
|
|
3928
|
+
parameters: {
|
|
3929
|
+
query?: never;
|
|
3930
|
+
header?: never;
|
|
3931
|
+
path?: never;
|
|
3932
|
+
cookie?: never;
|
|
3933
|
+
};
|
|
3934
|
+
/**
|
|
3935
|
+
* Ingest / backfill data coverage
|
|
3936
|
+
* @description Read-only snapshot of historical ingest coverage for connected pipelines (productivity GitHub, AI usage/spend per provider, SDLC components, monitoring, HRIS). Aggregates existing watermarks and stored day/week evidence — does not trigger ingest or refresh. Requires workspace membership. Disconnected sources are omitted.
|
|
3937
|
+
*/
|
|
3938
|
+
get: operations["getWorkspaceIngestCoverage"];
|
|
3939
|
+
put?: never;
|
|
3940
|
+
post?: never;
|
|
3941
|
+
delete?: never;
|
|
3942
|
+
options?: never;
|
|
3943
|
+
head?: never;
|
|
3944
|
+
patch?: never;
|
|
3945
|
+
trace?: never;
|
|
3946
|
+
};
|
|
3870
3947
|
"/workspaces/{workspaceId}/hris/status": {
|
|
3871
3948
|
parameters: {
|
|
3872
3949
|
query?: never;
|
|
@@ -7594,6 +7671,115 @@ export interface components {
|
|
|
7594
7671
|
*/
|
|
7595
7672
|
syncedAt: string | null;
|
|
7596
7673
|
};
|
|
7674
|
+
IngestCoverageGapDto: {
|
|
7675
|
+
/** @description Inclusive gap start (ISO date or UTC Monday week start). */
|
|
7676
|
+
from: string;
|
|
7677
|
+
/** @description Inclusive gap end (ISO date or UTC Monday week start). */
|
|
7678
|
+
to: string;
|
|
7679
|
+
};
|
|
7680
|
+
IngestCoverageLastRunDto: {
|
|
7681
|
+
/** Format: date-time */
|
|
7682
|
+
startedAt?: string | null;
|
|
7683
|
+
/** Format: date-time */
|
|
7684
|
+
completedAt?: string | null;
|
|
7685
|
+
/** Format: int64 */
|
|
7686
|
+
durationMs?: number | null;
|
|
7687
|
+
/** @description Pipeline-specific run mode (e.g. recent, historical, refresh). */
|
|
7688
|
+
mode?: string | null;
|
|
7689
|
+
/** @enum {string|null} */
|
|
7690
|
+
outcome?: "ok" | "failed" | "in_progress" | null;
|
|
7691
|
+
};
|
|
7692
|
+
IngestCoverageProductivityRepoDto: {
|
|
7693
|
+
slug: string;
|
|
7694
|
+
/** @enum {string} */
|
|
7695
|
+
queueStatus: "pending" | "complete" | "failed" | "skipped";
|
|
7696
|
+
weeksWithData?: number | null;
|
|
7697
|
+
earliestWeek?: string | null;
|
|
7698
|
+
latestWeek?: string | null;
|
|
7699
|
+
missingWeeks?: number | null;
|
|
7700
|
+
gaps?: components["schemas"]["IngestCoverageGapDto"][];
|
|
7701
|
+
lastErrorKind?: string | null;
|
|
7702
|
+
};
|
|
7703
|
+
IngestCoverageProductivityDetailDto: {
|
|
7704
|
+
/** @enum {string|null} */
|
|
7705
|
+
phase?: "recent" | "historical" | "complete" | null;
|
|
7706
|
+
historicalWeekStart?: string | null;
|
|
7707
|
+
pendingRepoCount?: number;
|
|
7708
|
+
skippedRepoCount?: number;
|
|
7709
|
+
failedRepoCount?: number;
|
|
7710
|
+
coveragePercent?: number | null;
|
|
7711
|
+
repos?: components["schemas"]["IngestCoverageProductivityRepoDto"][];
|
|
7712
|
+
};
|
|
7713
|
+
IngestCoverageFactFamilyDto: {
|
|
7714
|
+
/** @enum {string} */
|
|
7715
|
+
id: "daily_usage" | "spend_daily" | "model_daily" | "product_daily";
|
|
7716
|
+
expectedDays?: number;
|
|
7717
|
+
daysPresent?: number;
|
|
7718
|
+
ingestedFrom?: string | null;
|
|
7719
|
+
ingestedTo?: string | null;
|
|
7720
|
+
missingDayCount?: number;
|
|
7721
|
+
gaps?: components["schemas"]["IngestCoverageGapDto"][];
|
|
7722
|
+
};
|
|
7723
|
+
IngestCoverageAiDetailDto: {
|
|
7724
|
+
factFamilies?: components["schemas"]["IngestCoverageFactFamilyDto"][];
|
|
7725
|
+
refreshInProgress?: boolean;
|
|
7726
|
+
};
|
|
7727
|
+
IngestCoverageSdlcComponentDto: {
|
|
7728
|
+
/** @enum {string} */
|
|
7729
|
+
id: "rollup" | "security_ingest" | "governance_github" | "governance_auditor" | "financial_ingest" | "cost_refresher";
|
|
7730
|
+
latestBucketDate?: string | null;
|
|
7731
|
+
lookbackDays?: number;
|
|
7732
|
+
mode?: string | null;
|
|
7733
|
+
gaps?: components["schemas"]["IngestCoverageGapDto"][];
|
|
7734
|
+
missingCount?: number | null;
|
|
7735
|
+
/** Format: date-time */
|
|
7736
|
+
lastSuccessAt?: string | null;
|
|
7737
|
+
/** Format: int64 */
|
|
7738
|
+
staleForMs?: number | null;
|
|
7739
|
+
isStale?: boolean;
|
|
7740
|
+
};
|
|
7741
|
+
IngestCoverageSdlcDetailDto: {
|
|
7742
|
+
components?: components["schemas"]["IngestCoverageSdlcComponentDto"][];
|
|
7743
|
+
};
|
|
7744
|
+
IngestCoverageSyncDetailDto: {
|
|
7745
|
+
provider?: string;
|
|
7746
|
+
/** @enum {string} */
|
|
7747
|
+
syncStatus?: "ok" | "error" | "never";
|
|
7748
|
+
};
|
|
7749
|
+
IngestCoveragePipelineDto: {
|
|
7750
|
+
id: string;
|
|
7751
|
+
/** @enum {string} */
|
|
7752
|
+
kind: "productivity_github" | "ai_usage" | "sdlc_github" | "monitoring" | "hris";
|
|
7753
|
+
provider?: string | null;
|
|
7754
|
+
/** @enum {string} */
|
|
7755
|
+
status: "not_started" | "backfilling" | "incremental" | "complete" | "failed" | "in_progress";
|
|
7756
|
+
targetWindowDays: number;
|
|
7757
|
+
ingestedFrom?: string | null;
|
|
7758
|
+
ingestedTo?: string | null;
|
|
7759
|
+
progressPercent?: number | null;
|
|
7760
|
+
/** Format: date-time */
|
|
7761
|
+
lastSuccessAt?: string | null;
|
|
7762
|
+
/** Format: date-time */
|
|
7763
|
+
lastAttemptAt?: string | null;
|
|
7764
|
+
lastErrorKind?: string | null;
|
|
7765
|
+
lastErrorMessage?: string | null;
|
|
7766
|
+
/** Format: int64 */
|
|
7767
|
+
staleForMs?: number | null;
|
|
7768
|
+
isStale: boolean;
|
|
7769
|
+
dataLagDays?: number | null;
|
|
7770
|
+
gaps?: components["schemas"]["IngestCoverageGapDto"][];
|
|
7771
|
+
missingCount?: number | null;
|
|
7772
|
+
lastRun?: components["schemas"]["IngestCoverageLastRunDto"];
|
|
7773
|
+
productivity?: components["schemas"]["IngestCoverageProductivityDetailDto"];
|
|
7774
|
+
ai?: components["schemas"]["IngestCoverageAiDetailDto"];
|
|
7775
|
+
sdlc?: components["schemas"]["IngestCoverageSdlcDetailDto"];
|
|
7776
|
+
sync?: components["schemas"]["IngestCoverageSyncDetailDto"];
|
|
7777
|
+
};
|
|
7778
|
+
IngestCoverageDto: {
|
|
7779
|
+
pipelines: components["schemas"]["IngestCoveragePipelineDto"][];
|
|
7780
|
+
/** Format: date-time */
|
|
7781
|
+
generatedAt?: string;
|
|
7782
|
+
};
|
|
7597
7783
|
HrisSyncStatusDto: {
|
|
7598
7784
|
/** @description Provider identifier (e.g. 'personio', 'zenhr'). */
|
|
7599
7785
|
provider: string;
|
|
@@ -7876,7 +8062,7 @@ export interface components {
|
|
|
7876
8062
|
InsightsResponseMeta: {
|
|
7877
8063
|
/**
|
|
7878
8064
|
* Format: date-time
|
|
7879
|
-
* @description ISO timestamp when numbers were computed server-side
|
|
8065
|
+
* @description ISO timestamp when numbers were computed server-side. An empty string means the workspace has no successful AI-tool refresh or productivity ingest timestamp yet.
|
|
7880
8066
|
*/
|
|
7881
8067
|
syncedAt: string;
|
|
7882
8068
|
/**
|
|
@@ -8372,6 +8558,8 @@ export interface components {
|
|
|
8372
8558
|
GenerateWorkspaceKnowledgePagesBodyDto: {
|
|
8373
8559
|
/** @description Ready repository indexes to synthesize from. Omit or send empty for all ready indexes. */
|
|
8374
8560
|
repoIds?: string[];
|
|
8561
|
+
/** @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). */
|
|
8562
|
+
deepResearch?: boolean;
|
|
8375
8563
|
};
|
|
8376
8564
|
GenerateWorkspaceKnowledgePagesResultDto: {
|
|
8377
8565
|
items: components["schemas"]["WorkspaceKnowledgePageDto"][];
|
|
@@ -8385,6 +8573,21 @@ export interface components {
|
|
|
8385
8573
|
platformToolIds?: string[];
|
|
8386
8574
|
usage?: components["schemas"]["CodeIntelligenceUsageDto"];
|
|
8387
8575
|
};
|
|
8576
|
+
WorkspaceContextGenerationStatusDto: {
|
|
8577
|
+
/** @enum {string} */
|
|
8578
|
+
phase: "inventory" | "facts" | "contracts" | "integrations" | "clustering" | "llm" | "persisted";
|
|
8579
|
+
/** @enum {string} */
|
|
8580
|
+
status: "running" | "complete" | "failed";
|
|
8581
|
+
detail: string;
|
|
8582
|
+
/** Format: date-time */
|
|
8583
|
+
updatedAt: string;
|
|
8584
|
+
partial?: {
|
|
8585
|
+
repoCount?: number;
|
|
8586
|
+
contractCount?: number;
|
|
8587
|
+
groupCount?: number;
|
|
8588
|
+
standaloneCount?: number;
|
|
8589
|
+
};
|
|
8590
|
+
};
|
|
8388
8591
|
GeneratePrdDraftBodyDto: {
|
|
8389
8592
|
/** @description Feature or change the PRD should describe */
|
|
8390
8593
|
featureIntent: string;
|
|
@@ -8410,6 +8613,7 @@ export interface components {
|
|
|
8410
8613
|
id: string;
|
|
8411
8614
|
/** Format: uuid */
|
|
8412
8615
|
workspaceId: string;
|
|
8616
|
+
/** @description Page slug. `workspace-agent` is the canonical hub; supporting pages include `workspace-overview`, `cross-repo-map`, `shared-concepts`, and `prd-*` drafts. */
|
|
8413
8617
|
slug: string;
|
|
8414
8618
|
title: string;
|
|
8415
8619
|
bodyMd: string;
|
|
@@ -8444,11 +8648,158 @@ export interface components {
|
|
|
8444
8648
|
platformMissingToolIds: string[];
|
|
8445
8649
|
/** @description Bounded markdown summary of platform evidence for the system panel */
|
|
8446
8650
|
platformSnippet?: string;
|
|
8651
|
+
insights?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
8652
|
+
};
|
|
8653
|
+
WorkspaceContextInsightsDto: {
|
|
8654
|
+
/** @enum {string} */
|
|
8655
|
+
kind: "workspace-insights";
|
|
8656
|
+
/** @enum {integer} */
|
|
8657
|
+
version: 2;
|
|
8658
|
+
/** Format: date-time */
|
|
8659
|
+
generatedAt: string;
|
|
8660
|
+
repoRoles: {
|
|
8661
|
+
/** Format: uuid */
|
|
8662
|
+
repoId: string;
|
|
8663
|
+
repoName: string;
|
|
8664
|
+
role: string;
|
|
8665
|
+
rationale: string;
|
|
8666
|
+
}[];
|
|
8667
|
+
emergentInsights: {
|
|
8668
|
+
kind: string;
|
|
8669
|
+
title: string;
|
|
8670
|
+
detail: string;
|
|
8671
|
+
repoIds: string[];
|
|
8672
|
+
/** @enum {string} */
|
|
8673
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8674
|
+
evidenceRefs?: string[];
|
|
8675
|
+
}[];
|
|
8676
|
+
sharedConcepts: {
|
|
8677
|
+
term: string;
|
|
8678
|
+
repoNames: string[];
|
|
8679
|
+
kind: string;
|
|
8680
|
+
}[];
|
|
8681
|
+
crossRepoLinks: components["schemas"]["WorkspaceKnowledgeCrossRepoLinkDto"][];
|
|
8682
|
+
contracts: {
|
|
8683
|
+
id: string;
|
|
8684
|
+
kind: string;
|
|
8685
|
+
specKey: string;
|
|
8686
|
+
producers: {
|
|
8687
|
+
[key: string]: unknown;
|
|
8688
|
+
}[];
|
|
8689
|
+
consumers: {
|
|
8690
|
+
[key: string]: unknown;
|
|
8691
|
+
}[];
|
|
8692
|
+
/** @enum {string} */
|
|
8693
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8694
|
+
score: number;
|
|
8695
|
+
}[];
|
|
8696
|
+
groups: {
|
|
8697
|
+
id: string;
|
|
8698
|
+
kind: string;
|
|
8699
|
+
label: string;
|
|
8700
|
+
repoIds: string[];
|
|
8701
|
+
backboneContractIds: string[];
|
|
8702
|
+
possibilityLinkCount: number;
|
|
8703
|
+
integrationSummary: string;
|
|
8704
|
+
summary: string;
|
|
8705
|
+
}[];
|
|
8706
|
+
standaloneRepos: {
|
|
8707
|
+
/** Format: uuid */
|
|
8708
|
+
repoId: string;
|
|
8709
|
+
repoName: string;
|
|
8710
|
+
summary: string;
|
|
8711
|
+
}[];
|
|
8712
|
+
coverage: {
|
|
8713
|
+
/** Format: uuid */
|
|
8714
|
+
repoId: string;
|
|
8715
|
+
detected: number;
|
|
8716
|
+
resolved: number;
|
|
8717
|
+
external: number;
|
|
8718
|
+
unresolved: number;
|
|
8719
|
+
}[];
|
|
8720
|
+
integrationFootprints: {
|
|
8721
|
+
/** Format: uuid */
|
|
8722
|
+
repoId: string;
|
|
8723
|
+
repoName: string;
|
|
8724
|
+
availableSignals: string[];
|
|
8725
|
+
missingSignals: string[];
|
|
8726
|
+
gaps: string[];
|
|
8727
|
+
}[];
|
|
8728
|
+
integrationOpportunities: string[];
|
|
8447
8729
|
};
|
|
8448
8730
|
WorkspaceKnowledgePageListDto: {
|
|
8449
8731
|
items: components["schemas"]["WorkspaceKnowledgePageDto"][];
|
|
8450
8732
|
systemContext?: components["schemas"]["WorkspaceKnowledgeSystemContextDto"];
|
|
8451
8733
|
};
|
|
8734
|
+
WorkspaceKnowledgeGraphNodeDto: {
|
|
8735
|
+
id: string;
|
|
8736
|
+
label: string;
|
|
8737
|
+
score?: number;
|
|
8738
|
+
contractId?: string;
|
|
8739
|
+
/** @enum {string} */
|
|
8740
|
+
kind: "repo" | "package" | "protocol";
|
|
8741
|
+
};
|
|
8742
|
+
WorkspaceKnowledgeGraphEdgeDto: {
|
|
8743
|
+
/** @description Source node id (usually repoId) */
|
|
8744
|
+
from: string;
|
|
8745
|
+
/** @description Target node id (usually repoId) */
|
|
8746
|
+
to: string;
|
|
8747
|
+
relation: string;
|
|
8748
|
+
label?: string;
|
|
8749
|
+
/** @enum {string} */
|
|
8750
|
+
certainty?: "fact" | "inference" | "possibility";
|
|
8751
|
+
};
|
|
8752
|
+
WorkspaceKnowledgeGraphDto: {
|
|
8753
|
+
/** @enum {string} */
|
|
8754
|
+
kind: "workspace-kg";
|
|
8755
|
+
version: number;
|
|
8756
|
+
/** Format: date-time */
|
|
8757
|
+
exportedAt: string;
|
|
8758
|
+
nodes: components["schemas"]["WorkspaceKnowledgeGraphNodeDto"][];
|
|
8759
|
+
edges: components["schemas"]["WorkspaceKnowledgeGraphEdgeDto"][];
|
|
8760
|
+
};
|
|
8761
|
+
WorkspaceKnowledgeCrossRepoLinkDto: {
|
|
8762
|
+
/** Format: uuid */
|
|
8763
|
+
fromRepoId: string;
|
|
8764
|
+
/** Format: uuid */
|
|
8765
|
+
toRepoId: string;
|
|
8766
|
+
fromRepoName?: string;
|
|
8767
|
+
toRepoName?: string;
|
|
8768
|
+
relation: string;
|
|
8769
|
+
/** @enum {string} */
|
|
8770
|
+
certainty: "fact" | "inference" | "possibility";
|
|
8771
|
+
evidence: string;
|
|
8772
|
+
label: string;
|
|
8773
|
+
};
|
|
8774
|
+
WorkspaceKnowledgePackRepoDto: {
|
|
8775
|
+
/** Format: uuid */
|
|
8776
|
+
repoId: string;
|
|
8777
|
+
repoName: string;
|
|
8778
|
+
commitSha?: string | null;
|
|
8779
|
+
providerSlug?: string | null;
|
|
8780
|
+
wikiOutline?: {
|
|
8781
|
+
slug: string;
|
|
8782
|
+
title: string;
|
|
8783
|
+
}[];
|
|
8784
|
+
};
|
|
8785
|
+
WorkspaceKnowledgePackPageDto: {
|
|
8786
|
+
slug: string;
|
|
8787
|
+
title: string;
|
|
8788
|
+
bodyMd: string;
|
|
8789
|
+
};
|
|
8790
|
+
WorkspaceKnowledgePackDto: {
|
|
8791
|
+
/** @enum {string} */
|
|
8792
|
+
kind: "wkg-pack";
|
|
8793
|
+
version: number;
|
|
8794
|
+
/** Format: date-time */
|
|
8795
|
+
exportedAt: string;
|
|
8796
|
+
workspaceName?: string;
|
|
8797
|
+
pages: components["schemas"]["WorkspaceKnowledgePackPageDto"][];
|
|
8798
|
+
crossRepoLinks: components["schemas"]["WorkspaceKnowledgeCrossRepoLinkDto"][];
|
|
8799
|
+
repos: components["schemas"]["WorkspaceKnowledgePackRepoDto"][];
|
|
8800
|
+
graph?: components["schemas"]["WorkspaceKnowledgeGraphDto"];
|
|
8801
|
+
workspaceContext?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
8802
|
+
};
|
|
8452
8803
|
CodeIntelligenceUsageDto: {
|
|
8453
8804
|
/** @description Ledger operation key (code_chat, prd_generate, workspace_kb, wiki_json_outline, wiki_enrich, …) */
|
|
8454
8805
|
operation: string;
|
|
@@ -9375,6 +9726,17 @@ export type ActivityLogActorDto = components['schemas']['ActivityLogActorDto'];
|
|
|
9375
9726
|
export type ActivityLogEntryDto = components['schemas']['ActivityLogEntryDto'];
|
|
9376
9727
|
export type WorkspaceAbsenceDto = components['schemas']['WorkspaceAbsenceDto'];
|
|
9377
9728
|
export type WorkspaceAbsenceListDto = components['schemas']['WorkspaceAbsenceListDto'];
|
|
9729
|
+
export type IngestCoverageGapDto = components['schemas']['IngestCoverageGapDto'];
|
|
9730
|
+
export type IngestCoverageLastRunDto = components['schemas']['IngestCoverageLastRunDto'];
|
|
9731
|
+
export type IngestCoverageProductivityRepoDto = components['schemas']['IngestCoverageProductivityRepoDto'];
|
|
9732
|
+
export type IngestCoverageProductivityDetailDto = components['schemas']['IngestCoverageProductivityDetailDto'];
|
|
9733
|
+
export type IngestCoverageFactFamilyDto = components['schemas']['IngestCoverageFactFamilyDto'];
|
|
9734
|
+
export type IngestCoverageAiDetailDto = components['schemas']['IngestCoverageAiDetailDto'];
|
|
9735
|
+
export type IngestCoverageSdlcComponentDto = components['schemas']['IngestCoverageSdlcComponentDto'];
|
|
9736
|
+
export type IngestCoverageSdlcDetailDto = components['schemas']['IngestCoverageSdlcDetailDto'];
|
|
9737
|
+
export type IngestCoverageSyncDetailDto = components['schemas']['IngestCoverageSyncDetailDto'];
|
|
9738
|
+
export type IngestCoveragePipelineDto = components['schemas']['IngestCoveragePipelineDto'];
|
|
9739
|
+
export type IngestCoverageDto = components['schemas']['IngestCoverageDto'];
|
|
9378
9740
|
export type HrisSyncStatusDto = components['schemas']['HrisSyncStatusDto'];
|
|
9379
9741
|
export type HrisSyncStatusListDto = components['schemas']['HrisSyncStatusListDto'];
|
|
9380
9742
|
export type ZenHrReconnectResultDto = components['schemas']['ZenHrReconnectResultDto'];
|
|
@@ -9465,11 +9827,20 @@ export type RepoWikiJsonSummaryDto = components['schemas']['RepoWikiJsonSummaryD
|
|
|
9465
9827
|
export type RepoWikiJsonSummaryListDto = components['schemas']['RepoWikiJsonSummaryListDto'];
|
|
9466
9828
|
export type GenerateWorkspaceKnowledgePagesBodyDto = components['schemas']['GenerateWorkspaceKnowledgePagesBodyDto'];
|
|
9467
9829
|
export type GenerateWorkspaceKnowledgePagesResultDto = components['schemas']['GenerateWorkspaceKnowledgePagesResultDto'];
|
|
9830
|
+
export type WorkspaceContextGenerationStatusDto = components['schemas']['WorkspaceContextGenerationStatusDto'];
|
|
9468
9831
|
export type GeneratePrdDraftBodyDto = components['schemas']['GeneratePrdDraftBodyDto'];
|
|
9469
9832
|
export type GeneratePrdDraftResultDto = components['schemas']['GeneratePrdDraftResultDto'];
|
|
9470
9833
|
export type WorkspaceKnowledgePageDto = components['schemas']['WorkspaceKnowledgePageDto'];
|
|
9471
9834
|
export type WorkspaceKnowledgeSystemContextDto = components['schemas']['WorkspaceKnowledgeSystemContextDto'];
|
|
9835
|
+
export type WorkspaceContextInsightsDto = components['schemas']['WorkspaceContextInsightsDto'];
|
|
9472
9836
|
export type WorkspaceKnowledgePageListDto = components['schemas']['WorkspaceKnowledgePageListDto'];
|
|
9837
|
+
export type WorkspaceKnowledgeGraphNodeDto = components['schemas']['WorkspaceKnowledgeGraphNodeDto'];
|
|
9838
|
+
export type WorkspaceKnowledgeGraphEdgeDto = components['schemas']['WorkspaceKnowledgeGraphEdgeDto'];
|
|
9839
|
+
export type WorkspaceKnowledgeGraphDto = components['schemas']['WorkspaceKnowledgeGraphDto'];
|
|
9840
|
+
export type WorkspaceKnowledgeCrossRepoLinkDto = components['schemas']['WorkspaceKnowledgeCrossRepoLinkDto'];
|
|
9841
|
+
export type WorkspaceKnowledgePackRepoDto = components['schemas']['WorkspaceKnowledgePackRepoDto'];
|
|
9842
|
+
export type WorkspaceKnowledgePackPageDto = components['schemas']['WorkspaceKnowledgePackPageDto'];
|
|
9843
|
+
export type WorkspaceKnowledgePackDto = components['schemas']['WorkspaceKnowledgePackDto'];
|
|
9473
9844
|
export type CodeIntelligenceUsageDto = components['schemas']['CodeIntelligenceUsageDto'];
|
|
9474
9845
|
export type CodeIntelligenceTokenUsageByOperationDto = components['schemas']['CodeIntelligenceTokenUsageByOperationDto'];
|
|
9475
9846
|
export type CodeIntelligenceTokenUsageByRepoDto = components['schemas']['CodeIntelligenceTokenUsageByRepoDto'];
|
|
@@ -17620,6 +17991,29 @@ export interface operations {
|
|
|
17620
17991
|
};
|
|
17621
17992
|
};
|
|
17622
17993
|
};
|
|
17994
|
+
getWorkspaceContextGenerationStatus: {
|
|
17995
|
+
parameters: {
|
|
17996
|
+
query?: never;
|
|
17997
|
+
header?: never;
|
|
17998
|
+
path: {
|
|
17999
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
18000
|
+
};
|
|
18001
|
+
cookie?: never;
|
|
18002
|
+
};
|
|
18003
|
+
requestBody?: never;
|
|
18004
|
+
responses: {
|
|
18005
|
+
/** @description Current or most recent workspace context generation phase */
|
|
18006
|
+
200: {
|
|
18007
|
+
headers: {
|
|
18008
|
+
[name: string]: unknown;
|
|
18009
|
+
};
|
|
18010
|
+
content: {
|
|
18011
|
+
"application/json": components["schemas"]["WorkspaceContextGenerationStatusDto"];
|
|
18012
|
+
};
|
|
18013
|
+
};
|
|
18014
|
+
401: components["responses"]["Unauthorized"];
|
|
18015
|
+
};
|
|
18016
|
+
};
|
|
17623
18017
|
generatePrdDraft: {
|
|
17624
18018
|
parameters: {
|
|
17625
18019
|
query?: never;
|
|
@@ -17668,6 +18062,85 @@ export interface operations {
|
|
|
17668
18062
|
};
|
|
17669
18063
|
};
|
|
17670
18064
|
};
|
|
18065
|
+
getWorkspaceKnowledgeGraph: {
|
|
18066
|
+
parameters: {
|
|
18067
|
+
query?: never;
|
|
18068
|
+
header?: never;
|
|
18069
|
+
path: {
|
|
18070
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
18071
|
+
};
|
|
18072
|
+
cookie?: never;
|
|
18073
|
+
};
|
|
18074
|
+
requestBody?: never;
|
|
18075
|
+
responses: {
|
|
18076
|
+
/** @description Workspace knowledge graph */
|
|
18077
|
+
200: {
|
|
18078
|
+
headers: {
|
|
18079
|
+
[name: string]: unknown;
|
|
18080
|
+
};
|
|
18081
|
+
content: {
|
|
18082
|
+
"application/json": components["schemas"]["WorkspaceKnowledgeGraphDto"];
|
|
18083
|
+
};
|
|
18084
|
+
};
|
|
18085
|
+
401: components["responses"]["Unauthorized"];
|
|
18086
|
+
/** @description Graph not generated yet */
|
|
18087
|
+
404: {
|
|
18088
|
+
headers: {
|
|
18089
|
+
[name: string]: unknown;
|
|
18090
|
+
};
|
|
18091
|
+
content?: never;
|
|
18092
|
+
};
|
|
18093
|
+
};
|
|
18094
|
+
};
|
|
18095
|
+
exportWorkspaceKnowledgePages: {
|
|
18096
|
+
parameters: {
|
|
18097
|
+
query?: {
|
|
18098
|
+
format?: "markdown" | "wkg-pack" | "zip";
|
|
18099
|
+
/** @description How to rewrite ecg:// links in markdown export */
|
|
18100
|
+
linkMode?: "github" | "platform" | "relative";
|
|
18101
|
+
};
|
|
18102
|
+
header?: never;
|
|
18103
|
+
path: {
|
|
18104
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
18105
|
+
};
|
|
18106
|
+
cookie?: never;
|
|
18107
|
+
};
|
|
18108
|
+
requestBody?: never;
|
|
18109
|
+
responses: {
|
|
18110
|
+
/** @description Export payload (markdown body or wkg-pack JSON) */
|
|
18111
|
+
200: {
|
|
18112
|
+
headers: {
|
|
18113
|
+
[name: string]: unknown;
|
|
18114
|
+
};
|
|
18115
|
+
content: {
|
|
18116
|
+
"text/markdown": string;
|
|
18117
|
+
"application/json": components["schemas"]["WorkspaceKnowledgePackDto"];
|
|
18118
|
+
};
|
|
18119
|
+
};
|
|
18120
|
+
401: components["responses"]["Unauthorized"];
|
|
18121
|
+
/** @description Code Intelligence is disabled for this workspace */
|
|
18122
|
+
403: {
|
|
18123
|
+
headers: {
|
|
18124
|
+
[name: string]: unknown;
|
|
18125
|
+
};
|
|
18126
|
+
content?: never;
|
|
18127
|
+
};
|
|
18128
|
+
/** @description No workspace knowledge pages to export */
|
|
18129
|
+
404: {
|
|
18130
|
+
headers: {
|
|
18131
|
+
[name: string]: unknown;
|
|
18132
|
+
};
|
|
18133
|
+
content?: never;
|
|
18134
|
+
};
|
|
18135
|
+
/** @description ZIP export not implemented (use markdown or wkg-pack) */
|
|
18136
|
+
501: {
|
|
18137
|
+
headers: {
|
|
18138
|
+
[name: string]: unknown;
|
|
18139
|
+
};
|
|
18140
|
+
content?: never;
|
|
18141
|
+
};
|
|
18142
|
+
};
|
|
18143
|
+
};
|
|
17671
18144
|
listRepoWikiJsonSummaries: {
|
|
17672
18145
|
parameters: {
|
|
17673
18146
|
query?: never;
|
|
@@ -19377,6 +19850,30 @@ export interface operations {
|
|
|
19377
19850
|
503: components["responses"]["ZenHrSyncInProgress"];
|
|
19378
19851
|
};
|
|
19379
19852
|
};
|
|
19853
|
+
getWorkspaceIngestCoverage: {
|
|
19854
|
+
parameters: {
|
|
19855
|
+
query?: never;
|
|
19856
|
+
header?: never;
|
|
19857
|
+
path: {
|
|
19858
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19859
|
+
};
|
|
19860
|
+
cookie?: never;
|
|
19861
|
+
};
|
|
19862
|
+
requestBody?: never;
|
|
19863
|
+
responses: {
|
|
19864
|
+
/** @description Ingest coverage for connected pipelines */
|
|
19865
|
+
200: {
|
|
19866
|
+
headers: {
|
|
19867
|
+
[name: string]: unknown;
|
|
19868
|
+
};
|
|
19869
|
+
content: {
|
|
19870
|
+
"application/json": components["schemas"]["IngestCoverageDto"];
|
|
19871
|
+
};
|
|
19872
|
+
};
|
|
19873
|
+
401: components["responses"]["Unauthorized"];
|
|
19874
|
+
403: components["responses"]["Forbidden"];
|
|
19875
|
+
};
|
|
19876
|
+
};
|
|
19380
19877
|
getHrisSyncStatus: {
|
|
19381
19878
|
parameters: {
|
|
19382
19879
|
query?: never;
|