@llmops/core 0.1.9-beta.2 → 0.1.9-beta.4
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-Kl6MiKeQ.cjs → bun-sqlite-dialect-BsBCR8hT.cjs} +1 -1
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/{db-CpVh76Wq.cjs → db-1Ar4ItM_.cjs} +10 -8
- package/dist/{db-WrnSOT3M.mjs → db-BokBhuLo.mjs} +8 -6
- package/dist/{index-BTE44_Jz.d.mts → index-DILebhD2.d.mts} +31 -31
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +226 -165
- package/dist/index.d.mts +468 -407
- package/dist/index.mjs +2 -2
- package/dist/{node-sqlite-dialect-BkZpAjVL.cjs → node-sqlite-dialect-BnUFpWfa.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as TableName, B as configVariantsSchema, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as VariantVersion, G as schemas, H as environmentSecretsSchema, I as VariantVersionsTable, J as variantsSchema, K as targetingRulesSchema, L as VariantsTable, M as TargetingRulesTable, N as Updateable, O as SCHEMA_METADATA, P as Variant, R as WorkspaceSettings, S as EnvironmentSecret, T as Insertable, U as environmentsSchema, V as configsSchema, W as llmRequestsSchema, Y as workspaceSettingsSchema, _ 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 TargetingRule, k as Selectable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as variantVersionsSchema, 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 WorkspaceSettingsTable } from "../index-
|
|
1
|
+
import { A as TableName, B as configVariantsSchema, C as EnvironmentSecretsTable, D as LLMRequestsTable, E as LLMRequest, F as VariantVersion, G as schemas, H as environmentSecretsSchema, I as VariantVersionsTable, J as variantsSchema, K as targetingRulesSchema, L as VariantsTable, M as TargetingRulesTable, N as Updateable, O as SCHEMA_METADATA, P as Variant, R as WorkspaceSettings, S as EnvironmentSecret, T as Insertable, U as environmentsSchema, V as configsSchema, W as llmRequestsSchema, Y as workspaceSettingsSchema, _ 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 TargetingRule, k as Selectable, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, q as variantVersionsSchema, 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 WorkspaceSettingsTable } from "../index-DILebhD2.mjs";
|
|
2
2
|
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, 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, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as workspaceSettingsSchema, S as variantsSchema, _ as environmentsSchema, a as matchType, b as targetingRulesSchema, 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, x as variantVersionsSchema, y as schemas } from "../db-
|
|
1
|
+
import { C as workspaceSettingsSchema, S as variantsSchema, _ as environmentsSchema, a as matchType, b as targetingRulesSchema, 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, x as variantVersionsSchema, y as schemas } from "../db-BokBhuLo.mjs";
|
|
2
2
|
|
|
3
3
|
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -12868,14 +12868,16 @@ const logger = (0, pino.default)();
|
|
|
12868
12868
|
/**
|
|
12869
12869
|
* Get Better Auth client options
|
|
12870
12870
|
*
|
|
12871
|
-
* @param
|
|
12872
|
-
* When using PostgreSQL with custom schema, pass { db, type } to ensure
|
|
12873
|
-
* Better Auth uses the correctly configured Kysely instance
|
|
12871
|
+
* @param options - Auth client options including database config and hooks
|
|
12874
12872
|
*/
|
|
12875
|
-
const getAuthClientOptions = (
|
|
12873
|
+
const getAuthClientOptions = (options) => {
|
|
12874
|
+
const { database, onUserCreated } = options;
|
|
12876
12875
|
return {
|
|
12877
12876
|
database,
|
|
12878
|
-
emailAndPassword: { enabled: true }
|
|
12877
|
+
emailAndPassword: { enabled: true },
|
|
12878
|
+
databaseHooks: onUserCreated ? { user: { create: { after: async (user) => {
|
|
12879
|
+
await onUserCreated(user.id);
|
|
12880
|
+
} } } } : void 0
|
|
12879
12881
|
};
|
|
12880
12882
|
};
|
|
12881
12883
|
|
|
@@ -13118,7 +13120,7 @@ async function getMigrations(db, dbType, options) {
|
|
|
13118
13120
|
});
|
|
13119
13121
|
migrations.push(builder);
|
|
13120
13122
|
}
|
|
13121
|
-
const { toBeAdded: authChangesToBeAdded, toBeCreated: authChangesToBeCreated, runMigrations: runAuthMigrations } = await (0, better_auth_db.getMigrations)(getAuthClientOptions(options?.rawConnection));
|
|
13123
|
+
const { toBeAdded: authChangesToBeAdded, toBeCreated: authChangesToBeCreated, runMigrations: runAuthMigrations } = await (0, better_auth_db.getMigrations)(getAuthClientOptions({ database: options?.rawConnection }));
|
|
13122
13124
|
async function runMigrations() {
|
|
13123
13125
|
for (const migration of migrations) await migration.execute();
|
|
13124
13126
|
await runAuthMigrations();
|
|
@@ -13208,12 +13210,12 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13208
13210
|
case "sqlite":
|
|
13209
13211
|
if ("aggregate" in rawConnection && !("createSession" in rawConnection)) dialect = new kysely.SqliteDialect({ database: rawConnection });
|
|
13210
13212
|
else if ("fileControl" in rawConnection) {
|
|
13211
|
-
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-
|
|
13213
|
+
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-BsBCR8hT.cjs"));
|
|
13212
13214
|
dialect = new BunSqliteDialect({ database: rawConnection });
|
|
13213
13215
|
} else if ("createSession" in rawConnection && typeof window === "undefined") try {
|
|
13214
13216
|
const { DatabaseSync } = await import("node:sqlite");
|
|
13215
13217
|
if (rawConnection instanceof DatabaseSync) {
|
|
13216
|
-
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-
|
|
13218
|
+
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-BnUFpWfa.cjs"));
|
|
13217
13219
|
dialect = new NodeSqliteDialect({ database: rawConnection });
|
|
13218
13220
|
}
|
|
13219
13221
|
} catch {}
|
|
@@ -12844,14 +12844,16 @@ const logger = pino();
|
|
|
12844
12844
|
/**
|
|
12845
12845
|
* Get Better Auth client options
|
|
12846
12846
|
*
|
|
12847
|
-
* @param
|
|
12848
|
-
* When using PostgreSQL with custom schema, pass { db, type } to ensure
|
|
12849
|
-
* Better Auth uses the correctly configured Kysely instance
|
|
12847
|
+
* @param options - Auth client options including database config and hooks
|
|
12850
12848
|
*/
|
|
12851
|
-
const getAuthClientOptions = (
|
|
12849
|
+
const getAuthClientOptions = (options) => {
|
|
12850
|
+
const { database, onUserCreated } = options;
|
|
12852
12851
|
return {
|
|
12853
12852
|
database,
|
|
12854
|
-
emailAndPassword: { enabled: true }
|
|
12853
|
+
emailAndPassword: { enabled: true },
|
|
12854
|
+
databaseHooks: onUserCreated ? { user: { create: { after: async (user) => {
|
|
12855
|
+
await onUserCreated(user.id);
|
|
12856
|
+
} } } } : void 0
|
|
12855
12857
|
};
|
|
12856
12858
|
};
|
|
12857
12859
|
|
|
@@ -13094,7 +13096,7 @@ async function getMigrations$1(db, dbType, options) {
|
|
|
13094
13096
|
});
|
|
13095
13097
|
migrations.push(builder);
|
|
13096
13098
|
}
|
|
13097
|
-
const { toBeAdded: authChangesToBeAdded, toBeCreated: authChangesToBeCreated, runMigrations: runAuthMigrations } = await getMigrations(getAuthClientOptions(options?.rawConnection));
|
|
13099
|
+
const { toBeAdded: authChangesToBeAdded, toBeCreated: authChangesToBeCreated, runMigrations: runAuthMigrations } = await getMigrations(getAuthClientOptions({ database: options?.rawConnection }));
|
|
13098
13100
|
async function runMigrations() {
|
|
13099
13101
|
for (const migration of migrations) await migration.execute();
|
|
13100
13102
|
await runAuthMigrations();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod444 from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/db/schema.d.ts
|
|
@@ -777,29 +777,29 @@ declare const schemas: {
|
|
|
777
777
|
* Validate data against table schema
|
|
778
778
|
* Useful for runtime validation before inserting/updating
|
|
779
779
|
*/
|
|
780
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
780
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod444.ZodSafeParseSuccess<{
|
|
781
781
|
slug: string;
|
|
782
782
|
id: string;
|
|
783
783
|
createdAt: Date;
|
|
784
784
|
updatedAt: Date;
|
|
785
785
|
name?: string | undefined;
|
|
786
|
-
}> |
|
|
786
|
+
}> | zod444.ZodSafeParseError<{
|
|
787
787
|
slug: string;
|
|
788
788
|
id: string;
|
|
789
789
|
createdAt: Date;
|
|
790
790
|
updatedAt: Date;
|
|
791
791
|
name?: string | undefined;
|
|
792
|
-
}> |
|
|
792
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
793
793
|
name: string;
|
|
794
794
|
id: string;
|
|
795
795
|
createdAt: Date;
|
|
796
796
|
updatedAt: Date;
|
|
797
|
-
}> |
|
|
797
|
+
}> | zod444.ZodSafeParseError<{
|
|
798
798
|
name: string;
|
|
799
799
|
id: string;
|
|
800
800
|
createdAt: Date;
|
|
801
801
|
updatedAt: Date;
|
|
802
|
-
}> |
|
|
802
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
803
803
|
variantId: string;
|
|
804
804
|
version: number;
|
|
805
805
|
provider: string;
|
|
@@ -808,7 +808,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
808
808
|
id: string;
|
|
809
809
|
createdAt: Date;
|
|
810
810
|
updatedAt: Date;
|
|
811
|
-
}> |
|
|
811
|
+
}> | zod444.ZodSafeParseError<{
|
|
812
812
|
variantId: string;
|
|
813
813
|
version: number;
|
|
814
814
|
provider: string;
|
|
@@ -817,33 +817,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
817
817
|
id: string;
|
|
818
818
|
createdAt: Date;
|
|
819
819
|
updatedAt: Date;
|
|
820
|
-
}> |
|
|
820
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
821
821
|
environmentId: string;
|
|
822
822
|
keyName: string;
|
|
823
823
|
keyValue: string;
|
|
824
824
|
id: string;
|
|
825
825
|
createdAt: Date;
|
|
826
826
|
updatedAt: Date;
|
|
827
|
-
}> |
|
|
827
|
+
}> | zod444.ZodSafeParseError<{
|
|
828
828
|
environmentId: string;
|
|
829
829
|
keyName: string;
|
|
830
830
|
keyValue: string;
|
|
831
831
|
id: string;
|
|
832
832
|
createdAt: Date;
|
|
833
833
|
updatedAt: Date;
|
|
834
|
-
}> |
|
|
834
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
835
835
|
configId: string;
|
|
836
836
|
variantId: string;
|
|
837
837
|
id: string;
|
|
838
838
|
createdAt: Date;
|
|
839
839
|
updatedAt: Date;
|
|
840
|
-
}> |
|
|
840
|
+
}> | zod444.ZodSafeParseError<{
|
|
841
841
|
configId: string;
|
|
842
842
|
variantId: string;
|
|
843
843
|
id: string;
|
|
844
844
|
createdAt: Date;
|
|
845
845
|
updatedAt: Date;
|
|
846
|
-
}> |
|
|
846
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
847
847
|
environmentId: string;
|
|
848
848
|
configId: string;
|
|
849
849
|
configVariantId: string;
|
|
@@ -855,7 +855,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
855
855
|
createdAt: Date;
|
|
856
856
|
updatedAt: Date;
|
|
857
857
|
variantVersionId?: string | null | undefined;
|
|
858
|
-
}> |
|
|
858
|
+
}> | zod444.ZodSafeParseError<{
|
|
859
859
|
environmentId: string;
|
|
860
860
|
configId: string;
|
|
861
861
|
configVariantId: string;
|
|
@@ -867,21 +867,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
867
867
|
createdAt: Date;
|
|
868
868
|
updatedAt: Date;
|
|
869
869
|
variantVersionId?: string | null | undefined;
|
|
870
|
-
}> |
|
|
870
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
871
871
|
setupComplete: boolean;
|
|
872
872
|
id: string;
|
|
873
873
|
createdAt: Date;
|
|
874
874
|
updatedAt: Date;
|
|
875
875
|
name?: string | null | undefined;
|
|
876
876
|
superAdminId?: string | null | undefined;
|
|
877
|
-
}> |
|
|
877
|
+
}> | zod444.ZodSafeParseError<{
|
|
878
878
|
setupComplete: boolean;
|
|
879
879
|
id: string;
|
|
880
880
|
createdAt: Date;
|
|
881
881
|
updatedAt: Date;
|
|
882
882
|
name?: string | null | undefined;
|
|
883
883
|
superAdminId?: string | null | undefined;
|
|
884
|
-
}> |
|
|
884
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
885
885
|
requestId: string;
|
|
886
886
|
provider: string;
|
|
887
887
|
model: string;
|
|
@@ -904,7 +904,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
904
904
|
variantId?: string | null | undefined;
|
|
905
905
|
environmentId?: string | null | undefined;
|
|
906
906
|
userId?: string | null | undefined;
|
|
907
|
-
}> |
|
|
907
|
+
}> | zod444.ZodSafeParseError<{
|
|
908
908
|
requestId: string;
|
|
909
909
|
provider: string;
|
|
910
910
|
model: string;
|
|
@@ -931,17 +931,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
931
931
|
/**
|
|
932
932
|
* Validate partial data (for updates)
|
|
933
933
|
*/
|
|
934
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
934
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod444.ZodSafeParseSuccess<{
|
|
935
935
|
name?: string | undefined;
|
|
936
936
|
id?: string | undefined;
|
|
937
937
|
createdAt?: Date | undefined;
|
|
938
938
|
updatedAt?: Date | undefined;
|
|
939
|
-
}> |
|
|
939
|
+
}> | zod444.ZodSafeParseError<{
|
|
940
940
|
name?: string | undefined;
|
|
941
941
|
id?: string | undefined;
|
|
942
942
|
createdAt?: Date | undefined;
|
|
943
943
|
updatedAt?: Date | undefined;
|
|
944
|
-
}> |
|
|
944
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
945
945
|
variantId?: string | undefined;
|
|
946
946
|
version?: number | undefined;
|
|
947
947
|
provider?: string | undefined;
|
|
@@ -950,7 +950,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
950
950
|
id?: string | undefined;
|
|
951
951
|
createdAt?: Date | undefined;
|
|
952
952
|
updatedAt?: Date | undefined;
|
|
953
|
-
}> |
|
|
953
|
+
}> | zod444.ZodSafeParseError<{
|
|
954
954
|
variantId?: string | undefined;
|
|
955
955
|
version?: number | undefined;
|
|
956
956
|
provider?: string | undefined;
|
|
@@ -959,33 +959,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
959
959
|
id?: string | undefined;
|
|
960
960
|
createdAt?: Date | undefined;
|
|
961
961
|
updatedAt?: Date | undefined;
|
|
962
|
-
}> |
|
|
962
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
963
963
|
environmentId?: string | undefined;
|
|
964
964
|
keyName?: string | undefined;
|
|
965
965
|
keyValue?: string | undefined;
|
|
966
966
|
id?: string | undefined;
|
|
967
967
|
createdAt?: Date | undefined;
|
|
968
968
|
updatedAt?: Date | undefined;
|
|
969
|
-
}> |
|
|
969
|
+
}> | zod444.ZodSafeParseError<{
|
|
970
970
|
environmentId?: string | undefined;
|
|
971
971
|
keyName?: string | undefined;
|
|
972
972
|
keyValue?: string | undefined;
|
|
973
973
|
id?: string | undefined;
|
|
974
974
|
createdAt?: Date | undefined;
|
|
975
975
|
updatedAt?: Date | undefined;
|
|
976
|
-
}> |
|
|
976
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
977
977
|
configId?: string | undefined;
|
|
978
978
|
variantId?: string | undefined;
|
|
979
979
|
id?: string | undefined;
|
|
980
980
|
createdAt?: Date | undefined;
|
|
981
981
|
updatedAt?: Date | undefined;
|
|
982
|
-
}> |
|
|
982
|
+
}> | zod444.ZodSafeParseError<{
|
|
983
983
|
configId?: string | undefined;
|
|
984
984
|
variantId?: string | undefined;
|
|
985
985
|
id?: string | undefined;
|
|
986
986
|
createdAt?: Date | undefined;
|
|
987
987
|
updatedAt?: Date | undefined;
|
|
988
|
-
}> |
|
|
988
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
989
989
|
environmentId?: string | undefined;
|
|
990
990
|
configId?: string | undefined;
|
|
991
991
|
configVariantId?: string | undefined;
|
|
@@ -997,7 +997,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
997
997
|
id?: string | undefined;
|
|
998
998
|
createdAt?: Date | undefined;
|
|
999
999
|
updatedAt?: Date | undefined;
|
|
1000
|
-
}> |
|
|
1000
|
+
}> | zod444.ZodSafeParseError<{
|
|
1001
1001
|
environmentId?: string | undefined;
|
|
1002
1002
|
configId?: string | undefined;
|
|
1003
1003
|
configVariantId?: string | undefined;
|
|
@@ -1009,21 +1009,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1009
1009
|
id?: string | undefined;
|
|
1010
1010
|
createdAt?: Date | undefined;
|
|
1011
1011
|
updatedAt?: Date | undefined;
|
|
1012
|
-
}> |
|
|
1012
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
1013
1013
|
name?: string | null | undefined;
|
|
1014
1014
|
setupComplete?: boolean | undefined;
|
|
1015
1015
|
superAdminId?: string | null | undefined;
|
|
1016
1016
|
id?: string | undefined;
|
|
1017
1017
|
createdAt?: Date | undefined;
|
|
1018
1018
|
updatedAt?: Date | undefined;
|
|
1019
|
-
}> |
|
|
1019
|
+
}> | zod444.ZodSafeParseError<{
|
|
1020
1020
|
name?: string | null | undefined;
|
|
1021
1021
|
setupComplete?: boolean | undefined;
|
|
1022
1022
|
superAdminId?: string | null | undefined;
|
|
1023
1023
|
id?: string | undefined;
|
|
1024
1024
|
createdAt?: Date | undefined;
|
|
1025
1025
|
updatedAt?: Date | undefined;
|
|
1026
|
-
}> |
|
|
1026
|
+
}> | zod444.ZodSafeParseSuccess<{
|
|
1027
1027
|
requestId?: string | undefined;
|
|
1028
1028
|
configId?: string | null | undefined;
|
|
1029
1029
|
variantId?: string | null | undefined;
|
|
@@ -1046,7 +1046,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1046
1046
|
id?: string | undefined;
|
|
1047
1047
|
createdAt?: Date | undefined;
|
|
1048
1048
|
updatedAt?: Date | undefined;
|
|
1049
|
-
}> |
|
|
1049
|
+
}> | zod444.ZodSafeParseError<{
|
|
1050
1050
|
requestId?: string | undefined;
|
|
1051
1051
|
configId?: string | null | undefined;
|
|
1052
1052
|
variantId?: string | null | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_db = require('./db-
|
|
1
|
+
const require_db = require('./db-1Ar4ItM_.cjs');
|
|
2
2
|
let __llmops_gateway = require("@llmops/gateway");
|
|
3
3
|
__llmops_gateway = require_db.__toESM(__llmops_gateway);
|
|
4
4
|
let kysely = require("kysely");
|
|
@@ -2487,6 +2487,7 @@ exports.createDataLayer = createDataLayer;
|
|
|
2487
2487
|
exports.createDatabase = require_db.createDatabase;
|
|
2488
2488
|
exports.createDatabaseFromConnection = require_db.createDatabaseFromConnection;
|
|
2489
2489
|
exports.createLLMRequestsDataLayer = createLLMRequestsDataLayer;
|
|
2490
|
+
exports.createWorkspaceSettingsDataLayer = createWorkspaceSettingsDataLayer;
|
|
2490
2491
|
exports.detectDatabaseType = require_db.detectDatabaseType;
|
|
2491
2492
|
exports.dollarsToMicroDollars = dollarsToMicroDollars;
|
|
2492
2493
|
exports.environmentSecretsSchema = require_db.environmentSecretsSchema;
|