@thinkai/tai-api-contract 2.55.0 → 2.56.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.
@@ -1678,6 +1678,26 @@ export interface paths {
1678
1678
  patch?: never;
1679
1679
  trace?: never;
1680
1680
  };
1681
+ "/workspaces/{workspaceId}/agentic-foundation/repo-scope": {
1682
+ parameters: {
1683
+ query?: never;
1684
+ header?: never;
1685
+ path?: never;
1686
+ cookie?: never;
1687
+ };
1688
+ get?: never;
1689
+ /**
1690
+ * Update Agentic Foundation repository scope
1691
+ * @description Bulk include/exclude materialized repos from Agentic Foundation by toggling the existing `user_removed` archive state. Excluded repos remain integrated for productivity metrics. Only workspace admins may call this endpoint. Partial failures are reported per repo.
1692
+ */
1693
+ put: operations["putAgenticFoundationRepoScope"];
1694
+ post?: never;
1695
+ delete?: never;
1696
+ options?: never;
1697
+ head?: never;
1698
+ patch?: never;
1699
+ trace?: never;
1700
+ };
1681
1701
  "/workspaces/{workspaceId}/agentic-foundation/dashboard": {
1682
1702
  parameters: {
1683
1703
  query?: never;
@@ -4669,10 +4689,10 @@ export interface components {
4669
4689
  */
4670
4690
  archivedAt?: string | null;
4671
4691
  /**
4672
- * @description Why the repo was archived. Only present when `archivedAt` is set.
4692
+ * @description Why the repo was archived. `user_removed` means excluded from Agentic Foundation scope only. Only present when `archivedAt` is set.
4673
4693
  * @enum {string|null}
4674
4694
  */
4675
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
4695
+ archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
4676
4696
  /**
4677
4697
  * @description Whether the repo can be analyzed (#44/#729). Language support no longer makes a repo `ineligible` — a missing v1-supported stack is surfaced via `warnings` and the repo stays analyzable. It becomes `ineligible` when the most recent scan hit a hard size/file-count limit (e.g. code-size or file-count exceeded): the repo is then restricted here too so this surface matches the GitHub connect list's size gate after the scan. Null until the first sync/scan computes it.
4678
4698
  * @enum {string|null}
@@ -4727,7 +4747,7 @@ export interface components {
4727
4747
  /** Format: date-time */
4728
4748
  archivedAt?: string | null;
4729
4749
  /** @enum {string|null} */
4730
- archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
4750
+ archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
4731
4751
  /**
4732
4752
  * @description See RepoReadinessScoreDto.eligibilityStatus. Language support is advisory (#729) and surfaced via `warnings`.
4733
4753
  * @enum {string|null}
@@ -5253,6 +5273,34 @@ export interface components {
5253
5273
  */
5254
5274
  runId?: string | null;
5255
5275
  };
5276
+ PutAgenticFoundationRepoScopeChangeDto: {
5277
+ /** Format: uuid */
5278
+ repoId: string;
5279
+ /** @description `true` to include in Agentic Foundation scope (unarchive user_removed). `false` to exclude (soft-archive with archived_reason user_removed). */
5280
+ included: boolean;
5281
+ };
5282
+ PutAgenticFoundationRepoScopeBodyDto: {
5283
+ changes: components["schemas"]["PutAgenticFoundationRepoScopeChangeDto"][];
5284
+ };
5285
+ PutAgenticFoundationRepoScopeAppliedDto: {
5286
+ /** Format: uuid */
5287
+ repoId: string;
5288
+ /** @enum {string} */
5289
+ status: "Active" | "Inactive";
5290
+ /** Format: uuid */
5291
+ runId?: string | null;
5292
+ };
5293
+ PutAgenticFoundationRepoScopeFailureDto: {
5294
+ /** Format: uuid */
5295
+ repoId: string;
5296
+ /** @enum {string} */
5297
+ code: "not_found" | "scan_in_progress" | "not_archived" | "already_active" | "system_archived" | "forbidden";
5298
+ message: string;
5299
+ };
5300
+ PutAgenticFoundationRepoScopeResponseDto: {
5301
+ applied: components["schemas"]["PutAgenticFoundationRepoScopeAppliedDto"][];
5302
+ failures: components["schemas"]["PutAgenticFoundationRepoScopeFailureDto"][];
5303
+ };
5256
5304
  /**
5257
5305
  * @description Type of workspace lifecycle event.
5258
5306
  * @enum {string}
@@ -5816,6 +5864,11 @@ export type YourAiJourneyAiSpendWeekDto = components['schemas']['YourAiJourneyAi
5816
5864
  export type YourAiJourneyAiSpendDto = components['schemas']['YourAiJourneyAiSpendDto'];
5817
5865
  export type PatchRepoArchiveBodyDto = components['schemas']['PatchRepoArchiveBodyDto'];
5818
5866
  export type PatchRepoArchiveResponseDto = components['schemas']['PatchRepoArchiveResponseDto'];
5867
+ export type PutAgenticFoundationRepoScopeChangeDto = components['schemas']['PutAgenticFoundationRepoScopeChangeDto'];
5868
+ export type PutAgenticFoundationRepoScopeBodyDto = components['schemas']['PutAgenticFoundationRepoScopeBodyDto'];
5869
+ export type PutAgenticFoundationRepoScopeAppliedDto = components['schemas']['PutAgenticFoundationRepoScopeAppliedDto'];
5870
+ export type PutAgenticFoundationRepoScopeFailureDto = components['schemas']['PutAgenticFoundationRepoScopeFailureDto'];
5871
+ export type PutAgenticFoundationRepoScopeResponseDto = components['schemas']['PutAgenticFoundationRepoScopeResponseDto'];
5819
5872
  export type ActivityLogEventTypeDto = components['schemas']['ActivityLogEventTypeDto'];
5820
5873
  export type ActivityLogActorDto = components['schemas']['ActivityLogActorDto'];
5821
5874
  export type ActivityLogEntryDto = components['schemas']['ActivityLogEntryDto'];
@@ -10316,6 +10369,66 @@ export interface operations {
10316
10369
  };
10317
10370
  };
10318
10371
  };
10372
+ putAgenticFoundationRepoScope: {
10373
+ parameters: {
10374
+ query?: never;
10375
+ header?: never;
10376
+ path: {
10377
+ workspaceId: components["parameters"]["WorkspaceId"];
10378
+ };
10379
+ cookie?: never;
10380
+ };
10381
+ requestBody: {
10382
+ content: {
10383
+ /**
10384
+ * @example {
10385
+ * "changes": [
10386
+ * {
10387
+ * "repoId": "00000000-0000-0000-0000-000000000101",
10388
+ * "included": false
10389
+ * },
10390
+ * {
10391
+ * "repoId": "00000000-0000-0000-0000-000000000102",
10392
+ * "included": true
10393
+ * }
10394
+ * ]
10395
+ * }
10396
+ */
10397
+ "application/json": components["schemas"]["PutAgenticFoundationRepoScopeBodyDto"];
10398
+ };
10399
+ };
10400
+ responses: {
10401
+ /** @description Scope changes applied (possibly with per-repo failures) */
10402
+ 200: {
10403
+ headers: {
10404
+ [name: string]: unknown;
10405
+ };
10406
+ content: {
10407
+ "application/json": components["schemas"]["PutAgenticFoundationRepoScopeResponseDto"];
10408
+ };
10409
+ };
10410
+ /** @description Invalid request body */
10411
+ 400: {
10412
+ headers: {
10413
+ [name: string]: unknown;
10414
+ };
10415
+ content: {
10416
+ "application/json": components["schemas"]["ErrorMessageDto"];
10417
+ };
10418
+ };
10419
+ 401: components["responses"]["Unauthorized"];
10420
+ 403: components["responses"]["Forbidden"];
10421
+ /** @description Workspace does not exist */
10422
+ 404: {
10423
+ headers: {
10424
+ [name: string]: unknown;
10425
+ };
10426
+ content: {
10427
+ "application/json": components["schemas"]["ErrorMessageDto"];
10428
+ };
10429
+ };
10430
+ };
10431
+ };
10319
10432
  getAgenticFoundationDashboard: {
10320
10433
  parameters: {
10321
10434
  query?: never;