@llmops/core 0.2.12-beta.1 → 0.2.12
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-DwZhaRvQ.d.cts → index-C5xtb4gO.d.cts} +35 -35
- package/dist/index.d.cts +268 -268
- package/package.json +2 -2
package/dist/db/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as variantsSchema, A as ProviderConfig, B as VariantVersionsTable, C as Environment, D as Insertable, E as EnvironmentsTable, F as TargetingRule, G as configsSchema, H as WorkspaceSettings, I as TargetingRulesTable, J as llmRequestsSchema, K as environmentSecretsSchema, L as Updateable, M as SCHEMA_METADATA, N as Selectable, O as LLMRequest, P as TableName, Q as variantVersionsSchema, R as Variant, S as Database, T as EnvironmentSecretsTable, U as WorkspaceSettingsTable, V as VariantsTable, W as configVariantsSchema, X as schemas, Y as providerConfigsSchema, Z as targetingRulesSchema, _ as validateTableData, a as createDatabaseFromConnection, b as ConfigVariantsTable, c as executeWithSchema, d as getMigrations, et as workspaceSettingsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, j as ProviderConfigsTable, k as LLMRequestsTable, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as runAutoMigrations, q as environmentsSchema, r as DatabaseType, s as createNeonDialect, t as DatabaseConnection, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as VariantVersion } from "../index-
|
|
1
|
+
import { $ as variantsSchema, A as ProviderConfig, B as VariantVersionsTable, C as Environment, D as Insertable, E as EnvironmentsTable, F as TargetingRule, G as configsSchema, H as WorkspaceSettings, I as TargetingRulesTable, J as llmRequestsSchema, K as environmentSecretsSchema, L as Updateable, M as SCHEMA_METADATA, N as Selectable, O as LLMRequest, P as TableName, Q as variantVersionsSchema, R as Variant, S as Database, T as EnvironmentSecretsTable, U as WorkspaceSettingsTable, V as VariantsTable, W as configVariantsSchema, X as schemas, Y as providerConfigsSchema, Z as targetingRulesSchema, _ as validateTableData, a as createDatabaseFromConnection, b as ConfigVariantsTable, c as executeWithSchema, d as getMigrations, et as workspaceSettingsSchema, f as matchType, g as validatePartialTableData, h as parseTableData, i as createDatabase, j as ProviderConfigsTable, k as LLMRequestsTable, l as MigrationOptions, m as parsePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as runAutoMigrations, q as environmentsSchema, r as DatabaseType, s as createNeonDialect, t as DatabaseConnection, u as MigrationResult, v as Config, w as EnvironmentSecret, x as ConfigsTable, y as ConfigVariant, z as VariantVersion } from "../index-C5xtb4gO.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, createNeonDialect, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType, Dialect, 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
|
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
5
5
|
|
|
@@ -858,29 +858,29 @@ declare const schemas: {
|
|
|
858
858
|
* Validate data against table schema
|
|
859
859
|
* Useful for runtime validation before inserting/updating
|
|
860
860
|
*/
|
|
861
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
861
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
862
862
|
slug: string;
|
|
863
863
|
id: string;
|
|
864
864
|
createdAt: Date;
|
|
865
865
|
updatedAt: Date;
|
|
866
866
|
name?: string | undefined;
|
|
867
|
-
}> |
|
|
867
|
+
}> | zod0.ZodSafeParseError<{
|
|
868
868
|
slug: string;
|
|
869
869
|
id: string;
|
|
870
870
|
createdAt: Date;
|
|
871
871
|
updatedAt: Date;
|
|
872
872
|
name?: string | undefined;
|
|
873
|
-
}> |
|
|
873
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
874
874
|
name: string;
|
|
875
875
|
id: string;
|
|
876
876
|
createdAt: Date;
|
|
877
877
|
updatedAt: Date;
|
|
878
|
-
}> |
|
|
878
|
+
}> | zod0.ZodSafeParseError<{
|
|
879
879
|
name: string;
|
|
880
880
|
id: string;
|
|
881
881
|
createdAt: Date;
|
|
882
882
|
updatedAt: Date;
|
|
883
|
-
}> |
|
|
883
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
884
884
|
variantId: string;
|
|
885
885
|
version: number;
|
|
886
886
|
provider: string;
|
|
@@ -889,7 +889,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
889
889
|
id: string;
|
|
890
890
|
createdAt: Date;
|
|
891
891
|
updatedAt: Date;
|
|
892
|
-
}> |
|
|
892
|
+
}> | zod0.ZodSafeParseError<{
|
|
893
893
|
variantId: string;
|
|
894
894
|
version: number;
|
|
895
895
|
provider: string;
|
|
@@ -898,33 +898,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
898
898
|
id: string;
|
|
899
899
|
createdAt: Date;
|
|
900
900
|
updatedAt: Date;
|
|
901
|
-
}> |
|
|
901
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
902
902
|
environmentId: string;
|
|
903
903
|
keyName: string;
|
|
904
904
|
keyValue: string;
|
|
905
905
|
id: string;
|
|
906
906
|
createdAt: Date;
|
|
907
907
|
updatedAt: Date;
|
|
908
|
-
}> |
|
|
908
|
+
}> | zod0.ZodSafeParseError<{
|
|
909
909
|
environmentId: string;
|
|
910
910
|
keyName: string;
|
|
911
911
|
keyValue: string;
|
|
912
912
|
id: string;
|
|
913
913
|
createdAt: Date;
|
|
914
914
|
updatedAt: Date;
|
|
915
|
-
}> |
|
|
915
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
916
916
|
configId: string;
|
|
917
917
|
variantId: string;
|
|
918
918
|
id: string;
|
|
919
919
|
createdAt: Date;
|
|
920
920
|
updatedAt: Date;
|
|
921
|
-
}> |
|
|
921
|
+
}> | zod0.ZodSafeParseError<{
|
|
922
922
|
configId: string;
|
|
923
923
|
variantId: string;
|
|
924
924
|
id: string;
|
|
925
925
|
createdAt: Date;
|
|
926
926
|
updatedAt: Date;
|
|
927
|
-
}> |
|
|
927
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
928
928
|
environmentId: string;
|
|
929
929
|
configId: string;
|
|
930
930
|
configVariantId: string;
|
|
@@ -936,7 +936,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
936
936
|
createdAt: Date;
|
|
937
937
|
updatedAt: Date;
|
|
938
938
|
variantVersionId?: string | null | undefined;
|
|
939
|
-
}> |
|
|
939
|
+
}> | zod0.ZodSafeParseError<{
|
|
940
940
|
environmentId: string;
|
|
941
941
|
configId: string;
|
|
942
942
|
configVariantId: string;
|
|
@@ -948,21 +948,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
948
948
|
createdAt: Date;
|
|
949
949
|
updatedAt: Date;
|
|
950
950
|
variantVersionId?: string | null | undefined;
|
|
951
|
-
}> |
|
|
951
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
952
952
|
setupComplete: boolean;
|
|
953
953
|
id: string;
|
|
954
954
|
createdAt: Date;
|
|
955
955
|
updatedAt: Date;
|
|
956
956
|
name?: string | null | undefined;
|
|
957
957
|
superAdminId?: string | null | undefined;
|
|
958
|
-
}> |
|
|
958
|
+
}> | zod0.ZodSafeParseError<{
|
|
959
959
|
setupComplete: boolean;
|
|
960
960
|
id: string;
|
|
961
961
|
createdAt: Date;
|
|
962
962
|
updatedAt: Date;
|
|
963
963
|
name?: string | null | undefined;
|
|
964
964
|
superAdminId?: string | null | undefined;
|
|
965
|
-
}> |
|
|
965
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
966
966
|
providerId: string;
|
|
967
967
|
config: Record<string, unknown>;
|
|
968
968
|
enabled: boolean;
|
|
@@ -970,7 +970,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
970
970
|
createdAt: Date;
|
|
971
971
|
updatedAt: Date;
|
|
972
972
|
name?: string | null | undefined;
|
|
973
|
-
}> |
|
|
973
|
+
}> | zod0.ZodSafeParseError<{
|
|
974
974
|
providerId: string;
|
|
975
975
|
config: Record<string, unknown>;
|
|
976
976
|
enabled: boolean;
|
|
@@ -978,7 +978,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
978
978
|
createdAt: Date;
|
|
979
979
|
updatedAt: Date;
|
|
980
980
|
name?: string | null | undefined;
|
|
981
|
-
}> |
|
|
981
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
982
982
|
requestId: string;
|
|
983
983
|
provider: string;
|
|
984
984
|
model: string;
|
|
@@ -1002,7 +1002,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1002
1002
|
environmentId?: string | null | undefined;
|
|
1003
1003
|
providerConfigId?: string | null | undefined;
|
|
1004
1004
|
userId?: string | null | undefined;
|
|
1005
|
-
}> |
|
|
1005
|
+
}> | zod0.ZodSafeParseError<{
|
|
1006
1006
|
requestId: string;
|
|
1007
1007
|
provider: string;
|
|
1008
1008
|
model: string;
|
|
@@ -1030,17 +1030,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Validate partial data (for updates)
|
|
1032
1032
|
*/
|
|
1033
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
1033
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseSuccess<{
|
|
1034
1034
|
name?: string | undefined;
|
|
1035
1035
|
id?: string | undefined;
|
|
1036
1036
|
createdAt?: Date | undefined;
|
|
1037
1037
|
updatedAt?: Date | undefined;
|
|
1038
|
-
}> |
|
|
1038
|
+
}> | zod0.ZodSafeParseError<{
|
|
1039
1039
|
name?: string | undefined;
|
|
1040
1040
|
id?: string | undefined;
|
|
1041
1041
|
createdAt?: Date | undefined;
|
|
1042
1042
|
updatedAt?: Date | undefined;
|
|
1043
|
-
}> |
|
|
1043
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1044
1044
|
variantId?: string | undefined;
|
|
1045
1045
|
version?: number | undefined;
|
|
1046
1046
|
provider?: string | undefined;
|
|
@@ -1049,7 +1049,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1049
1049
|
id?: string | undefined;
|
|
1050
1050
|
createdAt?: Date | undefined;
|
|
1051
1051
|
updatedAt?: Date | undefined;
|
|
1052
|
-
}> |
|
|
1052
|
+
}> | zod0.ZodSafeParseError<{
|
|
1053
1053
|
variantId?: string | undefined;
|
|
1054
1054
|
version?: number | undefined;
|
|
1055
1055
|
provider?: string | undefined;
|
|
@@ -1058,33 +1058,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1058
1058
|
id?: string | undefined;
|
|
1059
1059
|
createdAt?: Date | undefined;
|
|
1060
1060
|
updatedAt?: Date | undefined;
|
|
1061
|
-
}> |
|
|
1061
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1062
1062
|
environmentId?: string | undefined;
|
|
1063
1063
|
keyName?: string | undefined;
|
|
1064
1064
|
keyValue?: string | undefined;
|
|
1065
1065
|
id?: string | undefined;
|
|
1066
1066
|
createdAt?: Date | undefined;
|
|
1067
1067
|
updatedAt?: Date | undefined;
|
|
1068
|
-
}> |
|
|
1068
|
+
}> | zod0.ZodSafeParseError<{
|
|
1069
1069
|
environmentId?: string | undefined;
|
|
1070
1070
|
keyName?: string | undefined;
|
|
1071
1071
|
keyValue?: string | undefined;
|
|
1072
1072
|
id?: string | undefined;
|
|
1073
1073
|
createdAt?: Date | undefined;
|
|
1074
1074
|
updatedAt?: Date | undefined;
|
|
1075
|
-
}> |
|
|
1075
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1076
1076
|
configId?: string | undefined;
|
|
1077
1077
|
variantId?: string | undefined;
|
|
1078
1078
|
id?: string | undefined;
|
|
1079
1079
|
createdAt?: Date | undefined;
|
|
1080
1080
|
updatedAt?: Date | undefined;
|
|
1081
|
-
}> |
|
|
1081
|
+
}> | zod0.ZodSafeParseError<{
|
|
1082
1082
|
configId?: string | undefined;
|
|
1083
1083
|
variantId?: string | undefined;
|
|
1084
1084
|
id?: string | undefined;
|
|
1085
1085
|
createdAt?: Date | undefined;
|
|
1086
1086
|
updatedAt?: Date | undefined;
|
|
1087
|
-
}> |
|
|
1087
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1088
1088
|
environmentId?: string | undefined;
|
|
1089
1089
|
configId?: string | undefined;
|
|
1090
1090
|
configVariantId?: string | undefined;
|
|
@@ -1096,7 +1096,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1096
1096
|
id?: string | undefined;
|
|
1097
1097
|
createdAt?: Date | undefined;
|
|
1098
1098
|
updatedAt?: Date | undefined;
|
|
1099
|
-
}> |
|
|
1099
|
+
}> | zod0.ZodSafeParseError<{
|
|
1100
1100
|
environmentId?: string | undefined;
|
|
1101
1101
|
configId?: string | undefined;
|
|
1102
1102
|
configVariantId?: string | undefined;
|
|
@@ -1108,21 +1108,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1108
1108
|
id?: string | undefined;
|
|
1109
1109
|
createdAt?: Date | undefined;
|
|
1110
1110
|
updatedAt?: Date | undefined;
|
|
1111
|
-
}> |
|
|
1111
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1112
1112
|
name?: string | null | undefined;
|
|
1113
1113
|
setupComplete?: boolean | undefined;
|
|
1114
1114
|
superAdminId?: string | null | undefined;
|
|
1115
1115
|
id?: string | undefined;
|
|
1116
1116
|
createdAt?: Date | undefined;
|
|
1117
1117
|
updatedAt?: Date | undefined;
|
|
1118
|
-
}> |
|
|
1118
|
+
}> | zod0.ZodSafeParseError<{
|
|
1119
1119
|
name?: string | null | undefined;
|
|
1120
1120
|
setupComplete?: boolean | undefined;
|
|
1121
1121
|
superAdminId?: string | null | undefined;
|
|
1122
1122
|
id?: string | undefined;
|
|
1123
1123
|
createdAt?: Date | undefined;
|
|
1124
1124
|
updatedAt?: Date | undefined;
|
|
1125
|
-
}> |
|
|
1125
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1126
1126
|
providerId?: string | undefined;
|
|
1127
1127
|
name?: string | null | undefined;
|
|
1128
1128
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1130,7 +1130,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1130
1130
|
id?: string | undefined;
|
|
1131
1131
|
createdAt?: Date | undefined;
|
|
1132
1132
|
updatedAt?: Date | undefined;
|
|
1133
|
-
}> |
|
|
1133
|
+
}> | zod0.ZodSafeParseError<{
|
|
1134
1134
|
providerId?: string | undefined;
|
|
1135
1135
|
name?: string | null | undefined;
|
|
1136
1136
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1138,7 +1138,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1138
1138
|
id?: string | undefined;
|
|
1139
1139
|
createdAt?: Date | undefined;
|
|
1140
1140
|
updatedAt?: Date | undefined;
|
|
1141
|
-
}> |
|
|
1141
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1142
1142
|
requestId?: string | undefined;
|
|
1143
1143
|
configId?: string | null | undefined;
|
|
1144
1144
|
variantId?: string | null | undefined;
|
|
@@ -1162,7 +1162,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1162
1162
|
id?: string | undefined;
|
|
1163
1163
|
createdAt?: Date | undefined;
|
|
1164
1164
|
updatedAt?: Date | undefined;
|
|
1165
|
-
}> |
|
|
1165
|
+
}> | zod0.ZodSafeParseError<{
|
|
1166
1166
|
requestId?: string | undefined;
|
|
1167
1167
|
configId?: string | null | undefined;
|
|
1168
1168
|
variantId?: string | null | undefined;
|