@thinkai/tai-api-contract 2.5.2 → 2.5.17
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 +1499 -27
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +317 -0
- package/dist/index.d.ts.map +1 -1
- package/openapi/openapi.yaml +2979 -1227
- package/package.json +1 -1
- package/src/generated/openapi.ts +1499 -27
- package/src/index.ts +353 -0
|
@@ -68,7 +68,10 @@ export interface paths {
|
|
|
68
68
|
path?: never;
|
|
69
69
|
cookie?: never;
|
|
70
70
|
};
|
|
71
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* List workspace team members
|
|
73
|
+
* @description Returns active workspace members (`tai_workspace_members` with `deleted_at` null). Any workspace member may list; invite and role changes require admin.
|
|
74
|
+
*/
|
|
72
75
|
get: operations["listTenantMembers"];
|
|
73
76
|
put?: never;
|
|
74
77
|
post?: never;
|
|
@@ -87,7 +90,10 @@ export interface paths {
|
|
|
87
90
|
};
|
|
88
91
|
get?: never;
|
|
89
92
|
put?: never;
|
|
90
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Invite member to workspace
|
|
95
|
+
* @description Workspace admin only. Upserts `tai_users` by email and adds or reactivates `tai_workspace_members`. Idempotent when the email is already an active member: returns **201** with the existing row and **does not change** their role if the request body role differs. Does not send email; optional `tai_workspace_invitations` row may be recorded (no accept/link flow yet).
|
|
96
|
+
*/
|
|
91
97
|
post: operations["inviteTenantMember"];
|
|
92
98
|
delete?: never;
|
|
93
99
|
options?: never;
|
|
@@ -105,11 +111,17 @@ export interface paths {
|
|
|
105
111
|
get?: never;
|
|
106
112
|
put?: never;
|
|
107
113
|
post?: never;
|
|
108
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Remove member from workspace
|
|
116
|
+
* @description Workspace admin only. Soft-deletes the membership (`deleted_at` set). Cannot remove the workspace owner or the last admin.
|
|
117
|
+
*/
|
|
109
118
|
delete: operations["removeTenantMember"];
|
|
110
119
|
options?: never;
|
|
111
120
|
head?: never;
|
|
112
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Update workspace member role
|
|
123
|
+
* @description Workspace admin only. `memberId` is `tai_users.id` (UUID), not the auth subject.
|
|
124
|
+
*/
|
|
113
125
|
patch: operations["updateTenantMemberRole"];
|
|
114
126
|
trace?: never;
|
|
115
127
|
};
|
|
@@ -227,6 +239,266 @@ export interface paths {
|
|
|
227
239
|
patch?: never;
|
|
228
240
|
trace?: never;
|
|
229
241
|
};
|
|
242
|
+
"/workspaces/{workspaceId}/insights/productivity-insights/aggregated-teams": {
|
|
243
|
+
parameters: {
|
|
244
|
+
query?: never;
|
|
245
|
+
header?: never;
|
|
246
|
+
path?: never;
|
|
247
|
+
cookie?: never;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Productivity insights — aggregated team weekly metrics
|
|
251
|
+
* @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.
|
|
252
|
+
*/
|
|
253
|
+
get: operations["getProductivityInsightsAggregatedTeams"];
|
|
254
|
+
put?: never;
|
|
255
|
+
post?: never;
|
|
256
|
+
delete?: never;
|
|
257
|
+
options?: never;
|
|
258
|
+
head?: never;
|
|
259
|
+
patch?: never;
|
|
260
|
+
trace?: never;
|
|
261
|
+
};
|
|
262
|
+
"/workspaces/{workspaceId}/insights/productivity-insights/merged-pr-trends": {
|
|
263
|
+
parameters: {
|
|
264
|
+
query?: never;
|
|
265
|
+
header?: never;
|
|
266
|
+
path?: never;
|
|
267
|
+
cookie?: never;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Productivity insights — merged PR trends (portfolio + contributors)
|
|
271
|
+
* @description Weekly merged PR counts for the Measure "Merged PR Trends" widget on /phase-c/c4 Individual Contributors. Returns a portfolio aggregate series plus per-contributor weekly counts, filtered by the same department, team, and range controls as the Measure UI.
|
|
272
|
+
*/
|
|
273
|
+
get: operations["getProductivityInsightsMergedPrTrends"];
|
|
274
|
+
put?: never;
|
|
275
|
+
post?: never;
|
|
276
|
+
delete?: never;
|
|
277
|
+
options?: never;
|
|
278
|
+
head?: never;
|
|
279
|
+
patch?: never;
|
|
280
|
+
trace?: never;
|
|
281
|
+
};
|
|
282
|
+
"/workspaces/{workspaceId}/insights/productivity-insights/teams": {
|
|
283
|
+
parameters: {
|
|
284
|
+
query?: never;
|
|
285
|
+
header?: never;
|
|
286
|
+
path?: never;
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Productivity insights — top teams and team drilldown
|
|
291
|
+
* @description Without `teamId`: returns the top-ranked teams by average weekly merged PR count for the Measure **Top teams** widget on /phase-c/c4 and /phase-c/c7. With `teamId`: returns weekly rollup and summary for a single team (powers `/phase-c/c4/teams/:teamId` drilldown).
|
|
292
|
+
*/
|
|
293
|
+
get: operations["getProductivityInsightsTeams"];
|
|
294
|
+
put?: never;
|
|
295
|
+
post?: never;
|
|
296
|
+
delete?: never;
|
|
297
|
+
options?: never;
|
|
298
|
+
head?: never;
|
|
299
|
+
patch?: never;
|
|
300
|
+
trace?: never;
|
|
301
|
+
};
|
|
302
|
+
"/workspaces/{workspaceId}/insights/productivity-insights/contributors/{contributorId}": {
|
|
303
|
+
parameters: {
|
|
304
|
+
query?: never;
|
|
305
|
+
header?: never;
|
|
306
|
+
path?: never;
|
|
307
|
+
cookie?: never;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Productivity insights — contributor drilldown
|
|
311
|
+
* @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).
|
|
312
|
+
*/
|
|
313
|
+
get: operations["getProductivityInsightsContributor"];
|
|
314
|
+
put?: never;
|
|
315
|
+
post?: never;
|
|
316
|
+
delete?: never;
|
|
317
|
+
options?: never;
|
|
318
|
+
head?: never;
|
|
319
|
+
patch?: never;
|
|
320
|
+
trace?: never;
|
|
321
|
+
};
|
|
322
|
+
"/workspaces/{workspaceId}/insights/productivity-insights/needs-attention": {
|
|
323
|
+
parameters: {
|
|
324
|
+
query?: never;
|
|
325
|
+
header?: never;
|
|
326
|
+
path?: never;
|
|
327
|
+
cookie?: never;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Productivity insights — needs attention (bottom performers)
|
|
331
|
+
* @description Bottom performers for the Measure "Needs attention" widget on /phase-c/c4 (LeadersLaggards laggards column). Returns the lowest-ranked teams or contributors by average weekly merged PR count for the selected filters and range.
|
|
332
|
+
*/
|
|
333
|
+
get: operations["getProductivityInsightsNeedsAttention"];
|
|
334
|
+
put?: never;
|
|
335
|
+
post?: never;
|
|
336
|
+
delete?: never;
|
|
337
|
+
options?: never;
|
|
338
|
+
head?: never;
|
|
339
|
+
patch?: never;
|
|
340
|
+
trace?: never;
|
|
341
|
+
};
|
|
342
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/aggregated-teams": {
|
|
343
|
+
parameters: {
|
|
344
|
+
query?: never;
|
|
345
|
+
header?: never;
|
|
346
|
+
path?: never;
|
|
347
|
+
cookie?: never;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* AI usage & spend insights — aggregated team weekly rollups
|
|
351
|
+
* @description Team-level AI adoption, token volume, and spend for the Measure **Aggregated Teams** view on `/phase-c/c7` and the dashboard AI Usage & Spend card. Aggregates stored AI-tool integration snapshots (daily usage + billing spend) by org-chart team using member email. Same filter params as other Measure insights routes.
|
|
352
|
+
*/
|
|
353
|
+
get: operations["getAiUsageSpendAggregatedTeams"];
|
|
354
|
+
put?: never;
|
|
355
|
+
post?: never;
|
|
356
|
+
delete?: never;
|
|
357
|
+
options?: never;
|
|
358
|
+
head?: never;
|
|
359
|
+
patch?: never;
|
|
360
|
+
trace?: never;
|
|
361
|
+
};
|
|
362
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/aggregated-contributors": {
|
|
363
|
+
parameters: {
|
|
364
|
+
query?: never;
|
|
365
|
+
header?: never;
|
|
366
|
+
path?: never;
|
|
367
|
+
cookie?: never;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* AI usage & spend insights — aggregated contributor weekly rollups
|
|
371
|
+
* @description Per-contributor AI adoption, token volume, and spend for the Measure **Individual Contributors** view on `/phase-c/c7`. Aggregates stored AI-tool integration snapshots (daily usage + billing spend) by org-chart person id (typically email). Same filter params as other Measure insights routes.
|
|
372
|
+
*/
|
|
373
|
+
get: operations["getAiUsageSpendAggregatedContributors"];
|
|
374
|
+
put?: never;
|
|
375
|
+
post?: never;
|
|
376
|
+
delete?: never;
|
|
377
|
+
options?: never;
|
|
378
|
+
head?: never;
|
|
379
|
+
patch?: never;
|
|
380
|
+
trace?: never;
|
|
381
|
+
};
|
|
382
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/contributor-tool-heatmap": {
|
|
383
|
+
parameters: {
|
|
384
|
+
query?: never;
|
|
385
|
+
header?: never;
|
|
386
|
+
path?: never;
|
|
387
|
+
cookie?: never;
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* AI usage & spend insights — contributor × week heatmap rows
|
|
391
|
+
* @description Contributor × week heatmap rows for the Measure **Individual Contributors** tool heatmap on `/phase-c/c7`. Same aggregation as aggregated-contributors; returns weekly token, spend, and active-user counts per org-chart person.
|
|
392
|
+
*/
|
|
393
|
+
get: operations["getAiUsageSpendContributorToolHeatmap"];
|
|
394
|
+
put?: never;
|
|
395
|
+
post?: never;
|
|
396
|
+
delete?: never;
|
|
397
|
+
options?: never;
|
|
398
|
+
head?: never;
|
|
399
|
+
patch?: never;
|
|
400
|
+
trace?: never;
|
|
401
|
+
};
|
|
402
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/key-insights": {
|
|
403
|
+
parameters: {
|
|
404
|
+
query?: never;
|
|
405
|
+
header?: never;
|
|
406
|
+
path?: never;
|
|
407
|
+
cookie?: never;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* AI usage & spend insights — key insights panel
|
|
411
|
+
* @description Narrative insight cards for the Measure **Key insights** panel on `/phase-c/c7` (AI Usage & Spend). Derived from scoped AI-tool usage/spend snapshots and productivity metrics for the selected filters and range.
|
|
412
|
+
*/
|
|
413
|
+
get: operations["getAiUsageSpendKeyInsights"];
|
|
414
|
+
put?: never;
|
|
415
|
+
post?: never;
|
|
416
|
+
delete?: never;
|
|
417
|
+
options?: never;
|
|
418
|
+
head?: never;
|
|
419
|
+
patch?: never;
|
|
420
|
+
trace?: never;
|
|
421
|
+
};
|
|
422
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/ai-assisted-code-percentage": {
|
|
423
|
+
parameters: {
|
|
424
|
+
query?: never;
|
|
425
|
+
header?: never;
|
|
426
|
+
path?: never;
|
|
427
|
+
cookie?: never;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* AI usage & spend insights — AI-assisted code percentage
|
|
431
|
+
* @description Period and weekly AI-assisted code percentage for the Measure **AI-assisted code** card on `/phase-c/c7` and the **AI impact** curve on `/phase-c/c4`. When scoped productivity metrics include `aiAssistedContributionRatioPercent`, values are **measured** from ingest; otherwise the API falls back to token→LOC heuristics and sets `dataQuality` to **estimated**. Clients should not present estimated series as Cursor-measured signal.
|
|
432
|
+
*/
|
|
433
|
+
get: operations["getAiUsageSpendAiAssistedCodePercentage"];
|
|
434
|
+
put?: never;
|
|
435
|
+
post?: never;
|
|
436
|
+
delete?: never;
|
|
437
|
+
options?: never;
|
|
438
|
+
head?: never;
|
|
439
|
+
patch?: never;
|
|
440
|
+
trace?: never;
|
|
441
|
+
};
|
|
442
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/ai-tool-usage-spend": {
|
|
443
|
+
parameters: {
|
|
444
|
+
query?: never;
|
|
445
|
+
header?: never;
|
|
446
|
+
path?: never;
|
|
447
|
+
cookie?: never;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* AI usage & spend insights — AI tool usage and spend by provider/model
|
|
451
|
+
* @description Scoped portfolio rollups of AI-tool token usage and spend by registered provider and by model (from daily usage `mostUsedModel`) for the **Provider / Model usage + spend** chart on `/phase-c/c4` and `/phase-c/c7`. Reads stored AI-tool integration snapshots (`tai_workspace_ai_tool_daily_usage`, `tai_workspace_ai_tool_spend`).
|
|
452
|
+
*/
|
|
453
|
+
get: operations["getAiUsageSpendAiToolUsageSpend"];
|
|
454
|
+
put?: never;
|
|
455
|
+
post?: never;
|
|
456
|
+
delete?: never;
|
|
457
|
+
options?: never;
|
|
458
|
+
head?: never;
|
|
459
|
+
patch?: never;
|
|
460
|
+
trace?: never;
|
|
461
|
+
};
|
|
462
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/team-tool-heatmap": {
|
|
463
|
+
parameters: {
|
|
464
|
+
query?: never;
|
|
465
|
+
header?: never;
|
|
466
|
+
path?: never;
|
|
467
|
+
cookie?: never;
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* AI usage & spend insights — team weekly heatmap
|
|
471
|
+
* @description Team × week rollups of AI-tool token volume, spend, and active users for the **Team tool heatmap** on `/phase-c/c4` and `/phase-c/c7`. Aggregates stored AI-tool integration snapshots by org-chart team. Same filter params as other Measure insights routes.
|
|
472
|
+
*/
|
|
473
|
+
get: operations["getAiUsageSpendTeamToolHeatmap"];
|
|
474
|
+
put?: never;
|
|
475
|
+
post?: never;
|
|
476
|
+
delete?: never;
|
|
477
|
+
options?: never;
|
|
478
|
+
head?: never;
|
|
479
|
+
patch?: never;
|
|
480
|
+
trace?: never;
|
|
481
|
+
};
|
|
482
|
+
"/workspaces/{workspaceId}/insights/ai-usage-spend/roi-productivity-signal": {
|
|
483
|
+
parameters: {
|
|
484
|
+
query?: never;
|
|
485
|
+
header?: never;
|
|
486
|
+
path?: never;
|
|
487
|
+
cookie?: never;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* AI usage & spend insights — ROI and productivity signal
|
|
491
|
+
* @description Connects scoped AI-tool usage and spend to engineering throughput (merged PRs) for the **ROI & Productivity Signal** panel on `/phase-c/c4` and `/phase-c/c7`. Returns spend efficiency metrics, adoption counts, and weekly usage vs PR series. Same filter params as other Measure insights routes.
|
|
492
|
+
*/
|
|
493
|
+
get: operations["getAiUsageSpendRoiProductivitySignal"];
|
|
494
|
+
put?: never;
|
|
495
|
+
post?: never;
|
|
496
|
+
delete?: never;
|
|
497
|
+
options?: never;
|
|
498
|
+
head?: never;
|
|
499
|
+
patch?: never;
|
|
500
|
+
trace?: never;
|
|
501
|
+
};
|
|
230
502
|
"/workspaces/{workspaceId}/company-profile": {
|
|
231
503
|
parameters: {
|
|
232
504
|
query?: never;
|
|
@@ -1053,7 +1325,7 @@ export interface paths {
|
|
|
1053
1325
|
put?: never;
|
|
1054
1326
|
/**
|
|
1055
1327
|
* Import org chart from Supabase storage path
|
|
1056
|
-
* @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`.
|
|
1328
|
+
* @description Parse-only. Downloads the CSV at `storagePath` from the `org-charts` bucket and returns `persons` and `errors`. Does not persist to `spa_org_chart` or `org_chart`. The SPA derives teams client-side and saves the org structure via `POST /workspaces/{workspaceId}/org-chart`. Required columns: employee_id, name, email, title, department, team, manager_id, location. Optional: github_username (GitHub login for productivity ingest). Saving the SPA snapshot also materializes a scoring `org_chart` tree for team/person metrics when import members are present.
|
|
1057
1329
|
*/
|
|
1058
1330
|
post: operations["postOrgChartImport"];
|
|
1059
1331
|
delete?: never;
|
|
@@ -1068,8 +1340,11 @@ export interface components {
|
|
|
1068
1340
|
schemas: {
|
|
1069
1341
|
ErrorMessageDto: {
|
|
1070
1342
|
error: string;
|
|
1343
|
+
/** @description Machine-readable error code when present (for example `last_admin`). */
|
|
1344
|
+
code?: string;
|
|
1071
1345
|
};
|
|
1072
1346
|
TeamMemberDto: {
|
|
1347
|
+
/** Format: uuid */
|
|
1073
1348
|
id: string;
|
|
1074
1349
|
name: string;
|
|
1075
1350
|
email: string;
|
|
@@ -1118,14 +1393,22 @@ export interface components {
|
|
|
1118
1393
|
root: components["schemas"]["OrgChartNodeDto"];
|
|
1119
1394
|
};
|
|
1120
1395
|
OrgChartPersonDto: {
|
|
1396
|
+
/** @description Stable HR identifier; referenced by manager_id for reporting lines. */
|
|
1121
1397
|
employeeId: string;
|
|
1122
1398
|
name: string;
|
|
1399
|
+
/** @description Work email; used as canonical person_id in productivity ingest when present. */
|
|
1123
1400
|
email: string;
|
|
1401
|
+
/** @description Job title; used for contributor rows and leadership (enabler) hints. */
|
|
1124
1402
|
title: string;
|
|
1403
|
+
/** @description Department filter on Productivity insights. */
|
|
1125
1404
|
department: string;
|
|
1405
|
+
/** @description Engineering team name for Aggregated Teams and team drill-downs. */
|
|
1126
1406
|
team: string;
|
|
1407
|
+
/** @description employee_id of the person's manager; leave empty for top-level leaders. */
|
|
1127
1408
|
managerId: string;
|
|
1128
1409
|
location: string;
|
|
1410
|
+
/** @description GitHub login (no @) to map merged PRs and reviews to this person in productivity ingest. */
|
|
1411
|
+
githubUsername?: string;
|
|
1129
1412
|
};
|
|
1130
1413
|
OrgChartImportResultDto: {
|
|
1131
1414
|
persons: components["schemas"]["OrgChartPersonDto"][];
|
|
@@ -1249,26 +1532,404 @@ export interface components {
|
|
|
1249
1532
|
metrics: components["schemas"]["DashboardProductivityMetricsDto"];
|
|
1250
1533
|
}[];
|
|
1251
1534
|
};
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
name
|
|
1256
|
-
|
|
1257
|
-
defaultWorkspaceId?: string | null;
|
|
1535
|
+
ProductivityInsightsAggregatedTeamsScopeDto: {
|
|
1536
|
+
/** @description Applied department filter from the Measure UI. Backend scopes via CSV import (`thinkai_org_structure`) or SPA `department` nodes; unknown departments yield empty scoped results rather than org-wide rollups. */
|
|
1537
|
+
department: string;
|
|
1538
|
+
/** @description Applied team name filter from the Measure UI. */
|
|
1539
|
+
team: string;
|
|
1258
1540
|
};
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1541
|
+
ProductivityInsightsAggregatedTeamWeekDto: {
|
|
1542
|
+
/** Format: date-time */
|
|
1543
|
+
bucketStart: string;
|
|
1544
|
+
/** Format: date-time */
|
|
1545
|
+
bucketEnd: string;
|
|
1546
|
+
/** @description Short label for the week column (MM/DD), aligned with Measure charts. */
|
|
1547
|
+
weekLabel?: string;
|
|
1548
|
+
mergedPrCount: number;
|
|
1549
|
+
failRatePercent: number;
|
|
1550
|
+
};
|
|
1551
|
+
ProductivityInsightsAggregatedTeamRowDto: {
|
|
1552
|
+
teamId: string;
|
|
1553
|
+
teamName: string;
|
|
1554
|
+
headcount: number;
|
|
1555
|
+
managerLabel?: string;
|
|
1556
|
+
weeks: components["schemas"]["ProductivityInsightsAggregatedTeamWeekDto"][];
|
|
1557
|
+
};
|
|
1558
|
+
ProductivityInsightsAggregatedTeamsDto: {
|
|
1559
|
+
/** Format: uuid */
|
|
1560
|
+
workspaceId: string;
|
|
1561
|
+
/** @enum {string} */
|
|
1562
|
+
range: "4w" | "8w" | "q";
|
|
1563
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1564
|
+
/** Format: date-time */
|
|
1565
|
+
generatedAt: string;
|
|
1566
|
+
teams: components["schemas"]["ProductivityInsightsAggregatedTeamRowDto"][];
|
|
1263
1567
|
};
|
|
1264
|
-
|
|
1568
|
+
ProductivityInsightsMergedPrTrendWeekDto: {
|
|
1569
|
+
/** Format: date-time */
|
|
1570
|
+
bucketStart: string;
|
|
1571
|
+
/** Format: date-time */
|
|
1572
|
+
bucketEnd: string;
|
|
1573
|
+
/** @description Short label for the week column (MM/DD), aligned with Measure charts. */
|
|
1574
|
+
weekLabel?: string;
|
|
1575
|
+
mergedPrCount: number;
|
|
1576
|
+
};
|
|
1577
|
+
ProductivityInsightsMergedPrContributorRowDto: {
|
|
1578
|
+
/** @description Canonical person identifier (matches org chart person_id / employeeId). */
|
|
1579
|
+
personId: string;
|
|
1580
|
+
personName: string;
|
|
1581
|
+
teamName?: string;
|
|
1582
|
+
weeks: components["schemas"]["ProductivityInsightsMergedPrTrendWeekDto"][];
|
|
1583
|
+
};
|
|
1584
|
+
ProductivityInsightsMergedPrTrendsDto: {
|
|
1585
|
+
/** Format: uuid */
|
|
1586
|
+
workspaceId: string;
|
|
1587
|
+
/** @enum {string} */
|
|
1588
|
+
range: "4w" | "8w" | "q";
|
|
1589
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1590
|
+
/** Format: date-time */
|
|
1591
|
+
generatedAt: string;
|
|
1592
|
+
/** @description Portfolio aggregate merged PR counts (sum of filtered contributors per week). */
|
|
1593
|
+
weeks: components["schemas"]["ProductivityInsightsMergedPrTrendWeekDto"][];
|
|
1594
|
+
contributors: components["schemas"]["ProductivityInsightsMergedPrContributorRowDto"][];
|
|
1595
|
+
};
|
|
1596
|
+
ProductivityInsightsTeamLeaderItemDto: {
|
|
1597
|
+
/** @description 1-based rank within the top-teams list (1 = highest performer). */
|
|
1598
|
+
rank: number;
|
|
1599
|
+
teamId: string;
|
|
1600
|
+
teamName: string;
|
|
1601
|
+
/** @description Optional context line (e.g. headcount or manager). */
|
|
1602
|
+
subtitle?: string;
|
|
1603
|
+
/** @description Average weekly merged PR count over the selected range. */
|
|
1604
|
+
periodAvgMergedPrs: number;
|
|
1605
|
+
/** @description Percent change of the latest week vs the period average. */
|
|
1606
|
+
deltaVsPeriodAvgPercent: number;
|
|
1607
|
+
/** @description Average change failure rate over the range when available. */
|
|
1608
|
+
avgFailRatePercent?: number;
|
|
1609
|
+
};
|
|
1610
|
+
ProductivityInsightsTeamSummaryDto: {
|
|
1611
|
+
totalMergedPrs: number;
|
|
1612
|
+
avgMergedPrsPerWeek: number;
|
|
1613
|
+
avgFailRatePercent: number;
|
|
1614
|
+
headcount: number;
|
|
1615
|
+
};
|
|
1616
|
+
ProductivityInsightsTeamDetailDto: {
|
|
1617
|
+
teamId: string;
|
|
1618
|
+
teamName: string;
|
|
1619
|
+
headcount: number;
|
|
1620
|
+
managerLabel?: string;
|
|
1621
|
+
weeks: components["schemas"]["ProductivityInsightsAggregatedTeamWeekDto"][];
|
|
1622
|
+
summary: components["schemas"]["ProductivityInsightsTeamSummaryDto"];
|
|
1623
|
+
};
|
|
1624
|
+
ProductivityInsightsTeamsResponseDto: {
|
|
1625
|
+
/** Format: uuid */
|
|
1626
|
+
workspaceId: string;
|
|
1627
|
+
/** @enum {string} */
|
|
1628
|
+
range: "4w" | "8w" | "q";
|
|
1629
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1630
|
+
/** Format: date-time */
|
|
1631
|
+
generatedAt: string;
|
|
1632
|
+
/** @description Present when `teamId` query is omitted — top-ranked teams. */
|
|
1633
|
+
items?: components["schemas"]["ProductivityInsightsTeamLeaderItemDto"][];
|
|
1634
|
+
/** @description Present when `teamId` query is set — single-team drilldown. */
|
|
1635
|
+
team?: components["schemas"]["ProductivityInsightsTeamDetailDto"];
|
|
1636
|
+
};
|
|
1637
|
+
ProductivityInsightsContributorProfileDto: {
|
|
1638
|
+
/** @description Org-chart person id (typically email). */
|
|
1265
1639
|
id: string;
|
|
1266
|
-
slug: string;
|
|
1267
1640
|
name: string;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1641
|
+
title?: string;
|
|
1642
|
+
team?: string;
|
|
1643
|
+
department?: string;
|
|
1644
|
+
};
|
|
1645
|
+
ProductivityInsightsContributorActivityDayDto: {
|
|
1646
|
+
/** Format: date */
|
|
1647
|
+
date: string;
|
|
1648
|
+
dayIndex: number;
|
|
1649
|
+
mergedPrCount: number;
|
|
1650
|
+
mergedPrs: string[];
|
|
1651
|
+
absent: boolean;
|
|
1652
|
+
absenceType?: string;
|
|
1653
|
+
failureSignal: boolean;
|
|
1654
|
+
failures: string[];
|
|
1655
|
+
};
|
|
1656
|
+
ProductivityInsightsContributorActivityWeekDto: {
|
|
1657
|
+
label: string;
|
|
1658
|
+
/** Format: date-time */
|
|
1659
|
+
bucketStart: string;
|
|
1660
|
+
/** Format: date-time */
|
|
1661
|
+
bucketEnd: string;
|
|
1662
|
+
days: components["schemas"]["ProductivityInsightsContributorActivityDayDto"][];
|
|
1663
|
+
};
|
|
1664
|
+
ProductivityInsightsContributorActivitySummaryDto: {
|
|
1665
|
+
totalMergedPrs: number;
|
|
1666
|
+
avgMergedPrsPerWeek: number;
|
|
1667
|
+
totalAbsenceDays: number;
|
|
1668
|
+
avgFailRate: number;
|
|
1669
|
+
mergedPrDelta: number;
|
|
1670
|
+
avgMergedPrsPerWeekDelta: number;
|
|
1671
|
+
totalAbsenceDaysDelta: number;
|
|
1672
|
+
avgFailRateDelta: number;
|
|
1673
|
+
};
|
|
1674
|
+
ProductivityInsightsContributorDetailDto: {
|
|
1675
|
+
/** Format: uuid */
|
|
1676
|
+
workspaceId: string;
|
|
1677
|
+
contributorId: string;
|
|
1678
|
+
/** @enum {string} */
|
|
1679
|
+
range: "4w" | "8w" | "q";
|
|
1680
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1681
|
+
/** Format: date-time */
|
|
1682
|
+
generatedAt: string;
|
|
1683
|
+
contributor: components["schemas"]["ProductivityInsightsContributorProfileDto"];
|
|
1684
|
+
weeks: components["schemas"]["ProductivityInsightsContributorActivityWeekDto"][];
|
|
1685
|
+
summary: components["schemas"]["ProductivityInsightsContributorActivitySummaryDto"];
|
|
1686
|
+
};
|
|
1687
|
+
ProductivityInsightsNeedsAttentionItemDto: {
|
|
1688
|
+
/** @description 1-based rank within the laggards list (1 = lowest performer). */
|
|
1689
|
+
rank: number;
|
|
1690
|
+
/** @description Org chart team id or canonical person id. */
|
|
1691
|
+
entityId: string;
|
|
1692
|
+
/** @enum {string} */
|
|
1693
|
+
entityType: "team" | "contributor";
|
|
1694
|
+
name: string;
|
|
1695
|
+
/** @description Optional context line (e.g. headcount or job title). */
|
|
1696
|
+
subtitle?: string;
|
|
1697
|
+
/** @description Mean weekly merged PR count across the selected range. */
|
|
1698
|
+
periodAvgMergedPrs: number;
|
|
1699
|
+
/** @description Percent change of the latest week vs the period mean. */
|
|
1700
|
+
deltaVsPeriodAvgPercent: number;
|
|
1701
|
+
/** @description Mean weekly change-failure rate when available. */
|
|
1702
|
+
avgFailRatePercent?: number;
|
|
1703
|
+
};
|
|
1704
|
+
ProductivityInsightsNeedsAttentionDto: {
|
|
1705
|
+
/** Format: uuid */
|
|
1706
|
+
workspaceId: string;
|
|
1707
|
+
/** @enum {string} */
|
|
1708
|
+
range: "4w" | "8w" | "q";
|
|
1709
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1710
|
+
/** @enum {string} */
|
|
1711
|
+
entityType: "teams" | "contributors";
|
|
1712
|
+
/** Format: date-time */
|
|
1713
|
+
generatedAt: string;
|
|
1714
|
+
items: components["schemas"]["ProductivityInsightsNeedsAttentionItemDto"][];
|
|
1715
|
+
};
|
|
1716
|
+
AiUsageSpendAggregatedTeamWeekDto: {
|
|
1717
|
+
/** Format: date-time */
|
|
1718
|
+
bucketStart: string;
|
|
1719
|
+
/** Format: date-time */
|
|
1720
|
+
bucketEnd: string;
|
|
1721
|
+
/** @description Short label for table headers (e.g. MM/DD). */
|
|
1722
|
+
weekLabel?: string;
|
|
1723
|
+
/** @description Total tokens consumed in the bucket (from AI-tool daily usage payloads when available). */
|
|
1724
|
+
tokenCount: number;
|
|
1725
|
+
/** @description Estimated spend in USD cents attributed to the bucket. */
|
|
1726
|
+
spendCents: number;
|
|
1727
|
+
/** @description Distinct engineers with active AI-tool usage in the bucket. */
|
|
1728
|
+
activeUsers: number;
|
|
1729
|
+
};
|
|
1730
|
+
AiUsageSpendAggregatedTeamRowDto: {
|
|
1731
|
+
teamId: string;
|
|
1732
|
+
teamName: string;
|
|
1733
|
+
headcount: number;
|
|
1734
|
+
managerLabel?: string;
|
|
1735
|
+
weeks: components["schemas"]["AiUsageSpendAggregatedTeamWeekDto"][];
|
|
1736
|
+
};
|
|
1737
|
+
AiUsageSpendAggregatedTeamsSummaryDto: {
|
|
1738
|
+
totalTokenCount: number;
|
|
1739
|
+
totalSpendCents: number;
|
|
1740
|
+
/** @description Distinct engineers with any active usage in the selected range. */
|
|
1741
|
+
activeUsers: number;
|
|
1742
|
+
/** @description Count of connected AI-tool providers with usage or spend in range. */
|
|
1743
|
+
activeTools: number;
|
|
1744
|
+
/** @description Sum of org-chart headcount across returned teams. */
|
|
1745
|
+
totalEngineers: number;
|
|
1746
|
+
};
|
|
1747
|
+
AiUsageSpendAggregatedTeamsDto: {
|
|
1748
|
+
/** Format: uuid */
|
|
1749
|
+
workspaceId: string;
|
|
1750
|
+
/** @enum {string} */
|
|
1751
|
+
range: "4w" | "8w" | "q";
|
|
1752
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1753
|
+
/** Format: date-time */
|
|
1754
|
+
generatedAt: string;
|
|
1755
|
+
teams: components["schemas"]["AiUsageSpendAggregatedTeamRowDto"][];
|
|
1756
|
+
summary: components["schemas"]["AiUsageSpendAggregatedTeamsSummaryDto"];
|
|
1757
|
+
};
|
|
1758
|
+
AiUsageSpendAggregatedContributorRowDto: {
|
|
1759
|
+
/** @description Org-chart person id (typically email). */
|
|
1760
|
+
contributorId: string;
|
|
1761
|
+
contributorName: string;
|
|
1762
|
+
title?: string;
|
|
1763
|
+
team?: string;
|
|
1764
|
+
department?: string;
|
|
1765
|
+
weeks: components["schemas"]["AiUsageSpendAggregatedTeamWeekDto"][];
|
|
1766
|
+
};
|
|
1767
|
+
AiUsageSpendAggregatedContributorsDto: {
|
|
1768
|
+
/** Format: uuid */
|
|
1769
|
+
workspaceId: string;
|
|
1770
|
+
/** @enum {string} */
|
|
1771
|
+
range: "4w" | "8w" | "q";
|
|
1772
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1773
|
+
/** Format: date-time */
|
|
1774
|
+
generatedAt: string;
|
|
1775
|
+
contributors: components["schemas"]["AiUsageSpendAggregatedContributorRowDto"][];
|
|
1776
|
+
summary: components["schemas"]["AiUsageSpendAggregatedTeamsSummaryDto"];
|
|
1777
|
+
};
|
|
1778
|
+
AiUsageSpendContributorToolHeatmapDto: {
|
|
1779
|
+
/** Format: uuid */
|
|
1780
|
+
workspaceId: string;
|
|
1781
|
+
/** @enum {string} */
|
|
1782
|
+
range: "4w" | "8w" | "q";
|
|
1783
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1784
|
+
/** Format: date-time */
|
|
1785
|
+
generatedAt: string;
|
|
1786
|
+
contributors: components["schemas"]["AiUsageSpendAggregatedContributorRowDto"][];
|
|
1787
|
+
};
|
|
1788
|
+
AiUsageSpendKeyInsightItemDto: {
|
|
1789
|
+
/** @description Stable insight key (e.g. spend-leader, spend-vs-output). */
|
|
1790
|
+
id: string;
|
|
1791
|
+
/** @enum {string} */
|
|
1792
|
+
tone: "positive" | "warning" | "neutral";
|
|
1793
|
+
/** @description Human-readable insight sentence for the UI panel. */
|
|
1794
|
+
text: string;
|
|
1795
|
+
};
|
|
1796
|
+
AiUsageSpendKeyInsightsDto: {
|
|
1797
|
+
/** Format: uuid */
|
|
1798
|
+
workspaceId: string;
|
|
1799
|
+
/** @enum {string} */
|
|
1800
|
+
range: "4w" | "8w" | "q";
|
|
1801
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1802
|
+
/** Format: date-time */
|
|
1803
|
+
generatedAt: string;
|
|
1804
|
+
items: components["schemas"]["AiUsageSpendKeyInsightItemDto"][];
|
|
1805
|
+
};
|
|
1806
|
+
/**
|
|
1807
|
+
* @description **measured** — derived from scoped productivity ingest (`aiAdoption.aiAssistedContributionRatioPercent`). **estimated** — derived from AI-tool token volume heuristics when ingest ratios are absent for that bucket.
|
|
1808
|
+
* @enum {string}
|
|
1809
|
+
*/
|
|
1810
|
+
AiAssistedCodeDataQuality: "estimated" | "measured";
|
|
1811
|
+
AiUsageSpendAiAssistedCodeWeekDto: {
|
|
1812
|
+
/** Format: date-time */
|
|
1813
|
+
bucketStart: string;
|
|
1814
|
+
/** Format: date-time */
|
|
1815
|
+
bucketEnd: string;
|
|
1816
|
+
weekLabel?: string;
|
|
1817
|
+
aiAssistedCodePercent: number;
|
|
1818
|
+
totalLoc: number;
|
|
1819
|
+
aiLoc: number;
|
|
1820
|
+
humanLoc: number;
|
|
1821
|
+
dataQuality: components["schemas"]["AiAssistedCodeDataQuality"];
|
|
1822
|
+
};
|
|
1823
|
+
AiUsageSpendAiAssistedCodePercentageDto: {
|
|
1824
|
+
/** Format: uuid */
|
|
1825
|
+
workspaceId: string;
|
|
1826
|
+
/** @enum {string} */
|
|
1827
|
+
range: "4w" | "8w" | "q";
|
|
1828
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1829
|
+
/** Format: date-time */
|
|
1830
|
+
generatedAt: string;
|
|
1831
|
+
/** @description Portfolio AI-assisted code share for the selected period (0–100). */
|
|
1832
|
+
aiAssistedCodePercent: number;
|
|
1833
|
+
/** @description Period rollup quality. **measured** only when every weekly bucket in `weeks` used ingest ratios; otherwise **estimated** (including mixed ingest/heuristic weeks). */
|
|
1834
|
+
dataQuality: components["schemas"]["AiAssistedCodeDataQuality"];
|
|
1835
|
+
/** @description Change in AI-assisted code share vs the prior half of the range (percentage points). */
|
|
1836
|
+
deltaVsPriorPeriodPercent: number;
|
|
1837
|
+
totalLoc: number;
|
|
1838
|
+
aiLoc: number;
|
|
1839
|
+
humanLoc: number;
|
|
1840
|
+
/** @default 50 */
|
|
1841
|
+
targetMinPercent: number;
|
|
1842
|
+
/** @default 75 */
|
|
1843
|
+
targetMaxPercent: number;
|
|
1844
|
+
weeks: components["schemas"]["AiUsageSpendAiAssistedCodeWeekDto"][];
|
|
1845
|
+
};
|
|
1846
|
+
AiUsageSpendAiToolUsageSpendProviderItemDto: {
|
|
1847
|
+
providerId: string;
|
|
1848
|
+
providerName: string;
|
|
1849
|
+
tokenCount: number;
|
|
1850
|
+
spendCents: number;
|
|
1851
|
+
activeUsers: number;
|
|
1852
|
+
};
|
|
1853
|
+
AiUsageSpendAiToolUsageSpendModelItemDto: {
|
|
1854
|
+
providerId: string;
|
|
1855
|
+
providerName: string;
|
|
1856
|
+
modelName: string;
|
|
1857
|
+
tokenCount: number;
|
|
1858
|
+
spendCents: number;
|
|
1859
|
+
};
|
|
1860
|
+
AiUsageSpendAiToolUsageSpendDto: {
|
|
1861
|
+
/** Format: uuid */
|
|
1862
|
+
workspaceId: string;
|
|
1863
|
+
/** @enum {string} */
|
|
1864
|
+
range: "4w" | "8w" | "q";
|
|
1865
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1866
|
+
/** Format: date-time */
|
|
1867
|
+
generatedAt: string;
|
|
1868
|
+
totalEngineers: number;
|
|
1869
|
+
providers: components["schemas"]["AiUsageSpendAiToolUsageSpendProviderItemDto"][];
|
|
1870
|
+
models: components["schemas"]["AiUsageSpendAiToolUsageSpendModelItemDto"][];
|
|
1871
|
+
};
|
|
1872
|
+
AiUsageSpendTeamToolHeatmapDto: {
|
|
1873
|
+
/** Format: uuid */
|
|
1874
|
+
workspaceId: string;
|
|
1875
|
+
/** @enum {string} */
|
|
1876
|
+
range: "4w" | "8w" | "q";
|
|
1877
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1878
|
+
/** Format: date-time */
|
|
1879
|
+
generatedAt: string;
|
|
1880
|
+
teams: components["schemas"]["AiUsageSpendAggregatedTeamRowDto"][];
|
|
1881
|
+
};
|
|
1882
|
+
AiUsageSpendRoiProductivitySignalWeekDto: {
|
|
1883
|
+
/** Format: date-time */
|
|
1884
|
+
bucketStart: string;
|
|
1885
|
+
/** Format: date-time */
|
|
1886
|
+
bucketEnd: string;
|
|
1887
|
+
weekLabel?: string;
|
|
1888
|
+
/** @description Estimated merged PR count in the bucket from dashboard velocity metrics. */
|
|
1889
|
+
mergedPrCount: number;
|
|
1890
|
+
/** @description Total AI-tool tokens consumed in the bucket. */
|
|
1891
|
+
tokenCount: number;
|
|
1892
|
+
};
|
|
1893
|
+
AiUsageSpendRoiProductivitySignalDto: {
|
|
1894
|
+
/** Format: uuid */
|
|
1895
|
+
workspaceId: string;
|
|
1896
|
+
/** @enum {string} */
|
|
1897
|
+
range: "4w" | "8w" | "q";
|
|
1898
|
+
scope: components["schemas"]["ProductivityInsightsAggregatedTeamsScopeDto"];
|
|
1899
|
+
/** Format: date-time */
|
|
1900
|
+
generatedAt: string;
|
|
1901
|
+
totalMergedPrs: number;
|
|
1902
|
+
totalSpendCents: number;
|
|
1903
|
+
activeUsers: number;
|
|
1904
|
+
totalEngineers: number;
|
|
1905
|
+
/** @description Share of merged PRs estimated to be AI-assisted (0–1). */
|
|
1906
|
+
aiAssistedPrRatio: number;
|
|
1907
|
+
/** @description Percent change in merged PR throughput (recent half vs prior half of range). */
|
|
1908
|
+
prThroughputDeltaPercent: number;
|
|
1909
|
+
/** @description Percent change in token usage (recent half vs prior half of range). */
|
|
1910
|
+
usageDeltaPercent: number;
|
|
1911
|
+
weeks: components["schemas"]["AiUsageSpendRoiProductivitySignalWeekDto"][];
|
|
1912
|
+
};
|
|
1913
|
+
MeProfileDto: {
|
|
1914
|
+
id: string;
|
|
1915
|
+
email: string;
|
|
1916
|
+
name: string;
|
|
1917
|
+
roles: string[];
|
|
1918
|
+
defaultWorkspaceId?: string | null;
|
|
1919
|
+
};
|
|
1920
|
+
UpdateMeBodyDto: {
|
|
1921
|
+
name?: string;
|
|
1922
|
+
email?: string;
|
|
1923
|
+
defaultWorkspaceId?: string | null;
|
|
1924
|
+
};
|
|
1925
|
+
WorkspaceSummaryDto: {
|
|
1926
|
+
id: string;
|
|
1927
|
+
slug: string;
|
|
1928
|
+
name: string;
|
|
1929
|
+
status: string;
|
|
1930
|
+
};
|
|
1931
|
+
WorkspacesForUserDto: {
|
|
1932
|
+
workspaces: components["schemas"]["WorkspaceSummaryDto"][];
|
|
1272
1933
|
};
|
|
1273
1934
|
CreateWorkspaceBodyDto: {
|
|
1274
1935
|
slug: string;
|
|
@@ -1802,7 +2463,11 @@ export interface components {
|
|
|
1802
2463
|
RepoId: string;
|
|
1803
2464
|
ProjectId: string;
|
|
1804
2465
|
NotificationId: string;
|
|
2466
|
+
/** @description Workspace member user id (`tai_users.id`). */
|
|
2467
|
+
WorkspaceMemberId: string;
|
|
1805
2468
|
FixId: string;
|
|
2469
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
2470
|
+
InsightsDepartmentFilter: string;
|
|
1806
2471
|
};
|
|
1807
2472
|
requestBodies: never;
|
|
1808
2473
|
headers: never;
|
|
@@ -1832,6 +2497,42 @@ export type AiToolRefreshResponseDto = components['schemas']['AiToolRefreshRespo
|
|
|
1832
2497
|
export type DashboardProductivityMetricsDto = components['schemas']['DashboardProductivityMetricsDto'];
|
|
1833
2498
|
export type DashboardProductivityDto = components['schemas']['DashboardProductivityDto'];
|
|
1834
2499
|
export type DashboardProductivityHistoryDto = components['schemas']['DashboardProductivityHistoryDto'];
|
|
2500
|
+
export type ProductivityInsightsAggregatedTeamsScopeDto = components['schemas']['ProductivityInsightsAggregatedTeamsScopeDto'];
|
|
2501
|
+
export type ProductivityInsightsAggregatedTeamWeekDto = components['schemas']['ProductivityInsightsAggregatedTeamWeekDto'];
|
|
2502
|
+
export type ProductivityInsightsAggregatedTeamRowDto = components['schemas']['ProductivityInsightsAggregatedTeamRowDto'];
|
|
2503
|
+
export type ProductivityInsightsAggregatedTeamsDto = components['schemas']['ProductivityInsightsAggregatedTeamsDto'];
|
|
2504
|
+
export type ProductivityInsightsMergedPrTrendWeekDto = components['schemas']['ProductivityInsightsMergedPrTrendWeekDto'];
|
|
2505
|
+
export type ProductivityInsightsMergedPrContributorRowDto = components['schemas']['ProductivityInsightsMergedPrContributorRowDto'];
|
|
2506
|
+
export type ProductivityInsightsMergedPrTrendsDto = components['schemas']['ProductivityInsightsMergedPrTrendsDto'];
|
|
2507
|
+
export type ProductivityInsightsTeamLeaderItemDto = components['schemas']['ProductivityInsightsTeamLeaderItemDto'];
|
|
2508
|
+
export type ProductivityInsightsTeamSummaryDto = components['schemas']['ProductivityInsightsTeamSummaryDto'];
|
|
2509
|
+
export type ProductivityInsightsTeamDetailDto = components['schemas']['ProductivityInsightsTeamDetailDto'];
|
|
2510
|
+
export type ProductivityInsightsTeamsResponseDto = components['schemas']['ProductivityInsightsTeamsResponseDto'];
|
|
2511
|
+
export type ProductivityInsightsContributorProfileDto = components['schemas']['ProductivityInsightsContributorProfileDto'];
|
|
2512
|
+
export type ProductivityInsightsContributorActivityDayDto = components['schemas']['ProductivityInsightsContributorActivityDayDto'];
|
|
2513
|
+
export type ProductivityInsightsContributorActivityWeekDto = components['schemas']['ProductivityInsightsContributorActivityWeekDto'];
|
|
2514
|
+
export type ProductivityInsightsContributorActivitySummaryDto = components['schemas']['ProductivityInsightsContributorActivitySummaryDto'];
|
|
2515
|
+
export type ProductivityInsightsContributorDetailDto = components['schemas']['ProductivityInsightsContributorDetailDto'];
|
|
2516
|
+
export type ProductivityInsightsNeedsAttentionItemDto = components['schemas']['ProductivityInsightsNeedsAttentionItemDto'];
|
|
2517
|
+
export type ProductivityInsightsNeedsAttentionDto = components['schemas']['ProductivityInsightsNeedsAttentionDto'];
|
|
2518
|
+
export type AiUsageSpendAggregatedTeamWeekDto = components['schemas']['AiUsageSpendAggregatedTeamWeekDto'];
|
|
2519
|
+
export type AiUsageSpendAggregatedTeamRowDto = components['schemas']['AiUsageSpendAggregatedTeamRowDto'];
|
|
2520
|
+
export type AiUsageSpendAggregatedTeamsSummaryDto = components['schemas']['AiUsageSpendAggregatedTeamsSummaryDto'];
|
|
2521
|
+
export type AiUsageSpendAggregatedTeamsDto = components['schemas']['AiUsageSpendAggregatedTeamsDto'];
|
|
2522
|
+
export type AiUsageSpendAggregatedContributorRowDto = components['schemas']['AiUsageSpendAggregatedContributorRowDto'];
|
|
2523
|
+
export type AiUsageSpendAggregatedContributorsDto = components['schemas']['AiUsageSpendAggregatedContributorsDto'];
|
|
2524
|
+
export type AiUsageSpendContributorToolHeatmapDto = components['schemas']['AiUsageSpendContributorToolHeatmapDto'];
|
|
2525
|
+
export type AiUsageSpendKeyInsightItemDto = components['schemas']['AiUsageSpendKeyInsightItemDto'];
|
|
2526
|
+
export type AiUsageSpendKeyInsightsDto = components['schemas']['AiUsageSpendKeyInsightsDto'];
|
|
2527
|
+
export type AiAssistedCodeDataQuality = components['schemas']['AiAssistedCodeDataQuality'];
|
|
2528
|
+
export type AiUsageSpendAiAssistedCodeWeekDto = components['schemas']['AiUsageSpendAiAssistedCodeWeekDto'];
|
|
2529
|
+
export type AiUsageSpendAiAssistedCodePercentageDto = components['schemas']['AiUsageSpendAiAssistedCodePercentageDto'];
|
|
2530
|
+
export type AiUsageSpendAiToolUsageSpendProviderItemDto = components['schemas']['AiUsageSpendAiToolUsageSpendProviderItemDto'];
|
|
2531
|
+
export type AiUsageSpendAiToolUsageSpendModelItemDto = components['schemas']['AiUsageSpendAiToolUsageSpendModelItemDto'];
|
|
2532
|
+
export type AiUsageSpendAiToolUsageSpendDto = components['schemas']['AiUsageSpendAiToolUsageSpendDto'];
|
|
2533
|
+
export type AiUsageSpendTeamToolHeatmapDto = components['schemas']['AiUsageSpendTeamToolHeatmapDto'];
|
|
2534
|
+
export type AiUsageSpendRoiProductivitySignalWeekDto = components['schemas']['AiUsageSpendRoiProductivitySignalWeekDto'];
|
|
2535
|
+
export type AiUsageSpendRoiProductivitySignalDto = components['schemas']['AiUsageSpendRoiProductivitySignalDto'];
|
|
1835
2536
|
export type MeProfileDto = components['schemas']['MeProfileDto'];
|
|
1836
2537
|
export type UpdateMeBodyDto = components['schemas']['UpdateMeBodyDto'];
|
|
1837
2538
|
export type WorkspaceSummaryDto = components['schemas']['WorkspaceSummaryDto'];
|
|
@@ -1904,7 +2605,9 @@ export type ParameterWorkspaceId = components['parameters']['WorkspaceId'];
|
|
|
1904
2605
|
export type ParameterRepoId = components['parameters']['RepoId'];
|
|
1905
2606
|
export type ParameterProjectId = components['parameters']['ProjectId'];
|
|
1906
2607
|
export type ParameterNotificationId = components['parameters']['NotificationId'];
|
|
2608
|
+
export type ParameterWorkspaceMemberId = components['parameters']['WorkspaceMemberId'];
|
|
1907
2609
|
export type ParameterFixId = components['parameters']['FixId'];
|
|
2610
|
+
export type ParameterInsightsDepartmentFilter = components['parameters']['InsightsDepartmentFilter'];
|
|
1908
2611
|
export type $defs = Record<string, never>;
|
|
1909
2612
|
export interface operations {
|
|
1910
2613
|
getMe: {
|
|
@@ -2032,11 +2735,32 @@ export interface operations {
|
|
|
2032
2735
|
[name: string]: unknown;
|
|
2033
2736
|
};
|
|
2034
2737
|
content: {
|
|
2738
|
+
/**
|
|
2739
|
+
* @example {
|
|
2740
|
+
* "members": [
|
|
2741
|
+
* {
|
|
2742
|
+
* "id": "11111111-1111-4111-8111-111111111111",
|
|
2743
|
+
* "name": "Alex Admin",
|
|
2744
|
+
* "email": "alex@example.com",
|
|
2745
|
+
* "role": "admin"
|
|
2746
|
+
* }
|
|
2747
|
+
* ]
|
|
2748
|
+
* }
|
|
2749
|
+
*/
|
|
2035
2750
|
"application/json": components["schemas"]["TeamMemberListDto"];
|
|
2036
2751
|
};
|
|
2037
2752
|
};
|
|
2038
2753
|
401: components["responses"]["Unauthorized"];
|
|
2039
2754
|
403: components["responses"]["Forbidden"];
|
|
2755
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
2756
|
+
404: {
|
|
2757
|
+
headers: {
|
|
2758
|
+
[name: string]: unknown;
|
|
2759
|
+
};
|
|
2760
|
+
content: {
|
|
2761
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2040
2764
|
};
|
|
2041
2765
|
};
|
|
2042
2766
|
inviteTenantMember: {
|
|
@@ -2050,6 +2774,12 @@ export interface operations {
|
|
|
2050
2774
|
};
|
|
2051
2775
|
requestBody: {
|
|
2052
2776
|
content: {
|
|
2777
|
+
/**
|
|
2778
|
+
* @example {
|
|
2779
|
+
* "email": "new.member@example.com",
|
|
2780
|
+
* "role": "editor"
|
|
2781
|
+
* }
|
|
2782
|
+
*/
|
|
2053
2783
|
"application/json": components["schemas"]["InviteTeamMemberBodyDto"];
|
|
2054
2784
|
};
|
|
2055
2785
|
};
|
|
@@ -2063,8 +2793,26 @@ export interface operations {
|
|
|
2063
2793
|
"application/json": components["schemas"]["TeamMemberDto"];
|
|
2064
2794
|
};
|
|
2065
2795
|
};
|
|
2796
|
+
/** @description Invalid email or role */
|
|
2797
|
+
400: {
|
|
2798
|
+
headers: {
|
|
2799
|
+
[name: string]: unknown;
|
|
2800
|
+
};
|
|
2801
|
+
content: {
|
|
2802
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2803
|
+
};
|
|
2804
|
+
};
|
|
2066
2805
|
401: components["responses"]["Unauthorized"];
|
|
2067
2806
|
403: components["responses"]["Forbidden"];
|
|
2807
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
2808
|
+
404: {
|
|
2809
|
+
headers: {
|
|
2810
|
+
[name: string]: unknown;
|
|
2811
|
+
};
|
|
2812
|
+
content: {
|
|
2813
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2814
|
+
};
|
|
2815
|
+
};
|
|
2068
2816
|
};
|
|
2069
2817
|
};
|
|
2070
2818
|
removeTenantMember: {
|
|
@@ -2073,7 +2821,8 @@ export interface operations {
|
|
|
2073
2821
|
header?: never;
|
|
2074
2822
|
path: {
|
|
2075
2823
|
workspaceId: components["parameters"]["WorkspaceId"];
|
|
2076
|
-
|
|
2824
|
+
/** @description Workspace member user id (`tai_users.id`). */
|
|
2825
|
+
memberId: components["parameters"]["WorkspaceMemberId"];
|
|
2077
2826
|
};
|
|
2078
2827
|
cookie?: never;
|
|
2079
2828
|
};
|
|
@@ -2088,12 +2837,23 @@ export interface operations {
|
|
|
2088
2837
|
};
|
|
2089
2838
|
401: components["responses"]["Unauthorized"];
|
|
2090
2839
|
403: components["responses"]["Forbidden"];
|
|
2091
|
-
/** @description Member not found */
|
|
2840
|
+
/** @description Member not found or invalid memberId */
|
|
2092
2841
|
404: {
|
|
2093
2842
|
headers: {
|
|
2094
2843
|
[name: string]: unknown;
|
|
2095
2844
|
};
|
|
2096
|
-
content
|
|
2845
|
+
content: {
|
|
2846
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2847
|
+
};
|
|
2848
|
+
};
|
|
2849
|
+
/** @description Cannot remove workspace owner or last admin */
|
|
2850
|
+
409: {
|
|
2851
|
+
headers: {
|
|
2852
|
+
[name: string]: unknown;
|
|
2853
|
+
};
|
|
2854
|
+
content: {
|
|
2855
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2856
|
+
};
|
|
2097
2857
|
};
|
|
2098
2858
|
};
|
|
2099
2859
|
};
|
|
@@ -2103,12 +2863,18 @@ export interface operations {
|
|
|
2103
2863
|
header?: never;
|
|
2104
2864
|
path: {
|
|
2105
2865
|
workspaceId: components["parameters"]["WorkspaceId"];
|
|
2106
|
-
|
|
2866
|
+
/** @description Workspace member user id (`tai_users.id`). */
|
|
2867
|
+
memberId: components["parameters"]["WorkspaceMemberId"];
|
|
2107
2868
|
};
|
|
2108
2869
|
cookie?: never;
|
|
2109
2870
|
};
|
|
2110
2871
|
requestBody: {
|
|
2111
2872
|
content: {
|
|
2873
|
+
/**
|
|
2874
|
+
* @example {
|
|
2875
|
+
* "role": "viewer"
|
|
2876
|
+
* }
|
|
2877
|
+
*/
|
|
2112
2878
|
"application/json": components["schemas"]["UpdateTeamMemberRoleBodyDto"];
|
|
2113
2879
|
};
|
|
2114
2880
|
};
|
|
@@ -2122,14 +2888,34 @@ export interface operations {
|
|
|
2122
2888
|
"application/json": components["schemas"]["TeamMemberDto"];
|
|
2123
2889
|
};
|
|
2124
2890
|
};
|
|
2891
|
+
/** @description Invalid role payload */
|
|
2892
|
+
400: {
|
|
2893
|
+
headers: {
|
|
2894
|
+
[name: string]: unknown;
|
|
2895
|
+
};
|
|
2896
|
+
content: {
|
|
2897
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2898
|
+
};
|
|
2899
|
+
};
|
|
2125
2900
|
401: components["responses"]["Unauthorized"];
|
|
2126
2901
|
403: components["responses"]["Forbidden"];
|
|
2127
|
-
/** @description Member not found */
|
|
2902
|
+
/** @description Member not found or invalid memberId */
|
|
2128
2903
|
404: {
|
|
2129
2904
|
headers: {
|
|
2130
2905
|
[name: string]: unknown;
|
|
2131
2906
|
};
|
|
2132
|
-
content
|
|
2907
|
+
content: {
|
|
2908
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
/** @description Cannot demote the last workspace admin */
|
|
2912
|
+
409: {
|
|
2913
|
+
headers: {
|
|
2914
|
+
[name: string]: unknown;
|
|
2915
|
+
};
|
|
2916
|
+
content: {
|
|
2917
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
2918
|
+
};
|
|
2133
2919
|
};
|
|
2134
2920
|
};
|
|
2135
2921
|
};
|
|
@@ -2420,6 +3206,692 @@ export interface operations {
|
|
|
2420
3206
|
401: components["responses"]["Unauthorized"];
|
|
2421
3207
|
};
|
|
2422
3208
|
};
|
|
3209
|
+
getProductivityInsightsAggregatedTeams: {
|
|
3210
|
+
parameters: {
|
|
3211
|
+
query?: {
|
|
3212
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3213
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3214
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3215
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3216
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3217
|
+
team?: string;
|
|
3218
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3219
|
+
windowEnd?: string;
|
|
3220
|
+
};
|
|
3221
|
+
header?: never;
|
|
3222
|
+
path: {
|
|
3223
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3224
|
+
};
|
|
3225
|
+
cookie?: never;
|
|
3226
|
+
};
|
|
3227
|
+
requestBody?: never;
|
|
3228
|
+
responses: {
|
|
3229
|
+
/** @description Aggregated team productivity series */
|
|
3230
|
+
200: {
|
|
3231
|
+
headers: {
|
|
3232
|
+
[name: string]: unknown;
|
|
3233
|
+
};
|
|
3234
|
+
content: {
|
|
3235
|
+
"application/json": components["schemas"]["ProductivityInsightsAggregatedTeamsDto"];
|
|
3236
|
+
};
|
|
3237
|
+
};
|
|
3238
|
+
/** @description Invalid query parameters */
|
|
3239
|
+
400: {
|
|
3240
|
+
headers: {
|
|
3241
|
+
[name: string]: unknown;
|
|
3242
|
+
};
|
|
3243
|
+
content: {
|
|
3244
|
+
"application/json": {
|
|
3245
|
+
/** @example invalid_query */
|
|
3246
|
+
error: string;
|
|
3247
|
+
};
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
3250
|
+
401: components["responses"]["Unauthorized"];
|
|
3251
|
+
403: components["responses"]["Forbidden"];
|
|
3252
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3253
|
+
404: {
|
|
3254
|
+
headers: {
|
|
3255
|
+
[name: string]: unknown;
|
|
3256
|
+
};
|
|
3257
|
+
content?: never;
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
getProductivityInsightsMergedPrTrends: {
|
|
3262
|
+
parameters: {
|
|
3263
|
+
query?: {
|
|
3264
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3265
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3266
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3267
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3268
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3269
|
+
team?: string;
|
|
3270
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3271
|
+
windowEnd?: string;
|
|
3272
|
+
};
|
|
3273
|
+
header?: never;
|
|
3274
|
+
path: {
|
|
3275
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3276
|
+
};
|
|
3277
|
+
cookie?: never;
|
|
3278
|
+
};
|
|
3279
|
+
requestBody?: never;
|
|
3280
|
+
responses: {
|
|
3281
|
+
/** @description Portfolio and per-contributor merged PR weekly series */
|
|
3282
|
+
200: {
|
|
3283
|
+
headers: {
|
|
3284
|
+
[name: string]: unknown;
|
|
3285
|
+
};
|
|
3286
|
+
content: {
|
|
3287
|
+
"application/json": components["schemas"]["ProductivityInsightsMergedPrTrendsDto"];
|
|
3288
|
+
};
|
|
3289
|
+
};
|
|
3290
|
+
/** @description Invalid query parameters */
|
|
3291
|
+
400: {
|
|
3292
|
+
headers: {
|
|
3293
|
+
[name: string]: unknown;
|
|
3294
|
+
};
|
|
3295
|
+
content: {
|
|
3296
|
+
"application/json": {
|
|
3297
|
+
/** @example invalid_query */
|
|
3298
|
+
error: string;
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
};
|
|
3302
|
+
401: components["responses"]["Unauthorized"];
|
|
3303
|
+
403: components["responses"]["Forbidden"];
|
|
3304
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3305
|
+
404: {
|
|
3306
|
+
headers: {
|
|
3307
|
+
[name: string]: unknown;
|
|
3308
|
+
};
|
|
3309
|
+
content?: never;
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
};
|
|
3313
|
+
getProductivityInsightsTeams: {
|
|
3314
|
+
parameters: {
|
|
3315
|
+
query?: {
|
|
3316
|
+
/** @description When set, return drilldown for this org-chart team id instead of the top-team list. */
|
|
3317
|
+
teamId?: string;
|
|
3318
|
+
/** @description Maximum top-team rows when `teamId` is omitted (UI default 3). */
|
|
3319
|
+
limit?: number;
|
|
3320
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3321
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3322
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3323
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3324
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3325
|
+
team?: string;
|
|
3326
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3327
|
+
windowEnd?: string;
|
|
3328
|
+
};
|
|
3329
|
+
header?: never;
|
|
3330
|
+
path: {
|
|
3331
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3332
|
+
};
|
|
3333
|
+
cookie?: never;
|
|
3334
|
+
};
|
|
3335
|
+
requestBody?: never;
|
|
3336
|
+
responses: {
|
|
3337
|
+
/** @description Top teams list or single-team drilldown */
|
|
3338
|
+
200: {
|
|
3339
|
+
headers: {
|
|
3340
|
+
[name: string]: unknown;
|
|
3341
|
+
};
|
|
3342
|
+
content: {
|
|
3343
|
+
"application/json": components["schemas"]["ProductivityInsightsTeamsResponseDto"];
|
|
3344
|
+
};
|
|
3345
|
+
};
|
|
3346
|
+
/** @description Invalid query parameters */
|
|
3347
|
+
400: {
|
|
3348
|
+
headers: {
|
|
3349
|
+
[name: string]: unknown;
|
|
3350
|
+
};
|
|
3351
|
+
content: {
|
|
3352
|
+
"application/json": {
|
|
3353
|
+
/** @example invalid_query */
|
|
3354
|
+
error: string;
|
|
3355
|
+
};
|
|
3356
|
+
};
|
|
3357
|
+
};
|
|
3358
|
+
401: components["responses"]["Unauthorized"];
|
|
3359
|
+
403: components["responses"]["Forbidden"];
|
|
3360
|
+
/** @description Workspace or team not found */
|
|
3361
|
+
404: {
|
|
3362
|
+
headers: {
|
|
3363
|
+
[name: string]: unknown;
|
|
3364
|
+
};
|
|
3365
|
+
content?: never;
|
|
3366
|
+
};
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
getProductivityInsightsContributor: {
|
|
3370
|
+
parameters: {
|
|
3371
|
+
query?: {
|
|
3372
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3373
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3374
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3375
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3376
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3377
|
+
team?: string;
|
|
3378
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3379
|
+
windowEnd?: string;
|
|
3380
|
+
};
|
|
3381
|
+
header?: never;
|
|
3382
|
+
path: {
|
|
3383
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3384
|
+
/** @description Org-chart person id (e.g. email from `person_id` external id). */
|
|
3385
|
+
contributorId: string;
|
|
3386
|
+
};
|
|
3387
|
+
cookie?: never;
|
|
3388
|
+
};
|
|
3389
|
+
requestBody?: never;
|
|
3390
|
+
responses: {
|
|
3391
|
+
/** @description Contributor activity drilldown */
|
|
3392
|
+
200: {
|
|
3393
|
+
headers: {
|
|
3394
|
+
[name: string]: unknown;
|
|
3395
|
+
};
|
|
3396
|
+
content: {
|
|
3397
|
+
"application/json": components["schemas"]["ProductivityInsightsContributorDetailDto"];
|
|
3398
|
+
};
|
|
3399
|
+
};
|
|
3400
|
+
/** @description Invalid query parameters */
|
|
3401
|
+
400: {
|
|
3402
|
+
headers: {
|
|
3403
|
+
[name: string]: unknown;
|
|
3404
|
+
};
|
|
3405
|
+
content: {
|
|
3406
|
+
"application/json": {
|
|
3407
|
+
/** @example invalid_query */
|
|
3408
|
+
error: string;
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
401: components["responses"]["Unauthorized"];
|
|
3413
|
+
403: components["responses"]["Forbidden"];
|
|
3414
|
+
/** @description Workspace or contributor not found */
|
|
3415
|
+
404: {
|
|
3416
|
+
headers: {
|
|
3417
|
+
[name: string]: unknown;
|
|
3418
|
+
};
|
|
3419
|
+
content?: never;
|
|
3420
|
+
};
|
|
3421
|
+
};
|
|
3422
|
+
};
|
|
3423
|
+
getProductivityInsightsNeedsAttention: {
|
|
3424
|
+
parameters: {
|
|
3425
|
+
query?: {
|
|
3426
|
+
/** @description Rank teams (Aggregated Teams tab) or contributors (Individual Contributors tab). */
|
|
3427
|
+
entityType?: "teams" | "contributors";
|
|
3428
|
+
/** @description Maximum number of laggard rows to return (UI default 3). */
|
|
3429
|
+
limit?: number;
|
|
3430
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3431
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3432
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3433
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3434
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3435
|
+
team?: string;
|
|
3436
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3437
|
+
windowEnd?: string;
|
|
3438
|
+
};
|
|
3439
|
+
header?: never;
|
|
3440
|
+
path: {
|
|
3441
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3442
|
+
};
|
|
3443
|
+
cookie?: never;
|
|
3444
|
+
};
|
|
3445
|
+
requestBody?: never;
|
|
3446
|
+
responses: {
|
|
3447
|
+
/** @description Bottom performers for the needs-attention widget */
|
|
3448
|
+
200: {
|
|
3449
|
+
headers: {
|
|
3450
|
+
[name: string]: unknown;
|
|
3451
|
+
};
|
|
3452
|
+
content: {
|
|
3453
|
+
"application/json": components["schemas"]["ProductivityInsightsNeedsAttentionDto"];
|
|
3454
|
+
};
|
|
3455
|
+
};
|
|
3456
|
+
/** @description Invalid query parameters */
|
|
3457
|
+
400: {
|
|
3458
|
+
headers: {
|
|
3459
|
+
[name: string]: unknown;
|
|
3460
|
+
};
|
|
3461
|
+
content: {
|
|
3462
|
+
"application/json": {
|
|
3463
|
+
/** @example invalid_query */
|
|
3464
|
+
error: string;
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
3467
|
+
};
|
|
3468
|
+
401: components["responses"]["Unauthorized"];
|
|
3469
|
+
403: components["responses"]["Forbidden"];
|
|
3470
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3471
|
+
404: {
|
|
3472
|
+
headers: {
|
|
3473
|
+
[name: string]: unknown;
|
|
3474
|
+
};
|
|
3475
|
+
content?: never;
|
|
3476
|
+
};
|
|
3477
|
+
};
|
|
3478
|
+
};
|
|
3479
|
+
getAiUsageSpendAggregatedTeams: {
|
|
3480
|
+
parameters: {
|
|
3481
|
+
query?: {
|
|
3482
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3483
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3484
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3485
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3486
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3487
|
+
team?: string;
|
|
3488
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3489
|
+
windowEnd?: string;
|
|
3490
|
+
};
|
|
3491
|
+
header?: never;
|
|
3492
|
+
path: {
|
|
3493
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3494
|
+
};
|
|
3495
|
+
cookie?: never;
|
|
3496
|
+
};
|
|
3497
|
+
requestBody?: never;
|
|
3498
|
+
responses: {
|
|
3499
|
+
/** @description Aggregated team AI usage and spend series */
|
|
3500
|
+
200: {
|
|
3501
|
+
headers: {
|
|
3502
|
+
[name: string]: unknown;
|
|
3503
|
+
};
|
|
3504
|
+
content: {
|
|
3505
|
+
"application/json": components["schemas"]["AiUsageSpendAggregatedTeamsDto"];
|
|
3506
|
+
};
|
|
3507
|
+
};
|
|
3508
|
+
/** @description Invalid query parameters */
|
|
3509
|
+
400: {
|
|
3510
|
+
headers: {
|
|
3511
|
+
[name: string]: unknown;
|
|
3512
|
+
};
|
|
3513
|
+
content: {
|
|
3514
|
+
"application/json": {
|
|
3515
|
+
/** @example invalid_query */
|
|
3516
|
+
error: string;
|
|
3517
|
+
};
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
401: components["responses"]["Unauthorized"];
|
|
3521
|
+
403: components["responses"]["Forbidden"];
|
|
3522
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3523
|
+
404: {
|
|
3524
|
+
headers: {
|
|
3525
|
+
[name: string]: unknown;
|
|
3526
|
+
};
|
|
3527
|
+
content?: never;
|
|
3528
|
+
};
|
|
3529
|
+
};
|
|
3530
|
+
};
|
|
3531
|
+
getAiUsageSpendAggregatedContributors: {
|
|
3532
|
+
parameters: {
|
|
3533
|
+
query?: {
|
|
3534
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3535
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3536
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3537
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3538
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3539
|
+
team?: string;
|
|
3540
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3541
|
+
windowEnd?: string;
|
|
3542
|
+
};
|
|
3543
|
+
header?: never;
|
|
3544
|
+
path: {
|
|
3545
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3546
|
+
};
|
|
3547
|
+
cookie?: never;
|
|
3548
|
+
};
|
|
3549
|
+
requestBody?: never;
|
|
3550
|
+
responses: {
|
|
3551
|
+
/** @description Aggregated contributor AI usage and spend series */
|
|
3552
|
+
200: {
|
|
3553
|
+
headers: {
|
|
3554
|
+
[name: string]: unknown;
|
|
3555
|
+
};
|
|
3556
|
+
content: {
|
|
3557
|
+
"application/json": components["schemas"]["AiUsageSpendAggregatedContributorsDto"];
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
/** @description Invalid query parameters */
|
|
3561
|
+
400: {
|
|
3562
|
+
headers: {
|
|
3563
|
+
[name: string]: unknown;
|
|
3564
|
+
};
|
|
3565
|
+
content: {
|
|
3566
|
+
"application/json": {
|
|
3567
|
+
/** @example invalid_query */
|
|
3568
|
+
error: string;
|
|
3569
|
+
};
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
401: components["responses"]["Unauthorized"];
|
|
3573
|
+
403: components["responses"]["Forbidden"];
|
|
3574
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3575
|
+
404: {
|
|
3576
|
+
headers: {
|
|
3577
|
+
[name: string]: unknown;
|
|
3578
|
+
};
|
|
3579
|
+
content?: never;
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
};
|
|
3583
|
+
getAiUsageSpendContributorToolHeatmap: {
|
|
3584
|
+
parameters: {
|
|
3585
|
+
query?: {
|
|
3586
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3587
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3588
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3589
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3590
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3591
|
+
team?: string;
|
|
3592
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3593
|
+
windowEnd?: string;
|
|
3594
|
+
};
|
|
3595
|
+
header?: never;
|
|
3596
|
+
path: {
|
|
3597
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3598
|
+
};
|
|
3599
|
+
cookie?: never;
|
|
3600
|
+
};
|
|
3601
|
+
requestBody?: never;
|
|
3602
|
+
responses: {
|
|
3603
|
+
/** @description Contributor heatmap rows for AI usage and spend */
|
|
3604
|
+
200: {
|
|
3605
|
+
headers: {
|
|
3606
|
+
[name: string]: unknown;
|
|
3607
|
+
};
|
|
3608
|
+
content: {
|
|
3609
|
+
"application/json": components["schemas"]["AiUsageSpendContributorToolHeatmapDto"];
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3612
|
+
/** @description Invalid query parameters */
|
|
3613
|
+
400: {
|
|
3614
|
+
headers: {
|
|
3615
|
+
[name: string]: unknown;
|
|
3616
|
+
};
|
|
3617
|
+
content: {
|
|
3618
|
+
"application/json": {
|
|
3619
|
+
/** @example invalid_query */
|
|
3620
|
+
error: string;
|
|
3621
|
+
};
|
|
3622
|
+
};
|
|
3623
|
+
};
|
|
3624
|
+
401: components["responses"]["Unauthorized"];
|
|
3625
|
+
403: components["responses"]["Forbidden"];
|
|
3626
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3627
|
+
404: {
|
|
3628
|
+
headers: {
|
|
3629
|
+
[name: string]: unknown;
|
|
3630
|
+
};
|
|
3631
|
+
content?: never;
|
|
3632
|
+
};
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3635
|
+
getAiUsageSpendKeyInsights: {
|
|
3636
|
+
parameters: {
|
|
3637
|
+
query?: {
|
|
3638
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3639
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3640
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3641
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3642
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3643
|
+
team?: string;
|
|
3644
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3645
|
+
windowEnd?: string;
|
|
3646
|
+
};
|
|
3647
|
+
header?: never;
|
|
3648
|
+
path: {
|
|
3649
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3650
|
+
};
|
|
3651
|
+
cookie?: never;
|
|
3652
|
+
};
|
|
3653
|
+
requestBody?: never;
|
|
3654
|
+
responses: {
|
|
3655
|
+
/** @description Key insight cards for the AI usage & spend panel */
|
|
3656
|
+
200: {
|
|
3657
|
+
headers: {
|
|
3658
|
+
[name: string]: unknown;
|
|
3659
|
+
};
|
|
3660
|
+
content: {
|
|
3661
|
+
"application/json": components["schemas"]["AiUsageSpendKeyInsightsDto"];
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3664
|
+
/** @description Invalid query parameters */
|
|
3665
|
+
400: {
|
|
3666
|
+
headers: {
|
|
3667
|
+
[name: string]: unknown;
|
|
3668
|
+
};
|
|
3669
|
+
content: {
|
|
3670
|
+
"application/json": {
|
|
3671
|
+
/** @example invalid_query */
|
|
3672
|
+
error: string;
|
|
3673
|
+
};
|
|
3674
|
+
};
|
|
3675
|
+
};
|
|
3676
|
+
401: components["responses"]["Unauthorized"];
|
|
3677
|
+
403: components["responses"]["Forbidden"];
|
|
3678
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3679
|
+
404: {
|
|
3680
|
+
headers: {
|
|
3681
|
+
[name: string]: unknown;
|
|
3682
|
+
};
|
|
3683
|
+
content?: never;
|
|
3684
|
+
};
|
|
3685
|
+
};
|
|
3686
|
+
};
|
|
3687
|
+
getAiUsageSpendAiAssistedCodePercentage: {
|
|
3688
|
+
parameters: {
|
|
3689
|
+
query?: {
|
|
3690
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3691
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3692
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3693
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3694
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3695
|
+
team?: string;
|
|
3696
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3697
|
+
windowEnd?: string;
|
|
3698
|
+
};
|
|
3699
|
+
header?: never;
|
|
3700
|
+
path: {
|
|
3701
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3702
|
+
};
|
|
3703
|
+
cookie?: never;
|
|
3704
|
+
};
|
|
3705
|
+
requestBody?: never;
|
|
3706
|
+
responses: {
|
|
3707
|
+
/** @description AI-assisted code percentage series */
|
|
3708
|
+
200: {
|
|
3709
|
+
headers: {
|
|
3710
|
+
[name: string]: unknown;
|
|
3711
|
+
};
|
|
3712
|
+
content: {
|
|
3713
|
+
"application/json": components["schemas"]["AiUsageSpendAiAssistedCodePercentageDto"];
|
|
3714
|
+
};
|
|
3715
|
+
};
|
|
3716
|
+
/** @description Invalid query parameters */
|
|
3717
|
+
400: {
|
|
3718
|
+
headers: {
|
|
3719
|
+
[name: string]: unknown;
|
|
3720
|
+
};
|
|
3721
|
+
content: {
|
|
3722
|
+
"application/json": {
|
|
3723
|
+
/** @example invalid_query */
|
|
3724
|
+
error: string;
|
|
3725
|
+
};
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
401: components["responses"]["Unauthorized"];
|
|
3729
|
+
403: components["responses"]["Forbidden"];
|
|
3730
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3731
|
+
404: {
|
|
3732
|
+
headers: {
|
|
3733
|
+
[name: string]: unknown;
|
|
3734
|
+
};
|
|
3735
|
+
content?: never;
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
};
|
|
3739
|
+
getAiUsageSpendAiToolUsageSpend: {
|
|
3740
|
+
parameters: {
|
|
3741
|
+
query?: {
|
|
3742
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3743
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3744
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3745
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3746
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3747
|
+
team?: string;
|
|
3748
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3749
|
+
windowEnd?: string;
|
|
3750
|
+
};
|
|
3751
|
+
header?: never;
|
|
3752
|
+
path: {
|
|
3753
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3754
|
+
};
|
|
3755
|
+
cookie?: never;
|
|
3756
|
+
};
|
|
3757
|
+
requestBody?: never;
|
|
3758
|
+
responses: {
|
|
3759
|
+
/** @description Provider and model AI tool usage/spend rollups */
|
|
3760
|
+
200: {
|
|
3761
|
+
headers: {
|
|
3762
|
+
[name: string]: unknown;
|
|
3763
|
+
};
|
|
3764
|
+
content: {
|
|
3765
|
+
"application/json": components["schemas"]["AiUsageSpendAiToolUsageSpendDto"];
|
|
3766
|
+
};
|
|
3767
|
+
};
|
|
3768
|
+
/** @description Invalid query parameters */
|
|
3769
|
+
400: {
|
|
3770
|
+
headers: {
|
|
3771
|
+
[name: string]: unknown;
|
|
3772
|
+
};
|
|
3773
|
+
content: {
|
|
3774
|
+
"application/json": {
|
|
3775
|
+
/** @example invalid_query */
|
|
3776
|
+
error: string;
|
|
3777
|
+
};
|
|
3778
|
+
};
|
|
3779
|
+
};
|
|
3780
|
+
401: components["responses"]["Unauthorized"];
|
|
3781
|
+
403: components["responses"]["Forbidden"];
|
|
3782
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3783
|
+
404: {
|
|
3784
|
+
headers: {
|
|
3785
|
+
[name: string]: unknown;
|
|
3786
|
+
};
|
|
3787
|
+
content?: never;
|
|
3788
|
+
};
|
|
3789
|
+
};
|
|
3790
|
+
};
|
|
3791
|
+
getAiUsageSpendTeamToolHeatmap: {
|
|
3792
|
+
parameters: {
|
|
3793
|
+
query?: {
|
|
3794
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3795
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3796
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3797
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3798
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3799
|
+
team?: string;
|
|
3800
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3801
|
+
windowEnd?: string;
|
|
3802
|
+
};
|
|
3803
|
+
header?: never;
|
|
3804
|
+
path: {
|
|
3805
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3806
|
+
};
|
|
3807
|
+
cookie?: never;
|
|
3808
|
+
};
|
|
3809
|
+
requestBody?: never;
|
|
3810
|
+
responses: {
|
|
3811
|
+
/** @description Team weekly AI usage heatmap rows */
|
|
3812
|
+
200: {
|
|
3813
|
+
headers: {
|
|
3814
|
+
[name: string]: unknown;
|
|
3815
|
+
};
|
|
3816
|
+
content: {
|
|
3817
|
+
"application/json": components["schemas"]["AiUsageSpendTeamToolHeatmapDto"];
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
/** @description Invalid query parameters */
|
|
3821
|
+
400: {
|
|
3822
|
+
headers: {
|
|
3823
|
+
[name: string]: unknown;
|
|
3824
|
+
};
|
|
3825
|
+
content: {
|
|
3826
|
+
"application/json": {
|
|
3827
|
+
/** @example invalid_query */
|
|
3828
|
+
error: string;
|
|
3829
|
+
};
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
401: components["responses"]["Unauthorized"];
|
|
3833
|
+
403: components["responses"]["Forbidden"];
|
|
3834
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3835
|
+
404: {
|
|
3836
|
+
headers: {
|
|
3837
|
+
[name: string]: unknown;
|
|
3838
|
+
};
|
|
3839
|
+
content?: never;
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
};
|
|
3843
|
+
getAiUsageSpendRoiProductivitySignal: {
|
|
3844
|
+
parameters: {
|
|
3845
|
+
query?: {
|
|
3846
|
+
/** @description Measure time range (maps to weekly bucket count). */
|
|
3847
|
+
rangeId?: "4w" | "8w" | "q";
|
|
3848
|
+
/** @description Department filter; send `All departments` to include every department. Scoped using imported `thinkai_org_structure` members when present, otherwise SPA org chart `department` nodes and their descendant teams. When neither source defines the requested department, insights return no scoped teams or contributors (not org-wide data). */
|
|
3849
|
+
department?: components["parameters"]["InsightsDepartmentFilter"];
|
|
3850
|
+
/** @description Team name filter; send `All teams` to include every team. */
|
|
3851
|
+
team?: string;
|
|
3852
|
+
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
3853
|
+
windowEnd?: string;
|
|
3854
|
+
};
|
|
3855
|
+
header?: never;
|
|
3856
|
+
path: {
|
|
3857
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
3858
|
+
};
|
|
3859
|
+
cookie?: never;
|
|
3860
|
+
};
|
|
3861
|
+
requestBody?: never;
|
|
3862
|
+
responses: {
|
|
3863
|
+
/** @description ROI and productivity signal rollups */
|
|
3864
|
+
200: {
|
|
3865
|
+
headers: {
|
|
3866
|
+
[name: string]: unknown;
|
|
3867
|
+
};
|
|
3868
|
+
content: {
|
|
3869
|
+
"application/json": components["schemas"]["AiUsageSpendRoiProductivitySignalDto"];
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
/** @description Invalid query parameters */
|
|
3873
|
+
400: {
|
|
3874
|
+
headers: {
|
|
3875
|
+
[name: string]: unknown;
|
|
3876
|
+
};
|
|
3877
|
+
content: {
|
|
3878
|
+
"application/json": {
|
|
3879
|
+
/** @example invalid_query */
|
|
3880
|
+
error: string;
|
|
3881
|
+
};
|
|
3882
|
+
};
|
|
3883
|
+
};
|
|
3884
|
+
401: components["responses"]["Unauthorized"];
|
|
3885
|
+
403: components["responses"]["Forbidden"];
|
|
3886
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
3887
|
+
404: {
|
|
3888
|
+
headers: {
|
|
3889
|
+
[name: string]: unknown;
|
|
3890
|
+
};
|
|
3891
|
+
content?: never;
|
|
3892
|
+
};
|
|
3893
|
+
};
|
|
3894
|
+
};
|
|
2423
3895
|
getCompanyProfile: {
|
|
2424
3896
|
parameters: {
|
|
2425
3897
|
query?: never;
|