@thinkai/tai-api-contract 2.49.0 → 2.51.0-pr.877.bf4a3821
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 +356 -42
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +404 -82
- package/package.json +1 -1
- package/src/generated/openapi.ts +356 -42
- package/src/index.ts +30 -0
package/src/index.ts
CHANGED
|
@@ -879,6 +879,36 @@ export interface AiUsageSpendAiAssistedCodePercentageDto {
|
|
|
879
879
|
weeks: AiUsageSpendAiAssistedCodeWeekDto[];
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
+
/** Availability of a provider engagement insight metric. */
|
|
883
|
+
export type ProviderEngagementInsightAvailability = "measured" | "not_applicable";
|
|
884
|
+
|
|
885
|
+
/** One provider-specific engagement insight metric (tab rate, sessions, etc.). */
|
|
886
|
+
export interface AiUsageSpendProviderEngagementMetricDto {
|
|
887
|
+
id: string;
|
|
888
|
+
label: string;
|
|
889
|
+
value: number | null;
|
|
890
|
+
displayValue: string;
|
|
891
|
+
availability: ProviderEngagementInsightAvailability;
|
|
892
|
+
unit?: string;
|
|
893
|
+
methodologyNote?: string;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/** Provider-specific engagement insight card (Cursor or Claude). */
|
|
897
|
+
export interface AiUsageSpendProviderEngagementCardDto {
|
|
898
|
+
providerId: string;
|
|
899
|
+
providerName: string;
|
|
900
|
+
metrics: AiUsageSpendProviderEngagementMetricDto[];
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/** Response for GET /workspaces/:workspaceId/insights/ai-usage-spend/provider-engagement-insights */
|
|
904
|
+
export interface AiUsageSpendProviderEngagementInsightsDto {
|
|
905
|
+
workspaceId: string;
|
|
906
|
+
range: "4w" | "8w" | "q";
|
|
907
|
+
scope: ProductivityInsightsAggregatedTeamsScopeDto;
|
|
908
|
+
generatedAt: string;
|
|
909
|
+
providers: AiUsageSpendProviderEngagementCardDto[];
|
|
910
|
+
}
|
|
911
|
+
|
|
882
912
|
/** One provider row in AI tool usage/spend rollups. */
|
|
883
913
|
export interface AiUsageSpendAiToolUsageSpendProviderItemDto {
|
|
884
914
|
providerId: string;
|