@thinkai/tai-api-contract 2.100.0 → 2.102.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 +127 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +117 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +127 -0
|
@@ -581,6 +581,30 @@ export interface paths {
|
|
|
581
581
|
patch?: never;
|
|
582
582
|
trace?: never;
|
|
583
583
|
};
|
|
584
|
+
"/workspaces/{workspaceId}/productivity-targets": {
|
|
585
|
+
parameters: {
|
|
586
|
+
query?: never;
|
|
587
|
+
header?: never;
|
|
588
|
+
path?: never;
|
|
589
|
+
cookie?: never;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Get Productivity Insights weekly per-engineer targets
|
|
593
|
+
* @description Returns workspace-wide weekly per-engineer targets for Productivity Insights (Merged PRs, Ship Weight, CI Failures). Empty object `{}` means no targets are set. Member-level read access.
|
|
594
|
+
*/
|
|
595
|
+
get: operations["getWorkspaceProductivityTargets"];
|
|
596
|
+
/**
|
|
597
|
+
* Set Productivity Insights weekly per-engineer targets
|
|
598
|
+
* @description Full-replace workspace-wide weekly per-engineer targets for Productivity Insights. Omit a key or send `null` to unset that metric. `PUT {}` clears all three. `0` is a valid CI Failures target (ceiling). Requires workspace **admin** (editors receive `403` with `code: workspace_admin_required`).
|
|
599
|
+
*/
|
|
600
|
+
put: operations["putWorkspaceProductivityTargets"];
|
|
601
|
+
post?: never;
|
|
602
|
+
delete?: never;
|
|
603
|
+
options?: never;
|
|
604
|
+
head?: never;
|
|
605
|
+
patch?: never;
|
|
606
|
+
trace?: never;
|
|
607
|
+
};
|
|
584
608
|
"/workspaces/{workspaceId}/sources": {
|
|
585
609
|
parameters: {
|
|
586
610
|
query?: never;
|
|
@@ -4253,6 +4277,15 @@ export interface components {
|
|
|
4253
4277
|
[key: string]: components["schemas"]["RepoDeliveryOverrideDto"];
|
|
4254
4278
|
};
|
|
4255
4279
|
};
|
|
4280
|
+
/** @description Optional weekly per-engineer targets for Productivity Insights. Omitted or null fields mean no target for that metric. Additional properties are rejected. */
|
|
4281
|
+
ProductivityTargetsDto: {
|
|
4282
|
+
/** @description Floor — meet or exceed this many merged PRs per engineer per week. */
|
|
4283
|
+
mergedPrsPerEngineerPerWeek?: number | null;
|
|
4284
|
+
/** @description Floor — meet or exceed this ship weight per engineer per week. */
|
|
4285
|
+
shipWeightPerEngineerPerWeek?: number | null;
|
|
4286
|
+
/** @description Ceiling — stay at or below this many CI failures per engineer per week. `0` is valid. */
|
|
4287
|
+
ciFailuresPerEngineerPerWeek?: number | null;
|
|
4288
|
+
};
|
|
4256
4289
|
TestConnectionResponseDto: {
|
|
4257
4290
|
success: boolean;
|
|
4258
4291
|
/** @description Machine-readable failure code when success=false (e.g. invalid_token, zenhr_sync_in_progress when ZenHR OAuth refresh is contended). */
|
|
@@ -8144,6 +8177,14 @@ export interface components {
|
|
|
8144
8177
|
dupPct?: number | null;
|
|
8145
8178
|
/** @description Subset of `god_file`, `high_cc`, `long_params`, `deep_nesting`. */
|
|
8146
8179
|
flags: string[];
|
|
8180
|
+
/** @description Name of the function that owns `ccMax` (lizard). Null on snapshots taken before peak-function capture. */
|
|
8181
|
+
peakFunction?: string | null;
|
|
8182
|
+
/** @description 1-based start line of `peakFunction`. */
|
|
8183
|
+
peakStartLine?: number | null;
|
|
8184
|
+
/** @description 1-based end line of `peakFunction`. */
|
|
8185
|
+
peakEndLine?: number | null;
|
|
8186
|
+
/** @description Parameter count of `peakFunction` (not file-wide `paramsMax`). Null on older snapshots. */
|
|
8187
|
+
peakParams?: number | null;
|
|
8147
8188
|
};
|
|
8148
8189
|
CodeInsightsFindingDto: {
|
|
8149
8190
|
/** Format: uuid */
|
|
@@ -8425,6 +8466,7 @@ export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
|
8425
8466
|
export type DeliveryRoleConfigDto = components['schemas']['DeliveryRoleConfigDto'];
|
|
8426
8467
|
export type RepoDeliveryOverrideDto = components['schemas']['RepoDeliveryOverrideDto'];
|
|
8427
8468
|
export type DeliveryTopologyDto = components['schemas']['DeliveryTopologyDto'];
|
|
8469
|
+
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
8428
8470
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
8429
8471
|
export type CursorKeyUsageDto = components['schemas']['CursorKeyUsageDto'];
|
|
8430
8472
|
export type AiToolSeatDto = components['schemas']['AiToolSeatDto'];
|
|
@@ -10424,6 +10466,91 @@ export interface operations {
|
|
|
10424
10466
|
};
|
|
10425
10467
|
};
|
|
10426
10468
|
};
|
|
10469
|
+
getWorkspaceProductivityTargets: {
|
|
10470
|
+
parameters: {
|
|
10471
|
+
query?: never;
|
|
10472
|
+
header?: never;
|
|
10473
|
+
path: {
|
|
10474
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
10475
|
+
};
|
|
10476
|
+
cookie?: never;
|
|
10477
|
+
};
|
|
10478
|
+
requestBody?: never;
|
|
10479
|
+
responses: {
|
|
10480
|
+
/** @description Current targets (may be empty) */
|
|
10481
|
+
200: {
|
|
10482
|
+
headers: {
|
|
10483
|
+
[name: string]: unknown;
|
|
10484
|
+
};
|
|
10485
|
+
content: {
|
|
10486
|
+
"application/json": components["schemas"]["ProductivityTargetsDto"];
|
|
10487
|
+
};
|
|
10488
|
+
};
|
|
10489
|
+
401: components["responses"]["Unauthorized"];
|
|
10490
|
+
403: components["responses"]["Forbidden"];
|
|
10491
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
10492
|
+
404: {
|
|
10493
|
+
headers: {
|
|
10494
|
+
[name: string]: unknown;
|
|
10495
|
+
};
|
|
10496
|
+
content: {
|
|
10497
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10498
|
+
};
|
|
10499
|
+
};
|
|
10500
|
+
};
|
|
10501
|
+
};
|
|
10502
|
+
putWorkspaceProductivityTargets: {
|
|
10503
|
+
parameters: {
|
|
10504
|
+
query?: never;
|
|
10505
|
+
header?: never;
|
|
10506
|
+
path: {
|
|
10507
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
10508
|
+
};
|
|
10509
|
+
cookie?: never;
|
|
10510
|
+
};
|
|
10511
|
+
requestBody: {
|
|
10512
|
+
content: {
|
|
10513
|
+
"application/json": components["schemas"]["ProductivityTargetsDto"];
|
|
10514
|
+
};
|
|
10515
|
+
};
|
|
10516
|
+
responses: {
|
|
10517
|
+
/** @description Targets persisted (or cleared). */
|
|
10518
|
+
204: {
|
|
10519
|
+
headers: {
|
|
10520
|
+
[name: string]: unknown;
|
|
10521
|
+
};
|
|
10522
|
+
content?: never;
|
|
10523
|
+
};
|
|
10524
|
+
/** @description Invalid payload (unknown keys or out-of-range values) */
|
|
10525
|
+
400: {
|
|
10526
|
+
headers: {
|
|
10527
|
+
[name: string]: unknown;
|
|
10528
|
+
};
|
|
10529
|
+
content: {
|
|
10530
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10531
|
+
};
|
|
10532
|
+
};
|
|
10533
|
+
401: components["responses"]["Unauthorized"];
|
|
10534
|
+
/** @description Forbidden — workspace admin required */
|
|
10535
|
+
403: {
|
|
10536
|
+
headers: {
|
|
10537
|
+
[name: string]: unknown;
|
|
10538
|
+
};
|
|
10539
|
+
content: {
|
|
10540
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10541
|
+
};
|
|
10542
|
+
};
|
|
10543
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
10544
|
+
404: {
|
|
10545
|
+
headers: {
|
|
10546
|
+
[name: string]: unknown;
|
|
10547
|
+
};
|
|
10548
|
+
content: {
|
|
10549
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10550
|
+
};
|
|
10551
|
+
};
|
|
10552
|
+
};
|
|
10553
|
+
};
|
|
10427
10554
|
putTenantSources: {
|
|
10428
10555
|
parameters: {
|
|
10429
10556
|
query?: never;
|