@thinkai/tai-api-contract 2.248.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 +57 -7
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +140 -9
- package/package.json +1 -1
- package/src/generated/openapi.ts +57 -7
- package/src/index.ts +19 -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;
|
|
@@ -2361,7 +2361,7 @@ export interface paths {
|
|
|
2361
2361
|
};
|
|
2362
2362
|
/**
|
|
2363
2363
|
* AI tool integration — paginated member list with usage totals
|
|
2364
|
-
* @description Paginated list of active AI-tool seats enriched with spend, token, and active-day totals for the selected time range. Supports search (by email / display name) and sort (spend_cents_desc
|
|
2364
|
+
* @description Paginated list of active AI-tool seats enriched with spend, token, and active-day totals for the selected time range. Supports search (by email / display name), service-account exclusion (`excludeServiceAccounts`), team scoping (`teamId`, including synthetic `__unattributed__` and `__bots__`), bidirectional sort (`spend_cents_desc`, `spend_cents_asc`, `active_days_desc`, `active_days_asc`, `token_count_desc`, `token_count_asc`, `name_asc`, `name_desc`), and aggregate `totals` over the full filtered list before pagination. Useful for the **Members** tab of the AI tool integration detail page.
|
|
2365
2365
|
*/
|
|
2366
2366
|
get: operations["getAiToolMembers"];
|
|
2367
2367
|
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;
|
|
@@ -9531,11 +9531,18 @@ export interface components {
|
|
|
9531
9531
|
[key: string]: number;
|
|
9532
9532
|
};
|
|
9533
9533
|
};
|
|
9534
|
+
AiToolMembersTotalsDto: {
|
|
9535
|
+
spendCents: number;
|
|
9536
|
+
tokenCount: number;
|
|
9537
|
+
activeUsers: number;
|
|
9538
|
+
topModel: string | null;
|
|
9539
|
+
};
|
|
9534
9540
|
AiToolMembersListDto: {
|
|
9535
9541
|
members: components["schemas"]["AiToolMemberSummaryDto"][];
|
|
9536
9542
|
total: number;
|
|
9537
9543
|
page: number;
|
|
9538
9544
|
pageSize: number;
|
|
9545
|
+
totals?: components["schemas"]["AiToolMembersTotalsDto"];
|
|
9539
9546
|
};
|
|
9540
9547
|
AiToolTeamSummaryDto: {
|
|
9541
9548
|
teamId: string;
|
|
@@ -12741,6 +12748,16 @@ export interface components {
|
|
|
12741
12748
|
* @description ISO timestamp of the most recent successful HRIS sync, or null if never synced.
|
|
12742
12749
|
*/
|
|
12743
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;
|
|
12744
12761
|
};
|
|
12745
12762
|
IngestCoverageGapDto: {
|
|
12746
12763
|
/** @description Inclusive gap start (ISO date or UTC Monday week start). */
|
|
@@ -15955,6 +15972,8 @@ export interface components {
|
|
|
15955
15972
|
InsightsTestPyramidRepoSort: "repoName" | "totalClassifiedFiles" | "scannedAt" | "maturity";
|
|
15956
15973
|
/** @description Case-insensitive substring filter on repository name. */
|
|
15957
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";
|
|
15958
15977
|
/** @description Case-insensitive filter on repository name, language, or provider slug. */
|
|
15959
15978
|
ReadinessRepoSearch: string;
|
|
15960
15979
|
/** @description Exact language filter (e.g. `typescript`). */
|
|
@@ -16211,6 +16230,7 @@ export type AiToolDailySeriesDto = components['schemas']['AiToolDailySeriesDto']
|
|
|
16211
16230
|
export type AiToolModelBreakdownItemDto = components['schemas']['AiToolModelBreakdownItemDto'];
|
|
16212
16231
|
export type AiToolModelBreakdownDto = components['schemas']['AiToolModelBreakdownDto'];
|
|
16213
16232
|
export type AiToolMemberSummaryDto = components['schemas']['AiToolMemberSummaryDto'];
|
|
16233
|
+
export type AiToolMembersTotalsDto = components['schemas']['AiToolMembersTotalsDto'];
|
|
16214
16234
|
export type AiToolMembersListDto = components['schemas']['AiToolMembersListDto'];
|
|
16215
16235
|
export type AiToolTeamSummaryDto = components['schemas']['AiToolTeamSummaryDto'];
|
|
16216
16236
|
export type AiToolTeamsListDto = components['schemas']['AiToolTeamsListDto'];
|
|
@@ -16834,6 +16854,7 @@ export type ParameterCodeInsightsRepoSort = components['parameters']['CodeInsigh
|
|
|
16834
16854
|
export type ParameterCodeInsightsRepoSearch = components['parameters']['CodeInsightsRepoSearch'];
|
|
16835
16855
|
export type ParameterInsightsTestPyramidRepoSort = components['parameters']['InsightsTestPyramidRepoSort'];
|
|
16836
16856
|
export type ParameterInsightsTestPyramidRepoSearch = components['parameters']['InsightsTestPyramidRepoSearch'];
|
|
16857
|
+
export type ParameterInsightsTestPyramidGapLayer = components['parameters']['InsightsTestPyramidGapLayer'];
|
|
16837
16858
|
export type ParameterReadinessRepoSearch = components['parameters']['ReadinessRepoSearch'];
|
|
16838
16859
|
export type ParameterReadinessRepoLanguage = components['parameters']['ReadinessRepoLanguage'];
|
|
16839
16860
|
export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
|
|
@@ -23629,6 +23650,8 @@ export interface operations {
|
|
|
23629
23650
|
order?: components["parameters"]["PaginationOrder"];
|
|
23630
23651
|
/** @description Case-insensitive substring filter on repository name. */
|
|
23631
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"];
|
|
23632
23655
|
};
|
|
23633
23656
|
header?: never;
|
|
23634
23657
|
path: {
|
|
@@ -23647,7 +23670,7 @@ export interface operations {
|
|
|
23647
23670
|
"application/json": components["schemas"]["InsightsTestPyramidRepoListDto"];
|
|
23648
23671
|
};
|
|
23649
23672
|
};
|
|
23650
|
-
/** @description Invalid pagination or
|
|
23673
|
+
/** @description Invalid pagination, sort, search, or gapLayer query */
|
|
23651
23674
|
400: {
|
|
23652
23675
|
headers: {
|
|
23653
23676
|
[name: string]: unknown;
|
|
@@ -23688,7 +23711,12 @@ export interface operations {
|
|
|
23688
23711
|
page?: number;
|
|
23689
23712
|
pageSize?: number;
|
|
23690
23713
|
search?: string;
|
|
23691
|
-
|
|
23714
|
+
/** @description Sort column and direction. Invalid values fall back to `spend_cents_desc`. */
|
|
23715
|
+
sort?: "spend_cents_desc" | "spend_cents_asc" | "active_days_desc" | "active_days_asc" | "token_count_desc" | "token_count_asc" | "name_asc" | "name_desc";
|
|
23716
|
+
/** @description When `true`, excludes non-human / service-account seats before computing `totals`, `total`, and pagination. */
|
|
23717
|
+
excludeServiceAccounts?: boolean;
|
|
23718
|
+
/** @description Optional org-chart leaf team ID, `__unattributed__` for unmatched non-service seats, or `__bots__` for service-account seats. Unknown team IDs return an empty 200 page. */
|
|
23719
|
+
teamId?: string;
|
|
23692
23720
|
};
|
|
23693
23721
|
header?: never;
|
|
23694
23722
|
path: {
|
|
@@ -32624,6 +32652,14 @@ export interface operations {
|
|
|
32624
32652
|
from?: string;
|
|
32625
32653
|
/** @description End of date window (ISO YYYY-MM-DD). Defaults to 90 days from today. */
|
|
32626
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;
|
|
32627
32663
|
};
|
|
32628
32664
|
header?: never;
|
|
32629
32665
|
path: {
|
|
@@ -32633,7 +32669,7 @@ export interface operations {
|
|
|
32633
32669
|
};
|
|
32634
32670
|
requestBody?: never;
|
|
32635
32671
|
responses: {
|
|
32636
|
-
/** @description Absence list with last sync timestamp */
|
|
32672
|
+
/** @description Absence list with last sync timestamp and optional paging totals */
|
|
32637
32673
|
200: {
|
|
32638
32674
|
headers: {
|
|
32639
32675
|
[name: string]: unknown;
|
|
@@ -32653,12 +32689,26 @@ export interface operations {
|
|
|
32653
32689
|
* "status": "approved"
|
|
32654
32690
|
* }
|
|
32655
32691
|
* ],
|
|
32656
|
-
* "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
|
|
32657
32698
|
* }
|
|
32658
32699
|
*/
|
|
32659
32700
|
"application/json": components["schemas"]["WorkspaceAbsenceListDto"];
|
|
32660
32701
|
};
|
|
32661
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
|
+
};
|
|
32662
32712
|
401: components["responses"]["Unauthorized"];
|
|
32663
32713
|
403: components["responses"]["Forbidden"];
|
|
32664
32714
|
};
|