@llmops/core 0.4.8-beta.3 → 0.4.8-beta.5
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-lNniX_lj.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-DX_QaIkx.mjs → db-BN99c_b5.mjs} +225 -1
- package/dist/{db-B9jJgYNw.cjs → db-CEt1ZD2V.cjs} +246 -4
- package/dist/{index-LRmy4sz9.d.mts → index-Bk_flDhH.d.cts} +82 -50
- package/dist/{index-BtSgIKup.d.cts → index-BvrZuRon.d.mts} +82 -50
- package/dist/index.cjs +5 -2
- package/dist/index.d.cts +270 -270
- package/dist/index.d.mts +270 -270
- package/dist/index.mjs +2 -2
- package/dist/{neon-dialect-BBGTCnek.cjs → neon-dialect-C9_0GrsB.cjs} +1 -1
- package/dist/{neon-dialect-BBWePgOv.cjs → neon-dialect-sUVNvVYh.cjs} +1 -1
- package/dist/{node-sqlite-dialect-DLKHH0RE.cjs → node-sqlite-dialect-BPGejxOC.cjs} +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
-
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
3
2
|
import * as zod0 from "zod";
|
|
4
3
|
import { z } from "zod";
|
|
4
|
+
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
5
5
|
|
|
6
6
|
//#region src/db/schema.d.ts
|
|
7
7
|
declare const configsSchema: z.ZodObject<{
|
|
@@ -1900,6 +1900,38 @@ declare const schemas: {
|
|
|
1900
1900
|
}, z.core.$strip>;
|
|
1901
1901
|
};
|
|
1902
1902
|
//#endregion
|
|
1903
|
+
//#region src/db/schema-sql.d.ts
|
|
1904
|
+
/**
|
|
1905
|
+
* Idempotent SQL Schema Generator
|
|
1906
|
+
*
|
|
1907
|
+
* Generates fully idempotent PostgreSQL schema SQL that can be run on every
|
|
1908
|
+
* server restart. Works in edge environments (no file system access needed).
|
|
1909
|
+
*
|
|
1910
|
+
* This is the programmatic version of the generate-schema-sql.ts script.
|
|
1911
|
+
*/
|
|
1912
|
+
/**
|
|
1913
|
+
* Generate idempotent PostgreSQL schema SQL
|
|
1914
|
+
*
|
|
1915
|
+
* @param schemaName - Optional PostgreSQL schema name (e.g., 'llmops').
|
|
1916
|
+
* If not provided, tables are created in the current search_path.
|
|
1917
|
+
* @returns SQL string that can be executed to create/update the schema
|
|
1918
|
+
*/
|
|
1919
|
+
declare function generatePostgresSchemaSQL(schemaName?: string): string;
|
|
1920
|
+
/**
|
|
1921
|
+
* Execute the schema SQL using a Neon SQL function
|
|
1922
|
+
*
|
|
1923
|
+
* @param sql - Neon sql function (from `neon()` or passed connection)
|
|
1924
|
+
* @param schemaName - Optional PostgreSQL schema name
|
|
1925
|
+
*/
|
|
1926
|
+
declare function runSchemaSQL(sql: (query: string) => Promise<unknown>, schemaName?: string): Promise<void>;
|
|
1927
|
+
/**
|
|
1928
|
+
* Create a Neon SQL function from various connection types
|
|
1929
|
+
*
|
|
1930
|
+
* @param rawConnection - neon() function, connection string, or undefined (uses env vars)
|
|
1931
|
+
* @returns SQL function that can be used with runSchemaSQL, or null if unable to create
|
|
1932
|
+
*/
|
|
1933
|
+
declare function createNeonSqlFunction(rawConnection: unknown): Promise<((query: string) => Promise<unknown>) | null>;
|
|
1934
|
+
//#endregion
|
|
1903
1935
|
//#region src/db/validation.d.ts
|
|
1904
1936
|
/**
|
|
1905
1937
|
* Validate data against table schema
|
|
@@ -2083,6 +2115,22 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2083
2115
|
id: string;
|
|
2084
2116
|
createdAt: Date;
|
|
2085
2117
|
updatedAt: Date;
|
|
2118
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2119
|
+
providerConfigId: string;
|
|
2120
|
+
guardrailConfigId: string;
|
|
2121
|
+
enabled: boolean;
|
|
2122
|
+
id: string;
|
|
2123
|
+
createdAt: Date;
|
|
2124
|
+
updatedAt: Date;
|
|
2125
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2126
|
+
}> | zod0.ZodSafeParseError<{
|
|
2127
|
+
providerConfigId: string;
|
|
2128
|
+
guardrailConfigId: string;
|
|
2129
|
+
enabled: boolean;
|
|
2130
|
+
id: string;
|
|
2131
|
+
createdAt: Date;
|
|
2132
|
+
updatedAt: Date;
|
|
2133
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2086
2134
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2087
2135
|
datasetId: string;
|
|
2088
2136
|
versionNumber: number;
|
|
@@ -2133,22 +2181,6 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2133
2181
|
id: string;
|
|
2134
2182
|
createdAt: Date;
|
|
2135
2183
|
updatedAt: Date;
|
|
2136
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2137
|
-
providerConfigId: string;
|
|
2138
|
-
guardrailConfigId: string;
|
|
2139
|
-
enabled: boolean;
|
|
2140
|
-
id: string;
|
|
2141
|
-
createdAt: Date;
|
|
2142
|
-
updatedAt: Date;
|
|
2143
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2144
|
-
}> | zod0.ZodSafeParseError<{
|
|
2145
|
-
providerConfigId: string;
|
|
2146
|
-
guardrailConfigId: string;
|
|
2147
|
-
enabled: boolean;
|
|
2148
|
-
id: string;
|
|
2149
|
-
createdAt: Date;
|
|
2150
|
-
updatedAt: Date;
|
|
2151
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2152
2184
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2153
2185
|
requestId: string;
|
|
2154
2186
|
provider: string;
|
|
@@ -2389,6 +2421,22 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2389
2421
|
id?: string | undefined;
|
|
2390
2422
|
createdAt?: Date | undefined;
|
|
2391
2423
|
updatedAt?: Date | undefined;
|
|
2424
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2425
|
+
providerConfigId?: string | undefined;
|
|
2426
|
+
guardrailConfigId?: string | undefined;
|
|
2427
|
+
enabled?: boolean | undefined;
|
|
2428
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2429
|
+
id?: string | undefined;
|
|
2430
|
+
createdAt?: Date | undefined;
|
|
2431
|
+
updatedAt?: Date | undefined;
|
|
2432
|
+
}> | zod0.ZodSafeParseError<{
|
|
2433
|
+
providerConfigId?: string | undefined;
|
|
2434
|
+
guardrailConfigId?: string | undefined;
|
|
2435
|
+
enabled?: boolean | undefined;
|
|
2436
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2437
|
+
id?: string | undefined;
|
|
2438
|
+
createdAt?: Date | undefined;
|
|
2439
|
+
updatedAt?: Date | undefined;
|
|
2392
2440
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2393
2441
|
datasetId?: string | undefined;
|
|
2394
2442
|
versionNumber?: number | undefined;
|
|
@@ -2439,22 +2487,6 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2439
2487
|
id?: string | undefined;
|
|
2440
2488
|
createdAt?: Date | undefined;
|
|
2441
2489
|
updatedAt?: Date | undefined;
|
|
2442
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2443
|
-
providerConfigId?: string | undefined;
|
|
2444
|
-
guardrailConfigId?: string | undefined;
|
|
2445
|
-
enabled?: boolean | undefined;
|
|
2446
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2447
|
-
id?: string | undefined;
|
|
2448
|
-
createdAt?: Date | undefined;
|
|
2449
|
-
updatedAt?: Date | undefined;
|
|
2450
|
-
}> | zod0.ZodSafeParseError<{
|
|
2451
|
-
providerConfigId?: string | undefined;
|
|
2452
|
-
guardrailConfigId?: string | undefined;
|
|
2453
|
-
enabled?: boolean | undefined;
|
|
2454
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2455
|
-
id?: string | undefined;
|
|
2456
|
-
createdAt?: Date | undefined;
|
|
2457
|
-
updatedAt?: Date | undefined;
|
|
2458
2490
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2459
2491
|
requestId?: string | undefined;
|
|
2460
2492
|
configId?: string | null | undefined;
|
|
@@ -2618,6 +2650,14 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2618
2650
|
id: string;
|
|
2619
2651
|
createdAt: Date;
|
|
2620
2652
|
updatedAt: Date;
|
|
2653
|
+
} | {
|
|
2654
|
+
providerConfigId: string;
|
|
2655
|
+
guardrailConfigId: string;
|
|
2656
|
+
enabled: boolean;
|
|
2657
|
+
id: string;
|
|
2658
|
+
createdAt: Date;
|
|
2659
|
+
updatedAt: Date;
|
|
2660
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2621
2661
|
} | {
|
|
2622
2662
|
datasetId: string;
|
|
2623
2663
|
versionNumber: number;
|
|
@@ -2643,14 +2683,6 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2643
2683
|
id: string;
|
|
2644
2684
|
createdAt: Date;
|
|
2645
2685
|
updatedAt: Date;
|
|
2646
|
-
} | {
|
|
2647
|
-
providerConfigId: string;
|
|
2648
|
-
guardrailConfigId: string;
|
|
2649
|
-
enabled: boolean;
|
|
2650
|
-
id: string;
|
|
2651
|
-
createdAt: Date;
|
|
2652
|
-
updatedAt: Date;
|
|
2653
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2654
2686
|
} | {
|
|
2655
2687
|
requestId: string;
|
|
2656
2688
|
provider: string;
|
|
@@ -2773,6 +2805,14 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2773
2805
|
id?: string | undefined;
|
|
2774
2806
|
createdAt?: Date | undefined;
|
|
2775
2807
|
updatedAt?: Date | undefined;
|
|
2808
|
+
} | {
|
|
2809
|
+
providerConfigId?: string | undefined;
|
|
2810
|
+
guardrailConfigId?: string | undefined;
|
|
2811
|
+
enabled?: boolean | undefined;
|
|
2812
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2813
|
+
id?: string | undefined;
|
|
2814
|
+
createdAt?: Date | undefined;
|
|
2815
|
+
updatedAt?: Date | undefined;
|
|
2776
2816
|
} | {
|
|
2777
2817
|
datasetId?: string | undefined;
|
|
2778
2818
|
versionNumber?: number | undefined;
|
|
@@ -2798,14 +2838,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2798
2838
|
id?: string | undefined;
|
|
2799
2839
|
createdAt?: Date | undefined;
|
|
2800
2840
|
updatedAt?: Date | undefined;
|
|
2801
|
-
} | {
|
|
2802
|
-
providerConfigId?: string | undefined;
|
|
2803
|
-
guardrailConfigId?: string | undefined;
|
|
2804
|
-
enabled?: boolean | undefined;
|
|
2805
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2806
|
-
id?: string | undefined;
|
|
2807
|
-
createdAt?: Date | undefined;
|
|
2808
|
-
updatedAt?: Date | undefined;
|
|
2809
2841
|
} | {
|
|
2810
2842
|
requestId?: string | undefined;
|
|
2811
2843
|
configId?: string | null | undefined;
|
|
@@ -2957,4 +2989,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
2957
2989
|
*/
|
|
2958
2990
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
2959
2991
|
//#endregion
|
|
2960
|
-
export {
|
|
2992
|
+
export { ProviderConfigsTable as $, DatasetVersionRecord as A, schemas as At, GuardrailResult as B, ConfigVariantsTable as C, llmRequestsSchema as Ct, DatasetRecord as D, playgroundsSchema as Dt, Dataset as E, playgroundRunsSchema as Et, EnvironmentSecret as F, Playground as G, Insertable as H, EnvironmentSecretsTable as I, PlaygroundResultsTable as J, PlaygroundColumn as K, EnvironmentsTable as L, DatasetVersionsTable as M, variantVersionsSchema as Mt, DatasetsTable as N, variantsSchema as Nt, DatasetRecordsTable as O, providerConfigsSchema as Ot, Environment as P, workspaceSettingsSchema as Pt, ProviderConfig as Q, GuardrailConfig as R, ConfigVariant as S, guardrailConfigsSchema as St, Database as T, playgroundResultsSchema as Tt, LLMRequest as U, GuardrailResults as V, LLMRequestsTable as W, PlaygroundRunsTable as X, PlaygroundRun as Y, PlaygroundsTable as Z, validateTableData as _, datasetVersionRecordsSchema as _t, createDatabaseFromConnection as a, TargetingRule as at, runSchemaSQL as b, environmentSecretsSchema as bt, executeWithSchema as c, Variant as ct, getMigrations as d, VariantsTable as dt, ProviderGuardrailOverride as et, matchType as f, WorkspaceSettings as ft, validatePartialTableData as g, datasetRecordsSchema as gt, parseTableData as h, configsSchema as ht, createDatabase as i, TableName as it, DatasetVersionRecordsTable as j, targetingRulesSchema as jt, DatasetVersion as k, providerGuardrailOverridesSchema as kt, MigrationOptions as l, VariantVersion as lt, parsePartialTableData as m, configVariantsSchema as mt, DatabaseOptions as n, SCHEMA_METADATA as nt, detectDatabaseType as o, TargetingRulesTable as ot, runAutoMigrations as p, WorkspaceSettingsTable as pt, PlaygroundResult as q, DatabaseType as r, Selectable as rt, createNeonDialect as s, Updateable as st, DatabaseConnection as t, ProviderGuardrailOverridesTable as tt, MigrationResult as u, VariantVersionsTable as ut, createNeonSqlFunction as v, datasetVersionsSchema as vt, ConfigsTable as w, playgroundColumnSchema as wt, Config as x, environmentsSchema as xt, generatePostgresSchemaSQL as y, datasetsSchema as yt, GuardrailConfigsTable as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
+
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
2
3
|
import * as zod0 from "zod";
|
|
3
4
|
import { z } from "zod";
|
|
4
|
-
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
5
5
|
|
|
6
6
|
//#region src/db/schema.d.ts
|
|
7
7
|
declare const configsSchema: z.ZodObject<{
|
|
@@ -1900,6 +1900,38 @@ declare const schemas: {
|
|
|
1900
1900
|
}, z.core.$strip>;
|
|
1901
1901
|
};
|
|
1902
1902
|
//#endregion
|
|
1903
|
+
//#region src/db/schema-sql.d.ts
|
|
1904
|
+
/**
|
|
1905
|
+
* Idempotent SQL Schema Generator
|
|
1906
|
+
*
|
|
1907
|
+
* Generates fully idempotent PostgreSQL schema SQL that can be run on every
|
|
1908
|
+
* server restart. Works in edge environments (no file system access needed).
|
|
1909
|
+
*
|
|
1910
|
+
* This is the programmatic version of the generate-schema-sql.ts script.
|
|
1911
|
+
*/
|
|
1912
|
+
/**
|
|
1913
|
+
* Generate idempotent PostgreSQL schema SQL
|
|
1914
|
+
*
|
|
1915
|
+
* @param schemaName - Optional PostgreSQL schema name (e.g., 'llmops').
|
|
1916
|
+
* If not provided, tables are created in the current search_path.
|
|
1917
|
+
* @returns SQL string that can be executed to create/update the schema
|
|
1918
|
+
*/
|
|
1919
|
+
declare function generatePostgresSchemaSQL(schemaName?: string): string;
|
|
1920
|
+
/**
|
|
1921
|
+
* Execute the schema SQL using a Neon SQL function
|
|
1922
|
+
*
|
|
1923
|
+
* @param sql - Neon sql function (from `neon()` or passed connection)
|
|
1924
|
+
* @param schemaName - Optional PostgreSQL schema name
|
|
1925
|
+
*/
|
|
1926
|
+
declare function runSchemaSQL(sql: (query: string) => Promise<unknown>, schemaName?: string): Promise<void>;
|
|
1927
|
+
/**
|
|
1928
|
+
* Create a Neon SQL function from various connection types
|
|
1929
|
+
*
|
|
1930
|
+
* @param rawConnection - neon() function, connection string, or undefined (uses env vars)
|
|
1931
|
+
* @returns SQL function that can be used with runSchemaSQL, or null if unable to create
|
|
1932
|
+
*/
|
|
1933
|
+
declare function createNeonSqlFunction(rawConnection: unknown): Promise<((query: string) => Promise<unknown>) | null>;
|
|
1934
|
+
//#endregion
|
|
1903
1935
|
//#region src/db/validation.d.ts
|
|
1904
1936
|
/**
|
|
1905
1937
|
* Validate data against table schema
|
|
@@ -2083,6 +2115,22 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2083
2115
|
id: string;
|
|
2084
2116
|
createdAt: Date;
|
|
2085
2117
|
updatedAt: Date;
|
|
2118
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2119
|
+
providerConfigId: string;
|
|
2120
|
+
guardrailConfigId: string;
|
|
2121
|
+
enabled: boolean;
|
|
2122
|
+
id: string;
|
|
2123
|
+
createdAt: Date;
|
|
2124
|
+
updatedAt: Date;
|
|
2125
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2126
|
+
}> | zod0.ZodSafeParseError<{
|
|
2127
|
+
providerConfigId: string;
|
|
2128
|
+
guardrailConfigId: string;
|
|
2129
|
+
enabled: boolean;
|
|
2130
|
+
id: string;
|
|
2131
|
+
createdAt: Date;
|
|
2132
|
+
updatedAt: Date;
|
|
2133
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2086
2134
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2087
2135
|
datasetId: string;
|
|
2088
2136
|
versionNumber: number;
|
|
@@ -2133,22 +2181,6 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2133
2181
|
id: string;
|
|
2134
2182
|
createdAt: Date;
|
|
2135
2183
|
updatedAt: Date;
|
|
2136
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2137
|
-
providerConfigId: string;
|
|
2138
|
-
guardrailConfigId: string;
|
|
2139
|
-
enabled: boolean;
|
|
2140
|
-
id: string;
|
|
2141
|
-
createdAt: Date;
|
|
2142
|
-
updatedAt: Date;
|
|
2143
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2144
|
-
}> | zod0.ZodSafeParseError<{
|
|
2145
|
-
providerConfigId: string;
|
|
2146
|
-
guardrailConfigId: string;
|
|
2147
|
-
enabled: boolean;
|
|
2148
|
-
id: string;
|
|
2149
|
-
createdAt: Date;
|
|
2150
|
-
updatedAt: Date;
|
|
2151
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2152
2184
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2153
2185
|
requestId: string;
|
|
2154
2186
|
provider: string;
|
|
@@ -2389,6 +2421,22 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2389
2421
|
id?: string | undefined;
|
|
2390
2422
|
createdAt?: Date | undefined;
|
|
2391
2423
|
updatedAt?: Date | undefined;
|
|
2424
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
2425
|
+
providerConfigId?: string | undefined;
|
|
2426
|
+
guardrailConfigId?: string | undefined;
|
|
2427
|
+
enabled?: boolean | undefined;
|
|
2428
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2429
|
+
id?: string | undefined;
|
|
2430
|
+
createdAt?: Date | undefined;
|
|
2431
|
+
updatedAt?: Date | undefined;
|
|
2432
|
+
}> | zod0.ZodSafeParseError<{
|
|
2433
|
+
providerConfigId?: string | undefined;
|
|
2434
|
+
guardrailConfigId?: string | undefined;
|
|
2435
|
+
enabled?: boolean | undefined;
|
|
2436
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2437
|
+
id?: string | undefined;
|
|
2438
|
+
createdAt?: Date | undefined;
|
|
2439
|
+
updatedAt?: Date | undefined;
|
|
2392
2440
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2393
2441
|
datasetId?: string | undefined;
|
|
2394
2442
|
versionNumber?: number | undefined;
|
|
@@ -2439,22 +2487,6 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2439
2487
|
id?: string | undefined;
|
|
2440
2488
|
createdAt?: Date | undefined;
|
|
2441
2489
|
updatedAt?: Date | undefined;
|
|
2442
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2443
|
-
providerConfigId?: string | undefined;
|
|
2444
|
-
guardrailConfigId?: string | undefined;
|
|
2445
|
-
enabled?: boolean | undefined;
|
|
2446
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2447
|
-
id?: string | undefined;
|
|
2448
|
-
createdAt?: Date | undefined;
|
|
2449
|
-
updatedAt?: Date | undefined;
|
|
2450
|
-
}> | zod0.ZodSafeParseError<{
|
|
2451
|
-
providerConfigId?: string | undefined;
|
|
2452
|
-
guardrailConfigId?: string | undefined;
|
|
2453
|
-
enabled?: boolean | undefined;
|
|
2454
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2455
|
-
id?: string | undefined;
|
|
2456
|
-
createdAt?: Date | undefined;
|
|
2457
|
-
updatedAt?: Date | undefined;
|
|
2458
2490
|
}> | zod0.ZodSafeParseSuccess<{
|
|
2459
2491
|
requestId?: string | undefined;
|
|
2460
2492
|
configId?: string | null | undefined;
|
|
@@ -2618,6 +2650,14 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2618
2650
|
id: string;
|
|
2619
2651
|
createdAt: Date;
|
|
2620
2652
|
updatedAt: Date;
|
|
2653
|
+
} | {
|
|
2654
|
+
providerConfigId: string;
|
|
2655
|
+
guardrailConfigId: string;
|
|
2656
|
+
enabled: boolean;
|
|
2657
|
+
id: string;
|
|
2658
|
+
createdAt: Date;
|
|
2659
|
+
updatedAt: Date;
|
|
2660
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2621
2661
|
} | {
|
|
2622
2662
|
datasetId: string;
|
|
2623
2663
|
versionNumber: number;
|
|
@@ -2643,14 +2683,6 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2643
2683
|
id: string;
|
|
2644
2684
|
createdAt: Date;
|
|
2645
2685
|
updatedAt: Date;
|
|
2646
|
-
} | {
|
|
2647
|
-
providerConfigId: string;
|
|
2648
|
-
guardrailConfigId: string;
|
|
2649
|
-
enabled: boolean;
|
|
2650
|
-
id: string;
|
|
2651
|
-
createdAt: Date;
|
|
2652
|
-
updatedAt: Date;
|
|
2653
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2654
2686
|
} | {
|
|
2655
2687
|
requestId: string;
|
|
2656
2688
|
provider: string;
|
|
@@ -2773,6 +2805,14 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2773
2805
|
id?: string | undefined;
|
|
2774
2806
|
createdAt?: Date | undefined;
|
|
2775
2807
|
updatedAt?: Date | undefined;
|
|
2808
|
+
} | {
|
|
2809
|
+
providerConfigId?: string | undefined;
|
|
2810
|
+
guardrailConfigId?: string | undefined;
|
|
2811
|
+
enabled?: boolean | undefined;
|
|
2812
|
+
parameters?: Record<string, unknown> | null | undefined;
|
|
2813
|
+
id?: string | undefined;
|
|
2814
|
+
createdAt?: Date | undefined;
|
|
2815
|
+
updatedAt?: Date | undefined;
|
|
2776
2816
|
} | {
|
|
2777
2817
|
datasetId?: string | undefined;
|
|
2778
2818
|
versionNumber?: number | undefined;
|
|
@@ -2798,14 +2838,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2798
2838
|
id?: string | undefined;
|
|
2799
2839
|
createdAt?: Date | undefined;
|
|
2800
2840
|
updatedAt?: Date | undefined;
|
|
2801
|
-
} | {
|
|
2802
|
-
providerConfigId?: string | undefined;
|
|
2803
|
-
guardrailConfigId?: string | undefined;
|
|
2804
|
-
enabled?: boolean | undefined;
|
|
2805
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2806
|
-
id?: string | undefined;
|
|
2807
|
-
createdAt?: Date | undefined;
|
|
2808
|
-
updatedAt?: Date | undefined;
|
|
2809
2841
|
} | {
|
|
2810
2842
|
requestId?: string | undefined;
|
|
2811
2843
|
configId?: string | null | undefined;
|
|
@@ -2957,4 +2989,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
2957
2989
|
*/
|
|
2958
2990
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
2959
2991
|
//#endregion
|
|
2960
|
-
export {
|
|
2992
|
+
export { ProviderConfigsTable as $, DatasetVersionRecord as A, schemas as At, GuardrailResult as B, ConfigVariantsTable as C, llmRequestsSchema as Ct, DatasetRecord as D, playgroundsSchema as Dt, Dataset as E, playgroundRunsSchema as Et, EnvironmentSecret as F, Playground as G, Insertable as H, EnvironmentSecretsTable as I, PlaygroundResultsTable as J, PlaygroundColumn as K, EnvironmentsTable as L, DatasetVersionsTable as M, variantVersionsSchema as Mt, DatasetsTable as N, variantsSchema as Nt, DatasetRecordsTable as O, providerConfigsSchema as Ot, Environment as P, workspaceSettingsSchema as Pt, ProviderConfig as Q, GuardrailConfig as R, ConfigVariant as S, guardrailConfigsSchema as St, Database as T, playgroundResultsSchema as Tt, LLMRequest as U, GuardrailResults as V, LLMRequestsTable as W, PlaygroundRunsTable as X, PlaygroundRun as Y, PlaygroundsTable as Z, validateTableData as _, datasetVersionRecordsSchema as _t, createDatabaseFromConnection as a, TargetingRule as at, runSchemaSQL as b, environmentSecretsSchema as bt, executeWithSchema as c, Variant as ct, getMigrations as d, VariantsTable as dt, ProviderGuardrailOverride as et, matchType as f, WorkspaceSettings as ft, validatePartialTableData as g, datasetRecordsSchema as gt, parseTableData as h, configsSchema as ht, createDatabase as i, TableName as it, DatasetVersionRecordsTable as j, targetingRulesSchema as jt, DatasetVersion as k, providerGuardrailOverridesSchema as kt, MigrationOptions as l, VariantVersion as lt, parsePartialTableData as m, configVariantsSchema as mt, DatabaseOptions as n, SCHEMA_METADATA as nt, detectDatabaseType as o, TargetingRulesTable as ot, runAutoMigrations as p, WorkspaceSettingsTable as pt, PlaygroundResult as q, DatabaseType as r, Selectable as rt, createNeonDialect as s, Updateable as st, DatabaseConnection as t, ProviderGuardrailOverridesTable as tt, MigrationResult as u, VariantVersionsTable as ut, createNeonSqlFunction as v, datasetVersionsSchema as vt, ConfigsTable as w, playgroundColumnSchema as wt, Config as x, environmentsSchema as xt, generatePostgresSchemaSQL as y, datasetsSchema as yt, GuardrailConfigsTable as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_db = require('./db-
|
|
2
|
-
const require_neon_dialect = require('./neon-dialect-
|
|
1
|
+
const require_db = require('./db-CEt1ZD2V.cjs');
|
|
2
|
+
const require_neon_dialect = require('./neon-dialect-sUVNvVYh.cjs');
|
|
3
3
|
let __llmops_gateway = require("@llmops/gateway");
|
|
4
4
|
__llmops_gateway = require_db.__toESM(__llmops_gateway);
|
|
5
5
|
let kysely = require("kysely");
|
|
@@ -3764,6 +3764,7 @@ exports.createEnvironmentSecretDataLayer = createEnvironmentSecretDataLayer;
|
|
|
3764
3764
|
exports.createGuardrailConfigsDataLayer = createGuardrailConfigsDataLayer;
|
|
3765
3765
|
exports.createLLMRequestsDataLayer = createLLMRequestsDataLayer;
|
|
3766
3766
|
exports.createNeonDialect = require_neon_dialect.createNeonDialect;
|
|
3767
|
+
exports.createNeonSqlFunction = require_db.createNeonSqlFunction;
|
|
3767
3768
|
exports.createPlaygroundDataLayer = createPlaygroundDataLayer;
|
|
3768
3769
|
exports.createPlaygroundResultsDataLayer = createPlaygroundResultsDataLayer;
|
|
3769
3770
|
exports.createPlaygroundRunsDataLayer = createPlaygroundRunsDataLayer;
|
|
@@ -3790,6 +3791,7 @@ Object.defineProperty(exports, 'gateway', {
|
|
|
3790
3791
|
}
|
|
3791
3792
|
});
|
|
3792
3793
|
exports.generateId = generateId;
|
|
3794
|
+
exports.generatePostgresSchemaSQL = require_db.generatePostgresSchemaSQL;
|
|
3793
3795
|
exports.getAuthClientOptions = require_db.getAuthClientOptions;
|
|
3794
3796
|
exports.getDefaultPricingProvider = getDefaultPricingProvider;
|
|
3795
3797
|
exports.getMigrations = require_db.getMigrations;
|
|
@@ -3808,6 +3810,7 @@ exports.playgroundsSchema = require_db.playgroundsSchema;
|
|
|
3808
3810
|
exports.providerConfigsSchema = require_db.providerConfigsSchema;
|
|
3809
3811
|
exports.providerGuardrailOverridesSchema = require_db.providerGuardrailOverridesSchema;
|
|
3810
3812
|
exports.runAutoMigrations = require_db.runAutoMigrations;
|
|
3813
|
+
exports.runSchemaSQL = require_db.runSchemaSQL;
|
|
3811
3814
|
exports.schemas = require_db.schemas;
|
|
3812
3815
|
exports.targetingRulesSchema = require_db.targetingRulesSchema;
|
|
3813
3816
|
exports.validateLLMOpsConfig = validateLLMOpsConfig;
|