@llmops/core 0.3.0-beta.1 → 0.3.0-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/db/index.d.cts +1 -1
- package/dist/{index-DX05tkNg.d.cts → index-CunWjFE4.d.cts} +35 -35
- package/dist/index.d.cts +273 -273
- 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-CunWjFE4.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 zod509 from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
5
5
|
|
|
@@ -866,29 +866,29 @@ declare const schemas: {
|
|
|
866
866
|
* Validate data against table schema
|
|
867
867
|
* Useful for runtime validation before inserting/updating
|
|
868
868
|
*/
|
|
869
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
869
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod509.ZodSafeParseSuccess<{
|
|
870
870
|
slug: string;
|
|
871
871
|
id: string;
|
|
872
872
|
createdAt: Date;
|
|
873
873
|
updatedAt: Date;
|
|
874
874
|
name?: string | undefined;
|
|
875
|
-
}> |
|
|
875
|
+
}> | zod509.ZodSafeParseError<{
|
|
876
876
|
slug: string;
|
|
877
877
|
id: string;
|
|
878
878
|
createdAt: Date;
|
|
879
879
|
updatedAt: Date;
|
|
880
880
|
name?: string | undefined;
|
|
881
|
-
}> |
|
|
881
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
882
882
|
name: string;
|
|
883
883
|
id: string;
|
|
884
884
|
createdAt: Date;
|
|
885
885
|
updatedAt: Date;
|
|
886
|
-
}> |
|
|
886
|
+
}> | zod509.ZodSafeParseError<{
|
|
887
887
|
name: string;
|
|
888
888
|
id: string;
|
|
889
889
|
createdAt: Date;
|
|
890
890
|
updatedAt: Date;
|
|
891
|
-
}> |
|
|
891
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
892
892
|
variantId: string;
|
|
893
893
|
version: number;
|
|
894
894
|
provider: string;
|
|
@@ -897,7 +897,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
897
897
|
id: string;
|
|
898
898
|
createdAt: Date;
|
|
899
899
|
updatedAt: Date;
|
|
900
|
-
}> |
|
|
900
|
+
}> | zod509.ZodSafeParseError<{
|
|
901
901
|
variantId: string;
|
|
902
902
|
version: number;
|
|
903
903
|
provider: string;
|
|
@@ -906,33 +906,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
906
906
|
id: string;
|
|
907
907
|
createdAt: Date;
|
|
908
908
|
updatedAt: Date;
|
|
909
|
-
}> |
|
|
909
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
910
910
|
environmentId: string;
|
|
911
911
|
keyName: string;
|
|
912
912
|
keyValue: string;
|
|
913
913
|
id: string;
|
|
914
914
|
createdAt: Date;
|
|
915
915
|
updatedAt: Date;
|
|
916
|
-
}> |
|
|
916
|
+
}> | zod509.ZodSafeParseError<{
|
|
917
917
|
environmentId: string;
|
|
918
918
|
keyName: string;
|
|
919
919
|
keyValue: string;
|
|
920
920
|
id: string;
|
|
921
921
|
createdAt: Date;
|
|
922
922
|
updatedAt: Date;
|
|
923
|
-
}> |
|
|
923
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
924
924
|
configId: string;
|
|
925
925
|
variantId: string;
|
|
926
926
|
id: string;
|
|
927
927
|
createdAt: Date;
|
|
928
928
|
updatedAt: Date;
|
|
929
|
-
}> |
|
|
929
|
+
}> | zod509.ZodSafeParseError<{
|
|
930
930
|
configId: string;
|
|
931
931
|
variantId: string;
|
|
932
932
|
id: string;
|
|
933
933
|
createdAt: Date;
|
|
934
934
|
updatedAt: Date;
|
|
935
|
-
}> |
|
|
935
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
936
936
|
environmentId: string;
|
|
937
937
|
configId: string;
|
|
938
938
|
configVariantId: string;
|
|
@@ -944,7 +944,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
944
944
|
createdAt: Date;
|
|
945
945
|
updatedAt: Date;
|
|
946
946
|
variantVersionId?: string | null | undefined;
|
|
947
|
-
}> |
|
|
947
|
+
}> | zod509.ZodSafeParseError<{
|
|
948
948
|
environmentId: string;
|
|
949
949
|
configId: string;
|
|
950
950
|
configVariantId: string;
|
|
@@ -956,21 +956,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
956
956
|
createdAt: Date;
|
|
957
957
|
updatedAt: Date;
|
|
958
958
|
variantVersionId?: string | null | undefined;
|
|
959
|
-
}> |
|
|
959
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
960
960
|
setupComplete: boolean;
|
|
961
961
|
id: string;
|
|
962
962
|
createdAt: Date;
|
|
963
963
|
updatedAt: Date;
|
|
964
964
|
name?: string | null | undefined;
|
|
965
965
|
superAdminId?: string | null | undefined;
|
|
966
|
-
}> |
|
|
966
|
+
}> | zod509.ZodSafeParseError<{
|
|
967
967
|
setupComplete: boolean;
|
|
968
968
|
id: string;
|
|
969
969
|
createdAt: Date;
|
|
970
970
|
updatedAt: Date;
|
|
971
971
|
name?: string | null | undefined;
|
|
972
972
|
superAdminId?: string | null | undefined;
|
|
973
|
-
}> |
|
|
973
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
974
974
|
providerId: string;
|
|
975
975
|
config: Record<string, unknown>;
|
|
976
976
|
enabled: boolean;
|
|
@@ -979,7 +979,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
979
979
|
updatedAt: Date;
|
|
980
980
|
slug?: string | null | undefined;
|
|
981
981
|
name?: string | null | undefined;
|
|
982
|
-
}> |
|
|
982
|
+
}> | zod509.ZodSafeParseError<{
|
|
983
983
|
providerId: string;
|
|
984
984
|
config: Record<string, unknown>;
|
|
985
985
|
enabled: boolean;
|
|
@@ -988,7 +988,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
988
988
|
updatedAt: Date;
|
|
989
989
|
slug?: string | null | undefined;
|
|
990
990
|
name?: string | null | undefined;
|
|
991
|
-
}> |
|
|
991
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
992
992
|
requestId: string;
|
|
993
993
|
provider: string;
|
|
994
994
|
model: string;
|
|
@@ -1012,7 +1012,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1012
1012
|
environmentId?: string | null | undefined;
|
|
1013
1013
|
providerConfigId?: string | null | undefined;
|
|
1014
1014
|
userId?: string | null | undefined;
|
|
1015
|
-
}> |
|
|
1015
|
+
}> | zod509.ZodSafeParseError<{
|
|
1016
1016
|
requestId: string;
|
|
1017
1017
|
provider: string;
|
|
1018
1018
|
model: string;
|
|
@@ -1040,17 +1040,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Validate partial data (for updates)
|
|
1042
1042
|
*/
|
|
1043
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
1043
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod509.ZodSafeParseSuccess<{
|
|
1044
1044
|
name?: string | undefined;
|
|
1045
1045
|
id?: string | undefined;
|
|
1046
1046
|
createdAt?: Date | undefined;
|
|
1047
1047
|
updatedAt?: Date | undefined;
|
|
1048
|
-
}> |
|
|
1048
|
+
}> | zod509.ZodSafeParseError<{
|
|
1049
1049
|
name?: string | undefined;
|
|
1050
1050
|
id?: string | undefined;
|
|
1051
1051
|
createdAt?: Date | undefined;
|
|
1052
1052
|
updatedAt?: Date | undefined;
|
|
1053
|
-
}> |
|
|
1053
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1054
1054
|
variantId?: string | undefined;
|
|
1055
1055
|
version?: number | undefined;
|
|
1056
1056
|
provider?: string | undefined;
|
|
@@ -1059,7 +1059,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1059
1059
|
id?: string | undefined;
|
|
1060
1060
|
createdAt?: Date | undefined;
|
|
1061
1061
|
updatedAt?: Date | undefined;
|
|
1062
|
-
}> |
|
|
1062
|
+
}> | zod509.ZodSafeParseError<{
|
|
1063
1063
|
variantId?: string | undefined;
|
|
1064
1064
|
version?: number | undefined;
|
|
1065
1065
|
provider?: string | undefined;
|
|
@@ -1068,33 +1068,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1068
1068
|
id?: string | undefined;
|
|
1069
1069
|
createdAt?: Date | undefined;
|
|
1070
1070
|
updatedAt?: Date | undefined;
|
|
1071
|
-
}> |
|
|
1071
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1072
1072
|
environmentId?: string | undefined;
|
|
1073
1073
|
keyName?: string | undefined;
|
|
1074
1074
|
keyValue?: string | undefined;
|
|
1075
1075
|
id?: string | undefined;
|
|
1076
1076
|
createdAt?: Date | undefined;
|
|
1077
1077
|
updatedAt?: Date | undefined;
|
|
1078
|
-
}> |
|
|
1078
|
+
}> | zod509.ZodSafeParseError<{
|
|
1079
1079
|
environmentId?: string | undefined;
|
|
1080
1080
|
keyName?: string | undefined;
|
|
1081
1081
|
keyValue?: string | undefined;
|
|
1082
1082
|
id?: string | undefined;
|
|
1083
1083
|
createdAt?: Date | undefined;
|
|
1084
1084
|
updatedAt?: Date | undefined;
|
|
1085
|
-
}> |
|
|
1085
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1086
1086
|
configId?: string | undefined;
|
|
1087
1087
|
variantId?: string | undefined;
|
|
1088
1088
|
id?: string | undefined;
|
|
1089
1089
|
createdAt?: Date | undefined;
|
|
1090
1090
|
updatedAt?: Date | undefined;
|
|
1091
|
-
}> |
|
|
1091
|
+
}> | zod509.ZodSafeParseError<{
|
|
1092
1092
|
configId?: string | undefined;
|
|
1093
1093
|
variantId?: string | undefined;
|
|
1094
1094
|
id?: string | undefined;
|
|
1095
1095
|
createdAt?: Date | undefined;
|
|
1096
1096
|
updatedAt?: Date | undefined;
|
|
1097
|
-
}> |
|
|
1097
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1098
1098
|
environmentId?: string | undefined;
|
|
1099
1099
|
configId?: string | undefined;
|
|
1100
1100
|
configVariantId?: string | undefined;
|
|
@@ -1106,7 +1106,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1106
1106
|
id?: string | undefined;
|
|
1107
1107
|
createdAt?: Date | undefined;
|
|
1108
1108
|
updatedAt?: Date | undefined;
|
|
1109
|
-
}> |
|
|
1109
|
+
}> | zod509.ZodSafeParseError<{
|
|
1110
1110
|
environmentId?: string | undefined;
|
|
1111
1111
|
configId?: string | undefined;
|
|
1112
1112
|
configVariantId?: string | undefined;
|
|
@@ -1118,21 +1118,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1118
1118
|
id?: string | undefined;
|
|
1119
1119
|
createdAt?: Date | undefined;
|
|
1120
1120
|
updatedAt?: Date | undefined;
|
|
1121
|
-
}> |
|
|
1121
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1122
1122
|
name?: string | null | undefined;
|
|
1123
1123
|
setupComplete?: boolean | undefined;
|
|
1124
1124
|
superAdminId?: string | null | undefined;
|
|
1125
1125
|
id?: string | undefined;
|
|
1126
1126
|
createdAt?: Date | undefined;
|
|
1127
1127
|
updatedAt?: Date | undefined;
|
|
1128
|
-
}> |
|
|
1128
|
+
}> | zod509.ZodSafeParseError<{
|
|
1129
1129
|
name?: string | null | undefined;
|
|
1130
1130
|
setupComplete?: boolean | undefined;
|
|
1131
1131
|
superAdminId?: string | null | undefined;
|
|
1132
1132
|
id?: string | undefined;
|
|
1133
1133
|
createdAt?: Date | undefined;
|
|
1134
1134
|
updatedAt?: Date | undefined;
|
|
1135
|
-
}> |
|
|
1135
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1136
1136
|
providerId?: string | undefined;
|
|
1137
1137
|
slug?: string | null | undefined;
|
|
1138
1138
|
name?: string | null | undefined;
|
|
@@ -1141,7 +1141,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1141
1141
|
id?: string | undefined;
|
|
1142
1142
|
createdAt?: Date | undefined;
|
|
1143
1143
|
updatedAt?: Date | undefined;
|
|
1144
|
-
}> |
|
|
1144
|
+
}> | zod509.ZodSafeParseError<{
|
|
1145
1145
|
providerId?: string | undefined;
|
|
1146
1146
|
slug?: string | null | undefined;
|
|
1147
1147
|
name?: string | null | undefined;
|
|
@@ -1150,7 +1150,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1150
1150
|
id?: string | undefined;
|
|
1151
1151
|
createdAt?: Date | undefined;
|
|
1152
1152
|
updatedAt?: Date | undefined;
|
|
1153
|
-
}> |
|
|
1153
|
+
}> | zod509.ZodSafeParseSuccess<{
|
|
1154
1154
|
requestId?: string | undefined;
|
|
1155
1155
|
configId?: string | null | undefined;
|
|
1156
1156
|
variantId?: string | null | undefined;
|
|
@@ -1174,7 +1174,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1174
1174
|
id?: string | undefined;
|
|
1175
1175
|
createdAt?: Date | undefined;
|
|
1176
1176
|
updatedAt?: Date | undefined;
|
|
1177
|
-
}> |
|
|
1177
|
+
}> | zod509.ZodSafeParseError<{
|
|
1178
1178
|
requestId?: string | undefined;
|
|
1179
1179
|
configId?: string | null | undefined;
|
|
1180
1180
|
variantId?: string | null | undefined;
|