@thinkai/tai-api-contract 2.7.1 → 2.7.3

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.
@@ -269,7 +269,7 @@ export interface paths {
269
269
  };
270
270
  /**
271
271
  * Productivity insights — aggregated team weekly metrics
272
- * @description Team-level rollup for Productivity insights (Aggregated Teams view on /phase-c/c4). Returns weekly merged PR counts and fail rates per engineering team, filtered by the same department, team, and range controls as the Measure UI.
272
+ * @description Team-level rollup for Productivity insights (Aggregated Teams view on /phase-c/c4). Returns weekly merged PR counts and fail rates per engineering team, filtered by the same department, team, and range controls as the Measure UI. When filters are `All departments` / `All teams`, appends a synthetic **Other** team (`teamId` `__other`) aggregating GitHub contributors not mapped in the org chart (`notInOrgChart: true`).
273
273
  */
274
274
  get: operations["getProductivityInsightsAggregatedTeams"];
275
275
  put?: never;
@@ -329,7 +329,7 @@ export interface paths {
329
329
  };
330
330
  /**
331
331
  * Productivity insights — contributor drilldown
332
- * @description Weekly and daily activity rollups for a single contributor on `/phase-c/c4/contributors/:id`. Distributes weekly merged PR counts from precomputed person metrics across weekdays; includes fail-rate signals and period-over-period summary deltas. Uses org-chart person ids (typically email).
332
+ * @description Weekly and daily activity rollups for a single contributor on `/phase-c/c4/contributors/:id`. Distributes weekly merged PR counts from precomputed person metrics across weekdays; includes fail-rate signals and period-over-period summary deltas. Accepts org-chart person ids (typically email) and synthetic GitHub scopes (`__github:{login}`) for contributors not in the org chart.
333
333
  */
334
334
  get: operations["getProductivityInsightsContributor"];
335
335
  put?: never;
@@ -1721,6 +1721,8 @@ export interface components {
1721
1721
  teamName: string;
1722
1722
  headcount: number;
1723
1723
  managerLabel?: string;
1724
+ /** @description True when the team aggregates GitHub logins not mapped in the org chart (`teamId` `__other`). */
1725
+ notInOrgChart?: boolean;
1724
1726
  weeks: components["schemas"]["ProductivityInsightsAggregatedTeamWeekDto"][];
1725
1727
  };
