@llmops/core 0.5.2 → 0.5.3-beta.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/dist/{bun-sqlite-dialect-DQa87s1D.cjs → bun-sqlite-dialect-DFKD-iqI.cjs} +1 -1
- package/dist/db/index.cjs +5 -2
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +2 -2
- package/dist/{db-B9jJgYNw.cjs → db-C6ApWDjW.cjs} +310 -6
- package/dist/{db-DX_QaIkx.mjs → db-CQvUnGBp.mjs} +289 -3
- package/dist/{index-LRmy4sz9.d.mts → index-BosemZ_J.d.mts} +676 -1
- package/dist/{index-BtSgIKup.d.cts → index-DdG7GtcE.d.cts} +676 -1
- package/dist/index.cjs +411 -72
- package/dist/index.d.cts +265 -8
- package/dist/index.d.mts +265 -8
- package/dist/index.mjs +399 -72
- package/dist/{neon-dialect-BBGTCnek.cjs → neon-dialect-DNyVaL-1.cjs} +1 -1
- package/dist/{neon-dialect-BBWePgOv.cjs → neon-dialect-SqAJhPFS.cjs} +1 -1
- package/dist/{node-sqlite-dialect-DLKHH0RE.cjs → node-sqlite-dialect-DI0PJyHV.cjs} +1 -1
- package/package.json +2 -2
|
@@ -307,10 +307,73 @@ declare const llmRequestsSchema: z.ZodObject<{
|
|
|
307
307
|
}>;
|
|
308
308
|
totalLatencyMs: z.ZodNumber;
|
|
309
309
|
}, z.core.$strip>>>;
|
|
310
|
+
traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
314
|
id: z.ZodString;
|
|
311
315
|
createdAt: z.ZodDate;
|
|
312
316
|
updatedAt: z.ZodDate;
|
|
313
317
|
}, z.core.$strip>;
|
|
318
|
+
declare const tracesSchema: z.ZodObject<{
|
|
319
|
+
traceId: z.ZodString;
|
|
320
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
status: z.ZodDefault<z.ZodString>;
|
|
324
|
+
startTime: z.ZodDate;
|
|
325
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
326
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
327
|
+
spanCount: z.ZodDefault<z.ZodNumber>;
|
|
328
|
+
totalInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
329
|
+
totalOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
330
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
331
|
+
totalCost: z.ZodDefault<z.ZodNumber>;
|
|
332
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
333
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
createdAt: z.ZodDate;
|
|
336
|
+
updatedAt: z.ZodDate;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
declare const spansSchema: z.ZodObject<{
|
|
339
|
+
traceId: z.ZodString;
|
|
340
|
+
spanId: z.ZodString;
|
|
341
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
kind: z.ZodDefault<z.ZodNumber>;
|
|
344
|
+
status: z.ZodDefault<z.ZodNumber>;
|
|
345
|
+
statusMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
startTime: z.ZodDate;
|
|
347
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
348
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
349
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
352
|
+
completionTokens: z.ZodDefault<z.ZodNumber>;
|
|
353
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
354
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
355
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
|
+
source: z.ZodDefault<z.ZodString>;
|
|
361
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
362
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
363
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
364
|
+
id: z.ZodString;
|
|
365
|
+
createdAt: z.ZodDate;
|
|
366
|
+
updatedAt: z.ZodDate;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
declare const spanEventsSchema: z.ZodObject<{
|
|
369
|
+
id: z.ZodString;
|
|
370
|
+
traceId: z.ZodString;
|
|
371
|
+
spanId: z.ZodString;
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
timestamp: z.ZodDate;
|
|
374
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
375
|
+
createdAt: z.ZodDate;
|
|
376
|
+
}, z.core.$strip>;
|
|
314
377
|
/**
|
|
315
378
|
* Zod inferred types (for runtime validation)
|
|
316
379
|
*/
|
|
@@ -336,6 +399,9 @@ type DatasetVersion = z.infer<typeof datasetVersionsSchema>;
|
|
|
336
399
|
type DatasetRecord = z.infer<typeof datasetRecordsSchema>;
|
|
337
400
|
type DatasetVersionRecord = z.infer<typeof datasetVersionRecordsSchema>;
|
|
338
401
|
type LLMRequest = z.infer<typeof llmRequestsSchema>;
|
|
402
|
+
type Trace = z.infer<typeof tracesSchema>;
|
|
403
|
+
type Span = z.infer<typeof spansSchema>;
|
|
404
|
+
type SpanEvent = z.infer<typeof spanEventsSchema>;
|
|
339
405
|
/**
|
|
340
406
|
* Kysely Table Interfaces
|
|
341
407
|
* Derived from Zod schemas with proper column types
|
|
@@ -487,6 +553,63 @@ interface LLMRequestsTable extends BaseTable {
|
|
|
487
553
|
userId: string | null;
|
|
488
554
|
tags: ColumnType<Record<string, string>, string, string>;
|
|
489
555
|
guardrailResults: ColumnType<GuardrailResults | null, string | null, string | null>;
|
|
556
|
+
traceId: string | null;
|
|
557
|
+
spanId: string | null;
|
|
558
|
+
parentSpanId: string | null;
|
|
559
|
+
sessionId: string | null;
|
|
560
|
+
}
|
|
561
|
+
interface TracesTable extends BaseTable {
|
|
562
|
+
traceId: string;
|
|
563
|
+
name: string | null;
|
|
564
|
+
sessionId: string | null;
|
|
565
|
+
userId: string | null;
|
|
566
|
+
status: ColumnType<string, string | undefined, string | undefined>;
|
|
567
|
+
startTime: ColumnType<Date, string, string>;
|
|
568
|
+
endTime: ColumnType<Date | null, string | null, string | null>;
|
|
569
|
+
durationMs: number | null;
|
|
570
|
+
spanCount: ColumnType<number, number | undefined, number | undefined>;
|
|
571
|
+
totalInputTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
572
|
+
totalOutputTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
573
|
+
totalTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
574
|
+
totalCost: ColumnType<number, number | undefined, number | undefined>;
|
|
575
|
+
tags: ColumnType<Record<string, string>, string, string>;
|
|
576
|
+
metadata: ColumnType<Record<string, unknown>, string, string>;
|
|
577
|
+
}
|
|
578
|
+
interface SpansTable extends BaseTable {
|
|
579
|
+
traceId: string;
|
|
580
|
+
spanId: string;
|
|
581
|
+
parentSpanId: string | null;
|
|
582
|
+
name: string;
|
|
583
|
+
kind: ColumnType<number, number | undefined, number | undefined>;
|
|
584
|
+
status: ColumnType<number, number | undefined, number | undefined>;
|
|
585
|
+
statusMessage: string | null;
|
|
586
|
+
startTime: ColumnType<Date, string, string>;
|
|
587
|
+
endTime: ColumnType<Date | null, string | null, string | null>;
|
|
588
|
+
durationMs: number | null;
|
|
589
|
+
provider: string | null;
|
|
590
|
+
model: string | null;
|
|
591
|
+
promptTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
592
|
+
completionTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
593
|
+
totalTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
594
|
+
cost: ColumnType<number, number | undefined, number | undefined>;
|
|
595
|
+
configId: string | null;
|
|
596
|
+
variantId: string | null;
|
|
597
|
+
environmentId: string | null;
|
|
598
|
+
providerConfigId: string | null;
|
|
599
|
+
requestId: string | null;
|
|
600
|
+
source: ColumnType<string, string | undefined, string | undefined>;
|
|
601
|
+
input: ColumnType<unknown | null, string | null, string | null>;
|
|
602
|
+
output: ColumnType<unknown | null, string | null, string | null>;
|
|
603
|
+
attributes: ColumnType<Record<string, unknown>, string, string>;
|
|
604
|
+
}
|
|
605
|
+
interface SpanEventsTable {
|
|
606
|
+
id: Generated<string>;
|
|
607
|
+
traceId: string;
|
|
608
|
+
spanId: string;
|
|
609
|
+
name: string;
|
|
610
|
+
timestamp: ColumnType<Date, string, string>;
|
|
611
|
+
attributes: ColumnType<Record<string, unknown>, string, string>;
|
|
612
|
+
createdAt: ColumnType<Date, string | undefined, string | undefined>;
|
|
490
613
|
}
|
|
491
614
|
/**
|
|
492
615
|
* Main Kysely Database interface
|
|
@@ -511,6 +634,9 @@ interface Database {
|
|
|
511
634
|
dataset_records: DatasetRecordsTable;
|
|
512
635
|
dataset_version_records: DatasetVersionRecordsTable;
|
|
513
636
|
llm_requests: LLMRequestsTable;
|
|
637
|
+
traces: TracesTable;
|
|
638
|
+
spans: SpansTable;
|
|
639
|
+
span_events: SpanEventsTable;
|
|
514
640
|
}
|
|
515
641
|
/**
|
|
516
642
|
* Table names as a union type
|
|
@@ -1498,6 +1624,10 @@ declare const SCHEMA_METADATA: {
|
|
|
1498
1624
|
}>;
|
|
1499
1625
|
totalLatencyMs: z.ZodNumber;
|
|
1500
1626
|
}, z.core.$strip>>>;
|
|
1627
|
+
traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1628
|
+
spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1629
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1630
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1501
1631
|
id: z.ZodString;
|
|
1502
1632
|
createdAt: z.ZodDate;
|
|
1503
1633
|
updatedAt: z.ZodDate;
|
|
@@ -1602,6 +1732,119 @@ declare const SCHEMA_METADATA: {
|
|
|
1602
1732
|
readonly type: "jsonb";
|
|
1603
1733
|
readonly nullable: true;
|
|
1604
1734
|
};
|
|
1735
|
+
readonly traceId: {
|
|
1736
|
+
readonly type: "text";
|
|
1737
|
+
readonly nullable: true;
|
|
1738
|
+
};
|
|
1739
|
+
readonly spanId: {
|
|
1740
|
+
readonly type: "text";
|
|
1741
|
+
readonly nullable: true;
|
|
1742
|
+
};
|
|
1743
|
+
readonly parentSpanId: {
|
|
1744
|
+
readonly type: "text";
|
|
1745
|
+
readonly nullable: true;
|
|
1746
|
+
};
|
|
1747
|
+
readonly sessionId: {
|
|
1748
|
+
readonly type: "text";
|
|
1749
|
+
readonly nullable: true;
|
|
1750
|
+
};
|
|
1751
|
+
readonly createdAt: {
|
|
1752
|
+
readonly type: "timestamp";
|
|
1753
|
+
readonly default: "now()";
|
|
1754
|
+
};
|
|
1755
|
+
readonly updatedAt: {
|
|
1756
|
+
readonly type: "timestamp";
|
|
1757
|
+
readonly default: "now()";
|
|
1758
|
+
readonly onUpdate: "now()";
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
readonly traces: {
|
|
1763
|
+
readonly order: 30;
|
|
1764
|
+
readonly schema: z.ZodObject<{
|
|
1765
|
+
traceId: z.ZodString;
|
|
1766
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1767
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1768
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1769
|
+
status: z.ZodDefault<z.ZodString>;
|
|
1770
|
+
startTime: z.ZodDate;
|
|
1771
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1772
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1773
|
+
spanCount: z.ZodDefault<z.ZodNumber>;
|
|
1774
|
+
totalInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1775
|
+
totalOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1776
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
1777
|
+
totalCost: z.ZodDefault<z.ZodNumber>;
|
|
1778
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1779
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1780
|
+
id: z.ZodString;
|
|
1781
|
+
createdAt: z.ZodDate;
|
|
1782
|
+
updatedAt: z.ZodDate;
|
|
1783
|
+
}, z.core.$strip>;
|
|
1784
|
+
readonly fields: {
|
|
1785
|
+
readonly id: {
|
|
1786
|
+
readonly type: "uuid";
|
|
1787
|
+
readonly primaryKey: true;
|
|
1788
|
+
};
|
|
1789
|
+
readonly traceId: {
|
|
1790
|
+
readonly type: "text";
|
|
1791
|
+
readonly unique: true;
|
|
1792
|
+
};
|
|
1793
|
+
readonly name: {
|
|
1794
|
+
readonly type: "text";
|
|
1795
|
+
readonly nullable: true;
|
|
1796
|
+
};
|
|
1797
|
+
readonly sessionId: {
|
|
1798
|
+
readonly type: "text";
|
|
1799
|
+
readonly nullable: true;
|
|
1800
|
+
};
|
|
1801
|
+
readonly userId: {
|
|
1802
|
+
readonly type: "text";
|
|
1803
|
+
readonly nullable: true;
|
|
1804
|
+
};
|
|
1805
|
+
readonly status: {
|
|
1806
|
+
readonly type: "text";
|
|
1807
|
+
readonly default: "unset";
|
|
1808
|
+
};
|
|
1809
|
+
readonly startTime: {
|
|
1810
|
+
readonly type: "timestamp";
|
|
1811
|
+
};
|
|
1812
|
+
readonly endTime: {
|
|
1813
|
+
readonly type: "timestamp";
|
|
1814
|
+
readonly nullable: true;
|
|
1815
|
+
};
|
|
1816
|
+
readonly durationMs: {
|
|
1817
|
+
readonly type: "integer";
|
|
1818
|
+
readonly nullable: true;
|
|
1819
|
+
};
|
|
1820
|
+
readonly spanCount: {
|
|
1821
|
+
readonly type: "integer";
|
|
1822
|
+
readonly default: 0;
|
|
1823
|
+
};
|
|
1824
|
+
readonly totalInputTokens: {
|
|
1825
|
+
readonly type: "integer";
|
|
1826
|
+
readonly default: 0;
|
|
1827
|
+
};
|
|
1828
|
+
readonly totalOutputTokens: {
|
|
1829
|
+
readonly type: "integer";
|
|
1830
|
+
readonly default: 0;
|
|
1831
|
+
};
|
|
1832
|
+
readonly totalTokens: {
|
|
1833
|
+
readonly type: "integer";
|
|
1834
|
+
readonly default: 0;
|
|
1835
|
+
};
|
|
1836
|
+
readonly totalCost: {
|
|
1837
|
+
readonly type: "integer";
|
|
1838
|
+
readonly default: 0;
|
|
1839
|
+
};
|
|
1840
|
+
readonly tags: {
|
|
1841
|
+
readonly type: "jsonb";
|
|
1842
|
+
readonly default: "{}";
|
|
1843
|
+
};
|
|
1844
|
+
readonly metadata: {
|
|
1845
|
+
readonly type: "jsonb";
|
|
1846
|
+
readonly default: "{}";
|
|
1847
|
+
};
|
|
1605
1848
|
readonly createdAt: {
|
|
1606
1849
|
readonly type: "timestamp";
|
|
1607
1850
|
readonly default: "now()";
|
|
@@ -1613,6 +1856,189 @@ declare const SCHEMA_METADATA: {
|
|
|
1613
1856
|
};
|
|
1614
1857
|
};
|
|
1615
1858
|
};
|
|
1859
|
+
readonly spans: {
|
|
1860
|
+
readonly order: 31;
|
|
1861
|
+
readonly schema: z.ZodObject<{
|
|
1862
|
+
traceId: z.ZodString;
|
|
1863
|
+
spanId: z.ZodString;
|
|
1864
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1865
|
+
name: z.ZodString;
|
|
1866
|
+
kind: z.ZodDefault<z.ZodNumber>;
|
|
1867
|
+
status: z.ZodDefault<z.ZodNumber>;
|
|
1868
|
+
statusMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1869
|
+
startTime: z.ZodDate;
|
|
1870
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1871
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1872
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1873
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1874
|
+
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
1875
|
+
completionTokens: z.ZodDefault<z.ZodNumber>;
|
|
1876
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
1877
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
1878
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1879
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1880
|
+
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
|
+
source: z.ZodDefault<z.ZodString>;
|
|
1884
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
1885
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
1886
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
createdAt: z.ZodDate;
|
|
1889
|
+
updatedAt: z.ZodDate;
|
|
1890
|
+
}, z.core.$strip>;
|
|
1891
|
+
readonly fields: {
|
|
1892
|
+
readonly id: {
|
|
1893
|
+
readonly type: "uuid";
|
|
1894
|
+
readonly primaryKey: true;
|
|
1895
|
+
};
|
|
1896
|
+
readonly traceId: {
|
|
1897
|
+
readonly type: "text";
|
|
1898
|
+
};
|
|
1899
|
+
readonly spanId: {
|
|
1900
|
+
readonly type: "text";
|
|
1901
|
+
readonly unique: true;
|
|
1902
|
+
};
|
|
1903
|
+
readonly parentSpanId: {
|
|
1904
|
+
readonly type: "text";
|
|
1905
|
+
readonly nullable: true;
|
|
1906
|
+
};
|
|
1907
|
+
readonly name: {
|
|
1908
|
+
readonly type: "text";
|
|
1909
|
+
};
|
|
1910
|
+
readonly kind: {
|
|
1911
|
+
readonly type: "integer";
|
|
1912
|
+
readonly default: 1;
|
|
1913
|
+
};
|
|
1914
|
+
readonly status: {
|
|
1915
|
+
readonly type: "integer";
|
|
1916
|
+
readonly default: 0;
|
|
1917
|
+
};
|
|
1918
|
+
readonly statusMessage: {
|
|
1919
|
+
readonly type: "text";
|
|
1920
|
+
readonly nullable: true;
|
|
1921
|
+
};
|
|
1922
|
+
readonly startTime: {
|
|
1923
|
+
readonly type: "timestamp";
|
|
1924
|
+
};
|
|
1925
|
+
readonly endTime: {
|
|
1926
|
+
readonly type: "timestamp";
|
|
1927
|
+
readonly nullable: true;
|
|
1928
|
+
};
|
|
1929
|
+
readonly durationMs: {
|
|
1930
|
+
readonly type: "integer";
|
|
1931
|
+
readonly nullable: true;
|
|
1932
|
+
};
|
|
1933
|
+
readonly provider: {
|
|
1934
|
+
readonly type: "text";
|
|
1935
|
+
readonly nullable: true;
|
|
1936
|
+
};
|
|
1937
|
+
readonly model: {
|
|
1938
|
+
readonly type: "text";
|
|
1939
|
+
readonly nullable: true;
|
|
1940
|
+
};
|
|
1941
|
+
readonly promptTokens: {
|
|
1942
|
+
readonly type: "integer";
|
|
1943
|
+
readonly default: 0;
|
|
1944
|
+
};
|
|
1945
|
+
readonly completionTokens: {
|
|
1946
|
+
readonly type: "integer";
|
|
1947
|
+
readonly default: 0;
|
|
1948
|
+
};
|
|
1949
|
+
readonly totalTokens: {
|
|
1950
|
+
readonly type: "integer";
|
|
1951
|
+
readonly default: 0;
|
|
1952
|
+
};
|
|
1953
|
+
readonly cost: {
|
|
1954
|
+
readonly type: "integer";
|
|
1955
|
+
readonly default: 0;
|
|
1956
|
+
};
|
|
1957
|
+
readonly configId: {
|
|
1958
|
+
readonly type: "uuid";
|
|
1959
|
+
readonly nullable: true;
|
|
1960
|
+
};
|
|
1961
|
+
readonly variantId: {
|
|
1962
|
+
readonly type: "uuid";
|
|
1963
|
+
readonly nullable: true;
|
|
1964
|
+
};
|
|
1965
|
+
readonly environmentId: {
|
|
1966
|
+
readonly type: "uuid";
|
|
1967
|
+
readonly nullable: true;
|
|
1968
|
+
};
|
|
1969
|
+
readonly providerConfigId: {
|
|
1970
|
+
readonly type: "uuid";
|
|
1971
|
+
readonly nullable: true;
|
|
1972
|
+
};
|
|
1973
|
+
readonly requestId: {
|
|
1974
|
+
readonly type: "uuid";
|
|
1975
|
+
readonly nullable: true;
|
|
1976
|
+
};
|
|
1977
|
+
readonly source: {
|
|
1978
|
+
readonly type: "text";
|
|
1979
|
+
readonly default: "gateway";
|
|
1980
|
+
};
|
|
1981
|
+
readonly input: {
|
|
1982
|
+
readonly type: "jsonb";
|
|
1983
|
+
readonly nullable: true;
|
|
1984
|
+
};
|
|
1985
|
+
readonly output: {
|
|
1986
|
+
readonly type: "jsonb";
|
|
1987
|
+
readonly nullable: true;
|
|
1988
|
+
};
|
|
1989
|
+
readonly attributes: {
|
|
1990
|
+
readonly type: "jsonb";
|
|
1991
|
+
readonly default: "{}";
|
|
1992
|
+
};
|
|
1993
|
+
readonly createdAt: {
|
|
1994
|
+
readonly type: "timestamp";
|
|
1995
|
+
readonly default: "now()";
|
|
1996
|
+
};
|
|
1997
|
+
readonly updatedAt: {
|
|
1998
|
+
readonly type: "timestamp";
|
|
1999
|
+
readonly default: "now()";
|
|
2000
|
+
readonly onUpdate: "now()";
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
readonly span_events: {
|
|
2005
|
+
readonly order: 32;
|
|
2006
|
+
readonly schema: z.ZodObject<{
|
|
2007
|
+
id: z.ZodString;
|
|
2008
|
+
traceId: z.ZodString;
|
|
2009
|
+
spanId: z.ZodString;
|
|
2010
|
+
name: z.ZodString;
|
|
2011
|
+
timestamp: z.ZodDate;
|
|
2012
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2013
|
+
createdAt: z.ZodDate;
|
|
2014
|
+
}, z.core.$strip>;
|
|
2015
|
+
readonly fields: {
|
|
2016
|
+
readonly id: {
|
|
2017
|
+
readonly type: "uuid";
|
|
2018
|
+
readonly primaryKey: true;
|
|
2019
|
+
};
|
|
2020
|
+
readonly traceId: {
|
|
2021
|
+
readonly type: "text";
|
|
2022
|
+
};
|
|
2023
|
+
readonly spanId: {
|
|
2024
|
+
readonly type: "text";
|
|
2025
|
+
};
|
|
2026
|
+
readonly name: {
|
|
2027
|
+
readonly type: "text";
|
|
2028
|
+
};
|
|
2029
|
+
readonly timestamp: {
|
|
2030
|
+
readonly type: "timestamp";
|
|
2031
|
+
};
|
|
2032
|
+
readonly attributes: {
|
|
2033
|
+
readonly type: "jsonb";
|
|
2034
|
+
readonly default: "{}";
|
|
2035
|
+
};
|
|
2036
|
+
readonly createdAt: {
|
|
2037
|
+
readonly type: "timestamp";
|
|
2038
|
+
readonly default: "now()";
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
2041
|
+
};
|
|
1616
2042
|
};
|
|
1617
2043
|
};
|
|
1618
2044
|
/**
|
|
@@ -1894,10 +2320,73 @@ declare const schemas: {
|
|
|
1894
2320
|
}>;
|
|
1895
2321
|
totalLatencyMs: z.ZodNumber;
|
|
1896
2322
|
}, z.core.$strip>>>;
|
|
2323
|
+
traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2324
|
+
spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2325
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2326
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1897
2327
|
id: z.ZodString;
|
|
1898
2328
|
createdAt: z.ZodDate;
|
|
1899
2329
|
updatedAt: z.ZodDate;
|
|
1900
2330
|
}, z.core.$strip>;
|
|
2331
|
+
readonly traces: z.ZodObject<{
|
|
2332
|
+
traceId: z.ZodString;
|
|
2333
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2334
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2335
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2336
|
+
status: z.ZodDefault<z.ZodString>;
|
|
2337
|
+
startTime: z.ZodDate;
|
|
2338
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2339
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2340
|
+
spanCount: z.ZodDefault<z.ZodNumber>;
|
|
2341
|
+
totalInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
2342
|
+
totalOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
2343
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
2344
|
+
totalCost: z.ZodDefault<z.ZodNumber>;
|
|
2345
|
+
tags: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2346
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2347
|
+
id: z.ZodString;
|
|
2348
|
+
createdAt: z.ZodDate;
|
|
2349
|
+
updatedAt: z.ZodDate;
|
|
2350
|
+
}, z.core.$strip>;
|
|
2351
|
+
readonly spans: z.ZodObject<{
|
|
2352
|
+
traceId: z.ZodString;
|
|
2353
|
+
spanId: z.ZodString;
|
|
2354
|
+
parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2355
|
+
name: z.ZodString;
|
|
2356
|
+
kind: z.ZodDefault<z.ZodNumber>;
|
|
2357
|
+
status: z.ZodDefault<z.ZodNumber>;
|
|
2358
|
+
statusMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2359
|
+
startTime: z.ZodDate;
|
|
2360
|
+
endTime: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2361
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2362
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2363
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2364
|
+
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
2365
|
+
completionTokens: z.ZodDefault<z.ZodNumber>;
|
|
2366
|
+
totalTokens: z.ZodDefault<z.ZodNumber>;
|
|
2367
|
+
cost: z.ZodDefault<z.ZodNumber>;
|
|
2368
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2369
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2370
|
+
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2371
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2372
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2373
|
+
source: z.ZodDefault<z.ZodString>;
|
|
2374
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
2375
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
2376
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2377
|
+
id: z.ZodString;
|
|
2378
|
+
createdAt: z.ZodDate;
|
|
2379
|
+
updatedAt: z.ZodDate;
|
|
2380
|
+
}, z.core.$strip>;
|
|
2381
|
+
readonly span_events: z.ZodObject<{
|
|
2382
|
+
id: z.ZodString;
|
|
2383
|
+
traceId: z.ZodString;
|
|
2384
|
+
spanId: z.ZodString;
|
|
2385
|
+
name: z.ZodString;
|
|
2386
|
+
timestamp: z.ZodDate;
|
|
2387
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2388
|
+
createdAt: z.ZodDate;
|
|
2389
|
+
}, z.core.$strip>;
|
|
1901
2390
|
};
|
|
1902
2391
|
//#endregion
|
|
1903
2392
|
//#region src/db/validation.d.ts
|
|
@@ -2184,6 +2673,10 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2184
2673
|
action: "allowed" | "blocked" | "logged";
|
|
2185
2674
|
totalLatencyMs: number;
|
|
2186
2675
|
} | null | undefined;
|
|
2676
|
+
traceId?: string | null | undefined;
|
|
2677
|
+
spanId?: string | null | undefined;
|
|
2678
|
+
parentSpanId?: string | null | undefined;
|
|
2679
|
+
sessionId?: string | null | undefined;
|
|
2187
2680
|
}> | zod0.ZodSafeParseError<{
|
|
2188
2681
|
requestId: string;
|
|
2189
2682
|
provider: string;
|
|
@@ -2219,6 +2712,64 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2219
2712
|
action: "allowed" | "blocked" | "logged";
|
|
2220
2713
|
totalLatencyMs: number;
|
|
2221
2714
|
} | null | undefined;
|
|
2715
|
+
traceId?: string | null | undefined;
|
|
2716
|
+
spanId?: string | null | undefined;
|
|
2717
|
+
parentSpanId?: string | null | undefined;
|
|
2718
|
+
sessionId?: string | null | undefined;
|
|
2719
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2720
|
+
traceId: string;
|
|
2721
|
+
status: string;
|
|
2722
|
+
startTime: Date;
|
|
2723
|
+
spanCount: number;
|
|
2724
|
+
totalInputTokens: number;
|
|
2725
|
+
totalOutputTokens: number;
|
|
2726
|
+
totalTokens: number;
|
|
2727
|
+
totalCost: number;
|
|
2728
|
+
tags: Record<string, string>;
|
|
2729
|
+
metadata: Record<string, unknown>;
|
|
2730
|
+
id: string;
|
|
2731
|
+
createdAt: Date;
|
|
2732
|
+
updatedAt: Date;
|
|
2733
|
+
name?: string | null | undefined;
|
|
2734
|
+
sessionId?: string | null | undefined;
|
|
2735
|
+
userId?: string | null | undefined;
|
|
2736
|
+
endTime?: Date | null | undefined;
|
|
2737
|
+
durationMs?: number | null | undefined;
|
|
2738
|
+
}> | zod0.ZodSafeParseError<{
|
|
2739
|
+
traceId: string;
|
|
2740
|
+
status: string;
|
|
2741
|
+
startTime: Date;
|
|
2742
|
+
spanCount: number;
|
|
2743
|
+
totalInputTokens: number;
|
|
2744
|
+
totalOutputTokens: number;
|
|
2745
|
+
totalTokens: number;
|
|
2746
|
+
totalCost: number;
|
|
2747
|
+
tags: Record<string, string>;
|
|
2748
|
+
metadata: Record<string, unknown>;
|
|
2749
|
+
id: string;
|
|
2750
|
+
createdAt: Date;
|
|
2751
|
+
updatedAt: Date;
|
|
2752
|
+
name?: string | null | undefined;
|
|
2753
|
+
sessionId?: string | null | undefined;
|
|
2754
|
+
userId?: string | null | undefined;
|
|
2755
|
+
endTime?: Date | null | undefined;
|
|
2756
|
+
durationMs?: number | null | undefined;
|
|
2757
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2758
|
+
id: string;
|
|
2759
|
+
traceId: string;
|
|
2760
|
+
spanId: string;
|
|
2761
|
+
name: string;
|
|
2762
|
+
timestamp: Date;
|
|
2763
|
+
attributes: Record<string, unknown>;
|
|
2764
|
+
createdAt: Date;
|
|
2765
|
+
}> | zod0.ZodSafeParseError<{
|
|
2766
|
+
id: string;
|
|
2767
|
+
traceId: string;
|
|
2768
|
+
spanId: string;
|
|
2769
|
+
name: string;
|
|
2770
|
+
timestamp: Date;
|
|
2771
|
+
attributes: Record<string, unknown>;
|
|
2772
|
+
createdAt: Date;
|
|
2222
2773
|
}>;
|
|
2223
2774
|
/**
|
|
2224
2775
|
* Validate partial data (for updates)
|
|
@@ -2487,6 +3038,10 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2487
3038
|
action: "allowed" | "blocked" | "logged";
|
|
2488
3039
|
totalLatencyMs: number;
|
|
2489
3040
|
} | null | undefined;
|
|
3041
|
+
traceId?: string | null | undefined;
|
|
3042
|
+
spanId?: string | null | undefined;
|
|
3043
|
+
parentSpanId?: string | null | undefined;
|
|
3044
|
+
sessionId?: string | null | undefined;
|
|
2490
3045
|
id?: string | undefined;
|
|
2491
3046
|
createdAt?: Date | undefined;
|
|
2492
3047
|
updatedAt?: Date | undefined;
|
|
@@ -2522,9 +3077,67 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2522
3077
|
action: "allowed" | "blocked" | "logged";
|
|
2523
3078
|
totalLatencyMs: number;
|
|
2524
3079
|
} | null | undefined;
|
|
3080
|
+
traceId?: string | null | undefined;
|
|
3081
|
+
spanId?: string | null | undefined;
|
|
3082
|
+
parentSpanId?: string | null | undefined;
|
|
3083
|
+
sessionId?: string | null | undefined;
|
|
2525
3084
|
id?: string | undefined;
|
|
2526
3085
|
createdAt?: Date | undefined;
|
|
2527
3086
|
updatedAt?: Date | undefined;
|
|
3087
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
3088
|
+
traceId?: string | undefined;
|
|
3089
|
+
name?: string | null | undefined;
|
|
3090
|
+
sessionId?: string | null | undefined;
|
|
3091
|
+
userId?: string | null | undefined;
|
|
3092
|
+
status?: string | undefined;
|
|
3093
|
+
startTime?: Date | undefined;
|
|
3094
|
+
endTime?: Date | null | undefined;
|
|
3095
|
+
durationMs?: number | null | undefined;
|
|
3096
|
+
spanCount?: number | undefined;
|
|
3097
|
+
totalInputTokens?: number | undefined;
|
|
3098
|
+
totalOutputTokens?: number | undefined;
|
|
3099
|
+
totalTokens?: number | undefined;
|
|
3100
|
+
totalCost?: number | undefined;
|
|
3101
|
+
tags?: Record<string, string> | undefined;
|
|
3102
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3103
|
+
id?: string | undefined;
|
|
3104
|
+
createdAt?: Date | undefined;
|
|
3105
|
+
updatedAt?: Date | undefined;
|
|
3106
|
+
}> | zod0.ZodSafeParseError<{
|
|
3107
|
+
traceId?: string | undefined;
|
|
3108
|
+
name?: string | null | undefined;
|
|
3109
|
+
sessionId?: string | null | undefined;
|
|
3110
|
+
userId?: string | null | undefined;
|
|
3111
|
+
status?: string | undefined;
|
|
3112
|
+
startTime?: Date | undefined;
|
|
3113
|
+
endTime?: Date | null | undefined;
|
|
3114
|
+
durationMs?: number | null | undefined;
|
|
3115
|
+
spanCount?: number | undefined;
|
|
3116
|
+
totalInputTokens?: number | undefined;
|
|
3117
|
+
totalOutputTokens?: number | undefined;
|
|
3118
|
+
totalTokens?: number | undefined;
|
|
3119
|
+
totalCost?: number | undefined;
|
|
3120
|
+
tags?: Record<string, string> | undefined;
|
|
3121
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3122
|
+
id?: string | undefined;
|
|
3123
|
+
createdAt?: Date | undefined;
|
|
3124
|
+
updatedAt?: Date | undefined;
|
|
3125
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
3126
|
+
id?: string | undefined;
|
|
3127
|
+
traceId?: string | undefined;
|
|
3128
|
+
spanId?: string | undefined;
|
|
3129
|
+
name?: string | undefined;
|
|
3130
|
+
timestamp?: Date | undefined;
|
|
3131
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3132
|
+
createdAt?: Date | undefined;
|
|
3133
|
+
}> | zod0.ZodSafeParseError<{
|
|
3134
|
+
id?: string | undefined;
|
|
3135
|
+
traceId?: string | undefined;
|
|
3136
|
+
spanId?: string | undefined;
|
|
3137
|
+
name?: string | undefined;
|
|
3138
|
+
timestamp?: Date | undefined;
|
|
3139
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3140
|
+
createdAt?: Date | undefined;
|
|
2528
3141
|
}>;
|
|
2529
3142
|
/**
|
|
2530
3143
|
* Parse and validate data, throws on error
|
|
@@ -2686,6 +3299,37 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2686
3299
|
action: "allowed" | "blocked" | "logged";
|
|
2687
3300
|
totalLatencyMs: number;
|
|
2688
3301
|
} | null | undefined;
|
|
3302
|
+
traceId?: string | null | undefined;
|
|
3303
|
+
spanId?: string | null | undefined;
|
|
3304
|
+
parentSpanId?: string | null | undefined;
|
|
3305
|
+
sessionId?: string | null | undefined;
|
|
3306
|
+
} | {
|
|
3307
|
+
traceId: string;
|
|
3308
|
+
status: string;
|
|
3309
|
+
startTime: Date;
|
|
3310
|
+
spanCount: number;
|
|
3311
|
+
totalInputTokens: number;
|
|
3312
|
+
totalOutputTokens: number;
|
|
3313
|
+
totalTokens: number;
|
|
3314
|
+
totalCost: number;
|
|
3315
|
+
tags: Record<string, string>;
|
|
3316
|
+
metadata: Record<string, unknown>;
|
|
3317
|
+
id: string;
|
|
3318
|
+
createdAt: Date;
|
|
3319
|
+
updatedAt: Date;
|
|
3320
|
+
name?: string | null | undefined;
|
|
3321
|
+
sessionId?: string | null | undefined;
|
|
3322
|
+
userId?: string | null | undefined;
|
|
3323
|
+
endTime?: Date | null | undefined;
|
|
3324
|
+
durationMs?: number | null | undefined;
|
|
3325
|
+
} | {
|
|
3326
|
+
id: string;
|
|
3327
|
+
traceId: string;
|
|
3328
|
+
spanId: string;
|
|
3329
|
+
name: string;
|
|
3330
|
+
timestamp: Date;
|
|
3331
|
+
attributes: Record<string, unknown>;
|
|
3332
|
+
createdAt: Date;
|
|
2689
3333
|
};
|
|
2690
3334
|
/**
|
|
2691
3335
|
* Parse partial data, throws on error
|
|
@@ -2838,9 +3482,40 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2838
3482
|
action: "allowed" | "blocked" | "logged";
|
|
2839
3483
|
totalLatencyMs: number;
|
|
2840
3484
|
} | null | undefined;
|
|
3485
|
+
traceId?: string | null | undefined;
|
|
3486
|
+
spanId?: string | null | undefined;
|
|
3487
|
+
parentSpanId?: string | null | undefined;
|
|
3488
|
+
sessionId?: string | null | undefined;
|
|
2841
3489
|
id?: string | undefined;
|
|
2842
3490
|
createdAt?: Date | undefined;
|
|
2843
3491
|
updatedAt?: Date | undefined;
|
|
3492
|
+
} | {
|
|
3493
|
+
traceId?: string | undefined;
|
|
3494
|
+
name?: string | null | undefined;
|
|
3495
|
+
sessionId?: string | null | undefined;
|
|
3496
|
+
userId?: string | null | undefined;
|
|
3497
|
+
status?: string | undefined;
|
|
3498
|
+
startTime?: Date | undefined;
|
|
3499
|
+
endTime?: Date | null | undefined;
|
|
3500
|
+
durationMs?: number | null | undefined;
|
|
3501
|
+
spanCount?: number | undefined;
|
|
3502
|
+
totalInputTokens?: number | undefined;
|
|
3503
|
+
totalOutputTokens?: number | undefined;
|
|
3504
|
+
totalTokens?: number | undefined;
|
|
3505
|
+
totalCost?: number | undefined;
|
|
3506
|
+
tags?: Record<string, string> | undefined;
|
|
3507
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3508
|
+
id?: string | undefined;
|
|
3509
|
+
createdAt?: Date | undefined;
|
|
3510
|
+
updatedAt?: Date | undefined;
|
|
3511
|
+
} | {
|
|
3512
|
+
id?: string | undefined;
|
|
3513
|
+
traceId?: string | undefined;
|
|
3514
|
+
spanId?: string | undefined;
|
|
3515
|
+
name?: string | undefined;
|
|
3516
|
+
timestamp?: Date | undefined;
|
|
3517
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3518
|
+
createdAt?: Date | undefined;
|
|
2844
3519
|
};
|
|
2845
3520
|
//#endregion
|
|
2846
3521
|
//#region src/db/migrations.d.ts
|
|
@@ -2957,4 +3632,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
2957
3632
|
*/
|
|
2958
3633
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
2959
3634
|
//#endregion
|
|
2960
|
-
export { SCHEMA_METADATA as $, DatasetsTable as A,
|
|
3635
|
+
export { SCHEMA_METADATA as $, DatasetsTable as A, playgroundsSchema as At, LLMRequest as B, workspaceSettingsSchema as Bt, Dataset as C, environmentSecretsSchema as Ct, DatasetVersionRecord as D, playgroundColumnSchema as Dt, DatasetVersion as E, llmRequestsSchema as Et, GuardrailConfig as F, spansSchema as Ft, PlaygroundResultsTable as G, Playground as H, GuardrailConfigsTable as I, targetingRulesSchema as It, PlaygroundsTable as J, PlaygroundRun as K, GuardrailResult as L, tracesSchema as Lt, EnvironmentSecret as M, providerGuardrailOverridesSchema as Mt, EnvironmentSecretsTable as N, schemas as Nt, DatasetVersionRecordsTable as O, playgroundResultsSchema as Ot, EnvironmentsTable as P, spanEventsSchema as Pt, ProviderGuardrailOverridesTable as Q, GuardrailResults as R, variantVersionsSchema as Rt, Database as S, datasetsSchema as St, DatasetRecordsTable as T, guardrailConfigsSchema as Tt, PlaygroundColumn as U, LLMRequestsTable as V, PlaygroundResult as W, ProviderConfigsTable as X, ProviderConfig as Y, ProviderGuardrailOverride as Z, validateTableData as _, configVariantsSchema as _t, createDatabaseFromConnection as a, TableName as at, ConfigVariantsTable as b, datasetVersionRecordsSchema as bt, executeWithSchema as c, Trace as ct, getMigrations as d, Variant as dt, Selectable as et, matchType as f, VariantVersion as ft, validatePartialTableData as g, WorkspaceSettingsTable as gt, parseTableData as h, WorkspaceSettings as ht, createDatabase as i, SpansTable as it, Environment as j, providerConfigsSchema as jt, DatasetVersionsTable as k, playgroundRunsSchema as kt, MigrationOptions as l, TracesTable as lt, parsePartialTableData as m, VariantsTable as mt, DatabaseOptions as n, SpanEvent as nt, detectDatabaseType as o, TargetingRule as ot, runAutoMigrations as p, VariantVersionsTable as pt, PlaygroundRunsTable as q, DatabaseType as r, SpanEventsTable as rt, createNeonDialect as s, TargetingRulesTable as st, DatabaseConnection as t, Span as tt, MigrationResult as u, Updateable as ut, Config as v, configsSchema as vt, DatasetRecord as w, environmentsSchema as wt, ConfigsTable as x, datasetVersionsSchema as xt, ConfigVariant as y, datasetRecordsSchema as yt, Insertable as z, variantsSchema as zt };
|