@thinkai/tai-api-contract 2.247.0 → 2.248.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.
|
@@ -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.
|
|
@@ -12143,6 +12147,33 @@ export interface components {
|
|
|
12143
12147
|
*/
|
|
12144
12148
|
runId?: string | null;
|
|
12145
12149
|
};
|
|
12150
|
+
AgenticFoundationRepoScopeItemDto: {
|
|
12151
|
+
/** Format: uuid */
|
|
12152
|
+
repoId: string;
|
|
12153
|
+
repoName: string;
|
|
12154
|
+
/** @description Provider-qualified slug (e.g. `org/repo` for GitHub). */
|
|
12155
|
+
providerSlug: string;
|
|
12156
|
+
language: string;
|
|
12157
|
+
/**
|
|
12158
|
+
* Format: date-time
|
|
12159
|
+
* @description Null when the repo is Active (in Agentic Foundation scope).
|
|
12160
|
+
*/
|
|
12161
|
+
archivedAt: string | null;
|
|
12162
|
+
/**
|
|
12163
|
+
* @description Why the repo was archived. Same semantics as `RepoReadinessScoreDto.archivedReason`. Null when `archivedAt` is null.
|
|
12164
|
+
* @enum {string|null}
|
|
12165
|
+
*/
|
|
12166
|
+
archivedReason: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
|
|
12167
|
+
/** @description True when the GitHub repository selection left this Inactive repo out of productivity and SDLC ingest. Always present (false when not excluded). */
|
|
12168
|
+
excludedFromIngest: boolean;
|
|
12169
|
+
};
|
|
12170
|
+
AgenticFoundationRepoScopeListDto: {
|
|
12171
|
+
/** @description Total matching rows before pagination. */
|
|
12172
|
+
total: number;
|
|
12173
|
+
limit: number;
|
|
12174
|
+
offset: number;
|
|
12175
|
+
items: components["schemas"]["AgenticFoundationRepoScopeItemDto"][];
|
|
12176
|
+
};
|
|
12146
12177
|
PutAgenticFoundationRepoScopeChangeDto: {
|
|
12147
12178
|
/** Format: uuid */
|
|
12148
12179
|
repoId: string;
|
|
@@ -16427,6 +16458,8 @@ export type YourAiJourneyAiSpendWeekDto = components['schemas']['YourAiJourneyAi
|
|
|
16427
16458
|
export type YourAiJourneyAiSpendDto = components['schemas']['YourAiJourneyAiSpendDto'];
|
|
16428
16459
|
export type PatchRepoArchiveBodyDto = components['schemas']['PatchRepoArchiveBodyDto'];
|
|
16429
16460
|
export type PatchRepoArchiveResponseDto = components['schemas']['PatchRepoArchiveResponseDto'];
|
|
16461
|
+
export type AgenticFoundationRepoScopeItemDto = components['schemas']['AgenticFoundationRepoScopeItemDto'];
|
|
16462
|
+
export type AgenticFoundationRepoScopeListDto = components['schemas']['AgenticFoundationRepoScopeListDto'];
|
|
16430
16463
|
export type PutAgenticFoundationRepoScopeChangeDto = components['schemas']['PutAgenticFoundationRepoScopeChangeDto'];
|
|
16431
16464
|
export type PutAgenticFoundationRepoScopeBodyDto = components['schemas']['PutAgenticFoundationRepoScopeBodyDto'];
|
|
16432
16465
|
export type PutAgenticFoundationRepoScopeAppliedDto = components['schemas']['PutAgenticFoundationRepoScopeAppliedDto'];
|
|
@@ -27347,6 +27380,55 @@ export interface operations {
|
|
|
27347
27380
|
};
|
|
27348
27381
|
};
|
|
27349
27382
|
};
|
|
27383
|
+
getAgenticFoundationRepoScope: {
|
|
27384
|
+
parameters: {
|
|
27385
|
+
query?: {
|
|
27386
|
+
/** @description When `true` (default), includes Inactive and system-archived repos alongside Active ones. When `false`, returns only repos with `archivedAt` null. */
|
|
27387
|
+
includeArchived?: boolean;
|
|
27388
|
+
/** @description Page size (default 1000, max 2000). */
|
|
27389
|
+
limit?: number;
|
|
27390
|
+
/** @description Zero-based row offset into the filtered, ordered result set. */
|
|
27391
|
+
offset?: number;
|
|
27392
|
+
};
|
|
27393
|
+
header?: never;
|
|
27394
|
+
path: {
|
|
27395
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
27396
|
+
};
|
|
27397
|
+
cookie?: never;
|
|
27398
|
+
};
|
|
27399
|
+
requestBody?: never;
|
|
27400
|
+
responses: {
|
|
27401
|
+
/** @description Paginated lightweight repo scope rows */
|
|
27402
|
+
200: {
|
|
27403
|
+
headers: {
|
|
27404
|
+
[name: string]: unknown;
|
|
27405
|
+
};
|
|
27406
|
+
content: {
|
|
27407
|
+
"application/json": components["schemas"]["AgenticFoundationRepoScopeListDto"];
|
|
27408
|
+
};
|
|
27409
|
+
};
|
|
27410
|
+
/** @description Invalid limit or offset */
|
|
27411
|
+
400: {
|
|
27412
|
+
headers: {
|
|
27413
|
+
[name: string]: unknown;
|
|
27414
|
+
};
|
|
27415
|
+
content: {
|
|
27416
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
27417
|
+
};
|
|
27418
|
+
};
|
|
27419
|
+
401: components["responses"]["Unauthorized"];
|
|
27420
|
+
403: components["responses"]["Forbidden"];
|
|
27421
|
+
/** @description Workspace does not exist */
|
|
27422
|
+
404: {
|
|
27423
|
+
headers: {
|
|
27424
|
+
[name: string]: unknown;
|
|
27425
|
+
};
|
|
27426
|
+
content: {
|
|
27427
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
27428
|
+
};
|
|
27429
|
+
};
|
|
27430
|
+
};
|
|
27431
|
+
};
|
|
27350
27432
|
putAgenticFoundationRepoScope: {
|
|
27351
27433
|
parameters: {
|
|
27352
27434
|
query?: never;
|