@thinkai/tai-api-contract 2.34.0-pr.731.476e4025 → 2.34.0-pr.731.82a1426a

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.
@@ -1214,7 +1214,7 @@ export interface paths {
1214
1214
  };
1215
1215
  /**
1216
1216
  * Export workspace activity log as CSV
1217
- * @description Export the workspace activity log as an RFC 4180 CSV file (one row per event). Accepts the same filters as `GET /workspaces/{workspaceId}/activity` (`eventType`, `eventCategory`, `eventSubcategory`, `productArea`, `actorUserId`, `since`, `until`, `search`, `sort`, `order`); `limit`/`offset` are ignored — the export returns up to 50000 matching rows within the sort. Columns: occurredAt, eventType, eventCategory, actorType, actorName, actorEmail, actorUserId, repoName, repoId, integrationType, integrationId, fixRequestId, issueId, readinessRunId, metadata. The response sets `Content-Disposition: attachment` with a `.csv` filename.
1217
+ * @description Export the workspace activity log as an RFC 4180 CSV file (one row per event). Accepts the same filters as `GET /workspaces/{workspaceId}/activity` (`eventType`, `eventCategory`, `eventSubcategory`, `productArea`, `actorUserId`, `since`, `until`, `search`, `sort`, `order`); `limit`/`offset` are ignored — the export returns up to 50000 matching rows within the sort. Columns: occurredAt, eventType, eventCategory, actorType, actorName, actorEmail, repoName, integrationType, metadata. Opaque internal identifiers (actorUserId, repoId, integrationId, fixRequestId, issueId, readinessRunId) are omitted — the human-readable equivalents are already present and the IDs carry no value in a user-facing export. The response sets `Content-Disposition: attachment` with a `.csv` filename.
1218
1218
  */
1219
1219
  get: operations["exportWorkspaceActivity"];
1220
1220
  put?: never;
