@thinkai/tai-api-contract 2.244.0 → 2.246.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 +117 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +119 -1
- package/openapi/x-test-status-map.json +5 -0
- package/package.json +1 -1
- package/src/generated/openapi.ts +117 -0
- package/src/index.ts +10 -0
|
@@ -566,6 +566,26 @@ export interface paths {
|
|
|
566
566
|
patch?: never;
|
|
567
567
|
trace?: never;
|
|
568
568
|
};
|
|
569
|
+
"/admin/productivity-workers": {
|
|
570
|
+
parameters: {
|
|
571
|
+
query?: never;
|
|
572
|
+
header?: never;
|
|
573
|
+
path?: never;
|
|
574
|
+
cookie?: never;
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* Active productivity ingest worker lanes
|
|
578
|
+
* @description Platform admins only. Lists workers currently holding leased rows in `tai_productivity_ingest_work_units` (productivity ingest ledger). One lane per `(worker_id, kind, workspace, install, week)` pack. `elapsedSeconds` is computed server-side from the earliest `leased_at` in the pack relative to `polledAt`. Requires Bearer JWT from an email on `PLATFORM_ADMIN_EMAILS`.
|
|
579
|
+
*/
|
|
580
|
+
get: operations["adminGetProductivityWorkers"];
|
|
581
|
+
put?: never;
|
|
582
|
+
post?: never;
|
|
583
|
+
delete?: never;
|
|
584
|
+
options?: never;
|
|
585
|
+
head?: never;
|
|
586
|
+
patch?: never;
|
|
587
|
+
trace?: never;
|
|
588
|
+
};
|
|
569
589
|
"/admin/platform/banner": {
|
|
570
590
|
parameters: {
|
|
571
591
|
query?: never;
|
|
@@ -12811,6 +12831,8 @@ export interface components {
|
|
|
12811
12831
|
skippedRepoCount: number;
|
|
12812
12832
|
/** @description Benign skips only (empty_repo, archived, no_merged_prs_in_window). Subset of skippedRepoCount. */
|
|
12813
12833
|
noDataRepoCount: number;
|
|
12834
|
+
/** @description Distinct repos with status=done for the live historicalWeekStart cursor week (backfill_historical). Null when the install is not on a week walk. Pair with totalRepoCount for captions like "40 / 234 active". */
|
|
12835
|
+
cursorWeekReposDone?: number | null;
|
|
12814
12836
|
};
|
|
12815
12837
|
IngestCoverageProductivityDetailDto: {
|
|
12816
12838
|
/** @enum {string|null} */
|
|
@@ -13247,6 +13269,38 @@ export interface components {
|
|
|
13247
13269
|
estimatedSpendCents: number;
|
|
13248
13270
|
invocationCount: number;
|
|
13249
13271
|
};
|
|
13272
|
+
/** @enum {string} */
|
|
13273
|
+
ProductivityWorkLedgerKindDto: "backfill_historical" | "incremental" | "ci_gap" | "week_rewrite";
|
|
13274
|
+
AdminProductivityWorkerCurrentLeaseDto: {
|
|
13275
|
+
kind: components["schemas"]["ProductivityWorkLedgerKindDto"];
|
|
13276
|
+
/** Format: uuid */
|
|
13277
|
+
workspaceId: string;
|
|
13278
|
+
workspaceSlug: string;
|
|
13279
|
+
/** Format: uuid */
|
|
13280
|
+
vcsConnectionId: string;
|
|
13281
|
+
/** @description Display label for the VCS install (e.g. github.com/org). */
|
|
13282
|
+
installLabel: string;
|
|
13283
|
+
/**
|
|
13284
|
+
* Format: date
|
|
13285
|
+
* @description UTC week Monday for the leased pack.
|
|
13286
|
+
*/
|
|
13287
|
+
weekBucketStart: string;
|
|
13288
|
+
repoCount: number;
|
|
13289
|
+
};
|
|
13290
|
+
AdminProductivityWorkerLaneDto: {
|
|
13291
|
+
workerId: string;
|
|
13292
|
+
elapsedSeconds: number;
|
|
13293
|
+
/** Format: date-time */
|
|
13294
|
+
leasedAt: string;
|
|
13295
|
+
/** Format: date-time */
|
|
13296
|
+
leaseExpiresAt?: string | null;
|
|
13297
|
+
current: components["schemas"]["AdminProductivityWorkerCurrentLeaseDto"];
|
|
13298
|
+
};
|
|
13299
|
+
AdminProductivityWorkersResponseDto: {
|
|
13300
|
+
lanes: components["schemas"]["AdminProductivityWorkerLaneDto"][];
|
|
13301
|
+
/** Format: date-time */
|
|
13302
|
+
polledAt: string;
|
|
13303
|
+
};
|
|
13250
13304
|
PlatformEcgSpendBucketDto: {
|
|
13251
13305
|
/** Format: int64 */
|
|
13252
13306
|
calls: number;
|
|
@@ -16463,6 +16517,10 @@ export type ActivityLogPageDto = components['schemas']['ActivityLogPageDto'];
|
|
|
16463
16517
|
export type AutomationCostOperationDto = components['schemas']['AutomationCostOperationDto'];
|
|
16464
16518
|
export type AutomationCostSummaryRowDto = components['schemas']['AutomationCostSummaryRowDto'];
|
|
16465
16519
|
export type AutomationCostSummaryTotalsDto = components['schemas']['AutomationCostSummaryTotalsDto'];
|
|
16520
|
+
export type ProductivityWorkLedgerKindDto = components['schemas']['ProductivityWorkLedgerKindDto'];
|
|
16521
|
+
export type AdminProductivityWorkerCurrentLeaseDto = components['schemas']['AdminProductivityWorkerCurrentLeaseDto'];
|
|
16522
|
+
export type AdminProductivityWorkerLaneDto = components['schemas']['AdminProductivityWorkerLaneDto'];
|
|
16523
|
+
export type AdminProductivityWorkersResponseDto = components['schemas']['AdminProductivityWorkersResponseDto'];
|
|
16466
16524
|
export type PlatformEcgSpendBucketDto = components['schemas']['PlatformEcgSpendBucketDto'];
|
|
16467
16525
|
export type PlatformEcgSpendSummaryDto = components['schemas']['PlatformEcgSpendSummaryDto'];
|
|
16468
16526
|
export type AutomationCostSummaryDto = components['schemas']['AutomationCostSummaryDto'];
|
|
@@ -18718,6 +18776,65 @@ export interface operations {
|
|
|
18718
18776
|
};
|
|
18719
18777
|
};
|
|
18720
18778
|
};
|
|
18779
|
+
adminGetProductivityWorkers: {
|
|
18780
|
+
parameters: {
|
|
18781
|
+
query?: never;
|
|
18782
|
+
header?: never;
|
|
18783
|
+
path?: never;
|
|
18784
|
+
cookie?: never;
|
|
18785
|
+
};
|
|
18786
|
+
requestBody?: never;
|
|
18787
|
+
responses: {
|
|
18788
|
+
/** @description Active lanes (empty list when no leases). */
|
|
18789
|
+
200: {
|
|
18790
|
+
headers: {
|
|
18791
|
+
[name: string]: unknown;
|
|
18792
|
+
};
|
|
18793
|
+
content: {
|
|
18794
|
+
"application/json": components["schemas"]["AdminProductivityWorkersResponseDto"];
|
|
18795
|
+
};
|
|
18796
|
+
};
|
|
18797
|
+
/** @description Missing or invalid JWT. */
|
|
18798
|
+
401: {
|
|
18799
|
+
headers: {
|
|
18800
|
+
[name: string]: unknown;
|
|
18801
|
+
};
|
|
18802
|
+
content: {
|
|
18803
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18804
|
+
};
|
|
18805
|
+
};
|
|
18806
|
+
/** @description Caller is not a platform admin. */
|
|
18807
|
+
403: {
|
|
18808
|
+
headers: {
|
|
18809
|
+
[name: string]: unknown;
|
|
18810
|
+
};
|
|
18811
|
+
content: {
|
|
18812
|
+
/**
|
|
18813
|
+
* @example {
|
|
18814
|
+
* "error": "Forbidden",
|
|
18815
|
+
* "code": "forbidden"
|
|
18816
|
+
* }
|
|
18817
|
+
*/
|
|
18818
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18819
|
+
};
|
|
18820
|
+
};
|
|
18821
|
+
/** @description Batch database (`READINESS_DATABASE_URL`) is not configured on this API instance. */
|
|
18822
|
+
503: {
|
|
18823
|
+
headers: {
|
|
18824
|
+
[name: string]: unknown;
|
|
18825
|
+
};
|
|
18826
|
+
content: {
|
|
18827
|
+
/**
|
|
18828
|
+
* @example {
|
|
18829
|
+
* "error": "Batch database unavailable",
|
|
18830
|
+
* "code": "batch_database_unavailable"
|
|
18831
|
+
* }
|
|
18832
|
+
*/
|
|
18833
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
18834
|
+
};
|
|
18835
|
+
};
|
|
18836
|
+
};
|
|
18837
|
+
};
|
|
18721
18838
|
adminGetPlatformBanner: {
|
|
18722
18839
|
parameters: {
|
|
18723
18840
|
query?: never;
|