@thinkai/tai-api-contract 2.254.0 → 2.256.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 +216 -4
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +204 -5
- package/package.json +1 -1
- package/src/generated/openapi.ts +216 -4
|
@@ -3263,7 +3263,7 @@ export interface paths {
|
|
|
3263
3263
|
};
|
|
3264
3264
|
/**
|
|
3265
3265
|
* List repo readiness scores (paginated)
|
|
3266
|
-
* @description Returns a page of repository readiness scorecards. Use `GET .../readiness/repos/{repoId}` for a single repo. Summary aggregates on the Agentic Foundation dashboard use separate aggregate queries over the full workspace (#403).
|
|
3266
|
+
* @description Returns a page of repository readiness scorecards. Use `GET .../readiness/repos/{repoId}` for a single repo. Summary aggregates on the Agentic Foundation dashboard use separate aggregate queries over the full workspace (#403). When light projection is enabled (`backend-api.readinessLightProjection`, on in prod/do-dev), issue rows are omitted (`issues: []`) and `criteriaDetails` is not populated; use `openIssueCount` / `criticalOpenIssueCount` per dimension. Repo detail and Agentic Foundation dimension slices still return full issue arrays and `criteriaDetails`.
|
|
3267
3267
|
*/
|
|
3268
3268
|
get: operations["listReadinessRepos"];
|
|
3269
3269
|
put?: never;
|
|
@@ -4042,8 +4042,8 @@ export interface paths {
|
|
|
4042
4042
|
cookie?: never;
|
|
4043
4043
|
};
|
|
4044
4044
|
/**
|
|
4045
|
-
* AI resolution hub (
|
|
4046
|
-
* @description Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for cross-pillar hub views (issue #288).
|
|
4045
|
+
* AI resolution hub (readiness scorecards)
|
|
4046
|
+
* @description Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for cross-pillar hub views (issue #288). When light projection is enabled, issue rows and `criteriaDetails` are omitted the same way as the main repo list; counts remain.
|
|
4047
4047
|
*/
|
|
4048
4048
|
get: operations["getAgenticFoundationAiResolutionHub"];
|
|
4049
4049
|
put?: never;
|
|
@@ -4615,6 +4615,41 @@ export interface paths {
|
|
|
4615
4615
|
patch?: never;
|
|
4616
4616
|
trace?: never;
|
|
4617
4617
|
};
|
|
4618
|
+
"/workspaces/{workspaceId}/code-chat/threads/{threadId}/messages/{messageId}/feedback": {
|
|
4619
|
+
parameters: {
|
|
4620
|
+
query?: never;
|
|
4621
|
+
header?: never;
|
|
4622
|
+
path?: never;
|
|
4623
|
+
cookie?: never;
|
|
4624
|
+
};
|
|
4625
|
+
get?: never;
|
|
4626
|
+
put?: never;
|
|
4627
|
+
/** Rate an assistant answer (thumbs up or down, with a reason) */
|
|
4628
|
+
post: operations["postCodeChatMessageFeedback"];
|
|
4629
|
+
delete?: never;
|
|
4630
|
+
options?: never;
|
|
4631
|
+
head?: never;
|
|
4632
|
+
patch?: never;
|
|
4633
|
+
trace?: never;
|
|
4634
|
+
};
|
|
4635
|
+
"/workspaces/{workspaceId}/code-chat/feedback-settings": {
|
|
4636
|
+
parameters: {
|
|
4637
|
+
query?: never;
|
|
4638
|
+
header?: never;
|
|
4639
|
+
path?: never;
|
|
4640
|
+
cookie?: never;
|
|
4641
|
+
};
|
|
4642
|
+
/** Whether thumbs-down keeps the question for eval */
|
|
4643
|
+
get: operations["getCodeChatFeedbackSettings"];
|
|
4644
|
+
/** Turn question capture on or off (workspace admin) */
|
|
4645
|
+
put: operations["putCodeChatFeedbackSettings"];
|
|
4646
|
+
post?: never;
|
|
4647
|
+
delete?: never;
|
|
4648
|
+
options?: never;
|
|
4649
|
+
head?: never;
|
|
4650
|
+
patch?: never;
|
|
4651
|
+
trace?: never;
|
|
4652
|
+
};
|
|
4618
4653
|
"/workspaces/{workspaceId}/code-chat/indexes/{indexId}/wiki": {
|
|
4619
4654
|
parameters: {
|
|
4620
4655
|
query?: never;
|
|
@@ -14005,6 +14040,16 @@ export interface components {
|
|
|
14005
14040
|
ruleCards?: components["schemas"]["CodeChatIndexRuleCardsDto"] | null;
|
|
14006
14041
|
/** @description How the architecture document step ended on the last scan. Null when no document step has reported for this index (documents off, or scanned by an older worker). */
|
|
14007
14042
|
archDoc?: components["schemas"]["CodeChatIndexArchDocDto"] | null;
|
|
14043
|
+
/** @description Secret and low-signal counts from the last scan. Null until a scan writes them. All zeros means the scan ran and found nothing to report. */
|
|
14044
|
+
scanCounts?: components["schemas"]["CodeChatIndexScanCountsDto"] | null;
|
|
14045
|
+
};
|
|
14046
|
+
CodeChatIndexScanCountsDto: {
|
|
14047
|
+
/** @description Secret values replaced in excerpts on the last scan. */
|
|
14048
|
+
secretsRedacted: number;
|
|
14049
|
+
/** @description Files left unread because their name says they hold secrets. */
|
|
14050
|
+
secretFilesSkipped: number;
|
|
14051
|
+
/** @description Lockfiles, bundles, source maps and generated files skipped on the last scan. */
|
|
14052
|
+
lowSignalFilesSkipped: number;
|
|
14008
14053
|
};
|
|
14009
14054
|
CodeChatIndexRuleCardsDto: {
|
|
14010
14055
|
/**
|
|
@@ -14213,6 +14258,43 @@ export interface components {
|
|
|
14213
14258
|
attachments?: components["schemas"]["CodeChatAttachmentMetaDto"][];
|
|
14214
14259
|
/** @description Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread detail (assistant turns). Omitted when no ledger rows exist for the message. */
|
|
14215
14260
|
usage?: components["schemas"]["CodeIntelligenceUsageDto"];
|
|
14261
|
+
/**
|
|
14262
|
+
* @description Structured outcome of an assistant turn, so a client does not parse the answer text. `unconfirmed` means no quoted line from the code backed the answer. Present on assistant turns only.
|
|
14263
|
+
* @enum {string}
|
|
14264
|
+
*/
|
|
14265
|
+
verdict?: "answered" | "caveat" | "clarifying" | "unconfirmed" | "retrieval_only" | "failed" | "timed_out";
|
|
14266
|
+
/** @description Short code behind a `caveat` or `clarifying` turn (for example `ask-first`, `open-decisions`, `plan-only`). Null otherwise. */
|
|
14267
|
+
abstainReason?: string | null;
|
|
14268
|
+
/** @description The caller's own thumbs on this answer. Omitted when none. */
|
|
14269
|
+
feedback?: components["schemas"]["CodeChatAskFeedbackDto"];
|
|
14270
|
+
};
|
|
14271
|
+
CodeChatAskFeedbackDto: {
|
|
14272
|
+
/** @enum {string} */
|
|
14273
|
+
rating: "up" | "down";
|
|
14274
|
+
/**
|
|
14275
|
+
* @description Why, for a thumbs-down. Null for a thumbs-up or when none was given.
|
|
14276
|
+
* @enum {string|null}
|
|
14277
|
+
*/
|
|
14278
|
+
reason: "wrong" | "incomplete" | "not_grounded" | "too_slow" | "unclear" | "other" | null;
|
|
14279
|
+
};
|
|
14280
|
+
CodeChatAskFeedbackBodyDto: {
|
|
14281
|
+
/**
|
|
14282
|
+
* @description `null` clears the caller's feedback on this answer.
|
|
14283
|
+
* @enum {string|null}
|
|
14284
|
+
*/
|
|
14285
|
+
rating: "up" | "down" | null;
|
|
14286
|
+
/**
|
|
14287
|
+
* @description Used for a thumbs-down only; dropped for a thumbs-up.
|
|
14288
|
+
* @enum {string|null}
|
|
14289
|
+
*/
|
|
14290
|
+
reason?: "wrong" | "incomplete" | "not_grounded" | "too_slow" | "unclear" | "other" | null;
|
|
14291
|
+
};
|
|
14292
|
+
CodeChatAskFeedbackResultDto: {
|
|
14293
|
+
feedback: components["schemas"]["CodeChatAskFeedbackDto"] | null;
|
|
14294
|
+
};
|
|
14295
|
+
CodeChatFeedbackSettingsDto: {
|
|
14296
|
+
/** @description When true, a thumbs-down also keeps the secret-scrubbed question for 30 days so the turn can become an eval case. Default false. */
|
|
14297
|
+
captureQuestions: boolean;
|
|
14216
14298
|
};
|
|
14217
14299
|
CodeChatThreadDetailDto: components["schemas"]["CodeChatThreadDto"] & {
|
|
14218
14300
|
messages: components["schemas"]["CodeChatMessageDto"][];
|
|
@@ -16660,6 +16742,7 @@ export type InsightsRecommendationsPageBundleResponse = components['schemas']['I
|
|
|
16660
16742
|
export type CodeChatIndexStatus = components['schemas']['CodeChatIndexStatus'];
|
|
16661
16743
|
export type CodeChatIndexer = components['schemas']['CodeChatIndexer'];
|
|
16662
16744
|
export type CodeChatIndexDto = components['schemas']['CodeChatIndexDto'];
|
|
16745
|
+
export type CodeChatIndexScanCountsDto = components['schemas']['CodeChatIndexScanCountsDto'];
|
|
16663
16746
|
export type CodeChatIndexRuleCardsDto = components['schemas']['CodeChatIndexRuleCardsDto'];
|
|
16664
16747
|
export type CodeChatIndexArchDocDto = components['schemas']['CodeChatIndexArchDocDto'];
|
|
16665
16748
|
export type CodeChatArchDocViewDto = components['schemas']['CodeChatArchDocViewDto'];
|
|
@@ -16677,6 +16760,10 @@ export type CodeChatThreadListDto = components['schemas']['CodeChatThreadListDto
|
|
|
16677
16760
|
export type CodeChatCreateThreadBodyDto = components['schemas']['CodeChatCreateThreadBodyDto'];
|
|
16678
16761
|
export type CodeChatCitationDto = components['schemas']['CodeChatCitationDto'];
|
|
16679
16762
|
export type CodeChatMessageDto = components['schemas']['CodeChatMessageDto'];
|
|
16763
|
+
export type CodeChatAskFeedbackDto = components['schemas']['CodeChatAskFeedbackDto'];
|
|
16764
|
+
export type CodeChatAskFeedbackBodyDto = components['schemas']['CodeChatAskFeedbackBodyDto'];
|
|
16765
|
+
export type CodeChatAskFeedbackResultDto = components['schemas']['CodeChatAskFeedbackResultDto'];
|
|
16766
|
+
export type CodeChatFeedbackSettingsDto = components['schemas']['CodeChatFeedbackSettingsDto'];
|
|
16680
16767
|
export type CodeChatThreadDetailDto = components['schemas']['CodeChatThreadDetailDto'];
|
|
16681
16768
|
export type CodeChatPostMessageBodyDto = components['schemas']['CodeChatPostMessageBodyDto'];
|
|
16682
16769
|
export type CodeChatUploadAttachmentBodyDto = components['schemas']['CodeChatUploadAttachmentBodyDto'];
|
|
@@ -28086,7 +28173,7 @@ export interface operations {
|
|
|
28086
28173
|
};
|
|
28087
28174
|
requestBody?: never;
|
|
28088
28175
|
responses: {
|
|
28089
|
-
/** @description
|
|
28176
|
+
/** @description Repository readiness scorecards (light projection may omit issue rows) */
|
|
28090
28177
|
200: {
|
|
28091
28178
|
headers: {
|
|
28092
28179
|
[name: string]: unknown;
|
|
@@ -29707,6 +29794,131 @@ export interface operations {
|
|
|
29707
29794
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29708
29795
|
};
|
|
29709
29796
|
};
|
|
29797
|
+
/** @description Too many questions. `ask_rate_limited` (per minute) or `ask_busy` (too many running at once), per user or per workspace. Nothing was spent. `Retry-After` and `retryAfterSec` say when to ask again. */
|
|
29798
|
+
429: {
|
|
29799
|
+
headers: {
|
|
29800
|
+
"Retry-After"?: number;
|
|
29801
|
+
[name: string]: unknown;
|
|
29802
|
+
};
|
|
29803
|
+
content: {
|
|
29804
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29805
|
+
};
|
|
29806
|
+
};
|
|
29807
|
+
};
|
|
29808
|
+
};
|
|
29809
|
+
postCodeChatMessageFeedback: {
|
|
29810
|
+
parameters: {
|
|
29811
|
+
query?: never;
|
|
29812
|
+
header?: never;
|
|
29813
|
+
path: {
|
|
29814
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29815
|
+
threadId: string;
|
|
29816
|
+
messageId: string;
|
|
29817
|
+
};
|
|
29818
|
+
cookie?: never;
|
|
29819
|
+
};
|
|
29820
|
+
requestBody: {
|
|
29821
|
+
content: {
|
|
29822
|
+
"application/json": components["schemas"]["CodeChatAskFeedbackBodyDto"];
|
|
29823
|
+
};
|
|
29824
|
+
};
|
|
29825
|
+
responses: {
|
|
29826
|
+
/** @description The caller's feedback after the change (null when cleared) */
|
|
29827
|
+
200: {
|
|
29828
|
+
headers: {
|
|
29829
|
+
[name: string]: unknown;
|
|
29830
|
+
};
|
|
29831
|
+
content: {
|
|
29832
|
+
"application/json": components["schemas"]["CodeChatAskFeedbackResultDto"];
|
|
29833
|
+
};
|
|
29834
|
+
};
|
|
29835
|
+
/** @description Invalid rating or reason (`invalid_input`) */
|
|
29836
|
+
400: {
|
|
29837
|
+
headers: {
|
|
29838
|
+
[name: string]: unknown;
|
|
29839
|
+
};
|
|
29840
|
+
content: {
|
|
29841
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29842
|
+
};
|
|
29843
|
+
};
|
|
29844
|
+
401: components["responses"]["Unauthorized"];
|
|
29845
|
+
/** @description Thread or assistant message not found for the caller (`message_not_found`) */
|
|
29846
|
+
404: {
|
|
29847
|
+
headers: {
|
|
29848
|
+
[name: string]: unknown;
|
|
29849
|
+
};
|
|
29850
|
+
content: {
|
|
29851
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29852
|
+
};
|
|
29853
|
+
};
|
|
29854
|
+
};
|
|
29855
|
+
};
|
|
29856
|
+
getCodeChatFeedbackSettings: {
|
|
29857
|
+
parameters: {
|
|
29858
|
+
query?: never;
|
|
29859
|
+
header?: never;
|
|
29860
|
+
path: {
|
|
29861
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29862
|
+
};
|
|
29863
|
+
cookie?: never;
|
|
29864
|
+
};
|
|
29865
|
+
requestBody?: never;
|
|
29866
|
+
responses: {
|
|
29867
|
+
/** @description Settings */
|
|
29868
|
+
200: {
|
|
29869
|
+
headers: {
|
|
29870
|
+
[name: string]: unknown;
|
|
29871
|
+
};
|
|
29872
|
+
content: {
|
|
29873
|
+
"application/json": components["schemas"]["CodeChatFeedbackSettingsDto"];
|
|
29874
|
+
};
|
|
29875
|
+
};
|
|
29876
|
+
401: components["responses"]["Unauthorized"];
|
|
29877
|
+
};
|
|
29878
|
+
};
|
|
29879
|
+
putCodeChatFeedbackSettings: {
|
|
29880
|
+
parameters: {
|
|
29881
|
+
query?: never;
|
|
29882
|
+
header?: never;
|
|
29883
|
+
path: {
|
|
29884
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29885
|
+
};
|
|
29886
|
+
cookie?: never;
|
|
29887
|
+
};
|
|
29888
|
+
requestBody: {
|
|
29889
|
+
content: {
|
|
29890
|
+
"application/json": components["schemas"]["CodeChatFeedbackSettingsDto"];
|
|
29891
|
+
};
|
|
29892
|
+
};
|
|
29893
|
+
responses: {
|
|
29894
|
+
/** @description Settings after the change */
|
|
29895
|
+
200: {
|
|
29896
|
+
headers: {
|
|
29897
|
+
[name: string]: unknown;
|
|
29898
|
+
};
|
|
29899
|
+
content: {
|
|
29900
|
+
"application/json": components["schemas"]["CodeChatFeedbackSettingsDto"];
|
|
29901
|
+
};
|
|
29902
|
+
};
|
|
29903
|
+
/** @description captureQuestions must be a boolean (`invalid_input`) */
|
|
29904
|
+
400: {
|
|
29905
|
+
headers: {
|
|
29906
|
+
[name: string]: unknown;
|
|
29907
|
+
};
|
|
29908
|
+
content: {
|
|
29909
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29910
|
+
};
|
|
29911
|
+
};
|
|
29912
|
+
401: components["responses"]["Unauthorized"];
|
|
29913
|
+
/** @description Workspace admin required */
|
|
29914
|
+
403: {
|
|
29915
|
+
headers: {
|
|
29916
|
+
[name: string]: unknown;
|
|
29917
|
+
};
|
|
29918
|
+
content: {
|
|
29919
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29920
|
+
};
|
|
29921
|
+
};
|
|
29710
29922
|
};
|
|
29711
29923
|
};
|
|
29712
29924
|
listCodeChatWikiPages: {
|