@@ -2871,7 +2871,7 @@ export interface components {
2871
2871
  language: string;
2872
2872
  /**
2873
2873
  * Format: float
2874
- * @description Share of total language bytes, one decimal place (e.g. 64.2).
2874
+ * @description Share of total language bytes, rounded to four decimal places (e.g. 64.2153). The extra precision keeps small/near-tied languages distinguishable for a hover tag; render it rounded for compact labels. May not sum to exactly 100 due to rounding.
2875
2875
  */
2876
2876
  percent: number;
2877
2877
  /** @description True when this language maps to a v1-supported stack; false when the language is not supported. Lets the UI flag exactly which languages are not (fully) supported in a mixed/monorepo. */
@@ -3412,11 +3412,11 @@ export interface components {
3412
3412
  */
3413
3413
  archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
3414
3414
  /**
3415
- * @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. Null until the first sync/scan computes it.
3415
+ * @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.
3416
3416
  * @enum {string|null}
3417
3417
  */
3418
3418
  eligibilityStatus?: "eligible" | "ineligible" | null;
3419
- /** @description Human-readable explanation when `eligibilityStatus` is `ineligible`. For advisory language notices see `warnings`. */
3419
+ /** @description Human-readable explanation when `eligibilityStatus` is `ineligible` (e.g. the size / file-count limit message from the last scan). For advisory language notices see `warnings`. */
3420
3420
  eligibilityReason?: string | null;
3421
3421
  /** @description Non-blocking advisories for an analyzable repo (#729): no v1-supported stack (with the language mix), and hard-limit run outcomes (code size / file count exceeded) carried from the last run. Absent/empty when there are no warnings. */
3422
3422
  warnings?: string[] | null;
@@ -3429,11 +3429,16 @@ export interface components {
3429
3429
  /** @description Per-language share from GitHub languages (#729), ordered by share descending. Each entry has `supported`/`stack` so the UI can tag which languages are (not) supported. Absent until the repo has been synced with a language resolver. */
3430
3430
  languageBreakdown?: {
3431
3431
  language: string;
3432
- /** Format: float */
3432
+ /**
3433
+ * Format: float
3434
+ * @description Share of total language bytes, rounded to four decimal places (e.g. 64.2153).
3435
+ */
3433
3436
  percent: number;
3434
3437
  supported: boolean;
3435
3438
  stack?: string | null;
3436
3439
  }[] | null;
3440
+ /** @description GitHub-reported repository size in KB (includes git history), refreshed on each readiness scan (#729). Compare against `eligibilityLimits.maxRepoSizeKb` on the list response to show per-repo "size / limit". When the size exceeds the limit the latest scan is recorded as `partial_failed` with `lastRunErrorCode = exceeded_repo_size_limit` and the repo is marked `ineligible`. Null until a scan has populated it. */
3441
+ sizeKb?: number | null;
3437
3442
  };
3438
3443
  /** @description Single-repo detail response. Identical to RepoReadinessScoreDto except dimensions use DimensionScoreDetailDto (criteriaDetails required per dimension). */
3439
3444
  RepoReadinessScoreDetailDto: {
@@ -3475,11 +3480,16 @@ export interface components {
3475
3480
  /** @description Per-language share with `supported`/`stack` tags. See RepoReadinessScoreDto.languageBreakdown. */
3476
3481
  languageBreakdown?: {
3477
3482
  language: string;
3478
- /** Format: float */
3483
+ /**
3484
+ * Format: float
3485
+ * @description Share of total language bytes, rounded to four decimal places (e.g. 64.2153).
3486
+ */
3479
3487
  percent: number;
3480
3488
  supported: boolean;
3481
3489
  stack?: string | null;
3482
3490
  }[] | null;
3491
+ /** @description GitHub-reported repository size in KB, refreshed on each scan. See RepoReadinessScoreDto.sizeKb. */
3492
+ sizeKb?: number | null;
3483
3493
  };
3484
3494
  AgenticFoundationDashboardSummaryDto: {
3485
3495
  repoCount: number;
@@ -3504,8 +3514,20 @@ export interface components {
3504
3514
  limit: number;
3505
3515
  offset: number;
3506
3516
  };
3517
+ /** @description Effective size/code limits enforced by readiness scans (#729). Lets the UI render per-repo "size / limit" (compare each repo's `sizeKb` to `maxRepoSizeKb`) and explain why a repo is `ineligible` due to a hard size/file-count limit. A repo over `maxRepoSizeKb` is skipped on the next scan (recorded `partial_failed` with `exceeded_repo_size_limit`); code-line/file counts are evaluated post-clone via `cloc`. */
3518
+ ReadinessEligibilityLimitsDto: {
3519
+ /** @description Per-repo GitHub size cap in KB (includes git history). 0 = no limit. */
3520
+ maxRepoSizeKb: number;
3521
+ /** @description Max total lines of code (cloc) before a scan is skipped. 0 = no limit. */
3522
+ maxLinesOfCode: number;
3523
+ /** @description Max source file count (cloc) before a scan is skipped. 0 = no limit. */
3524
+ maxFileCount: number;
3525
+ /** @description Max repos that can be eligible per workspace. 0 = no limit. */
3526
+ maxReposPerWorkspace: number;
3527
+ };
3507
3528
  ReadinessRepoListDto: components["schemas"]["PageMetaDto"] & {
3508
3529
  items: components["schemas"]["RepoReadinessScoreDto"][];
3530
+ eligibilityLimits?: components["schemas"]["ReadinessEligibilityLimitsDto"];
3509
3531
  };
3510
3532
  /** @description Paginated list of repo readiness scores where each dimension includes criteriaDetails. Used by dimension-slice endpoints (agentic-foundation pillars). */
3511
3533
  ReadinessRepoDetailListDto: components["schemas"]["PageMetaDto"] & {
@@ -3942,7 +3964,7 @@ export interface components {
3942
3964
  * @description Type of workspace lifecycle event.
3943
3965
  * @enum {string}
3944
3966
  */
3945
- ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped";
3967
+ ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped";
3946
3968
  ActivityLogActorDto: {
3947
3969
  /** Format: uuid */
3948
3970
  userId: string;
@@ -4369,6 +4391,7 @@ export type RepoReadinessScoreDto = components['schemas']['RepoReadinessScoreDto
4369
4391
  export type RepoReadinessScoreDetailDto = components['schemas']['RepoReadinessScoreDetailDto'];
4370
4392
  export type AgenticFoundationDashboardSummaryDto = components['schemas']['AgenticFoundationDashboardSummaryDto'];
4371
4393
  export type PageMetaDto = components['schemas']['PageMetaDto'];
4394
+ export type ReadinessEligibilityLimitsDto = components['schemas']['ReadinessEligibilityLimitsDto'];
4372
4395
  export type ReadinessRepoListDto = components['schemas']['ReadinessRepoListDto'];
4373
4396
  export type ReadinessRepoDetailListDto = components['schemas']['ReadinessRepoDetailListDto'];
4374
4397
  export type ReadinessFixListDto = components['schemas']['ReadinessFixListDto'];
@@ -7520,7 +7543,7 @@ export interface operations {
7520
7543
  until?: string;
7521
7544
  /** @description Filter by event namespace prefix (e.g. "fix", "repo", "integration", "readiness", "config", "member"). */
7522
7545
  eventCategory?: string;
7523
- /** @description Filter by a dotted event-type *subgroup* (#156): a strict prefix of an event type with two or more segments, matching every lifecycle event under it in a single call. Finer than `eventCategory` (first segment only). Example: `integrations.cursor.execution_key` returns `integrations.cursor.execution_key.added`, `.updated`, `.removed`, and `.check_failed`; `integrations.cursor` returns all Cursor key events; `integration.github` returns all GitHub integration events. Must be one of the known subcategories or the request is rejected (400). */
7546
+ /** @description Filter by a dotted event-type *subgroup* (#156): a strict prefix of an event type with one or more segments (shorter than the full event type), matching every lifecycle event under it in a single call. Single-segment values (e.g. `fix`, `readiness`, `repo`, `productivity`) overlap with `eventCategory` so the same control can filter at any depth. Example: `integrations.cursor.execution_key` returns `integrations.cursor.execution_key.added`, `.updated`, `.removed`, and `.check_failed`; `integrations.cursor` returns all Cursor key events; `fix` returns all fix lifecycle events. Must be one of the known subcategories or the request is rejected (400). */
7524
7547
  eventSubcategory?: string;
7525
7548
  /** @description Case-insensitive substring filter applied across repo name, integration type, actor email, and actor display name. */
7526
7549
  search?: string;