@llmops/core 0.6.10 → 1.0.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-C06VxkTn.cjs → bun-sqlite-dialect-C3HVUfYl.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-CdAtHHw5.mjs → db-CjwRQB4N.mjs} +4 -290
- package/dist/{db-D8otWwZL.cjs → db-D3WDjcvd.cjs} +5 -299
- package/dist/{index-D3onb7gK.d.mts → index-BmGf4wCW.d.cts} +278 -832
- package/dist/{index-CyVFWq76.d.cts → index-BoDvuqku.d.mts} +278 -832
- package/dist/index.cjs +52 -1171
- package/dist/index.d.cts +38 -1082
- package/dist/index.d.mts +38 -1082
- package/dist/index.mjs +52 -1162
- package/dist/{neon-dialect-DIuEesTA.cjs → neon-dialect-BSJpZ9YH.cjs} +1 -1
- package/dist/{neon-dialect-ccr-mLKR.cjs → neon-dialect-DMClTHvw.cjs} +1 -1
- package/dist/{node-sqlite-dialect-AU81Qz0n.cjs → node-sqlite-dialect-BZGXfDHS.cjs} +1 -1
- package/package.json +2 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, Dialect, Generated, Kysely, MssqlDialect, MysqlDialect, PostgresDialect, SqliteDialect } from "kysely";
|
|
2
|
+
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
2
3
|
import * as zod0 from "zod";
|
|
3
4
|
import { z } from "zod";
|
|
4
|
-
import { NeonQueryFunction } from "@neondatabase/serverless";
|
|
5
5
|
|
|
6
6
|
//#region src/db/schema.d.ts
|
|
7
7
|
declare const configsSchema: z.ZodObject<{
|
|
@@ -619,13 +619,6 @@ interface SpanEventsTable {
|
|
|
619
619
|
* Main Kysely Database interface
|
|
620
620
|
*/
|
|
621
621
|
interface Database {
|
|
622
|
-
configs: ConfigsTable;
|
|
623
|
-
variants: VariantsTable;
|
|
624
|
-
variant_versions: VariantVersionsTable;
|
|
625
|
-
environments: EnvironmentsTable;
|
|
626
|
-
environment_secrets: EnvironmentSecretsTable;
|
|
627
|
-
config_variants: ConfigVariantsTable;
|
|
628
|
-
targeting_rules: TargetingRulesTable;
|
|
629
622
|
workspace_settings: WorkspaceSettingsTable;
|
|
630
623
|
provider_configs: ProviderConfigsTable;
|
|
631
624
|
playgrounds: PlaygroundsTable;
|
|
@@ -658,307 +651,6 @@ type Updateable<T extends TableName> = { [K in keyof Database[T]]?: Database[T][
|
|
|
658
651
|
*/
|
|
659
652
|
declare const SCHEMA_METADATA: {
|
|
660
653
|
readonly tables: {
|
|
661
|
-
readonly configs: {
|
|
662
|
-
readonly order: 1;
|
|
663
|
-
readonly schema: z.ZodObject<{
|
|
664
|
-
slug: z.ZodString;
|
|
665
|
-
name: z.ZodOptional<z.ZodString>;
|
|
666
|
-
id: z.ZodString;
|
|
667
|
-
createdAt: z.ZodDate;
|
|
668
|
-
updatedAt: z.ZodDate;
|
|
669
|
-
}, z.core.$strip>;
|
|
670
|
-
readonly fields: {
|
|
671
|
-
readonly id: {
|
|
672
|
-
readonly type: "uuid";
|
|
673
|
-
readonly primaryKey: true;
|
|
674
|
-
};
|
|
675
|
-
readonly slug: {
|
|
676
|
-
readonly type: "text";
|
|
677
|
-
readonly unique: true;
|
|
678
|
-
};
|
|
679
|
-
readonly name: {
|
|
680
|
-
readonly type: "text";
|
|
681
|
-
readonly nullable: true;
|
|
682
|
-
};
|
|
683
|
-
readonly createdAt: {
|
|
684
|
-
readonly type: "timestamp";
|
|
685
|
-
readonly default: "now()";
|
|
686
|
-
};
|
|
687
|
-
readonly updatedAt: {
|
|
688
|
-
readonly type: "timestamp";
|
|
689
|
-
readonly default: "now()";
|
|
690
|
-
readonly onUpdate: "now()";
|
|
691
|
-
};
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
readonly variants: {
|
|
695
|
-
readonly order: 2;
|
|
696
|
-
readonly schema: z.ZodObject<{
|
|
697
|
-
name: z.ZodString;
|
|
698
|
-
id: z.ZodString;
|
|
699
|
-
createdAt: z.ZodDate;
|
|
700
|
-
updatedAt: z.ZodDate;
|
|
701
|
-
}, z.core.$strip>;
|
|
702
|
-
readonly fields: {
|
|
703
|
-
readonly id: {
|
|
704
|
-
readonly type: "uuid";
|
|
705
|
-
readonly primaryKey: true;
|
|
706
|
-
};
|
|
707
|
-
readonly name: {
|
|
708
|
-
readonly type: "text";
|
|
709
|
-
};
|
|
710
|
-
readonly createdAt: {
|
|
711
|
-
readonly type: "timestamp";
|
|
712
|
-
readonly default: "now()";
|
|
713
|
-
};
|
|
714
|
-
readonly updatedAt: {
|
|
715
|
-
readonly type: "timestamp";
|
|
716
|
-
readonly default: "now()";
|
|
717
|
-
readonly onUpdate: "now()";
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
readonly variant_versions: {
|
|
722
|
-
readonly order: 3;
|
|
723
|
-
readonly schema: z.ZodObject<{
|
|
724
|
-
variantId: z.ZodString;
|
|
725
|
-
version: z.ZodNumber;
|
|
726
|
-
provider: z.ZodString;
|
|
727
|
-
modelName: z.ZodString;
|
|
728
|
-
jsonData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
729
|
-
id: z.ZodString;
|
|
730
|
-
createdAt: z.ZodDate;
|
|
731
|
-
updatedAt: z.ZodDate;
|
|
732
|
-
}, z.core.$strip>;
|
|
733
|
-
readonly fields: {
|
|
734
|
-
readonly id: {
|
|
735
|
-
readonly type: "uuid";
|
|
736
|
-
readonly primaryKey: true;
|
|
737
|
-
};
|
|
738
|
-
readonly variantId: {
|
|
739
|
-
readonly type: "uuid";
|
|
740
|
-
readonly references: {
|
|
741
|
-
readonly table: "variants";
|
|
742
|
-
readonly column: "id";
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
readonly version: {
|
|
746
|
-
readonly type: "integer";
|
|
747
|
-
};
|
|
748
|
-
readonly provider: {
|
|
749
|
-
readonly type: "text";
|
|
750
|
-
};
|
|
751
|
-
readonly modelName: {
|
|
752
|
-
readonly type: "text";
|
|
753
|
-
};
|
|
754
|
-
readonly jsonData: {
|
|
755
|
-
readonly type: "jsonb";
|
|
756
|
-
};
|
|
757
|
-
readonly createdAt: {
|
|
758
|
-
readonly type: "timestamp";
|
|
759
|
-
readonly default: "now()";
|
|
760
|
-
};
|
|
761
|
-
readonly updatedAt: {
|
|
762
|
-
readonly type: "timestamp";
|
|
763
|
-
readonly default: "now()";
|
|
764
|
-
readonly onUpdate: "now()";
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
|
-
readonly uniqueConstraints: readonly [{
|
|
768
|
-
readonly columns: readonly ["variantId", "version"];
|
|
769
|
-
}];
|
|
770
|
-
};
|
|
771
|
-
readonly environments: {
|
|
772
|
-
readonly order: 4;
|
|
773
|
-
readonly schema: z.ZodObject<{
|
|
774
|
-
name: z.ZodString;
|
|
775
|
-
slug: z.ZodString;
|
|
776
|
-
isProd: z.ZodDefault<z.ZodBoolean>;
|
|
777
|
-
id: z.ZodString;
|
|
778
|
-
createdAt: z.ZodDate;
|
|
779
|
-
updatedAt: z.ZodDate;
|
|
780
|
-
}, z.core.$strip>;
|
|
781
|
-
readonly fields: {
|
|
782
|
-
readonly id: {
|
|
783
|
-
readonly type: "uuid";
|
|
784
|
-
readonly primaryKey: true;
|
|
785
|
-
};
|
|
786
|
-
readonly name: {
|
|
787
|
-
readonly type: "text";
|
|
788
|
-
};
|
|
789
|
-
readonly slug: {
|
|
790
|
-
readonly type: "text";
|
|
791
|
-
readonly unique: true;
|
|
792
|
-
};
|
|
793
|
-
readonly isProd: {
|
|
794
|
-
readonly type: "boolean";
|
|
795
|
-
readonly default: false;
|
|
796
|
-
};
|
|
797
|
-
readonly createdAt: {
|
|
798
|
-
readonly type: "timestamp";
|
|
799
|
-
readonly default: "now()";
|
|
800
|
-
};
|
|
801
|
-
readonly updatedAt: {
|
|
802
|
-
readonly type: "timestamp";
|
|
803
|
-
readonly default: "now()";
|
|
804
|
-
readonly onUpdate: "now()";
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
|
-
readonly environment_secrets: {
|
|
809
|
-
readonly order: 5;
|
|
810
|
-
readonly schema: z.ZodObject<{
|
|
811
|
-
environmentId: z.ZodString;
|
|
812
|
-
keyName: z.ZodString;
|
|
813
|
-
keyValue: z.ZodString;
|
|
814
|
-
id: z.ZodString;
|
|
815
|
-
createdAt: z.ZodDate;
|
|
816
|
-
updatedAt: z.ZodDate;
|
|
817
|
-
}, z.core.$strip>;
|
|
818
|
-
readonly fields: {
|
|
819
|
-
readonly id: {
|
|
820
|
-
readonly type: "uuid";
|
|
821
|
-
readonly primaryKey: true;
|
|
822
|
-
};
|
|
823
|
-
readonly environmentId: {
|
|
824
|
-
readonly type: "uuid";
|
|
825
|
-
readonly references: {
|
|
826
|
-
readonly table: "environments";
|
|
827
|
-
readonly column: "id";
|
|
828
|
-
};
|
|
829
|
-
};
|
|
830
|
-
readonly keyName: {
|
|
831
|
-
readonly type: "text";
|
|
832
|
-
};
|
|
833
|
-
readonly keyValue: {
|
|
834
|
-
readonly type: "text";
|
|
835
|
-
};
|
|
836
|
-
readonly createdAt: {
|
|
837
|
-
readonly type: "timestamp";
|
|
838
|
-
readonly default: "now()";
|
|
839
|
-
};
|
|
840
|
-
readonly updatedAt: {
|
|
841
|
-
readonly type: "timestamp";
|
|
842
|
-
readonly default: "now()";
|
|
843
|
-
readonly onUpdate: "now()";
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
readonly config_variants: {
|
|
848
|
-
readonly order: 6;
|
|
849
|
-
readonly schema: z.ZodObject<{
|
|
850
|
-
configId: z.ZodString;
|
|
851
|
-
variantId: z.ZodString;
|
|
852
|
-
id: z.ZodString;
|
|
853
|
-
createdAt: z.ZodDate;
|
|
854
|
-
updatedAt: z.ZodDate;
|
|
855
|
-
}, z.core.$strip>;
|
|
856
|
-
readonly fields: {
|
|
857
|
-
readonly id: {
|
|
858
|
-
readonly type: "uuid";
|
|
859
|
-
readonly primaryKey: true;
|
|
860
|
-
};
|
|
861
|
-
readonly configId: {
|
|
862
|
-
readonly type: "uuid";
|
|
863
|
-
readonly references: {
|
|
864
|
-
readonly table: "configs";
|
|
865
|
-
readonly column: "id";
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
readonly variantId: {
|
|
869
|
-
readonly type: "uuid";
|
|
870
|
-
readonly references: {
|
|
871
|
-
readonly table: "variants";
|
|
872
|
-
readonly column: "id";
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
readonly createdAt: {
|
|
876
|
-
readonly type: "timestamp";
|
|
877
|
-
readonly default: "now()";
|
|
878
|
-
};
|
|
879
|
-
readonly updatedAt: {
|
|
880
|
-
readonly type: "timestamp";
|
|
881
|
-
readonly default: "now()";
|
|
882
|
-
readonly onUpdate: "now()";
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
readonly targeting_rules: {
|
|
887
|
-
readonly order: 7;
|
|
888
|
-
readonly schema: z.ZodObject<{
|
|
889
|
-
environmentId: z.ZodString;
|
|
890
|
-
configId: z.ZodString;
|
|
891
|
-
configVariantId: z.ZodString;
|
|
892
|
-
variantVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
893
|
-
weight: z.ZodDefault<z.ZodNumber>;
|
|
894
|
-
priority: z.ZodDefault<z.ZodNumber>;
|
|
895
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
896
|
-
conditions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
897
|
-
id: z.ZodString;
|
|
898
|
-
createdAt: z.ZodDate;
|
|
899
|
-
updatedAt: z.ZodDate;
|
|
900
|
-
}, z.core.$strip>;
|
|
901
|
-
readonly fields: {
|
|
902
|
-
readonly id: {
|
|
903
|
-
readonly type: "uuid";
|
|
904
|
-
readonly primaryKey: true;
|
|
905
|
-
};
|
|
906
|
-
readonly environmentId: {
|
|
907
|
-
readonly type: "uuid";
|
|
908
|
-
readonly references: {
|
|
909
|
-
readonly table: "environments";
|
|
910
|
-
readonly column: "id";
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
readonly configId: {
|
|
914
|
-
readonly type: "uuid";
|
|
915
|
-
readonly references: {
|
|
916
|
-
readonly table: "configs";
|
|
917
|
-
readonly column: "id";
|
|
918
|
-
};
|
|
919
|
-
};
|
|
920
|
-
readonly configVariantId: {
|
|
921
|
-
readonly type: "uuid";
|
|
922
|
-
readonly references: {
|
|
923
|
-
readonly table: "config_variants";
|
|
924
|
-
readonly column: "id";
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
readonly variantVersionId: {
|
|
928
|
-
readonly type: "uuid";
|
|
929
|
-
readonly nullable: true;
|
|
930
|
-
readonly references: {
|
|
931
|
-
readonly table: "variant_versions";
|
|
932
|
-
readonly column: "id";
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
readonly weight: {
|
|
936
|
-
readonly type: "integer";
|
|
937
|
-
readonly default: 10000;
|
|
938
|
-
};
|
|
939
|
-
readonly priority: {
|
|
940
|
-
readonly type: "integer";
|
|
941
|
-
readonly default: 0;
|
|
942
|
-
};
|
|
943
|
-
readonly enabled: {
|
|
944
|
-
readonly type: "boolean";
|
|
945
|
-
readonly default: true;
|
|
946
|
-
};
|
|
947
|
-
readonly conditions: {
|
|
948
|
-
readonly type: "jsonb";
|
|
949
|
-
readonly default: "{}";
|
|
950
|
-
};
|
|
951
|
-
readonly createdAt: {
|
|
952
|
-
readonly type: "timestamp";
|
|
953
|
-
readonly default: "now()";
|
|
954
|
-
};
|
|
955
|
-
readonly updatedAt: {
|
|
956
|
-
readonly type: "timestamp";
|
|
957
|
-
readonly default: "now()";
|
|
958
|
-
readonly onUpdate: "now()";
|
|
959
|
-
};
|
|
960
|
-
};
|
|
961
|
-
};
|
|
962
654
|
readonly workspace_settings: {
|
|
963
655
|
readonly order: 8;
|
|
964
656
|
readonly schema: z.ZodObject<{
|
|
@@ -2410,111 +2102,14 @@ declare const schemas: {
|
|
|
2410
2102
|
* Validate data against table schema
|
|
2411
2103
|
* Useful for runtime validation before inserting/updating
|
|
2412
2104
|
*/
|
|
2413
|
-
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.
|
|
2414
|
-
slug: string;
|
|
2415
|
-
id: string;
|
|
2416
|
-
createdAt: Date;
|
|
2417
|
-
updatedAt: Date;
|
|
2418
|
-
name?: string | undefined;
|
|
2419
|
-
}> | zod0.ZodSafeParseError<{
|
|
2420
|
-
slug: string;
|
|
2421
|
-
id: string;
|
|
2422
|
-
createdAt: Date;
|
|
2423
|
-
updatedAt: Date;
|
|
2424
|
-
name?: string | undefined;
|
|
2425
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2426
|
-
name: string;
|
|
2427
|
-
id: string;
|
|
2428
|
-
createdAt: Date;
|
|
2429
|
-
updatedAt: Date;
|
|
2430
|
-
}> | zod0.ZodSafeParseError<{
|
|
2431
|
-
name: string;
|
|
2432
|
-
id: string;
|
|
2433
|
-
createdAt: Date;
|
|
2434
|
-
updatedAt: Date;
|
|
2435
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2436
|
-
variantId: string;
|
|
2437
|
-
version: number;
|
|
2438
|
-
provider: string;
|
|
2439
|
-
modelName: string;
|
|
2440
|
-
jsonData: Record<string, unknown>;
|
|
2441
|
-
id: string;
|
|
2442
|
-
createdAt: Date;
|
|
2443
|
-
updatedAt: Date;
|
|
2444
|
-
}> | zod0.ZodSafeParseError<{
|
|
2445
|
-
variantId: string;
|
|
2446
|
-
version: number;
|
|
2447
|
-
provider: string;
|
|
2448
|
-
modelName: string;
|
|
2449
|
-
jsonData: Record<string, unknown>;
|
|
2450
|
-
id: string;
|
|
2451
|
-
createdAt: Date;
|
|
2452
|
-
updatedAt: Date;
|
|
2453
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2454
|
-
environmentId: string;
|
|
2455
|
-
keyName: string;
|
|
2456
|
-
keyValue: string;
|
|
2457
|
-
id: string;
|
|
2458
|
-
createdAt: Date;
|
|
2459
|
-
updatedAt: Date;
|
|
2460
|
-
}> | zod0.ZodSafeParseError<{
|
|
2461
|
-
environmentId: string;
|
|
2462
|
-
keyName: string;
|
|
2463
|
-
keyValue: string;
|
|
2464
|
-
id: string;
|
|
2465
|
-
createdAt: Date;
|
|
2466
|
-
updatedAt: Date;
|
|
2467
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2468
|
-
configId: string;
|
|
2469
|
-
variantId: string;
|
|
2470
|
-
id: string;
|
|
2471
|
-
createdAt: Date;
|
|
2472
|
-
updatedAt: Date;
|
|
2473
|
-
}> | zod0.ZodSafeParseError<{
|
|
2474
|
-
configId: string;
|
|
2475
|
-
variantId: string;
|
|
2476
|
-
id: string;
|
|
2477
|
-
createdAt: Date;
|
|
2478
|
-
updatedAt: Date;
|
|
2479
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2480
|
-
environmentId: string;
|
|
2481
|
-
configId: string;
|
|
2482
|
-
configVariantId: string;
|
|
2483
|
-
weight: number;
|
|
2484
|
-
priority: number;
|
|
2485
|
-
enabled: boolean;
|
|
2486
|
-
conditions: Record<string, unknown>;
|
|
2487
|
-
id: string;
|
|
2488
|
-
createdAt: Date;
|
|
2489
|
-
updatedAt: Date;
|
|
2490
|
-
variantVersionId?: string | null | undefined;
|
|
2491
|
-
}> | zod0.ZodSafeParseError<{
|
|
2492
|
-
environmentId: string;
|
|
2493
|
-
configId: string;
|
|
2494
|
-
configVariantId: string;
|
|
2495
|
-
weight: number;
|
|
2496
|
-
priority: number;
|
|
2497
|
-
enabled: boolean;
|
|
2498
|
-
conditions: Record<string, unknown>;
|
|
2499
|
-
id: string;
|
|
2500
|
-
createdAt: Date;
|
|
2501
|
-
updatedAt: Date;
|
|
2502
|
-
variantVersionId?: string | null | undefined;
|
|
2503
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2105
|
+
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseResult<{
|
|
2504
2106
|
setupComplete: boolean;
|
|
2505
2107
|
id: string;
|
|
2506
2108
|
createdAt: Date;
|
|
2507
2109
|
updatedAt: Date;
|
|
2508
2110
|
name?: string | null | undefined;
|
|
2509
2111
|
superAdminId?: string | null | undefined;
|
|
2510
|
-
}> | zod0.
|
|
2511
|
-
setupComplete: boolean;
|
|
2512
|
-
id: string;
|
|
2513
|
-
createdAt: Date;
|
|
2514
|
-
updatedAt: Date;
|
|
2515
|
-
name?: string | null | undefined;
|
|
2516
|
-
superAdminId?: string | null | undefined;
|
|
2517
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2112
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2518
2113
|
providerId: string;
|
|
2519
2114
|
config: Record<string, unknown>;
|
|
2520
2115
|
enabled: boolean;
|
|
@@ -2523,28 +2118,32 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2523
2118
|
updatedAt: Date;
|
|
2524
2119
|
slug?: string | null | undefined;
|
|
2525
2120
|
name?: string | null | undefined;
|
|
2526
|
-
}> | zod0.
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2121
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2122
|
+
name: string;
|
|
2123
|
+
columns: {
|
|
2124
|
+
id: string;
|
|
2125
|
+
name: string;
|
|
2126
|
+
position: number;
|
|
2127
|
+
providerConfigId: string | null;
|
|
2128
|
+
modelName: string;
|
|
2129
|
+
messages: {
|
|
2130
|
+
role: "system" | "user" | "assistant";
|
|
2131
|
+
content: string;
|
|
2132
|
+
}[];
|
|
2133
|
+
temperature?: number | null | undefined;
|
|
2134
|
+
maxTokens?: number | null | undefined;
|
|
2135
|
+
topP?: number | null | undefined;
|
|
2136
|
+
frequencyPenalty?: number | null | undefined;
|
|
2137
|
+
presencePenalty?: number | null | undefined;
|
|
2138
|
+
configId?: string | null | undefined;
|
|
2139
|
+
variantId?: string | null | undefined;
|
|
2140
|
+
variantVersionId?: string | null | undefined;
|
|
2141
|
+
}[] | null;
|
|
2544
2142
|
id: string;
|
|
2545
2143
|
createdAt: Date;
|
|
2546
2144
|
updatedAt: Date;
|
|
2547
|
-
|
|
2145
|
+
datasetId?: string | null | undefined;
|
|
2146
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2548
2147
|
playgroundId: string;
|
|
2549
2148
|
datasetId: string | null;
|
|
2550
2149
|
datasetVersionId: string | null;
|
|
@@ -2556,23 +2155,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2556
2155
|
id: string;
|
|
2557
2156
|
createdAt: Date;
|
|
2558
2157
|
updatedAt: Date;
|
|
2559
|
-
}> | zod0.
|
|
2560
|
-
runId: string;
|
|
2561
|
-
columnId: string;
|
|
2562
|
-
datasetRecordId: string | null;
|
|
2563
|
-
inputVariables: Record<string, unknown>;
|
|
2564
|
-
outputContent: string | null;
|
|
2565
|
-
status: "pending" | "running" | "completed" | "failed";
|
|
2566
|
-
error: string | null;
|
|
2567
|
-
latencyMs: number | null;
|
|
2568
|
-
promptTokens: number | null;
|
|
2569
|
-
completionTokens: number | null;
|
|
2570
|
-
totalTokens: number | null;
|
|
2571
|
-
cost: number | null;
|
|
2572
|
-
id: string;
|
|
2573
|
-
createdAt: Date;
|
|
2574
|
-
updatedAt: Date;
|
|
2575
|
-
}> | zod0.ZodSafeParseError<{
|
|
2158
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2576
2159
|
runId: string;
|
|
2577
2160
|
columnId: string;
|
|
2578
2161
|
datasetRecordId: string | null;
|
|
@@ -2588,17 +2171,15 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2588
2171
|
id: string;
|
|
2589
2172
|
createdAt: Date;
|
|
2590
2173
|
updatedAt: Date;
|
|
2591
|
-
}> | zod0.
|
|
2592
|
-
|
|
2593
|
-
versionNumber: number;
|
|
2174
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2175
|
+
name: string;
|
|
2594
2176
|
recordCount: number;
|
|
2595
|
-
|
|
2177
|
+
latestVersionNumber: number;
|
|
2596
2178
|
id: string;
|
|
2597
2179
|
createdAt: Date;
|
|
2598
2180
|
updatedAt: Date;
|
|
2599
|
-
name?: string | null | undefined;
|
|
2600
2181
|
description?: string | null | undefined;
|
|
2601
|
-
}> | zod0.
|
|
2182
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2602
2183
|
datasetId: string;
|
|
2603
2184
|
versionNumber: number;
|
|
2604
2185
|
recordCount: number;
|
|
@@ -2608,7 +2189,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2608
2189
|
updatedAt: Date;
|
|
2609
2190
|
name?: string | null | undefined;
|
|
2610
2191
|
description?: string | null | undefined;
|
|
2611
|
-
}> | zod0.
|
|
2192
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2612
2193
|
datasetId: string;
|
|
2613
2194
|
input: Record<string, unknown>;
|
|
2614
2195
|
metadata: Record<string, unknown>;
|
|
@@ -2616,37 +2197,26 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2616
2197
|
createdAt: Date;
|
|
2617
2198
|
updatedAt: Date;
|
|
2618
2199
|
expected?: Record<string, unknown> | null | undefined;
|
|
2619
|
-
}> | zod0.
|
|
2620
|
-
datasetId: string;
|
|
2621
|
-
input: Record<string, unknown>;
|
|
2622
|
-
metadata: Record<string, unknown>;
|
|
2623
|
-
id: string;
|
|
2624
|
-
createdAt: Date;
|
|
2625
|
-
updatedAt: Date;
|
|
2626
|
-
expected?: Record<string, unknown> | null | undefined;
|
|
2627
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2628
|
-
datasetVersionId: string;
|
|
2629
|
-
datasetRecordId: string;
|
|
2630
|
-
position: number;
|
|
2631
|
-
id: string;
|
|
2632
|
-
createdAt: Date;
|
|
2633
|
-
updatedAt: Date;
|
|
2634
|
-
}> | zod0.ZodSafeParseError<{
|
|
2200
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2635
2201
|
datasetVersionId: string;
|
|
2636
2202
|
datasetRecordId: string;
|
|
2637
2203
|
position: number;
|
|
2638
2204
|
id: string;
|
|
2639
2205
|
createdAt: Date;
|
|
2640
2206
|
updatedAt: Date;
|
|
2641
|
-
}> | zod0.
|
|
2642
|
-
|
|
2643
|
-
|
|
2207
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2208
|
+
name: string;
|
|
2209
|
+
pluginId: string;
|
|
2210
|
+
functionId: string;
|
|
2211
|
+
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2212
|
+
parameters: Record<string, unknown>;
|
|
2644
2213
|
enabled: boolean;
|
|
2214
|
+
priority: number;
|
|
2215
|
+
onFail: "block" | "log";
|
|
2645
2216
|
id: string;
|
|
2646
2217
|
createdAt: Date;
|
|
2647
2218
|
updatedAt: Date;
|
|
2648
|
-
|
|
2649
|
-
}> | zod0.ZodSafeParseError<{
|
|
2219
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2650
2220
|
providerConfigId: string;
|
|
2651
2221
|
guardrailConfigId: string;
|
|
2652
2222
|
enabled: boolean;
|
|
@@ -2654,48 +2224,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2654
2224
|
createdAt: Date;
|
|
2655
2225
|
updatedAt: Date;
|
|
2656
2226
|
parameters?: Record<string, unknown> | null | undefined;
|
|
2657
|
-
}> | zod0.
|
|
2658
|
-
requestId: string;
|
|
2659
|
-
provider: string;
|
|
2660
|
-
model: string;
|
|
2661
|
-
promptTokens: number;
|
|
2662
|
-
completionTokens: number;
|
|
2663
|
-
totalTokens: number;
|
|
2664
|
-
cachedTokens: number;
|
|
2665
|
-
cacheCreationTokens: number;
|
|
2666
|
-
cost: number;
|
|
2667
|
-
cacheSavings: number;
|
|
2668
|
-
inputCost: number;
|
|
2669
|
-
outputCost: number;
|
|
2670
|
-
endpoint: string;
|
|
2671
|
-
statusCode: number;
|
|
2672
|
-
latencyMs: number;
|
|
2673
|
-
isStreaming: boolean;
|
|
2674
|
-
tags: Record<string, string>;
|
|
2675
|
-
id: string;
|
|
2676
|
-
createdAt: Date;
|
|
2677
|
-
updatedAt: Date;
|
|
2678
|
-
configId?: string | null | undefined;
|
|
2679
|
-
variantId?: string | null | undefined;
|
|
2680
|
-
environmentId?: string | null | undefined;
|
|
2681
|
-
providerConfigId?: string | null | undefined;
|
|
2682
|
-
userId?: string | null | undefined;
|
|
2683
|
-
guardrailResults?: {
|
|
2684
|
-
results: {
|
|
2685
|
-
checkId: string;
|
|
2686
|
-
functionId: string;
|
|
2687
|
-
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
2688
|
-
verdict: boolean;
|
|
2689
|
-
latencyMs: number;
|
|
2690
|
-
}[];
|
|
2691
|
-
action: "allowed" | "blocked" | "logged";
|
|
2692
|
-
totalLatencyMs: number;
|
|
2693
|
-
} | null | undefined;
|
|
2694
|
-
traceId?: string | null | undefined;
|
|
2695
|
-
spanId?: string | null | undefined;
|
|
2696
|
-
parentSpanId?: string | null | undefined;
|
|
2697
|
-
sessionId?: string | null | undefined;
|
|
2698
|
-
}> | zod0.ZodSafeParseError<{
|
|
2227
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2699
2228
|
requestId: string;
|
|
2700
2229
|
provider: string;
|
|
2701
2230
|
model: string;
|
|
@@ -2736,7 +2265,7 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2736
2265
|
spanId?: string | null | undefined;
|
|
2737
2266
|
parentSpanId?: string | null | undefined;
|
|
2738
2267
|
sessionId?: string | null | undefined;
|
|
2739
|
-
}> | zod0.
|
|
2268
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2740
2269
|
traceId: string;
|
|
2741
2270
|
status: string;
|
|
2742
2271
|
startTime: Date;
|
|
@@ -2755,34 +2284,36 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2755
2284
|
userId?: string | null | undefined;
|
|
2756
2285
|
endTime?: Date | null | undefined;
|
|
2757
2286
|
durationMs?: number | null | undefined;
|
|
2758
|
-
}> | zod0.
|
|
2287
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2759
2288
|
traceId: string;
|
|
2760
|
-
|
|
2289
|
+
spanId: string;
|
|
2290
|
+
name: string;
|
|
2291
|
+
kind: number;
|
|
2292
|
+
status: number;
|
|
2761
2293
|
startTime: Date;
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
totalOutputTokens: number;
|
|
2294
|
+
promptTokens: number;
|
|
2295
|
+
completionTokens: number;
|
|
2765
2296
|
totalTokens: number;
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2297
|
+
cost: number;
|
|
2298
|
+
source: string;
|
|
2299
|
+
attributes: Record<string, unknown>;
|
|
2769
2300
|
id: string;
|
|
2770
2301
|
createdAt: Date;
|
|
2771
2302
|
updatedAt: Date;
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
userId?: string | null | undefined;
|
|
2303
|
+
parentSpanId?: string | null | undefined;
|
|
2304
|
+
statusMessage?: string | null | undefined;
|
|
2775
2305
|
endTime?: Date | null | undefined;
|
|
2776
2306
|
durationMs?: number | null | undefined;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2307
|
+
provider?: string | null | undefined;
|
|
2308
|
+
model?: string | null | undefined;
|
|
2309
|
+
configId?: string | null | undefined;
|
|
2310
|
+
variantId?: string | null | undefined;
|
|
2311
|
+
environmentId?: string | null | undefined;
|
|
2312
|
+
providerConfigId?: string | null | undefined;
|
|
2313
|
+
requestId?: string | null | undefined;
|
|
2314
|
+
input?: unknown;
|
|
2315
|
+
output?: unknown;
|
|
2316
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2786
2317
|
id: string;
|
|
2787
2318
|
traceId: string;
|
|
2788
2319
|
spanId: string;
|
|
@@ -2794,99 +2325,14 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
2794
2325
|
/**
|
|
2795
2326
|
* Validate partial data (for updates)
|
|
2796
2327
|
*/
|
|
2797
|
-
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.
|
|
2798
|
-
name?: string | undefined;
|
|
2799
|
-
id?: string | undefined;
|
|
2800
|
-
createdAt?: Date | undefined;
|
|
2801
|
-
updatedAt?: Date | undefined;
|
|
2802
|
-
}> | zod0.ZodSafeParseError<{
|
|
2803
|
-
name?: string | undefined;
|
|
2804
|
-
id?: string | undefined;
|
|
2805
|
-
createdAt?: Date | undefined;
|
|
2806
|
-
updatedAt?: Date | undefined;
|
|
2807
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2808
|
-
variantId?: string | undefined;
|
|
2809
|
-
version?: number | undefined;
|
|
2810
|
-
provider?: string | undefined;
|
|
2811
|
-
modelName?: string | undefined;
|
|
2812
|
-
jsonData?: Record<string, unknown> | undefined;
|
|
2813
|
-
id?: string | undefined;
|
|
2814
|
-
createdAt?: Date | undefined;
|
|
2815
|
-
updatedAt?: Date | undefined;
|
|
2816
|
-
}> | zod0.ZodSafeParseError<{
|
|
2817
|
-
variantId?: string | undefined;
|
|
2818
|
-
version?: number | undefined;
|
|
2819
|
-
provider?: string | undefined;
|
|
2820
|
-
modelName?: string | undefined;
|
|
2821
|
-
jsonData?: Record<string, unknown> | undefined;
|
|
2822
|
-
id?: string | undefined;
|
|
2823
|
-
createdAt?: Date | undefined;
|
|
2824
|
-
updatedAt?: Date | undefined;
|
|
2825
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2826
|
-
environmentId?: string | undefined;
|
|
2827
|
-
keyName?: string | undefined;
|
|
2828
|
-
keyValue?: string | undefined;
|
|
2829
|
-
id?: string | undefined;
|
|
2830
|
-
createdAt?: Date | undefined;
|
|
2831
|
-
updatedAt?: Date | undefined;
|
|
2832
|
-
}> | zod0.ZodSafeParseError<{
|
|
2833
|
-
environmentId?: string | undefined;
|
|
2834
|
-
keyName?: string | undefined;
|
|
2835
|
-
keyValue?: string | undefined;
|
|
2836
|
-
id?: string | undefined;
|
|
2837
|
-
createdAt?: Date | undefined;
|
|
2838
|
-
updatedAt?: Date | undefined;
|
|
2839
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2840
|
-
configId?: string | undefined;
|
|
2841
|
-
variantId?: string | undefined;
|
|
2842
|
-
id?: string | undefined;
|
|
2843
|
-
createdAt?: Date | undefined;
|
|
2844
|
-
updatedAt?: Date | undefined;
|
|
2845
|
-
}> | zod0.ZodSafeParseError<{
|
|
2846
|
-
configId?: string | undefined;
|
|
2847
|
-
variantId?: string | undefined;
|
|
2848
|
-
id?: string | undefined;
|
|
2849
|
-
createdAt?: Date | undefined;
|
|
2850
|
-
updatedAt?: Date | undefined;
|
|
2851
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2852
|
-
environmentId?: string | undefined;
|
|
2853
|
-
configId?: string | undefined;
|
|
2854
|
-
configVariantId?: string | undefined;
|
|
2855
|
-
variantVersionId?: string | null | undefined;
|
|
2856
|
-
weight?: number | undefined;
|
|
2857
|
-
priority?: number | undefined;
|
|
2858
|
-
enabled?: boolean | undefined;
|
|
2859
|
-
conditions?: Record<string, unknown> | undefined;
|
|
2860
|
-
id?: string | undefined;
|
|
2861
|
-
createdAt?: Date | undefined;
|
|
2862
|
-
updatedAt?: Date | undefined;
|
|
2863
|
-
}> | zod0.ZodSafeParseError<{
|
|
2864
|
-
environmentId?: string | undefined;
|
|
2865
|
-
configId?: string | undefined;
|
|
2866
|
-
configVariantId?: string | undefined;
|
|
2867
|
-
variantVersionId?: string | null | undefined;
|
|
2868
|
-
weight?: number | undefined;
|
|
2869
|
-
priority?: number | undefined;
|
|
2870
|
-
enabled?: boolean | undefined;
|
|
2871
|
-
conditions?: Record<string, unknown> | undefined;
|
|
2872
|
-
id?: string | undefined;
|
|
2873
|
-
createdAt?: Date | undefined;
|
|
2874
|
-
updatedAt?: Date | undefined;
|
|
2875
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2876
|
-
name?: string | null | undefined;
|
|
2877
|
-
setupComplete?: boolean | undefined;
|
|
2878
|
-
superAdminId?: string | null | undefined;
|
|
2879
|
-
id?: string | undefined;
|
|
2880
|
-
createdAt?: Date | undefined;
|
|
2881
|
-
updatedAt?: Date | undefined;
|
|
2882
|
-
}> | zod0.ZodSafeParseError<{
|
|
2328
|
+
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod0.ZodSafeParseResult<{
|
|
2883
2329
|
name?: string | null | undefined;
|
|
2884
2330
|
setupComplete?: boolean | undefined;
|
|
2885
2331
|
superAdminId?: string | null | undefined;
|
|
2886
2332
|
id?: string | undefined;
|
|
2887
2333
|
createdAt?: Date | undefined;
|
|
2888
2334
|
updatedAt?: Date | undefined;
|
|
2889
|
-
}> | zod0.
|
|
2335
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2890
2336
|
providerId?: string | undefined;
|
|
2891
2337
|
slug?: string | null | undefined;
|
|
2892
2338
|
name?: string | null | undefined;
|
|
@@ -2895,28 +2341,32 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2895
2341
|
id?: string | undefined;
|
|
2896
2342
|
createdAt?: Date | undefined;
|
|
2897
2343
|
updatedAt?: Date | undefined;
|
|
2898
|
-
}> | zod0.
|
|
2899
|
-
|
|
2900
|
-
slug?: string | null | undefined;
|
|
2901
|
-
name?: string | null | undefined;
|
|
2902
|
-
config?: Record<string, unknown> | undefined;
|
|
2903
|
-
enabled?: boolean | undefined;
|
|
2904
|
-
id?: string | undefined;
|
|
2905
|
-
createdAt?: Date | undefined;
|
|
2906
|
-
updatedAt?: Date | undefined;
|
|
2907
|
-
}> | zod0.ZodSafeParseSuccess<{
|
|
2908
|
-
playgroundId?: string | undefined;
|
|
2344
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2345
|
+
name?: string | undefined;
|
|
2909
2346
|
datasetId?: string | null | undefined;
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2347
|
+
columns?: {
|
|
2348
|
+
id: string;
|
|
2349
|
+
name: string;
|
|
2350
|
+
position: number;
|
|
2351
|
+
providerConfigId: string | null;
|
|
2352
|
+
modelName: string;
|
|
2353
|
+
messages: {
|
|
2354
|
+
role: "system" | "user" | "assistant";
|
|
2355
|
+
content: string;
|
|
2356
|
+
}[];
|
|
2357
|
+
temperature?: number | null | undefined;
|
|
2358
|
+
maxTokens?: number | null | undefined;
|
|
2359
|
+
topP?: number | null | undefined;
|
|
2360
|
+
frequencyPenalty?: number | null | undefined;
|
|
2361
|
+
presencePenalty?: number | null | undefined;
|
|
2362
|
+
configId?: string | null | undefined;
|
|
2363
|
+
variantId?: string | null | undefined;
|
|
2364
|
+
variantVersionId?: string | null | undefined;
|
|
2365
|
+
}[] | null | undefined;
|
|
2916
2366
|
id?: string | undefined;
|
|
2917
2367
|
createdAt?: Date | undefined;
|
|
2918
2368
|
updatedAt?: Date | undefined;
|
|
2919
|
-
}> | zod0.
|
|
2369
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2920
2370
|
playgroundId?: string | undefined;
|
|
2921
2371
|
datasetId?: string | null | undefined;
|
|
2922
2372
|
datasetVersionId?: string | null | undefined;
|
|
@@ -2928,23 +2378,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2928
2378
|
id?: string | undefined;
|
|
2929
2379
|
createdAt?: Date | undefined;
|
|
2930
2380
|
updatedAt?: Date | undefined;
|
|
2931
|
-
}> | zod0.
|
|
2932
|
-
runId?: string | undefined;
|
|
2933
|
-
columnId?: string | undefined;
|
|
2934
|
-
datasetRecordId?: string | null | undefined;
|
|
2935
|
-
inputVariables?: Record<string, unknown> | undefined;
|
|
2936
|
-
outputContent?: string | null | undefined;
|
|
2937
|
-
status?: "pending" | "running" | "completed" | "failed" | undefined;
|
|
2938
|
-
error?: string | null | undefined;
|
|
2939
|
-
latencyMs?: number | null | undefined;
|
|
2940
|
-
promptTokens?: number | null | undefined;
|
|
2941
|
-
completionTokens?: number | null | undefined;
|
|
2942
|
-
totalTokens?: number | null | undefined;
|
|
2943
|
-
cost?: number | null | undefined;
|
|
2944
|
-
id?: string | undefined;
|
|
2945
|
-
createdAt?: Date | undefined;
|
|
2946
|
-
updatedAt?: Date | undefined;
|
|
2947
|
-
}> | zod0.ZodSafeParseError<{
|
|
2381
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2948
2382
|
runId?: string | undefined;
|
|
2949
2383
|
columnId?: string | undefined;
|
|
2950
2384
|
datasetRecordId?: string | null | undefined;
|
|
@@ -2960,17 +2394,15 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2960
2394
|
id?: string | undefined;
|
|
2961
2395
|
createdAt?: Date | undefined;
|
|
2962
2396
|
updatedAt?: Date | undefined;
|
|
2963
|
-
}> | zod0.
|
|
2964
|
-
|
|
2965
|
-
versionNumber?: number | undefined;
|
|
2966
|
-
name?: string | null | undefined;
|
|
2397
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2398
|
+
name?: string | undefined;
|
|
2967
2399
|
description?: string | null | undefined;
|
|
2968
2400
|
recordCount?: number | undefined;
|
|
2969
|
-
|
|
2401
|
+
latestVersionNumber?: number | undefined;
|
|
2970
2402
|
id?: string | undefined;
|
|
2971
2403
|
createdAt?: Date | undefined;
|
|
2972
2404
|
updatedAt?: Date | undefined;
|
|
2973
|
-
}> | zod0.
|
|
2405
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2974
2406
|
datasetId?: string | undefined;
|
|
2975
2407
|
versionNumber?: number | undefined;
|
|
2976
2408
|
name?: string | null | undefined;
|
|
@@ -2980,15 +2412,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2980
2412
|
id?: string | undefined;
|
|
2981
2413
|
createdAt?: Date | undefined;
|
|
2982
2414
|
updatedAt?: Date | undefined;
|
|
2983
|
-
}> | zod0.
|
|
2984
|
-
datasetId?: string | undefined;
|
|
2985
|
-
input?: Record<string, unknown> | undefined;
|
|
2986
|
-
expected?: Record<string, unknown> | null | undefined;
|
|
2987
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2988
|
-
id?: string | undefined;
|
|
2989
|
-
createdAt?: Date | undefined;
|
|
2990
|
-
updatedAt?: Date | undefined;
|
|
2991
|
-
}> | zod0.ZodSafeParseError<{
|
|
2415
|
+
}> | zod0.ZodSafeParseResult<{
|
|
2992
2416
|
datasetId?: string | undefined;
|
|
2993
2417
|
input?: Record<string, unknown> | undefined;
|
|
2994
2418
|
expected?: Record<string, unknown> | null | undefined;
|
|
@@ -2996,29 +2420,26 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
2996
2420
|
id?: string | undefined;
|
|
2997
2421
|
createdAt?: Date | undefined;
|
|
2998
2422
|
updatedAt?: Date | undefined;
|
|
2999
|
-
}> | zod0.
|
|
3000
|
-
datasetVersionId?: string | undefined;
|
|
3001
|
-
datasetRecordId?: string | undefined;
|
|
3002
|
-
position?: number | undefined;
|
|
3003
|
-
id?: string | undefined;
|
|
3004
|
-
createdAt?: Date | undefined;
|
|
3005
|
-
updatedAt?: Date | undefined;
|
|
3006
|
-
}> | zod0.ZodSafeParseError<{
|
|
2423
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3007
2424
|
datasetVersionId?: string | undefined;
|
|
3008
2425
|
datasetRecordId?: string | undefined;
|
|
3009
2426
|
position?: number | undefined;
|
|
3010
2427
|
id?: string | undefined;
|
|
3011
2428
|
createdAt?: Date | undefined;
|
|
3012
2429
|
updatedAt?: Date | undefined;
|
|
3013
|
-
}> | zod0.
|
|
3014
|
-
|
|
3015
|
-
|
|
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;
|
|
3016
2436
|
enabled?: boolean | undefined;
|
|
3017
|
-
|
|
2437
|
+
priority?: number | undefined;
|
|
2438
|
+
onFail?: "block" | "log" | undefined;
|
|
3018
2439
|
id?: string | undefined;
|
|
3019
2440
|
createdAt?: Date | undefined;
|
|
3020
2441
|
updatedAt?: Date | undefined;
|
|
3021
|
-
}> | zod0.
|
|
2442
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3022
2443
|
providerConfigId?: string | undefined;
|
|
3023
2444
|
guardrailConfigId?: string | undefined;
|
|
3024
2445
|
enabled?: boolean | undefined;
|
|
@@ -3026,48 +2447,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
3026
2447
|
id?: string | undefined;
|
|
3027
2448
|
createdAt?: Date | undefined;
|
|
3028
2449
|
updatedAt?: Date | undefined;
|
|
3029
|
-
}> | zod0.
|
|
3030
|
-
requestId?: string | undefined;
|
|
3031
|
-
configId?: string | null | undefined;
|
|
3032
|
-
variantId?: string | null | undefined;
|
|
3033
|
-
environmentId?: string | null | undefined;
|
|
3034
|
-
providerConfigId?: string | null | undefined;
|
|
3035
|
-
provider?: string | undefined;
|
|
3036
|
-
model?: string | undefined;
|
|
3037
|
-
promptTokens?: number | undefined;
|
|
3038
|
-
completionTokens?: number | undefined;
|
|
3039
|
-
totalTokens?: number | undefined;
|
|
3040
|
-
cachedTokens?: number | undefined;
|
|
3041
|
-
cacheCreationTokens?: number | undefined;
|
|
3042
|
-
cost?: number | undefined;
|
|
3043
|
-
cacheSavings?: number | undefined;
|
|
3044
|
-
inputCost?: number | undefined;
|
|
3045
|
-
outputCost?: number | undefined;
|
|
3046
|
-
endpoint?: string | undefined;
|
|
3047
|
-
statusCode?: number | undefined;
|
|
3048
|
-
latencyMs?: number | undefined;
|
|
3049
|
-
isStreaming?: boolean | undefined;
|
|
3050
|
-
userId?: string | null | undefined;
|
|
3051
|
-
tags?: Record<string, string> | undefined;
|
|
3052
|
-
guardrailResults?: {
|
|
3053
|
-
results: {
|
|
3054
|
-
checkId: string;
|
|
3055
|
-
functionId: string;
|
|
3056
|
-
hookType: "beforeRequestHook" | "afterRequestHook";
|
|
3057
|
-
verdict: boolean;
|
|
3058
|
-
latencyMs: number;
|
|
3059
|
-
}[];
|
|
3060
|
-
action: "allowed" | "blocked" | "logged";
|
|
3061
|
-
totalLatencyMs: number;
|
|
3062
|
-
} | null | undefined;
|
|
3063
|
-
traceId?: string | null | undefined;
|
|
3064
|
-
spanId?: string | null | undefined;
|
|
3065
|
-
parentSpanId?: string | null | undefined;
|
|
3066
|
-
sessionId?: string | null | undefined;
|
|
3067
|
-
id?: string | undefined;
|
|
3068
|
-
createdAt?: Date | undefined;
|
|
3069
|
-
updatedAt?: Date | undefined;
|
|
3070
|
-
}> | zod0.ZodSafeParseError<{
|
|
2450
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3071
2451
|
requestId?: string | undefined;
|
|
3072
2452
|
configId?: string | null | undefined;
|
|
3073
2453
|
variantId?: string | null | undefined;
|
|
@@ -3108,7 +2488,7 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
3108
2488
|
id?: string | undefined;
|
|
3109
2489
|
createdAt?: Date | undefined;
|
|
3110
2490
|
updatedAt?: Date | undefined;
|
|
3111
|
-
}> | zod0.
|
|
2491
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3112
2492
|
traceId?: string | undefined;
|
|
3113
2493
|
name?: string | null | undefined;
|
|
3114
2494
|
sessionId?: string | null | undefined;
|
|
@@ -3127,34 +2507,36 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
3127
2507
|
id?: string | undefined;
|
|
3128
2508
|
createdAt?: Date | undefined;
|
|
3129
2509
|
updatedAt?: Date | undefined;
|
|
3130
|
-
}> | zod0.
|
|
2510
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3131
2511
|
traceId?: string | undefined;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
2512
|
+
spanId?: string | undefined;
|
|
2513
|
+
parentSpanId?: string | null | undefined;
|
|
2514
|
+
name?: string | undefined;
|
|
2515
|
+
kind?: number | undefined;
|
|
2516
|
+
status?: number | undefined;
|
|
2517
|
+
statusMessage?: string | null | undefined;
|
|
3136
2518
|
startTime?: Date | undefined;
|
|
3137
2519
|
endTime?: Date | null | undefined;
|
|
3138
2520
|
durationMs?: number | null | undefined;
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
2521
|
+
provider?: string | null | undefined;
|
|
2522
|
+
model?: string | null | undefined;
|
|
2523
|
+
promptTokens?: number | undefined;
|
|
2524
|
+
completionTokens?: number | undefined;
|
|
3142
2525
|
totalTokens?: number | undefined;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
2526
|
+
cost?: number | undefined;
|
|
2527
|
+
configId?: string | null | undefined;
|
|
2528
|
+
variantId?: string | null | undefined;
|
|
2529
|
+
environmentId?: string | null | undefined;
|
|
2530
|
+
providerConfigId?: string | null | undefined;
|
|
2531
|
+
requestId?: string | null | undefined;
|
|
2532
|
+
source?: string | undefined;
|
|
2533
|
+
input?: unknown;
|
|
2534
|
+
output?: unknown;
|
|
2535
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3146
2536
|
id?: string | undefined;
|
|
3147
2537
|
createdAt?: Date | undefined;
|
|
3148
2538
|
updatedAt?: Date | undefined;
|
|
3149
|
-
}> | zod0.
|
|
3150
|
-
id?: string | undefined;
|
|
3151
|
-
traceId?: string | undefined;
|
|
3152
|
-
spanId?: string | undefined;
|
|
3153
|
-
name?: string | undefined;
|
|
3154
|
-
timestamp?: Date | undefined;
|
|
3155
|
-
attributes?: Record<string, unknown> | undefined;
|
|
3156
|
-
createdAt?: Date | undefined;
|
|
3157
|
-
}> | zod0.ZodSafeParseError<{
|
|
2539
|
+
}> | zod0.ZodSafeParseResult<{
|
|
3158
2540
|
id?: string | undefined;
|
|
3159
2541
|
traceId?: string | undefined;
|
|
3160
2542
|
spanId?: string | undefined;
|
|
@@ -3167,51 +2549,6 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
3167
2549
|
* Parse and validate data, throws on error
|
|
3168
2550
|
*/
|
|
3169
2551
|
declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
3170
|
-
slug: string;
|
|
3171
|
-
id: string;
|
|
3172
|
-
createdAt: Date;
|
|
3173
|
-
updatedAt: Date;
|
|
3174
|
-
name?: string | undefined;
|
|
3175
|
-
} | {
|
|
3176
|
-
name: string;
|
|
3177
|
-
id: string;
|
|
3178
|
-
createdAt: Date;
|
|
3179
|
-
updatedAt: Date;
|
|
3180
|
-
} | {
|
|
3181
|
-
variantId: string;
|
|
3182
|
-
version: number;
|
|
3183
|
-
provider: string;
|
|
3184
|
-
modelName: string;
|
|
3185
|
-
jsonData: Record<string, unknown>;
|
|
3186
|
-
id: string;
|
|
3187
|
-
createdAt: Date;
|
|
3188
|
-
updatedAt: Date;
|
|
3189
|
-
} | {
|
|
3190
|
-
environmentId: string;
|
|
3191
|
-
keyName: string;
|
|
3192
|
-
keyValue: string;
|
|
3193
|
-
id: string;
|
|
3194
|
-
createdAt: Date;
|
|
3195
|
-
updatedAt: Date;
|
|
3196
|
-
} | {
|
|
3197
|
-
configId: string;
|
|
3198
|
-
variantId: string;
|
|
3199
|
-
id: string;
|
|
3200
|
-
createdAt: Date;
|
|
3201
|
-
updatedAt: Date;
|
|
3202
|
-
} | {
|
|
3203
|
-
environmentId: string;
|
|
3204
|
-
configId: string;
|
|
3205
|
-
configVariantId: string;
|
|
3206
|
-
weight: number;
|
|
3207
|
-
priority: number;
|
|
3208
|
-
enabled: boolean;
|
|
3209
|
-
conditions: Record<string, unknown>;
|
|
3210
|
-
id: string;
|
|
3211
|
-
createdAt: Date;
|
|
3212
|
-
updatedAt: Date;
|
|
3213
|
-
variantVersionId?: string | null | undefined;
|
|
3214
|
-
} | {
|
|
3215
2552
|
setupComplete: boolean;
|
|
3216
2553
|
id: string;
|
|
3217
2554
|
createdAt: Date;
|
|
@@ -3227,6 +2564,31 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
3227
2564
|
updatedAt: Date;
|
|
3228
2565
|
slug?: string | null | undefined;
|
|
3229
2566
|
name?: string | null | undefined;
|
|
2567
|
+
} | {
|
|
2568
|
+
name: string;
|
|
2569
|
+
columns: {
|
|
2570
|
+
id: string;
|
|
2571
|
+
name: string;
|
|
2572
|
+
position: number;
|
|
2573
|
+
providerConfigId: string | null;
|
|
2574
|
+
modelName: string;
|
|
2575
|
+
messages: {
|
|
2576
|
+
role: "system" | "user" | "assistant";
|
|
2577
|
+
content: string;
|
|
2578
|
+
}[];
|
|
2579
|
+
temperature?: number | null | undefined;
|
|
2580
|
+
maxTokens?: number | null | undefined;
|
|
2581
|
+
topP?: number | null | undefined;
|
|
2582
|
+
frequencyPenalty?: number | null | undefined;
|
|
2583
|
+
presencePenalty?: number | null | undefined;
|
|
2584
|
+
configId?: string | null | undefined;
|
|
2585
|
+
variantId?: string | null | undefined;
|
|
2586
|
+
variantVersionId?: string | null | undefined;
|
|
2587
|
+
}[] | null;
|
|
2588
|
+
id: string;
|
|
2589
|
+
createdAt: Date;
|
|
2590
|
+
updatedAt: Date;
|
|
2591
|
+
datasetId?: string | null | undefined;
|
|
3230
2592
|
} | {
|
|
3231
2593
|
playgroundId: string;
|
|
3232
2594
|
datasetId: string | null;
|
|
@@ -3255,6 +2617,14 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
3255
2617
|
id: string;
|
|
3256
2618
|
createdAt: Date;
|
|
3257
2619
|
updatedAt: Date;
|
|
2620
|
+
} | {
|
|
2621
|
+
name: string;
|
|
2622
|
+
recordCount: number;
|
|
2623
|
+
latestVersionNumber: number;
|
|
2624
|
+
id: string;
|
|
2625
|
+
createdAt: Date;
|
|
2626
|
+
updatedAt: Date;
|
|
2627
|
+
description?: string | null | undefined;
|
|
3258
2628
|
} | {
|
|
3259
2629
|
datasetId: string;
|
|
3260
2630
|
versionNumber: number;
|
|
@@ -3280,6 +2650,18 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
3280
2650
|
id: string;
|
|
3281
2651
|
createdAt: Date;
|
|
3282
2652
|
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;
|
|
3283
2665
|
} | {
|
|
3284
2666
|
providerConfigId: string;
|
|
3285
2667
|
guardrailConfigId: string;
|
|
@@ -3348,6 +2730,35 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
3348
2730
|
userId?: string | null | undefined;
|
|
3349
2731
|
endTime?: Date | null | undefined;
|
|
3350
2732
|
durationMs?: number | null | undefined;
|
|
2733
|
+
} | {
|
|
2734
|
+
traceId: string;
|
|
2735
|
+
spanId: string;
|
|
2736
|
+
name: string;
|
|
2737
|
+
kind: number;
|
|
2738
|
+
status: number;
|
|
2739
|
+
startTime: Date;
|
|
2740
|
+
promptTokens: number;
|
|
2741
|
+
completionTokens: number;
|
|
2742
|
+
totalTokens: number;
|
|
2743
|
+
cost: number;
|
|
2744
|
+
source: string;
|
|
2745
|
+
attributes: Record<string, unknown>;
|
|
2746
|
+
id: string;
|
|
2747
|
+
createdAt: Date;
|
|
2748
|
+
updatedAt: Date;
|
|
2749
|
+
parentSpanId?: string | null | undefined;
|
|
2750
|
+
statusMessage?: string | null | undefined;
|
|
2751
|
+
endTime?: Date | null | undefined;
|
|
2752
|
+
durationMs?: number | null | undefined;
|
|
2753
|
+
provider?: string | null | undefined;
|
|
2754
|
+
model?: string | null | undefined;
|
|
2755
|
+
configId?: string | null | undefined;
|
|
2756
|
+
variantId?: string | null | undefined;
|
|
2757
|
+
environmentId?: string | null | undefined;
|
|
2758
|
+
providerConfigId?: string | null | undefined;
|
|
2759
|
+
requestId?: string | null | undefined;
|
|
2760
|
+
input?: unknown;
|
|
2761
|
+
output?: unknown;
|
|
3351
2762
|
} | {
|
|
3352
2763
|
id: string;
|
|
3353
2764
|
traceId: string;
|
|
@@ -3361,45 +2772,6 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
3361
2772
|
* Parse partial data, throws on error
|
|
3362
2773
|
*/
|
|
3363
2774
|
declare function parsePartialTableData<T extends TableName>(table: T, data: unknown): {
|
|
3364
|
-
name?: string | undefined;
|
|
3365
|
-
id?: string | undefined;
|
|
3366
|
-
createdAt?: Date | undefined;
|
|
3367
|
-
updatedAt?: Date | undefined;
|
|
3368
|
-
} | {
|
|
3369
|
-
variantId?: string | undefined;
|
|
3370
|
-
version?: number | undefined;
|
|
3371
|
-
provider?: string | undefined;
|
|
3372
|
-
modelName?: string | undefined;
|
|
3373
|
-
jsonData?: Record<string, unknown> | undefined;
|
|
3374
|
-
id?: string | undefined;
|
|
3375
|
-
createdAt?: Date | undefined;
|
|
3376
|
-
updatedAt?: Date | undefined;
|
|
3377
|
-
} | {
|
|
3378
|
-
environmentId?: string | undefined;
|
|
3379
|
-
keyName?: string | undefined;
|
|
3380
|
-
keyValue?: string | undefined;
|
|
3381
|
-
id?: string | undefined;
|
|
3382
|
-
createdAt?: Date | undefined;
|
|
3383
|
-
updatedAt?: Date | undefined;
|
|
3384
|
-
} | {
|
|
3385
|
-
configId?: string | undefined;
|
|
3386
|
-
variantId?: string | undefined;
|
|
3387
|
-
id?: string | undefined;
|
|
3388
|
-
createdAt?: Date | undefined;
|
|
3389
|
-
updatedAt?: Date | undefined;
|
|
3390
|
-
} | {
|
|
3391
|
-
environmentId?: string | undefined;
|
|
3392
|
-
configId?: string | undefined;
|
|
3393
|
-
configVariantId?: string | undefined;
|
|
3394
|
-
variantVersionId?: string | null | undefined;
|
|
3395
|
-
weight?: number | undefined;
|
|
3396
|
-
priority?: number | undefined;
|
|
3397
|
-
enabled?: boolean | undefined;
|
|
3398
|
-
conditions?: Record<string, unknown> | undefined;
|
|
3399
|
-
id?: string | undefined;
|
|
3400
|
-
createdAt?: Date | undefined;
|
|
3401
|
-
updatedAt?: Date | undefined;
|
|
3402
|
-
} | {
|
|
3403
2775
|
name?: string | null | undefined;
|
|
3404
2776
|
setupComplete?: boolean | undefined;
|
|
3405
2777
|
superAdminId?: string | null | undefined;
|
|
@@ -3415,6 +2787,31 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
3415
2787
|
id?: string | undefined;
|
|
3416
2788
|
createdAt?: Date | undefined;
|
|
3417
2789
|
updatedAt?: Date | undefined;
|
|
2790
|
+
} | {
|
|
2791
|
+
name?: string | undefined;
|
|
2792
|
+
datasetId?: string | null | undefined;
|
|
2793
|
+
columns?: {
|
|
2794
|
+
id: string;
|
|
2795
|
+
name: string;
|
|
2796
|
+
position: number;
|
|
2797
|
+
providerConfigId: string | null;
|
|
2798
|
+
modelName: string;
|
|
2799
|
+
messages: {
|
|
2800
|
+
role: "system" | "user" | "assistant";
|
|
2801
|
+
content: string;
|
|
2802
|
+
}[];
|
|
2803
|
+
temperature?: number | null | undefined;
|
|
2804
|
+
maxTokens?: number | null | undefined;
|
|
2805
|
+
topP?: number | null | undefined;
|
|
2806
|
+
frequencyPenalty?: number | null | undefined;
|
|
2807
|
+
presencePenalty?: number | null | undefined;
|
|
2808
|
+
configId?: string | null | undefined;
|
|
2809
|
+
variantId?: string | null | undefined;
|
|
2810
|
+
variantVersionId?: string | null | undefined;
|
|
2811
|
+
}[] | null | undefined;
|
|
2812
|
+
id?: string | undefined;
|
|
2813
|
+
createdAt?: Date | undefined;
|
|
2814
|
+
updatedAt?: Date | undefined;
|
|
3418
2815
|
} | {
|
|
3419
2816
|
playgroundId?: string | undefined;
|
|
3420
2817
|
datasetId?: string | null | undefined;
|
|
@@ -3443,6 +2840,14 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
3443
2840
|
id?: string | undefined;
|
|
3444
2841
|
createdAt?: Date | undefined;
|
|
3445
2842
|
updatedAt?: Date | undefined;
|
|
2843
|
+
} | {
|
|
2844
|
+
name?: string | undefined;
|
|
2845
|
+
description?: string | null | undefined;
|
|
2846
|
+
recordCount?: number | undefined;
|
|
2847
|
+
latestVersionNumber?: number | undefined;
|
|
2848
|
+
id?: string | undefined;
|
|
2849
|
+
createdAt?: Date | undefined;
|
|
2850
|
+
updatedAt?: Date | undefined;
|
|
3446
2851
|
} | {
|
|
3447
2852
|
datasetId?: string | undefined;
|
|
3448
2853
|
versionNumber?: number | undefined;
|
|
@@ -3468,6 +2873,18 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
3468
2873
|
id?: string | undefined;
|
|
3469
2874
|
createdAt?: Date | undefined;
|
|
3470
2875
|
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;
|
|
3471
2888
|
} | {
|
|
3472
2889
|
providerConfigId?: string | undefined;
|
|
3473
2890
|
guardrailConfigId?: string | undefined;
|
|
@@ -3536,6 +2953,35 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
3536
2953
|
id?: string | undefined;
|
|
3537
2954
|
createdAt?: Date | undefined;
|
|
3538
2955
|
updatedAt?: Date | undefined;
|
|
2956
|
+
} | {
|
|
2957
|
+
traceId?: string | undefined;
|
|
2958
|
+
spanId?: string | undefined;
|
|
2959
|
+
parentSpanId?: string | null | undefined;
|
|
2960
|
+
name?: string | undefined;
|
|
2961
|
+
kind?: number | undefined;
|
|
2962
|
+
status?: number | undefined;
|
|
2963
|
+
statusMessage?: string | null | undefined;
|
|
2964
|
+
startTime?: Date | undefined;
|
|
2965
|
+
endTime?: Date | null | undefined;
|
|
2966
|
+
durationMs?: number | null | undefined;
|
|
2967
|
+
provider?: string | null | undefined;
|
|
2968
|
+
model?: string | null | undefined;
|
|
2969
|
+
promptTokens?: number | undefined;
|
|
2970
|
+
completionTokens?: number | undefined;
|
|
2971
|
+
totalTokens?: number | undefined;
|
|
2972
|
+
cost?: number | undefined;
|
|
2973
|
+
configId?: string | null | undefined;
|
|
2974
|
+
variantId?: string | null | undefined;
|
|
2975
|
+
environmentId?: string | null | undefined;
|
|
2976
|
+
providerConfigId?: string | null | undefined;
|
|
2977
|
+
requestId?: string | null | undefined;
|
|
2978
|
+
source?: string | undefined;
|
|
2979
|
+
input?: unknown;
|
|
2980
|
+
output?: unknown;
|
|
2981
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2982
|
+
id?: string | undefined;
|
|
2983
|
+
createdAt?: Date | undefined;
|
|
2984
|
+
updatedAt?: Date | undefined;
|
|
3539
2985
|
} | {
|
|
3540
2986
|
id?: string | undefined;
|
|
3541
2987
|
traceId?: string | undefined;
|