1726
1728
  ProductivityInsightsAggregatedTeamsDto: {
@@ -1813,6 +1815,10 @@ export interface components {
1813
1815
  title?: string;
1814
1816
  team?: string;
1815
1817
  department?: string;
1818
+ /** @description True when the contributor is a GitHub login not mapped in the org chart. */
1819
+ notInOrgChart?: boolean;
1820
+ /** @description GitHub login for unattributed contributors (`notInOrgChart` true). */
1821
+ githubLogin?: string;
1816
1822
  };
1817
1823
  ProductivityInsightsContributorActivityDayDto: {
1818
1824
  /** Format: date */
@@ -2387,6 +2393,16 @@ export interface components {
2387
2393
  * @description Present when `analysisStatus` is `queued` or `running`; use with `GET .../readiness/runs/{runId}`.
2388
2394
  */
2389
2395
  activeRunId?: string | null;
2396
+ /**
2397
+ * Format: date-time
2398
+ * @description Set when the repo has been soft-archived (removed from installation or integration disconnected). Null means active.
2399
+ */
2400
+ archivedAt?: string | null;
2401
+ /**
2402
+ * @description Why the repo was archived. Only present when `archivedAt` is set.
2403
+ * @enum {string|null}
2404
+ */
2405
+ archivedReason?: "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | null;
2390
2406
  };
2391
2407
  AgenticFoundationDashboardSummaryDto: {
2392
2408
  repoCount: number;
@@ -2453,8 +2469,8 @@ export interface components {
2453
2469
  status: "queued" | "generating" | "pr-created" | "merged" | "failed";
2454
2470
  prUrl?: string;
2455
2471
  prNumber?: number;
2456
- /** @description Machine-readable failure code when status is `failed`. Values in `FixRetryableErrorCode` may be re-queued via POST .../readiness/fixes/{fixId}/retry. */
2457
- errorCode?: components["schemas"]["FixRetryableErrorCode"] | string;
2472
+ /** @description Machine-readable failure code when status is `failed`. Values in `FixRetryableErrorCode` may be re-queued via POST .../readiness/fixes/{fixId}/retry. Values in `FixNonRetryableErrorCode` are permanent failures that require human intervention or configuration changes before retrying. */
2473
+ errorCode?: components["schemas"]["FixRetryableErrorCode"] | components["schemas"]["FixNonRetryableErrorCode"] | string;
2458
2474
  /** @description Human-readable failure summary. Present when status is failed. */
2459
2475
  errorMessage?: string | null;
2460
2476
  /** @description Structured failure context for UI rendering (e.g. file path, provider status). Never contains secrets. */
@@ -2469,6 +2485,11 @@ export interface components {
2469
2485
  * @enum {string}
2470
2486
  */
2471
2487
  FixRetryableErrorCode: "PROVIDER_TIMEOUT" | "RATE_LIMITED" | "TRANSIENT_NETWORK" | "RUNNER_INTERRUPTED";
2488
+ /**
2489
+ * @description Permanent failure codes that cannot be resolved by retrying the same fix. `POLICY_DENIED` — blocked by repo/dimension/path allowlist policy (admin must update `READINESS_FIX_*` env config). `CHANGE_LIMIT_EXCEEDED` — generated diff exceeded max files or lines guardrail. `BUILD_FAILED` — pre-PR gate command or GitHub check run failed on the fix branch. `MERGE_CONFLICT` — could not apply the generated fix cleanly to the target branch. `AUTH_REVOKED` — GitHub installation token or Cursor API key is missing or revoked. `UNSUPPORTED_DIMENSION` — no skill is implemented for this readiness dimension. `DUPLICATE_ACTIVE` — another fix is already in progress for the same issue. `processor_error` — unexpected processor-level failure; check batch-runner logs.
2490
+ * @enum {string}
2491
+ */
2492
+ FixNonRetryableErrorCode: "POLICY_DENIED" | "CHANGE_LIMIT_EXCEEDED" | "BUILD_FAILED" | "MERGE_CONFLICT" | "AUTH_REVOKED" | "UNSUPPORTED_DIMENSION" | "DUPLICATE_ACTIVE" | "processor_error";
2472
2493
  CreateFixRequestBodyDto: {
2473
2494
  /**
2474
2495
  * Format: uuid
@@ -2910,6 +2931,7 @@ export type GithubInstalledRepoListDto = components['schemas']['GithubInstalledR
2910
2931
  export type AgenticFoundationDashboardDto = components['schemas']['AgenticFoundationDashboardDto'];
2911
2932
  export type FixRequestDto = components['schemas']['FixRequestDto'];
2912
2933
  export type FixRetryableErrorCode = components['schemas']['FixRetryableErrorCode'];
2934
+ export type FixNonRetryableErrorCode = components['schemas']['FixNonRetryableErrorCode'];
2913
2935
  export type CreateFixRequestBodyDto = components['schemas']['CreateFixRequestBodyDto'];
2914
2936
  export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
2915
2937
  export type SquadMemberDto = components['schemas']['SquadMemberDto'];
@@ -3813,7 +3835,7 @@ export interface operations {
3813
3835
  header?: never;
3814
3836
  path: {
3815
3837
  workspaceId: components["parameters"]["WorkspaceId"];
3816
- /** @description Org-chart person id (e.g. email from `person_id` external id). */
3838
+ /** @description Org-chart person id or synthetic GitHub scope id (`__github:{login}`). */
3817
3839
  contributorId: string;
3818
3840
  };
3819
3841
  cookie?: never;