@llmops/sdk 1.0.0-beta.2 → 1.0.0-beta.3
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/store/pg.cjs +440 -0
- package/dist/store/pg.d.cts +570 -1
- package/dist/store/pg.d.mts +570 -1
- package/dist/store/pg.mjs +431 -1
- package/package.json +6 -3
package/dist/store/pg.d.mts
CHANGED
|
@@ -1,2 +1,571 @@
|
|
|
1
1
|
import { PgStore, createPgStore as pgStore } from "@llmops/core";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
//#region src/store/pg/generated/llm_requests.d.ts
|
|
4
|
+
interface LlmRequests {
|
|
5
|
+
id: string;
|
|
6
|
+
requestId: string;
|
|
7
|
+
configId: string | null;
|
|
8
|
+
variantId: string | null;
|
|
9
|
+
environmentId: string | null;
|
|
10
|
+
providerConfigId: string | null;
|
|
11
|
+
provider: string;
|
|
12
|
+
model: string;
|
|
13
|
+
promptTokens: number;
|
|
14
|
+
completionTokens: number;
|
|
15
|
+
totalTokens: number;
|
|
16
|
+
cachedTokens: number;
|
|
17
|
+
cacheCreationTokens: number;
|
|
18
|
+
cost: number;
|
|
19
|
+
cacheSavings: number;
|
|
20
|
+
inputCost: number;
|
|
21
|
+
outputCost: number;
|
|
22
|
+
endpoint: string;
|
|
23
|
+
statusCode: number;
|
|
24
|
+
latencyMs: number;
|
|
25
|
+
isStreaming: boolean;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
tags: unknown;
|
|
28
|
+
guardrailResults: unknown | null;
|
|
29
|
+
traceId: string | null;
|
|
30
|
+
spanId: string | null;
|
|
31
|
+
parentSpanId: string | null;
|
|
32
|
+
sessionId: string | null;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
}
|
|
36
|
+
declare const LlmRequestsSchema: {
|
|
37
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
38
|
+
readonly title: "LlmRequests";
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly properties: {
|
|
41
|
+
readonly id: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly format: "uuid";
|
|
44
|
+
};
|
|
45
|
+
readonly requestId: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly format: "uuid";
|
|
48
|
+
};
|
|
49
|
+
readonly configId: {
|
|
50
|
+
readonly type: readonly ["string", "null"];
|
|
51
|
+
readonly format: "uuid";
|
|
52
|
+
};
|
|
53
|
+
readonly variantId: {
|
|
54
|
+
readonly type: readonly ["string", "null"];
|
|
55
|
+
readonly format: "uuid";
|
|
56
|
+
};
|
|
57
|
+
readonly environmentId: {
|
|
58
|
+
readonly type: readonly ["string", "null"];
|
|
59
|
+
readonly format: "uuid";
|
|
60
|
+
};
|
|
61
|
+
readonly providerConfigId: {
|
|
62
|
+
readonly type: readonly ["string", "null"];
|
|
63
|
+
readonly format: "uuid";
|
|
64
|
+
};
|
|
65
|
+
readonly provider: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly maxLength: 255;
|
|
68
|
+
};
|
|
69
|
+
readonly model: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly maxLength: 255;
|
|
72
|
+
};
|
|
73
|
+
readonly promptTokens: {
|
|
74
|
+
readonly type: "integer";
|
|
75
|
+
};
|
|
76
|
+
readonly completionTokens: {
|
|
77
|
+
readonly type: "integer";
|
|
78
|
+
};
|
|
79
|
+
readonly totalTokens: {
|
|
80
|
+
readonly type: "integer";
|
|
81
|
+
};
|
|
82
|
+
readonly cachedTokens: {
|
|
83
|
+
readonly type: "integer";
|
|
84
|
+
};
|
|
85
|
+
readonly cacheCreationTokens: {
|
|
86
|
+
readonly type: "integer";
|
|
87
|
+
};
|
|
88
|
+
readonly cost: {
|
|
89
|
+
readonly type: "integer";
|
|
90
|
+
};
|
|
91
|
+
readonly cacheSavings: {
|
|
92
|
+
readonly type: "integer";
|
|
93
|
+
};
|
|
94
|
+
readonly inputCost: {
|
|
95
|
+
readonly type: "integer";
|
|
96
|
+
};
|
|
97
|
+
readonly outputCost: {
|
|
98
|
+
readonly type: "integer";
|
|
99
|
+
};
|
|
100
|
+
readonly endpoint: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly maxLength: 255;
|
|
103
|
+
};
|
|
104
|
+
readonly statusCode: {
|
|
105
|
+
readonly type: "integer";
|
|
106
|
+
};
|
|
107
|
+
readonly latencyMs: {
|
|
108
|
+
readonly type: "integer";
|
|
109
|
+
};
|
|
110
|
+
readonly isStreaming: {
|
|
111
|
+
readonly type: "boolean";
|
|
112
|
+
};
|
|
113
|
+
readonly userId: {
|
|
114
|
+
readonly type: readonly ["string", "null"];
|
|
115
|
+
readonly maxLength: 255;
|
|
116
|
+
};
|
|
117
|
+
readonly tags: {
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
};
|
|
120
|
+
readonly guardrailResults: {
|
|
121
|
+
readonly type: readonly ["object", "null"];
|
|
122
|
+
};
|
|
123
|
+
readonly traceId: {
|
|
124
|
+
readonly type: readonly ["string", "null"];
|
|
125
|
+
readonly maxLength: 255;
|
|
126
|
+
};
|
|
127
|
+
readonly spanId: {
|
|
128
|
+
readonly type: readonly ["string", "null"];
|
|
129
|
+
readonly maxLength: 255;
|
|
130
|
+
};
|
|
131
|
+
readonly parentSpanId: {
|
|
132
|
+
readonly type: readonly ["string", "null"];
|
|
133
|
+
readonly maxLength: 255;
|
|
134
|
+
};
|
|
135
|
+
readonly sessionId: {
|
|
136
|
+
readonly type: readonly ["string", "null"];
|
|
137
|
+
readonly maxLength: 255;
|
|
138
|
+
};
|
|
139
|
+
readonly createdAt: {
|
|
140
|
+
readonly type: "string";
|
|
141
|
+
readonly format: "date-time";
|
|
142
|
+
};
|
|
143
|
+
readonly updatedAt: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly format: "date-time";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly required: readonly ["id", "requestId", "provider", "model", "promptTokens", "completionTokens", "totalTokens", "cachedTokens", "cacheCreationTokens", "cost", "cacheSavings", "inputCost", "outputCost", "endpoint", "statusCode", "latencyMs", "isStreaming", "tags", "createdAt", "updatedAt"];
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/store/pg/generated/span_events.d.ts
|
|
153
|
+
interface SpanEvents {
|
|
154
|
+
id: string;
|
|
155
|
+
traceId: string;
|
|
156
|
+
spanId: string;
|
|
157
|
+
name: string;
|
|
158
|
+
timestamp: string;
|
|
159
|
+
attributes: unknown;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
}
|
|
162
|
+
declare const SpanEventsSchema: {
|
|
163
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
164
|
+
readonly title: "SpanEvents";
|
|
165
|
+
readonly type: "object";
|
|
166
|
+
readonly properties: {
|
|
167
|
+
readonly id: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly format: "uuid";
|
|
170
|
+
};
|
|
171
|
+
readonly traceId: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly maxLength: 255;
|
|
174
|
+
};
|
|
175
|
+
readonly spanId: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly maxLength: 255;
|
|
178
|
+
};
|
|
179
|
+
readonly name: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly maxLength: 255;
|
|
182
|
+
};
|
|
183
|
+
readonly timestamp: {
|
|
184
|
+
readonly type: "string";
|
|
185
|
+
readonly format: "date-time";
|
|
186
|
+
};
|
|
187
|
+
readonly attributes: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
};
|
|
190
|
+
readonly createdAt: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly format: "date-time";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly required: readonly ["id", "traceId", "spanId", "name", "timestamp", "attributes", "createdAt"];
|
|
196
|
+
readonly additionalProperties: false;
|
|
197
|
+
};
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/store/pg/generated/spans.d.ts
|
|
200
|
+
interface Spans {
|
|
201
|
+
id: string;
|
|
202
|
+
traceId: string;
|
|
203
|
+
spanId: string;
|
|
204
|
+
parentSpanId: string | null;
|
|
205
|
+
name: string;
|
|
206
|
+
kind: number;
|
|
207
|
+
status: number;
|
|
208
|
+
statusMessage: string | null;
|
|
209
|
+
startTime: string;
|
|
210
|
+
endTime: string | null;
|
|
211
|
+
durationMs: number | null;
|
|
212
|
+
provider: string | null;
|
|
213
|
+
model: string | null;
|
|
214
|
+
promptTokens: number;
|
|
215
|
+
completionTokens: number;
|
|
216
|
+
totalTokens: number;
|
|
217
|
+
cost: number;
|
|
218
|
+
configId: string | null;
|
|
219
|
+
variantId: string | null;
|
|
220
|
+
environmentId: string | null;
|
|
221
|
+
providerConfigId: string | null;
|
|
222
|
+
requestId: string | null;
|
|
223
|
+
source: string;
|
|
224
|
+
input: unknown | null;
|
|
225
|
+
output: unknown | null;
|
|
226
|
+
attributes: unknown;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
}
|
|
230
|
+
declare const SpansSchema: {
|
|
231
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
232
|
+
readonly title: "Spans";
|
|
233
|
+
readonly type: "object";
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly id: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly format: "uuid";
|
|
238
|
+
};
|
|
239
|
+
readonly traceId: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly maxLength: 255;
|
|
242
|
+
};
|
|
243
|
+
readonly spanId: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly maxLength: 255;
|
|
246
|
+
};
|
|
247
|
+
readonly parentSpanId: {
|
|
248
|
+
readonly type: readonly ["string", "null"];
|
|
249
|
+
readonly maxLength: 255;
|
|
250
|
+
};
|
|
251
|
+
readonly name: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly maxLength: 255;
|
|
254
|
+
};
|
|
255
|
+
readonly kind: {
|
|
256
|
+
readonly type: "integer";
|
|
257
|
+
};
|
|
258
|
+
readonly status: {
|
|
259
|
+
readonly type: "integer";
|
|
260
|
+
};
|
|
261
|
+
readonly statusMessage: {
|
|
262
|
+
readonly type: readonly ["string", "null"];
|
|
263
|
+
};
|
|
264
|
+
readonly startTime: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly format: "date-time";
|
|
267
|
+
};
|
|
268
|
+
readonly endTime: {
|
|
269
|
+
readonly type: readonly ["string", "null"];
|
|
270
|
+
readonly format: "date-time";
|
|
271
|
+
};
|
|
272
|
+
readonly durationMs: {
|
|
273
|
+
readonly type: readonly ["integer", "null"];
|
|
274
|
+
};
|
|
275
|
+
readonly provider: {
|
|
276
|
+
readonly type: readonly ["string", "null"];
|
|
277
|
+
readonly maxLength: 255;
|
|
278
|
+
};
|
|
279
|
+
readonly model: {
|
|
280
|
+
readonly type: readonly ["string", "null"];
|
|
281
|
+
readonly maxLength: 255;
|
|
282
|
+
};
|
|
283
|
+
readonly promptTokens: {
|
|
284
|
+
readonly type: "integer";
|
|
285
|
+
};
|
|
286
|
+
readonly completionTokens: {
|
|
287
|
+
readonly type: "integer";
|
|
288
|
+
};
|
|
289
|
+
readonly totalTokens: {
|
|
290
|
+
readonly type: "integer";
|
|
291
|
+
};
|
|
292
|
+
readonly cost: {
|
|
293
|
+
readonly type: "integer";
|
|
294
|
+
};
|
|
295
|
+
readonly configId: {
|
|
296
|
+
readonly type: readonly ["string", "null"];
|
|
297
|
+
readonly format: "uuid";
|
|
298
|
+
};
|
|
299
|
+
readonly variantId: {
|
|
300
|
+
readonly type: readonly ["string", "null"];
|
|
301
|
+
readonly format: "uuid";
|
|
302
|
+
};
|
|
303
|
+
readonly environmentId: {
|
|
304
|
+
readonly type: readonly ["string", "null"];
|
|
305
|
+
readonly format: "uuid";
|
|
306
|
+
};
|
|
307
|
+
readonly providerConfigId: {
|
|
308
|
+
readonly type: readonly ["string", "null"];
|
|
309
|
+
readonly format: "uuid";
|
|
310
|
+
};
|
|
311
|
+
readonly requestId: {
|
|
312
|
+
readonly type: readonly ["string", "null"];
|
|
313
|
+
readonly format: "uuid";
|
|
314
|
+
};
|
|
315
|
+
readonly source: {
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
readonly maxLength: 50;
|
|
318
|
+
};
|
|
319
|
+
readonly input: {
|
|
320
|
+
readonly type: readonly ["object", "null"];
|
|
321
|
+
};
|
|
322
|
+
readonly output: {
|
|
323
|
+
readonly type: readonly ["object", "null"];
|
|
324
|
+
};
|
|
325
|
+
readonly attributes: {
|
|
326
|
+
readonly type: "object";
|
|
327
|
+
};
|
|
328
|
+
readonly createdAt: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly format: "date-time";
|
|
331
|
+
};
|
|
332
|
+
readonly updatedAt: {
|
|
333
|
+
readonly type: "string";
|
|
334
|
+
readonly format: "date-time";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly required: readonly ["id", "traceId", "spanId", "name", "kind", "status", "startTime", "promptTokens", "completionTokens", "totalTokens", "cost", "source", "attributes", "createdAt", "updatedAt"];
|
|
338
|
+
readonly additionalProperties: false;
|
|
339
|
+
};
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/store/pg/generated/traces.d.ts
|
|
342
|
+
interface Traces {
|
|
343
|
+
id: string;
|
|
344
|
+
traceId: string;
|
|
345
|
+
name: string | null;
|
|
346
|
+
sessionId: string | null;
|
|
347
|
+
userId: string | null;
|
|
348
|
+
status: string;
|
|
349
|
+
startTime: string;
|
|
350
|
+
endTime: string | null;
|
|
351
|
+
durationMs: number | null;
|
|
352
|
+
spanCount: number;
|
|
353
|
+
totalInputTokens: number;
|
|
354
|
+
totalOutputTokens: number;
|
|
355
|
+
totalTokens: number;
|
|
356
|
+
totalCost: number;
|
|
357
|
+
tags: unknown;
|
|
358
|
+
metadata: unknown;
|
|
359
|
+
createdAt: string;
|
|
360
|
+
updatedAt: string;
|
|
361
|
+
}
|
|
362
|
+
declare const TracesSchema: {
|
|
363
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
364
|
+
readonly title: "Traces";
|
|
365
|
+
readonly type: "object";
|
|
366
|
+
readonly properties: {
|
|
367
|
+
readonly id: {
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
readonly format: "uuid";
|
|
370
|
+
};
|
|
371
|
+
readonly traceId: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
readonly maxLength: 255;
|
|
374
|
+
};
|
|
375
|
+
readonly name: {
|
|
376
|
+
readonly type: readonly ["string", "null"];
|
|
377
|
+
readonly maxLength: 255;
|
|
378
|
+
};
|
|
379
|
+
readonly sessionId: {
|
|
380
|
+
readonly type: readonly ["string", "null"];
|
|
381
|
+
readonly maxLength: 255;
|
|
382
|
+
};
|
|
383
|
+
readonly userId: {
|
|
384
|
+
readonly type: readonly ["string", "null"];
|
|
385
|
+
readonly maxLength: 255;
|
|
386
|
+
};
|
|
387
|
+
readonly status: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly maxLength: 50;
|
|
390
|
+
};
|
|
391
|
+
readonly startTime: {
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly format: "date-time";
|
|
394
|
+
};
|
|
395
|
+
readonly endTime: {
|
|
396
|
+
readonly type: readonly ["string", "null"];
|
|
397
|
+
readonly format: "date-time";
|
|
398
|
+
};
|
|
399
|
+
readonly durationMs: {
|
|
400
|
+
readonly type: readonly ["integer", "null"];
|
|
401
|
+
};
|
|
402
|
+
readonly spanCount: {
|
|
403
|
+
readonly type: "integer";
|
|
404
|
+
};
|
|
405
|
+
readonly totalInputTokens: {
|
|
406
|
+
readonly type: "integer";
|
|
407
|
+
};
|
|
408
|
+
readonly totalOutputTokens: {
|
|
409
|
+
readonly type: "integer";
|
|
410
|
+
};
|
|
411
|
+
readonly totalTokens: {
|
|
412
|
+
readonly type: "integer";
|
|
413
|
+
};
|
|
414
|
+
readonly totalCost: {
|
|
415
|
+
readonly type: "integer";
|
|
416
|
+
};
|
|
417
|
+
readonly tags: {
|
|
418
|
+
readonly type: "object";
|
|
419
|
+
};
|
|
420
|
+
readonly metadata: {
|
|
421
|
+
readonly type: "object";
|
|
422
|
+
};
|
|
423
|
+
readonly createdAt: {
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
readonly format: "date-time";
|
|
426
|
+
};
|
|
427
|
+
readonly updatedAt: {
|
|
428
|
+
readonly type: "string";
|
|
429
|
+
readonly format: "date-time";
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
readonly required: readonly ["id", "traceId", "status", "startTime", "spanCount", "totalInputTokens", "totalOutputTokens", "totalTokens", "totalCost", "tags", "metadata", "createdAt", "updatedAt"];
|
|
433
|
+
readonly additionalProperties: false;
|
|
434
|
+
};
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/store/pg/queries/gen/getCostByModel.d.ts
|
|
437
|
+
interface GetCostByModelParams {
|
|
438
|
+
start_date: string;
|
|
439
|
+
end_date: string;
|
|
440
|
+
}
|
|
441
|
+
declare const GetCostByModelParamsSchema: {
|
|
442
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
443
|
+
readonly title: "GetCostByModelParams";
|
|
444
|
+
readonly type: "object";
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly start_date: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
};
|
|
449
|
+
readonly end_date: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly required: readonly ["start_date", "end_date"];
|
|
454
|
+
readonly additionalProperties: false;
|
|
455
|
+
};
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/store/pg/queries/gen/getCostByProvider.d.ts
|
|
458
|
+
interface GetCostByProviderParams {
|
|
459
|
+
start_date: string;
|
|
460
|
+
end_date: string;
|
|
461
|
+
}
|
|
462
|
+
declare const GetCostByProviderParamsSchema: {
|
|
463
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
464
|
+
readonly title: "GetCostByProviderParams";
|
|
465
|
+
readonly type: "object";
|
|
466
|
+
readonly properties: {
|
|
467
|
+
readonly start_date: {
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
};
|
|
470
|
+
readonly end_date: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
readonly required: readonly ["start_date", "end_date"];
|
|
475
|
+
readonly additionalProperties: false;
|
|
476
|
+
};
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/store/pg/queries/gen/getDailyCosts.d.ts
|
|
479
|
+
interface GetDailyCostsParams {
|
|
480
|
+
start_date: string;
|
|
481
|
+
end_date: string;
|
|
482
|
+
}
|
|
483
|
+
declare const GetDailyCostsParamsSchema: {
|
|
484
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
485
|
+
readonly title: "GetDailyCostsParams";
|
|
486
|
+
readonly type: "object";
|
|
487
|
+
readonly properties: {
|
|
488
|
+
readonly start_date: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
};
|
|
491
|
+
readonly end_date: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly required: readonly ["start_date", "end_date"];
|
|
496
|
+
readonly additionalProperties: false;
|
|
497
|
+
};
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/store/pg/queries/gen/getRequestByRequestId.d.ts
|
|
500
|
+
interface GetRequestByRequestIdParams {
|
|
501
|
+
request_id: string;
|
|
502
|
+
}
|
|
503
|
+
declare const GetRequestByRequestIdParamsSchema: {
|
|
504
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
505
|
+
readonly title: "GetRequestByRequestIdParams";
|
|
506
|
+
readonly type: "object";
|
|
507
|
+
readonly properties: {
|
|
508
|
+
readonly request_id: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly required: readonly ["request_id"];
|
|
513
|
+
readonly additionalProperties: false;
|
|
514
|
+
};
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region src/store/pg/queries/gen/getRequestStats.d.ts
|
|
517
|
+
interface GetRequestStatsParams {
|
|
518
|
+
start_date: string;
|
|
519
|
+
end_date: string;
|
|
520
|
+
config_id: string;
|
|
521
|
+
variant_id: string;
|
|
522
|
+
environment_id: string;
|
|
523
|
+
}
|
|
524
|
+
declare const GetRequestStatsParamsSchema: {
|
|
525
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
526
|
+
readonly title: "GetRequestStatsParams";
|
|
527
|
+
readonly type: "object";
|
|
528
|
+
readonly properties: {
|
|
529
|
+
readonly start_date: {
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
};
|
|
532
|
+
readonly end_date: {
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
};
|
|
535
|
+
readonly config_id: {
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
};
|
|
538
|
+
readonly variant_id: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
};
|
|
541
|
+
readonly environment_id: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
readonly required: readonly ["start_date", "end_date", "config_id", "variant_id", "environment_id"];
|
|
546
|
+
readonly additionalProperties: false;
|
|
547
|
+
};
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region src/store/pg/queries/gen/getTotalCost.d.ts
|
|
550
|
+
interface GetTotalCostParams {
|
|
551
|
+
start_date: string;
|
|
552
|
+
end_date: string;
|
|
553
|
+
}
|
|
554
|
+
declare const GetTotalCostParamsSchema: {
|
|
555
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
556
|
+
readonly title: "GetTotalCostParams";
|
|
557
|
+
readonly type: "object";
|
|
558
|
+
readonly properties: {
|
|
559
|
+
readonly start_date: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
};
|
|
562
|
+
readonly end_date: {
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
readonly format: "date-time";
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly required: readonly ["start_date", "end_date"];
|
|
568
|
+
readonly additionalProperties: false;
|
|
569
|
+
};
|
|
570
|
+
//#endregion
|
|
571
|
+
export { type GetCostByModelParams, GetCostByModelParamsSchema, type GetCostByProviderParams, GetCostByProviderParamsSchema, type GetDailyCostsParams, GetDailyCostsParamsSchema, type GetRequestByRequestIdParams, GetRequestByRequestIdParamsSchema, type GetRequestStatsParams, GetRequestStatsParamsSchema, type GetTotalCostParams, GetTotalCostParamsSchema, type LlmRequests, LlmRequestsSchema, type PgStore, type SpanEvents, SpanEventsSchema, type Spans, SpansSchema, type Traces, TracesSchema, pgStore };
|