@thinkai/tai-api-contract 2.249.0 → 2.251.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 +56 -5
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +106 -6
- package/package.json +1 -1
- package/src/generated/openapi.ts +56 -5
- package/src/index.ts +10 -0
|
@@ -2341,7 +2341,7 @@ export interface paths {
|
|
|
2341
2341
|
};
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Test pyramid assessment — per-repo list (paginated)
|
|
2344
|
-
* @description Page of repos with latest classified test-file counts, count-based presence, presence maturity, shape, trend vs the previous pyramid point, coverage overlay, confidence/evidence, layer applicability, and risk signals (`e2eCrossRepoCandidate`, `hotspotCount`).
|
|
2344
|
+
* @description Page of repos with latest classified test-file counts, count-based presence, presence maturity, shape, trend vs the previous pyramid point, coverage overlay, confidence/evidence, layer applicability, and risk signals (`e2eCrossRepoCandidate`, `hotspotCount`). Optional `gapLayer` keeps only repos with an applicable gap on that layer (same semantics as summary `gapsByLayer`). No v1 repo-detail Insights route — link repo names to AF readiness inventory.
|
|
2345
2345
|
*/
|
|
2346
2346
|
get: operations["listInsightsTestPyramidRepos"];
|
|
2347
2347
|
put?: never;
|
|
@@ -5967,7 +5967,7 @@ export interface paths {
|
|
|
5967
5967
|
};
|
|
5968
5968
|
/**
|
|
5969
5969
|
* List absence records
|
|
5970
|
-
* @description Returns time-off/absence records sourced from connected HRIS providers (e.g. Personio) for the given date window. Requires workspace membership.
|
|
5970
|
+
* @description Returns time-off/absence records sourced from connected HRIS providers (e.g. Personio) for the given date window. Requires workspace membership. Optional `limit` pages the result (`1..100`); omit `limit` to receive the full window (activity heatmap callers). Optional `status` and `search` (matches `employeeEmail` and post-redaction `absenceType`) filter before totals. Sensitive absence types are redacted for non-admins before search.
|
|
5971
5971
|
*/
|
|
5972
5972
|
get: operations["listWorkspaceAbsences"];
|
|
5973
5973
|
put?: never;
|
|
@@ -12748,6 +12748,16 @@ export interface components {
|
|
|
12748
12748
|
* @description ISO timestamp of the most recent successful HRIS sync, or null if never synced.
|
|
12749
12749
|
*/
|
|
12750
12750
|
syncedAt: string | null;
|
|
12751
|
+
/** @description Count matching the date window after optional status and search filters. */
|
|
12752
|
+
total?: number;
|
|
12753
|
+
/** @description Count in the date window before status and search filters. */
|
|
12754
|
+
windowTotal?: number;
|
|
12755
|
+
/** @description Distinct employeeEmail values across matching records (after filters). */
|
|
12756
|
+
distinctEmployees?: number;
|
|
12757
|
+
/** @description Echo of the requested page size when limit was provided. */
|
|
12758
|
+
limit?: number;
|
|
12759
|
+
/** @description Echo of the requested offset when limit was provided. */
|
|
12760
|
+
offset?: number;
|
|
12751
12761
|
};
|
|
12752
12762
|
IngestCoverageGapDto: {
|
|
12753
12763
|
/** @description Inclusive gap start (ISO date or UTC Monday week start). */
|
|
@@ -15962,6 +15972,8 @@ export interface components {
|
|
|
15962
15972
|
InsightsTestPyramidRepoSort: "repoName" | "totalClassifiedFiles" | "scannedAt" | "maturity";
|
|
15963
15973
|
/** @description Case-insensitive substring filter on repository name. */
|
|
15964
15974
|
InsightsTestPyramidRepoSearch: string;
|
|
15975
|
+
/** @description When set, keep only repos where the layer is applicable and absent (`layerApplicable[gapLayer] && !layerPresent[gapLayer]`), matching summary `gapsByLayer`. Applied with `search` before `total` and pagination. */
|
|
15976
|
+
InsightsTestPyramidGapLayer: "unit" | "integration" | "acceptance_bdd" | "contract" | "e2e";
|
|
15965
15977
|
/** @description Case-insensitive filter on repository name, language, or provider slug. */
|
|
15966
15978
|
ReadinessRepoSearch: string;
|
|
15967
15979
|
/** @description Exact language filter (e.g. `typescript`). */
|
|
@@ -15984,6 +15996,8 @@ export interface components {
|
|
|
15984
15996
|
GithubRepoSort: "name" | "updatedAt";
|
|
15985
15997
|
/** @description Sort direction for the nested installation repo list. */
|
|
15986
15998
|
GithubRepoOrder: "asc" | "desc";
|
|
15999
|
+
/** @description Case-insensitive substring filter on repository `fullName`, `name`, or `language`, applied before `repoLimit`/`repoOffset` paging (for both top-level `repos` and each installation's `repos`). Empty or whitespace-only values are treated as unfiltered. */
|
|
16000
|
+
GithubRepoSearch: string;
|
|
15987
16001
|
};
|
|
15988
16002
|
requestBodies: never;
|
|
15989
16003
|
headers: never;
|
|
@@ -16842,6 +16856,7 @@ export type ParameterCodeInsightsRepoSort = components['parameters']['CodeInsigh
|
|
|
16842
16856
|
export type ParameterCodeInsightsRepoSearch = components['parameters']['CodeInsightsRepoSearch'];
|
|
16843
16857
|
export type ParameterInsightsTestPyramidRepoSort = components['parameters']['InsightsTestPyramidRepoSort'];
|
|
16844
16858
|
export type ParameterInsightsTestPyramidRepoSearch = components['parameters']['InsightsTestPyramidRepoSearch'];
|
|
16859
|
+
export type ParameterInsightsTestPyramidGapLayer = components['parameters']['InsightsTestPyramidGapLayer'];
|
|
16845
16860
|
export type ParameterReadinessRepoSearch = components['parameters']['ReadinessRepoSearch'];
|
|
16846
16861
|
export type ParameterReadinessRepoLanguage = components['parameters']['ReadinessRepoLanguage'];
|
|
16847
16862
|
export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
|
|
@@ -16853,6 +16868,7 @@ export type ParameterGithubRepoLimit = components['parameters']['GithubRepoLimit
|
|
|
16853
16868
|
export type ParameterGithubRepoOffset = components['parameters']['GithubRepoOffset'];
|
|
16854
16869
|
export type ParameterGithubRepoSort = components['parameters']['GithubRepoSort'];
|
|
16855
16870
|
export type ParameterGithubRepoOrder = components['parameters']['GithubRepoOrder'];
|
|
16871
|
+
export type ParameterGithubRepoSearch = components['parameters']['GithubRepoSearch'];
|
|
16856
16872
|
export type $defs = Record<string, never>;
|
|
16857
16873
|
export interface operations {
|
|
16858
16874
|
adminDeleteUser: {
|
|
@@ -23637,6 +23653,8 @@ export interface operations {
|
|
|
23637
23653
|
order?: components["parameters"]["PaginationOrder"];
|
|
23638
23654
|
/** @description Case-insensitive substring filter on repository name. */
|
|
23639
23655
|
search?: components["parameters"]["InsightsTestPyramidRepoSearch"];
|
|
23656
|
+
/** @description When set, keep only repos where the layer is applicable and absent (`layerApplicable[gapLayer] && !layerPresent[gapLayer]`), matching summary `gapsByLayer`. Applied with `search` before `total` and pagination. */
|
|
23657
|
+
gapLayer?: components["parameters"]["InsightsTestPyramidGapLayer"];
|
|
23640
23658
|
};
|
|
23641
23659
|
header?: never;
|
|
23642
23660
|
path: {
|
|
@@ -23655,7 +23673,7 @@ export interface operations {
|
|
|
23655
23673
|
"application/json": components["schemas"]["InsightsTestPyramidRepoListDto"];
|
|
23656
23674
|
};
|
|
23657
23675
|
};
|
|
23658
|
-
/** @description Invalid pagination or
|
|
23676
|
+
/** @description Invalid pagination, sort, search, or gapLayer query */
|
|
23659
23677
|
400: {
|
|
23660
23678
|
headers: {
|
|
23661
23679
|
[name: string]: unknown;
|
|
@@ -24117,6 +24135,8 @@ export interface operations {
|
|
|
24117
24135
|
repoSort?: components["parameters"]["GithubRepoSort"];
|
|
24118
24136
|
/** @description Sort direction for the nested installation repo list. */
|
|
24119
24137
|
repoOrder?: components["parameters"]["GithubRepoOrder"];
|
|
24138
|
+
/** @description Case-insensitive substring filter on repository `fullName`, `name`, or `language`, applied before `repoLimit`/`repoOffset` paging (for both top-level `repos` and each installation's `repos`). Empty or whitespace-only values are treated as unfiltered. */
|
|
24139
|
+
search?: components["parameters"]["GithubRepoSearch"];
|
|
24120
24140
|
};
|
|
24121
24141
|
header?: never;
|
|
24122
24142
|
path: {
|
|
@@ -24135,6 +24155,15 @@ export interface operations {
|
|
|
24135
24155
|
"application/json": components["schemas"]["GithubInstallationStatusDto"];
|
|
24136
24156
|
};
|
|
24137
24157
|
};
|
|
24158
|
+
/** @description Invalid `repoLimit`, `repoOffset`, `repoSort`, `repoOrder`, or `search` query parameter */
|
|
24159
|
+
400: {
|
|
24160
|
+
headers: {
|
|
24161
|
+
[name: string]: unknown;
|
|
24162
|
+
};
|
|
24163
|
+
content: {
|
|
24164
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
24165
|
+
};
|
|
24166
|
+
};
|
|
24138
24167
|
401: components["responses"]["Unauthorized"];
|
|
24139
24168
|
403: components["responses"]["Forbidden"];
|
|
24140
24169
|
/** @description Workspace does not exist or malformed workspaceId */
|
|
@@ -32637,6 +32666,14 @@ export interface operations {
|
|
|
32637
32666
|
from?: string;
|
|
32638
32667
|
/** @description End of date window (ISO YYYY-MM-DD). Defaults to 90 days from today. */
|
|
32639
32668
|
to?: string;
|
|
32669
|
+
/** @description Page size (`1..100`). When omitted, the full date window is returned unpaged (still includes `total`, `windowTotal`, and `distinctEmployees`). */
|
|
32670
|
+
limit?: number;
|
|
32671
|
+
/** @description Zero-based offset when `limit` is set. Defaults to 0. */
|
|
32672
|
+
offset?: number;
|
|
32673
|
+
/** @description Filter to absences with this status. */
|
|
32674
|
+
status?: "approved" | "pending" | "rejected";
|
|
32675
|
+
/** @description Case-insensitive substring on `employeeEmail` or post-redaction `absenceType` (max 256 chars). Redaction runs before search so non-admins cannot probe sensitive leave types. */
|
|
32676
|
+
search?: string;
|
|
32640
32677
|
};
|
|
32641
32678
|
header?: never;
|
|
32642
32679
|
path: {
|
|
@@ -32646,7 +32683,7 @@ export interface operations {
|
|
|
32646
32683
|
};
|
|
32647
32684
|
requestBody?: never;
|
|
32648
32685
|
responses: {
|
|
32649
|
-
/** @description Absence list with last sync timestamp */
|
|
32686
|
+
/** @description Absence list with last sync timestamp and optional paging totals */
|
|
32650
32687
|
200: {
|
|
32651
32688
|
headers: {
|
|
32652
32689
|
[name: string]: unknown;
|
|
@@ -32666,12 +32703,26 @@ export interface operations {
|
|
|
32666
32703
|
* "status": "approved"
|
|
32667
32704
|
* }
|
|
32668
32705
|
* ],
|
|
32669
|
-
* "syncedAt": "2025-06-30T08:00:00.000Z"
|
|
32706
|
+
* "syncedAt": "2025-06-30T08:00:00.000Z",
|
|
32707
|
+
* "total": 1,
|
|
32708
|
+
* "windowTotal": 1,
|
|
32709
|
+
* "distinctEmployees": 1,
|
|
32710
|
+
* "limit": 25,
|
|
32711
|
+
* "offset": 0
|
|
32670
32712
|
* }
|
|
32671
32713
|
*/
|
|
32672
32714
|
"application/json": components["schemas"]["WorkspaceAbsenceListDto"];
|
|
32673
32715
|
};
|
|
32674
32716
|
};
|
|
32717
|
+
/** @description Invalid limit, offset, status, or search query */
|
|
32718
|
+
400: {
|
|
32719
|
+
headers: {
|
|
32720
|
+
[name: string]: unknown;
|
|
32721
|
+
};
|
|
32722
|
+
content: {
|
|
32723
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32724
|
+
};
|
|
32725
|
+
};
|
|
32675
32726
|
401: components["responses"]["Unauthorized"];
|
|
32676
32727
|
403: components["responses"]["Forbidden"];
|
|
32677
32728
|
};
|