@llmops/core 0.2.11 → 0.2.12-beta.2

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.
@@ -1,4 +1,5 @@
1
- import { ColumnType, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
1
+ import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
2
+ import { NeonQueryFunction } from "@neondatabase/serverless";
2
3
  import * as zod497 from "zod";
3
4
  import { z } from "zod";
4
5
 
@@ -1358,7 +1359,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
1358
1359
  };
1359
1360
  //#endregion
1360
1361
  //#region src/db/migrations.d.ts
1361
- type DatabaseType$1 = 'postgres' | 'mysql' | 'sqlite' | 'mssql';
1362
1362
  /**
1363
1363
  * Options for migration operations
1364
1364
  */
@@ -1370,7 +1370,7 @@ interface MigrationOptions {
1370
1370
  schema?: string;
1371
1371
  rawConnection?: unknown;
1372
1372
  }
1373
- declare function matchType(columnDataType: string, fieldType: string, dbType: DatabaseType$1): boolean;
1373
+ declare function matchType(columnDataType: string, fieldType: string, dbType: DatabaseType): boolean;
1374
1374
  interface MigrationResult {
1375
1375
  toBeCreated: Array<{
1376
1376
  table: string;
@@ -1387,7 +1387,7 @@ interface MigrationResult {
1387
1387
  migrations: any[];
1388
1388
  needsMigration: boolean;
1389
1389
  }
1390
- declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType$1, options?: MigrationOptions): Promise<MigrationResult>;
1390
+ declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType, options?: MigrationOptions): Promise<MigrationResult>;
1391
1391
  /**
1392
1392
  * Run migrations if needed
1393
1393
  * @param db - Kysely database instance
@@ -1395,17 +1395,35 @@ declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType$1, opt
1395
1395
  * @param options - Migration options (schema, etc.)
1396
1396
  * @returns true if migrations were run, false otherwise
1397
1397
  */
