@thinkai/tai-api-contract 2.247.0 → 2.249.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 +98 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +191 -4
- package/package.json +1 -1
- package/src/generated/openapi.ts +98 -3
- package/src/index.ts +9 -0
|
@@ -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;
|
|
@@ -3817,7 +3817,11 @@ export interface paths {
|
|
|
3817
3817
|
path?: never;
|
|
3818
3818
|
cookie?: never;
|
|
3819
3819
|
};
|
|
3820
|
-
|
|
3820
|
+
/**
|
|
3821
|
+
* List Agentic Foundation repository scope (lightweight)
|
|
3822
|
+
* @description Returns a paginated page of materialized workspace repos for Agentic Foundation scope and GitHub contribution selection. Single-table read of `tai_workspace_repos` (no readiness scorecard joins). Ordered by `providerSlug` ascending, then `repoId`. Default `includeArchived=true` so callers can reconcile Active / Inactive / system-archived rows in one pass. Workspace members may call this endpoint.
|
|
3823
|
+
*/
|
|
3824
|
+
get: operations["getAgenticFoundationRepoScope"];
|
|
3821
3825
|
/**
|
|
3822
3826
|
* Update Agentic Foundation repository scope
|
|
3823
3827
|
* @description Bulk include/exclude materialized repos from Agentic Foundation by toggling the existing `user_removed` archive state. Excluded (Inactive) repos stop being scanned and stay integrated for productivity and SDLC ingest, unless `excludeFromIngest` is true (the GitHub repository selection), which leaves them out of ingest too. Including a repo restores both. The GitHub App grant itself is unchanged. Only workspace admins may call this endpoint. Partial failures are reported per repo.
|
|
@@ -9527,11 +9531,18 @@ export interface components {
|
|
|
9527
9531
|
[key: string]: number;
|
|
9528
9532
|
};
|
|
9529
9533
|
};
|
|
9534
|
+
AiToolMembersTotalsDto: {
|
|
9535
|
+
spendCents: number;
|
|
9536
|
+
tokenCount: number;
|
|
9537
|
+
activeUsers: number;
|
|
9538
|
+
topModel: string | null;
|
|
9539
|
+
};
|
|
9530
9540
|
AiToolMembersListDto: {
|
|
9531
9541
|
members: components["schemas"]["AiToolMemberSummaryDto"][];
|
|
9532
9542
|
total: number;
|
|
9533
9543
|
page: number;
|
|
9534
9544
|
pageSize: number;
|
|
9545
|
+
totals?: components["schemas"]["AiToolMembersTotalsDto"];
|
|
9535
9546
|
};
|
|
9536
9547
|
AiToolTeamSummaryDto: {
|
|
9537
9548
|
teamId: string;
|
|
@@ -12143,6 +12154,33 @@ export interface components {
|
|
|
12143
12154
|
*/
|
|
12144
12155
|
runId?: string | null;
|
|
12145
12156
|
};
|
|
12157
|
+
AgenticFoundationRepoScopeItemDto: {
|
|
12158
|
+
/** Format: uuid */
|
|
12159
|
+
repoId: string;
|
|
12160
|
+
repoName: string;
|
|
12161
|
+
/** @description Provider-qualified slug (e.g. `org/repo` for GitHub). */
|
|
12162
|
+
providerSlug: string;
|
|
12163
|
+
language: string;
|
|
12164
|
+
/**
|
|
12165
|
+
* Format: date-time
|
|
12166
|
+
* @description Null when the repo is Active (in Agentic Foundation scope).
|
|
12167
|
+
*/
|
|
12168
|
+
archivedAt: string | null;
|
|
12169
|
+
/**
|
|
12170
|
+
* @description Why the repo was archived. Same semantics as `RepoReadinessScoreDto.archivedReason`. Null when `archivedAt` is null.
|
|
12171
|
+
* @enum {string|null}
|
|
12172
|
+
*/
|
|
12173
|
+
archivedReason: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
|
|
12174
|
+
/** @description True when the GitHub repository selection left this Inactive repo out of productivity and SDLC ingest. Always present (false when not excluded). */
|
|
12175
|
+
excludedFromIngest: boolean;
|
|
12176
|
+
};
|
|
12177
|
+
AgenticFoundationRepoScopeListDto: {
|
|
12178
|
+
/** @description Total matching rows before pagination. */
|
|
12179
|
+
total: number;
|
|
12180
|
+
limit: number;
|
|
12181
|
+
offset: number;
|
|
12182
|
+
items: components["schemas"]["AgenticFoundationRepoScopeItemDto"][];
|
|
12183
|
+
};
|
|
12146
12184
|
PutAgenticFoundationRepoScopeChangeDto: {
|
|
12147
12185
|
/** Format: uuid */
|
|
12148
12186
|
repoId: string;
|
|
@@ -16180,6 +16218,7 @@ export type AiToolDailySeriesDto = components['schemas']['AiToolDailySeriesDto']
|
|
|
16180
16218
|
export type AiToolModelBreakdownItemDto = components['schemas']['AiToolModelBreakdownItemDto'];
|
|
16181
16219
|
export type AiToolModelBreakdownDto = components['schemas']['AiToolModelBreakdownDto'];
|
|
16182
16220
|
export type AiToolMemberSummaryDto = components['schemas']['AiToolMemberSummaryDto'];
|
|
16221
|
+
export type AiToolMembersTotalsDto = components['schemas']['AiToolMembersTotalsDto'];
|
|
16183
16222
|
export type AiToolMembersListDto = components['schemas']['AiToolMembersListDto'];
|
|
16184
16223
|
export type AiToolTeamSummaryDto = components['schemas']['AiToolTeamSummaryDto'];
|
|
16185
16224
|
export type AiToolTeamsListDto = components['schemas']['AiToolTeamsListDto'];
|
|
@@ -16427,6 +16466,8 @@ export type YourAiJourneyAiSpendWeekDto = components['schemas']['YourAiJourneyAi
|
|
|
16427
16466
|
export type YourAiJourneyAiSpendDto = components['schemas']['YourAiJourneyAiSpendDto'];
|
|
16428
16467
|
export type PatchRepoArchiveBodyDto = components['schemas']['PatchRepoArchiveBodyDto'];
|
|
16429
16468
|
export type PatchRepoArchiveResponseDto = components['schemas']['PatchRepoArchiveResponseDto'];
|
|
16469
|
+
export type AgenticFoundationRepoScopeItemDto = components['schemas']['AgenticFoundationRepoScopeItemDto'];
|
|
16470
|
+
export type AgenticFoundationRepoScopeListDto = components['schemas']['AgenticFoundationRepoScopeListDto'];
|
|
16430
16471
|
export type PutAgenticFoundationRepoScopeChangeDto = components['schemas']['PutAgenticFoundationRepoScopeChangeDto'];
|
|
16431
16472
|
export type PutAgenticFoundationRepoScopeBodyDto = components['schemas']['PutAgenticFoundationRepoScopeBodyDto'];
|
|
16432
16473
|
export type PutAgenticFoundationRepoScopeAppliedDto = components['schemas']['PutAgenticFoundationRepoScopeAppliedDto'];
|
|
@@ -23655,7 +23696,12 @@ export interface operations {
|
|
|
23655
23696
|
page?: number;
|
|
23656
23697
|
pageSize?: number;
|
|
23657
23698
|
search?: string;
|
|
23658
|
-
|
|
23699
|
+
/** @description Sort column and direction. Invalid values fall back to `spend_cents_desc`. */
|
|
23700
|
+
sort?: "spend_cents_desc" | "spend_cents_asc" | "active_days_desc" | "active_days_asc" | "token_count_desc" | "token_count_asc" | "name_asc" | "name_desc";
|
|
23701
|
+
/** @description When `true`, excludes non-human / service-account seats before computing `totals`, `total`, and pagination. */
|
|
23702
|
+
excludeServiceAccounts?: boolean;
|
|
23703
|
+
/** @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. */
|
|
23704
|
+
teamId?: string;
|
|
23659
23705
|
};
|
|
23660
23706
|
header?: never;
|
|
23661
23707
|
path: {
|
|
@@ -27347,6 +27393,55 @@ export interface operations {
|
|
|
27347
27393
|
};
|
|
27348
27394
|
};
|
|
27349
27395
|
};
|
|
27396
|
+
getAgenticFoundationRepoScope: {
|
|
27397
|
+
parameters: {
|
|
27398
|
+
query?: {
|
|
27399
|
+
/** @description When `true` (default), includes Inactive and system-archived repos alongside Active ones. When `false`, returns only repos with `archivedAt` null. */
|
|
27400
|
+
includeArchived?: boolean;
|
|
27401
|
+
/** @description Page size (default 1000, max 2000). */
|
|
27402
|
+
limit?: number;
|
|
27403
|
+
/** @description Zero-based row offset into the filtered, ordered result set. */
|
|
27404
|
+
offset?: number;
|
|
27405
|
+
};
|
|
27406
|
+
header?: never;
|
|
27407
|
+
path: {
|
|
27408
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
27409
|
+
};
|
|
27410
|
+
cookie?: never;
|
|
27411
|
+
};
|
|
27412
|
+
requestBody?: never;
|
|
27413
|
+
responses: {
|
|
27414
|
+
/** @description Paginated lightweight repo scope rows */
|
|
27415
|
+
200: {
|
|
27416
|
+
headers: {
|
|
27417
|
+
[name: string]: unknown;
|
|
27418
|
+
};
|
|
27419
|
+
content: {
|
|
27420
|
+
"application/json": components["schemas"]["AgenticFoundationRepoScopeListDto"];
|
|
27421
|
+
};
|
|
27422
|
+
};
|
|
27423
|
+
/** @description Invalid limit or offset */
|
|
27424
|
+
400: {
|
|
27425
|
+
headers: {
|
|
27426
|
+
[name: string]: unknown;
|
|
27427
|
+
};
|
|
27428
|
+
content: {
|
|
27429
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
27430
|
+
};
|
|
27431
|
+
};
|
|
27432
|
+
401: components["responses"]["Unauthorized"];
|
|
27433
|
+
403: components["responses"]["Forbidden"];
|
|
27434
|
+
/** @description Workspace does not exist */
|
|
27435
|
+
404: {
|
|
27436
|
+
headers: {
|
|
27437
|
+
[name: string]: unknown;
|
|
27438
|
+
};
|
|
27439
|
+
content: {
|
|
27440
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
27441
|
+
};
|
|
27442
|
+
};
|
|
27443
|
+
};
|
|
27444
|
+
};
|
|
27350
27445
|
putAgenticFoundationRepoScope: {
|
|
27351
27446
|
parameters: {
|
|
27352
27447
|
query?: never;
|