@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.
@@ -2342,7 +2342,7 @@ export interface paths {
2342
2342
  };
2343
2343
  /**
2344
2344
  * Test pyramid assessment — per-repo list (paginated)
2345
- * @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`). Use `gapsByLayer` on the summary endpoint (or filter this list via layerPresent) to answer “who lacks layer X?”. No v1 repo-detail Insights route — link repo names to AF readiness inventory.
2345
+ * @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.
2346
2346
  */
2347
2347
  get: operations["listInsightsTestPyramidRepos"];
2348
2348
  put?: never;
@@ -5968,7 +5968,7 @@ export interface paths {
5968
5968
  };
5969
5969
  /**
5970
5970
  * List absence records
5971
- * @description Returns time-off/absence records sourced from connected HRIS providers (e.g. Personio) for the given date window. Requires workspace membership.
5971
+ * @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.
5972
5972
  */
5973
5973
  get: operations["listWorkspaceAbsences"];
5974
5974
  put?: never;
@@ -12749,6 +12749,16 @@ export interface components {
12749
12749
  * @description ISO timestamp of the most recent successful HRIS sync, or null if never synced.
12750
12750
  */
12751
12751
  syncedAt: string | null;
12752
+ /** @description Count matching the date window after optional status and search filters. */
12753
+ total?: number;
12754
+ /** @description Count in the date window before status and search filters. */
12755
+ windowTotal?: number;
12756
+ /** @description Distinct employeeEmail values across matching records (after filters). */
12757
+ distinctEmployees?: number;
12758
+ /** @description Echo of the requested page size when limit was provided. */
12759
+ limit?: number;
12760
+ /** @description Echo of the requested offset when limit was provided. */
12761
+ offset?: number;
12752
12762
  };
