@thinkai/tai-api-contract 2.105.0 → 2.107.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 +14 -1
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +34 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +14 -1
- package/src/index.ts +8 -0
|
@@ -7654,6 +7654,11 @@ export interface components {
|
|
|
7654
7654
|
InsightsRecommendationsReviewPipelineResponse: components["schemas"]["InsightsRecommendationsReviewPipeline"] & {
|
|
7655
7655
|
_meta: components["schemas"]["InsightsResponseMeta"];
|
|
7656
7656
|
};
|
|
7657
|
+
InsightsCostPerPrModelSlice: {
|
|
7658
|
+
modelName: string;
|
|
7659
|
+
spendUsd: number;
|
|
7660
|
+
tokenCount: number;
|
|
7661
|
+
};
|
|
7657
7662
|
InsightsCostPerPrTeam: {
|
|
7658
7663
|
id: string;
|
|
7659
7664
|
name: string;
|
|
@@ -7664,6 +7669,8 @@ export interface components {
|
|
|
7664
7669
|
changePct: number;
|
|
7665
7670
|
/** @description Weekly cost per merged PR aligned to the selected week buckets (same order as filters.weekBuckets). Null when the team had no merged PRs in that week. */
|
|
7666
7671
|
trendUsdPerPr?: (number | null)[];
|
|
7672
|
+
/** @description Model spend mix for teams in the top five by spend in this response (server-computed from AI-tool usage). When multiple providers are in scope, each team's mix reflects that team's dominant provider by spend. Omitted when unavailable. */
|
|
7673
|
+
models?: components["schemas"]["InsightsCostPerPrModelSlice"][];
|
|
7667
7674
|
};
|
|
7668
7675
|
InsightsRecommendationsCostPerPr: {
|
|
7669
7676
|
orgAvgCostUsd: number;
|
|
@@ -8442,6 +8449,8 @@ export interface components {
|
|
|
8442
8449
|
ReadinessFixStatusFilter: "queued" | "generating" | "pr-created" | "merged" | "failed";
|
|
8443
8450
|
/** @description Filter fixes to a single workspace repository id. */
|
|
8444
8451
|
ReadinessFixRepoIdFilter: string;
|
|
8452
|
+
/** @description Filter fixes to specific readiness issue ids (repeat param or comma-separated UUIDs). At most 100 ids per request. Omitted = no issue-id filter. */
|
|
8453
|
+
ReadinessFixIssueIdsFilter: string[];
|
|
8445
8454
|
/** @description Case-insensitive filter on repo name, issue title, label, or description. */
|
|
8446
8455
|
ReadinessFixSearch: string;
|
|
8447
8456
|
/** @description Page size for the nested installation repo list (default 25, max 100). */
|
|
@@ -8809,6 +8818,7 @@ export type InsightsReviewStage = components['schemas']['InsightsReviewStage'];
|
|
|
8809
8818
|
export type InsightsReviewerLoadItem = components['schemas']['InsightsReviewerLoadItem'];
|
|
8810
8819
|
export type InsightsRecommendationsReviewPipeline = components['schemas']['InsightsRecommendationsReviewPipeline'];
|
|
8811
8820
|
export type InsightsRecommendationsReviewPipelineResponse = components['schemas']['InsightsRecommendationsReviewPipelineResponse'];
|
|
8821
|
+
export type InsightsCostPerPrModelSlice = components['schemas']['InsightsCostPerPrModelSlice'];
|
|
8812
8822
|
export type InsightsCostPerPrTeam = components['schemas']['InsightsCostPerPrTeam'];
|
|
8813
8823
|
export type InsightsRecommendationsCostPerPr = components['schemas']['InsightsRecommendationsCostPerPr'];
|
|
8814
8824
|
export type InsightsRecommendationsCostPerPrResponse = components['schemas']['InsightsRecommendationsCostPerPrResponse'];
|
|
@@ -8920,6 +8930,7 @@ export type ParameterReadinessRepoLanguage = components['parameters']['Readiness
|
|
|
8920
8930
|
export type ParameterReadinessFixSort = components['parameters']['ReadinessFixSort'];
|
|
8921
8931
|
export type ParameterReadinessFixStatusFilter = components['parameters']['ReadinessFixStatusFilter'];
|
|
8922
8932
|
export type ParameterReadinessFixRepoIdFilter = components['parameters']['ReadinessFixRepoIdFilter'];
|
|
8933
|
+
export type ParameterReadinessFixIssueIdsFilter = components['parameters']['ReadinessFixIssueIdsFilter'];
|
|
8923
8934
|
export type ParameterReadinessFixSearch = components['parameters']['ReadinessFixSearch'];
|
|
8924
8935
|
export type ParameterGithubRepoLimit = components['parameters']['GithubRepoLimit'];
|
|
8925
8936
|
export type ParameterGithubRepoOffset = components['parameters']['GithubRepoOffset'];
|
|
@@ -15802,6 +15813,8 @@ export interface operations {
|
|
|
15802
15813
|
status?: components["parameters"]["ReadinessFixStatusFilter"];
|
|
15803
15814
|
/** @description Filter fixes to a single workspace repository id. */
|
|
15804
15815
|
repoId?: components["parameters"]["ReadinessFixRepoIdFilter"];
|
|
15816
|
+
/** @description Filter fixes to specific readiness issue ids (repeat param or comma-separated UUIDs). At most 100 ids per request. Omitted = no issue-id filter. */
|
|
15817
|
+
issueIds?: components["parameters"]["ReadinessFixIssueIdsFilter"];
|
|
15805
15818
|
};
|
|
15806
15819
|
header?: never;
|
|
15807
15820
|
path: {
|
|
@@ -15820,7 +15833,7 @@ export interface operations {
|
|
|
15820
15833
|
"application/json": components["schemas"]["ReadinessFixListDto"];
|
|
15821
15834
|
};
|
|
15822
15835
|
};
|
|
15823
|
-
/** @description Invalid pagination or
|
|
15836
|
+
/** @description Invalid pagination, sort, or issueIds query */
|
|
15824
15837
|
400: {
|
|
15825
15838
|
headers: {
|
|
15826
15839
|
[name: string]: unknown;
|