@llmops/core 0.1.9-beta.6 → 0.2.0-beta.1
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-BsBCR8hT.cjs → bun-sqlite-dialect-BxlwYxpt.cjs} +1 -1
- package/dist/db/index.cjs +2 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +2 -2
- package/dist/{db-BokBhuLo.mjs → db-BCHs_i6m.mjs} +1565 -1003
- package/dist/{db-1Ar4ItM_.cjs → db-BdclKAD3.cjs} +1573 -1005
- package/dist/{index-Dn5KseQM.d.cts → index-CJI8-6PV.d.mts} +105 -2
- package/dist/{index-BTE44_Jz.d.mts → index-zQzOuWsM.d.cts} +136 -33
- package/dist/index.cjs +97 -25
- package/dist/index.d.cts +451 -715
- package/dist/index.d.mts +451 -715
- package/dist/index.mjs +96 -26
- package/dist/{node-sqlite-dialect-BnUFpWfa.cjs → node-sqlite-dialect-DjW-cdIu.cjs} +1 -1
- package/package.json +2 -2
|
@@ -70,6 +70,14 @@ declare const workspaceSettingsSchema: z.ZodObject<{
|
|
|
70
70
|
createdAt: z.ZodDate;
|
|
71
71
|
updatedAt: z.ZodDate;
|
|
72
72
|
}, z.core.$strip>;
|
|
73
|
+
declare const providerConfigsSchema: z.ZodObject<{
|
|
74
|
+
providerId: z.ZodString;
|
|
75
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
createdAt: z.ZodDate;
|
|
79
|
+
updatedAt: z.ZodDate;
|
|
80
|
+
}, z.core.$strip>;
|
|
73
81
|
declare const llmRequestsSchema: z.ZodObject<{
|
|
74
82
|
requestId: z.ZodString;
|
|
75
83
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -105,6 +113,7 @@ type EnvironmentSecret = z.infer<typeof environmentSecretsSchema>;
|
|
|
105
113
|
type ConfigVariant = z.infer<typeof configVariantsSchema>;
|
|
106
114
|
type TargetingRule = z.infer<typeof targetingRulesSchema>;
|
|
107
115
|
type WorkspaceSettings = z.infer<typeof workspaceSettingsSchema>;
|
|
116
|
+
type ProviderConfig = z.infer<typeof providerConfigsSchema>;
|
|
108
117
|
type LLMRequest = z.infer<typeof llmRequestsSchema>;
|
|
109
118
|
/**
|
|
110
119
|
* Kysely Table Interfaces
|
|
@@ -158,6 +167,11 @@ interface WorkspaceSettingsTable extends BaseTable {
|
|
|
158
167
|
setupComplete: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
159
168
|
superAdminId: string | null;
|
|
160
169
|
}
|
|
170
|
+
interface ProviderConfigsTable extends BaseTable {
|
|
171
|
+
providerId: string;
|
|
172
|
+
config: ColumnType<Record<string, unknown>, string, string>;
|
|
173
|
+
enabled: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
174
|
+
}
|
|
161
175
|
interface LLMRequestsTable extends BaseTable {
|
|
162
176
|
requestId: string;
|
|
163
177
|
configId: string | null;
|
|
@@ -191,6 +205,7 @@ interface Database {
|
|
|
191
205
|
config_variants: ConfigVariantsTable;
|
|
192
206
|
targeting_rules: TargetingRulesTable;
|
|
193
207
|
workspace_settings: WorkspaceSettingsTable;
|
|
208
|
+
provider_configs: ProviderConfigsTable;
|
|
194
209
|
llm_requests: LLMRequestsTable;
|
|
195
210
|
}
|
|
196
211
|
/**
|
|
@@ -548,8 +563,46 @@ declare const SCHEMA_METADATA: {
|
|
|
548
563
|
};
|
|
549
564
|
};
|
|
550
565
|
};
|
|
551
|
-
readonly
|
|
566
|
+
readonly provider_configs: {
|
|
552
567
|
readonly order: 9;
|
|
568
|
+
readonly schema: z.ZodObject<{
|
|
569
|
+
providerId: z.ZodString;
|
|
570
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
571
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
+
id: z.ZodString;
|
|
573
|
+
createdAt: z.ZodDate;
|
|
574
|
+
updatedAt: z.ZodDate;
|
|
575
|
+
}, z.core.$strip>;
|
|
576
|
+
readonly fields: {
|
|
577
|
+
readonly id: {
|
|
578
|
+
readonly type: "uuid";
|
|
579
|
+
readonly primaryKey: true;
|
|
580
|
+
};
|
|
581
|
+
readonly providerId: {
|
|
582
|
+
readonly type: "text";
|
|
583
|
+
readonly unique: true;
|
|
584
|
+
};
|
|
585
|
+
readonly config: {
|
|
586
|
+
readonly type: "jsonb";
|
|
587
|
+
readonly default: "{}";
|
|
588
|
+
};
|
|
589
|
+
readonly enabled: {
|
|
590
|
+
readonly type: "boolean";
|
|
591
|
+
readonly default: true;
|
|
592
|
+
};
|
|
593
|
+
readonly createdAt: {
|
|
594
|
+
readonly type: "timestamp";
|
|
595
|
+
readonly default: "now()";
|
|
596
|
+
};
|
|
597
|
+
readonly updatedAt: {
|
|
598
|
+
readonly type: "timestamp";
|
|
599
|
+
readonly default: "now()";
|
|
600
|
+
readonly onUpdate: "now()";
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly llm_requests: {
|
|
605
|
+
readonly order: 10;
|
|
553
606
|
readonly schema: z.ZodObject<{
|
|
554
607
|
requestId: z.ZodString;
|
|
555
608
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -746,6 +799,14 @@ declare const schemas: {
|
|
|
746
799
|
createdAt: z.ZodDate;
|
|
747
800
|
updatedAt: z.ZodDate;
|
|
748
801
|
}, z.core.$strip>;
|
|
802
|
+
readonly provider_configs: z.ZodObject<{
|
|
803
|
+
providerId: z.ZodString;
|
|
804
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
805
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
806
|
+
id: z.ZodString;
|
|
807
|
+
createdAt: z.ZodDate;
|
|
808
|
+
updatedAt: z.ZodDate;
|
|
809
|
+
}, z.core.$strip>;
|
|
749
810
|
readonly llm_requests: z.ZodObject<{
|
|
750
811
|
requestId: z.ZodString;
|
|
751
812
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -881,6 +942,20 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
881
942
|
updatedAt: Date;
|
|
882
943
|
name?: string | null | undefined;
|
|
883
944
|
superAdminId?: string | null | undefined;
|
|
945
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
946
|
+
providerId: string;
|
|
947
|
+
config: Record<string, unknown>;
|
|
948
|
+
enabled: boolean;
|
|
949
|
+
id: string;
|
|
950
|
+
createdAt: Date;
|
|
951
|
+
updatedAt: Date;
|
|
952
|
+
}> | zod0.ZodSafeParseError<{
|
|
953
|
+
providerId: string;
|
|
954
|
+
config: Record<string, unknown>;
|
|
955
|
+
enabled: boolean;
|
|
956
|
+
id: string;
|
|
957
|
+
createdAt: Date;
|
|
958
|
+
updatedAt: Date;
|
|
884
959
|
}> | zod0.ZodSafeParseSuccess<{
|
|
885
960
|
requestId: string;
|
|
886
961
|
provider: string;
|
|
@@ -1023,6 +1098,20 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1023
1098
|
id?: string | undefined;
|
|
1024
1099
|
createdAt?: Date | undefined;
|
|
1025
1100
|
updatedAt?: Date | undefined;
|
|
1101
|
+
}> | zod0.ZodSafeParseSuccess<{
|
|
1102
|
+
providerId?: string | undefined;
|
|
1103
|
+
config?: Record<string, unknown> | undefined;
|
|
1104
|
+
enabled?: boolean | undefined;
|
|
1105
|
+
id?: string | undefined;
|
|
1106
|
+
createdAt?: Date | undefined;
|
|
1107
|
+
updatedAt?: Date | undefined;
|
|
1108
|
+
}> | zod0.ZodSafeParseError<{
|
|
1109
|
+
providerId?: string | undefined;
|
|
1110
|
+
config?: Record<string, unknown> | undefined;
|
|
1111
|
+
enabled?: boolean | undefined;
|
|
1112
|
+
id?: string | undefined;
|
|
1113
|
+
createdAt?: Date | undefined;
|
|
1114
|
+
updatedAt?: Date | undefined;
|
|
1026
1115
|
}> | zod0.ZodSafeParseSuccess<{
|
|
1027
1116
|
requestId?: string | undefined;
|
|
1028
1117
|
configId?: string | null | undefined;
|
|
@@ -1125,6 +1214,13 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
1125
1214
|
updatedAt: Date;
|
|
1126
1215
|
name?: string | null | undefined;
|
|
1127
1216
|
superAdminId?: string | null | undefined;
|
|
1217
|
+
} | {
|
|
1218
|
+
providerId: string;
|
|
1219
|
+
config: Record<string, unknown>;
|
|
1220
|
+
enabled: boolean;
|
|
1221
|
+
id: string;
|
|
1222
|
+
createdAt: Date;
|
|
1223
|
+
updatedAt: Date;
|
|
1128
1224
|
} | {
|
|
1129
1225
|
requestId: string;
|
|
1130
1226
|
provider: string;
|
|
@@ -1198,6 +1294,13 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
1198
1294
|
id?: string | undefined;
|
|
1199
1295
|
createdAt?: Date | undefined;
|
|
1200
1296
|
updatedAt?: Date | undefined;
|
|
1297
|
+
} | {
|
|
1298
|
+
providerId?: string | undefined;
|
|
1299
|
+
config?: Record<string, unknown> | undefined;
|
|
1300
|
+
enabled?: boolean | undefined;
|
|
1301
|
+
id?: string | undefined;
|
|
1302
|
+
createdAt?: Date | undefined;
|
|
1303
|
+
updatedAt?: Date | undefined;
|
|
1201
1304
|
} | {
|
|
1202
1305
|
requestId?: string | undefined;
|
|
1203
1306
|
configId?: string | null | undefined;
|
|
@@ -1317,4 +1420,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
1317
1420
|
*/
|
|
1318
1421
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
1319
1422
|
//#endregion
|
|
1320
|
-
export {
|
|
1423
|
+
export { SCHEMA_METADATA as A, WorkspaceSettings as B, EnvironmentSecretsTable as C, LLMRequestsTable as D, LLMRequest as E, Updateable as F, environmentsSchema as G, configVariantsSchema as H, Variant as I, schemas as J, llmRequestsSchema as K, VariantVersion as L, TableName as M, TargetingRule as N, ProviderConfig as O, TargetingRulesTable as P, workspaceSettingsSchema as Q, VariantVersionsTable as R, EnvironmentSecret as S, Insertable as T, configsSchema as U, WorkspaceSettingsTable as V, environmentSecretsSchema as W, variantVersionsSchema as X, targetingRulesSchema as Y, variantsSchema as Z, ConfigVariant as _, createDatabaseFromConnection as a, Database as b, MigrationResult as c, runAutoMigrations as d, parsePartialTableData as f, Config as g, validateTableData as h, createDatabase as i, Selectable as j, ProviderConfigsTable as k, getMigrations as l, validatePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, parseTableData as p, providerConfigsSchema as q, DatabaseType as r, MigrationOptions as s, DatabaseConnection as t, matchType as u, ConfigVariantsTable as v, EnvironmentsTable as w, Environment as x, ConfigsTable as y, VariantsTable as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod486 from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/db/schema.d.ts
|
|
@@ -70,6 +70,14 @@ declare const workspaceSettingsSchema: z.ZodObject<{
|
|
|
70
70
|
createdAt: z.ZodDate;
|
|
71
71
|
updatedAt: z.ZodDate;
|
|
72
72
|
}, z.core.$strip>;
|
|
73
|
+
declare const providerConfigsSchema: z.ZodObject<{
|
|
74
|
+
providerId: z.ZodString;
|
|
75
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
createdAt: z.ZodDate;
|
|
79
|
+
updatedAt: z.ZodDate;
|
|
80
|
+
}, z.core.$strip>;
|
|
73
81
|
declare const llmRequestsSchema: z.ZodObject<{
|
|
74
82
|
requestId: z.ZodString;
|
|
75
83
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -105,6 +113,7 @@ type EnvironmentSecret = z.infer<typeof environmentSecretsSchema>;
|
|
|
105
113
|
type ConfigVariant = z.infer<typeof configVariantsSchema>;
|
|
106
114
|
type TargetingRule = z.infer<typeof targetingRulesSchema>;
|
|
107
115
|
type WorkspaceSettings = z.infer<typeof workspaceSettingsSchema>;
|
|
116
|
+
type ProviderConfig = z.infer<typeof providerConfigsSchema>;
|
|
108
117
|
type LLMRequest = z.infer<typeof llmRequestsSchema>;
|
|
109
118
|
/**
|
|
110
119
|
* Kysely Table Interfaces
|
|
@@ -158,6 +167,11 @@ interface WorkspaceSettingsTable extends BaseTable {
|
|
|
158
167
|
setupComplete: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
159
168
|
superAdminId: string | null;
|
|
160
169
|
}
|
|
170
|
+
interface ProviderConfigsTable extends BaseTable {
|
|
171
|
+
providerId: string;
|
|
172
|
+
config: ColumnType<Record<string, unknown>, string, string>;
|
|
173
|
+
enabled: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
174
|
+
}
|
|
161
175
|
interface LLMRequestsTable extends BaseTable {
|
|
162
176
|
requestId: string;
|
|
163
177
|
configId: string | null;
|
|
@@ -191,6 +205,7 @@ interface Database {
|
|
|
191
205
|
config_variants: ConfigVariantsTable;
|
|
192
206
|
targeting_rules: TargetingRulesTable;
|
|
193
207
|
workspace_settings: WorkspaceSettingsTable;
|
|
208
|
+
provider_configs: ProviderConfigsTable;
|
|
194
209
|
llm_requests: LLMRequestsTable;
|
|
195
210
|
}
|
|
196
211
|
/**
|
|
@@ -548,8 +563,46 @@ declare const SCHEMA_METADATA: {
|
|
|
548
563
|
};
|
|
549
564
|
};
|
|
550
565
|
};
|
|
551
|
-
readonly
|
|
566
|
+
readonly provider_configs: {
|
|
552
567
|
readonly order: 9;
|
|
568
|
+
readonly schema: z.ZodObject<{
|
|
569
|
+
providerId: z.ZodString;
|
|
570
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
571
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
+
id: z.ZodString;
|
|
573
|
+
createdAt: z.ZodDate;
|
|
574
|
+
updatedAt: z.ZodDate;
|
|
575
|
+
}, z.core.$strip>;
|
|
576
|
+
readonly fields: {
|
|
577
|
+
readonly id: {
|
|
578
|
+
readonly type: "uuid";
|
|
579
|
+
readonly primaryKey: true;
|
|
580
|
+
};
|
|
581
|
+
readonly providerId: {
|
|
582
|
+
readonly type: "text";
|
|
583
|
+
readonly unique: true;
|
|
584
|
+
};
|
|
585
|
+
readonly config: {
|
|
586
|
+
readonly type: "jsonb";
|
|
587
|
+
readonly default: "{}";
|
|
588
|
+
};
|
|
589
|
+
readonly enabled: {
|
|
590
|
+
readonly type: "boolean";
|
|
591
|
+
readonly default: true;
|
|
592
|
+
};
|
|
593
|
+
readonly createdAt: {
|
|
594
|
+
readonly type: "timestamp";
|
|
595
|
+
readonly default: "now()";
|
|
596
|
+
};
|
|
597
|
+
readonly updatedAt: {
|
|
598
|
+
readonly type: "timestamp";
|
|
599
|
+
readonly default: "now()";
|
|
600
|
+
readonly onUpdate: "now()";
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly llm_requests: {
|
|
605
|
+
readonly order: 10;
|
|
553
606
|
readonly schema: z.ZodObject<{
|
|
554
607
|
requestId: z.ZodString;
|
|
555
608
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -746,6 +799,14 @@ declare const schemas: {
|
|
|
746
799
|
createdAt: z.ZodDate;
|
|
747
800
|
updatedAt: z.ZodDate;
|
|
748
801
|
}, z.core.$strip>;
|
|
802
|
+
readonly provider_configs: z.ZodObject<{
|
|
803
|
+
providerId: z.ZodString;
|
|
804
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
805
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
806
|
+
id: z.ZodString;
|
|
807
|
+
createdAt: z.ZodDate;
|
|
808
|
+
updatedAt: z.ZodDate;
|
|
809
|
+
}, z.core.$strip>;
|
|
749
810
|
readonly llm_requests: z.ZodObject<{
|
|
750
811
|
requestId: z.ZodString;
|
|
751
812
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -777,29 +838,29 @@ declare const schemas: {
|
|
|
777
838
|
* Validate data against table schema
|
|
778
839
|
* Useful for runtime validation before inserting/updating
|
|
779
840
|
*/
|
|
780
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
841
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod486.ZodSafeParseSuccess<{
|
|
781
842
|
slug: string;
|
|
782
843
|
id: string;
|
|
783
844
|
createdAt: Date;
|
|
784
845
|
updatedAt: Date;
|
|
785
846
|
name?: string | undefined;
|
|
786
|
-
}> |
|
|
847
|
+
}> | zod486.ZodSafeParseError<{
|
|
787
848
|
slug: string;
|
|
788
849
|
id: string;
|
|
789
850
|
createdAt: Date;
|
|
790
851
|
updatedAt: Date;
|
|
791
852
|
name?: string | undefined;
|
|
792
|
-
}> |
|
|
853
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
793
854
|
name: string;
|
|
794
855
|
id: string;
|
|
795
856
|
createdAt: Date;
|
|
796
857
|
updatedAt: Date;
|
|
797
|
-
}> |
|
|
858
|
+
}> | zod486.ZodSafeParseError<{
|
|
798
859
|
name: string;
|
|
799
860
|
id: string;
|
|
800
861
|
createdAt: Date;
|
|
801
862
|
updatedAt: Date;
|
|
802
|
-
}> |
|
|
863
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
803
864
|
variantId: string;
|
|
804
865
|
version: number;
|
|
805
866
|
provider: string;
|
|
@@ -808,7 +869,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
808
869
|
id: string;
|
|
809
870
|
createdAt: Date;
|
|
810
871
|
updatedAt: Date;
|
|
811
|
-
}> |
|
|
872
|
+
}> | zod486.ZodSafeParseError<{
|
|
812
873
|
variantId: string;
|
|
813
874
|
version: number;
|
|
814
875
|
provider: string;
|
|
@@ -817,33 +878,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
817
878
|
id: string;
|
|
818
879
|
createdAt: Date;
|
|
819
880
|
updatedAt: Date;
|
|
820
|
-
}> |
|
|
881
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
821
882
|
environmentId: string;
|
|
822
883
|
keyName: string;
|
|
823
884
|
keyValue: string;
|
|
824
885
|
id: string;
|
|
825
886
|
createdAt: Date;
|
|
826
887
|
updatedAt: Date;
|
|
827
|
-
}> |
|
|
888
|
+
}> | zod486.ZodSafeParseError<{
|
|
828
889
|
environmentId: string;
|
|
829
890
|
keyName: string;
|
|
830
891
|
keyValue: string;
|
|
831
892
|
id: string;
|
|
832
893
|
createdAt: Date;
|
|
833
894
|
updatedAt: Date;
|
|
834
|
-
}> |
|
|
895
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
835
896
|
configId: string;
|
|
836
897
|
variantId: string;
|
|
837
898
|
id: string;
|
|
838
899
|
createdAt: Date;
|
|
839
900
|
updatedAt: Date;
|
|
840
|
-
}> |
|
|
901
|
+
}> | zod486.ZodSafeParseError<{
|
|
841
902
|
configId: string;
|
|
842
903
|
variantId: string;
|
|
843
904
|
id: string;
|
|
844
905
|
createdAt: Date;
|
|
845
906
|
updatedAt: Date;
|
|
846
|
-
}> |
|
|
907
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
847
908
|
environmentId: string;
|
|
848
909
|
configId: string;
|
|
849
910
|
configVariantId: string;
|
|
@@ -855,7 +916,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
855
916
|
createdAt: Date;
|
|
856
917
|
updatedAt: Date;
|
|
857
918
|
variantVersionId?: string | null | undefined;
|
|
858
|
-
}> |
|
|
919
|
+
}> | zod486.ZodSafeParseError<{
|
|
859
920
|
environmentId: string;
|
|
860
921
|
configId: string;
|
|
861
922
|
configVariantId: string;
|
|
@@ -867,21 +928,35 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
867
928
|
createdAt: Date;
|
|
868
929
|
updatedAt: Date;
|
|
869
930
|
variantVersionId?: string | null | undefined;
|
|
870
|
-
}> |
|
|
931
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
871
932
|
setupComplete: boolean;
|
|
872
933
|
id: string;
|
|
873
934
|
createdAt: Date;
|
|
874
935
|
updatedAt: Date;
|
|
875
936
|
name?: string | null | undefined;
|
|
876
937
|
superAdminId?: string | null | undefined;
|
|
877
|
-
}> |
|
|
938
|
+
}> | zod486.ZodSafeParseError<{
|
|
878
939
|
setupComplete: boolean;
|
|
879
940
|
id: string;
|
|
880
941
|
createdAt: Date;
|
|
881
942
|
updatedAt: Date;
|
|
882
943
|
name?: string | null | undefined;
|
|
883
944
|
superAdminId?: string | null | undefined;
|
|
884
|
-
}> |
|
|
945
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
946
|
+
providerId: string;
|
|
947
|
+
config: Record<string, unknown>;
|
|
948
|
+
enabled: boolean;
|
|
949
|
+
id: string;
|
|
950
|
+
createdAt: Date;
|
|
951
|
+
updatedAt: Date;
|
|
952
|
+
}> | zod486.ZodSafeParseError<{
|
|
953
|
+
providerId: string;
|
|
954
|
+
config: Record<string, unknown>;
|
|
955
|
+
enabled: boolean;
|
|
956
|
+
id: string;
|
|
957
|
+
createdAt: Date;
|
|
958
|
+
updatedAt: Date;
|
|
959
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
885
960
|
requestId: string;
|
|
886
961
|
provider: string;
|
|
887
962
|
model: string;
|
|
@@ -904,7 +979,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
904
979
|
variantId?: string | null | undefined;
|
|
905
980
|
environmentId?: string | null | undefined;
|
|
906
981
|
userId?: string | null | undefined;
|
|
907
|
-
}> |
|
|
982
|
+
}> | zod486.ZodSafeParseError<{
|
|
908
983
|
requestId: string;
|
|
909
984
|
provider: string;
|
|
910
985
|
model: string;
|
|
@@ -931,17 +1006,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
931
1006
|
/**
|
|
932
1007
|
* Validate partial data (for updates)
|
|
933
1008
|
*/
|
|
934
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
1009
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod486.ZodSafeParseSuccess<{
|
|
935
1010
|
name?: string | undefined;
|
|
936
1011
|
id?: string | undefined;
|
|
937
1012
|
createdAt?: Date | undefined;
|
|
938
1013
|
updatedAt?: Date | undefined;
|
|
939
|
-
}> |
|
|
1014
|
+
}> | zod486.ZodSafeParseError<{
|
|
940
1015
|
name?: string | undefined;
|
|
941
1016
|
id?: string | undefined;
|
|
942
1017
|
createdAt?: Date | undefined;
|
|
943
1018
|
updatedAt?: Date | undefined;
|
|
944
|
-
}> |
|
|
1019
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
945
1020
|
variantId?: string | undefined;
|
|
946
1021
|
version?: number | undefined;
|
|
947
1022
|
provider?: string | undefined;
|
|
@@ -950,7 +1025,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
950
1025
|
id?: string | undefined;
|
|
951
1026
|
createdAt?: Date | undefined;
|
|
952
1027
|
updatedAt?: Date | undefined;
|
|
953
|
-
}> |
|
|
1028
|
+
}> | zod486.ZodSafeParseError<{
|
|
954
1029
|
variantId?: string | undefined;
|
|
955
1030
|
version?: number | undefined;
|
|
956
1031
|
provider?: string | undefined;
|
|
@@ -959,33 +1034,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
959
1034
|
id?: string | undefined;
|
|
960
1035
|
createdAt?: Date | undefined;
|
|
961
1036
|
updatedAt?: Date | undefined;
|
|
962
|
-
}> |
|
|
1037
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
963
1038
|
environmentId?: string | undefined;
|
|
964
1039
|
keyName?: string | undefined;
|
|
965
1040
|
keyValue?: string | undefined;
|
|
966
1041
|
id?: string | undefined;
|
|
967
1042
|
createdAt?: Date | undefined;
|
|
968
1043
|
updatedAt?: Date | undefined;
|
|
969
|
-
}> |
|
|
1044
|
+
}> | zod486.ZodSafeParseError<{
|
|
970
1045
|
environmentId?: string | undefined;
|
|
971
1046
|
keyName?: string | undefined;
|
|
972
1047
|
keyValue?: string | undefined;
|
|
973
1048
|
id?: string | undefined;
|
|
974
1049
|
createdAt?: Date | undefined;
|
|
975
1050
|
updatedAt?: Date | undefined;
|
|
976
|
-
}> |
|
|
1051
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
977
1052
|
configId?: string | undefined;
|
|
978
1053
|
variantId?: string | undefined;
|
|
979
1054
|
id?: string | undefined;
|
|
980
1055
|
createdAt?: Date | undefined;
|
|
981
1056
|
updatedAt?: Date | undefined;
|
|
982
|
-
}> |
|
|
1057
|
+
}> | zod486.ZodSafeParseError<{
|
|
983
1058
|
configId?: string | undefined;
|
|
984
1059
|
variantId?: string | undefined;
|
|
985
1060
|
id?: string | undefined;
|
|
986
1061
|
createdAt?: Date | undefined;
|
|
987
1062
|
updatedAt?: Date | undefined;
|
|
988
|
-
}> |
|
|
1063
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
989
1064
|
environmentId?: string | undefined;
|
|
990
1065
|
configId?: string | undefined;
|
|
991
1066
|
configVariantId?: string | undefined;
|
|
@@ -997,7 +1072,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
997
1072
|
id?: string | undefined;
|
|
998
1073
|
createdAt?: Date | undefined;
|
|
999
1074
|
updatedAt?: Date | undefined;
|
|
1000
|
-
}> |
|
|
1075
|
+
}> | zod486.ZodSafeParseError<{
|
|
1001
1076
|
environmentId?: string | undefined;
|
|
1002
1077
|
configId?: string | undefined;
|
|
1003
1078
|
configVariantId?: string | undefined;
|
|
@@ -1009,21 +1084,35 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1009
1084
|
id?: string | undefined;
|
|
1010
1085
|
createdAt?: Date | undefined;
|
|
1011
1086
|
updatedAt?: Date | undefined;
|
|
1012
|
-
}> |
|
|
1087
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
1013
1088
|
name?: string | null | undefined;
|
|
1014
1089
|
setupComplete?: boolean | undefined;
|
|
1015
1090
|
superAdminId?: string | null | undefined;
|
|
1016
1091
|
id?: string | undefined;
|
|
1017
1092
|
createdAt?: Date | undefined;
|
|
1018
1093
|
updatedAt?: Date | undefined;
|
|
1019
|
-
}> |
|
|
1094
|
+
}> | zod486.ZodSafeParseError<{
|
|
1020
1095
|
name?: string | null | undefined;
|
|
1021
1096
|
setupComplete?: boolean | undefined;
|
|
1022
1097
|
superAdminId?: string | null | undefined;
|
|
1023
1098
|
id?: string | undefined;
|
|
1024
1099
|
createdAt?: Date | undefined;
|
|
1025
1100
|
updatedAt?: Date | undefined;
|
|
1026
|
-
}> |
|
|
1101
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
1102
|
+
providerId?: string | undefined;
|
|
1103
|
+
config?: Record<string, unknown> | undefined;
|
|
1104
|
+
enabled?: boolean | undefined;
|
|
1105
|
+
id?: string | undefined;
|
|
1106
|
+
createdAt?: Date | undefined;
|
|
1107
|
+
updatedAt?: Date | undefined;
|
|
1108
|
+
}> | zod486.ZodSafeParseError<{
|
|
1109
|
+
providerId?: string | undefined;
|
|
1110
|
+
config?: Record<string, unknown> | undefined;
|
|
1111
|
+
enabled?: boolean | undefined;
|
|
1112
|
+
id?: string | undefined;
|
|
1113
|
+
createdAt?: Date | undefined;
|
|
1114
|
+
updatedAt?: Date | undefined;
|
|
1115
|
+
}> | zod486.ZodSafeParseSuccess<{
|
|
1027
1116
|
requestId?: string | undefined;
|
|
1028
1117
|
configId?: string | null | undefined;
|
|
1029
1118
|
variantId?: string | null | undefined;
|
|
@@ -1046,7 +1135,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1046
1135
|
id?: string | undefined;
|
|
1047
1136
|
createdAt?: Date | undefined;
|
|
1048
1137
|
updatedAt?: Date | undefined;
|
|
1049
|
-
}> |
|
|
1138
|
+
}> | zod486.ZodSafeParseError<{
|
|
1050
1139
|
requestId?: string | undefined;
|
|
1051
1140
|
configId?: string | null | undefined;
|
|
1052
1141
|
variantId?: string | null | undefined;
|
|
@@ -1125,6 +1214,13 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
1125
1214
|
updatedAt: Date;
|
|
1126
1215
|
name?: string | null | undefined;
|
|
1127
1216
|
superAdminId?: string | null | undefined;
|
|
1217
|
+
} | {
|
|
1218
|
+
providerId: string;
|
|
1219
|
+
config: Record<string, unknown>;
|
|
1220
|
+
enabled: boolean;
|
|
1221
|
+
id: string;
|
|
1222
|
+
createdAt: Date;
|
|
1223
|
+
updatedAt: Date;
|
|
1128
1224
|
} | {
|
|
1129
1225
|
requestId: string;
|
|
1130
1226
|
provider: string;
|
|
@@ -1198,6 +1294,13 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
1198
1294
|
id?: string | undefined;
|
|
1199
1295
|
createdAt?: Date | undefined;
|
|
1200
1296
|
updatedAt?: Date | undefined;
|
|
1297
|
+
} | {
|
|
1298
|
+
providerId?: string | undefined;
|
|
1299
|
+
config?: Record<string, unknown> | undefined;
|
|
1300
|
+
enabled?: boolean | undefined;
|
|
1301
|
+
id?: string | undefined;
|
|
1302
|
+
createdAt?: Date | undefined;
|
|
1303
|
+
updatedAt?: Date | undefined;
|
|
1201
1304
|
} | {
|
|
1202
1305
|
requestId?: string | undefined;
|
|
1203
1306
|
configId?: string | null | undefined;
|
|
@@ -1317,4 +1420,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
1317
1420
|
*/
|
|
1318
1421
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
1319
1422
|
//#endregion
|
|
1320
|
-
export {
|
|
1423
|
+
export { SCHEMA_METADATA as A, WorkspaceSettings as B, EnvironmentSecretsTable as C, LLMRequestsTable as D, LLMRequest as E, Updateable as F, environmentsSchema as G, configVariantsSchema as H, Variant as I, schemas as J, llmRequestsSchema as K, VariantVersion as L, TableName as M, TargetingRule as N, ProviderConfig as O, TargetingRulesTable as P, workspaceSettingsSchema as Q, VariantVersionsTable as R, EnvironmentSecret as S, Insertable as T, configsSchema as U, WorkspaceSettingsTable as V, environmentSecretsSchema as W, variantVersionsSchema as X, targetingRulesSchema as Y, variantsSchema as Z, ConfigVariant as _, createDatabaseFromConnection as a, Database as b, MigrationResult as c, runAutoMigrations as d, parsePartialTableData as f, Config as g, validateTableData as h, createDatabase as i, Selectable as j, ProviderConfigsTable as k, getMigrations as l, validatePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, parseTableData as p, providerConfigsSchema as q, DatabaseType as r, MigrationOptions as s, DatabaseConnection as t, matchType as u, ConfigVariantsTable as v, EnvironmentsTable as w, Environment as x, ConfigsTable as y, VariantsTable as z };
|