@llmops/core 0.3.4-beta.1 → 0.4.0-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-B5odtOFX.cjs → bun-sqlite-dialect-BOVsPUU1.cjs} +1 -1
- package/dist/db/index.cjs +10 -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-CoCzHm6p.mjs → db-Dp8PJzcN.mjs} +412 -4
- package/dist/{db-BF1a1duC.cjs → db-Sv8HPCfx.cjs} +462 -6
- package/dist/{index-yuxB_8bc.d.mts → index-Bxn6FEh6.d.cts} +1188 -113
- package/dist/{index-BP_lIJcD.d.cts → index-DSpTOghh.d.mts} +1188 -113
- package/dist/index.cjs +524 -4
- package/dist/index.d.cts +1098 -14
- package/dist/index.d.mts +1098 -14
- package/dist/index.mjs +514 -5
- package/dist/{neon-dialect-BQsMY2pg.cjs → neon-dialect-CN5kb3Gw.cjs} +1 -1
- package/dist/{neon-dialect-DSmsjY8m.cjs → neon-dialect-DIrx-7Rh.cjs} +1 -1
- package/dist/{node-sqlite-dialect-BGjMUONa.cjs → node-sqlite-dialect-BeXYiIVe.cjs} +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as SCHEMA_METADATA, A as DatasetsTable, At as variantsSchema, B as LLMRequest, C as Dataset, Ct as playgroundRunsSchema, D as DatasetVersionRecord, Dt as schemas, E as DatasetVersion, Et as providerGuardrailOverridesSchema, F as GuardrailConfig, G as PlaygroundResultsTable, H as Playground, I as GuardrailConfigsTable, J as PlaygroundsTable, K as PlaygroundRun, L as GuardrailResult, M as EnvironmentSecret, N as EnvironmentSecretsTable, O as DatasetVersionRecordsTable, Ot as targetingRulesSchema, P as EnvironmentsTable, Q as ProviderGuardrailOverridesTable, R as GuardrailResults, S as Database, St as playgroundResultsSchema, T as DatasetRecordsTable, Tt as providerConfigsSchema, U as PlaygroundColumn, V as LLMRequestsTable, W as PlaygroundResult, X as ProviderConfigsTable, Y as ProviderConfig, Z as ProviderGuardrailOverride, _ as validateTableData, _t as environmentSecretsSchema, a as createDatabaseFromConnection, at as Variant, b as ConfigVariantsTable, bt as llmRequestsSchema, c as executeWithSchema, ct as VariantsTable, d as getMigrations, dt as configVariantsSchema, et as Selectable, f as matchType, ft as configsSchema, g as validatePartialTableData, gt as datasetsSchema, h as parseTableData, ht as datasetVersionsSchema, i as createDatabase, it as Updateable, j as Environment, jt as workspaceSettingsSchema, k as DatasetVersionsTable, kt as variantVersionsSchema, l as MigrationOptions, lt as WorkspaceSettings, m as parsePartialTableData, mt as datasetVersionRecordsSchema, n as DatabaseOptions, nt as TargetingRule, o as detectDatabaseType, ot as VariantVersion, p as runAutoMigrations, pt as datasetRecordsSchema, q as PlaygroundRunsTable, r as DatabaseType, rt as TargetingRulesTable, s as createNeonDialect, st as VariantVersionsTable, t as DatabaseConnection, tt as TableName, u as MigrationResult, ut as WorkspaceSettingsTable, v as Config, vt as environmentsSchema, w as DatasetRecord, wt as playgroundsSchema, x as ConfigsTable, xt as playgroundColumnSchema, y as ConfigVariant, yt as guardrailConfigsSchema, z as Insertable } from "./index-DSpTOghh.mjs";
|
|
2
2
|
import gateway from "@llmops/gateway";
|
|
3
3
|
import * as kysely0 from "kysely";
|
|
4
4
|
import { Kysely } from "kysely";
|
|
@@ -1795,6 +1795,470 @@ declare const createProviderGuardrailOverridesDataLayer: (db: Kysely<Database>)
|
|
|
1795
1795
|
deleteOverridesByGuardrailConfigId: (params: z$1.infer<typeof getOverridesByGuardrailConfigId>) => Promise<kysely0.DeleteResult[]>;
|
|
1796
1796
|
};
|
|
1797
1797
|
//#endregion
|
|
1798
|
+
//#region src/datalayer/datasets.d.ts
|
|
1799
|
+
declare const createDataset: z$1.ZodObject<{
|
|
1800
|
+
name: z$1.ZodString;
|
|
1801
|
+
description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1802
|
+
}, z$1.core.$strip>;
|
|
1803
|
+
declare const updateDataset: z$1.ZodObject<{
|
|
1804
|
+
datasetId: z$1.ZodString;
|
|
1805
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
1806
|
+
description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1807
|
+
}, z$1.core.$strip>;
|
|
1808
|
+
declare const getDatasetById: z$1.ZodObject<{
|
|
1809
|
+
datasetId: z$1.ZodString;
|
|
1810
|
+
}, z$1.core.$strip>;
|
|
1811
|
+
declare const deleteDataset: z$1.ZodObject<{
|
|
1812
|
+
datasetId: z$1.ZodString;
|
|
1813
|
+
}, z$1.core.$strip>;
|
|
1814
|
+
declare const listDatasets: z$1.ZodObject<{
|
|
1815
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1816
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1817
|
+
}, z$1.core.$strip>;
|
|
1818
|
+
declare const createRecord: z$1.ZodObject<{
|
|
1819
|
+
datasetId: z$1.ZodString;
|
|
1820
|
+
input: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
1821
|
+
expected: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
|
|
1822
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1823
|
+
}, z$1.core.$strip>;
|
|
1824
|
+
declare const updateRecord: z$1.ZodObject<{
|
|
1825
|
+
recordId: z$1.ZodString;
|
|
1826
|
+
input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1827
|
+
expected: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
|
|
1828
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1829
|
+
}, z$1.core.$strip>;
|
|
1830
|
+
declare const deleteRecord: z$1.ZodObject<{
|
|
1831
|
+
recordId: z$1.ZodString;
|
|
1832
|
+
}, z$1.core.$strip>;
|
|
1833
|
+
declare const listRecords: z$1.ZodObject<{
|
|
1834
|
+
datasetId: z$1.ZodString;
|
|
1835
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1836
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1837
|
+
}, z$1.core.$strip>;
|
|
1838
|
+
declare const createVersion: z$1.ZodObject<{
|
|
1839
|
+
datasetId: z$1.ZodString;
|
|
1840
|
+
name: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1841
|
+
description: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1842
|
+
}, z$1.core.$strip>;
|
|
1843
|
+
declare const getVersionById: z$1.ZodObject<{
|
|
1844
|
+
versionId: z$1.ZodString;
|
|
1845
|
+
}, z$1.core.$strip>;
|
|
1846
|
+
declare const listVersions: z$1.ZodObject<{
|
|
1847
|
+
datasetId: z$1.ZodString;
|
|
1848
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1849
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1850
|
+
}, z$1.core.$strip>;
|
|
1851
|
+
declare const getVersionRecords: z$1.ZodObject<{
|
|
1852
|
+
versionId: z$1.ZodString;
|
|
1853
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1854
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1855
|
+
}, z$1.core.$strip>;
|
|
1856
|
+
declare const createDatasetsDataLayer: (db: Kysely<Database>) => {
|
|
1857
|
+
createDataset: (params: z$1.infer<typeof createDataset>) => Promise<{
|
|
1858
|
+
name: string;
|
|
1859
|
+
id: string;
|
|
1860
|
+
description: string | null;
|
|
1861
|
+
createdAt: Date;
|
|
1862
|
+
updatedAt: Date;
|
|
1863
|
+
recordCount: number;
|
|
1864
|
+
latestVersionNumber: number;
|
|
1865
|
+
} | undefined>;
|
|
1866
|
+
updateDataset: (params: z$1.infer<typeof updateDataset>) => Promise<{
|
|
1867
|
+
name: string;
|
|
1868
|
+
id: string;
|
|
1869
|
+
description: string | null;
|
|
1870
|
+
createdAt: Date;
|
|
1871
|
+
updatedAt: Date;
|
|
1872
|
+
recordCount: number;
|
|
1873
|
+
latestVersionNumber: number;
|
|
1874
|
+
} | undefined>;
|
|
1875
|
+
getDatasetById: (params: z$1.infer<typeof getDatasetById>) => Promise<{
|
|
1876
|
+
name: string;
|
|
1877
|
+
id: string;
|
|
1878
|
+
description: string | null;
|
|
1879
|
+
createdAt: Date;
|
|
1880
|
+
updatedAt: Date;
|
|
1881
|
+
recordCount: number;
|
|
1882
|
+
latestVersionNumber: number;
|
|
1883
|
+
} | undefined>;
|
|
1884
|
+
deleteDataset: (params: z$1.infer<typeof deleteDataset>) => Promise<{
|
|
1885
|
+
name: string;
|
|
1886
|
+
id: string;
|
|
1887
|
+
description: string | null;
|
|
1888
|
+
createdAt: Date;
|
|
1889
|
+
updatedAt: Date;
|
|
1890
|
+
recordCount: number;
|
|
1891
|
+
latestVersionNumber: number;
|
|
1892
|
+
} | undefined>;
|
|
1893
|
+
listDatasets: (params?: z$1.infer<typeof listDatasets>) => Promise<{
|
|
1894
|
+
name: string;
|
|
1895
|
+
id: string;
|
|
1896
|
+
description: string | null;
|
|
1897
|
+
createdAt: Date;
|
|
1898
|
+
updatedAt: Date;
|
|
1899
|
+
recordCount: number;
|
|
1900
|
+
latestVersionNumber: number;
|
|
1901
|
+
}[]>;
|
|
1902
|
+
countDatasets: () => Promise<number>;
|
|
1903
|
+
createRecord: (params: z$1.infer<typeof createRecord>) => Promise<{
|
|
1904
|
+
input: Record<string, unknown>;
|
|
1905
|
+
id: string;
|
|
1906
|
+
datasetId: string;
|
|
1907
|
+
expected: Record<string, unknown> | null;
|
|
1908
|
+
metadata: Record<string, unknown>;
|
|
1909
|
+
createdAt: Date;
|
|
1910
|
+
updatedAt: Date;
|
|
1911
|
+
} | undefined>;
|
|
1912
|
+
updateRecord: (params: z$1.infer<typeof updateRecord>) => Promise<{
|
|
1913
|
+
input: Record<string, unknown>;
|
|
1914
|
+
id: string;
|
|
1915
|
+
datasetId: string;
|
|
1916
|
+
expected: Record<string, unknown> | null;
|
|
1917
|
+
metadata: Record<string, unknown>;
|
|
1918
|
+
createdAt: Date;
|
|
1919
|
+
updatedAt: Date;
|
|
1920
|
+
} | undefined>;
|
|
1921
|
+
deleteRecord: (params: z$1.infer<typeof deleteRecord>) => Promise<{
|
|
1922
|
+
input: Record<string, unknown>;
|
|
1923
|
+
id: string;
|
|
1924
|
+
datasetId: string;
|
|
1925
|
+
expected: Record<string, unknown> | null;
|
|
1926
|
+
metadata: Record<string, unknown>;
|
|
1927
|
+
createdAt: Date;
|
|
1928
|
+
updatedAt: Date;
|
|
1929
|
+
} | undefined>;
|
|
1930
|
+
listRecords: (params: z$1.infer<typeof listRecords>) => Promise<{
|
|
1931
|
+
input: Record<string, unknown>;
|
|
1932
|
+
id: string;
|
|
1933
|
+
datasetId: string;
|
|
1934
|
+
expected: Record<string, unknown> | null;
|
|
1935
|
+
metadata: Record<string, unknown>;
|
|
1936
|
+
createdAt: Date;
|
|
1937
|
+
updatedAt: Date;
|
|
1938
|
+
}[]>;
|
|
1939
|
+
getRecordById: (recordId: string) => Promise<{
|
|
1940
|
+
input: Record<string, unknown>;
|
|
1941
|
+
id: string;
|
|
1942
|
+
datasetId: string;
|
|
1943
|
+
expected: Record<string, unknown> | null;
|
|
1944
|
+
metadata: Record<string, unknown>;
|
|
1945
|
+
createdAt: Date;
|
|
1946
|
+
updatedAt: Date;
|
|
1947
|
+
} | undefined>;
|
|
1948
|
+
createVersion: (params: z$1.infer<typeof createVersion>) => Promise<{
|
|
1949
|
+
name: string | null;
|
|
1950
|
+
id: string;
|
|
1951
|
+
description: string | null;
|
|
1952
|
+
datasetId: string;
|
|
1953
|
+
createdAt: Date;
|
|
1954
|
+
updatedAt: Date;
|
|
1955
|
+
recordCount: number;
|
|
1956
|
+
versionNumber: number;
|
|
1957
|
+
snapshotHash: string;
|
|
1958
|
+
} | undefined>;
|
|
1959
|
+
getVersionById: (params: z$1.infer<typeof getVersionById>) => Promise<{
|
|
1960
|
+
name: string | null;
|
|
1961
|
+
id: string;
|
|
1962
|
+
description: string | null;
|
|
1963
|
+
datasetId: string;
|
|
1964
|
+
createdAt: Date;
|
|
1965
|
+
updatedAt: Date;
|
|
1966
|
+
recordCount: number;
|
|
1967
|
+
versionNumber: number;
|
|
1968
|
+
snapshotHash: string;
|
|
1969
|
+
} | undefined>;
|
|
1970
|
+
listVersions: (params: z$1.infer<typeof listVersions>) => Promise<{
|
|
1971
|
+
name: string | null;
|
|
1972
|
+
id: string;
|
|
1973
|
+
description: string | null;
|
|
1974
|
+
datasetId: string;
|
|
1975
|
+
createdAt: Date;
|
|
1976
|
+
updatedAt: Date;
|
|
1977
|
+
recordCount: number;
|
|
1978
|
+
versionNumber: number;
|
|
1979
|
+
snapshotHash: string;
|
|
1980
|
+
}[]>;
|
|
1981
|
+
getVersionRecords: (params: z$1.infer<typeof getVersionRecords>) => Promise<{
|
|
1982
|
+
input: Record<string, unknown>;
|
|
1983
|
+
id: string;
|
|
1984
|
+
datasetId: string;
|
|
1985
|
+
expected: Record<string, unknown> | null;
|
|
1986
|
+
metadata: Record<string, unknown>;
|
|
1987
|
+
createdAt: Date;
|
|
1988
|
+
updatedAt: Date;
|
|
1989
|
+
position: number;
|
|
1990
|
+
}[]>;
|
|
1991
|
+
};
|
|
1992
|
+
//#endregion
|
|
1993
|
+
//#region src/datalayer/playgroundRuns.d.ts
|
|
1994
|
+
declare const createPlaygroundRun: z$1.ZodObject<{
|
|
1995
|
+
playgroundId: z$1.ZodString;
|
|
1996
|
+
datasetId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1997
|
+
datasetVersionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1998
|
+
status: z$1.ZodDefault<z$1.ZodEnum<{
|
|
1999
|
+
pending: "pending";
|
|
2000
|
+
running: "running";
|
|
2001
|
+
completed: "completed";
|
|
2002
|
+
failed: "failed";
|
|
2003
|
+
cancelled: "cancelled";
|
|
2004
|
+
}>>;
|
|
2005
|
+
totalRecords: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2006
|
+
}, z$1.core.$strip>;
|
|
2007
|
+
declare const updatePlaygroundRun: z$1.ZodObject<{
|
|
2008
|
+
runId: z$1.ZodString;
|
|
2009
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2010
|
+
pending: "pending";
|
|
2011
|
+
running: "running";
|
|
2012
|
+
completed: "completed";
|
|
2013
|
+
failed: "failed";
|
|
2014
|
+
cancelled: "cancelled";
|
|
2015
|
+
}>>;
|
|
2016
|
+
startedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodDate>>;
|
|
2017
|
+
completedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodDate>>;
|
|
2018
|
+
completedRecords: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2019
|
+
}, z$1.core.$strip>;
|
|
2020
|
+
declare const getPlaygroundRunById: z$1.ZodObject<{
|
|
2021
|
+
runId: z$1.ZodString;
|
|
2022
|
+
}, z$1.core.$strip>;
|
|
2023
|
+
declare const listPlaygroundRuns: z$1.ZodObject<{
|
|
2024
|
+
playgroundId: z$1.ZodString;
|
|
2025
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2026
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2027
|
+
}, z$1.core.$strip>;
|
|
2028
|
+
declare const deletePlaygroundRun: z$1.ZodObject<{
|
|
2029
|
+
runId: z$1.ZodString;
|
|
2030
|
+
}, z$1.core.$strip>;
|
|
2031
|
+
declare const createPlaygroundRunsDataLayer: (db: Kysely<Database>) => {
|
|
2032
|
+
createPlaygroundRun: (params: z$1.infer<typeof createPlaygroundRun>) => Promise<{
|
|
2033
|
+
id: string;
|
|
2034
|
+
datasetId: string | null;
|
|
2035
|
+
playgroundId: string;
|
|
2036
|
+
status: string;
|
|
2037
|
+
datasetVersionId: string | null;
|
|
2038
|
+
totalRecords: number;
|
|
2039
|
+
startedAt: Date | null;
|
|
2040
|
+
completedAt: Date | null;
|
|
2041
|
+
completedRecords: number;
|
|
2042
|
+
createdAt: Date;
|
|
2043
|
+
updatedAt: Date;
|
|
2044
|
+
} | undefined>;
|
|
2045
|
+
updatePlaygroundRun: (params: z$1.infer<typeof updatePlaygroundRun>) => Promise<{
|
|
2046
|
+
id: string;
|
|
2047
|
+
datasetId: string | null;
|
|
2048
|
+
playgroundId: string;
|
|
2049
|
+
status: string;
|
|
2050
|
+
datasetVersionId: string | null;
|
|
2051
|
+
totalRecords: number;
|
|
2052
|
+
startedAt: Date | null;
|
|
2053
|
+
completedAt: Date | null;
|
|
2054
|
+
completedRecords: number;
|
|
2055
|
+
createdAt: Date;
|
|
2056
|
+
updatedAt: Date;
|
|
2057
|
+
} | undefined>;
|
|
2058
|
+
getPlaygroundRunById: (params: z$1.infer<typeof getPlaygroundRunById>) => Promise<{
|
|
2059
|
+
id: string;
|
|
2060
|
+
datasetId: string | null;
|
|
2061
|
+
playgroundId: string;
|
|
2062
|
+
status: string;
|
|
2063
|
+
datasetVersionId: string | null;
|
|
2064
|
+
totalRecords: number;
|
|
2065
|
+
startedAt: Date | null;
|
|
2066
|
+
completedAt: Date | null;
|
|
2067
|
+
completedRecords: number;
|
|
2068
|
+
createdAt: Date;
|
|
2069
|
+
updatedAt: Date;
|
|
2070
|
+
} | undefined>;
|
|
2071
|
+
listPlaygroundRuns: (params: z$1.infer<typeof listPlaygroundRuns>) => Promise<{
|
|
2072
|
+
id: string;
|
|
2073
|
+
datasetId: string | null;
|
|
2074
|
+
playgroundId: string;
|
|
2075
|
+
status: string;
|
|
2076
|
+
datasetVersionId: string | null;
|
|
2077
|
+
totalRecords: number;
|
|
2078
|
+
startedAt: Date | null;
|
|
2079
|
+
completedAt: Date | null;
|
|
2080
|
+
completedRecords: number;
|
|
2081
|
+
createdAt: Date;
|
|
2082
|
+
updatedAt: Date;
|
|
2083
|
+
}[]>;
|
|
2084
|
+
deletePlaygroundRun: (params: z$1.infer<typeof deletePlaygroundRun>) => Promise<{
|
|
2085
|
+
id: string;
|
|
2086
|
+
datasetId: string | null;
|
|
2087
|
+
playgroundId: string;
|
|
2088
|
+
status: string;
|
|
2089
|
+
datasetVersionId: string | null;
|
|
2090
|
+
totalRecords: number;
|
|
2091
|
+
startedAt: Date | null;
|
|
2092
|
+
completedAt: Date | null;
|
|
2093
|
+
completedRecords: number;
|
|
2094
|
+
createdAt: Date;
|
|
2095
|
+
updatedAt: Date;
|
|
2096
|
+
} | undefined>;
|
|
2097
|
+
countPlaygroundRuns: (playgroundId: string) => Promise<number>;
|
|
2098
|
+
};
|
|
2099
|
+
//#endregion
|
|
2100
|
+
//#region src/datalayer/playgroundResults.d.ts
|
|
2101
|
+
declare const createPlaygroundResult: z$1.ZodObject<{
|
|
2102
|
+
runId: z$1.ZodString;
|
|
2103
|
+
columnId: z$1.ZodString;
|
|
2104
|
+
datasetRecordId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2105
|
+
inputVariables: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2106
|
+
status: z$1.ZodDefault<z$1.ZodEnum<{
|
|
2107
|
+
pending: "pending";
|
|
2108
|
+
running: "running";
|
|
2109
|
+
completed: "completed";
|
|
2110
|
+
failed: "failed";
|
|
2111
|
+
}>>;
|
|
2112
|
+
}, z$1.core.$strip>;
|
|
2113
|
+
declare const createPlaygroundResultsBatch: z$1.ZodObject<{
|
|
2114
|
+
results: z$1.ZodArray<z$1.ZodObject<{
|
|
2115
|
+
runId: z$1.ZodString;
|
|
2116
|
+
columnId: z$1.ZodString;
|
|
2117
|
+
datasetRecordId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2118
|
+
inputVariables: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2119
|
+
status: z$1.ZodDefault<z$1.ZodEnum<{
|
|
2120
|
+
pending: "pending";
|
|
2121
|
+
running: "running";
|
|
2122
|
+
completed: "completed";
|
|
2123
|
+
failed: "failed";
|
|
2124
|
+
}>>;
|
|
2125
|
+
}, z$1.core.$strip>>;
|
|
2126
|
+
}, z$1.core.$strip>;
|
|
2127
|
+
declare const updatePlaygroundResult: z$1.ZodObject<{
|
|
2128
|
+
resultId: z$1.ZodString;
|
|
2129
|
+
outputContent: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2130
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2131
|
+
pending: "pending";
|
|
2132
|
+
running: "running";
|
|
2133
|
+
completed: "completed";
|
|
2134
|
+
failed: "failed";
|
|
2135
|
+
}>>;
|
|
2136
|
+
error: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2137
|
+
latencyMs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
2138
|
+
promptTokens: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
2139
|
+
completionTokens: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
2140
|
+
totalTokens: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
2141
|
+
cost: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
2142
|
+
}, z$1.core.$strip>;
|
|
2143
|
+
declare const getPlaygroundResultById: z$1.ZodObject<{
|
|
2144
|
+
resultId: z$1.ZodString;
|
|
2145
|
+
}, z$1.core.$strip>;
|
|
2146
|
+
declare const listPlaygroundResults: z$1.ZodObject<{
|
|
2147
|
+
runId: z$1.ZodString;
|
|
2148
|
+
columnId: z$1.ZodOptional<z$1.ZodString>;
|
|
2149
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2150
|
+
offset: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2151
|
+
}, z$1.core.$strip>;
|
|
2152
|
+
declare const deletePlaygroundResultsByRunId: z$1.ZodObject<{
|
|
2153
|
+
runId: z$1.ZodString;
|
|
2154
|
+
}, z$1.core.$strip>;
|
|
2155
|
+
declare const createPlaygroundResultsDataLayer: (db: Kysely<Database>) => {
|
|
2156
|
+
createPlaygroundResult: (params: z$1.infer<typeof createPlaygroundResult>) => Promise<{
|
|
2157
|
+
error: string | null;
|
|
2158
|
+
id: string;
|
|
2159
|
+
promptTokens: number | null;
|
|
2160
|
+
completionTokens: number | null;
|
|
2161
|
+
totalTokens: number | null;
|
|
2162
|
+
cost: number | null;
|
|
2163
|
+
latencyMs: number | null;
|
|
2164
|
+
runId: string;
|
|
2165
|
+
columnId: string;
|
|
2166
|
+
datasetRecordId: string | null;
|
|
2167
|
+
inputVariables: Record<string, unknown>;
|
|
2168
|
+
status: string;
|
|
2169
|
+
outputContent: string | null;
|
|
2170
|
+
createdAt: Date;
|
|
2171
|
+
updatedAt: Date;
|
|
2172
|
+
} | undefined>;
|
|
2173
|
+
createPlaygroundResultsBatch: (params: z$1.infer<typeof createPlaygroundResultsBatch>) => Promise<{
|
|
2174
|
+
error: string | null;
|
|
2175
|
+
id: string;
|
|
2176
|
+
promptTokens: number | null;
|
|
2177
|
+
completionTokens: number | null;
|
|
2178
|
+
totalTokens: number | null;
|
|
2179
|
+
cost: number | null;
|
|
2180
|
+
latencyMs: number | null;
|
|
2181
|
+
runId: string;
|
|
2182
|
+
columnId: string;
|
|
2183
|
+
datasetRecordId: string | null;
|
|
2184
|
+
inputVariables: Record<string, unknown>;
|
|
2185
|
+
status: string;
|
|
2186
|
+
outputContent: string | null;
|
|
2187
|
+
createdAt: Date;
|
|
2188
|
+
updatedAt: Date;
|
|
2189
|
+
}[]>;
|
|
2190
|
+
updatePlaygroundResult: (params: z$1.infer<typeof updatePlaygroundResult>) => Promise<{
|
|
2191
|
+
error: string | null;
|
|
2192
|
+
id: string;
|
|
2193
|
+
promptTokens: number | null;
|
|
2194
|
+
completionTokens: number | null;
|
|
2195
|
+
totalTokens: number | null;
|
|
2196
|
+
cost: number | null;
|
|
2197
|
+
latencyMs: number | null;
|
|
2198
|
+
runId: string;
|
|
2199
|
+
columnId: string;
|
|
2200
|
+
datasetRecordId: string | null;
|
|
2201
|
+
inputVariables: Record<string, unknown>;
|
|
2202
|
+
status: string;
|
|
2203
|
+
outputContent: string | null;
|
|
2204
|
+
createdAt: Date;
|
|
2205
|
+
updatedAt: Date;
|
|
2206
|
+
} | undefined>;
|
|
2207
|
+
getPlaygroundResultById: (params: z$1.infer<typeof getPlaygroundResultById>) => Promise<{
|
|
2208
|
+
error: string | null;
|
|
2209
|
+
id: string;
|
|
2210
|
+
promptTokens: number | null;
|
|
2211
|
+
completionTokens: number | null;
|
|
2212
|
+
totalTokens: number | null;
|
|
2213
|
+
cost: number | null;
|
|
2214
|
+
latencyMs: number | null;
|
|
2215
|
+
runId: string;
|
|
2216
|
+
columnId: string;
|
|
2217
|
+
datasetRecordId: string | null;
|
|
2218
|
+
inputVariables: Record<string, unknown>;
|
|
2219
|
+
status: string;
|
|
2220
|
+
outputContent: string | null;
|
|
2221
|
+
createdAt: Date;
|
|
2222
|
+
updatedAt: Date;
|
|
2223
|
+
} | undefined>;
|
|
2224
|
+
listPlaygroundResults: (params: z$1.infer<typeof listPlaygroundResults>) => Promise<{
|
|
2225
|
+
error: string | null;
|
|
2226
|
+
id: string;
|
|
2227
|
+
promptTokens: number | null;
|
|
2228
|
+
completionTokens: number | null;
|
|
2229
|
+
totalTokens: number | null;
|
|
2230
|
+
cost: number | null;
|
|
2231
|
+
latencyMs: number | null;
|
|
2232
|
+
runId: string;
|
|
2233
|
+
columnId: string;
|
|
2234
|
+
datasetRecordId: string | null;
|
|
2235
|
+
inputVariables: Record<string, unknown>;
|
|
2236
|
+
status: string;
|
|
2237
|
+
outputContent: string | null;
|
|
2238
|
+
createdAt: Date;
|
|
2239
|
+
updatedAt: Date;
|
|
2240
|
+
}[]>;
|
|
2241
|
+
deletePlaygroundResultsByRunId: (params: z$1.infer<typeof deletePlaygroundResultsByRunId>) => Promise<{
|
|
2242
|
+
error: string | null;
|
|
2243
|
+
id: string;
|
|
2244
|
+
promptTokens: number | null;
|
|
2245
|
+
completionTokens: number | null;
|
|
2246
|
+
totalTokens: number | null;
|
|
2247
|
+
cost: number | null;
|
|
2248
|
+
latencyMs: number | null;
|
|
2249
|
+
runId: string;
|
|
2250
|
+
columnId: string;
|
|
2251
|
+
datasetRecordId: string | null;
|
|
2252
|
+
inputVariables: Record<string, unknown>;
|
|
2253
|
+
status: string;
|
|
2254
|
+
outputContent: string | null;
|
|
2255
|
+
createdAt: Date;
|
|
2256
|
+
updatedAt: Date;
|
|
2257
|
+
}[]>;
|
|
2258
|
+
countPlaygroundResults: (runId: string) => Promise<number>;
|
|
2259
|
+
countCompletedPlaygroundResults: (runId: string) => Promise<number>;
|
|
2260
|
+
};
|
|
2261
|
+
//#endregion
|
|
1798
2262
|
//#region src/datalayer/index.d.ts
|
|
1799
2263
|
declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
1800
2264
|
getWorkspaceSettings: () => Promise<{
|
|
@@ -2040,8 +2504,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2040
2504
|
environmentId: string;
|
|
2041
2505
|
enabled: boolean;
|
|
2042
2506
|
priority: number;
|
|
2043
|
-
configVariantId: string;
|
|
2044
2507
|
variantVersionId: string | null;
|
|
2508
|
+
configVariantId: string;
|
|
2045
2509
|
weight: number;
|
|
2046
2510
|
conditions: Record<string, unknown>;
|
|
2047
2511
|
createdAt: Date;
|
|
@@ -2060,8 +2524,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2060
2524
|
environmentId: string;
|
|
2061
2525
|
enabled: boolean;
|
|
2062
2526
|
priority: number;
|
|
2063
|
-
configVariantId: string;
|
|
2064
2527
|
variantVersionId: string | null;
|
|
2528
|
+
configVariantId: string;
|
|
2065
2529
|
weight: number;
|
|
2066
2530
|
conditions: Record<string, unknown>;
|
|
2067
2531
|
createdAt: Date;
|
|
@@ -2075,8 +2539,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2075
2539
|
environmentId: string;
|
|
2076
2540
|
enabled: boolean;
|
|
2077
2541
|
priority: number;
|
|
2078
|
-
configVariantId: string;
|
|
2079
2542
|
variantVersionId: string | null;
|
|
2543
|
+
configVariantId: string;
|
|
2080
2544
|
weight: number;
|
|
2081
2545
|
conditions: Record<string, unknown>;
|
|
2082
2546
|
createdAt: Date;
|
|
@@ -2092,8 +2556,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2092
2556
|
environmentId: string;
|
|
2093
2557
|
enabled: boolean;
|
|
2094
2558
|
priority: number;
|
|
2095
|
-
configVariantId: string;
|
|
2096
2559
|
variantVersionId: string | null;
|
|
2560
|
+
configVariantId: string;
|
|
2097
2561
|
weight: number;
|
|
2098
2562
|
conditions: Record<string, unknown>;
|
|
2099
2563
|
createdAt: Date;
|
|
@@ -2109,8 +2573,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2109
2573
|
environmentId: string;
|
|
2110
2574
|
enabled: boolean;
|
|
2111
2575
|
priority: number;
|
|
2112
|
-
configVariantId: string;
|
|
2113
2576
|
variantVersionId: string | null;
|
|
2577
|
+
configVariantId: string;
|
|
2114
2578
|
weight: number;
|
|
2115
2579
|
conditions: Record<string, unknown>;
|
|
2116
2580
|
createdAt: Date;
|
|
@@ -2125,8 +2589,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2125
2589
|
environmentId: string;
|
|
2126
2590
|
enabled: boolean;
|
|
2127
2591
|
priority: number;
|
|
2128
|
-
configVariantId: string;
|
|
2129
2592
|
variantVersionId: string | null;
|
|
2593
|
+
configVariantId: string;
|
|
2130
2594
|
weight: number;
|
|
2131
2595
|
conditions: Record<string, unknown>;
|
|
2132
2596
|
createdAt: Date;
|
|
@@ -2140,8 +2604,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2140
2604
|
environmentId: string;
|
|
2141
2605
|
enabled: boolean;
|
|
2142
2606
|
priority: number;
|
|
2143
|
-
configVariantId: string;
|
|
2144
2607
|
variantVersionId: string | null;
|
|
2608
|
+
configVariantId: string;
|
|
2145
2609
|
weight: number;
|
|
2146
2610
|
conditions: Record<string, unknown>;
|
|
2147
2611
|
createdAt: Date;
|
|
@@ -2155,8 +2619,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2155
2619
|
environmentId: string;
|
|
2156
2620
|
enabled: boolean;
|
|
2157
2621
|
priority: number;
|
|
2158
|
-
configVariantId: string;
|
|
2159
2622
|
variantVersionId: string | null;
|
|
2623
|
+
configVariantId: string;
|
|
2160
2624
|
weight: number;
|
|
2161
2625
|
conditions: Record<string, unknown>;
|
|
2162
2626
|
createdAt: Date;
|
|
@@ -2170,8 +2634,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2170
2634
|
environmentId: string;
|
|
2171
2635
|
enabled: boolean;
|
|
2172
2636
|
priority: number;
|
|
2173
|
-
configVariantId: string;
|
|
2174
2637
|
variantVersionId: string | null;
|
|
2638
|
+
configVariantId: string;
|
|
2175
2639
|
weight: number;
|
|
2176
2640
|
conditions: Record<string, unknown>;
|
|
2177
2641
|
createdAt: Date;
|
|
@@ -2186,8 +2650,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2186
2650
|
environmentId: string;
|
|
2187
2651
|
enabled: boolean;
|
|
2188
2652
|
priority: number;
|
|
2189
|
-
configVariantId: string;
|
|
2190
2653
|
variantVersionId: string | null;
|
|
2654
|
+
configVariantId: string;
|
|
2191
2655
|
weight: number;
|
|
2192
2656
|
conditions: Record<string, unknown>;
|
|
2193
2657
|
createdAt: Date;
|
|
@@ -2208,8 +2672,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2208
2672
|
environmentId: string;
|
|
2209
2673
|
enabled: boolean;
|
|
2210
2674
|
priority: number;
|
|
2211
|
-
configVariantId: string;
|
|
2212
2675
|
variantVersionId: string | null;
|
|
2676
|
+
configVariantId: string;
|
|
2213
2677
|
weight: number;
|
|
2214
2678
|
conditions: Record<string, unknown>;
|
|
2215
2679
|
createdAt: Date;
|
|
@@ -2229,8 +2693,8 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2229
2693
|
environmentId: string;
|
|
2230
2694
|
enabled: boolean;
|
|
2231
2695
|
priority: number;
|
|
2232
|
-
configVariantId: string;
|
|
2233
2696
|
variantVersionId: string | null;
|
|
2697
|
+
configVariantId: string;
|
|
2234
2698
|
weight: number;
|
|
2235
2699
|
conditions: Record<string, unknown>;
|
|
2236
2700
|
createdAt: Date;
|
|
@@ -2446,6 +2910,447 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2446
2910
|
createdAt: Date;
|
|
2447
2911
|
updatedAt: Date;
|
|
2448
2912
|
} | undefined>;
|
|
2913
|
+
createPlaygroundRun: (params: zod0.infer<zod0.ZodObject<{
|
|
2914
|
+
playgroundId: zod0.ZodString;
|
|
2915
|
+
datasetId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2916
|
+
datasetVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2917
|
+
status: zod0.ZodDefault<zod0.ZodEnum<{
|
|
2918
|
+
pending: "pending";
|
|
2919
|
+
running: "running";
|
|
2920
|
+
completed: "completed";
|
|
2921
|
+
failed: "failed";
|
|
2922
|
+
cancelled: "cancelled";
|
|
2923
|
+
}>>;
|
|
2924
|
+
totalRecords: zod0.ZodDefault<zod0.ZodNumber>;
|
|
2925
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
2926
|
+
id: string;
|
|
2927
|
+
datasetId: string | null;
|
|
2928
|
+
playgroundId: string;
|
|
2929
|
+
status: string;
|
|
2930
|
+
datasetVersionId: string | null;
|
|
2931
|
+
totalRecords: number;
|
|
2932
|
+
startedAt: Date | null;
|
|
2933
|
+
completedAt: Date | null;
|
|
2934
|
+
completedRecords: number;
|
|
2935
|
+
createdAt: Date;
|
|
2936
|
+
updatedAt: Date;
|
|
2937
|
+
} | undefined>;
|
|
2938
|
+
updatePlaygroundRun: (params: zod0.infer<zod0.ZodObject<{
|
|
2939
|
+
runId: zod0.ZodString;
|
|
2940
|
+
status: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2941
|
+
pending: "pending";
|
|
2942
|
+
running: "running";
|
|
2943
|
+
completed: "completed";
|
|
2944
|
+
failed: "failed";
|
|
2945
|
+
cancelled: "cancelled";
|
|
2946
|
+
}>>;
|
|
2947
|
+
startedAt: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodDate>>;
|
|
2948
|
+
completedAt: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodDate>>;
|
|
2949
|
+
completedRecords: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2950
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
2951
|
+
id: string;
|
|
2952
|
+
datasetId: string | null;
|
|
2953
|
+
playgroundId: string;
|
|
2954
|
+
status: string;
|
|
2955
|
+
datasetVersionId: string | null;
|
|
2956
|
+
totalRecords: number;
|
|
2957
|
+
startedAt: Date | null;
|
|
2958
|
+
completedAt: Date | null;
|
|
2959
|
+
completedRecords: number;
|
|
2960
|
+
createdAt: Date;
|
|
2961
|
+
updatedAt: Date;
|
|
2962
|
+
} | undefined>;
|
|
2963
|
+
getPlaygroundRunById: (params: zod0.infer<zod0.ZodObject<{
|
|
2964
|
+
runId: zod0.ZodString;
|
|
2965
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
2966
|
+
id: string;
|
|
2967
|
+
datasetId: string | null;
|
|
2968
|
+
playgroundId: string;
|
|
2969
|
+
status: string;
|
|
2970
|
+
datasetVersionId: string | null;
|
|
2971
|
+
totalRecords: number;
|
|
2972
|
+
startedAt: Date | null;
|
|
2973
|
+
completedAt: Date | null;
|
|
2974
|
+
completedRecords: number;
|
|
2975
|
+
createdAt: Date;
|
|
2976
|
+
updatedAt: Date;
|
|
2977
|
+
} | undefined>;
|
|
2978
|
+
listPlaygroundRuns: (params: zod0.infer<zod0.ZodObject<{
|
|
2979
|
+
playgroundId: zod0.ZodString;
|
|
2980
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2981
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2982
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
2983
|
+
id: string;
|
|
2984
|
+
datasetId: string | null;
|
|
2985
|
+
playgroundId: string;
|
|
2986
|
+
status: string;
|
|
2987
|
+
datasetVersionId: string | null;
|
|
2988
|
+
totalRecords: number;
|
|
2989
|
+
startedAt: Date | null;
|
|
2990
|
+
completedAt: Date | null;
|
|
2991
|
+
completedRecords: number;
|
|
2992
|
+
createdAt: Date;
|
|
2993
|
+
updatedAt: Date;
|
|
2994
|
+
}[]>;
|
|
2995
|
+
deletePlaygroundRun: (params: zod0.infer<zod0.ZodObject<{
|
|
2996
|
+
runId: zod0.ZodString;
|
|
2997
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
2998
|
+
id: string;
|
|
2999
|
+
datasetId: string | null;
|
|
3000
|
+
playgroundId: string;
|
|
3001
|
+
status: string;
|
|
3002
|
+
datasetVersionId: string | null;
|
|
3003
|
+
totalRecords: number;
|
|
3004
|
+
startedAt: Date | null;
|
|
3005
|
+
completedAt: Date | null;
|
|
3006
|
+
completedRecords: number;
|
|
3007
|
+
createdAt: Date;
|
|
3008
|
+
updatedAt: Date;
|
|
3009
|
+
} | undefined>;
|
|
3010
|
+
countPlaygroundRuns: (playgroundId: string) => Promise<number>;
|
|
3011
|
+
createPlaygroundResult: (params: zod0.infer<zod0.ZodObject<{
|
|
3012
|
+
runId: zod0.ZodString;
|
|
3013
|
+
columnId: zod0.ZodString;
|
|
3014
|
+
datasetRecordId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3015
|
+
inputVariables: zod0.ZodDefault<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
3016
|
+
status: zod0.ZodDefault<zod0.ZodEnum<{
|
|
3017
|
+
pending: "pending";
|
|
3018
|
+
running: "running";
|
|
3019
|
+
completed: "completed";
|
|
3020
|
+
failed: "failed";
|
|
3021
|
+
}>>;
|
|
3022
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3023
|
+
error: string | null;
|
|
3024
|
+
id: string;
|
|
3025
|
+
promptTokens: number | null;
|
|
3026
|
+
completionTokens: number | null;
|
|
3027
|
+
totalTokens: number | null;
|
|
3028
|
+
cost: number | null;
|
|
3029
|
+
latencyMs: number | null;
|
|
3030
|
+
runId: string;
|
|
3031
|
+
columnId: string;
|
|
3032
|
+
datasetRecordId: string | null;
|
|
3033
|
+
inputVariables: Record<string, unknown>;
|
|
3034
|
+
status: string;
|
|
3035
|
+
outputContent: string | null;
|
|
3036
|
+
createdAt: Date;
|
|
3037
|
+
updatedAt: Date;
|
|
3038
|
+
} | undefined>;
|
|
3039
|
+
createPlaygroundResultsBatch: (params: zod0.infer<zod0.ZodObject<{
|
|
3040
|
+
results: zod0.ZodArray<zod0.ZodObject<{
|
|
3041
|
+
runId: zod0.ZodString;
|
|
3042
|
+
columnId: zod0.ZodString;
|
|
3043
|
+
datasetRecordId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3044
|
+
inputVariables: zod0.ZodDefault<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
3045
|
+
status: zod0.ZodDefault<zod0.ZodEnum<{
|
|
3046
|
+
pending: "pending";
|
|
3047
|
+
running: "running";
|
|
3048
|
+
completed: "completed";
|
|
3049
|
+
failed: "failed";
|
|
3050
|
+
}>>;
|
|
3051
|
+
}, better_auth0.$strip>>;
|
|
3052
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3053
|
+
error: string | null;
|
|
3054
|
+
id: string;
|
|
3055
|
+
promptTokens: number | null;
|
|
3056
|
+
completionTokens: number | null;
|
|
3057
|
+
totalTokens: number | null;
|
|
3058
|
+
cost: number | null;
|
|
3059
|
+
latencyMs: number | null;
|
|
3060
|
+
runId: string;
|
|
3061
|
+
columnId: string;
|
|
3062
|
+
datasetRecordId: string | null;
|
|
3063
|
+
inputVariables: Record<string, unknown>;
|
|
3064
|
+
status: string;
|
|
3065
|
+
outputContent: string | null;
|
|
3066
|
+
createdAt: Date;
|
|
3067
|
+
updatedAt: Date;
|
|
3068
|
+
}[]>;
|
|
3069
|
+
updatePlaygroundResult: (params: zod0.infer<zod0.ZodObject<{
|
|
3070
|
+
resultId: zod0.ZodString;
|
|
3071
|
+
outputContent: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3072
|
+
status: zod0.ZodOptional<zod0.ZodEnum<{
|
|
3073
|
+
pending: "pending";
|
|
3074
|
+
running: "running";
|
|
3075
|
+
completed: "completed";
|
|
3076
|
+
failed: "failed";
|
|
3077
|
+
}>>;
|
|
3078
|
+
error: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3079
|
+
latencyMs: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3080
|
+
promptTokens: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3081
|
+
completionTokens: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3082
|
+
totalTokens: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3083
|
+
cost: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3084
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3085
|
+
error: string | null;
|
|
3086
|
+
id: string;
|
|
3087
|
+
promptTokens: number | null;
|
|
3088
|
+
completionTokens: number | null;
|
|
3089
|
+
totalTokens: number | null;
|
|
3090
|
+
cost: number | null;
|
|
3091
|
+
latencyMs: number | null;
|
|
3092
|
+
runId: string;
|
|
3093
|
+
columnId: string;
|
|
3094
|
+
datasetRecordId: string | null;
|
|
3095
|
+
inputVariables: Record<string, unknown>;
|
|
3096
|
+
status: string;
|
|
3097
|
+
outputContent: string | null;
|
|
3098
|
+
createdAt: Date;
|
|
3099
|
+
updatedAt: Date;
|
|
3100
|
+
} | undefined>;
|
|
3101
|
+
getPlaygroundResultById: (params: zod0.infer<zod0.ZodObject<{
|
|
3102
|
+
resultId: zod0.ZodString;
|
|
3103
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3104
|
+
error: string | null;
|
|
3105
|
+
id: string;
|
|
3106
|
+
promptTokens: number | null;
|
|
3107
|
+
completionTokens: number | null;
|
|
3108
|
+
totalTokens: number | null;
|
|
3109
|
+
cost: number | null;
|
|
3110
|
+
latencyMs: number | null;
|
|
3111
|
+
runId: string;
|
|
3112
|
+
columnId: string;
|
|
3113
|
+
datasetRecordId: string | null;
|
|
3114
|
+
inputVariables: Record<string, unknown>;
|
|
3115
|
+
status: string;
|
|
3116
|
+
outputContent: string | null;
|
|
3117
|
+
createdAt: Date;
|
|
3118
|
+
updatedAt: Date;
|
|
3119
|
+
} | undefined>;
|
|
3120
|
+
listPlaygroundResults: (params: zod0.infer<zod0.ZodObject<{
|
|
3121
|
+
runId: zod0.ZodString;
|
|
3122
|
+
columnId: zod0.ZodOptional<zod0.ZodString>;
|
|
3123
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3124
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3125
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3126
|
+
error: string | null;
|
|
3127
|
+
id: string;
|
|
3128
|
+
promptTokens: number | null;
|
|
3129
|
+
completionTokens: number | null;
|
|
3130
|
+
totalTokens: number | null;
|
|
3131
|
+
cost: number | null;
|
|
3132
|
+
latencyMs: number | null;
|
|
3133
|
+
runId: string;
|
|
3134
|
+
columnId: string;
|
|
3135
|
+
datasetRecordId: string | null;
|
|
3136
|
+
inputVariables: Record<string, unknown>;
|
|
3137
|
+
status: string;
|
|
3138
|
+
outputContent: string | null;
|
|
3139
|
+
createdAt: Date;
|
|
3140
|
+
updatedAt: Date;
|
|
3141
|
+
}[]>;
|
|
3142
|
+
deletePlaygroundResultsByRunId: (params: zod0.infer<zod0.ZodObject<{
|
|
3143
|
+
runId: zod0.ZodString;
|
|
3144
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3145
|
+
error: string | null;
|
|
3146
|
+
id: string;
|
|
3147
|
+
promptTokens: number | null;
|
|
3148
|
+
completionTokens: number | null;
|
|
3149
|
+
totalTokens: number | null;
|
|
3150
|
+
cost: number | null;
|
|
3151
|
+
latencyMs: number | null;
|
|
3152
|
+
runId: string;
|
|
3153
|
+
columnId: string;
|
|
3154
|
+
datasetRecordId: string | null;
|
|
3155
|
+
inputVariables: Record<string, unknown>;
|
|
3156
|
+
status: string;
|
|
3157
|
+
outputContent: string | null;
|
|
3158
|
+
createdAt: Date;
|
|
3159
|
+
updatedAt: Date;
|
|
3160
|
+
}[]>;
|
|
3161
|
+
countPlaygroundResults: (runId: string) => Promise<number>;
|
|
3162
|
+
countCompletedPlaygroundResults: (runId: string) => Promise<number>;
|
|
3163
|
+
createNewPlayground: (params: zod0.infer<zod0.ZodObject<{
|
|
3164
|
+
name: zod0.ZodString;
|
|
3165
|
+
datasetId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3166
|
+
columns: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodArray<zod0.ZodObject<{
|
|
3167
|
+
id: zod0.ZodString;
|
|
3168
|
+
name: zod0.ZodString;
|
|
3169
|
+
position: zod0.ZodNumber;
|
|
3170
|
+
providerConfigId: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNull]>;
|
|
3171
|
+
modelName: zod0.ZodString;
|
|
3172
|
+
messages: zod0.ZodArray<zod0.ZodObject<{
|
|
3173
|
+
role: zod0.ZodEnum<{
|
|
3174
|
+
system: "system";
|
|
3175
|
+
user: "user";
|
|
3176
|
+
assistant: "assistant";
|
|
3177
|
+
}>;
|
|
3178
|
+
content: zod0.ZodString;
|
|
3179
|
+
}, better_auth0.$strip>>;
|
|
3180
|
+
temperature: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3181
|
+
maxTokens: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3182
|
+
topP: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3183
|
+
frequencyPenalty: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3184
|
+
presencePenalty: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3185
|
+
configId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3186
|
+
variantId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3187
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3188
|
+
}, better_auth0.$strip>>>>;
|
|
3189
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3190
|
+
name: string;
|
|
3191
|
+
id: string;
|
|
3192
|
+
datasetId: string | null;
|
|
3193
|
+
columns: {
|
|
3194
|
+
id: string;
|
|
3195
|
+
name: string;
|
|
3196
|
+
position: number;
|
|
3197
|
+
providerConfigId: string | null;
|
|
3198
|
+
modelName: string;
|
|
3199
|
+
messages: {
|
|
3200
|
+
role: "system" | "user" | "assistant";
|
|
3201
|
+
content: string;
|
|
3202
|
+
}[];
|
|
3203
|
+
temperature?: number | null | undefined;
|
|
3204
|
+
maxTokens?: number | null | undefined;
|
|
3205
|
+
topP?: number | null | undefined;
|
|
3206
|
+
frequencyPenalty?: number | null | undefined;
|
|
3207
|
+
presencePenalty?: number | null | undefined;
|
|
3208
|
+
configId?: string | null | undefined;
|
|
3209
|
+
variantId?: string | null | undefined;
|
|
3210
|
+
variantVersionId?: string | null | undefined;
|
|
3211
|
+
}[] | null;
|
|
3212
|
+
createdAt: Date;
|
|
3213
|
+
updatedAt: Date;
|
|
3214
|
+
} | undefined>;
|
|
3215
|
+
updatePlayground: (params: zod0.infer<zod0.ZodObject<{
|
|
3216
|
+
playgroundId: zod0.ZodUUID;
|
|
3217
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
3218
|
+
datasetId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3219
|
+
columns: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodArray<zod0.ZodObject<{
|
|
3220
|
+
id: zod0.ZodString;
|
|
3221
|
+
name: zod0.ZodString;
|
|
3222
|
+
position: zod0.ZodNumber;
|
|
3223
|
+
providerConfigId: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNull]>;
|
|
3224
|
+
modelName: zod0.ZodString;
|
|
3225
|
+
messages: zod0.ZodArray<zod0.ZodObject<{
|
|
3226
|
+
role: zod0.ZodEnum<{
|
|
3227
|
+
system: "system";
|
|
3228
|
+
user: "user";
|
|
3229
|
+
assistant: "assistant";
|
|
3230
|
+
}>;
|
|
3231
|
+
content: zod0.ZodString;
|
|
3232
|
+
}, better_auth0.$strip>>;
|
|
3233
|
+
temperature: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3234
|
+
maxTokens: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3235
|
+
topP: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3236
|
+
frequencyPenalty: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3237
|
+
presencePenalty: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
3238
|
+
configId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3239
|
+
variantId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3240
|
+
variantVersionId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3241
|
+
}, better_auth0.$strip>>>>;
|
|
3242
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3243
|
+
name: string;
|
|
3244
|
+
id: string;
|
|
3245
|
+
datasetId: string | null;
|
|
3246
|
+
columns: {
|
|
3247
|
+
id: string;
|
|
3248
|
+
name: string;
|
|
3249
|
+
position: number;
|
|
3250
|
+
providerConfigId: string | null;
|
|
3251
|
+
modelName: string;
|
|
3252
|
+
messages: {
|
|
3253
|
+
role: "system" | "user" | "assistant";
|
|
3254
|
+
content: string;
|
|
3255
|
+
}[];
|
|
3256
|
+
temperature?: number | null | undefined;
|
|
3257
|
+
maxTokens?: number | null | undefined;
|
|
3258
|
+
topP?: number | null | undefined;
|
|
3259
|
+
frequencyPenalty?: number | null | undefined;
|
|
3260
|
+
presencePenalty?: number | null | undefined;
|
|
3261
|
+
configId?: string | null | undefined;
|
|
3262
|
+
variantId?: string | null | undefined;
|
|
3263
|
+
variantVersionId?: string | null | undefined;
|
|
3264
|
+
}[] | null;
|
|
3265
|
+
createdAt: Date;
|
|
3266
|
+
updatedAt: Date;
|
|
3267
|
+
} | undefined>;
|
|
3268
|
+
getPlaygroundById: (params: zod0.infer<zod0.ZodObject<{
|
|
3269
|
+
playgroundId: zod0.ZodUUID;
|
|
3270
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3271
|
+
name: string;
|
|
3272
|
+
id: string;
|
|
3273
|
+
datasetId: string | null;
|
|
3274
|
+
columns: {
|
|
3275
|
+
id: string;
|
|
3276
|
+
name: string;
|
|
3277
|
+
position: number;
|
|
3278
|
+
providerConfigId: string | null;
|
|
3279
|
+
modelName: string;
|
|
3280
|
+
messages: {
|
|
3281
|
+
role: "system" | "user" | "assistant";
|
|
3282
|
+
content: string;
|
|
3283
|
+
}[];
|
|
3284
|
+
temperature?: number | null | undefined;
|
|
3285
|
+
maxTokens?: number | null | undefined;
|
|
3286
|
+
topP?: number | null | undefined;
|
|
3287
|
+
frequencyPenalty?: number | null | undefined;
|
|
3288
|
+
presencePenalty?: number | null | undefined;
|
|
3289
|
+
configId?: string | null | undefined;
|
|
3290
|
+
variantId?: string | null | undefined;
|
|
3291
|
+
variantVersionId?: string | null | undefined;
|
|
3292
|
+
}[] | null;
|
|
3293
|
+
createdAt: Date;
|
|
3294
|
+
updatedAt: Date;
|
|
3295
|
+
} | undefined>;
|
|
3296
|
+
deletePlayground: (params: zod0.infer<zod0.ZodObject<{
|
|
3297
|
+
playgroundId: zod0.ZodUUID;
|
|
3298
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3299
|
+
name: string;
|
|
3300
|
+
id: string;
|
|
3301
|
+
datasetId: string | null;
|
|
3302
|
+
columns: {
|
|
3303
|
+
id: string;
|
|
3304
|
+
name: string;
|
|
3305
|
+
position: number;
|
|
3306
|
+
providerConfigId: string | null;
|
|
3307
|
+
modelName: string;
|
|
3308
|
+
messages: {
|
|
3309
|
+
role: "system" | "user" | "assistant";
|
|
3310
|
+
content: string;
|
|
3311
|
+
}[];
|
|
3312
|
+
temperature?: number | null | undefined;
|
|
3313
|
+
maxTokens?: number | null | undefined;
|
|
3314
|
+
topP?: number | null | undefined;
|
|
3315
|
+
frequencyPenalty?: number | null | undefined;
|
|
3316
|
+
presencePenalty?: number | null | undefined;
|
|
3317
|
+
configId?: string | null | undefined;
|
|
3318
|
+
variantId?: string | null | undefined;
|
|
3319
|
+
variantVersionId?: string | null | undefined;
|
|
3320
|
+
}[] | null;
|
|
3321
|
+
createdAt: Date;
|
|
3322
|
+
updatedAt: Date;
|
|
3323
|
+
} | undefined>;
|
|
3324
|
+
listPlaygrounds: (params?: zod0.infer<zod0.ZodObject<{
|
|
3325
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3326
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3327
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3328
|
+
name: string;
|
|
3329
|
+
id: string;
|
|
3330
|
+
datasetId: string | null;
|
|
3331
|
+
columns: {
|
|
3332
|
+
id: string;
|
|
3333
|
+
name: string;
|
|
3334
|
+
position: number;
|
|
3335
|
+
providerConfigId: string | null;
|
|
3336
|
+
modelName: string;
|
|
3337
|
+
messages: {
|
|
3338
|
+
role: "system" | "user" | "assistant";
|
|
3339
|
+
content: string;
|
|
3340
|
+
}[];
|
|
3341
|
+
temperature?: number | null | undefined;
|
|
3342
|
+
maxTokens?: number | null | undefined;
|
|
3343
|
+
topP?: number | null | undefined;
|
|
3344
|
+
frequencyPenalty?: number | null | undefined;
|
|
3345
|
+
presencePenalty?: number | null | undefined;
|
|
3346
|
+
configId?: string | null | undefined;
|
|
3347
|
+
variantId?: string | null | undefined;
|
|
3348
|
+
variantVersionId?: string | null | undefined;
|
|
3349
|
+
}[] | null;
|
|
3350
|
+
createdAt: Date;
|
|
3351
|
+
updatedAt: Date;
|
|
3352
|
+
}[]>;
|
|
3353
|
+
countPlaygrounds: () => Promise<number>;
|
|
2449
3354
|
batchInsertRequests: (requests: LLMRequestInsert[]) => Promise<{
|
|
2450
3355
|
count: number;
|
|
2451
3356
|
}>;
|
|
@@ -2956,6 +3861,184 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
2956
3861
|
updatedAt: Date;
|
|
2957
3862
|
}[]>;
|
|
2958
3863
|
countEnvironments: () => Promise<number>;
|
|
3864
|
+
createDataset: (params: zod0.infer<zod0.ZodObject<{
|
|
3865
|
+
name: zod0.ZodString;
|
|
3866
|
+
description: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3867
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3868
|
+
name: string;
|
|
3869
|
+
id: string;
|
|
3870
|
+
description: string | null;
|
|
3871
|
+
createdAt: Date;
|
|
3872
|
+
updatedAt: Date;
|
|
3873
|
+
recordCount: number;
|
|
3874
|
+
latestVersionNumber: number;
|
|
3875
|
+
} | undefined>;
|
|
3876
|
+
updateDataset: (params: zod0.infer<zod0.ZodObject<{
|
|
3877
|
+
datasetId: zod0.ZodString;
|
|
3878
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
3879
|
+
description: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3880
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3881
|
+
name: string;
|
|
3882
|
+
id: string;
|
|
3883
|
+
description: string | null;
|
|
3884
|
+
createdAt: Date;
|
|
3885
|
+
updatedAt: Date;
|
|
3886
|
+
recordCount: number;
|
|
3887
|
+
latestVersionNumber: number;
|
|
3888
|
+
} | undefined>;
|
|
3889
|
+
getDatasetById: (params: zod0.infer<zod0.ZodObject<{
|
|
3890
|
+
datasetId: zod0.ZodString;
|
|
3891
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3892
|
+
name: string;
|
|
3893
|
+
id: string;
|
|
3894
|
+
description: string | null;
|
|
3895
|
+
createdAt: Date;
|
|
3896
|
+
updatedAt: Date;
|
|
3897
|
+
recordCount: number;
|
|
3898
|
+
latestVersionNumber: number;
|
|
3899
|
+
} | undefined>;
|
|
3900
|
+
deleteDataset: (params: zod0.infer<zod0.ZodObject<{
|
|
3901
|
+
datasetId: zod0.ZodString;
|
|
3902
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3903
|
+
name: string;
|
|
3904
|
+
id: string;
|
|
3905
|
+
description: string | null;
|
|
3906
|
+
createdAt: Date;
|
|
3907
|
+
updatedAt: Date;
|
|
3908
|
+
recordCount: number;
|
|
3909
|
+
latestVersionNumber: number;
|
|
3910
|
+
} | undefined>;
|
|
3911
|
+
listDatasets: (params?: zod0.infer<zod0.ZodObject<{
|
|
3912
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3913
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3914
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3915
|
+
name: string;
|
|
3916
|
+
id: string;
|
|
3917
|
+
description: string | null;
|
|
3918
|
+
createdAt: Date;
|
|
3919
|
+
updatedAt: Date;
|
|
3920
|
+
recordCount: number;
|
|
3921
|
+
latestVersionNumber: number;
|
|
3922
|
+
}[]>;
|
|
3923
|
+
countDatasets: () => Promise<number>;
|
|
3924
|
+
createRecord: (params: zod0.infer<zod0.ZodObject<{
|
|
3925
|
+
datasetId: zod0.ZodString;
|
|
3926
|
+
input: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
3927
|
+
expected: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
3928
|
+
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
3929
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3930
|
+
input: Record<string, unknown>;
|
|
3931
|
+
id: string;
|
|
3932
|
+
datasetId: string;
|
|
3933
|
+
expected: Record<string, unknown> | null;
|
|
3934
|
+
metadata: Record<string, unknown>;
|
|
3935
|
+
createdAt: Date;
|
|
3936
|
+
updatedAt: Date;
|
|
3937
|
+
} | undefined>;
|
|
3938
|
+
updateRecord: (params: zod0.infer<zod0.ZodObject<{
|
|
3939
|
+
recordId: zod0.ZodString;
|
|
3940
|
+
input: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
3941
|
+
expected: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
3942
|
+
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
3943
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3944
|
+
input: Record<string, unknown>;
|
|
3945
|
+
id: string;
|
|
3946
|
+
datasetId: string;
|
|
3947
|
+
expected: Record<string, unknown> | null;
|
|
3948
|
+
metadata: Record<string, unknown>;
|
|
3949
|
+
createdAt: Date;
|
|
3950
|
+
updatedAt: Date;
|
|
3951
|
+
} | undefined>;
|
|
3952
|
+
deleteRecord: (params: zod0.infer<zod0.ZodObject<{
|
|
3953
|
+
recordId: zod0.ZodString;
|
|
3954
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3955
|
+
input: Record<string, unknown>;
|
|
3956
|
+
id: string;
|
|
3957
|
+
datasetId: string;
|
|
3958
|
+
expected: Record<string, unknown> | null;
|
|
3959
|
+
metadata: Record<string, unknown>;
|
|
3960
|
+
createdAt: Date;
|
|
3961
|
+
updatedAt: Date;
|
|
3962
|
+
} | undefined>;
|
|
3963
|
+
listRecords: (params: zod0.infer<zod0.ZodObject<{
|
|
3964
|
+
datasetId: zod0.ZodString;
|
|
3965
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3966
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
3967
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3968
|
+
input: Record<string, unknown>;
|
|
3969
|
+
id: string;
|
|
3970
|
+
datasetId: string;
|
|
3971
|
+
expected: Record<string, unknown> | null;
|
|
3972
|
+
metadata: Record<string, unknown>;
|
|
3973
|
+
createdAt: Date;
|
|
3974
|
+
updatedAt: Date;
|
|
3975
|
+
}[]>;
|
|
3976
|
+
getRecordById: (recordId: string) => Promise<{
|
|
3977
|
+
input: Record<string, unknown>;
|
|
3978
|
+
id: string;
|
|
3979
|
+
datasetId: string;
|
|
3980
|
+
expected: Record<string, unknown> | null;
|
|
3981
|
+
metadata: Record<string, unknown>;
|
|
3982
|
+
createdAt: Date;
|
|
3983
|
+
updatedAt: Date;
|
|
3984
|
+
} | undefined>;
|
|
3985
|
+
createVersion: (params: zod0.infer<zod0.ZodObject<{
|
|
3986
|
+
datasetId: zod0.ZodString;
|
|
3987
|
+
name: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3988
|
+
description: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
3989
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
3990
|
+
name: string | null;
|
|
3991
|
+
id: string;
|
|
3992
|
+
description: string | null;
|
|
3993
|
+
datasetId: string;
|
|
3994
|
+
createdAt: Date;
|
|
3995
|
+
updatedAt: Date;
|
|
3996
|
+
recordCount: number;
|
|
3997
|
+
versionNumber: number;
|
|
3998
|
+
snapshotHash: string;
|
|
3999
|
+
} | undefined>;
|
|
4000
|
+
getVersionById: (params: zod0.infer<zod0.ZodObject<{
|
|
4001
|
+
versionId: zod0.ZodString;
|
|
4002
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
4003
|
+
name: string | null;
|
|
4004
|
+
id: string;
|
|
4005
|
+
description: string | null;
|
|
4006
|
+
datasetId: string;
|
|
4007
|
+
createdAt: Date;
|
|
4008
|
+
updatedAt: Date;
|
|
4009
|
+
recordCount: number;
|
|
4010
|
+
versionNumber: number;
|
|
4011
|
+
snapshotHash: string;
|
|
4012
|
+
} | undefined>;
|
|
4013
|
+
listVersions: (params: zod0.infer<zod0.ZodObject<{
|
|
4014
|
+
datasetId: zod0.ZodString;
|
|
4015
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
4016
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
4017
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
4018
|
+
name: string | null;
|
|
4019
|
+
id: string;
|
|
4020
|
+
description: string | null;
|
|
4021
|
+
datasetId: string;
|
|
4022
|
+
createdAt: Date;
|
|
4023
|
+
updatedAt: Date;
|
|
4024
|
+
recordCount: number;
|
|
4025
|
+
versionNumber: number;
|
|
4026
|
+
snapshotHash: string;
|
|
4027
|
+
}[]>;
|
|
4028
|
+
getVersionRecords: (params: zod0.infer<zod0.ZodObject<{
|
|
4029
|
+
versionId: zod0.ZodString;
|
|
4030
|
+
limit: zod0.ZodOptional<zod0.ZodNumber>;
|
|
4031
|
+
offset: zod0.ZodOptional<zod0.ZodNumber>;
|
|
4032
|
+
}, better_auth0.$strip>>) => Promise<{
|
|
4033
|
+
input: Record<string, unknown>;
|
|
4034
|
+
id: string;
|
|
4035
|
+
datasetId: string;
|
|
4036
|
+
expected: Record<string, unknown> | null;
|
|
4037
|
+
metadata: Record<string, unknown>;
|
|
4038
|
+
createdAt: Date;
|
|
4039
|
+
updatedAt: Date;
|
|
4040
|
+
position: number;
|
|
4041
|
+
}[]>;
|
|
2959
4042
|
createConfigVariant: (params: zod0.infer<zod0.ZodObject<{
|
|
2960
4043
|
configId: zod0.ZodString;
|
|
2961
4044
|
variantId: zod0.ZodString;
|
|
@@ -3169,6 +4252,7 @@ declare const createDataLayer: (db: Kysely<Database>) => Promise<{
|
|
|
3169
4252
|
provider: string | null;
|
|
3170
4253
|
modelName: string | null;
|
|
3171
4254
|
jsonData: Record<string, unknown> | null;
|
|
4255
|
+
variantVersionId: string | null;
|
|
3172
4256
|
variantName: string | null;
|
|
3173
4257
|
id: string;
|
|
3174
4258
|
name: string | undefined;
|
|
@@ -3596,4 +4680,4 @@ declare class ManifestRouter {
|
|
|
3596
4680
|
routeWithWeights(configIdOrSlug: string, environmentId: string, context?: RoutingContext): RoutingResult | null;
|
|
3597
4681
|
}
|
|
3598
4682
|
//#endregion
|
|
3599
|
-
export { type AnthropicProviderConfig, type AnyProviderConfig, AuthClientDatabaseConfig, AuthClientOptions, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, Config, ConfigVariant, type ConfigVariantsTable, type ConfigsTable, type CortexProviderConfig, CostResult, type Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, type EnvironmentSecretsTable, type EnvironmentsTable, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GatewayManifest, type GoogleProviderConfig, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, type HuggingFaceProviderConfig, Insertable, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMRequest, type LLMRequestInsert, LLMRequestsTable, MS, ManifestBuilder, type ManifestConfig, type ManifestEnvironment, type ManifestGuardrail, type ManifestProviderGuardrailOverride, ManifestRouter, ManifestService, type ManifestTargetingRule, type ManifestVariantVersion, MemoryCacheBackend, MemoryCacheConfig, MigrationOptions, MigrationResult, type MistralAIProviderConfig, ModelPricing, ModelsDevPricingProvider, type OpenAIProviderConfig, type OracleProviderConfig, Prettify, PricingProvider, ProviderConfig, type ProviderConfigMap, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, type ProvidersConfig, type RoutingContext, type RoutingResult, SCHEMA_METADATA, type SagemakerProviderConfig, Selectable, type StabilityAIProviderConfig, SupportedProviders, type TableName, TargetingRule, type TargetingRulesTable, Updateable, UsageData, type ValidatedLLMOpsConfig, Variant, VariantJsonData, VariantVersion, VariantVersionsTable, type VariantsTable, type VertexAIProviderConfig, type WorkersAIProviderConfig, WorkspaceSettings, WorkspaceSettingsTable, calculateCost, chatCompletionCreateParamsBaseSchema, configVariantsSchema, configsSchema, createDataLayer, createDatabase, createDatabaseFromConnection, createGuardrailConfigsDataLayer, createLLMRequestsDataLayer, createNeonDialect, createProviderConfigsDataLayer, createProviderGuardrailOverridesDataLayer, createWorkspaceSettingsDataLayer, detectDatabaseType, dollarsToMicroDollars, environmentSecretsSchema, environmentsSchema, executeWithSchema, formatCost, gateway, generateId, getAuthClientOptions, getDefaultPricingProvider, getMigrations, guardrailConfigsSchema, llmRequestsSchema, llmopsConfigSchema, logger, matchType, microDollarsToDollars, parsePartialTableData, parseTableData, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
4683
|
+
export { type AnthropicProviderConfig, type AnyProviderConfig, AuthClientDatabaseConfig, AuthClientOptions, type AzureAIProviderConfig, type AzureOpenAIProviderConfig, BaseCacheConfig, type BaseProviderConfig, type BedrockProviderConfig, CacheBackend, CacheBackendType, CacheConfig, CacheEntry, CacheOptions, CacheService, CacheStats, ChatCompletionCreateParamsBase, Config, ConfigVariant, type ConfigVariantsTable, type ConfigsTable, type CortexProviderConfig, CostResult, type Database, DatabaseConnection, DatabaseOptions, DatabaseType, Dataset, DatasetRecord, DatasetRecordsTable, DatasetVersion, DatasetVersionRecord, DatasetVersionRecordsTable, DatasetVersionsTable, DatasetsTable, Environment, EnvironmentSecret, type EnvironmentSecretsTable, type EnvironmentsTable, FileCacheBackend, FileCacheConfig, type FireworksAIProviderConfig, type GatewayManifest, type GoogleProviderConfig, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, type HuggingFaceProviderConfig, Insertable, LLMOpsClient, LLMOpsConfig, type LLMOpsConfigInput, LLMRequest, type LLMRequestInsert, LLMRequestsTable, MS, ManifestBuilder, type ManifestConfig, type ManifestEnvironment, type ManifestGuardrail, type ManifestProviderGuardrailOverride, ManifestRouter, ManifestService, type ManifestTargetingRule, type ManifestVariantVersion, MemoryCacheBackend, MemoryCacheConfig, MigrationOptions, MigrationResult, type MistralAIProviderConfig, ModelPricing, ModelsDevPricingProvider, type OpenAIProviderConfig, type OracleProviderConfig, Playground, type PlaygroundColumn, type PlaygroundResult, PlaygroundResultsTable, type PlaygroundRun, PlaygroundRunsTable, PlaygroundsTable, Prettify, PricingProvider, ProviderConfig, type ProviderConfigMap, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, type ProvidersConfig, type RoutingContext, type RoutingResult, SCHEMA_METADATA, type SagemakerProviderConfig, Selectable, type StabilityAIProviderConfig, SupportedProviders, type TableName, TargetingRule, type TargetingRulesTable, Updateable, UsageData, type ValidatedLLMOpsConfig, Variant, VariantJsonData, VariantVersion, VariantVersionsTable, type VariantsTable, type VertexAIProviderConfig, type WorkersAIProviderConfig, WorkspaceSettings, WorkspaceSettingsTable, calculateCost, chatCompletionCreateParamsBaseSchema, configVariantsSchema, configsSchema, createDataLayer, createDatabase, createDatabaseFromConnection, createDatasetsDataLayer, createGuardrailConfigsDataLayer, createLLMRequestsDataLayer, createNeonDialect, createPlaygroundResultsDataLayer, createPlaygroundRunsDataLayer, createProviderConfigsDataLayer, createProviderGuardrailOverridesDataLayer, createWorkspaceSettingsDataLayer, datasetRecordsSchema, datasetVersionRecordsSchema, datasetVersionsSchema, datasetsSchema, detectDatabaseType, dollarsToMicroDollars, environmentSecretsSchema, environmentsSchema, executeWithSchema, formatCost, gateway, generateId, getAuthClientOptions, getDefaultPricingProvider, getMigrations, guardrailConfigsSchema, llmRequestsSchema, llmopsConfigSchema, logger, matchType, microDollarsToDollars, parsePartialTableData, parseTableData, playgroundColumnSchema, playgroundResultsSchema, playgroundRunsSchema, playgroundsSchema, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validateLLMOpsConfig, validatePartialTableData, validateTableData, variantJsonDataSchema, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|