@llmops/core 1.0.0-beta.1 → 1.0.0-beta.3
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-C3HVUfYl.cjs → bun-sqlite-dialect-CVUG5QUU.cjs} +1 -1
- package/dist/db/index.cjs +2 -2
- package/dist/db/index.d.cts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/{db-CjwRQB4N.mjs → db-CZ8KtpL-.mjs} +3 -132
- package/dist/{db-D3WDjcvd.cjs → db-DZv0NtMm.cjs} +7 -136
- package/dist/{index-BoDvuqku.d.mts → index-BlFAMkmT.d.mts} +18 -416
- package/dist/{index-BmGf4wCW.d.cts → index-DjIHdwhi.d.cts} +18 -416
- package/dist/index.cjs +1132 -1648
- package/dist/index.d.cts +981 -1535
- package/dist/index.d.mts +981 -1535
- package/dist/index.mjs +1132 -1641
- package/dist/{neon-dialect-BSJpZ9YH.cjs → neon-dialect-BOnuygPe.cjs} +1 -1
- package/dist/{neon-dialect-DMClTHvw.cjs → neon-dialect-ByrFa9iy.cjs} +1 -1
- package/dist/{node-sqlite-dialect-BZGXfDHS.cjs → node-sqlite-dialect-fwmW40Ar.cjs} +1 -1
- package/package.json +2 -2
|
@@ -85,7 +85,8 @@ declare const playgroundColumnSchema: z.ZodObject<{
|
|
|
85
85
|
id: z.ZodString;
|
|
86
86
|
name: z.ZodString;
|
|
87
87
|
position: z.ZodNumber;
|
|
88
|
-
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]
|
|
88
|
+
providerConfigId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
89
|
+
providerSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
90
|
modelName: z.ZodString;
|
|
90
91
|
messages: z.ZodArray<z.ZodObject<{
|
|
91
92
|
role: z.ZodEnum<{
|
|
@@ -100,9 +101,6 @@ declare const playgroundColumnSchema: z.ZodObject<{
|
|
|
100
101
|
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
101
102
|
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
103
|
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103
|
-
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
104
|
}, z.core.$strip>;
|
|
107
105
|
declare const playgroundsSchema: z.ZodObject<{
|
|
108
106
|
name: z.ZodString;
|
|
@@ -111,7 +109,8 @@ declare const playgroundsSchema: z.ZodObject<{
|
|
|
111
109
|
id: z.ZodString;
|
|
112
110
|
name: z.ZodString;
|
|
113
111
|
position: z.ZodNumber;
|
|
114
|
-
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]
|
|
112
|
+
providerConfigId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
113
|
+
providerSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
114
|
modelName: z.ZodString;
|
|
116
115
|
messages: z.ZodArray<z.ZodObject<{
|
|
117
116
|
role: z.ZodEnum<{
|
|
@@ -126,9 +125,6 @@ declare const playgroundsSchema: z.ZodObject<{
|
|
|
126
125
|
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
127
126
|
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
128
127
|
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
129
|
-
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
-
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
128
|
}, z.core.$strip>>>;
|
|
133
129
|
id: z.ZodString;
|
|
134
130
|
createdAt: z.ZodDate;
|
|
@@ -620,12 +616,9 @@ interface SpanEventsTable {
|
|
|
620
616
|
*/
|
|
621
617
|
interface Database {
|
|
622
618
|
workspace_settings: WorkspaceSettingsTable;
|
|
623
|
-
provider_configs: ProviderConfigsTable;
|
|
624
619
|
playgrounds: PlaygroundsTable;
|
|
625
620
|
playground_runs: PlaygroundRunsTable;
|
|
626
621
|
playground_results: PlaygroundResultsTable;
|
|
627
|
-
guardrail_configs: GuardrailConfigsTable;
|
|
628
|
-
provider_guardrail_overrides: ProviderGuardrailOverridesTable;
|
|
629
622
|
datasets: DatasetsTable;
|
|
630
623
|
dataset_versions: DatasetVersionsTable;
|
|
631
624
|
dataset_records: DatasetRecordsTable;
|
|
@@ -689,53 +682,6 @@ declare const SCHEMA_METADATA: {
|
|
|
689
682
|
};
|
|
690
683
|
};
|
|
691
684
|
};
|
|
692
|
-
readonly provider_configs: {
|
|
693
|
-
readonly order: 9;
|
|
694
|
-
readonly schema: z.ZodObject<{
|
|
695
|
-
providerId: z.ZodString;
|
|
696
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
697
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
699
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
-
id: z.ZodString;
|
|
701
|
-
createdAt: z.ZodDate;
|
|
702
|
-
updatedAt: z.ZodDate;
|
|
703
|
-
}, z.core.$strip>;
|
|
704
|
-
readonly fields: {
|
|
705
|
-
readonly id: {
|
|
706
|
-
readonly type: "uuid";
|
|
707
|
-
readonly primaryKey: true;
|
|
708
|
-
};
|
|
709
|
-
readonly providerId: {
|
|
710
|
-
readonly type: "text";
|
|
711
|
-
};
|
|
712
|
-
readonly slug: {
|
|
713
|
-
readonly type: "text";
|
|
714
|
-
readonly nullable: true;
|
|
715
|
-
};
|
|
716
|
-
readonly name: {
|
|
717
|
-
readonly type: "text";
|
|
718
|
-
readonly nullable: true;
|
|
719
|
-
};
|
|
720
|
-
readonly config: {
|
|
721
|
-
readonly type: "jsonb";
|
|
722
|
-
readonly default: "{}";
|
|
723
|
-
};
|
|
724
|
-
readonly enabled: {
|
|
725
|
-
readonly type: "boolean";
|
|
726
|
-
readonly default: true;
|
|
727
|
-
};
|
|
728
|
-
readonly createdAt: {
|
|
729
|
-
readonly type: "timestamp";
|
|
730
|
-
readonly default: "now()";
|
|
731
|
-
};
|
|
732
|
-
readonly updatedAt: {
|
|
733
|
-
readonly type: "timestamp";
|
|
734
|
-
readonly default: "now()";
|
|
735
|
-
readonly onUpdate: "now()";
|
|
736
|
-
};
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
685
|
readonly playgrounds: {
|
|
740
686
|
readonly order: 20;
|
|
741
687
|
readonly schema: z.ZodObject<{
|
|
@@ -745,7 +691,8 @@ declare const SCHEMA_METADATA: {
|
|
|
745
691
|
id: z.ZodString;
|
|
746
692
|
name: z.ZodString;
|
|
747
693
|
position: z.ZodNumber;
|
|
748
|
-
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]
|
|
694
|
+
providerConfigId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
695
|
+
providerSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
696
|
modelName: z.ZodString;
|
|
750
697
|
messages: z.ZodArray<z.ZodObject<{
|
|
751
698
|
role: z.ZodEnum<{
|
|
@@ -760,9 +707,6 @@ declare const SCHEMA_METADATA: {
|
|
|
760
707
|
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
761
708
|
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
762
709
|
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
763
|
-
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
764
|
-
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
766
710
|
}, z.core.$strip>>>;
|
|
767
711
|
id: z.ZodString;
|
|
768
712
|
createdAt: z.ZodDate;
|
|
@@ -971,71 +915,6 @@ declare const SCHEMA_METADATA: {
|
|
|
971
915
|
};
|
|
972
916
|
};
|
|
973
917
|
};
|
|
974
|
-
readonly guardrail_configs: {
|
|
975
|
-
readonly order: 14;
|
|
976
|
-
readonly schema: z.ZodObject<{
|
|
977
|
-
name: z.ZodString;
|
|
978
|
-
pluginId: z.ZodString;
|
|
979
|
-
functionId: z.ZodString;
|
|
980
|
-
hookType: z.ZodEnum<{
|
|
981
|
-
beforeRequestHook: "beforeRequestHook";
|
|
982
|
-
afterRequestHook: "afterRequestHook";
|
|
983
|
-
}>;
|
|
984
|
-
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
985
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
986
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
987
|
-
onFail: z.ZodDefault<z.ZodEnum<{
|
|
988
|
-
block: "block";
|
|
989
|
-
log: "log";
|
|
990
|
-
}>>;
|
|
991
|
-
id: z.ZodString;
|
|
992
|
-
createdAt: z.ZodDate;
|
|
993
|
-
updatedAt: z.ZodDate;
|
|
994
|
-
}, z.core.$strip>;
|
|
995
|
-
readonly fields: {
|
|
996
|
-
readonly id: {
|
|
997
|
-
readonly type: "uuid";
|
|
998
|
-
readonly primaryKey: true;
|
|
999
|
-
};
|
|
1000
|
-
readonly name: {
|
|
1001
|
-
readonly type: "text";
|
|
1002
|
-
};
|
|
1003
|
-
readonly pluginId: {
|
|
1004
|
-
readonly type: "text";
|
|
1005
|
-
};
|
|
1006
|
-
readonly functionId: {
|
|
1007
|
-
readonly type: "text";
|
|
1008
|
-
};
|
|
1009
|
-
readonly hookType: {
|
|
1010
|
-
readonly type: "text";
|
|
1011
|
-
};
|
|
1012
|
-
readonly parameters: {
|
|
1013
|
-
readonly type: "jsonb";
|
|
1014
|
-
readonly default: "{}";
|
|
1015
|
-
};
|
|
1016
|
-
readonly enabled: {
|
|
1017
|
-
readonly type: "boolean";
|
|
1018
|
-
readonly default: true;
|
|
1019
|
-
};
|
|
1020
|
-
readonly priority: {
|
|
1021
|
-
readonly type: "integer";
|
|
1022
|
-
readonly default: 0;
|
|
1023
|
-
};
|
|
1024
|
-
readonly onFail: {
|
|
1025
|
-
readonly type: "text";
|
|
1026
|
-
readonly default: "block";
|
|
1027
|
-
};
|
|
1028
|
-
readonly createdAt: {
|
|
1029
|
-
readonly type: "timestamp";
|
|
1030
|
-
readonly default: "now()";
|
|
1031
|
-
};
|
|
1032
|
-
readonly updatedAt: {
|
|
1033
|
-
readonly type: "timestamp";
|
|
1034
|
-
readonly default: "now()";
|
|
1035
|
-
readonly onUpdate: "now()";
|
|
1036
|
-
};
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
918
|
readonly datasets: {
|
|
1040
919
|
readonly order: 10;
|
|
1041
920
|
readonly schema: z.ZodObject<{
|
|
@@ -1227,58 +1106,6 @@ declare const SCHEMA_METADATA: {
|
|
|
1227
1106
|
readonly columns: readonly ["datasetVersionId", "datasetRecordId"];
|
|
1228
1107
|
}];
|
|
1229
1108
|
};
|
|
1230
|
-
readonly provider_guardrail_overrides: {
|
|
1231
|
-
readonly order: 15;
|
|
1232
|
-
readonly schema: z.ZodObject<{
|
|
1233
|
-
providerConfigId: z.ZodString;
|
|
1234
|
-
guardrailConfigId: z.ZodString;
|
|
1235
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1236
|
-
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1237
|
-
id: z.ZodString;
|
|
1238
|
-
createdAt: z.ZodDate;
|
|
1239
|
-
updatedAt: z.ZodDate;
|
|
1240
|
-
}, z.core.$strip>;
|
|
1241
|
-
readonly fields: {
|
|
1242
|
-
readonly id: {
|
|
1243
|
-
readonly type: "uuid";
|
|
1244
|
-
readonly primaryKey: true;
|
|
1245
|
-
};
|
|
1246
|
-
readonly providerConfigId: {
|
|
1247
|
-
readonly type: "uuid";
|
|
1248
|
-
readonly references: {
|
|
1249
|
-
readonly table: "provider_configs";
|
|
1250
|
-
readonly column: "id";
|
|
1251
|
-
};
|
|
1252
|
-
};
|
|
1253
|
-
readonly guardrailConfigId: {
|
|
1254
|
-
readonly type: "uuid";
|
|
1255
|
-
readonly references: {
|
|
1256
|
-
readonly table: "guardrail_configs";
|
|
1257
|
-
readonly column: "id";
|
|
1258
|
-
};
|
|
1259
|
-
};
|
|
1260
|
-
readonly enabled: {
|
|
1261
|
-
readonly type: "boolean";
|
|
1262
|
-
readonly default: true;
|
|
1263
|
-
};
|
|
1264
|
-
readonly parameters: {
|
|
1265
|
-
readonly type: "jsonb";
|
|
1266
|
-
readonly nullable: true;
|
|
1267
|
-
};
|
|
1268
|
-
readonly createdAt: {
|
|
1269
|
-
readonly type: "timestamp";
|
|
1270
|
-
readonly default: "now()";
|
|
1271
|
-
};
|
|
1272
|
-
readonly updatedAt: {
|
|
1273
|
-
readonly type: "timestamp";
|
|
1274
|
-
readonly default: "now()";
|
|
1275
|
-
readonly onUpdate: "now()";
|
|
1276
|
-
};
|
|
1277
|
-
};
|
|
1278
|
-
readonly uniqueConstraints: readonly [{
|
|
1279
|
-
readonly columns: readonly ["providerConfigId", "guardrailConfigId"];
|
|
1280
|
-
}];
|
|
1281
|
-
};
|
|
1282
1109
|
readonly llm_requests: {
|
|
1283
1110
|
readonly order: 17;
|
|
1284
1111
|
readonly schema: z.ZodObject<{
|
|
@@ -1751,65 +1578,6 @@ declare const SCHEMA_METADATA: {
|
|
|
1751
1578
|
* Export all Zod schemas for runtime validation
|
|
1752
1579
|
*/
|
|
1753
1580
|
declare const schemas: {
|
|
1754
|
-
readonly configs: z.ZodObject<{
|
|
1755
|
-
slug: z.ZodString;
|
|
1756
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1757
|
-
id: z.ZodString;
|
|
1758
|
-
createdAt: z.ZodDate;
|
|
1759
|
-
updatedAt: z.ZodDate;
|
|
1760
|
-
}, z.core.$strip>;
|
|
1761
|
-
readonly variants: z.ZodObject<{
|
|
1762
|
-
name: z.ZodString;
|
|
1763
|
-
id: z.ZodString;
|
|
1764
|
-
createdAt: z.ZodDate;
|
|
1765
|
-
updatedAt: z.ZodDate;
|
|
1766
|
-
}, z.core.$strip>;
|
|
1767
|
-
readonly variant_versions: z.ZodObject<{
|
|
1768
|
-
variantId: z.ZodString;
|
|
1769
|
-
version: z.ZodNumber;
|
|
1770
|
-
provider: z.ZodString;
|
|
1771
|
-
modelName: z.ZodString;
|
|
1772
|
-
jsonData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1773
|
-
id: z.ZodString;
|
|
1774
|
-
createdAt: z.ZodDate;
|
|
1775
|
-
updatedAt: z.ZodDate;
|
|
1776
|
-
}, z.core.$strip>;
|
|
1777
|
-
readonly environments: z.ZodObject<{
|
|
1778
|
-
name: z.ZodString;
|
|
1779
|
-
slug: z.ZodString;
|
|
1780
|
-
isProd: z.ZodDefault<z.ZodBoolean>;
|
|
1781
|
-
id: z.ZodString;
|
|
1782
|
-
createdAt: z.ZodDate;
|
|
1783
|
-
updatedAt: z.ZodDate;
|
|
1784
|
-
}, z.core.$strip>;
|
|
1785
|
-
readonly environment_secrets: z.ZodObject<{
|
|
1786
|
-
environmentId: z.ZodString;
|
|
1787
|
-
keyName: z.ZodString;
|
|
1788
|
-
keyValue: z.ZodString;
|
|
1789
|
-
id: z.ZodString;
|
|
1790
|
-
createdAt: z.ZodDate;
|
|
1791
|
-
updatedAt: z.ZodDate;
|
|
1792
|
-
}, z.core.$strip>;
|
|
1793
|
-
readonly config_variants: z.ZodObject<{
|
|
1794
|
-
configId: z.ZodString;
|
|
1795
|
-
variantId: z.ZodString;
|
|
1796
|
-
id: z.ZodString;
|
|
1797
|
-
createdAt: z.ZodDate;
|
|
1798
|
-
updatedAt: z.ZodDate;
|
|
1799
|
-
}, z.core.$strip>;
|
|
1800
|
-
readonly targeting_rules: z.ZodObject<{
|
|
1801
|
-
environmentId: z.ZodString;
|
|
1802
|
-
configId: z.ZodString;
|
|
1803
|
-
configVariantId: z.ZodString;
|
|
1804
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1805
|
-
weight: z.ZodDefault<z.ZodNumber>;
|
|
1806
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
1807
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1808
|
-
conditions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1809
|
-
id: z.ZodString;
|
|
1810
|
-
createdAt: z.ZodDate;
|
|
1811
|
-
updatedAt: z.ZodDate;
|
|
1812
|
-
}, z.core.$strip>;
|
|
1813
1581
|
readonly workspace_settings: z.ZodObject<{
|
|
1814
1582
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1815
1583
|
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1818,16 +1586,6 @@ declare const schemas: {
|
|
|
1818
1586
|
createdAt: z.ZodDate;
|
|
1819
1587
|
updatedAt: z.ZodDate;
|
|
1820
1588
|
}, z.core.$strip>;
|
|
1821
|
-
readonly provider_configs: z.ZodObject<{
|
|
1822
|
-
providerId: z.ZodString;
|
|
1823
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1824
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1825
|
-
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1826
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1827
|
-
id: z.ZodString;
|
|
1828
|
-
createdAt: z.ZodDate;
|
|
1829
|
-
updatedAt: z.ZodDate;
|
|
1830
|
-
}, z.core.$strip>;
|
|
1831
1589
|
readonly playgrounds: z.ZodObject<{
|
|
1832
1590
|
name: z.ZodString;
|
|
1833
1591
|
datasetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1835,7 +1593,8 @@ declare const schemas: {
|
|
|
1835
1593
|
id: z.ZodString;
|
|
1836
1594
|
name: z.ZodString;
|
|
1837
1595
|
position: z.ZodNumber;
|
|
1838
|
-
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]
|
|
1596
|
+
providerConfigId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
1597
|
+
providerSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1839
1598
|
modelName: z.ZodString;
|
|
1840
1599
|
messages: z.ZodArray<z.ZodObject<{
|
|
1841
1600
|
role: z.ZodEnum<{
|
|
@@ -1850,9 +1609,6 @@ declare const schemas: {
|
|
|
1850
1609
|
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1851
1610
|
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1852
1611
|
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1853
|
-
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1854
|
-
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1855
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1856
1612
|
}, z.core.$strip>>>;
|
|
1857
1613
|
id: z.ZodString;
|
|
1858
1614
|
createdAt: z.ZodDate;
|
|
@@ -1862,7 +1618,8 @@ declare const schemas: {
|
|
|
1862
1618
|
id: z.ZodString;
|
|
1863
1619
|
name: z.ZodString;
|
|
1864
1620
|
position: z.ZodNumber;
|
|
1865
|
-
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]
|
|
1621
|
+
providerConfigId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
1622
|
+
providerSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1866
1623
|
modelName: z.ZodString;
|
|
1867
1624
|
messages: z.ZodArray<z.ZodObject<{
|
|
1868
1625
|
role: z.ZodEnum<{
|
|
@@ -1877,9 +1634,6 @@ declare const schemas: {
|
|
|
1877
1634
|
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1878
1635
|
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1879
1636
|
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1880
|
-
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1881
|
-
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1882
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1883
1637
|
}, z.core.$strip>;
|
|
1884
1638
|
readonly playground_runs: z.ZodObject<{
|
|
1885
1639
|
playgroundId: z.ZodString;
|
|
@@ -1922,34 +1676,6 @@ declare const schemas: {
|
|
|
1922
1676
|
createdAt: z.ZodDate;
|
|
1923
1677
|
updatedAt: z.ZodDate;
|
|
1924
1678
|
}, z.core.$strip>;
|
|
1925
|
-
readonly guardrail_configs: z.ZodObject<{
|
|
1926
|
-
name: z.ZodString;
|
|
1927
|
-
pluginId: z.ZodString;
|
|
1928
|
-
functionId: z.ZodString;
|
|
1929
|
-
hookType: z.ZodEnum<{
|
|
1930
|
-
beforeRequestHook: "beforeRequestHook";
|
|
1931
|
-
afterRequestHook: "afterRequestHook";
|
|
1932
|
-
}>;
|
|
1933
|
-
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1934
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1935
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
1936
|
-
onFail: z.ZodDefault<z.ZodEnum<{
|
|
1937
|
-
block: "block";
|
|
1938
|
-
log: "log";
|
|
1939
|
-
}>>;
|
|
1940
|
-
id: z.ZodString;
|
|
1941
|
-
createdAt: z.ZodDate;
|
|
1942
|
-
updatedAt: z.ZodDate;
|
|
1943
|
-
}, z.core.$strip>;
|
|
1944
|
-
readonly provider_guardrail_overrides: z.ZodObject<{
|
|
1945
|
-
providerConfigId: z.ZodString;
|
|
1946
|
-
guardrailConfigId: z.ZodString;
|
|
1947
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1948
|
-
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1949
|
-
id: z.ZodString;
|
|
1950
|
-
createdAt: z.ZodDate;
|
|
1951
|
-
updatedAt: z.ZodDate;
|
|
1952
|
-
}, z.core.$strip>;
|
|
1953
1679
|
readonly datasets: z.ZodObject<{
|
|
1954
1680
|
name: z.ZodString;
|
|
1955
1681
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2109,35 +1835,24 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2109
1835
|
updatedAt: Date;
|
|
2110
1836
|
name?: string | null | undefined;
|
|
2111
1837
|
superAdminId?: string | null | undefined;
|
|
2112
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2113
|
-
providerId: string;
|
|
2114
|
-
config: Record<string, unknown>;
|
|
2115
|
-
enabled: boolean;
|
|
2116
|
-
id: string;
|
|
2117
|
-
createdAt: Date;
|
|
2118
|
-
updatedAt: Date;
|
|
2119
|
-
slug?: string | null | undefined;
|
|
2120
|
-
name?: string | null | undefined;
|
|
2121
1838
|
}> | zod0.ZodSafeParseResult<{
|
|
2122
1839
|
name: string;
|
|
2123
1840
|
columns: {
|
|
2124
1841
|
id: string;
|
|
2125
1842
|
name: string;
|
|
2126
1843
|
position: number;
|
|
2127
|
-
providerConfigId: string | null;
|
|
2128
1844
|
modelName: string;
|
|
2129
1845
|
messages: {
|
|
2130
1846
|
role: "system" | "user" | "assistant";
|
|
2131
1847
|
content: string;
|
|
2132
1848
|
}[];
|
|
1849
|
+
providerConfigId?: string | null | undefined;
|
|
1850
|
+
providerSlug?: string | null | undefined;
|
|
2133
1851
|
temperature?: number | null | undefined;
|
|
2134
1852
|
maxTokens?: number | null | undefined;
|
|
2135
1853
|
topP?: number | null | undefined;
|
|
2136
1854
|
frequencyPenalty?: number | null | undefined;
|
|
2137
1855
|
presencePenalty?: number | null | undefined;
|
|
2138
|
-
configId?: string | null | undefined;
|
|
2139
|
-
variantId?: string | null | undefined;
|
|
2140
|
-
variantVersionId?: string | null | undefined;
|
|
2141
1856
|
}[] | null;
|
|
2142
1857
|
id: string;
|
|
2143
1858
|
createdAt: Date;
|
|
@@ -2204,26 +1919,6 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2204
1919
|
id: string;
|
|
2205
1920
|
createdAt: Date;
|
|
2206
1921
|
updatedAt: Date;
|
|
2207
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2208
|
-
name: string;
|
|
2209
|
-
pluginId: string;
|
|
2210
|
-
functionId: string;
|
|
2211
|
-
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2212
|
-
parameters: Record<string, unknown>;
|
|
2213
|
-
enabled: boolean;
|
|
2214
|
-
priority: number;
|
|
2215
|
-
onFail: "block" | "log";
|
|
2216
|
-
id: string;
|
|
2217
|
-
createdAt: Date;
|
|
2218
|
-
updatedAt: Date;
|
|
2219
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2220
|
-
providerConfigId: string;
|
|
2221
|
-
guardrailConfigId: string;
|
|
2222
|
-
enabled: boolean;
|
|
2223
|
-
id: string;
|
|
2224
|
-
createdAt: Date;
|
|
2225
|
-
updatedAt: Date;
|
|
2226
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2227
1922
|
}> | zod0.ZodSafeParseResult<{
|
|
2228
1923
|
requestId: string;
|
|
2229
1924
|
provider: string;
|
|
@@ -2332,15 +2027,6 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2332
2027
|
id?: string | undefined;
|
|
2333
2028
|
createdAt?: Date | undefined;
|
|
2334
2029
|
updatedAt?: Date | undefined;
|
|
2335
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2336
|
-
providerId?: string | undefined;
|
|
2337
|
-
slug?: string | null | undefined;
|
|
2338
|
-
name?: string | null | undefined;
|
|
2339
|
-
config?: Record<string, unknown> | undefined;
|
|
2340
|
-
enabled?: boolean | undefined;
|
|
2341
|
-
id?: string | undefined;
|
|
2342
|
-
createdAt?: Date | undefined;
|
|
2343
|
-
updatedAt?: Date | undefined;
|
|
2344
2030
|
}> | zod0.ZodSafeParseResult<{
|
|
2345
2031
|
name?: string | undefined;
|
|
2346
2032
|
datasetId?: string | null | undefined;
|
|
@@ -2348,20 +2034,18 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2348
2034
|
id: string;
|
|
2349
2035
|
name: string;
|
|
2350
2036
|
position: number;
|
|
2351
|
-
providerConfigId: string | null;
|
|
2352
2037
|
modelName: string;
|
|
2353
2038
|
messages: {
|
|
2354
2039
|
role: "system" | "user" | "assistant";
|
|
2355
2040
|
content: string;
|
|
2356
2041
|
}[];
|
|
2042
|
+
providerConfigId?: string | null | undefined;
|
|
2043
|
+
providerSlug?: string | null | undefined;
|
|
2357
2044
|
temperature?: number | null | undefined;
|
|
2358
2045
|
maxTokens?: number | null | undefined;
|
|
2359
2046
|
topP?: number | null | undefined;
|
|
2360
2047
|
frequencyPenalty?: number | null | undefined;
|
|
2361
2048
|
presencePenalty?: number | null | undefined;
|
|
2362
|
-
configId?: string | null | undefined;
|
|
2363
|
-
variantId?: string | null | undefined;
|
|
2364
|
-
variantVersionId?: string | null | undefined;
|
|
2365
2049
|
}[] | null | undefined;
|
|
2366
2050
|
id?: string | undefined;
|
|
2367
2051
|
createdAt?: Date | undefined;
|
|
@@ -2427,26 +2111,6 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2427
2111
|
id?: string | undefined;
|
|
2428
2112
|
createdAt?: Date | undefined;
|
|
2429
2113
|
updatedAt?: Date | undefined;
|
|
2430
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2431
|
-
name?: string | undefined;
|
|
2432
|
-
pluginId?: string | undefined;
|
|
2433
|
-
functionId?: string | undefined;
|
|
2434
|
-
hookType?: "beforeRequestHook" | "afterRequestHook" | undefined;
|
|
2435
|
-
parameters?: Record<string, unknown> | undefined;
|
|
2436
|
-
enabled?: boolean | undefined;
|
|
2437
|
-
priority?: number | undefined;
|
|
2438
|
-
onFail?: "block" | "log" | undefined;
|
|
2439
|
-
id?: string | undefined;
|
|
2440
|
-
createdAt?: Date | undefined;
|
|
2441
|
-
updatedAt?: Date | undefined;
|
|
2442
|
-
}> | zod0.ZodSafeParseResult<{
|
|
2443
|
-
providerConfigId?: string | undefined;
|
|
2444
|
-
guardrailConfigId?: string | undefined;
|
|
2445
|
-
enabled?: boolean | undefined;
|
|
2446
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2447
|
-
id?: string | undefined;
|
|
2448
|
-
createdAt?: Date | undefined;
|
|
2449
|
-
updatedAt?: Date | undefined;
|
|
2450
2114
|
}> | zod0.ZodSafeParseResult<{
|
|
2451
2115
|
requestId?: string | undefined;
|
|
2452
2116
|
configId?: string | null | undefined;
|
|
@@ -2555,35 +2219,24 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2555
2219
|
updatedAt: Date;
|
|
2556
2220
|
name?: string | null | undefined;
|
|
2557
2221
|
superAdminId?: string | null | undefined;
|
|
2558
|
-
} | {
|
|
2559
|
-
providerId: string;
|
|
2560
|
-
config: Record<string, unknown>;
|
|
2561
|
-
enabled: boolean;
|
|
2562
|
-
id: string;
|
|
2563
|
-
createdAt: Date;
|
|
2564
|
-
updatedAt: Date;
|
|
2565
|
-
slug?: string | null | undefined;
|
|
2566
|
-
name?: string | null | undefined;
|
|
2567
2222
|
} | {
|
|
2568
2223
|
name: string;
|
|
2569
2224
|
columns: {
|
|
2570
2225
|
id: string;
|
|
2571
2226
|
name: string;
|
|
2572
2227
|
position: number;
|
|
2573
|
-
providerConfigId: string | null;
|
|
2574
2228
|
modelName: string;
|
|
2575
2229
|
messages: {
|
|
2576
2230
|
role: "system" | "user" | "assistant";
|
|
2577
2231
|
content: string;
|
|
2578
2232
|
}[];
|
|
2233
|
+
providerConfigId?: string | null | undefined;
|
|
2234
|
+
providerSlug?: string | null | undefined;
|
|
2579
2235
|
temperature?: number | null | undefined;
|
|
2580
2236
|
maxTokens?: number | null | undefined;
|
|
2581
2237
|
topP?: number | null | undefined;
|
|
2582
2238
|
frequencyPenalty?: number | null | undefined;
|
|
2583
2239
|
presencePenalty?: number | null | undefined;
|
|
2584
|
-
configId?: string | null | undefined;
|
|
2585
|
-
variantId?: string | null | undefined;
|
|
2586
|
-
variantVersionId?: string | null | undefined;
|
|
2587
2240
|
}[] | null;
|
|
2588
2241
|
id: string;
|
|
2589
2242
|
createdAt: Date;
|
|
@@ -2650,26 +2303,6 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
2650
2303
|
id: string;
|
|
2651
2304
|
createdAt: Date;
|
|
2652
2305
|
updatedAt: Date;
|
|
2653
|
-
} | {
|
|
2654
|
-
name: string;
|
|
2655
|
-
pluginId: string;
|
|
2656
|
-
functionId: string;
|
|
2657
|
-
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2658
|
-
parameters: Record<string, unknown>;
|
|
2659
|
-
enabled: boolean;
|
|
2660
|
-
priority: number;
|
|
2661
|
-
onFail: "block" | "log";
|
|
2662
|
-
id: string;
|
|
2663
|
-
createdAt: Date;
|
|
2664
|
-
updatedAt: Date;
|
|
2665
|
-
} | {
|
|
2666
|
-
providerConfigId: string;
|
|
2667
|
-
guardrailConfigId: string;
|
|
2668
|
-
enabled: boolean;
|
|
2669
|
-
id: string;
|
|
2670
|
-
createdAt: Date;
|
|
2671
|
-
updatedAt: Date;
|
|
2672
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2673
2306
|
} | {
|
|
2674
2307
|
requestId: string;
|
|
2675
2308
|
provider: string;
|
|
@@ -2778,15 +2411,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2778
2411
|
id?: string | undefined;
|
|
2779
2412
|
createdAt?: Date | undefined;
|
|
2780
2413
|
updatedAt?: Date | undefined;
|
|
2781
|
-
} | {
|
|
2782
|
-
providerId?: string | undefined;
|
|
2783
|
-
slug?: string | null | undefined;
|
|
2784
|
-
name?: string | null | undefined;
|
|
2785
|
-
config?: Record<string, unknown> | undefined;
|
|
2786
|
-
enabled?: boolean | undefined;
|
|
2787
|
-
id?: string | undefined;
|
|
2788
|
-
createdAt?: Date | undefined;
|
|
2789
|
-
updatedAt?: Date | undefined;
|
|
2790
2414
|
} | {
|
|
2791
2415
|
name?: string | undefined;
|
|
2792
2416
|
datasetId?: string | null | undefined;
|
|
@@ -2794,20 +2418,18 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2794
2418
|
id: string;
|
|
2795
2419
|
name: string;
|
|
2796
2420
|
position: number;
|
|
2797
|
-
providerConfigId: string | null;
|
|
2798
2421
|
modelName: string;
|
|
2799
2422
|
messages: {
|
|
2800
2423
|
role: "system" | "user" | "assistant";
|
|
2801
2424
|
content: string;
|
|
2802
2425
|
}[];
|
|
2426
|
+
providerConfigId?: string | null | undefined;
|
|
2427
|
+
providerSlug?: string | null | undefined;
|
|
2803
2428
|
temperature?: number | null | undefined;
|
|
2804
2429
|
maxTokens?: number | null | undefined;
|
|
2805
2430
|
topP?: number | null | undefined;
|
|
2806
2431
|
frequencyPenalty?: number | null | undefined;
|
|
2807
2432
|
presencePenalty?: number | null | undefined;
|
|
2808
|
-
configId?: string | null | undefined;
|
|
2809
|
-
variantId?: string | null | undefined;
|
|
2810
|
-
variantVersionId?: string | null | undefined;
|
|
2811
2433
|
}[] | null | undefined;
|
|
2812
2434
|
id?: string | undefined;
|
|
2813
2435
|
createdAt?: Date | undefined;
|
|
@@ -2873,26 +2495,6 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
2873
2495
|
id?: string | undefined;
|
|
2874
2496
|
createdAt?: Date | undefined;
|
|
2875
2497
|
updatedAt?: Date | undefined;
|
|
2876
|
-
} | {
|
|
2877
|
-
name?: string | undefined;
|
|
2878
|
-
pluginId?: string | undefined;
|
|
2879
|
-
functionId?: string | undefined;
|
|
2880
|
-
hookType?: "beforeRequestHook" | "afterRequestHook" | undefined;
|
|
2881
|
-
parameters?: Record<string, unknown> | undefined;
|
|
2882
|
-
enabled?: boolean | undefined;
|
|
2883
|
-
priority?: number | undefined;
|
|
2884
|
-
onFail?: "block" | "log" | undefined;
|
|
2885
|
-
id?: string | undefined;
|
|
2886
|
-
createdAt?: Date | undefined;
|
|
2887
|
-
updatedAt?: Date | undefined;
|
|
2888
|
-
} | {
|
|
2889
|
-
providerConfigId?: string | undefined;
|
|
2890
|
-
guardrailConfigId?: string | undefined;
|
|
2891
|
-
enabled?: boolean | undefined;
|
|
2892
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
2893
|
-
id?: string | undefined;
|
|
2894
|
-
createdAt?: Date | undefined;
|
|
2895
|
-
updatedAt?: Date | undefined;
|
|
2896
2498
|
} | {
|
|
2897
2499
|
requestId?: string | undefined;
|
|
2898
2500
|
configId?: string | null | undefined;
|