@flashbacktech/flashbackclient 0.2.75 → 0.2.76
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.
|
@@ -38,7 +38,7 @@ export interface TimeSeriesMeta {
|
|
|
38
38
|
window: DashboardWindow;
|
|
39
39
|
timeBucketSize: DashboardTimeBucketSize;
|
|
40
40
|
resourceFilter?: {
|
|
41
|
-
type: 'bucket' | 'model' | 'user' | 'node' | 'rule';
|
|
41
|
+
type: 'bucket' | 'model' | 'user' | 'node' | 'rule' | 'apiKey';
|
|
42
42
|
id: string;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -147,9 +147,10 @@ export interface AiGatewayTimeSeriesPoint extends AiGatewayMetrics {
|
|
|
147
147
|
ts: number;
|
|
148
148
|
entityId?: string;
|
|
149
149
|
}
|
|
150
|
-
/** GET /v2/stats/ai?scope=...&id=...&window=...&model=... */
|
|
150
|
+
/** GET /v2/stats/ai?scope=...&id=...&window=...&model=...&apiKeyId=... */
|
|
151
151
|
export interface AiGatewayStatsQueryParams extends DashboardStatsQueryParams {
|
|
152
152
|
model?: string;
|
|
153
|
+
apiKeyId?: string;
|
|
153
154
|
}
|
|
154
155
|
export type AiGatewayTimeSeriesResponse = TimeSeriesResponse<AiGatewayTimeSeriesPoint>;
|
|
155
156
|
export type AiGatewayBreakdownResponse = BreakdownResponse<AiGatewayMetrics>;
|
|
@@ -163,14 +164,15 @@ export interface PrivateChatTimeSeriesPoint extends PrivateChatMetrics {
|
|
|
163
164
|
entityId?: string;
|
|
164
165
|
}
|
|
165
166
|
/**
|
|
166
|
-
* GET /v2/stats/private-chat?scope=...&id=...&window=...&model=...&userId=...
|
|
167
|
+
* GET /v2/stats/private-chat?scope=...&id=...&window=...&model=...&userId=...&apiKeyId=...
|
|
167
168
|
*
|
|
168
|
-
* `model` and `
|
|
169
|
-
* to a single model or
|
|
169
|
+
* `model`, `userId`, and `apiKeyId` are resource-level filters that narrow the
|
|
170
|
+
* time-series to a single model, user, or API key respectively.
|
|
170
171
|
*/
|
|
171
172
|
export interface PrivateChatStatsQueryParams extends DashboardStatsQueryParams {
|
|
172
173
|
model?: string;
|
|
173
174
|
userId?: string;
|
|
175
|
+
apiKeyId?: string;
|
|
174
176
|
}
|
|
175
177
|
export type PrivateChatTimeSeriesResponse = TimeSeriesResponse<PrivateChatTimeSeriesPoint>;
|
|
176
178
|
export type PrivateChatModelBreakdownResponse = BreakdownResponse<PrivateChatMetrics>;
|
|
@@ -215,9 +217,10 @@ export interface PolicyTimeSeriesPoint extends PolicyMetrics {
|
|
|
215
217
|
ts: number;
|
|
216
218
|
entityId?: string;
|
|
217
219
|
}
|
|
218
|
-
/** GET /v2/stats/policies?scope=...&id=...&window=...&ruleId=... */
|
|
220
|
+
/** GET /v2/stats/policies?scope=...&id=...&window=...&ruleId=...&apiKeyId=... */
|
|
219
221
|
export interface PolicyStatsQueryParams extends DashboardStatsQueryParams {
|
|
220
222
|
ruleId?: string;
|
|
223
|
+
apiKeyId?: string;
|
|
221
224
|
}
|
|
222
225
|
export type PolicyTimeSeriesResponse = TimeSeriesResponse<PolicyTimeSeriesPoint>;
|
|
223
226
|
/**
|
|
@@ -240,7 +243,9 @@ export interface CreditTimeSeriesPoint extends CreditMetrics {
|
|
|
240
243
|
ts: number;
|
|
241
244
|
entityId?: string;
|
|
242
245
|
}
|
|
243
|
-
/** GET /v2/stats/credits?scope=...&id=...&window=... */
|
|
244
|
-
export
|
|
246
|
+
/** GET /v2/stats/credits?scope=...&id=...&window=...&apiKeyId=... */
|
|
247
|
+
export interface CreditStatsQueryParams extends DashboardStatsQueryParams {
|
|
248
|
+
apiKeyId?: string;
|
|
249
|
+
}
|
|
245
250
|
export type CreditTimeSeriesResponse = TimeSeriesResponse<CreditTimeSeriesPoint>;
|
|
246
251
|
export type CreditBreakdownResponse = BreakdownResponse<CreditMetrics>;
|