@thinkai/tai-api-contract 2.200.0 → 2.201.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 +137 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +170 -1
- package/openapi/x-test-status-map.json +10 -0
- package/package.json +3 -3
- package/src/generated/openapi.ts +137 -0
|
@@ -942,6 +942,30 @@ export interface paths {
|
|
|
942
942
|
patch?: never;
|
|
943
943
|
trace?: never;
|
|
944
944
|
};
|
|
945
|
+
"/workspaces/{workspaceId}/agentic-foundation/dimension-targets": {
|
|
946
|
+
parameters: {
|
|
947
|
+
query?: never;
|
|
948
|
+
header?: never;
|
|
949
|
+
path?: never;
|
|
950
|
+
cookie?: never;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* Get Agentic Foundation dimension targets
|
|
954
|
+
* @description Workspace target percent per readiness dimension, plus optional per-repository overrides. Omitted targets mean 100. A repository override may disable scoring for a dimension and set its own target. Empty object means every dimension is scored at 100. Member-level read access.
|
|
955
|
+
*/
|
|
956
|
+
get: operations["getWorkspaceDimensionTargets"];
|
|
957
|
+
/**
|
|
958
|
+
* Set Agentic Foundation dimension targets
|
|
959
|
+
* @description Full-replace workspace dimension targets and repository overrides. Omit a target or send 100 to keep the default. `PUT {}` or `null` clears overrides so every dimension is scored at 100. Repository ids must be in Agentic Foundation scan scope. Requires workspace **admin**.
|
|
960
|
+
*/
|
|
961
|
+
put: operations["putWorkspaceDimensionTargets"];
|
|
962
|
+
post?: never;
|
|
963
|
+
delete?: never;
|
|
964
|
+
options?: never;
|
|
965
|
+
head?: never;
|
|
966
|
+
patch?: never;
|
|
967
|
+
trace?: never;
|
|
968
|
+
};
|
|
945
969
|
"/workspaces/{workspaceId}/sources": {
|
|
946
970
|
parameters: {
|
|
947
971
|
query?: never;
|
|
@@ -6515,6 +6539,31 @@ export interface components {
|
|
|
6515
6539
|
/** @description Ceiling — stay at or below this many CI failures per engineer per week. `0` is valid. */
|
|
6516
6540
|
ciFailuresPerEngineerPerWeek?: number | null;
|
|
6517
6541
|
};
|
|
6542
|
+
/** @description Omitted dimension means a target of 100. Values of 100 are not stored. */
|
|
6543
|
+
DimensionTargetPercentsDto: {
|
|
6544
|
+
"ai-agent-readiness"?: number | null;
|
|
6545
|
+
"token-efficiency"?: number | null;
|
|
6546
|
+
"repo-hygiene"?: number | null;
|
|
6547
|
+
"stack-quality"?: number | null;
|
|
6548
|
+
"tests-qa"?: number | null;
|
|
6549
|
+
observability?: number | null;
|
|
6550
|
+
"api-contracts"?: number | null;
|
|
6551
|
+
"platform-governance"?: number | null;
|
|
6552
|
+
delivery?: number | null;
|
|
6553
|
+
};
|
|
6554
|
+
DimensionTargetsRepoOverrideDto: {
|
|
6555
|
+
/** @description Dimensions left out of this repository's score. */
|
|
6556
|
+
disabledDimensions?: components["schemas"]["ReadinessDimensionId"][];
|
|
6557
|
+
targets?: components["schemas"]["DimensionTargetPercentsDto"];
|
|
6558
|
+
};
|
|
6559
|
+
/** @description Agentic Foundation dimension targets. Empty object means every dimension is scored and the target is 100. */
|
|
6560
|
+
DimensionTargetsDto: {
|
|
6561
|
+
targets?: components["schemas"]["DimensionTargetPercentsDto"];
|
|
6562
|
+
/** @description Keys are in-scope repository ids. */
|
|
6563
|
+
repoOverrides?: {
|
|
6564
|
+
[key: string]: components["schemas"]["DimensionTargetsRepoOverrideDto"];
|
|
6565
|
+
};
|
|
6566
|
+
};
|
|
6518
6567
|
AiEmailAliasEntryDto: {
|
|
6519
6568
|
/**
|
|
6520
6569
|
* Format: email
|
|
@@ -13315,6 +13364,9 @@ export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigD
|
|
|
13315
13364
|
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13316
13365
|
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13317
13366
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13367
|
+
export type DimensionTargetPercentsDto = components['schemas']['DimensionTargetPercentsDto'];
|
|
13368
|
+
export type DimensionTargetsRepoOverrideDto = components['schemas']['DimensionTargetsRepoOverrideDto'];
|
|
13369
|
+
export type DimensionTargetsDto = components['schemas']['DimensionTargetsDto'];
|
|
13318
13370
|
export type AiEmailAliasEntryDto = components['schemas']['AiEmailAliasEntryDto'];
|
|
13319
13371
|
export type AiEmailAliasesDto = components['schemas']['AiEmailAliasesDto'];
|
|
13320
13372
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
@@ -16870,6 +16922,91 @@ export interface operations {
|
|
|
16870
16922
|
};
|
|
16871
16923
|
};
|
|
16872
16924
|
};
|
|
16925
|
+
getWorkspaceDimensionTargets: {
|
|
16926
|
+
parameters: {
|
|
16927
|
+
query?: never;
|
|
16928
|
+
header?: never;
|
|
16929
|
+
path: {
|
|
16930
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
16931
|
+
};
|
|
16932
|
+
cookie?: never;
|
|
16933
|
+
};
|
|
16934
|
+
requestBody?: never;
|
|
16935
|
+
responses: {
|
|
16936
|
+
/** @description Current targets (may be empty) */
|
|
16937
|
+
200: {
|
|
16938
|
+
headers: {
|
|
16939
|
+
[name: string]: unknown;
|
|
16940
|
+
};
|
|
16941
|
+
content: {
|
|
16942
|
+
"application/json": components["schemas"]["DimensionTargetsDto"];
|
|
16943
|
+
};
|
|
16944
|
+
};
|
|
16945
|
+
401: components["responses"]["Unauthorized"];
|
|
16946
|
+
403: components["responses"]["Forbidden"];
|
|
16947
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
16948
|
+
404: {
|
|
16949
|
+
headers: {
|
|
16950
|
+
[name: string]: unknown;
|
|
16951
|
+
};
|
|
16952
|
+
content: {
|
|
16953
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16954
|
+
};
|
|
16955
|
+
};
|
|
16956
|
+
};
|
|
16957
|
+
};
|
|
16958
|
+
putWorkspaceDimensionTargets: {
|
|
16959
|
+
parameters: {
|
|
16960
|
+
query?: never;
|
|
16961
|
+
header?: never;
|
|
16962
|
+
path: {
|
|
16963
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
16964
|
+
};
|
|
16965
|
+
cookie?: never;
|
|
16966
|
+
};
|
|
16967
|
+
requestBody: {
|
|
16968
|
+
content: {
|
|
16969
|
+
"application/json": components["schemas"]["DimensionTargetsDto"];
|
|
16970
|
+
};
|
|
16971
|
+
};
|
|
16972
|
+
responses: {
|
|
16973
|
+
/** @description Targets persisted (or cleared). */
|
|
16974
|
+
204: {
|
|
16975
|
+
headers: {
|
|
16976
|
+
[name: string]: unknown;
|
|
16977
|
+
};
|
|
16978
|
+
content?: never;
|
|
16979
|
+
};
|
|
16980
|
+
/** @description Invalid payload or repository is not in scan scope */
|
|
16981
|
+
400: {
|
|
16982
|
+
headers: {
|
|
16983
|
+
[name: string]: unknown;
|
|
16984
|
+
};
|
|
16985
|
+
content: {
|
|
16986
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16987
|
+
};
|
|
16988
|
+
};
|
|
16989
|
+
401: components["responses"]["Unauthorized"];
|
|
16990
|
+
/** @description Forbidden — workspace admin required */
|
|
16991
|
+
403: {
|
|
16992
|
+
headers: {
|
|
16993
|
+
[name: string]: unknown;
|
|
16994
|
+
};
|
|
16995
|
+
content: {
|
|
16996
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16997
|
+
};
|
|
16998
|
+
};
|
|
16999
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
17000
|
+
404: {
|
|
17001
|
+
headers: {
|
|
17002
|
+
[name: string]: unknown;
|
|
17003
|
+
};
|
|
17004
|
+
content: {
|
|
17005
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
17006
|
+
};
|
|
17007
|
+
};
|
|
17008
|
+
};
|
|
17009
|
+
};
|
|
16873
17010
|
putTenantSources: {
|
|
16874
17011
|
parameters: {
|
|
16875
17012
|
query?: never;
|