@llmops/core 0.2.10 → 0.2.11-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.
- package/dist/{bun-sqlite-dialect-DWVuvIoz.cjs → bun-sqlite-dialect-t1xHHJDz.cjs} +1 -1
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/{db-BgX8EJ1K.mjs → db-BGDhJROC.mjs} +57 -2
- package/dist/{db-8mMoL2a6.cjs → db-CqDD6Ydv.cjs} +59 -4
- package/dist/{index-zQzOuWsM.d.cts → index-BUlmWTh7.d.cts} +67 -36
- package/dist/{index-5GfBoyiq.d.mts → index-CVGG0zoD.d.mts} +67 -36
- package/dist/index.cjs +27 -5
- package/dist/index.d.cts +516 -487
- package/dist/index.d.mts +516 -487
- package/dist/index.mjs +27 -5
- package/dist/{node-sqlite-dialect-C9LjudrZ.cjs → node-sqlite-dialect-D4V5e49r.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
package/dist/db/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-
|
|
1
|
+
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-BUlmWTh7.cjs";
|
|
2
2
|
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-
|
|
1
|
+
import { A as SCHEMA_METADATA, B as WorkspaceSettings, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as Updateable, G as environmentsSchema, H as configVariantsSchema, I as Variant, J as schemas, K as llmRequestsSchema, L as VariantVersion, M as TableName, N as TargetingRule, O as ProviderConfig, P as TargetingRulesTable, Q as workspaceSettingsSchema, R as VariantVersionsTable, S as EnvironmentSecret, T as Insertable, U as configsSchema, V as WorkspaceSettingsTable, W as environmentSecretsSchema, X as variantVersionsSchema, Y as targetingRulesSchema, Z as variantsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Selectable, k as ProviderConfigsTable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as providerConfigsSchema, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as VariantsTable } from "../index-CVGG0zoD.mjs";
|
|
2
2
|
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as variantsSchema, S as variantVersionsSchema, _ as environmentsSchema, a as matchType, b as schemas, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "../db-
|
|
1
|
+
import { C as variantsSchema, S as variantVersionsSchema, _ as environmentsSchema, a as matchType, b as schemas, d as validatePartialTableData, f as validateTableData, g as environmentSecretsSchema, h as configsSchema, i as getMigrations, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as llmRequestsSchema, w as workspaceSettingsSchema, x as targetingRulesSchema, y as providerConfigsSchema } from "../db-BGDhJROC.mjs";
|
|
2
2
|
|
|
3
3
|
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -12937,6 +12937,7 @@ const workspaceSettingsSchema = object({
|
|
|
12937
12937
|
const providerConfigsSchema = object({
|
|
12938
12938
|
...baseSchema,
|
|
12939
12939
|
providerId: string$1(),
|
|
12940
|
+
name: string$1().nullable().optional(),
|
|
12940
12941
|
config: record(string$1(), unknown()),
|
|
12941
12942
|
enabled: boolean$1().default(true)
|
|
12942
12943
|
});
|
|
@@ -12946,6 +12947,7 @@ const llmRequestsSchema = object({
|
|
|
12946
12947
|
configId: string$1().uuid().nullable().optional(),
|
|
12947
12948
|
variantId: string$1().uuid().nullable().optional(),
|
|
12948
12949
|
environmentId: string$1().uuid().nullable().optional(),
|
|
12950
|
+
providerConfigId: string$1().uuid().nullable().optional(),
|
|
12949
12951
|
provider: string$1(),
|
|
12950
12952
|
model: string$1(),
|
|
12951
12953
|
promptTokens: number$1().int().default(0),
|
|
@@ -13237,9 +13239,10 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13237
13239
|
type: "uuid",
|
|
13238
13240
|
primaryKey: true
|
|
13239
13241
|
},
|
|
13240
|
-
providerId: {
|
|
13242
|
+
providerId: { type: "text" },
|
|
13243
|
+
name: {
|
|
13241
13244
|
type: "text",
|
|
13242
|
-
|
|
13245
|
+
nullable: true
|
|
13243
13246
|
},
|
|
13244
13247
|
config: {
|
|
13245
13248
|
type: "jsonb",
|
|
@@ -13293,6 +13296,14 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13293
13296
|
column: "id"
|
|
13294
13297
|
}
|
|
13295
13298
|
},
|
|
13299
|
+
providerConfigId: {
|
|
13300
|
+
type: "uuid",
|
|
13301
|
+
nullable: true,
|
|
13302
|
+
references: {
|
|
13303
|
+
table: "provider_configs",
|
|
13304
|
+
column: "id"
|
|
13305
|
+
}
|
|
13306
|
+
},
|
|
13296
13307
|
provider: { type: "text" },
|
|
13297
13308
|
model: { type: "text" },
|
|
13298
13309
|
promptTokens: {
|
|
@@ -13678,6 +13689,43 @@ async function getMigrations$1(db, dbType, options) {
|
|
|
13678
13689
|
};
|
|
13679
13690
|
}
|
|
13680
13691
|
/**
|
|
13692
|
+
* Fix legacy constraints that may exist from previous schema versions
|
|
13693
|
+
*/
|
|
13694
|
+
async function fixLegacyConstraints(db, dbType, schema = "public") {
|
|
13695
|
+
if (dbType === "postgres") {
|
|
13696
|
+
logger.info(`Auto-migration: Checking for legacy constraints in schema '${schema}'...`);
|
|
13697
|
+
try {
|
|
13698
|
+
await sql`ALTER TABLE ${sql.ref(schema)}."provider_configs" DROP CONSTRAINT IF EXISTS "provider_configs_providerId_key"`.execute(db);
|
|
13699
|
+
await sql`ALTER TABLE ${sql.ref(schema)}."provider_configs" DROP CONSTRAINT IF EXISTS "provider_configs_providerid_key"`.execute(db);
|
|
13700
|
+
} catch (err) {
|
|
13701
|
+
logger.warn(`Auto-migration: Failed to drop specific legacy constraint: ${err}`);
|
|
13702
|
+
}
|
|
13703
|
+
try {
|
|
13704
|
+
const result = await sql`
|
|
13705
|
+
SELECT conname
|
|
13706
|
+
FROM pg_constraint c
|
|
13707
|
+
JOIN pg_namespace n ON n.oid = c.connamespace
|
|
13708
|
+
JOIN pg_class t ON t.oid = c.conrelid
|
|
13709
|
+
WHERE n.nspname = ${schema}
|
|
13710
|
+
AND t.relname = 'provider_configs'
|
|
13711
|
+
AND c.contype = 'u'
|
|
13712
|
+
AND EXISTS (
|
|
13713
|
+
SELECT 1 FROM pg_attribute a
|
|
13714
|
+
WHERE a.attrelid = c.conrelid
|
|
13715
|
+
AND a.attnum = ANY(c.conkey)
|
|
13716
|
+
AND lower(a.attname) = 'providerid'
|
|
13717
|
+
)
|
|
13718
|
+
`.execute(db);
|
|
13719
|
+
for (const row of result.rows) {
|
|
13720
|
+
logger.info(`Auto-migration: Removing legacy unique constraint '${row.conname}' from provider_configs`);
|
|
13721
|
+
await sql`ALTER TABLE ${sql.ref(schema)}."provider_configs" DROP CONSTRAINT ${sql.ref(row.conname)}`.execute(db);
|
|
13722
|
+
}
|
|
13723
|
+
} catch (err) {
|
|
13724
|
+
logger.warn(`Auto-migration: Failed to cleanup legacy constraints: ${err}`);
|
|
13725
|
+
}
|
|
13726
|
+
}
|
|
13727
|
+
}
|
|
13728
|
+
/**
|
|
13681
13729
|
* Run migrations if needed
|
|
13682
13730
|
* @param db - Kysely database instance
|
|
13683
13731
|
* @param dbType - Database type
|
|
@@ -13685,6 +13733,13 @@ async function getMigrations$1(db, dbType, options) {
|
|
|
13685
13733
|
* @returns true if migrations were run, false otherwise
|
|
13686
13734
|
*/
|
|
13687
13735
|
async function runAutoMigrations(db, dbType, options) {
|
|
13736
|
+
let currentSchema = options?.schema || "public";
|
|
13737
|
+
if (dbType === "postgres" && !options?.schema) currentSchema = await getPostgresSchema(db);
|
|
13738
|
+
try {
|
|
13739
|
+
await fixLegacyConstraints(db, dbType, currentSchema);
|
|
13740
|
+
} catch (error$47) {
|
|
13741
|
+
logger.debug(`Constraint fixup skipped or failed: ${error$47}`);
|
|
13742
|
+
}
|
|
13688
13743
|
const { toBeCreated, toBeAdded, runMigrations, needsMigration } = await getMigrations$1(db, dbType, options);
|
|
13689
13744
|
if (!needsMigration) {
|
|
13690
13745
|
logger.debug("Auto-migration: No migrations needed");
|
|
@@ -12961,6 +12961,7 @@ const workspaceSettingsSchema = object({
|
|
|
12961
12961
|
const providerConfigsSchema = object({
|
|
12962
12962
|
...baseSchema,
|
|
12963
12963
|
providerId: string$1(),
|
|
12964
|
+
name: string$1().nullable().optional(),
|
|
12964
12965
|
config: record(string$1(), unknown()),
|
|
12965
12966
|
enabled: boolean$1().default(true)
|
|
12966
12967
|
});
|
|
@@ -12970,6 +12971,7 @@ const llmRequestsSchema = object({
|
|
|
12970
12971
|
configId: string$1().uuid().nullable().optional(),
|
|
12971
12972
|
variantId: string$1().uuid().nullable().optional(),
|
|
12972
12973
|
environmentId: string$1().uuid().nullable().optional(),
|
|
12974
|
+
providerConfigId: string$1().uuid().nullable().optional(),
|
|
12973
12975
|
provider: string$1(),
|
|
12974
12976
|
model: string$1(),
|
|
12975
12977
|
promptTokens: number$1().int().default(0),
|
|
@@ -13261,9 +13263,10 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13261
13263
|
type: "uuid",
|
|
13262
13264
|
primaryKey: true
|
|
13263
13265
|
},
|
|
13264
|
-
providerId: {
|
|
13266
|
+
providerId: { type: "text" },
|
|
13267
|
+
name: {
|
|
13265
13268
|
type: "text",
|
|
13266
|
-
|
|
13269
|
+
nullable: true
|
|
13267
13270
|
},
|
|
13268
13271
|
config: {
|
|
13269
13272
|
type: "jsonb",
|
|
@@ -13317,6 +13320,14 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13317
13320
|
column: "id"
|
|
13318
13321
|
}
|
|
13319
13322
|
},
|
|
13323
|
+
providerConfigId: {
|
|
13324
|
+
type: "uuid",
|
|
13325
|
+
nullable: true,
|
|
13326
|
+
references: {
|
|
13327
|
+
table: "provider_configs",
|
|
13328
|
+
column: "id"
|
|
13329
|
+
}
|
|
13330
|
+
},
|
|
13320
13331
|
provider: { type: "text" },
|
|
13321
13332
|
model: { type: "text" },
|
|
13322
13333
|
promptTokens: {
|
|
@@ -13702,6 +13713,43 @@ async function getMigrations(db, dbType, options) {
|
|
|
13702
13713
|
};
|
|
13703
13714
|
}
|
|
13704
13715
|
/**
|
|
13716
|
+
* Fix legacy constraints that may exist from previous schema versions
|
|
13717
|
+
*/
|
|
13718
|
+
async function fixLegacyConstraints(db, dbType, schema = "public") {
|
|
13719
|
+
if (dbType === "postgres") {
|
|
13720
|
+
logger.info(`Auto-migration: Checking for legacy constraints in schema '${schema}'...`);
|
|
13721
|
+
try {
|
|
13722
|
+
await kysely.sql`ALTER TABLE ${kysely.sql.ref(schema)}."provider_configs" DROP CONSTRAINT IF EXISTS "provider_configs_providerId_key"`.execute(db);
|
|
13723
|
+
await kysely.sql`ALTER TABLE ${kysely.sql.ref(schema)}."provider_configs" DROP CONSTRAINT IF EXISTS "provider_configs_providerid_key"`.execute(db);
|
|
13724
|
+
} catch (err) {
|
|
13725
|
+
logger.warn(`Auto-migration: Failed to drop specific legacy constraint: ${err}`);
|
|
13726
|
+
}
|
|
13727
|
+
try {
|
|
13728
|
+
const result = await kysely.sql`
|
|
13729
|
+
SELECT conname
|
|
13730
|
+
FROM pg_constraint c
|
|
13731
|
+
JOIN pg_namespace n ON n.oid = c.connamespace
|
|
13732
|
+
JOIN pg_class t ON t.oid = c.conrelid
|
|
13733
|
+
WHERE n.nspname = ${schema}
|
|
13734
|
+
AND t.relname = 'provider_configs'
|
|
13735
|
+
AND c.contype = 'u'
|
|
13736
|
+
AND EXISTS (
|
|
13737
|
+
SELECT 1 FROM pg_attribute a
|
|
13738
|
+
WHERE a.attrelid = c.conrelid
|
|
13739
|
+
AND a.attnum = ANY(c.conkey)
|
|
13740
|
+
AND lower(a.attname) = 'providerid'
|
|
13741
|
+
)
|
|
13742
|
+
`.execute(db);
|
|
13743
|
+
for (const row of result.rows) {
|
|
13744
|
+
logger.info(`Auto-migration: Removing legacy unique constraint '${row.conname}' from provider_configs`);
|
|
13745
|
+
await kysely.sql`ALTER TABLE ${kysely.sql.ref(schema)}."provider_configs" DROP CONSTRAINT ${kysely.sql.ref(row.conname)}`.execute(db);
|
|
13746
|
+
}
|
|
13747
|
+
} catch (err) {
|
|
13748
|
+
logger.warn(`Auto-migration: Failed to cleanup legacy constraints: ${err}`);
|
|
13749
|
+
}
|
|
13750
|
+
}
|
|
13751
|
+
}
|
|
13752
|
+
/**
|
|
13705
13753
|
* Run migrations if needed
|
|
13706
13754
|
* @param db - Kysely database instance
|
|
13707
13755
|
* @param dbType - Database type
|
|
@@ -13709,6 +13757,13 @@ async function getMigrations(db, dbType, options) {
|
|
|
13709
13757
|
* @returns true if migrations were run, false otherwise
|
|
13710
13758
|
*/
|
|
13711
13759
|
async function runAutoMigrations(db, dbType, options) {
|
|
13760
|
+
let currentSchema = options?.schema || "public";
|
|
13761
|
+
if (dbType === "postgres" && !options?.schema) currentSchema = await getPostgresSchema(db);
|
|
13762
|
+
try {
|
|
13763
|
+
await fixLegacyConstraints(db, dbType, currentSchema);
|
|
13764
|
+
} catch (error$47) {
|
|
13765
|
+
logger.debug(`Constraint fixup skipped or failed: ${error$47}`);
|
|
13766
|
+
}
|
|
13712
13767
|
const { toBeCreated, toBeAdded, runMigrations, needsMigration } = await getMigrations(db, dbType, options);
|
|
13713
13768
|
if (!needsMigration) {
|
|
13714
13769
|
logger.debug("Auto-migration: No migrations needed");
|
|
@@ -13774,12 +13829,12 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13774
13829
|
case "sqlite":
|
|
13775
13830
|
if ("aggregate" in rawConnection && !("createSession" in rawConnection)) dialect = new kysely.SqliteDialect({ database: rawConnection });
|
|
13776
13831
|
else if ("fileControl" in rawConnection) {
|
|
13777
|
-
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-
|
|
13832
|
+
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-t1xHHJDz.cjs"));
|
|
13778
13833
|
dialect = new BunSqliteDialect({ database: rawConnection });
|
|
13779
13834
|
} else if ("createSession" in rawConnection && typeof window === "undefined") try {
|
|
13780
13835
|
const { DatabaseSync } = await import("node:sqlite");
|
|
13781
13836
|
if (rawConnection instanceof DatabaseSync) {
|
|
13782
|
-
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-
|
|
13837
|
+
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-D4V5e49r.cjs"));
|
|
13783
13838
|
dialect = new NodeSqliteDialect({ database: rawConnection });
|
|
13784
13839
|
}
|
|
13785
13840
|
} catch {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod0 from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/db/schema.d.ts
|
|
@@ -72,6 +72,7 @@ declare const workspaceSettingsSchema: z.ZodObject<{
|
|
|
72
72
|
}, z.core.$strip>;
|
|
73
73
|
declare const providerConfigsSchema: z.ZodObject<{
|
|
74
74
|
providerId: z.ZodString;
|
|
75
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
76
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
77
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
77
78
|
id: z.ZodString;
|
|
@@ -83,6 +84,7 @@ declare const llmRequestsSchema: z.ZodObject<{
|
|
|
83
84
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
85
|
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
86
|
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
88
|
provider: z.ZodString;
|
|
87
89
|
model: z.ZodString;
|
|
88
90
|
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
@@ -169,6 +171,7 @@ interface WorkspaceSettingsTable extends BaseTable {
|
|
|
169
171
|
}
|
|
170
172
|
interface ProviderConfigsTable extends BaseTable {
|
|
171
173
|
providerId: string;
|
|
174
|
+
name: string | null;
|
|
172
175
|
config: ColumnType<Record<string, unknown>, string, string>;
|
|
173
176
|
enabled: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
174
177
|
}
|
|
@@ -177,6 +180,7 @@ interface LLMRequestsTable extends BaseTable {
|
|
|
177
180
|
configId: string | null;
|
|
178
181
|
variantId: string | null;
|
|
179
182
|
environmentId: string | null;
|
|
183
|
+
providerConfigId: string | null;
|
|
180
184
|
provider: string;
|
|
181
185
|
model: string;
|
|
182
186
|
promptTokens: ColumnType<number, number | undefined, number | undefined>;
|
|
@@ -567,6 +571,7 @@ declare const SCHEMA_METADATA: {
|
|
|
567
571
|
readonly order: 9;
|
|
568
572
|
readonly schema: z.ZodObject<{
|
|
569
573
|
providerId: z.ZodString;
|
|
574
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
570
575
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
571
576
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
572
577
|
id: z.ZodString;
|
|
@@ -580,7 +585,10 @@ declare const SCHEMA_METADATA: {
|
|
|
580
585
|
};
|
|
581
586
|
readonly providerId: {
|
|
582
587
|
readonly type: "text";
|
|
583
|
-
|
|
588
|
+
};
|
|
589
|
+
readonly name: {
|
|
590
|
+
readonly type: "text";
|
|
591
|
+
readonly nullable: true;
|
|
584
592
|
};
|
|
585
593
|
readonly config: {
|
|
586
594
|
readonly type: "jsonb";
|
|
@@ -608,6 +616,7 @@ declare const SCHEMA_METADATA: {
|
|
|
608
616
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
617
|
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
618
|
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
619
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
611
620
|
provider: z.ZodString;
|
|
612
621
|
model: z.ZodString;
|
|
613
622
|
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
@@ -659,6 +668,14 @@ declare const SCHEMA_METADATA: {
|
|
|
659
668
|
readonly column: "id";
|
|
660
669
|
};
|
|
661
670
|
};
|
|
671
|
+
readonly providerConfigId: {
|
|
672
|
+
readonly type: "uuid";
|
|
673
|
+
readonly nullable: true;
|
|
674
|
+
readonly references: {
|
|
675
|
+
readonly table: "provider_configs";
|
|
676
|
+
readonly column: "id";
|
|
677
|
+
};
|
|
678
|
+
};
|
|
662
679
|
readonly provider: {
|
|
663
680
|
readonly type: "text";
|
|
664
681
|
};
|
|
@@ -801,6 +818,7 @@ declare const schemas: {
|
|
|
801
818
|
}, z.core.$strip>;
|
|
802
819
|
readonly provider_configs: z.ZodObject<{
|
|
803
820
|
providerId: z.ZodString;
|
|
821
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
804
822
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
805
823
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
806
824
|
id: z.ZodString;
|
|
@@ -812,6 +830,7 @@ declare const schemas: {
|
|
|
812
830
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
831
|
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
814
832
|
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
833
|
+
providerConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
834
|
provider: z.ZodString;
|
|
816
835
|
model: z.ZodString;
|
|
817
836
|
promptTokens: z.ZodDefault<z.ZodNumber>;
|
|
@@ -838,29 +857,29 @@ declare const schemas: {
|
|
|
838
857
|
* Validate data against table schema
|
|
839
858
|
* Useful for runtime validation before inserting/updating
|
|
840
859
|
*/
|
|
841
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
860
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
842
861
|
slug: string;
|
|
843
862
|
id: string;
|
|
844
863
|
createdAt: Date;
|
|
845
864
|
updatedAt: Date;
|
|
846
865
|
name?: string | undefined;
|
|
847
|
-
}> |
|
|
866
|
+
}> | zod0.ZodSafeParseError<{
|
|
848
867
|
slug: string;
|
|
849
868
|
id: string;
|
|
850
869
|
createdAt: Date;
|
|
851
870
|
updatedAt: Date;
|
|
852
871
|
name?: string | undefined;
|
|
853
|
-
}> |
|
|
872
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
854
873
|
name: string;
|
|
855
874
|
id: string;
|
|
856
875
|
createdAt: Date;
|
|
857
876
|
updatedAt: Date;
|
|
858
|
-
}> |
|
|
877
|
+
}> | zod0.ZodSafeParseError<{
|
|
859
878
|
name: string;
|
|
860
879
|
id: string;
|
|
861
880
|
createdAt: Date;
|
|
862
881
|
updatedAt: Date;
|
|
863
|
-
}> |
|
|
882
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
864
883
|
variantId: string;
|
|
865
884
|
version: number;
|
|
866
885
|
provider: string;
|
|
@@ -869,7 +888,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
869
888
|
id: string;
|
|
870
889
|
createdAt: Date;
|
|
871
890
|
updatedAt: Date;
|
|
872
|
-
}> |
|
|
891
|
+
}> | zod0.ZodSafeParseError<{
|
|
873
892
|
variantId: string;
|
|
874
893
|
version: number;
|
|
875
894
|
provider: string;
|
|
@@ -878,33 +897,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
878
897
|
id: string;
|
|
879
898
|
createdAt: Date;
|
|
880
899
|
updatedAt: Date;
|
|
881
|
-
}> |
|
|
900
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
882
901
|
environmentId: string;
|
|
883
902
|
keyName: string;
|
|
884
903
|
keyValue: string;
|
|
885
904
|
id: string;
|
|
886
905
|
createdAt: Date;
|
|
887
906
|
updatedAt: Date;
|
|
888
|
-
}> |
|
|
907
|
+
}> | zod0.ZodSafeParseError<{
|
|
889
908
|
environmentId: string;
|
|
890
909
|
keyName: string;
|
|
891
910
|
keyValue: string;
|
|
892
911
|
id: string;
|
|
893
912
|
createdAt: Date;
|
|
894
913
|
updatedAt: Date;
|
|
895
|
-
}> |
|
|
914
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
896
915
|
configId: string;
|
|
897
916
|
variantId: string;
|
|
898
917
|
id: string;
|
|
899
918
|
createdAt: Date;
|
|
900
919
|
updatedAt: Date;
|
|
901
|
-
}> |
|
|
920
|
+
}> | zod0.ZodSafeParseError<{
|
|
902
921
|
configId: string;
|
|
903
922
|
variantId: string;
|
|
904
923
|
id: string;
|
|
905
924
|
createdAt: Date;
|
|
906
925
|
updatedAt: Date;
|
|
907
|
-
}> |
|
|
926
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
908
927
|
environmentId: string;
|
|
909
928
|
configId: string;
|
|
910
929
|
configVariantId: string;
|
|
@@ -916,7 +935,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
916
935
|
createdAt: Date;
|
|
917
936
|
updatedAt: Date;
|
|
918
937
|
variantVersionId?: string | null | undefined;
|
|
919
|
-
}> |
|
|
938
|
+
}> | zod0.ZodSafeParseError<{
|
|
920
939
|
environmentId: string;
|
|
921
940
|
configId: string;
|
|
922
941
|
configVariantId: string;
|
|
@@ -928,35 +947,37 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
928
947
|
createdAt: Date;
|
|
929
948
|
updatedAt: Date;
|
|
930
949
|
variantVersionId?: string | null | undefined;
|
|
931
|
-
}> |
|
|
950
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
932
951
|
setupComplete: boolean;
|
|
933
952
|
id: string;
|
|
934
953
|
createdAt: Date;
|
|
935
954
|
updatedAt: Date;
|
|
936
955
|
name?: string | null | undefined;
|
|
937
956
|
superAdminId?: string | null | undefined;
|
|
938
|
-
}> |
|
|
957
|
+
}> | zod0.ZodSafeParseError<{
|
|
939
958
|
setupComplete: boolean;
|
|
940
959
|
id: string;
|
|
941
960
|
createdAt: Date;
|
|
942
961
|
updatedAt: Date;
|
|
943
962
|
name?: string | null | undefined;
|
|
944
963
|
superAdminId?: string | null | undefined;
|
|
945
|
-
}> |
|
|
964
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
946
965
|
providerId: string;
|
|
947
966
|
config: Record<string, unknown>;
|
|
948
967
|
enabled: boolean;
|
|
949
968
|
id: string;
|
|
950
969
|
createdAt: Date;
|
|
951
970
|
updatedAt: Date;
|
|
952
|
-
|
|
971
|
+
name?: string | null | undefined;
|
|
972
|
+
}> | zod0.ZodSafeParseError<{
|
|
953
973
|
providerId: string;
|
|
954
974
|
config: Record<string, unknown>;
|
|
955
975
|
enabled: boolean;
|
|
956
976
|
id: string;
|
|
957
977
|
createdAt: Date;
|
|
958
978
|
updatedAt: Date;
|
|
959
|
-
|
|
979
|
+
name?: string | null | undefined;
|
|
980
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
960
981
|
requestId: string;
|
|
961
982
|
provider: string;
|
|
962
983
|
model: string;
|
|
@@ -978,8 +999,9 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
978
999
|
configId?: string | null | undefined;
|
|
979
1000
|
variantId?: string | null | undefined;
|
|
980
1001
|
environmentId?: string | null | undefined;
|
|
1002
|
+
providerConfigId?: string | null | undefined;
|
|
981
1003
|
userId?: string | null | undefined;
|
|
982
|
-
}> |
|
|
1004
|
+
}> | zod0.ZodSafeParseError<{
|
|
983
1005
|
requestId: string;
|
|
984
1006
|
provider: string;
|
|
985
1007
|
model: string;
|
|
@@ -1001,22 +1023,23 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1001
1023
|
configId?: string | null | undefined;
|
|
1002
1024
|
variantId?: string | null | undefined;
|
|
1003
1025
|
environmentId?: string | null | undefined;
|
|
1026
|
+
providerConfigId?: string | null | undefined;
|
|
1004
1027
|
userId?: string | null | undefined;
|
|
1005
1028
|
}>;
|
|
1006
1029
|
/**
|
|
1007
1030
|
* Validate partial data (for updates)
|
|
1008
1031
|
*/
|
|
1009
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
1032
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
1010
1033
|
name?: string | undefined;
|
|
1011
1034
|
id?: string | undefined;
|
|
1012
1035
|
createdAt?: Date | undefined;
|
|
1013
1036
|
updatedAt?: Date | undefined;
|
|
1014
|
-
}> |
|
|
1037
|
+
}> | zod0.ZodSafeParseError<{
|
|
1015
1038
|
name?: string | undefined;
|
|
1016
1039
|
id?: string | undefined;
|
|
1017
1040
|
createdAt?: Date | undefined;
|
|
1018
1041
|
updatedAt?: Date | undefined;
|
|
1019
|
-
}> |
|
|
1042
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1020
1043
|
variantId?: string | undefined;
|
|
1021
1044
|
version?: number | undefined;
|
|
1022
1045
|
provider?: string | undefined;
|
|
@@ -1025,7 +1048,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1025
1048
|
id?: string | undefined;
|
|
1026
1049
|
createdAt?: Date | undefined;
|
|
1027
1050
|
updatedAt?: Date | undefined;
|
|
1028
|
-
}> |
|
|
1051
|
+
}> | zod0.ZodSafeParseError<{
|
|
1029
1052
|
variantId?: string | undefined;
|
|
1030
1053
|
version?: number | undefined;
|
|
1031
1054
|
provider?: string | undefined;
|
|
@@ -1034,33 +1057,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1034
1057
|
id?: string | undefined;
|
|
1035
1058
|
createdAt?: Date | undefined;
|
|
1036
1059
|
updatedAt?: Date | undefined;
|
|
1037
|
-
}> |
|
|
1060
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1038
1061
|
environmentId?: string | undefined;
|
|
1039
1062
|
keyName?: string | undefined;
|
|
1040
1063
|
keyValue?: string | undefined;
|
|
1041
1064
|
id?: string | undefined;
|
|
1042
1065
|
createdAt?: Date | undefined;
|
|
1043
1066
|
updatedAt?: Date | undefined;
|
|
1044
|
-
}> |
|
|
1067
|
+
}> | zod0.ZodSafeParseError<{
|
|
1045
1068
|
environmentId?: string | undefined;
|
|
1046
1069
|
keyName?: string | undefined;
|
|
1047
1070
|
keyValue?: string | undefined;
|
|
1048
1071
|
id?: string | undefined;
|
|
1049
1072
|
createdAt?: Date | undefined;
|
|
1050
1073
|
updatedAt?: Date | undefined;
|
|
1051
|
-
}> |
|
|
1074
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1052
1075
|
configId?: string | undefined;
|
|
1053
1076
|
variantId?: string | undefined;
|
|
1054
1077
|
id?: string | undefined;
|
|
1055
1078
|
createdAt?: Date | undefined;
|
|
1056
1079
|
updatedAt?: Date | undefined;
|
|
1057
|
-
}> |
|
|
1080
|
+
}> | zod0.ZodSafeParseError<{
|
|
1058
1081
|
configId?: string | undefined;
|
|
1059
1082
|
variantId?: string | undefined;
|
|
1060
1083
|
id?: string | undefined;
|
|
1061
1084
|
createdAt?: Date | undefined;
|
|
1062
1085
|
updatedAt?: Date | undefined;
|
|
1063
|
-
}> |
|
|
1086
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1064
1087
|
environmentId?: string | undefined;
|
|
1065
1088
|
configId?: string | undefined;
|
|
1066
1089
|
configVariantId?: string | undefined;
|
|
@@ -1072,7 +1095,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1072
1095
|
id?: string | undefined;
|
|
1073
1096
|
createdAt?: Date | undefined;
|
|
1074
1097
|
updatedAt?: Date | undefined;
|
|
1075
|
-
}> |
|
|
1098
|
+
}> | zod0.ZodSafeParseError<{
|
|
1076
1099
|
environmentId?: string | undefined;
|
|
1077
1100
|
configId?: string | undefined;
|
|
1078
1101
|
configVariantId?: string | undefined;
|
|
@@ -1084,39 +1107,42 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1084
1107
|
id?: string | undefined;
|
|
1085
1108
|
createdAt?: Date | undefined;
|
|
1086
1109
|
updatedAt?: Date | undefined;
|
|
1087
|
-
}> |
|
|
1110
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1088
1111
|
name?: string | null | undefined;
|
|
1089
1112
|
setupComplete?: boolean | undefined;
|
|
1090
1113
|
superAdminId?: string | null | undefined;
|
|
1091
1114
|
id?: string | undefined;
|
|
1092
1115
|
createdAt?: Date | undefined;
|
|
1093
1116
|
updatedAt?: Date | undefined;
|
|
1094
|
-
}> |
|
|
1117
|
+
}> | zod0.ZodSafeParseError<{
|
|
1095
1118
|
name?: string | null | undefined;
|
|
1096
1119
|
setupComplete?: boolean | undefined;
|
|
1097
1120
|
superAdminId?: string | null | undefined;
|
|
1098
1121
|
id?: string | undefined;
|
|
1099
1122
|
createdAt?: Date | undefined;
|
|
1100
1123
|
updatedAt?: Date | undefined;
|
|
1101
|
-
}> |
|
|
1124
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1102
1125
|
providerId?: string | undefined;
|
|
1126
|
+
name?: string | null | undefined;
|
|
1103
1127
|
config?: Record<string, unknown> | undefined;
|
|
1104
1128
|
enabled?: boolean | undefined;
|
|
1105
1129
|
id?: string | undefined;
|
|
1106
1130
|
createdAt?: Date | undefined;
|
|
1107
1131
|
updatedAt?: Date | undefined;
|
|
1108
|
-
}> |
|
|
1132
|
+
}> | zod0.ZodSafeParseError<{
|
|
1109
1133
|
providerId?: string | undefined;
|
|
1134
|
+
name?: string | null | undefined;
|
|
1110
1135
|
config?: Record<string, unknown> | undefined;
|
|
1111
1136
|
enabled?: boolean | undefined;
|
|
1112
1137
|
id?: string | undefined;
|
|
1113
1138
|
createdAt?: Date | undefined;
|
|
1114
1139
|
updatedAt?: Date | undefined;
|
|
1115
|
-
}> |
|
|
1140
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1116
1141
|
requestId?: string | undefined;
|
|
1117
1142
|
configId?: string | null | undefined;
|
|
1118
1143
|
variantId?: string | null | undefined;
|
|
1119
1144
|
environmentId?: string | null | undefined;
|
|
1145
|
+
providerConfigId?: string | null | undefined;
|
|
1120
1146
|
provider?: string | undefined;
|
|
1121
1147
|
model?: string | undefined;
|
|
1122
1148
|
promptTokens?: number | undefined;
|
|
@@ -1135,11 +1161,12 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1135
1161
|
id?: string | undefined;
|
|
1136
1162
|
createdAt?: Date | undefined;
|
|
1137
1163
|
updatedAt?: Date | undefined;
|
|
1138
|
-
}> |
|
|
1164
|
+
}> | zod0.ZodSafeParseError<{
|
|
1139
1165
|
requestId?: string | undefined;
|
|
1140
1166
|
configId?: string | null | undefined;
|
|
1141
1167
|
variantId?: string | null | undefined;
|
|
1142
1168
|
environmentId?: string | null | undefined;
|
|
1169
|
+
providerConfigId?: string | null | undefined;
|
|
1143
1170
|
provider?: string | undefined;
|
|
1144
1171
|
model?: string | undefined;
|
|
1145
1172
|
promptTokens?: number | undefined;
|
|
@@ -1221,6 +1248,7 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
1221
1248
|
id: string;
|
|
1222
1249
|
createdAt: Date;
|
|
1223
1250
|
updatedAt: Date;
|
|
1251
|
+
name?: string | null | undefined;
|
|
1224
1252
|
} | {
|
|
1225
1253
|
requestId: string;
|
|
1226
1254
|
provider: string;
|
|
@@ -1243,6 +1271,7 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
1243
1271
|
configId?: string | null | undefined;
|
|
1244
1272
|
variantId?: string | null | undefined;
|
|
1245
1273
|
environmentId?: string | null | undefined;
|
|
1274
|
+
providerConfigId?: string | null | undefined;
|
|
1246
1275
|
userId?: string | null | undefined;
|
|
1247
1276
|
};
|
|
1248
1277
|
/**
|
|
@@ -1296,6 +1325,7 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
1296
1325
|
updatedAt?: Date | undefined;
|
|
1297
1326
|
} | {
|
|
1298
1327
|
providerId?: string | undefined;
|
|
1328
|
+
name?: string | null | undefined;
|
|
1299
1329
|
config?: Record<string, unknown> | undefined;
|
|
1300
1330
|
enabled?: boolean | undefined;
|
|
1301
1331
|
id?: string | undefined;
|
|
@@ -1306,6 +1336,7 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
1306
1336
|
configId?: string | null | undefined;
|
|
1307
1337
|
variantId?: string | null | undefined;
|
|
1308
1338
|
environmentId?: string | null | undefined;
|
|
1339
|
+
providerConfigId?: string | null | undefined;
|
|
1309
1340
|
provider?: string | undefined;
|
|
1310
1341
|
model?: string | undefined;
|
|
1311
1342
|
promptTokens?: number | undefined;
|