@thinkai/tai-api-contract 2.51.0-pr.877.dd26e497 → 2.51.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/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.51.
|
|
4
|
+
version: 2.51.1
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -2205,6 +2205,26 @@ paths:
|
|
|
2205
2205
|
schema:
|
|
2206
2206
|
type: string
|
|
2207
2207
|
format: date-time
|
|
2208
|
+
- name: memberExternalId
|
|
2209
|
+
in: query
|
|
2210
|
+
description: >
|
|
2211
|
+
When set, aggregate engagement metrics for a single AI-tool member
|
|
2212
|
+
(user detail pages). Mutually exclusive with `scopeTeamId`.
|
|
2213
|
+
schema:
|
|
2214
|
+
type: string
|
|
2215
|
+
- name: scopeTeamId
|
|
2216
|
+
in: query
|
|
2217
|
+
description: >
|
|
2218
|
+
Org-chart team id — aggregate engagement for members mapped to that team
|
|
2219
|
+
(team detail pages). Mutually exclusive with `memberExternalId`.
|
|
2220
|
+
schema:
|
|
2221
|
+
type: string
|
|
2222
|
+
- name: provider
|
|
2223
|
+
in: query
|
|
2224
|
+
description: Optional provider id filter (`cursor`, `claude`) for detail pages.
|
|
2225
|
+
schema:
|
|
2226
|
+
type: string
|
|
2227
|
+
enum: [cursor, claude]
|
|
2208
2228
|
responses:
|
|
2209
2229
|
"200":
|
|
2210
2230
|
description: Provider engagement insight cards
|
|
@@ -8108,6 +8128,14 @@ components:
|
|
|
8108
8128
|
minimum: 0
|
|
8109
8129
|
dataQuality:
|
|
8110
8130
|
$ref: "#/components/schemas/AiAssistedCodeDataQuality"
|
|
8131
|
+
engagementAiLines:
|
|
8132
|
+
type: integer
|
|
8133
|
+
minimum: 0
|
|
8134
|
+
description: Accepted AI editor lines from engagement telemetry for this day.
|
|
8135
|
+
mergedPrLoc:
|
|
8136
|
+
type: integer
|
|
8137
|
+
minimum: 0
|
|
8138
|
+
description: Merged PR line denominator for this day when GitHub productivity data exists.
|
|
8111
8139
|
|
|
8112
8140
|
AiUsageSpendAiAssistedCodeWeekDto:
|
|
8113
8141
|
type: object
|
|
@@ -8146,6 +8174,14 @@ components:
|
|
|
8146
8174
|
minimum: 0
|
|
8147
8175
|
dataQuality:
|
|
8148
8176
|
$ref: "#/components/schemas/AiAssistedCodeDataQuality"
|
|
8177
|
+
engagementAiLines:
|
|
8178
|
+
type: integer
|
|
8179
|
+
minimum: 0
|
|
8180
|
+
description: Accepted AI editor lines from engagement telemetry for this week.
|
|
8181
|
+
mergedPrLoc:
|
|
8182
|
+
type: integer
|
|
8183
|
+
minimum: 0
|
|
8184
|
+
description: Merged PR line denominator for this week when GitHub productivity data exists.
|
|
8149
8185
|
|
|
8150
8186
|
AiUsageSpendAiAssistedCodePercentageDto:
|
|
8151
8187
|
type: object
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3301,6 +3301,10 @@ export interface components {
|
|
|
3301
3301
|
aiLoc: number;
|
|
3302
3302
|
humanLoc: number;
|
|
3303
3303
|
dataQuality: components["schemas"]["AiAssistedCodeDataQuality"];
|
|
3304
|
+
/** @description Accepted AI editor lines from engagement telemetry for this day. */
|
|
3305
|
+
engagementAiLines?: number;
|
|
3306
|
+
/** @description Merged PR line denominator for this day when GitHub productivity data exists. */
|
|
3307
|
+
mergedPrLoc?: number;
|
|
3304
3308
|
};
|
|
3305
3309
|
AiUsageSpendAiAssistedCodeWeekDto: {
|
|
3306
3310
|
/** Format: date-time */
|
|
@@ -3313,6 +3317,10 @@ export interface components {
|
|
|
3313
3317
|
aiLoc: number;
|
|
3314
3318
|
humanLoc: number;
|
|
3315
3319
|
dataQuality: components["schemas"]["AiAssistedCodeDataQuality"];
|
|
3320
|
+
/** @description Accepted AI editor lines from engagement telemetry for this week. */
|
|
3321
|
+
engagementAiLines?: number;
|
|
3322
|
+
/** @description Merged PR line denominator for this week when GitHub productivity data exists. */
|
|
3323
|
+
mergedPrLoc?: number;
|
|
3316
3324
|
};
|
|
3317
3325
|
AiUsageSpendAiAssistedCodePercentageDto: {
|
|
3318
3326
|
/** Format: uuid */
|
|
@@ -7766,6 +7774,12 @@ export interface operations {
|
|
|
7766
7774
|
team?: string;
|
|
7767
7775
|
/** @description ISO timestamp for the end of the last weekly bucket; omit for current week. */
|
|
7768
7776
|
windowEnd?: string;
|
|
7777
|
+
/** @description When set, aggregate engagement metrics for a single AI-tool member (user detail pages). Mutually exclusive with `scopeTeamId`. */
|
|
7778
|
+
memberExternalId?: string;
|
|
7779
|
+
/** @description Org-chart team id — aggregate engagement for members mapped to that team (team detail pages). Mutually exclusive with `memberExternalId`. */
|
|
7780
|
+
scopeTeamId?: string;
|
|
7781
|
+
/** @description Optional provider id filter (`cursor`, `claude`) for detail pages. */
|
|
7782
|
+
provider?: "cursor" | "claude";
|
|
7769
7783
|
};
|
|
7770
7784
|
header?: never;
|
|
7771
7785
|
path: {
|