@thinkai/tai-api-contract 2.1.0 → 2.2.1

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/src/index.ts CHANGED
@@ -397,9 +397,10 @@ export interface CycleTimeBreakdownDto {
397
397
  items: CycleTimeBreakdownItemDto[];
398
398
  }
399
399
 
400
- /** CTO Dashboard: response for GET /tenants/:tenantId/dashboard/productivity */
400
+ /** CTO Dashboard: response for GET /workspaces/:workspaceId/dashboard/productivity */
401
401
  export interface DashboardProductivityDto {
402
- tenantId: string;
402
+ workspaceId: string;
403
+ generatedAt?: string;
403
404
  windowStart: string;
404
405
  windowEnd: string;
405
406
  scope: "org" | "team" | "person";
@@ -407,8 +408,10 @@ export interface DashboardProductivityDto {
407
408
  meta?: { sourceWindow?: string; computedAt?: string };
408
409
  }
409
410
 
410
- /** CTO Dashboard: time-series for GET /tenants/:tenantId/dashboard/productivity/history */
411
+ /** CTO Dashboard: time-series for GET /workspaces/:workspaceId/dashboard/productivity/history */
411
412
  export interface DashboardProductivityHistoryDto {
413
+ workspaceId: string;
414
+ bucket: "day" | "week" | "month";
412
415
  buckets: {
413
416
  bucketStart: string;
414
417
  bucketEnd: string;