@thinkai/tai-api-contract 2.249.0 → 2.250.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 +42 -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 +88 -6
- package/package.json +1 -1
- package/src/generated/openapi.ts +42 -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`). */
|
|
@@ -16842,6 +16854,7 @@ export type ParameterCodeInsightsRepoSort = components['parameters']['CodeInsigh
|
|
|
16842
16854
|
export type ParameterCodeInsightsRepoSearch = components['parameters']['CodeInsightsRepoSearch'];
|
|
16843
16855
|
export type ParameterInsightsTestPyramidRepoSort = components['parameters']['InsightsTestPyramidRepoSort'];
|
|
16844
16856
|
export type ParameterInsightsTestPyramidRepoSearch = components['parameters']['InsightsTestPyramidRepoSearch'];
|
|
16857
|
+
export type ParameterInsightsTestPyramidGapLayer = components['parameters']['InsightsTestPyramidGapLayer'];
|
|
16845
16858
|
export type ParameterReadinessRepoSearch = components['parameters']['ReadinessRepoSearch'];
|
|
16846
16859
|
export type ParameterReadinessRepoLanguage = components['parameters']['ReadinessRepoLanguage'];
|
|
16847
16860
|
export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
|
|
@@ -23637,6 +23650,8 @@ export interface operations {
|
|
|
23637
23650
|
order?: components["parameters"]["PaginationOrder"];
|
|
23638
23651
|
/** @description Case-insensitive substring filter on repository name. */
|
|
23639
23652
|
search?: components["parameters"]["InsightsTestPyramidRepoSearch"];
|
|
23653
|
+
/** @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. */
|
|
23654
|
+
gapLayer?: components["parameters"]["InsightsTestPyramidGapLayer"];
|
|
23640
23655
|
};
|
|
23641
23656
|
header?: never;
|
|
23642
23657
|
path: {
|
|
@@ -23655,7 +23670,7 @@ export interface operations {
|
|
|
23655
23670
|
"application/json": components["schemas"]["InsightsTestPyramidRepoListDto"];
|
|
23656
23671
|
};
|
|
23657
23672
|
};
|
|
23658
|
-
/** @description Invalid pagination or
|
|
23673
|
+
/** @description Invalid pagination, sort, search, or gapLayer query */
|
|
23659
23674
|
400: {
|
|
23660
23675
|
headers: {
|
|
23661
23676
|
[name: string]: unknown;
|
|
@@ -32637,6 +32652,14 @@ export interface operations {
|
|
|
32637
32652
|
from?: string;
|
|
32638
32653
|
/** @description End of date window (ISO YYYY-MM-DD). Defaults to 90 days from today. */
|
|
32639
32654
|
to?: string;
|
|
32655
|
+
/** @description Page size (`1..100`). When omitted, the full date window is returned unpaged (still includes `total`, `windowTotal`, and `distinctEmployees`). */
|
|
32656
|
+
limit?: number;
|
|
32657
|
+
/** @description Zero-based offset when `limit` is set. Defaults to 0. */
|
|
32658
|
+
offset?: number;
|
|
32659
|
+
/** @description Filter to absences with this status. */
|
|
32660
|
+
status?: "approved" | "pending" | "rejected";
|
|
32661
|
+
/** @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. */
|
|
32662
|
+
search?: string;
|
|
32640
32663
|
};
|
|
32641
32664
|
header?: never;
|
|
32642
32665
|
path: {
|
|
@@ -32646,7 +32669,7 @@ export interface operations {
|
|
|
32646
32669
|
};
|
|
32647
32670
|
requestBody?: never;
|
|
32648
32671
|
responses: {
|
|
32649
|
-
/** @description Absence list with last sync timestamp */
|
|
32672
|
+
/** @description Absence list with last sync timestamp and optional paging totals */
|
|
32650
32673
|
200: {
|
|
32651
32674
|
headers: {
|
|
32652
32675
|
[name: string]: unknown;
|
|
@@ -32666,12 +32689,26 @@ export interface operations {
|
|
|
32666
32689
|
* "status": "approved"
|
|
32667
32690
|
* }
|
|
32668
32691
|
* ],
|
|
32669
|
-
* "syncedAt": "2025-06-30T08:00:00.000Z"
|
|
32692
|
+
* "syncedAt": "2025-06-30T08:00:00.000Z",
|
|
32693
|
+
* "total": 1,
|
|
32694
|
+
* "windowTotal": 1,
|
|
32695
|
+
* "distinctEmployees": 1,
|
|
32696
|
+
* "limit": 25,
|
|
32697
|
+
* "offset": 0
|
|
32670
32698
|
* }
|
|
32671
32699
|
*/
|
|
32672
32700
|
"application/json": components["schemas"]["WorkspaceAbsenceListDto"];
|
|
32673
32701
|
};
|
|
32674
32702
|
};
|
|
32703
|
+
/** @description Invalid limit, offset, status, or search query */
|
|
32704
|
+
400: {
|
|
32705
|
+
headers: {
|
|
32706
|
+
[name: string]: unknown;
|
|
32707
|
+
};
|
|
32708
|
+
content: {
|
|
32709
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
32710
|
+
};
|
|
32711
|
+
};
|
|
32675
32712
|
401: components["responses"]["Unauthorized"];
|
|
32676
32713
|
403: components["responses"]["Forbidden"];
|
|
32677
32714
|
};
|