@llmops/core 0.1.6 → 0.1.7
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.cts +1 -1
- package/dist/{index-CCfvTBvD.d.cts → index-dC_m_WTU.d.cts} +25 -25
- package/dist/index.d.cts +395 -395
- package/dist/index.d.mts +154 -154
- package/package.json +2 -2
package/dist/db/index.d.cts
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-dC_m_WTU.cjs";
|
|
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 };
|
|
@@ -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
|
|
@@ -761,7 +761,7 @@ declare const schemas: {
|
|
|
761
761
|
* Validate data against table schema
|
|
762
762
|
* Useful for runtime validation before inserting/updating
|
|
763
763
|
*/
|
|
764
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
764
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
765
765
|
variantId: string;
|
|
766
766
|
version: number;
|
|
767
767
|
provider: string;
|
|
@@ -770,7 +770,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
770
770
|
id: string;
|
|
771
771
|
createdAt: Date;
|
|
772
772
|
updatedAt: Date;
|
|
773
|
-
}> |
|
|
773
|
+
}> | zod0.ZodSafeParseError<{
|
|
774
774
|
variantId: string;
|
|
775
775
|
version: number;
|
|
776
776
|
provider: string;
|
|
@@ -779,33 +779,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
779
779
|
id: string;
|
|
780
780
|
createdAt: Date;
|
|
781
781
|
updatedAt: Date;
|
|
782
|
-
}> |
|
|
782
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
783
783
|
environmentId: string;
|
|
784
784
|
keyName: string;
|
|
785
785
|
keyValue: string;
|
|
786
786
|
id: string;
|
|
787
787
|
createdAt: Date;
|
|
788
788
|
updatedAt: Date;
|
|
789
|
-
}> |
|
|
789
|
+
}> | zod0.ZodSafeParseError<{
|
|
790
790
|
environmentId: string;
|
|
791
791
|
keyName: string;
|
|
792
792
|
keyValue: string;
|
|
793
793
|
id: string;
|
|
794
794
|
createdAt: Date;
|
|
795
795
|
updatedAt: Date;
|
|
796
|
-
}> |
|
|
796
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
797
797
|
configId: string;
|
|
798
798
|
variantId: string;
|
|
799
799
|
id: string;
|
|
800
800
|
createdAt: Date;
|
|
801
801
|
updatedAt: Date;
|
|
802
|
-
}> |
|
|
802
|
+
}> | zod0.ZodSafeParseError<{
|
|
803
803
|
configId: string;
|
|
804
804
|
variantId: string;
|
|
805
805
|
id: string;
|
|
806
806
|
createdAt: Date;
|
|
807
807
|
updatedAt: Date;
|
|
808
|
-
}> |
|
|
808
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
809
809
|
environmentId: string;
|
|
810
810
|
configId: string;
|
|
811
811
|
configVariantId: string;
|
|
@@ -817,7 +817,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
817
817
|
createdAt: Date;
|
|
818
818
|
updatedAt: Date;
|
|
819
819
|
variantVersionId?: string | null | undefined;
|
|
820
|
-
}> |
|
|
820
|
+
}> | zod0.ZodSafeParseError<{
|
|
821
821
|
environmentId: string;
|
|
822
822
|
configId: string;
|
|
823
823
|
configVariantId: string;
|
|
@@ -829,17 +829,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
829
829
|
createdAt: Date;
|
|
830
830
|
updatedAt: Date;
|
|
831
831
|
variantVersionId?: string | null | undefined;
|
|
832
|
-
}> |
|
|
832
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
833
833
|
id: string;
|
|
834
834
|
createdAt: Date;
|
|
835
835
|
updatedAt: Date;
|
|
836
836
|
name?: string | null | undefined;
|
|
837
|
-
}> |
|
|
837
|
+
}> | zod0.ZodSafeParseError<{
|
|
838
838
|
id: string;
|
|
839
839
|
createdAt: Date;
|
|
840
840
|
updatedAt: Date;
|
|
841
841
|
name?: string | null | undefined;
|
|
842
|
-
}> |
|
|
842
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
843
843
|
requestId: string;
|
|
844
844
|
provider: string;
|
|
845
845
|
model: string;
|
|
@@ -862,7 +862,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
862
862
|
variantId?: string | null | undefined;
|
|
863
863
|
environmentId?: string | null | undefined;
|
|
864
864
|
userId?: string | null | undefined;
|
|
865
|
-
}> |
|
|
865
|
+
}> | zod0.ZodSafeParseError<{
|
|
866
866
|
requestId: string;
|
|
867
867
|
provider: string;
|
|
868
868
|
model: string;
|
|
@@ -889,7 +889,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
889
889
|
/**
|
|
890
890
|
* Validate partial data (for updates)
|
|
891
891
|
*/
|
|
892
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
892
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
893
893
|
variantId?: string | undefined;
|
|
894
894
|
version?: number | undefined;
|
|
895
895
|
provider?: string | undefined;
|
|
@@ -898,7 +898,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
898
898
|
id?: string | undefined;
|
|
899
899
|
createdAt?: Date | undefined;
|
|
900
900
|
updatedAt?: Date | undefined;
|
|
901
|
-
}> |
|
|
901
|
+
}> | zod0.ZodSafeParseError<{
|
|
902
902
|
variantId?: string | undefined;
|
|
903
903
|
version?: number | undefined;
|
|
904
904
|
provider?: string | undefined;
|
|
@@ -907,33 +907,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
907
907
|
id?: string | undefined;
|
|
908
908
|
createdAt?: Date | undefined;
|
|
909
909
|
updatedAt?: Date | undefined;
|
|
910
|
-
}> |
|
|
910
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
911
911
|
environmentId?: string | undefined;
|
|
912
912
|
keyName?: string | undefined;
|
|
913
913
|
keyValue?: string | undefined;
|
|
914
914
|
id?: string | undefined;
|
|
915
915
|
createdAt?: Date | undefined;
|
|
916
916
|
updatedAt?: Date | undefined;
|
|
917
|
-
}> |
|
|
917
|
+
}> | zod0.ZodSafeParseError<{
|
|
918
918
|
environmentId?: string | undefined;
|
|
919
919
|
keyName?: string | undefined;
|
|
920
920
|
keyValue?: string | undefined;
|
|
921
921
|
id?: string | undefined;
|
|
922
922
|
createdAt?: Date | undefined;
|
|
923
923
|
updatedAt?: Date | undefined;
|
|
924
|
-
}> |
|
|
924
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
925
925
|
configId?: string | undefined;
|
|
926
926
|
variantId?: string | undefined;
|
|
927
927
|
id?: string | undefined;
|
|
928
928
|
createdAt?: Date | undefined;
|
|
929
929
|
updatedAt?: Date | undefined;
|
|
930
|
-
}> |
|
|
930
|
+
}> | zod0.ZodSafeParseError<{
|
|
931
931
|
configId?: string | undefined;
|
|
932
932
|
variantId?: string | undefined;
|
|
933
933
|
id?: string | undefined;
|
|
934
934
|
createdAt?: Date | undefined;
|
|
935
935
|
updatedAt?: Date | undefined;
|
|
936
|
-
}> |
|
|
936
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
937
937
|
environmentId?: string | undefined;
|
|
938
938
|
configId?: string | undefined;
|
|
939
939
|
configVariantId?: string | undefined;
|
|
@@ -945,7 +945,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
945
945
|
id?: string | undefined;
|
|
946
946
|
createdAt?: Date | undefined;
|
|
947
947
|
updatedAt?: Date | undefined;
|
|
948
|
-
}> |
|
|
948
|
+
}> | zod0.ZodSafeParseError<{
|
|
949
949
|
environmentId?: string | undefined;
|
|
950
950
|
configId?: string | undefined;
|
|
951
951
|
configVariantId?: string | undefined;
|
|
@@ -957,17 +957,17 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
957
957
|
id?: string | undefined;
|
|
958
958
|
createdAt?: Date | undefined;
|
|
959
959
|
updatedAt?: Date | undefined;
|
|
960
|
-
}> |
|
|
960
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
961
961
|
name?: string | null | undefined;
|
|
962
962
|
id?: string | undefined;
|
|
963
963
|
createdAt?: Date | undefined;
|
|
964
964
|
updatedAt?: Date | undefined;
|
|
965
|
-
}> |
|
|
965
|
+
}> | zod0.ZodSafeParseError<{
|
|
966
966
|
name?: string | null | undefined;
|
|
967
967
|
id?: string | undefined;
|
|
968
968
|
createdAt?: Date | undefined;
|
|
969
969
|
updatedAt?: Date | undefined;
|
|
970
|
-
}> |
|
|
970
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
971
971
|
requestId?: string | undefined;
|
|
972
972
|
configId?: string | null | undefined;
|
|
973
973
|
variantId?: string | null | undefined;
|
|
@@ -990,7 +990,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
990
990
|
id?: string | undefined;
|
|
991
991
|
createdAt?: Date | undefined;
|
|
992
992
|
updatedAt?: Date | undefined;
|
|
993
|
-
}> |
|
|
993
|
+
}> | zod0.ZodSafeParseError<{
|
|
994
994
|
requestId?: string | undefined;
|
|
995
995
|
configId?: string | null | undefined;
|
|
996
996
|
variantId?: string | null | undefined;
|