12753
12763
  IngestCoverageGapDto: {
12754
12764
  /** @description Inclusive gap start (ISO date or UTC Monday week start). */
@@ -15963,6 +15973,8 @@ export interface components {
15963
15973
  InsightsTestPyramidRepoSort: "repoName" | "totalClassifiedFiles" | "scannedAt" | "maturity";
15964
15974
  /** @description Case-insensitive substring filter on repository name. */
15965
15975
  InsightsTestPyramidRepoSearch: string;
15976
+ /** @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. */
15977
+ InsightsTestPyramidGapLayer: "unit" | "integration" | "acceptance_bdd" | "contract" | "e2e";
15966
15978
  /** @description Case-insensitive filter on repository name, language, or provider slug. */
15967
15979
  ReadinessRepoSearch: string;
15968
15980
  /** @description Exact language filter (e.g. `typescript`). */
@@ -15985,6 +15997,8 @@ export interface components {
15985
15997
  GithubRepoSort: "name" | "updatedAt";
15986
15998
  /** @description Sort direction for the nested installation repo list. */
15987
15999
  GithubRepoOrder: "asc" | "desc";
16000
+ /** @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. */
16001
+ GithubRepoSearch: string;
15988
16002
  };
15989
16003
  requestBodies: never;
15990
16004
  headers: never;
@@ -16843,6 +16857,7 @@ export type ParameterCodeInsightsRepoSort = components['parameters']['CodeInsigh
16843
16857
  export type ParameterCodeInsightsRepoSearch = components['parameters']['CodeInsightsRepoSearch'];
16844
16858
  export type ParameterInsightsTestPyramidRepoSort = components['parameters']['InsightsTestPyramidRepoSort'];
16845
16859
  export type ParameterInsightsTestPyramidRepoSearch = components['parameters']['InsightsTestPyramidRepoSearch'];
16860
+ export type ParameterInsightsTestPyramidGapLayer = components['parameters']['InsightsTestPyramidGapLayer'];
16846
16861
  export type ParameterReadinessRepoSearch = components['parameters']['ReadinessRepoSearch'];
16847
16862
  export type ParameterReadinessRepoLanguage = components['parameters']['ReadinessRepoLanguage'];
16848
16863
  export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
@@ -16854,6 +16869,7 @@ export type ParameterGithubRepoLimit = components['parameters']['GithubRepoLimit
16854
16869
  export type ParameterGithubRepoOffset = components['parameters']['GithubRepoOffset'];
16855
16870
  export type ParameterGithubRepoSort = components['parameters']['GithubRepoSort'];
16856
16871
  export type ParameterGithubRepoOrder = components['parameters']['GithubRepoOrder'];
16872
+ export type ParameterGithubRepoSearch = components['parameters']['GithubRepoSearch'];
16857
16873
  export type $defs = Record<string, never>;
16858
16874
  export interface operations {
16859
16875
  adminDeleteUser: {
@@ -23638,6 +23654,8 @@ export interface operations {
23638
23654
  order?: components["parameters"]["PaginationOrder"];
23639
23655
  /** @description Case-insensitive substring filter on repository name. */
23640
23656
  search?: components["parameters"]["InsightsTestPyramidRepoSearch"];
23657
+ /** @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. */
23658
+ gapLayer?: components["parameters"]["InsightsTestPyramidGapLayer"];
23641
23659
  };
23642
23660
  header?: never;
23643
23661
  path: {
@@ -23656,7 +23674,7 @@ export interface operations {
23656
23674
  "application/json": components["schemas"]["InsightsTestPyramidRepoListDto"];
23657
23675
  };
23658
23676
  };
23659
- /** @description Invalid pagination or sort query */
23677
+ /** @description Invalid pagination, sort, search, or gapLayer query */
23660
23678
  400: {
23661
23679
  headers: {
23662
23680
  [name: string]: unknown;
@@ -24118,6 +24136,8 @@ export interface operations {
24118
24136
  repoSort?: components["parameters"]["GithubRepoSort"];
24119
24137
  /** @description Sort direction for the nested installation repo list. */
24120
24138
  repoOrder?: components["parameters"]["GithubRepoOrder"];
24139
+ /** @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. */
24140
+ search?: components["parameters"]["GithubRepoSearch"];
24121
24141
  };
24122
24142
  header?: never;
24123
24143
  path: {
@@ -24136,6 +24156,15 @@ export interface operations {
24136
24156
  "application/json": components["schemas"]["GithubInstallationStatusDto"];
24137
24157
  };
24138
24158
  };
24159
+ /** @description Invalid `repoLimit`, `repoOffset`, `repoSort`, `repoOrder`, or `search` query parameter */
24160
+ 400: {
24161
+ headers: {
24162
+ [name: string]: unknown;
24163
+ };
24164
+ content: {
24165
+ "application/json": components["schemas"]["ErrorMessageDto"];
24166
+ };
24167
+ };
24139
24168
  401: components["responses"]["Unauthorized"];
24140
24169
  403: components["responses"]["Forbidden"];
24141
24170
  /** @description Workspace does not exist or malformed workspaceId */
@@ -32638,6 +32667,14 @@ export interface operations {
32638
32667
  from?: string;
32639
32668
  /** @description End of date window (ISO YYYY-MM-DD). Defaults to 90 days from today. */
32640
32669
  to?: string;
32670
+ /** @description Page size (`1..100`). When omitted, the full date window is returned unpaged (still includes `total`, `windowTotal`, and `distinctEmployees`). */
32671
+ limit?: number;
32672
+ /** @description Zero-based offset when `limit` is set. Defaults to 0. */
32673
+ offset?: number;
32674
+ /** @description Filter to absences with this status. */
32675
+ status?: "approved" | "pending" | "rejected";
32676
+ /** @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. */
32677
+ search?: string;
32641
32678
  };
32642
32679
  header?: never;
32643
32680
  path: {
@@ -32647,7 +32684,7 @@ export interface operations {
32647
32684
  };
32648
32685
  requestBody?: never;
32649
32686
  responses: {
32650
- /** @description Absence list with last sync timestamp */
32687
+ /** @description Absence list with last sync timestamp and optional paging totals */
32651
32688
  200: {
32652
32689
  headers: {
32653
32690
  [name: string]: unknown;
@@ -32667,12 +32704,26 @@ export interface operations {
32667
32704
  * "status": "approved"
32668
32705
  * }
32669
32706
  * ],
32670
- * "syncedAt": "2025-06-30T08:00:00.000Z"
32707
+ * "syncedAt": "2025-06-30T08:00:00.000Z",
32708
+ * "total": 1,
32709
+ * "windowTotal": 1,
32710
+ * "distinctEmployees": 1,
32711
+ * "limit": 25,
32712
+ * "offset": 0
32671
32713
  * }
32672
32714
  */
32673
32715
  "application/json": components["schemas"]["WorkspaceAbsenceListDto"];
32674
32716
  };
32675
32717
  };
32718
+ /** @description Invalid limit, offset, status, or search query */
32719
+ 400: {
32720
+ headers: {
32721
+ [name: string]: unknown;
32722
+ };
32723
+ content: {
32724
+ "application/json": components["schemas"]["ErrorMessageDto"];
32725
+ };
32726
+ };
32676
32727
  401: components["responses"]["Unauthorized"];
32677
32728
  403: components["responses"]["Forbidden"];
32678
32729
  };
package/src/index.ts CHANGED
@@ -1393,6 +1393,16 @@ export interface WorkspaceAbsenceListDto {
1393
1393
  absences: WorkspaceAbsenceDto[];
1394
1394
  /** ISO timestamp of the most recent successful sync, or null if never synced. */
1395
1395
  syncedAt: string | null;
1396
+ /** Count matching the date window after optional `status` and `search` filters. */
1397
+ total?: number;
1398
+ /** Count in the date window before `status` / `search` filters. */
1399
+ windowTotal?: number;
1400
+ /** Distinct `employeeEmail` values across matching records (after filters). */
1401
+ distinctEmployees?: number;
1402
+ /** Echo of the requested page size when `limit` was provided. */
1403
+ limit?: number;
1404
+ /** Echo of the requested offset when `limit` was provided. */
1405
+ offset?: number;
1396
1406
  }
1397
1407
 
1398
1408
  /** Inclusive missing coverage range (calendar day or UTC Monday week ISO). */