@llmops/core 0.3.2-beta.2 → 0.3.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-BMN3ZSTf.d.mts → index-DhVBYci7.d.mts} +39 -39
- package/dist/index.d.cts +359 -359
- package/dist/index.d.mts +684 -684
- package/package.json +2 -2
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as environmentsSchema, A as GuardrailResults, B as TableName, C as Environment, D as GuardrailConfig, E as EnvironmentsTable, F as ProviderConfigsTable, G as VariantVersion, H as TargetingRulesTable, I as ProviderGuardrailOverride, J as WorkspaceSettings, K as VariantVersionsTable, L as ProviderGuardrailOverridesTable, M as LLMRequest, N as LLMRequestsTable, O as GuardrailConfigsTable, P as ProviderConfig, Q as environmentSecretsSchema, R as SCHEMA_METADATA, S as Database, T as EnvironmentSecretsTable, U as Updateable, V as TargetingRule, W as Variant, X as configVariantsSchema, Y as WorkspaceSettingsTable, Z as configsSchema, _ as validateTableData, a as createDatabaseFromConnection, at as targetingRulesSchema, b as ConfigVariantsTable, c as executeWithSchema, ct as workspaceSettingsSchema, d as getMigrations, et as guardrailConfigsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, it as schemas, j as Insertable, k as GuardrailResult, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, nt as providerConfigsSchema, o as detectDatabaseType, ot as variantVersionsSchema, p as runAutoMigrations, q as VariantsTable, r as DatabaseType, rt as providerGuardrailOverridesSchema, s as createNeonDialect, st as variantsSchema, t as DatabaseConnection, tt as llmRequestsSchema, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as Selectable } from "../index-
|
|
1
|
+
import { $ as environmentsSchema, A as GuardrailResults, B as TableName, C as Environment, D as GuardrailConfig, E as EnvironmentsTable, F as ProviderConfigsTable, G as VariantVersion, H as TargetingRulesTable, I as ProviderGuardrailOverride, J as WorkspaceSettings, K as VariantVersionsTable, L as ProviderGuardrailOverridesTable, M as LLMRequest, N as LLMRequestsTable, O as GuardrailConfigsTable, P as ProviderConfig, Q as environmentSecretsSchema, R as SCHEMA_METADATA, S as Database, T as EnvironmentSecretsTable, U as Updateable, V as TargetingRule, W as Variant, X as configVariantsSchema, Y as WorkspaceSettingsTable, Z as configsSchema, _ as validateTableData, a as createDatabaseFromConnection, at as targetingRulesSchema, b as ConfigVariantsTable, c as executeWithSchema, ct as workspaceSettingsSchema, d as getMigrations, et as guardrailConfigsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, it as schemas, j as Insertable, k as GuardrailResult, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, nt as providerConfigsSchema, o as detectDatabaseType, ot as variantVersionsSchema, p as runAutoMigrations, q as VariantsTable, r as DatabaseType, rt as providerGuardrailOverridesSchema, s as createNeonDialect, st as variantsSchema, t as DatabaseConnection, tt as llmRequestsSchema, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as Selectable } from "../index-DhVBYci7.mjs";
|
|
2
2
|
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
2
|
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
3
|
-
import * as
|
|
3
|
+
import * as zod615 from "zod";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/db/schema.d.ts
|
|
@@ -1148,29 +1148,29 @@ declare const schemas: {
|
|
|
1148
1148
|
* Validate data against table schema
|
|
1149
1149
|
* Useful for runtime validation before inserting/updating
|
|
1150
1150
|
*/
|
|
1151
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
1151
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod615.ZodSafeParseSuccess<{
|
|
1152
1152
|
slug: string;
|
|
1153
1153
|
id: string;
|
|
1154
1154
|
createdAt: Date;
|
|
1155
1155
|
updatedAt: Date;
|
|
1156
1156
|
name?: string | undefined;
|
|
1157
|
-
}> |
|
|
1157
|
+
}> | zod615.ZodSafeParseError<{
|
|
1158
1158
|
slug: string;
|
|
1159
1159
|
id: string;
|
|
1160
1160
|
createdAt: Date;
|
|
1161
1161
|
updatedAt: Date;
|
|
1162
1162
|
name?: string | undefined;
|
|
1163
|
-
}> |
|
|
1163
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1164
1164
|
name: string;
|
|
1165
1165
|
id: string;
|
|
1166
1166
|
createdAt: Date;
|
|
1167
1167
|
updatedAt: Date;
|
|
1168
|
-
}> |
|
|
1168
|
+
}> | zod615.ZodSafeParseError<{
|
|
1169
1169
|
name: string;
|
|
1170
1170
|
id: string;
|
|
1171
1171
|
createdAt: Date;
|
|
1172
1172
|
updatedAt: Date;
|
|
1173
|
-
}> |
|
|
1173
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1174
1174
|
variantId: string;
|
|
1175
1175
|
version: number;
|
|
1176
1176
|
provider: string;
|
|
@@ -1179,7 +1179,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1179
1179
|
id: string;
|
|
1180
1180
|
createdAt: Date;
|
|
1181
1181
|
updatedAt: Date;
|
|
1182
|
-
}> |
|
|
1182
|
+
}> | zod615.ZodSafeParseError<{
|
|
1183
1183
|
variantId: string;
|
|
1184
1184
|
version: number;
|
|
1185
1185
|
provider: string;
|
|
@@ -1188,33 +1188,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1188
1188
|
id: string;
|
|
1189
1189
|
createdAt: Date;
|
|
1190
1190
|
updatedAt: Date;
|
|
1191
|
-
}> |
|
|
1191
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1192
1192
|
environmentId: string;
|
|
1193
1193
|
keyName: string;
|
|
1194
1194
|
keyValue: string;
|
|
1195
1195
|
id: string;
|
|
1196
1196
|
createdAt: Date;
|
|
1197
1197
|
updatedAt: Date;
|
|
1198
|
-
}> |
|
|
1198
|
+
}> | zod615.ZodSafeParseError<{
|
|
1199
1199
|
environmentId: string;
|
|
1200
1200
|
keyName: string;
|
|
1201
1201
|
keyValue: string;
|
|
1202
1202
|
id: string;
|
|
1203
1203
|
createdAt: Date;
|
|
1204
1204
|
updatedAt: Date;
|
|
1205
|
-
}> |
|
|
1205
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1206
1206
|
configId: string;
|
|
1207
1207
|
variantId: string;
|
|
1208
1208
|
id: string;
|
|
1209
1209
|
createdAt: Date;
|
|
1210
1210
|
updatedAt: Date;
|
|
1211
|
-
}> |
|
|
1211
|
+
}> | zod615.ZodSafeParseError<{
|
|
1212
1212
|
configId: string;
|
|
1213
1213
|
variantId: string;
|
|
1214
1214
|
id: string;
|
|
1215
1215
|
createdAt: Date;
|
|
1216
1216
|
updatedAt: Date;
|
|
1217
|
-
}> |
|
|
1217
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1218
1218
|
environmentId: string;
|
|
1219
1219
|
configId: string;
|
|
1220
1220
|
configVariantId: string;
|
|
@@ -1226,7 +1226,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1226
1226
|
createdAt: Date;
|
|
1227
1227
|
updatedAt: Date;
|
|
1228
1228
|
variantVersionId?: string | null | undefined;
|
|
1229
|
-
}> |
|
|
1229
|
+
}> | zod615.ZodSafeParseError<{
|
|
1230
1230
|
environmentId: string;
|
|
1231
1231
|
configId: string;
|
|
1232
1232
|
configVariantId: string;
|
|
@@ -1238,21 +1238,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1238
1238
|
createdAt: Date;
|
|
1239
1239
|
updatedAt: Date;
|
|
1240
1240
|
variantVersionId?: string | null | undefined;
|
|
1241
|
-
}> |
|
|
1241
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1242
1242
|
setupComplete: boolean;
|
|
1243
1243
|
id: string;
|
|
1244
1244
|
createdAt: Date;
|
|
1245
1245
|
updatedAt: Date;
|
|
1246
1246
|
name?: string | null | undefined;
|
|
1247
1247
|
superAdminId?: string | null | undefined;
|
|
1248
|
-
}> |
|
|
1248
|
+
}> | zod615.ZodSafeParseError<{
|
|
1249
1249
|
setupComplete: boolean;
|
|
1250
1250
|
id: string;
|
|
1251
1251
|
createdAt: Date;
|
|
1252
1252
|
updatedAt: Date;
|
|
1253
1253
|
name?: string | null | undefined;
|
|
1254
1254
|
superAdminId?: string | null | undefined;
|
|
1255
|
-
}> |
|
|
1255
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1256
1256
|
providerId: string;
|
|
1257
1257
|
config: Record<string, unknown>;
|
|
1258
1258
|
enabled: boolean;
|
|
@@ -1261,7 +1261,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1261
1261
|
updatedAt: Date;
|
|
1262
1262
|
slug?: string | null | undefined;
|
|
1263
1263
|
name?: string | null | undefined;
|
|
1264
|
-
}> |
|
|
1264
|
+
}> | zod615.ZodSafeParseError<{
|
|
1265
1265
|
providerId: string;
|
|
1266
1266
|
config: Record<string, unknown>;
|
|
1267
1267
|
enabled: boolean;
|
|
@@ -1270,7 +1270,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1270
1270
|
updatedAt: Date;
|
|
1271
1271
|
slug?: string | null | undefined;
|
|
1272
1272
|
name?: string | null | undefined;
|
|
1273
|
-
}> |
|
|
1273
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1274
1274
|
providerConfigId: string;
|
|
1275
1275
|
guardrailConfigId: string;
|
|
1276
1276
|
enabled: boolean;
|
|
@@ -1278,7 +1278,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1278
1278
|
createdAt: Date;
|
|
1279
1279
|
updatedAt: Date;
|
|
1280
1280
|
parameters?: Record<string, unknown> | null | undefined;
|
|
1281
|
-
}> |
|
|
1281
|
+
}> | zod615.ZodSafeParseError<{
|
|
1282
1282
|
providerConfigId: string;
|
|
1283
1283
|
guardrailConfigId: string;
|
|
1284
1284
|
enabled: boolean;
|
|
@@ -1286,7 +1286,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1286
1286
|
createdAt: Date;
|
|
1287
1287
|
updatedAt: Date;
|
|
1288
1288
|
parameters?: Record<string, unknown> | null | undefined;
|
|
1289
|
-
}> |
|
|
1289
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1290
1290
|
requestId: string;
|
|
1291
1291
|
provider: string;
|
|
1292
1292
|
model: string;
|
|
@@ -1321,7 +1321,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1321
1321
|
action: "allowed" | "blocked" | "logged";
|
|
1322
1322
|
totalLatencyMs: number;
|
|
1323
1323
|
} | null | undefined;
|
|
1324
|
-
}> |
|
|
1324
|
+
}> | zod615.ZodSafeParseError<{
|
|
1325
1325
|
requestId: string;
|
|
1326
1326
|
provider: string;
|
|
1327
1327
|
model: string;
|
|
@@ -1360,17 +1360,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Validate partial data (for updates)
|
|
1362
1362
|
*/
|
|
1363
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
1363
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod615.ZodSafeParseSuccess<{
|
|
1364
1364
|
name?: string | undefined;
|
|
1365
1365
|
id?: string | undefined;
|
|
1366
1366
|
createdAt?: Date | undefined;
|
|
1367
1367
|
updatedAt?: Date | undefined;
|
|
1368
|
-
}> |
|
|
1368
|
+
}> | zod615.ZodSafeParseError<{
|
|
1369
1369
|
name?: string | undefined;
|
|
1370
1370
|
id?: string | undefined;
|
|
1371
1371
|
createdAt?: Date | undefined;
|
|
1372
1372
|
updatedAt?: Date | undefined;
|
|
1373
|
-
}> |
|
|
1373
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1374
1374
|
variantId?: string | undefined;
|
|
1375
1375
|
version?: number | undefined;
|
|
1376
1376
|
provider?: string | undefined;
|
|
@@ -1379,7 +1379,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1379
1379
|
id?: string | undefined;
|
|
1380
1380
|
createdAt?: Date | undefined;
|
|
1381
1381
|
updatedAt?: Date | undefined;
|
|
1382
|
-
}> |
|
|
1382
|
+
}> | zod615.ZodSafeParseError<{
|
|
1383
1383
|
variantId?: string | undefined;
|
|
1384
1384
|
version?: number | undefined;
|
|
1385
1385
|
provider?: string | undefined;
|
|
@@ -1388,33 +1388,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1388
1388
|
id?: string | undefined;
|
|
1389
1389
|
createdAt?: Date | undefined;
|
|
1390
1390
|
updatedAt?: Date | undefined;
|
|
1391
|
-
}> |
|
|
1391
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1392
1392
|
environmentId?: string | undefined;
|
|
1393
1393
|
keyName?: string | undefined;
|
|
1394
1394
|
keyValue?: string | undefined;
|
|
1395
1395
|
id?: string | undefined;
|
|
1396
1396
|
createdAt?: Date | undefined;
|
|
1397
1397
|
updatedAt?: Date | undefined;
|
|
1398
|
-
}> |
|
|
1398
|
+
}> | zod615.ZodSafeParseError<{
|
|
1399
1399
|
environmentId?: string | undefined;
|
|
1400
1400
|
keyName?: string | undefined;
|
|
1401
1401
|
keyValue?: string | undefined;
|
|
1402
1402
|
id?: string | undefined;
|
|
1403
1403
|
createdAt?: Date | undefined;
|
|
1404
1404
|
updatedAt?: Date | undefined;
|
|
1405
|
-
}> |
|
|
1405
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1406
1406
|
configId?: string | undefined;
|
|
1407
1407
|
variantId?: string | undefined;
|
|
1408
1408
|
id?: string | undefined;
|
|
1409
1409
|
createdAt?: Date | undefined;
|
|
1410
1410
|
updatedAt?: Date | undefined;
|
|
1411
|
-
}> |
|
|
1411
|
+
}> | zod615.ZodSafeParseError<{
|
|
1412
1412
|
configId?: string | undefined;
|
|
1413
1413
|
variantId?: string | undefined;
|
|
1414
1414
|
id?: string | undefined;
|
|
1415
1415
|
createdAt?: Date | undefined;
|
|
1416
1416
|
updatedAt?: Date | undefined;
|
|
1417
|
-
}> |
|
|
1417
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1418
1418
|
environmentId?: string | undefined;
|
|
1419
1419
|
configId?: string | undefined;
|
|
1420
1420
|
configVariantId?: string | undefined;
|
|
@@ -1426,7 +1426,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1426
1426
|
id?: string | undefined;
|
|
1427
1427
|
createdAt?: Date | undefined;
|
|
1428
1428
|
updatedAt?: Date | undefined;
|
|
1429
|
-
}> |
|
|
1429
|
+
}> | zod615.ZodSafeParseError<{
|
|
1430
1430
|
environmentId?: string | undefined;
|
|
1431
1431
|
configId?: string | undefined;
|
|
1432
1432
|
configVariantId?: string | undefined;
|
|
@@ -1438,21 +1438,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1438
1438
|
id?: string | undefined;
|
|
1439
1439
|
createdAt?: Date | undefined;
|
|
1440
1440
|
updatedAt?: Date | undefined;
|
|
1441
|
-
}> |
|
|
1441
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1442
1442
|
name?: string | null | undefined;
|
|
1443
1443
|
setupComplete?: boolean | undefined;
|
|
1444
1444
|
superAdminId?: string | null | undefined;
|
|
1445
1445
|
id?: string | undefined;
|
|
1446
1446
|
createdAt?: Date | undefined;
|
|
1447
1447
|
updatedAt?: Date | undefined;
|
|
1448
|
-
}> |
|
|
1448
|
+
}> | zod615.ZodSafeParseError<{
|
|
1449
1449
|
name?: string | null | undefined;
|
|
1450
1450
|
setupComplete?: boolean | undefined;
|
|
1451
1451
|
superAdminId?: string | null | undefined;
|
|
1452
1452
|
id?: string | undefined;
|
|
1453
1453
|
createdAt?: Date | undefined;
|
|
1454
1454
|
updatedAt?: Date | undefined;
|
|
1455
|
-
}> |
|
|
1455
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1456
1456
|
providerId?: string | undefined;
|
|
1457
1457
|
slug?: string | null | undefined;
|
|
1458
1458
|
name?: string | null | undefined;
|
|
@@ -1461,7 +1461,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1461
1461
|
id?: string | undefined;
|
|
1462
1462
|
createdAt?: Date | undefined;
|
|
1463
1463
|
updatedAt?: Date | undefined;
|
|
1464
|
-
}> |
|
|
1464
|
+
}> | zod615.ZodSafeParseError<{
|
|
1465
1465
|
providerId?: string | undefined;
|
|
1466
1466
|
slug?: string | null | undefined;
|
|
1467
1467
|
name?: string | null | undefined;
|
|
@@ -1470,7 +1470,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1470
1470
|
id?: string | undefined;
|
|
1471
1471
|
createdAt?: Date | undefined;
|
|
1472
1472
|
updatedAt?: Date | undefined;
|
|
1473
|
-
}> |
|
|
1473
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1474
1474
|
providerConfigId?: string | undefined;
|
|
1475
1475
|
guardrailConfigId?: string | undefined;
|
|
1476
1476
|
enabled?: boolean | undefined;
|
|
@@ -1478,7 +1478,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1478
1478
|
id?: string | undefined;
|
|
1479
1479
|
createdAt?: Date | undefined;
|
|
1480
1480
|
updatedAt?: Date | undefined;
|
|
1481
|
-
}> |
|
|
1481
|
+
}> | zod615.ZodSafeParseError<{
|
|
1482
1482
|
providerConfigId?: string | undefined;
|
|
1483
1483
|
guardrailConfigId?: string | undefined;
|
|
1484
1484
|
enabled?: boolean | undefined;
|
|
@@ -1486,7 +1486,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1486
1486
|
id?: string | undefined;
|
|
1487
1487
|
createdAt?: Date | undefined;
|
|
1488
1488
|
updatedAt?: Date | undefined;
|
|
1489
|
-
}> |
|
|
1489
|
+
}> | zod615.ZodSafeParseSuccess<{
|
|
1490
1490
|
requestId?: string | undefined;
|
|
1491
1491
|
configId?: string | null | undefined;
|
|
1492
1492
|
variantId?: string | null | undefined;
|
|
@@ -1521,7 +1521,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1521
1521
|
id?: string | undefined;
|
|
1522
1522
|
createdAt?: Date | undefined;
|
|
1523
1523
|
updatedAt?: Date | undefined;
|
|
1524
|
-
}> |
|
|
1524
|
+
}> | zod615.ZodSafeParseError<{
|
|
1525
1525
|
requestId?: string | undefined;
|
|
1526
1526
|
configId?: string | null | undefined;
|
|
1527
1527
|
variantId?: string | null | undefined;
|