@llmops/core 0.3.4-beta.1 → 0.4.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-B5odtOFX.cjs → bun-sqlite-dialect-BOVsPUU1.cjs} +1 -1
- package/dist/db/index.cjs +10 -2
- 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-CoCzHm6p.mjs → db-Dp8PJzcN.mjs} +412 -4
- package/dist/{db-BF1a1duC.cjs → db-Sv8HPCfx.cjs} +462 -6
- package/dist/{index-yuxB_8bc.d.mts → index-Bxn6FEh6.d.cts} +1188 -113
- package/dist/{index-BP_lIJcD.d.cts → index-DSpTOghh.d.mts} +1188 -113
- package/dist/index.cjs +524 -4
- package/dist/index.d.cts +1098 -14
- package/dist/index.d.mts +1098 -14
- package/dist/index.mjs +514 -5
- package/dist/{neon-dialect-BQsMY2pg.cjs → neon-dialect-CN5kb3Gw.cjs} +1 -1
- package/dist/{neon-dialect-DSmsjY8m.cjs → neon-dialect-DIrx-7Rh.cjs} +1 -1
- package/dist/{node-sqlite-dialect-BGjMUONa.cjs → node-sqlite-dialect-BeXYiIVe.cjs} +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
-
import * as zod615 from "zod";
|
|
3
|
-
import { z } from "zod";
|
|
4
2
|
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
3
|
+
import * as zod920 from "zod";
|
|
4
|
+
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/db/schema.d.ts
|
|
7
7
|
declare const configsSchema: z.ZodObject<{
|
|
@@ -81,6 +81,137 @@ declare const providerConfigsSchema: z.ZodObject<{
|
|
|
81
81
|
createdAt: z.ZodDate;
|
|
82
82
|
updatedAt: z.ZodDate;
|
|
83
83
|
}, z.core.$strip>;
|
|
84
|
+
declare const playgroundColumnSchema: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
position: z.ZodNumber;
|
|
88
|
+
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
89
|
+
modelName: z.ZodString;
|
|
90
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
91
|
+
role: z.ZodEnum<{
|
|
92
|
+
system: "system";
|
|
93
|
+
user: "user";
|
|
94
|
+
assistant: "assistant";
|
|
95
|
+
}>;
|
|
96
|
+
content: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
99
|
+
maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
100
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
101
|
+
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
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
|
+
}, z.core.$strip>;
|
|
107
|
+
declare const playgroundsSchema: z.ZodObject<{
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
datasetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
position: z.ZodNumber;
|
|
114
|
+
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
115
|
+
modelName: z.ZodString;
|
|
116
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
117
|
+
role: z.ZodEnum<{
|
|
118
|
+
system: "system";
|
|
119
|
+
user: "user";
|
|
120
|
+
assistant: "assistant";
|
|
121
|
+
}>;
|
|
122
|
+
content: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
125
|
+
maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
126
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
127
|
+
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
128
|
+
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
|
+
}, z.core.$strip>>>;
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
createdAt: z.ZodDate;
|
|
135
|
+
updatedAt: z.ZodDate;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
declare const playgroundRunsSchema: z.ZodObject<{
|
|
138
|
+
playgroundId: z.ZodString;
|
|
139
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
140
|
+
datasetVersionId: z.ZodNullable<z.ZodString>;
|
|
141
|
+
status: z.ZodEnum<{
|
|
142
|
+
pending: "pending";
|
|
143
|
+
running: "running";
|
|
144
|
+
completed: "completed";
|
|
145
|
+
failed: "failed";
|
|
146
|
+
cancelled: "cancelled";
|
|
147
|
+
}>;
|
|
148
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
149
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
150
|
+
totalRecords: z.ZodDefault<z.ZodNumber>;
|
|
151
|
+
completedRecords: z.ZodDefault<z.ZodNumber>;
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
createdAt: z.ZodDate;
|
|
154
|
+
updatedAt: z.ZodDate;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
declare const playgroundResultsSchema: z.ZodObject<{
|
|
157
|
+
runId: z.ZodString;
|
|
158
|
+
columnId: z.ZodString;
|
|
159
|
+
datasetRecordId: z.ZodNullable<z.ZodString>;
|
|
160
|
+
inputVariables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
161
|
+
outputContent: z.ZodNullable<z.ZodString>;
|
|
162
|
+
status: z.ZodEnum<{
|
|
163
|
+
pending: "pending";
|
|
164
|
+
running: "running";
|
|
165
|
+
completed: "completed";
|
|
166
|
+
failed: "failed";
|
|
167
|
+
}>;
|
|
168
|
+
error: z.ZodNullable<z.ZodString>;
|
|
169
|
+
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
170
|
+
promptTokens: z.ZodNullable<z.ZodNumber>;
|
|
171
|
+
completionTokens: z.ZodNullable<z.ZodNumber>;
|
|
172
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
createdAt: z.ZodDate;
|
|
176
|
+
updatedAt: z.ZodDate;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
declare const datasetsSchema: z.ZodObject<{
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
182
|
+
latestVersionNumber: z.ZodDefault<z.ZodNumber>;
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
createdAt: z.ZodDate;
|
|
185
|
+
updatedAt: z.ZodDate;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
declare const datasetVersionsSchema: z.ZodObject<{
|
|
188
|
+
datasetId: z.ZodString;
|
|
189
|
+
versionNumber: z.ZodNumber;
|
|
190
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
snapshotHash: z.ZodString;
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
createdAt: z.ZodDate;
|
|
196
|
+
updatedAt: z.ZodDate;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
declare const datasetRecordsSchema: z.ZodObject<{
|
|
199
|
+
datasetId: z.ZodString;
|
|
200
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
201
|
+
expected: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
202
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
createdAt: z.ZodDate;
|
|
205
|
+
updatedAt: z.ZodDate;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
declare const datasetVersionRecordsSchema: z.ZodObject<{
|
|
208
|
+
datasetVersionId: z.ZodString;
|
|
209
|
+
datasetRecordId: z.ZodString;
|
|
210
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
createdAt: z.ZodDate;
|
|
213
|
+
updatedAt: z.ZodDate;
|
|
214
|
+
}, z.core.$strip>;
|
|
84
215
|
declare const guardrailConfigsSchema: z.ZodObject<{
|
|
85
216
|
name: z.ZodString;
|
|
86
217
|
pluginId: z.ZodString;
|
|
@@ -192,10 +323,18 @@ type ConfigVariant = z.infer<typeof configVariantsSchema>;
|
|
|
192
323
|
type TargetingRule = z.infer<typeof targetingRulesSchema>;
|
|
193
324
|
type WorkspaceSettings = z.infer<typeof workspaceSettingsSchema>;
|
|
194
325
|
type ProviderConfig = z.infer<typeof providerConfigsSchema>;
|
|
326
|
+
type PlaygroundColumn = z.infer<typeof playgroundColumnSchema>;
|
|
327
|
+
type Playground = z.infer<typeof playgroundsSchema>;
|
|
328
|
+
type PlaygroundRun = z.infer<typeof playgroundRunsSchema>;
|
|
329
|
+
type PlaygroundResult = z.infer<typeof playgroundResultsSchema>;
|
|
195
330
|
type GuardrailConfig = z.infer<typeof guardrailConfigsSchema>;
|
|
196
331
|
type ProviderGuardrailOverride = z.infer<typeof providerGuardrailOverridesSchema>;
|
|
197
332
|
type GuardrailResult = z.infer<typeof guardrailResultSchema>;
|
|
198
333
|
type GuardrailResults = z.infer<typeof guardrailResultsSchema>;
|
|
334
|
+
type Dataset = z.infer<typeof datasetsSchema>;
|
|
335
|
+
type DatasetVersion = z.infer<typeof datasetVersionsSchema>;
|
|
336
|
+
type DatasetRecord = z.infer<typeof datasetRecordsSchema>;
|
|
337
|
+
type DatasetVersionRecord = z.infer<typeof datasetVersionRecordsSchema>;
|
|
199
338
|
type LLMRequest = z.infer<typeof llmRequestsSchema>;
|
|
200
339
|
/**
|
|
201
340
|
* Kysely Table Interfaces
|
|
@@ -256,6 +395,60 @@ interface ProviderConfigsTable extends BaseTable {
|
|
|
256
395
|
config: ColumnType<Record<string, unknown>, string, string>;
|
|
257
396
|
enabled: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
258
397
|
}
|
|
398
|
+
interface PlaygroundsTable extends BaseTable {
|
|
399
|
+
name: string;
|
|
400
|
+
datasetId: string | null;
|
|
401
|
+
columns: ColumnType<PlaygroundColumn[] | null, string | null, string | null>;
|
|
402
|
+
}
|
|
403
|
+
interface PlaygroundRunsTable extends BaseTable {
|
|
404
|
+
playgroundId: string;
|
|
405
|
+
datasetId: string | null;
|
|
406
|
+
datasetVersionId: string | null;
|
|
407
|
+
status: string;
|
|
408
|
+
startedAt: ColumnType<Date | null, string | null, string | null>;
|
|
409
|
+
completedAt: ColumnType<Date | null, string | null, string | null>;
|
|
410
|
+
totalRecords: ColumnType<number, number | undefined, number | undefined>;
|
|
411
|
+
completedRecords: ColumnType<number, number | undefined, number | undefined>;
|
|
412
|
+
}
|
|
413
|
+
interface PlaygroundResultsTable extends BaseTable {
|
|
414
|
+
runId: string;
|
|
415
|
+
columnId: string;
|
|
416
|
+
datasetRecordId: string | null;
|
|
417
|
+
inputVariables: ColumnType<Record<string, unknown>, string, string>;
|
|
418
|
+
outputContent: string | null;
|
|
419
|
+
status: string;
|
|
420
|
+
error: string | null;
|
|
421
|
+
latencyMs: number | null;
|
|
422
|
+
promptTokens: number | null;
|
|
423
|
+
completionTokens: number | null;
|
|
424
|
+
totalTokens: number | null;
|
|
425
|
+
cost: number | null;
|
|
426
|
+
}
|
|
427
|
+
interface DatasetsTable extends BaseTable {
|
|
428
|
+
name: string;
|
|
429
|
+
description: string | null;
|
|
430
|
+
recordCount: ColumnType<number, number | undefined, number | undefined>;
|
|
431
|
+
latestVersionNumber: ColumnType<number, number | undefined, number | undefined>;
|
|
432
|
+
}
|
|
433
|
+
interface DatasetVersionsTable extends BaseTable {
|
|
434
|
+
datasetId: string;
|
|
435
|
+
versionNumber: number;
|
|
436
|
+
name: string | null;
|
|
437
|
+
description: string | null;
|
|
438
|
+
recordCount: ColumnType<number, number | undefined, number | undefined>;
|
|
439
|
+
snapshotHash: string;
|
|
440
|
+
}
|
|
441
|
+
interface DatasetRecordsTable extends BaseTable {
|
|
442
|
+
datasetId: string;
|
|
443
|
+
input: ColumnType<Record<string, unknown>, string, string>;
|
|
444
|
+
expected: ColumnType<Record<string, unknown> | null, string | null, string | null>;
|
|
445
|
+
metadata: ColumnType<Record<string, unknown>, string, string>;
|
|
446
|
+
}
|
|
447
|
+
interface DatasetVersionRecordsTable extends BaseTable {
|
|
448
|
+
datasetVersionId: string;
|
|
449
|
+
datasetRecordId: string;
|
|
450
|
+
position: ColumnType<number, number | undefined, number | undefined>;
|
|
451
|
+
}
|
|
259
452
|
interface GuardrailConfigsTable extends BaseTable {
|
|
260
453
|
name: string;
|
|
261
454
|
pluginId: string;
|
|
@@ -308,8 +501,15 @@ interface Database {
|
|
|
308
501
|
targeting_rules: TargetingRulesTable;
|
|
309
502
|
workspace_settings: WorkspaceSettingsTable;
|
|
310
503
|
provider_configs: ProviderConfigsTable;
|
|
504
|
+
playgrounds: PlaygroundsTable;
|
|
505
|
+
playground_runs: PlaygroundRunsTable;
|
|
506
|
+
playground_results: PlaygroundResultsTable;
|
|
311
507
|
guardrail_configs: GuardrailConfigsTable;
|
|
312
508
|
provider_guardrail_overrides: ProviderGuardrailOverridesTable;
|
|
509
|
+
datasets: DatasetsTable;
|
|
510
|
+
dataset_versions: DatasetVersionsTable;
|
|
511
|
+
dataset_records: DatasetRecordsTable;
|
|
512
|
+
dataset_version_records: DatasetVersionRecordsTable;
|
|
313
513
|
llm_requests: LLMRequestsTable;
|
|
314
514
|
}
|
|
315
515
|
/**
|
|
@@ -614,9 +814,436 @@ declare const SCHEMA_METADATA: {
|
|
|
614
814
|
readonly type: "boolean";
|
|
615
815
|
readonly default: true;
|
|
616
816
|
};
|
|
617
|
-
readonly conditions: {
|
|
618
|
-
readonly type: "jsonb";
|
|
619
|
-
readonly default: "{}";
|
|
817
|
+
readonly conditions: {
|
|
818
|
+
readonly type: "jsonb";
|
|
819
|
+
readonly default: "{}";
|
|
820
|
+
};
|
|
821
|
+
readonly createdAt: {
|
|
822
|
+
readonly type: "timestamp";
|
|
823
|
+
readonly default: "now()";
|
|
824
|
+
};
|
|
825
|
+
readonly updatedAt: {
|
|
826
|
+
readonly type: "timestamp";
|
|
827
|
+
readonly default: "now()";
|
|
828
|
+
readonly onUpdate: "now()";
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
readonly workspace_settings: {
|
|
833
|
+
readonly order: 8;
|
|
834
|
+
readonly schema: z.ZodObject<{
|
|
835
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
|
+
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
837
|
+
superAdminId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
createdAt: z.ZodDate;
|
|
840
|
+
updatedAt: z.ZodDate;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
readonly fields: {
|
|
843
|
+
readonly id: {
|
|
844
|
+
readonly type: "uuid";
|
|
845
|
+
readonly primaryKey: true;
|
|
846
|
+
};
|
|
847
|
+
readonly name: {
|
|
848
|
+
readonly type: "text";
|
|
849
|
+
readonly nullable: true;
|
|
850
|
+
};
|
|
851
|
+
readonly setupComplete: {
|
|
852
|
+
readonly type: "boolean";
|
|
853
|
+
readonly default: false;
|
|
854
|
+
};
|
|
855
|
+
readonly superAdminId: {
|
|
856
|
+
readonly type: "text";
|
|
857
|
+
readonly nullable: true;
|
|
858
|
+
};
|
|
859
|
+
readonly createdAt: {
|
|
860
|
+
readonly type: "timestamp";
|
|
861
|
+
readonly default: "now()";
|
|
862
|
+
};
|
|
863
|
+
readonly updatedAt: {
|
|
864
|
+
readonly type: "timestamp";
|
|
865
|
+
readonly default: "now()";
|
|
866
|
+
readonly onUpdate: "now()";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
readonly provider_configs: {
|
|
871
|
+
readonly order: 9;
|
|
872
|
+
readonly schema: z.ZodObject<{
|
|
873
|
+
providerId: z.ZodString;
|
|
874
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
875
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
877
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
createdAt: z.ZodDate;
|
|
880
|
+
updatedAt: z.ZodDate;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
readonly fields: {
|
|
883
|
+
readonly id: {
|
|
884
|
+
readonly type: "uuid";
|
|
885
|
+
readonly primaryKey: true;
|
|
886
|
+
};
|
|
887
|
+
readonly providerId: {
|
|
888
|
+
readonly type: "text";
|
|
889
|
+
};
|
|
890
|
+
readonly slug: {
|
|
891
|
+
readonly type: "text";
|
|
892
|
+
readonly nullable: true;
|
|
893
|
+
};
|
|
894
|
+
readonly name: {
|
|
895
|
+
readonly type: "text";
|
|
896
|
+
readonly nullable: true;
|
|
897
|
+
};
|
|
898
|
+
readonly config: {
|
|
899
|
+
readonly type: "jsonb";
|
|
900
|
+
readonly default: "{}";
|
|
901
|
+
};
|
|
902
|
+
readonly enabled: {
|
|
903
|
+
readonly type: "boolean";
|
|
904
|
+
readonly default: true;
|
|
905
|
+
};
|
|
906
|
+
readonly createdAt: {
|
|
907
|
+
readonly type: "timestamp";
|
|
908
|
+
readonly default: "now()";
|
|
909
|
+
};
|
|
910
|
+
readonly updatedAt: {
|
|
911
|
+
readonly type: "timestamp";
|
|
912
|
+
readonly default: "now()";
|
|
913
|
+
readonly onUpdate: "now()";
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
readonly playgrounds: {
|
|
918
|
+
readonly order: 10;
|
|
919
|
+
readonly schema: z.ZodObject<{
|
|
920
|
+
name: z.ZodString;
|
|
921
|
+
datasetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
922
|
+
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
923
|
+
id: z.ZodString;
|
|
924
|
+
name: z.ZodString;
|
|
925
|
+
position: z.ZodNumber;
|
|
926
|
+
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
927
|
+
modelName: z.ZodString;
|
|
928
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
929
|
+
role: z.ZodEnum<{
|
|
930
|
+
system: "system";
|
|
931
|
+
user: "user";
|
|
932
|
+
assistant: "assistant";
|
|
933
|
+
}>;
|
|
934
|
+
content: z.ZodString;
|
|
935
|
+
}, z.core.$strip>>;
|
|
936
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
937
|
+
maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
938
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
939
|
+
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
940
|
+
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
941
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
942
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
943
|
+
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
944
|
+
}, z.core.$strip>>>;
|
|
945
|
+
id: z.ZodString;
|
|
946
|
+
createdAt: z.ZodDate;
|
|
947
|
+
updatedAt: z.ZodDate;
|
|
948
|
+
}, z.core.$strip>;
|
|
949
|
+
readonly fields: {
|
|
950
|
+
readonly id: {
|
|
951
|
+
readonly type: "uuid";
|
|
952
|
+
readonly primaryKey: true;
|
|
953
|
+
};
|
|
954
|
+
readonly name: {
|
|
955
|
+
readonly type: "text";
|
|
956
|
+
};
|
|
957
|
+
readonly datasetId: {
|
|
958
|
+
readonly type: "uuid";
|
|
959
|
+
readonly nullable: true;
|
|
960
|
+
readonly references: {
|
|
961
|
+
readonly table: "datasets";
|
|
962
|
+
readonly column: "id";
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
readonly columns: {
|
|
966
|
+
readonly type: "jsonb";
|
|
967
|
+
readonly nullable: true;
|
|
968
|
+
};
|
|
969
|
+
readonly createdAt: {
|
|
970
|
+
readonly type: "timestamp";
|
|
971
|
+
readonly default: "now()";
|
|
972
|
+
};
|
|
973
|
+
readonly updatedAt: {
|
|
974
|
+
readonly type: "timestamp";
|
|
975
|
+
readonly default: "now()";
|
|
976
|
+
readonly onUpdate: "now()";
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
readonly playground_runs: {
|
|
981
|
+
readonly order: 18;
|
|
982
|
+
readonly schema: z.ZodObject<{
|
|
983
|
+
playgroundId: z.ZodString;
|
|
984
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
985
|
+
datasetVersionId: z.ZodNullable<z.ZodString>;
|
|
986
|
+
status: z.ZodEnum<{
|
|
987
|
+
pending: "pending";
|
|
988
|
+
running: "running";
|
|
989
|
+
completed: "completed";
|
|
990
|
+
failed: "failed";
|
|
991
|
+
cancelled: "cancelled";
|
|
992
|
+
}>;
|
|
993
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
994
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
995
|
+
totalRecords: z.ZodDefault<z.ZodNumber>;
|
|
996
|
+
completedRecords: z.ZodDefault<z.ZodNumber>;
|
|
997
|
+
id: z.ZodString;
|
|
998
|
+
createdAt: z.ZodDate;
|
|
999
|
+
updatedAt: z.ZodDate;
|
|
1000
|
+
}, z.core.$strip>;
|
|
1001
|
+
readonly fields: {
|
|
1002
|
+
readonly id: {
|
|
1003
|
+
readonly type: "uuid";
|
|
1004
|
+
readonly primaryKey: true;
|
|
1005
|
+
};
|
|
1006
|
+
readonly playgroundId: {
|
|
1007
|
+
readonly type: "uuid";
|
|
1008
|
+
readonly references: {
|
|
1009
|
+
readonly table: "playgrounds";
|
|
1010
|
+
readonly column: "id";
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
readonly datasetId: {
|
|
1014
|
+
readonly type: "uuid";
|
|
1015
|
+
readonly nullable: true;
|
|
1016
|
+
readonly references: {
|
|
1017
|
+
readonly table: "datasets";
|
|
1018
|
+
readonly column: "id";
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
readonly datasetVersionId: {
|
|
1022
|
+
readonly type: "uuid";
|
|
1023
|
+
readonly nullable: true;
|
|
1024
|
+
readonly references: {
|
|
1025
|
+
readonly table: "dataset_versions";
|
|
1026
|
+
readonly column: "id";
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
readonly status: {
|
|
1030
|
+
readonly type: "text";
|
|
1031
|
+
};
|
|
1032
|
+
readonly startedAt: {
|
|
1033
|
+
readonly type: "timestamp";
|
|
1034
|
+
readonly nullable: true;
|
|
1035
|
+
};
|
|
1036
|
+
readonly completedAt: {
|
|
1037
|
+
readonly type: "timestamp";
|
|
1038
|
+
readonly nullable: true;
|
|
1039
|
+
};
|
|
1040
|
+
readonly totalRecords: {
|
|
1041
|
+
readonly type: "integer";
|
|
1042
|
+
readonly default: 0;
|
|
1043
|
+
};
|
|
1044
|
+
readonly completedRecords: {
|
|
1045
|
+
readonly type: "integer";
|
|
1046
|
+
readonly default: 0;
|
|
1047
|
+
};
|
|
1048
|
+
readonly createdAt: {
|
|
1049
|
+
readonly type: "timestamp";
|
|
1050
|
+
readonly default: "now()";
|
|
1051
|
+
};
|
|
1052
|
+
readonly updatedAt: {
|
|
1053
|
+
readonly type: "timestamp";
|
|
1054
|
+
readonly default: "now()";
|
|
1055
|
+
readonly onUpdate: "now()";
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
readonly playground_results: {
|
|
1060
|
+
readonly order: 19;
|
|
1061
|
+
readonly schema: z.ZodObject<{
|
|
1062
|
+
runId: z.ZodString;
|
|
1063
|
+
columnId: z.ZodString;
|
|
1064
|
+
datasetRecordId: z.ZodNullable<z.ZodString>;
|
|
1065
|
+
inputVariables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1066
|
+
outputContent: z.ZodNullable<z.ZodString>;
|
|
1067
|
+
status: z.ZodEnum<{
|
|
1068
|
+
pending: "pending";
|
|
1069
|
+
running: "running";
|
|
1070
|
+
completed: "completed";
|
|
1071
|
+
failed: "failed";
|
|
1072
|
+
}>;
|
|
1073
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1074
|
+
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
1075
|
+
promptTokens: z.ZodNullable<z.ZodNumber>;
|
|
1076
|
+
completionTokens: z.ZodNullable<z.ZodNumber>;
|
|
1077
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
1078
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1079
|
+
id: z.ZodString;
|
|
1080
|
+
createdAt: z.ZodDate;
|
|
1081
|
+
updatedAt: z.ZodDate;
|
|
1082
|
+
}, z.core.$strip>;
|
|
1083
|
+
readonly fields: {
|
|
1084
|
+
readonly id: {
|
|
1085
|
+
readonly type: "uuid";
|
|
1086
|
+
readonly primaryKey: true;
|
|
1087
|
+
};
|
|
1088
|
+
readonly runId: {
|
|
1089
|
+
readonly type: "uuid";
|
|
1090
|
+
readonly references: {
|
|
1091
|
+
readonly table: "playground_runs";
|
|
1092
|
+
readonly column: "id";
|
|
1093
|
+
};
|
|
1094
|
+
};
|
|
1095
|
+
readonly columnId: {
|
|
1096
|
+
readonly type: "uuid";
|
|
1097
|
+
};
|
|
1098
|
+
readonly datasetRecordId: {
|
|
1099
|
+
readonly type: "uuid";
|
|
1100
|
+
readonly nullable: true;
|
|
1101
|
+
readonly references: {
|
|
1102
|
+
readonly table: "dataset_records";
|
|
1103
|
+
readonly column: "id";
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
readonly inputVariables: {
|
|
1107
|
+
readonly type: "jsonb";
|
|
1108
|
+
readonly default: "{}";
|
|
1109
|
+
};
|
|
1110
|
+
readonly outputContent: {
|
|
1111
|
+
readonly type: "text";
|
|
1112
|
+
readonly nullable: true;
|
|
1113
|
+
};
|
|
1114
|
+
readonly status: {
|
|
1115
|
+
readonly type: "text";
|
|
1116
|
+
};
|
|
1117
|
+
readonly error: {
|
|
1118
|
+
readonly type: "text";
|
|
1119
|
+
readonly nullable: true;
|
|
1120
|
+
};
|
|
1121
|
+
readonly latencyMs: {
|
|
1122
|
+
readonly type: "integer";
|
|
1123
|
+
readonly nullable: true;
|
|
1124
|
+
};
|
|
1125
|
+
readonly promptTokens: {
|
|
1126
|
+
readonly type: "integer";
|
|
1127
|
+
readonly nullable: true;
|
|
1128
|
+
};
|
|
1129
|
+
readonly completionTokens: {
|
|
1130
|
+
readonly type: "integer";
|
|
1131
|
+
readonly nullable: true;
|
|
1132
|
+
};
|
|
1133
|
+
readonly totalTokens: {
|
|
1134
|
+
readonly type: "integer";
|
|
1135
|
+
readonly nullable: true;
|
|
1136
|
+
};
|
|
1137
|
+
readonly cost: {
|
|
1138
|
+
readonly type: "integer";
|
|
1139
|
+
readonly nullable: true;
|
|
1140
|
+
};
|
|
1141
|
+
readonly createdAt: {
|
|
1142
|
+
readonly type: "timestamp";
|
|
1143
|
+
readonly default: "now()";
|
|
1144
|
+
};
|
|
1145
|
+
readonly updatedAt: {
|
|
1146
|
+
readonly type: "timestamp";
|
|
1147
|
+
readonly default: "now()";
|
|
1148
|
+
readonly onUpdate: "now()";
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
readonly guardrail_configs: {
|
|
1153
|
+
readonly order: 11;
|
|
1154
|
+
readonly schema: z.ZodObject<{
|
|
1155
|
+
name: z.ZodString;
|
|
1156
|
+
pluginId: z.ZodString;
|
|
1157
|
+
functionId: z.ZodString;
|
|
1158
|
+
hookType: z.ZodEnum<{
|
|
1159
|
+
beforeRequestHook: "beforeRequestHook";
|
|
1160
|
+
afterRequestHook: "afterRequestHook";
|
|
1161
|
+
}>;
|
|
1162
|
+
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1163
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1164
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
1165
|
+
onFail: z.ZodDefault<z.ZodEnum<{
|
|
1166
|
+
block: "block";
|
|
1167
|
+
log: "log";
|
|
1168
|
+
}>>;
|
|
1169
|
+
id: z.ZodString;
|
|
1170
|
+
createdAt: z.ZodDate;
|
|
1171
|
+
updatedAt: z.ZodDate;
|
|
1172
|
+
}, z.core.$strip>;
|
|
1173
|
+
readonly fields: {
|
|
1174
|
+
readonly id: {
|
|
1175
|
+
readonly type: "uuid";
|
|
1176
|
+
readonly primaryKey: true;
|
|
1177
|
+
};
|
|
1178
|
+
readonly name: {
|
|
1179
|
+
readonly type: "text";
|
|
1180
|
+
};
|
|
1181
|
+
readonly pluginId: {
|
|
1182
|
+
readonly type: "text";
|
|
1183
|
+
};
|
|
1184
|
+
readonly functionId: {
|
|
1185
|
+
readonly type: "text";
|
|
1186
|
+
};
|
|
1187
|
+
readonly hookType: {
|
|
1188
|
+
readonly type: "text";
|
|
1189
|
+
};
|
|
1190
|
+
readonly parameters: {
|
|
1191
|
+
readonly type: "jsonb";
|
|
1192
|
+
readonly default: "{}";
|
|
1193
|
+
};
|
|
1194
|
+
readonly enabled: {
|
|
1195
|
+
readonly type: "boolean";
|
|
1196
|
+
readonly default: true;
|
|
1197
|
+
};
|
|
1198
|
+
readonly priority: {
|
|
1199
|
+
readonly type: "integer";
|
|
1200
|
+
readonly default: 0;
|
|
1201
|
+
};
|
|
1202
|
+
readonly onFail: {
|
|
1203
|
+
readonly type: "text";
|
|
1204
|
+
readonly default: "block";
|
|
1205
|
+
};
|
|
1206
|
+
readonly createdAt: {
|
|
1207
|
+
readonly type: "timestamp";
|
|
1208
|
+
readonly default: "now()";
|
|
1209
|
+
};
|
|
1210
|
+
readonly updatedAt: {
|
|
1211
|
+
readonly type: "timestamp";
|
|
1212
|
+
readonly default: "now()";
|
|
1213
|
+
readonly onUpdate: "now()";
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
readonly datasets: {
|
|
1218
|
+
readonly order: 12;
|
|
1219
|
+
readonly schema: z.ZodObject<{
|
|
1220
|
+
name: z.ZodString;
|
|
1221
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1222
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
1223
|
+
latestVersionNumber: z.ZodDefault<z.ZodNumber>;
|
|
1224
|
+
id: z.ZodString;
|
|
1225
|
+
createdAt: z.ZodDate;
|
|
1226
|
+
updatedAt: z.ZodDate;
|
|
1227
|
+
}, z.core.$strip>;
|
|
1228
|
+
readonly fields: {
|
|
1229
|
+
readonly id: {
|
|
1230
|
+
readonly type: "uuid";
|
|
1231
|
+
readonly primaryKey: true;
|
|
1232
|
+
};
|
|
1233
|
+
readonly name: {
|
|
1234
|
+
readonly type: "text";
|
|
1235
|
+
};
|
|
1236
|
+
readonly description: {
|
|
1237
|
+
readonly type: "text";
|
|
1238
|
+
readonly nullable: true;
|
|
1239
|
+
};
|
|
1240
|
+
readonly recordCount: {
|
|
1241
|
+
readonly type: "integer";
|
|
1242
|
+
readonly default: 0;
|
|
1243
|
+
};
|
|
1244
|
+
readonly latestVersionNumber: {
|
|
1245
|
+
readonly type: "integer";
|
|
1246
|
+
readonly default: 1;
|
|
620
1247
|
};
|
|
621
1248
|
readonly createdAt: {
|
|
622
1249
|
readonly type: "timestamp";
|
|
@@ -629,12 +1256,15 @@ declare const SCHEMA_METADATA: {
|
|
|
629
1256
|
};
|
|
630
1257
|
};
|
|
631
1258
|
};
|
|
632
|
-
readonly
|
|
633
|
-
readonly order:
|
|
1259
|
+
readonly dataset_versions: {
|
|
1260
|
+
readonly order: 13;
|
|
634
1261
|
readonly schema: z.ZodObject<{
|
|
1262
|
+
datasetId: z.ZodString;
|
|
1263
|
+
versionNumber: z.ZodNumber;
|
|
635
1264
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
|
-
|
|
637
|
-
|
|
1265
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1266
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
1267
|
+
snapshotHash: z.ZodString;
|
|
638
1268
|
id: z.ZodString;
|
|
639
1269
|
createdAt: z.ZodDate;
|
|
640
1270
|
updatedAt: z.ZodDate;
|
|
@@ -644,18 +1274,31 @@ declare const SCHEMA_METADATA: {
|
|
|
644
1274
|
readonly type: "uuid";
|
|
645
1275
|
readonly primaryKey: true;
|
|
646
1276
|
};
|
|
1277
|
+
readonly datasetId: {
|
|
1278
|
+
readonly type: "uuid";
|
|
1279
|
+
readonly references: {
|
|
1280
|
+
readonly table: "datasets";
|
|
1281
|
+
readonly column: "id";
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
readonly versionNumber: {
|
|
1285
|
+
readonly type: "integer";
|
|
1286
|
+
};
|
|
647
1287
|
readonly name: {
|
|
648
1288
|
readonly type: "text";
|
|
649
1289
|
readonly nullable: true;
|
|
650
1290
|
};
|
|
651
|
-
readonly
|
|
652
|
-
readonly type: "boolean";
|
|
653
|
-
readonly default: false;
|
|
654
|
-
};
|
|
655
|
-
readonly superAdminId: {
|
|
1291
|
+
readonly description: {
|
|
656
1292
|
readonly type: "text";
|
|
657
1293
|
readonly nullable: true;
|
|
658
1294
|
};
|
|
1295
|
+
readonly recordCount: {
|
|
1296
|
+
readonly type: "integer";
|
|
1297
|
+
readonly default: 0;
|
|
1298
|
+
};
|
|
1299
|
+
readonly snapshotHash: {
|
|
1300
|
+
readonly type: "text";
|
|
1301
|
+
};
|
|
659
1302
|
readonly createdAt: {
|
|
660
1303
|
readonly type: "timestamp";
|
|
661
1304
|
readonly default: "now()";
|
|
@@ -666,15 +1309,17 @@ declare const SCHEMA_METADATA: {
|
|
|
666
1309
|
readonly onUpdate: "now()";
|
|
667
1310
|
};
|
|
668
1311
|
};
|
|
1312
|
+
readonly uniqueConstraints: readonly [{
|
|
1313
|
+
readonly columns: readonly ["datasetId", "versionNumber"];
|
|
1314
|
+
}];
|
|
669
1315
|
};
|
|
670
|
-
readonly
|
|
671
|
-
readonly order:
|
|
1316
|
+
readonly dataset_records: {
|
|
1317
|
+
readonly order: 14;
|
|
672
1318
|
readonly schema: z.ZodObject<{
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1319
|
+
datasetId: z.ZodString;
|
|
1320
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1321
|
+
expected: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1322
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
678
1323
|
id: z.ZodString;
|
|
679
1324
|
createdAt: z.ZodDate;
|
|
680
1325
|
updatedAt: z.ZodDate;
|
|
@@ -684,25 +1329,24 @@ declare const SCHEMA_METADATA: {
|
|
|
684
1329
|
readonly type: "uuid";
|
|
685
1330
|
readonly primaryKey: true;
|
|
686
1331
|
};
|
|
687
|
-
readonly
|
|
688
|
-
readonly type: "
|
|
1332
|
+
readonly datasetId: {
|
|
1333
|
+
readonly type: "uuid";
|
|
1334
|
+
readonly references: {
|
|
1335
|
+
readonly table: "datasets";
|
|
1336
|
+
readonly column: "id";
|
|
1337
|
+
};
|
|
689
1338
|
};
|
|
690
|
-
readonly
|
|
691
|
-
readonly type: "
|
|
692
|
-
readonly nullable: true;
|
|
1339
|
+
readonly input: {
|
|
1340
|
+
readonly type: "jsonb";
|
|
693
1341
|
};
|
|
694
|
-
readonly
|
|
695
|
-
readonly type: "
|
|
1342
|
+
readonly expected: {
|
|
1343
|
+
readonly type: "jsonb";
|
|
696
1344
|
readonly nullable: true;
|
|
697
1345
|
};
|
|
698
|
-
readonly
|
|
1346
|
+
readonly metadata: {
|
|
699
1347
|
readonly type: "jsonb";
|
|
700
1348
|
readonly default: "{}";
|
|
701
1349
|
};
|
|
702
|
-
readonly enabled: {
|
|
703
|
-
readonly type: "boolean";
|
|
704
|
-
readonly default: true;
|
|
705
|
-
};
|
|
706
1350
|
readonly createdAt: {
|
|
707
1351
|
readonly type: "timestamp";
|
|
708
1352
|
readonly default: "now()";
|
|
@@ -714,23 +1358,12 @@ declare const SCHEMA_METADATA: {
|
|
|
714
1358
|
};
|
|
715
1359
|
};
|
|
716
1360
|
};
|
|
717
|
-
readonly
|
|
718
|
-
readonly order:
|
|
1361
|
+
readonly dataset_version_records: {
|
|
1362
|
+
readonly order: 15;
|
|
719
1363
|
readonly schema: z.ZodObject<{
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
hookType: z.ZodEnum<{
|
|
724
|
-
beforeRequestHook: "beforeRequestHook";
|
|
725
|
-
afterRequestHook: "afterRequestHook";
|
|
726
|
-
}>;
|
|
727
|
-
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
728
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
729
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
730
|
-
onFail: z.ZodDefault<z.ZodEnum<{
|
|
731
|
-
block: "block";
|
|
732
|
-
log: "log";
|
|
733
|
-
}>>;
|
|
1364
|
+
datasetVersionId: z.ZodString;
|
|
1365
|
+
datasetRecordId: z.ZodString;
|
|
1366
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
734
1367
|
id: z.ZodString;
|
|
735
1368
|
createdAt: z.ZodDate;
|
|
736
1369
|
updatedAt: z.ZodDate;
|
|
@@ -740,34 +1373,24 @@ declare const SCHEMA_METADATA: {
|
|
|
740
1373
|
readonly type: "uuid";
|
|
741
1374
|
readonly primaryKey: true;
|
|
742
1375
|
};
|
|
743
|
-
readonly
|
|
744
|
-
readonly type: "
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
readonly functionId: {
|
|
750
|
-
readonly type: "text";
|
|
751
|
-
};
|
|
752
|
-
readonly hookType: {
|
|
753
|
-
readonly type: "text";
|
|
754
|
-
};
|
|
755
|
-
readonly parameters: {
|
|
756
|
-
readonly type: "jsonb";
|
|
757
|
-
readonly default: "{}";
|
|
1376
|
+
readonly datasetVersionId: {
|
|
1377
|
+
readonly type: "uuid";
|
|
1378
|
+
readonly references: {
|
|
1379
|
+
readonly table: "dataset_versions";
|
|
1380
|
+
readonly column: "id";
|
|
1381
|
+
};
|
|
758
1382
|
};
|
|
759
|
-
readonly
|
|
760
|
-
readonly type: "
|
|
761
|
-
readonly
|
|
1383
|
+
readonly datasetRecordId: {
|
|
1384
|
+
readonly type: "uuid";
|
|
1385
|
+
readonly references: {
|
|
1386
|
+
readonly table: "dataset_records";
|
|
1387
|
+
readonly column: "id";
|
|
1388
|
+
};
|
|
762
1389
|
};
|
|
763
|
-
readonly
|
|
1390
|
+
readonly position: {
|
|
764
1391
|
readonly type: "integer";
|
|
765
1392
|
readonly default: 0;
|
|
766
1393
|
};
|
|
767
|
-
readonly onFail: {
|
|
768
|
-
readonly type: "text";
|
|
769
|
-
readonly default: "block";
|
|
770
|
-
};
|
|
771
1394
|
readonly createdAt: {
|
|
772
1395
|
readonly type: "timestamp";
|
|
773
1396
|
readonly default: "now()";
|
|
@@ -778,9 +1401,12 @@ declare const SCHEMA_METADATA: {
|
|
|
778
1401
|
readonly onUpdate: "now()";
|
|
779
1402
|
};
|
|
780
1403
|
};
|
|
1404
|
+
readonly uniqueConstraints: readonly [{
|
|
1405
|
+
readonly columns: readonly ["datasetVersionId", "datasetRecordId"];
|
|
1406
|
+
}];
|
|
781
1407
|
};
|
|
782
1408
|
readonly provider_guardrail_overrides: {
|
|
783
|
-
readonly order:
|
|
1409
|
+
readonly order: 16;
|
|
784
1410
|
readonly schema: z.ZodObject<{
|
|
785
1411
|
providerConfigId: z.ZodString;
|
|
786
1412
|
guardrailConfigId: z.ZodString;
|
|
@@ -832,7 +1458,7 @@ declare const SCHEMA_METADATA: {
|
|
|
832
1458
|
}];
|
|
833
1459
|
};
|
|
834
1460
|
readonly llm_requests: {
|
|
835
|
-
readonly order:
|
|
1461
|
+
readonly order: 17;
|
|
836
1462
|
readonly schema: z.ZodObject<{
|
|
837
1463
|
requestId: z.ZodString;
|
|
838
1464
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1070,6 +1696,100 @@ declare const schemas: {
|
|
|
1070
1696
|
createdAt: z.ZodDate;
|
|
1071
1697
|
updatedAt: z.ZodDate;
|
|
1072
1698
|
}, z.core.$strip>;
|
|
1699
|
+
readonly playgrounds: z.ZodObject<{
|
|
1700
|
+
name: z.ZodString;
|
|
1701
|
+
datasetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1702
|
+
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1703
|
+
id: z.ZodString;
|
|
1704
|
+
name: z.ZodString;
|
|
1705
|
+
position: z.ZodNumber;
|
|
1706
|
+
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
1707
|
+
modelName: z.ZodString;
|
|
1708
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
1709
|
+
role: z.ZodEnum<{
|
|
1710
|
+
system: "system";
|
|
1711
|
+
user: "user";
|
|
1712
|
+
assistant: "assistant";
|
|
1713
|
+
}>;
|
|
1714
|
+
content: z.ZodString;
|
|
1715
|
+
}, z.core.$strip>>;
|
|
1716
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1717
|
+
maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1718
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1719
|
+
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1720
|
+
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1721
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1722
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1723
|
+
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1724
|
+
}, z.core.$strip>>>;
|
|
1725
|
+
id: z.ZodString;
|
|
1726
|
+
createdAt: z.ZodDate;
|
|
1727
|
+
updatedAt: z.ZodDate;
|
|
1728
|
+
}, z.core.$strip>;
|
|
1729
|
+
readonly playground_columns: z.ZodObject<{
|
|
1730
|
+
id: z.ZodString;
|
|
1731
|
+
name: z.ZodString;
|
|
1732
|
+
position: z.ZodNumber;
|
|
1733
|
+
providerConfigId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
1734
|
+
modelName: z.ZodString;
|
|
1735
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
1736
|
+
role: z.ZodEnum<{
|
|
1737
|
+
system: "system";
|
|
1738
|
+
user: "user";
|
|
1739
|
+
assistant: "assistant";
|
|
1740
|
+
}>;
|
|
1741
|
+
content: z.ZodString;
|
|
1742
|
+
}, z.core.$strip>>;
|
|
1743
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1744
|
+
maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1745
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1746
|
+
frequencyPenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1747
|
+
presencePenalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1748
|
+
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1749
|
+
variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1750
|
+
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1751
|
+
}, z.core.$strip>;
|
|
1752
|
+
readonly playground_runs: z.ZodObject<{
|
|
1753
|
+
playgroundId: z.ZodString;
|
|
1754
|
+
datasetId: z.ZodNullable<z.ZodString>;
|
|
1755
|
+
datasetVersionId: z.ZodNullable<z.ZodString>;
|
|
1756
|
+
status: z.ZodEnum<{
|
|
1757
|
+
pending: "pending";
|
|
1758
|
+
running: "running";
|
|
1759
|
+
completed: "completed";
|
|
1760
|
+
failed: "failed";
|
|
1761
|
+
cancelled: "cancelled";
|
|
1762
|
+
}>;
|
|
1763
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
1764
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
1765
|
+
totalRecords: z.ZodDefault<z.ZodNumber>;
|
|
1766
|
+
completedRecords: z.ZodDefault<z.ZodNumber>;
|
|
1767
|
+
id: z.ZodString;
|
|
1768
|
+
createdAt: z.ZodDate;
|
|
1769
|
+
updatedAt: z.ZodDate;
|
|
1770
|
+
}, z.core.$strip>;
|
|
1771
|
+
readonly playground_results: z.ZodObject<{
|
|
1772
|
+
runId: z.ZodString;
|
|
1773
|
+
columnId: z.ZodString;
|
|
1774
|
+
datasetRecordId: z.ZodNullable<z.ZodString>;
|
|
1775
|
+
inputVariables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1776
|
+
outputContent: z.ZodNullable<z.ZodString>;
|
|
1777
|
+
status: z.ZodEnum<{
|
|
1778
|
+
pending: "pending";
|
|
1779
|
+
running: "running";
|
|
1780
|
+
completed: "completed";
|
|
1781
|
+
failed: "failed";
|
|
1782
|
+
}>;
|
|
1783
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1784
|
+
latencyMs: z.ZodNullable<z.ZodNumber>;
|
|
1785
|
+
promptTokens: z.ZodNullable<z.ZodNumber>;
|
|
1786
|
+
completionTokens: z.ZodNullable<z.ZodNumber>;
|
|
1787
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
1788
|
+
cost: z.ZodNullable<z.ZodNumber>;
|
|
1789
|
+
id: z.ZodString;
|
|
1790
|
+
createdAt: z.ZodDate;
|
|
1791
|
+
updatedAt: z.ZodDate;
|
|
1792
|
+
}, z.core.$strip>;
|
|
1073
1793
|
readonly guardrail_configs: z.ZodObject<{
|
|
1074
1794
|
name: z.ZodString;
|
|
1075
1795
|
pluginId: z.ZodString;
|
|
@@ -1098,6 +1818,43 @@ declare const schemas: {
|
|
|
1098
1818
|
createdAt: z.ZodDate;
|
|
1099
1819
|
updatedAt: z.ZodDate;
|
|
1100
1820
|
}, z.core.$strip>;
|
|
1821
|
+
readonly datasets: z.ZodObject<{
|
|
1822
|
+
name: z.ZodString;
|
|
1823
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1824
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
1825
|
+
latestVersionNumber: z.ZodDefault<z.ZodNumber>;
|
|
1826
|
+
id: z.ZodString;
|
|
1827
|
+
createdAt: z.ZodDate;
|
|
1828
|
+
updatedAt: z.ZodDate;
|
|
1829
|
+
}, z.core.$strip>;
|
|
1830
|
+
readonly dataset_versions: z.ZodObject<{
|
|
1831
|
+
datasetId: z.ZodString;
|
|
1832
|
+
versionNumber: z.ZodNumber;
|
|
1833
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1834
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1835
|
+
recordCount: z.ZodDefault<z.ZodNumber>;
|
|
1836
|
+
snapshotHash: z.ZodString;
|
|
1837
|
+
id: z.ZodString;
|
|
1838
|
+
createdAt: z.ZodDate;
|
|
1839
|
+
updatedAt: z.ZodDate;
|
|
1840
|
+
}, z.core.$strip>;
|
|
1841
|
+
readonly dataset_records: z.ZodObject<{
|
|
1842
|
+
datasetId: z.ZodString;
|
|
1843
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1844
|
+
expected: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1845
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1846
|
+
id: z.ZodString;
|
|
1847
|
+
createdAt: z.ZodDate;
|
|
1848
|
+
updatedAt: z.ZodDate;
|
|
1849
|
+
}, z.core.$strip>;
|
|
1850
|
+
readonly dataset_version_records: z.ZodObject<{
|
|
1851
|
+
datasetVersionId: z.ZodString;
|
|
1852
|
+
datasetRecordId: z.ZodString;
|
|
1853
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
1854
|
+
id: z.ZodString;
|
|
1855
|
+
createdAt: z.ZodDate;
|
|
1856
|
+
updatedAt: z.ZodDate;
|
|
1857
|
+
}, z.core.$strip>;
|
|
1101
1858
|
readonly llm_requests: z.ZodObject<{
|
|
1102
1859
|
requestId: z.ZodString;
|
|
1103
1860
|
configId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1148,29 +1905,29 @@ declare const schemas: {
|
|
|
1148
1905
|
* Validate data against table schema
|
|
1149
1906
|
* Useful for runtime validation before inserting/updating
|
|
1150
1907
|
*/
|
|
1151
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown):
|
|
1908
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod920.ZodSafeParseSuccess<{
|
|
1152
1909
|
slug: string;
|
|
1153
1910
|
id: string;
|
|
1154
1911
|
createdAt: Date;
|
|
1155
1912
|
updatedAt: Date;
|
|
1156
1913
|
name?: string | undefined;
|
|
1157
|
-
}> |
|
|
1914
|
+
}> | zod920.ZodSafeParseError<{
|
|
1158
1915
|
slug: string;
|
|
1159
1916
|
id: string;
|
|
1160
1917
|
createdAt: Date;
|
|
1161
1918
|
updatedAt: Date;
|
|
1162
1919
|
name?: string | undefined;
|
|
1163
|
-
}> |
|
|
1920
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1164
1921
|
name: string;
|
|
1165
1922
|
id: string;
|
|
1166
1923
|
createdAt: Date;
|
|
1167
1924
|
updatedAt: Date;
|
|
1168
|
-
}> |
|
|
1925
|
+
}> | zod920.ZodSafeParseError<{
|
|
1169
1926
|
name: string;
|
|
1170
1927
|
id: string;
|
|
1171
1928
|
createdAt: Date;
|
|
1172
1929
|
updatedAt: Date;
|
|
1173
|
-
}> |
|
|
1930
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1174
1931
|
variantId: string;
|
|
1175
1932
|
version: number;
|
|
1176
1933
|
provider: string;
|
|
@@ -1179,7 +1936,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1179
1936
|
id: string;
|
|
1180
1937
|
createdAt: Date;
|
|
1181
1938
|
updatedAt: Date;
|
|
1182
|
-
}> |
|
|
1939
|
+
}> | zod920.ZodSafeParseError<{
|
|
1183
1940
|
variantId: string;
|
|
1184
1941
|
version: number;
|
|
1185
1942
|
provider: string;
|
|
@@ -1188,33 +1945,33 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1188
1945
|
id: string;
|
|
1189
1946
|
createdAt: Date;
|
|
1190
1947
|
updatedAt: Date;
|
|
1191
|
-
}> |
|
|
1948
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1192
1949
|
environmentId: string;
|
|
1193
1950
|
keyName: string;
|
|
1194
1951
|
keyValue: string;
|
|
1195
1952
|
id: string;
|
|
1196
1953
|
createdAt: Date;
|
|
1197
1954
|
updatedAt: Date;
|
|
1198
|
-
}> |
|
|
1955
|
+
}> | zod920.ZodSafeParseError<{
|
|
1199
1956
|
environmentId: string;
|
|
1200
1957
|
keyName: string;
|
|
1201
1958
|
keyValue: string;
|
|
1202
1959
|
id: string;
|
|
1203
1960
|
createdAt: Date;
|
|
1204
1961
|
updatedAt: Date;
|
|
1205
|
-
}> |
|
|
1962
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1206
1963
|
configId: string;
|
|
1207
1964
|
variantId: string;
|
|
1208
1965
|
id: string;
|
|
1209
1966
|
createdAt: Date;
|
|
1210
1967
|
updatedAt: Date;
|
|
1211
|
-
}> |
|
|
1968
|
+
}> | zod920.ZodSafeParseError<{
|
|
1212
1969
|
configId: string;
|
|
1213
1970
|
variantId: string;
|
|
1214
1971
|
id: string;
|
|
1215
1972
|
createdAt: Date;
|
|
1216
1973
|
updatedAt: Date;
|
|
1217
|
-
}> |
|
|
1974
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1218
1975
|
environmentId: string;
|
|
1219
1976
|
configId: string;
|
|
1220
1977
|
configVariantId: string;
|
|
@@ -1226,7 +1983,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1226
1983
|
createdAt: Date;
|
|
1227
1984
|
updatedAt: Date;
|
|
1228
1985
|
variantVersionId?: string | null | undefined;
|
|
1229
|
-
}> |
|
|
1986
|
+
}> | zod920.ZodSafeParseError<{
|
|
1230
1987
|
environmentId: string;
|
|
1231
1988
|
configId: string;
|
|
1232
1989
|
configVariantId: string;
|
|
@@ -1238,21 +1995,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1238
1995
|
createdAt: Date;
|
|
1239
1996
|
updatedAt: Date;
|
|
1240
1997
|
variantVersionId?: string | null | undefined;
|
|
1241
|
-
}> |
|
|
1998
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1242
1999
|
setupComplete: boolean;
|
|
1243
2000
|
id: string;
|
|
1244
2001
|
createdAt: Date;
|
|
1245
2002
|
updatedAt: Date;
|
|
1246
2003
|
name?: string | null | undefined;
|
|
1247
2004
|
superAdminId?: string | null | undefined;
|
|
1248
|
-
}> |
|
|
2005
|
+
}> | zod920.ZodSafeParseError<{
|
|
1249
2006
|
setupComplete: boolean;
|
|
1250
2007
|
id: string;
|
|
1251
2008
|
createdAt: Date;
|
|
1252
2009
|
updatedAt: Date;
|
|
1253
2010
|
name?: string | null | undefined;
|
|
1254
2011
|
superAdminId?: string | null | undefined;
|
|
1255
|
-
}> |
|
|
2012
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1256
2013
|
providerId: string;
|
|
1257
2014
|
config: Record<string, unknown>;
|
|
1258
2015
|
enabled: boolean;
|
|
@@ -1261,7 +2018,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1261
2018
|
updatedAt: Date;
|
|
1262
2019
|
slug?: string | null | undefined;
|
|
1263
2020
|
name?: string | null | undefined;
|
|
1264
|
-
}> |
|
|
2021
|
+
}> | zod920.ZodSafeParseError<{
|
|
1265
2022
|
providerId: string;
|
|
1266
2023
|
config: Record<string, unknown>;
|
|
1267
2024
|
enabled: boolean;
|
|
@@ -1270,7 +2027,113 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1270
2027
|
updatedAt: Date;
|
|
1271
2028
|
slug?: string | null | undefined;
|
|
1272
2029
|
name?: string | null | undefined;
|
|
1273
|
-
}> |
|
|
2030
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2031
|
+
playgroundId: string;
|
|
2032
|
+
datasetId: string | null;
|
|
2033
|
+
datasetVersionId: string | null;
|
|
2034
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
2035
|
+
startedAt: Date | null;
|
|
2036
|
+
completedAt: Date | null;
|
|
2037
|
+
totalRecords: number;
|
|
2038
|
+
completedRecords: number;
|
|
2039
|
+
id: string;
|
|
2040
|
+
createdAt: Date;
|
|
2041
|
+
updatedAt: Date;
|
|
2042
|
+
}> | zod920.ZodSafeParseError<{
|
|
2043
|
+
playgroundId: string;
|
|
2044
|
+
datasetId: string | null;
|
|
2045
|
+
datasetVersionId: string | null;
|
|
2046
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
2047
|
+
startedAt: Date | null;
|
|
2048
|
+
completedAt: Date | null;
|
|
2049
|
+
totalRecords: number;
|
|
2050
|
+
completedRecords: number;
|
|
2051
|
+
id: string;
|
|
2052
|
+
createdAt: Date;
|
|
2053
|
+
updatedAt: Date;
|
|
2054
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2055
|
+
runId: string;
|
|
2056
|
+
columnId: string;
|
|
2057
|
+
datasetRecordId: string | null;
|
|
2058
|
+
inputVariables: Record<string, unknown>;
|
|
2059
|
+
outputContent: string | null;
|
|
2060
|
+
status: "pending" | "running" | "completed" | "failed";
|
|
2061
|
+
error: string | null;
|
|
2062
|
+
latencyMs: number | null;
|
|
2063
|
+
promptTokens: number | null;
|
|
2064
|
+
completionTokens: number | null;
|
|
2065
|
+
totalTokens: number | null;
|
|
2066
|
+
cost: number | null;
|
|
2067
|
+
id: string;
|
|
2068
|
+
createdAt: Date;
|
|
2069
|
+
updatedAt: Date;
|
|
2070
|
+
}> | zod920.ZodSafeParseError<{
|
|
2071
|
+
runId: string;
|
|
2072
|
+
columnId: string;
|
|
2073
|
+
datasetRecordId: string | null;
|
|
2074
|
+
inputVariables: Record<string, unknown>;
|
|
2075
|
+
outputContent: string | null;
|
|
2076
|
+
status: "pending" | "running" | "completed" | "failed";
|
|
2077
|
+
error: string | null;
|
|
2078
|
+
latencyMs: number | null;
|
|
2079
|
+
promptTokens: number | null;
|
|
2080
|
+
completionTokens: number | null;
|
|
2081
|
+
totalTokens: number | null;
|
|
2082
|
+
cost: number | null;
|
|
2083
|
+
id: string;
|
|
2084
|
+
createdAt: Date;
|
|
2085
|
+
updatedAt: Date;
|
|
2086
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2087
|
+
datasetId: string;
|
|
2088
|
+
versionNumber: number;
|
|
2089
|
+
recordCount: number;
|
|
2090
|
+
snapshotHash: string;
|
|
2091
|
+
id: string;
|
|
2092
|
+
createdAt: Date;
|
|
2093
|
+
updatedAt: Date;
|
|
2094
|
+
name?: string | null | undefined;
|
|
2095
|
+
description?: string | null | undefined;
|
|
2096
|
+
}> | zod920.ZodSafeParseError<{
|
|
2097
|
+
datasetId: string;
|
|
2098
|
+
versionNumber: number;
|
|
2099
|
+
recordCount: number;
|
|
2100
|
+
snapshotHash: string;
|
|
2101
|
+
id: string;
|
|
2102
|
+
createdAt: Date;
|
|
2103
|
+
updatedAt: Date;
|
|
2104
|
+
name?: string | null | undefined;
|
|
2105
|
+
description?: string | null | undefined;
|
|
2106
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2107
|
+
datasetId: string;
|
|
2108
|
+
input: Record<string, unknown>;
|
|
2109
|
+
metadata: Record<string, unknown>;
|
|
2110
|
+
id: string;
|
|
2111
|
+
createdAt: Date;
|
|
2112
|
+
updatedAt: Date;
|
|
2113
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2114
|
+
}> | zod920.ZodSafeParseError<{
|
|
2115
|
+
datasetId: string;
|
|
2116
|
+
input: Record<string, unknown>;
|
|
2117
|
+
metadata: Record<string, unknown>;
|
|
2118
|
+
id: string;
|
|
2119
|
+
createdAt: Date;
|
|
2120
|
+
updatedAt: Date;
|
|
2121
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2122
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2123
|
+
datasetVersionId: string;
|
|
2124
|
+
datasetRecordId: string;
|
|
2125
|
+
position: number;
|
|
2126
|
+
id: string;
|
|
2127
|
+
createdAt: Date;
|
|
2128
|
+
updatedAt: Date;
|
|
2129
|
+
}> | zod920.ZodSafeParseError<{
|
|
2130
|
+
datasetVersionId: string;
|
|
2131
|
+
datasetRecordId: string;
|
|
2132
|
+
position: number;
|
|
2133
|
+
id: string;
|
|
2134
|
+
createdAt: Date;
|
|
2135
|
+
updatedAt: Date;
|
|
2136
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1274
2137
|
providerConfigId: string;
|
|
1275
2138
|
guardrailConfigId: string;
|
|
1276
2139
|
enabled: boolean;
|
|
@@ -1278,7 +2141,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1278
2141
|
createdAt: Date;
|
|
1279
2142
|
updatedAt: Date;
|
|
1280
2143
|
parameters?: Record<string, unknown> | null | undefined;
|
|
1281
|
-
}> |
|
|
2144
|
+
}> | zod920.ZodSafeParseError<{
|
|
1282
2145
|
providerConfigId: string;
|
|
1283
2146
|
guardrailConfigId: string;
|
|
1284
2147
|
enabled: boolean;
|
|
@@ -1286,7 +2149,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1286
2149
|
createdAt: Date;
|
|
1287
2150
|
updatedAt: Date;
|
|
1288
2151
|
parameters?: Record<string, unknown> | null | undefined;
|
|
1289
|
-
}> |
|
|
2152
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1290
2153
|
requestId: string;
|
|
1291
2154
|
provider: string;
|
|
1292
2155
|
model: string;
|
|
@@ -1321,7 +2184,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1321
2184
|
action: "allowed" | "blocked" | "logged";
|
|
1322
2185
|
totalLatencyMs: number;
|
|
1323
2186
|
} | null | undefined;
|
|
1324
|
-
}> |
|
|
2187
|
+
}> | zod920.ZodSafeParseError<{
|
|
1325
2188
|
requestId: string;
|
|
1326
2189
|
provider: string;
|
|
1327
2190
|
model: string;
|
|
@@ -1360,17 +2223,17 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
1360
2223
|
/**
|
|
1361
2224
|
* Validate partial data (for updates)
|
|
1362
2225
|
*/
|
|
1363
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown):
|
|
2226
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod920.ZodSafeParseSuccess<{
|
|
1364
2227
|
name?: string | undefined;
|
|
1365
2228
|
id?: string | undefined;
|
|
1366
2229
|
createdAt?: Date | undefined;
|
|
1367
2230
|
updatedAt?: Date | undefined;
|
|
1368
|
-
}> |
|
|
2231
|
+
}> | zod920.ZodSafeParseError<{
|
|
1369
2232
|
name?: string | undefined;
|
|
1370
2233
|
id?: string | undefined;
|
|
1371
2234
|
createdAt?: Date | undefined;
|
|
1372
2235
|
updatedAt?: Date | undefined;
|
|
1373
|
-
}> |
|
|
2236
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1374
2237
|
variantId?: string | undefined;
|
|
1375
2238
|
version?: number | undefined;
|
|
1376
2239
|
provider?: string | undefined;
|
|
@@ -1379,7 +2242,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1379
2242
|
id?: string | undefined;
|
|
1380
2243
|
createdAt?: Date | undefined;
|
|
1381
2244
|
updatedAt?: Date | undefined;
|
|
1382
|
-
}> |
|
|
2245
|
+
}> | zod920.ZodSafeParseError<{
|
|
1383
2246
|
variantId?: string | undefined;
|
|
1384
2247
|
version?: number | undefined;
|
|
1385
2248
|
provider?: string | undefined;
|
|
@@ -1388,33 +2251,33 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1388
2251
|
id?: string | undefined;
|
|
1389
2252
|
createdAt?: Date | undefined;
|
|
1390
2253
|
updatedAt?: Date | undefined;
|
|
1391
|
-
}> |
|
|
2254
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1392
2255
|
environmentId?: string | undefined;
|
|
1393
2256
|
keyName?: string | undefined;
|
|
1394
2257
|
keyValue?: string | undefined;
|
|
1395
2258
|
id?: string | undefined;
|
|
1396
2259
|
createdAt?: Date | undefined;
|
|
1397
2260
|
updatedAt?: Date | undefined;
|
|
1398
|
-
}> |
|
|
2261
|
+
}> | zod920.ZodSafeParseError<{
|
|
1399
2262
|
environmentId?: string | undefined;
|
|
1400
2263
|
keyName?: string | undefined;
|
|
1401
2264
|
keyValue?: string | undefined;
|
|
1402
2265
|
id?: string | undefined;
|
|
1403
2266
|
createdAt?: Date | undefined;
|
|
1404
2267
|
updatedAt?: Date | undefined;
|
|
1405
|
-
}> |
|
|
2268
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1406
2269
|
configId?: string | undefined;
|
|
1407
2270
|
variantId?: string | undefined;
|
|
1408
2271
|
id?: string | undefined;
|
|
1409
2272
|
createdAt?: Date | undefined;
|
|
1410
2273
|
updatedAt?: Date | undefined;
|
|
1411
|
-
}> |
|
|
2274
|
+
}> | zod920.ZodSafeParseError<{
|
|
1412
2275
|
configId?: string | undefined;
|
|
1413
2276
|
variantId?: string | undefined;
|
|
1414
2277
|
id?: string | undefined;
|
|
1415
2278
|
createdAt?: Date | undefined;
|
|
1416
2279
|
updatedAt?: Date | undefined;
|
|
1417
|
-
}> |
|
|
2280
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1418
2281
|
environmentId?: string | undefined;
|
|
1419
2282
|
configId?: string | undefined;
|
|
1420
2283
|
configVariantId?: string | undefined;
|
|
@@ -1426,7 +2289,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1426
2289
|
id?: string | undefined;
|
|
1427
2290
|
createdAt?: Date | undefined;
|
|
1428
2291
|
updatedAt?: Date | undefined;
|
|
1429
|
-
}> |
|
|
2292
|
+
}> | zod920.ZodSafeParseError<{
|
|
1430
2293
|
environmentId?: string | undefined;
|
|
1431
2294
|
configId?: string | undefined;
|
|
1432
2295
|
configVariantId?: string | undefined;
|
|
@@ -1438,21 +2301,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1438
2301
|
id?: string | undefined;
|
|
1439
2302
|
createdAt?: Date | undefined;
|
|
1440
2303
|
updatedAt?: Date | undefined;
|
|
1441
|
-
}> |
|
|
2304
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1442
2305
|
name?: string | null | undefined;
|
|
1443
2306
|
setupComplete?: boolean | undefined;
|
|
1444
2307
|
superAdminId?: string | null | undefined;
|
|
1445
2308
|
id?: string | undefined;
|
|
1446
2309
|
createdAt?: Date | undefined;
|
|
1447
2310
|
updatedAt?: Date | undefined;
|
|
1448
|
-
}> |
|
|
2311
|
+
}> | zod920.ZodSafeParseError<{
|
|
1449
2312
|
name?: string | null | undefined;
|
|
1450
2313
|
setupComplete?: boolean | undefined;
|
|
1451
2314
|
superAdminId?: string | null | undefined;
|
|
1452
2315
|
id?: string | undefined;
|
|
1453
2316
|
createdAt?: Date | undefined;
|
|
1454
2317
|
updatedAt?: Date | undefined;
|
|
1455
|
-
}> |
|
|
2318
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1456
2319
|
providerId?: string | undefined;
|
|
1457
2320
|
slug?: string | null | undefined;
|
|
1458
2321
|
name?: string | null | undefined;
|
|
@@ -1461,7 +2324,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1461
2324
|
id?: string | undefined;
|
|
1462
2325
|
createdAt?: Date | undefined;
|
|
1463
2326
|
updatedAt?: Date | undefined;
|
|
1464
|
-
}> |
|
|
2327
|
+
}> | zod920.ZodSafeParseError<{
|
|
1465
2328
|
providerId?: string | undefined;
|
|
1466
2329
|
slug?: string | null | undefined;
|
|
1467
2330
|
name?: string | null | undefined;
|
|
@@ -1470,7 +2333,113 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1470
2333
|
id?: string | undefined;
|
|
1471
2334
|
createdAt?: Date | undefined;
|
|
1472
2335
|
updatedAt?: Date | undefined;
|
|
1473
|
-
}> |
|
|
2336
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2337
|
+
playgroundId?: string | undefined;
|
|
2338
|
+
datasetId?: string | null | undefined;
|
|
2339
|
+
datasetVersionId?: string | null | undefined;
|
|
2340
|
+
status?: "pending" | "running" | "completed" | "failed" | "cancelled" | undefined;
|
|
2341
|
+
startedAt?: Date | null | undefined;
|
|
2342
|
+
completedAt?: Date | null | undefined;
|
|
2343
|
+
totalRecords?: number | undefined;
|
|
2344
|
+
completedRecords?: number | undefined;
|
|
2345
|
+
id?: string | undefined;
|
|
2346
|
+
createdAt?: Date | undefined;
|
|
2347
|
+
updatedAt?: Date | undefined;
|
|
2348
|
+
}> | zod920.ZodSafeParseError<{
|
|
2349
|
+
playgroundId?: string | undefined;
|
|
2350
|
+
datasetId?: string | null | undefined;
|
|
2351
|
+
datasetVersionId?: string | null | undefined;
|
|
2352
|
+
status?: "pending" | "running" | "completed" | "failed" | "cancelled" | undefined;
|
|
2353
|
+
startedAt?: Date | null | undefined;
|
|
2354
|
+
completedAt?: Date | null | undefined;
|
|
2355
|
+
totalRecords?: number | undefined;
|
|
2356
|
+
completedRecords?: number | undefined;
|
|
2357
|
+
id?: string | undefined;
|
|
2358
|
+
createdAt?: Date | undefined;
|
|
2359
|
+
updatedAt?: Date | undefined;
|
|
2360
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2361
|
+
runId?: string | undefined;
|
|
2362
|
+
columnId?: string | undefined;
|
|
2363
|
+
datasetRecordId?: string | null | undefined;
|
|
2364
|
+
inputVariables?: Record<string, unknown> | undefined;
|
|
2365
|
+
outputContent?: string | null | undefined;
|
|
2366
|
+
status?: "pending" | "running" | "completed" | "failed" | undefined;
|
|
2367
|
+
error?: string | null | undefined;
|
|
2368
|
+
latencyMs?: number | null | undefined;
|
|
2369
|
+
promptTokens?: number | null | undefined;
|
|
2370
|
+
completionTokens?: number | null | undefined;
|
|
2371
|
+
totalTokens?: number | null | undefined;
|
|
2372
|
+
cost?: number | null | undefined;
|
|
2373
|
+
id?: string | undefined;
|
|
2374
|
+
createdAt?: Date | undefined;
|
|
2375
|
+
updatedAt?: Date | undefined;
|
|
2376
|
+
}> | zod920.ZodSafeParseError<{
|
|
2377
|
+
runId?: string | undefined;
|
|
2378
|
+
columnId?: string | undefined;
|
|
2379
|
+
datasetRecordId?: string | null | undefined;
|
|
2380
|
+
inputVariables?: Record<string, unknown> | undefined;
|
|
2381
|
+
outputContent?: string | null | undefined;
|
|
2382
|
+
status?: "pending" | "running" | "completed" | "failed" | undefined;
|
|
2383
|
+
error?: string | null | undefined;
|
|
2384
|
+
latencyMs?: number | null | undefined;
|
|
2385
|
+
promptTokens?: number | null | undefined;
|
|
2386
|
+
completionTokens?: number | null | undefined;
|
|
2387
|
+
totalTokens?: number | null | undefined;
|
|
2388
|
+
cost?: number | null | undefined;
|
|
2389
|
+
id?: string | undefined;
|
|
2390
|
+
createdAt?: Date | undefined;
|
|
2391
|
+
updatedAt?: Date | undefined;
|
|
2392
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2393
|
+
datasetId?: string | undefined;
|
|
2394
|
+
versionNumber?: number | undefined;
|
|
2395
|
+
name?: string | null | undefined;
|
|
2396
|
+
description?: string | null | undefined;
|
|
2397
|
+
recordCount?: number | undefined;
|
|
2398
|
+
snapshotHash?: string | undefined;
|
|
2399
|
+
id?: string | undefined;
|
|
2400
|
+
createdAt?: Date | undefined;
|
|
2401
|
+
updatedAt?: Date | undefined;
|
|
2402
|
+
}> | zod920.ZodSafeParseError<{
|
|
2403
|
+
datasetId?: string | undefined;
|
|
2404
|
+
versionNumber?: number | undefined;
|
|
2405
|
+
name?: string | null | undefined;
|
|
2406
|
+
description?: string | null | undefined;
|
|
2407
|
+
recordCount?: number | undefined;
|
|
2408
|
+
snapshotHash?: string | undefined;
|
|
2409
|
+
id?: string | undefined;
|
|
2410
|
+
createdAt?: Date | undefined;
|
|
2411
|
+
updatedAt?: Date | undefined;
|
|
2412
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2413
|
+
datasetId?: string | undefined;
|
|
2414
|
+
input?: Record<string, unknown> | undefined;
|
|
2415
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2416
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2417
|
+
id?: string | undefined;
|
|
2418
|
+
createdAt?: Date | undefined;
|
|
2419
|
+
updatedAt?: Date | undefined;
|
|
2420
|
+
}> | zod920.ZodSafeParseError<{
|
|
2421
|
+
datasetId?: string | undefined;
|
|
2422
|
+
input?: Record<string, unknown> | undefined;
|
|
2423
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2424
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2425
|
+
id?: string | undefined;
|
|
2426
|
+
createdAt?: Date | undefined;
|
|
2427
|
+
updatedAt?: Date | undefined;
|
|
2428
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
2429
|
+
datasetVersionId?: string | undefined;
|
|
2430
|
+
datasetRecordId?: string | undefined;
|
|
2431
|
+
position?: number | undefined;
|
|
2432
|
+
id?: string | undefined;
|
|
2433
|
+
createdAt?: Date | undefined;
|
|
2434
|
+
updatedAt?: Date | undefined;
|
|
2435
|
+
}> | zod920.ZodSafeParseError<{
|
|
2436
|
+
datasetVersionId?: string | undefined;
|
|
2437
|
+
datasetRecordId?: string | undefined;
|
|
2438
|
+
position?: number | undefined;
|
|
2439
|
+
id?: string | undefined;
|
|
2440
|
+
createdAt?: Date | undefined;
|
|
2441
|
+
updatedAt?: Date | undefined;
|
|
2442
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1474
2443
|
providerConfigId?: string | undefined;
|
|
1475
2444
|
guardrailConfigId?: string | undefined;
|
|
1476
2445
|
enabled?: boolean | undefined;
|
|
@@ -1478,7 +2447,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1478
2447
|
id?: string | undefined;
|
|
1479
2448
|
createdAt?: Date | undefined;
|
|
1480
2449
|
updatedAt?: Date | undefined;
|
|
1481
|
-
}> |
|
|
2450
|
+
}> | zod920.ZodSafeParseError<{
|
|
1482
2451
|
providerConfigId?: string | undefined;
|
|
1483
2452
|
guardrailConfigId?: string | undefined;
|
|
1484
2453
|
enabled?: boolean | undefined;
|
|
@@ -1486,7 +2455,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1486
2455
|
id?: string | undefined;
|
|
1487
2456
|
createdAt?: Date | undefined;
|
|
1488
2457
|
updatedAt?: Date | undefined;
|
|
1489
|
-
}> |
|
|
2458
|
+
}> | zod920.ZodSafeParseSuccess<{
|
|
1490
2459
|
requestId?: string | undefined;
|
|
1491
2460
|
configId?: string | null | undefined;
|
|
1492
2461
|
variantId?: string | null | undefined;
|
|
@@ -1521,7 +2490,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
1521
2490
|
id?: string | undefined;
|
|
1522
2491
|
createdAt?: Date | undefined;
|
|
1523
2492
|
updatedAt?: Date | undefined;
|
|
1524
|
-
}> |
|
|
2493
|
+
}> | zod920.ZodSafeParseError<{
|
|
1525
2494
|
requestId?: string | undefined;
|
|
1526
2495
|
configId?: string | null | undefined;
|
|
1527
2496
|
variantId?: string | null | undefined;
|
|
@@ -1621,6 +2590,59 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
1621
2590
|
updatedAt: Date;
|
|
1622
2591
|
slug?: string | null | undefined;
|
|
1623
2592
|
name?: string | null | undefined;
|
|
2593
|
+
} | {
|
|
2594
|
+
playgroundId: string;
|
|
2595
|
+
datasetId: string | null;
|
|
2596
|
+
datasetVersionId: string | null;
|
|
2597
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
2598
|
+
startedAt: Date | null;
|
|
2599
|
+
completedAt: Date | null;
|
|
2600
|
+
totalRecords: number;
|
|
2601
|
+
completedRecords: number;
|
|
2602
|
+
id: string;
|
|
2603
|
+
createdAt: Date;
|
|
2604
|
+
updatedAt: Date;
|
|
2605
|
+
} | {
|
|
2606
|
+
runId: string;
|
|
2607
|
+
columnId: string;
|
|
2608
|
+
datasetRecordId: string | null;
|
|
2609
|
+
inputVariables: Record<string, unknown>;
|
|
2610
|
+
outputContent: string | null;
|
|
2611
|
+
status: "pending" | "running" | "completed" | "failed";
|
|
2612
|
+
error: string | null;
|
|
2613
|
+
latencyMs: number | null;
|
|
2614
|
+
promptTokens: number | null;
|
|
2615
|
+
completionTokens: number | null;
|
|
2616
|
+
totalTokens: number | null;
|
|
2617
|
+
cost: number | null;
|
|
2618
|
+
id: string;
|
|
2619
|
+
createdAt: Date;
|
|
2620
|
+
updatedAt: Date;
|
|
2621
|
+
} | {
|
|
2622
|
+
datasetId: string;
|
|
2623
|
+
versionNumber: number;
|
|
2624
|
+
recordCount: number;
|
|
2625
|
+
snapshotHash: string;
|
|
2626
|
+
id: string;
|
|
2627
|
+
createdAt: Date;
|
|
2628
|
+
updatedAt: Date;
|
|
2629
|
+
name?: string | null | undefined;
|
|
2630
|
+
description?: string | null | undefined;
|
|
2631
|
+
} | {
|
|
2632
|
+
datasetId: string;
|
|
2633
|
+
input: Record<string, unknown>;
|
|
2634
|
+
metadata: Record<string, unknown>;
|
|
2635
|
+
id: string;
|
|
2636
|
+
createdAt: Date;
|
|
2637
|
+
updatedAt: Date;
|
|
2638
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2639
|
+
} | {
|
|
2640
|
+
datasetVersionId: string;
|
|
2641
|
+
datasetRecordId: string;
|
|
2642
|
+
position: number;
|
|
2643
|
+
id: string;
|
|
2644
|
+
createdAt: Date;
|
|
2645
|
+
updatedAt: Date;
|
|
1624
2646
|
} | {
|
|
1625
2647
|
providerConfigId: string;
|
|
1626
2648
|
guardrailConfigId: string;
|
|
@@ -1723,6 +2745,59 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
1723
2745
|
id?: string | undefined;
|
|
1724
2746
|
createdAt?: Date | undefined;
|
|
1725
2747
|
updatedAt?: Date | undefined;
|
|
2748
|
+
} | {
|
|
2749
|
+
playgroundId?: string | undefined;
|
|
2750
|
+
datasetId?: string | null | undefined;
|
|
2751
|
+
datasetVersionId?: string | null | undefined;
|
|
2752
|
+
status?: "pending" | "running" | "completed" | "failed" | "cancelled" | undefined;
|
|
2753
|
+
startedAt?: Date | null | undefined;
|
|
2754
|
+
completedAt?: Date | null | undefined;
|
|
2755
|
+
totalRecords?: number | undefined;
|
|
2756
|
+
completedRecords?: number | undefined;
|
|
2757
|
+
id?: string | undefined;
|
|
2758
|
+
createdAt?: Date | undefined;
|
|
2759
|
+
updatedAt?: Date | undefined;
|
|
2760
|
+
} | {
|
|
2761
|
+
runId?: string | undefined;
|
|
2762
|
+
columnId?: string | undefined;
|
|
2763
|
+
datasetRecordId?: string | null | undefined;
|
|
2764
|
+
inputVariables?: Record<string, unknown> | undefined;
|
|
2765
|
+
outputContent?: string | null | undefined;
|
|
2766
|
+
status?: "pending" | "running" | "completed" | "failed" | undefined;
|
|
2767
|
+
error?: string | null | undefined;
|
|
2768
|
+
latencyMs?: number | null | undefined;
|
|
2769
|
+
promptTokens?: number | null | undefined;
|
|
2770
|
+
completionTokens?: number | null | undefined;
|
|
2771
|
+
totalTokens?: number | null | undefined;
|
|
2772
|
+
cost?: number | null | undefined;
|
|
2773
|
+
id?: string | undefined;
|
|
2774
|
+
createdAt?: Date | undefined;
|
|
2775
|
+
updatedAt?: Date | undefined;
|
|
2776
|
+
} | {
|
|
2777
|
+
datasetId?: string | undefined;
|
|
2778
|
+
versionNumber?: number | undefined;
|
|
2779
|
+
name?: string | null | undefined;
|
|
2780
|
+
description?: string | null | undefined;
|
|
2781
|
+
recordCount?: number | undefined;
|
|
2782
|
+
snapshotHash?: string | undefined;
|
|
2783
|
+
id?: string | undefined;
|
|
2784
|
+
createdAt?: Date | undefined;
|
|
2785
|
+
updatedAt?: Date | undefined;
|
|
2786
|
+
} | {
|
|
2787
|
+
datasetId?: string | undefined;
|
|
2788
|
+
input?: Record<string, unknown> | undefined;
|
|
2789
|
+
expected?: Record<string, unknown> | null | undefined;
|
|
2790
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2791
|
+
id?: string | undefined;
|
|
2792
|
+
createdAt?: Date | undefined;
|
|
2793
|
+
updatedAt?: Date | undefined;
|
|
2794
|
+
} | {
|
|
2795
|
+
datasetVersionId?: string | undefined;
|
|
2796
|
+
datasetRecordId?: string | undefined;
|
|
2797
|
+
position?: number | undefined;
|
|
2798
|
+
id?: string | undefined;
|
|
2799
|
+
createdAt?: Date | undefined;
|
|
2800
|
+
updatedAt?: Date | undefined;
|
|
1726
2801
|
} | {
|
|
1727
2802
|
providerConfigId?: string | undefined;
|
|
1728
2803
|
guardrailConfigId?: string | undefined;
|
|
@@ -1882,4 +2957,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
1882
2957
|
*/
|
|
1883
2958
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
1884
2959
|
//#endregion
|
|
1885
|
-
export {
|
|
2960
|
+
export { SCHEMA_METADATA as $, DatasetsTable as A, variantsSchema as At, LLMRequest as B, Dataset as C, playgroundRunsSchema as Ct, DatasetVersionRecord as D, schemas as Dt, DatasetVersion as E, providerGuardrailOverridesSchema as Et, GuardrailConfig as F, PlaygroundResultsTable as G, Playground as H, GuardrailConfigsTable as I, PlaygroundsTable as J, PlaygroundRun as K, GuardrailResult as L, EnvironmentSecret as M, EnvironmentSecretsTable as N, DatasetVersionRecordsTable as O, targetingRulesSchema as Ot, EnvironmentsTable as P, ProviderGuardrailOverridesTable as Q, GuardrailResults as R, Database as S, playgroundResultsSchema as St, DatasetRecordsTable as T, providerConfigsSchema as Tt, PlaygroundColumn as U, LLMRequestsTable as V, PlaygroundResult as W, ProviderConfigsTable as X, ProviderConfig as Y, ProviderGuardrailOverride as Z, validateTableData as _, environmentSecretsSchema as _t, createDatabaseFromConnection as a, Variant as at, ConfigVariantsTable as b, llmRequestsSchema as bt, executeWithSchema as c, VariantsTable as ct, getMigrations as d, configVariantsSchema as dt, Selectable as et, matchType as f, configsSchema as ft, validatePartialTableData as g, datasetsSchema as gt, parseTableData as h, datasetVersionsSchema as ht, createDatabase as i, Updateable as it, Environment as j, workspaceSettingsSchema as jt, DatasetVersionsTable as k, variantVersionsSchema as kt, MigrationOptions as l, WorkspaceSettings as lt, parsePartialTableData as m, datasetVersionRecordsSchema as mt, DatabaseOptions as n, TargetingRule as nt, detectDatabaseType as o, VariantVersion as ot, runAutoMigrations as p, datasetRecordsSchema as pt, PlaygroundRunsTable as q, DatabaseType as r, TargetingRulesTable as rt, createNeonDialect as s, VariantVersionsTable as st, DatabaseConnection as t, TableName as tt, MigrationResult as u, WorkspaceSettingsTable as ut, Config as v, environmentsSchema as vt, DatasetRecord as w, playgroundsSchema as wt, ConfigsTable as x, playgroundColumnSchema as xt, ConfigVariant as y, guardrailConfigsSchema as yt, Insertable as z };
|