1398
- declare function runAutoMigrations(db: Kysely<Database>, dbType: DatabaseType$1, options?: MigrationOptions): Promise<{
1398
+ declare function runAutoMigrations(db: Kysely<Database>, dbType: DatabaseType, options?: MigrationOptions): Promise<{
1399
1399
  ran: boolean;
1400
1400
  tables: string[];
1401
1401
  fields: string[];
1402
1402
  }>;
1403
1403
  //#endregion
1404
+ //#region src/db/neon-dialect.d.ts
1405
+ /**
1406
+ * Create a Neon serverless dialect for Kysely
1407
+ *
1408
+ * @param neonInstance - Neon database query function
1409
+ * @returns Kysely dialect configured for Neon serverless
1410
+ */
1411
+ declare function createNeonDialect(neonInstance: NeonQueryFunction<false, false>): any;
1412
+ /**
1413
+ * Execute a query with search_path set for Neon serverless
1414
+ *
1415
+ * @param neonInstance - Neon database query function
1416
+ * @param query - SQL query to execute
1417
+ * @param schema - Schema to set (optional)
1418
+ * @returns Query result
1419
+ */
1420
+ declare function executeWithSchema(neonInstance: NeonQueryFunction<false, false>, query: string, schema?: string): Promise<any>;
1421
+ //#endregion
1404
1422
  //#region src/db/index.d.ts
1405
1423
  /**
1406
1424
  * Supported database types
1407
1425
  */
1408
- type DatabaseType = 'postgres' | 'mysql' | 'sqlite' | 'mssql';
1426
+ type DatabaseType = 'postgres' | 'mysql' | 'sqlite' | 'mssql' | 'neon';
1409
1427
  /**
1410
1428
  * Options for creating a database connection
1411
1429
  */
@@ -1431,6 +1449,9 @@ type DatabaseConnection = {
1431
1449
  } | {
1432
1450
  type: 'mssql';
1433
1451
  dialect: MssqlDialect;
1452
+ } | {
1453
+ type: 'neon';
1454
+ dialect: Dialect;
1434
1455
  } | {
1435
1456
  type: DatabaseType;
1436
1457
  kysely: Kysely<Database>;
@@ -1451,4 +1472,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
1451
1472
  */
1452
1473
  declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
1453
1474
  //#endregion
1454
- export { SCHEMA_METADATA as A, WorkspaceSettings as B, EnvironmentSecretsTable as C, LLMRequestsTable as D, LLMRequest as E, Updateable as F, environmentsSchema as G, configVariantsSchema as H, Variant as I, schemas as J, llmRequestsSchema as K, VariantVersion as L, TableName as M, TargetingRule as N, ProviderConfig as O, TargetingRulesTable as P, workspaceSettingsSchema as Q, VariantVersionsTable as R, EnvironmentSecret as S, Insertable as T, configsSchema as U, WorkspaceSettingsTable as V, environmentSecretsSchema as W, variantVersionsSchema as X, targetingRulesSchema as Y, variantsSchema as Z, ConfigVariant as _, createDatabaseFromConnection as a, Database as b, MigrationResult as c, runAutoMigrations as d, parsePartialTableData as f, Config as g, validateTableData as h, createDatabase as i, Selectable as j, ProviderConfigsTable as k, getMigrations as l, validatePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, parseTableData as p, providerConfigsSchema as q, DatabaseType as r, MigrationOptions as s, DatabaseConnection as t, matchType as u, ConfigVariantsTable as v, EnvironmentsTable as w, Environment as x, ConfigsTable as y, VariantsTable as z };
1475
+ export { variantsSchema as $, ProviderConfig as A, VariantVersionsTable as B, Environment as C, Insertable as D, EnvironmentsTable as E, TargetingRule as F, configsSchema as G, WorkspaceSettings as H, TargetingRulesTable as I, llmRequestsSchema as J, environmentSecretsSchema as K, Updateable as L, SCHEMA_METADATA as M, Selectable as N, LLMRequest as O, TableName as P, variantVersionsSchema as Q, Variant as R, Database as S, EnvironmentSecretsTable as T, WorkspaceSettingsTable as U, VariantsTable as V, configVariantsSchema as W, schemas as X, providerConfigsSchema as Y, targetingRulesSchema as Z, validateTableData as _, createDatabaseFromConnection as a, ConfigVariantsTable as b, executeWithSchema as c, getMigrations as d, workspaceSettingsSchema as et, matchType as f, validatePartialTableData as g, parseTableData as h, createDatabase as i, ProviderConfigsTable as j, LLMRequestsTable as k, MigrationOptions as l, parsePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, runAutoMigrations as p, environmentsSchema as q, DatabaseType as r, createNeonDialect as s, DatabaseConnection as t, MigrationResult as u, Config as v, EnvironmentSecret as w, ConfigsTable as x, ConfigVariant as y, VariantVersion as z };
@@ -1,6 +1,7 @@
1
- import { ColumnType, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
2
- import * as zod0 from "zod";
1
+ import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
2
+ import * as zod497 from "zod";
3
3
  import { z } from "zod";
4
+ import { NeonQueryFunction } from "@neondatabase/serverless";
4
5
 
5
6
  //#region src/db/schema.d.ts
6
7
  declare const configsSchema: z.ZodObject<{
@@ -857,29 +858,29 @@ declare const schemas: {
857
858
  * Validate data against table schema
858
859
  * Useful for runtime validation before inserting/updating
859
860
  */
860
- declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
861
+ declare function validateTableData<T extends TableName>(table: T, data: unknown): zod497.ZodSafeParseSuccess<{
861
862
  slug: string;
862
863
  id: string;
863
864
  createdAt: Date;
864
865
  updatedAt: Date;
865
866
  name?: string | undefined;
866
- }> | zod0.ZodSafeParseError<{
867
+ }> | zod497.ZodSafeParseError<{
867
868
  slug: string;
868
869
  id: string;
869
870
  createdAt: Date;
870
871
  updatedAt: Date;
871
872
  name?: string | undefined;
872
- }> | zod0.ZodSafeParseSuccess<{
873
+ }> | zod497.ZodSafeParseSuccess<{
873
874
  name: string;
874
875
  id: string;
875
876
  createdAt: Date;
876
877
  updatedAt: Date;
877
- }> | zod0.ZodSafeParseError<{
878
+ }> | zod497.ZodSafeParseError<{
878
879
  name: string;
879
880
  id: string;
880
881
  createdAt: Date;
881
882
  updatedAt: Date;
882
- }> | zod0.ZodSafeParseSuccess<{
883
+ }> | zod497.ZodSafeParseSuccess<{
883
884
  variantId: string;
884
885
  version: number;
885
886
  provider: string;
@@ -888,7 +889,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
888
889
  id: string;
889
890
  createdAt: Date;
890
891
  updatedAt: Date;
891
- }> | zod0.ZodSafeParseError<{
892
+ }> | zod497.ZodSafeParseError<{
892
893
  variantId: string;
893
894
  version: number;
894
895
  provider: string;
@@ -897,33 +898,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
897
898
  id: string;
898
899
  createdAt: Date;
899
900
  updatedAt: Date;
900
- }> | zod0.ZodSafeParseSuccess<{
901
+ }> | zod497.ZodSafeParseSuccess<{
901
902
  environmentId: string;
902
903
  keyName: string;
903
904
  keyValue: string;
904
905
  id: string;
905
906
  createdAt: Date;
906
907
  updatedAt: Date;
907
- }> | zod0.ZodSafeParseError<{
908
+ }> | zod497.ZodSafeParseError<{
908
909
  environmentId: string;
909
910
  keyName: string;
910
911
  keyValue: string;
911
912
  id: string;
912
913
  createdAt: Date;
913
914
  updatedAt: Date;
914
- }> | zod0.ZodSafeParseSuccess<{
915
+ }> | zod497.ZodSafeParseSuccess<{
915
916
  configId: string;
916
917
  variantId: string;
917
918
  id: string;
918
919
  createdAt: Date;
919
920
  updatedAt: Date;
920
- }> | zod0.ZodSafeParseError<{
921
+ }> | zod497.ZodSafeParseError<{
921
922
  configId: string;
922
923
  variantId: string;
923
924
  id: string;
924
925
  createdAt: Date;
925
926
  updatedAt: Date;
926
- }> | zod0.ZodSafeParseSuccess<{
927
+ }> | zod497.ZodSafeParseSuccess<{
927
928
  environmentId: string;
928
929
  configId: string;
929
930
  configVariantId: string;
@@ -935,7 +936,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
935
936
  createdAt: Date;
936
937
  updatedAt: Date;
937
938
  variantVersionId?: string | null | undefined;
938
- }> | zod0.ZodSafeParseError<{
939
+ }> | zod497.ZodSafeParseError<{
939
940
  environmentId: string;
940
941
  configId: string;
941
942
  configVariantId: string;
@@ -947,21 +948,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
947
948
  createdAt: Date;
948
949
  updatedAt: Date;
949
950
  variantVersionId?: string | null | undefined;
950
- }> | zod0.ZodSafeParseSuccess<{
951
+ }> | zod497.ZodSafeParseSuccess<{
951
952
  setupComplete: boolean;
952
953
  id: string;
953
954
  createdAt: Date;
954
955
  updatedAt: Date;
955
956
  name?: string | null | undefined;
956
957
  superAdminId?: string | null | undefined;
957
- }> | zod0.ZodSafeParseError<{
958
+ }> | zod497.ZodSafeParseError<{
958
959
  setupComplete: boolean;
959
960
  id: string;
960
961
  createdAt: Date;
961
962
  updatedAt: Date;
962
963
  name?: string | null | undefined;
963
964
  superAdminId?: string | null | undefined;
964
- }> | zod0.ZodSafeParseSuccess<{
965
+ }> | zod497.ZodSafeParseSuccess<{
965
966
  providerId: string;
966
967
  config: Record<string, unknown>;
967
968
  enabled: boolean;
@@ -969,7 +970,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
969
970
  createdAt: Date;
970
971
  updatedAt: Date;
971
972
  name?: string | null | undefined;
972
- }> | zod0.ZodSafeParseError<{
973
+ }> | zod497.ZodSafeParseError<{
973
974
  providerId: string;
974
975
  config: Record<string, unknown>;
975
976
  enabled: boolean;
@@ -977,7 +978,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
977
978
  createdAt: Date;
978
979
  updatedAt: Date;
979
980
  name?: string | null | undefined;
980
- }> | zod0.ZodSafeParseSuccess<{
981
+ }> | zod497.ZodSafeParseSuccess<{
981
982
  requestId: string;
982
983
  provider: string;
983
984
  model: string;
@@ -1001,7 +1002,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
1001
1002
  environmentId?: string | null | undefined;
1002
1003
  providerConfigId?: string | null | undefined;
1003
1004
  userId?: string | null | undefined;
1004
- }> | zod0.ZodSafeParseError<{
1005
+ }> | zod497.ZodSafeParseError<{
1005
1006
  requestId: string;
1006
1007
  provider: string;
1007
1008
  model: string;
@@ -1029,17 +1030,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
1029
1030
  /**
1030
1031
  * Validate partial data (for updates)
1031
1032
  */
1032
- declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
1033
+ declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod497.ZodSafeParseSuccess<{
1033
1034
  name?: string | undefined;
1034
1035
  id?: string | undefined;
1035
1036
  createdAt?: Date | undefined;
1036
1037
  updatedAt?: Date | undefined;
1037
- }> | zod0.ZodSafeParseError<{
1038
+ }> | zod497.ZodSafeParseError<{
1038
1039
  name?: string | undefined;
1039
1040
  id?: string | undefined;
1040
1041
  createdAt?: Date | undefined;
1041
1042
  updatedAt?: Date | undefined;
1042
- }> | zod0.ZodSafeParseSuccess<{
1043
+ }> | zod497.ZodSafeParseSuccess<{
1043
1044
  variantId?: string | undefined;
1044
1045
  version?: number | undefined;
1045
1046
  provider?: string | undefined;
@@ -1048,7 +1049,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1048
1049
  id?: string | undefined;
1049
1050
  createdAt?: Date | undefined;
1050
1051
  updatedAt?: Date | undefined;
1051
- }> | zod0.ZodSafeParseError<{
1052
+ }> | zod497.ZodSafeParseError<{
1052
1053
  variantId?: string | undefined;
1053
1054
  version?: number | undefined;
1054
1055
  provider?: string | undefined;
@@ -1057,33 +1058,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1057
1058
  id?: string | undefined;
1058
1059
  createdAt?: Date | undefined;
1059
1060
  updatedAt?: Date | undefined;
1060
- }> | zod0.ZodSafeParseSuccess<{
1061
+ }> | zod497.ZodSafeParseSuccess<{
1061
1062
  environmentId?: string | undefined;
1062
1063
  keyName?: string | undefined;
1063
1064
  keyValue?: string | undefined;
1064
1065
  id?: string | undefined;
1065
1066
  createdAt?: Date | undefined;
1066
1067
  updatedAt?: Date | undefined;
1067
- }> | zod0.ZodSafeParseError<{
1068
+ }> | zod497.ZodSafeParseError<{
1068
1069
  environmentId?: string | undefined;
1069
1070
  keyName?: string | undefined;
1070
1071
  keyValue?: string | undefined;
1071
1072
  id?: string | undefined;
1072
1073
  createdAt?: Date | undefined;
1073
1074
  updatedAt?: Date | undefined;
1074
- }> | zod0.ZodSafeParseSuccess<{
1075
+ }> | zod497.ZodSafeParseSuccess<{
1075
1076
  configId?: string | undefined;
1076
1077
  variantId?: string | undefined;
1077
1078
  id?: string | undefined;
1078
1079
  createdAt?: Date | undefined;
1079
1080
  updatedAt?: Date | undefined;
1080
- }> | zod0.ZodSafeParseError<{
1081
+ }> | zod497.ZodSafeParseError<{
1081
1082
  configId?: string | undefined;
1082
1083
  variantId?: string | undefined;
1083
1084
  id?: string | undefined;
1084
1085
  createdAt?: Date | undefined;
1085
1086
  updatedAt?: Date | undefined;
1086
- }> | zod0.ZodSafeParseSuccess<{
1087
+ }> | zod497.ZodSafeParseSuccess<{
1087
1088
  environmentId?: string | undefined;
1088
1089
  configId?: string | undefined;
1089
1090
  configVariantId?: string | undefined;
@@ -1095,7 +1096,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1095
1096
  id?: string | undefined;
1096
1097
  createdAt?: Date | undefined;
1097
1098
  updatedAt?: Date | undefined;
1098
- }> | zod0.ZodSafeParseError<{
1099
+ }> | zod497.ZodSafeParseError<{
1099
1100
  environmentId?: string | undefined;
1100
1101
  configId?: string | undefined;
1101
1102
  configVariantId?: string | undefined;
@@ -1107,21 +1108,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1107
1108
  id?: string | undefined;
1108
1109
  createdAt?: Date | undefined;
1109
1110
  updatedAt?: Date | undefined;
1110
- }> | zod0.ZodSafeParseSuccess<{
1111
+ }> | zod497.ZodSafeParseSuccess<{
1111
1112
  name?: string | null | undefined;
1112
1113
  setupComplete?: boolean | undefined;
1113
1114
  superAdminId?: string | null | undefined;
1114
1115
  id?: string | undefined;
1115
1116
  createdAt?: Date | undefined;
1116
1117
  updatedAt?: Date | undefined;
1117
- }> | zod0.ZodSafeParseError<{
1118
+ }> | zod497.ZodSafeParseError<{
1118
1119
  name?: string | null | undefined;
1119
1120
  setupComplete?: boolean | undefined;
1120
1121
  superAdminId?: string | null | undefined;
1121
1122
  id?: string | undefined;
1122
1123
  createdAt?: Date | undefined;
1123
1124
  updatedAt?: Date | undefined;
1124
- }> | zod0.ZodSafeParseSuccess<{
1125
+ }> | zod497.ZodSafeParseSuccess<{
1125
1126
  providerId?: string | undefined;
1126
1127
  name?: string | null | undefined;
1127
1128
  config?: Record<string, unknown> | undefined;
@@ -1129,7 +1130,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1129
1130
  id?: string | undefined;
1130
1131
  createdAt?: Date | undefined;
1131
1132
  updatedAt?: Date | undefined;
1132
- }> | zod0.ZodSafeParseError<{
1133
+ }> | zod497.ZodSafeParseError<{
1133
1134
  providerId?: string | undefined;
1134
1135
  name?: string | null | undefined;
1135
1136
  config?: Record<string, unknown> | undefined;
@@ -1137,7 +1138,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1137
1138
  id?: string | undefined;
1138
1139
  createdAt?: Date | undefined;
1139
1140
  updatedAt?: Date | undefined;
1140
- }> | zod0.ZodSafeParseSuccess<{
1141
+ }> | zod497.ZodSafeParseSuccess<{
1141
1142
  requestId?: string | undefined;
1142
1143
  configId?: string | null | undefined;
1143
1144
  variantId?: string | null | undefined;
@@ -1161,7 +1162,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
1161
1162
  id?: string | undefined;
1162
1163
  createdAt?: Date | undefined;
1163
1164
  updatedAt?: Date | undefined;
1164
- }> | zod0.ZodSafeParseError<{
1165
+ }> | zod497.ZodSafeParseError<{
1165
1166
  requestId?: string | undefined;
1166
1167
  configId?: string | null | undefined;
1167
1168
  variantId?: string | null | undefined;
@@ -1358,7 +1359,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
1358
1359
  };
1359
1360
  //#endregion
1360
1361
  //#region src/db/migrations.d.ts
1361
- type DatabaseType$1 = 'postgres' | 'mysql' | 'sqlite' | 'mssql';
1362
1362
  /**
1363
1363
  * Options for migration operations
1364
1364
  */
@@ -1370,7 +1370,7 @@ interface MigrationOptions {
1370
1370
  schema?: string;
1371
1371
  rawConnection?: unknown;
1372
1372
  }
1373
- declare function matchType(columnDataType: string, fieldType: string, dbType: DatabaseType$1): boolean;
1373
+ declare function matchType(columnDataType: string, fieldType: string, dbType: DatabaseType): boolean;
1374
1374
  interface MigrationResult {
1375
1375
  toBeCreated: Array<{
1376
1376
  table: string;
@@ -1387,7 +1387,7 @@ interface MigrationResult {
1387
1387
  migrations: any[];
1388
1388
  needsMigration: boolean;
1389
1389
  }
1390
- declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType$1, options?: MigrationOptions): Promise<MigrationResult>;
1390
+ declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType, options?: MigrationOptions): Promise<MigrationResult>;
1391
1391
  /**
1392
1392
  * Run migrations if needed
1393
1393
  * @param db - Kysely database instance
@@ -1395,17 +1395,35 @@ declare function getMigrations(db: Kysely<Database>, dbType: DatabaseType$1, opt
1395
1395
  * @param options - Migration options (schema, etc.)
1396
1396
  * @returns true if migrations were run, false otherwise
1397
1397
  */
1398
- declare function runAutoMigrations(db: Kysely<Database>, dbType: DatabaseType$1, options?: MigrationOptions): Promise<{
1398
+ declare function runAutoMigrations(db: Kysely<Database>, dbType: DatabaseType, options?: MigrationOptions): Promise<{
1399
1399
  ran: boolean;
1400
1400
  tables: string[];
1401
1401
  fields: string[];
1402
1402
  }>;
1403
1403
  //#endregion
1404
+ //#region src/db/neon-dialect.d.ts
1405
+ /**
1406
+ * Create a Neon serverless dialect for Kysely
1407
+ *
1408
+ * @param neonInstance - Neon database query function
1409
+ * @returns Kysely dialect configured for Neon serverless
1410
+ */
1411
+ declare function createNeonDialect(neonInstance: NeonQueryFunction<false, false>): any;
1412
+ /**
1413
+ * Execute a query with search_path set for Neon serverless
1414
+ *
1415
+ * @param neonInstance - Neon database query function
1416
+ * @param query - SQL query to execute
1417
+ * @param schema - Schema to set (optional)
1418
+ * @returns Query result
1419
+ */
1420
+ declare function executeWithSchema(neonInstance: NeonQueryFunction<false, false>, query: string, schema?: string): Promise<any>;
1421
+ //#endregion
1404
1422
  //#region src/db/index.d.ts
1405
1423
  /**
1406
1424
  * Supported database types
1407
1425
  */
1408
- type DatabaseType = 'postgres' | 'mysql' | 'sqlite' | 'mssql';
1426
+ type DatabaseType = 'postgres' | 'mysql' | 'sqlite' | 'mssql' | 'neon';
1409
1427
  /**
1410
1428
  * Options for creating a database connection
1411
1429
  */
@@ -1431,6 +1449,9 @@ type DatabaseConnection = {
1431
1449
  } | {
1432
1450
  type: 'mssql';
1433
1451
  dialect: MssqlDialect;
1452
+ } | {
1453
+ type: 'neon';
1454
+ dialect: Dialect;
1434
1455
  } | {
1435
1456
  type: DatabaseType;
1436
1457
  kysely: Kysely<Database>;
@@ -1451,4 +1472,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
1451
1472
  */
1452
1473
  declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
1453
1474
  //#endregion
1454
- export { SCHEMA_METADATA as A, WorkspaceSettings as B, EnvironmentSecretsTable as C, LLMRequestsTable as D, LLMRequest as E, Updateable as F, environmentsSchema as G, configVariantsSchema as H, Variant as I, schemas as J, llmRequestsSchema as K, VariantVersion as L, TableName as M, TargetingRule as N, ProviderConfig as O, TargetingRulesTable as P, workspaceSettingsSchema as Q, VariantVersionsTable as R, EnvironmentSecret as S, Insertable as T, configsSchema as U, WorkspaceSettingsTable as V, environmentSecretsSchema as W, variantVersionsSchema as X, targetingRulesSchema as Y, variantsSchema as Z, ConfigVariant as _, createDatabaseFromConnection as a, Database as b, MigrationResult as c, runAutoMigrations as d, parsePartialTableData as f, Config as g, validateTableData as h, createDatabase as i, Selectable as j, ProviderConfigsTable as k, getMigrations as l, validatePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, parseTableData as p, providerConfigsSchema as q, DatabaseType as r, MigrationOptions as s, DatabaseConnection as t, matchType as u, ConfigVariantsTable as v, EnvironmentsTable as w, Environment as x, ConfigsTable as y, VariantsTable as z };
1475
+ export { variantsSchema as $, ProviderConfig as A, VariantVersionsTable as B, Environment as C, Insertable as D, EnvironmentsTable as E, TargetingRule as F, configsSchema as G, WorkspaceSettings as H, TargetingRulesTable as I, llmRequestsSchema as J, environmentSecretsSchema as K, Updateable as L, SCHEMA_METADATA as M, Selectable as N, LLMRequest as O, TableName as P, variantVersionsSchema as Q, Variant as R, Database as S, EnvironmentSecretsTable as T, WorkspaceSettingsTable as U, VariantsTable as V, configVariantsSchema as W, schemas as X, providerConfigsSchema as Y, targetingRulesSchema as Z, validateTableData as _, createDatabaseFromConnection as a, ConfigVariantsTable as b, executeWithSchema as c, getMigrations as d, workspaceSettingsSchema as et, matchType as f, validatePartialTableData as g, parseTableData as h, createDatabase as i, ProviderConfigsTable as j, LLMRequestsTable as k, MigrationOptions as l, parsePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, runAutoMigrations as p, environmentsSchema as q, DatabaseType as r, createNeonDialect as s, DatabaseConnection as t, MigrationResult as u, Config as v, EnvironmentSecret as w, ConfigsTable as x, ConfigVariant as y, VariantVersion as z };
package/dist/index.cjs CHANGED
@@ -1,4 +1,5 @@
1
- const require_db = require('./db-CqDD6Ydv.cjs');
1
+ const require_db = require('./db-BOe6mM51.cjs');
2
+ const require_neon_dialect = require('./neon-dialect-BQey5lUw.cjs');
2
3
  let __llmops_gateway = require("@llmops/gateway");
3
4
  __llmops_gateway = require_db.__toESM(__llmops_gateway);
4
5
  let kysely = require("kysely");
@@ -2595,12 +2596,14 @@ exports.createDataLayer = createDataLayer;
2595
2596
  exports.createDatabase = require_db.createDatabase;
2596
2597
  exports.createDatabaseFromConnection = require_db.createDatabaseFromConnection;
2597
2598
  exports.createLLMRequestsDataLayer = createLLMRequestsDataLayer;
2599
+ exports.createNeonDialect = require_neon_dialect.createNeonDialect;
2598
2600
  exports.createProviderConfigsDataLayer = createProviderConfigsDataLayer;
2599
2601
  exports.createWorkspaceSettingsDataLayer = createWorkspaceSettingsDataLayer;
2600
2602
  exports.detectDatabaseType = require_db.detectDatabaseType;
2601
2603
  exports.dollarsToMicroDollars = dollarsToMicroDollars;
2602
2604
  exports.environmentSecretsSchema = require_db.environmentSecretsSchema;
2603
2605
  exports.environmentsSchema = require_db.environmentsSchema;
2606
+ exports.executeWithSchema = require_neon_dialect.executeWithSchema;
2604
2607
  exports.formatCost = formatCost;
2605
2608
  Object.defineProperty(exports, 'gateway', {
2606
2609
  enumerable: true,