opik 0.0.2 → 0.0.4

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.
Files changed (5) hide show
  1. package/dist/index.cjs +7431 -5792
  2. package/dist/index.d.cts +1278 -316
  3. package/dist/index.d.ts +1278 -316
  4. package/dist/index.js +7421 -5785
  5. package/package.json +11 -3
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ interface OpikConfig {
4
4
  apiKey: string;
5
5
  host?: string;
6
6
  projectName: string;
7
- useBatching?: boolean;
8
7
  workspaceName: string;
9
8
  }
10
9
 
@@ -32,6 +31,47 @@ interface FindFeedbackDefinitionsRequest {
32
31
  type?: FindFeedbackDefinitionsRequestType;
33
32
  }
34
33
 
34
+ /**
35
+ * This file was auto-generated by Fern from our API Definition.
36
+ */
37
+ type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini";
38
+ declare const ProviderApiKeyWriteProvider: {
39
+ readonly Openai: "openai";
40
+ readonly Anthropic: "anthropic";
41
+ readonly Gemini: "gemini";
42
+ };
43
+
44
+ /**
45
+ * This file was auto-generated by Fern from our API Definition.
46
+ */
47
+
48
+ /**
49
+ * @example
50
+ * {
51
+ * provider: "openai",
52
+ * apiKey: "api_key"
53
+ * }
54
+ */
55
+ interface ProviderApiKeyWrite {
56
+ provider: ProviderApiKeyWriteProvider;
57
+ apiKey: string;
58
+ name?: string;
59
+ }
60
+
61
+ /**
62
+ * This file was auto-generated by Fern from our API Definition.
63
+ */
64
+ /**
65
+ * @example
66
+ * {
67
+ * apiKey: "api_key"
68
+ * }
69
+ */
70
+ interface ProviderApiKeyUpdate {
71
+ apiKey: string;
72
+ name?: string;
73
+ }
74
+
35
75
  /**
36
76
  * This file was auto-generated by Fern from our API Definition.
37
77
  */
@@ -94,6 +134,17 @@ interface ProjectUpdate {
94
134
  description?: string;
95
135
  }
96
136
 
137
+ /**
138
+ * This file was auto-generated by Fern from our API Definition.
139
+ */
140
+ /**
141
+ * @example
142
+ * {}
143
+ */
144
+ interface FindFeedbackScoreNamesByProjectIdsRequest {
145
+ projectIds?: string;
146
+ }
147
+
97
148
  /**
98
149
  * This file was auto-generated by Fern from our API Definition.
99
150
  */
@@ -109,6 +160,119 @@ interface ProjectMetricRequestPublic {
109
160
  intervalEnd?: Date;
110
161
  }
111
162
 
163
+ /**
164
+ * This file was auto-generated by Fern from our API Definition.
165
+ */
166
+ /**
167
+ * @example
168
+ * {}
169
+ */
170
+ interface GetProjectStatsRequest {
171
+ page?: number;
172
+ size?: number;
173
+ name?: string;
174
+ sorting?: string;
175
+ }
176
+
177
+ /**
178
+ * This file was auto-generated by Fern from our API Definition.
179
+ */
180
+ /**
181
+ * @example
182
+ * {
183
+ * name: "name"
184
+ * }
185
+ */
186
+ interface ProjectRetrieveDetailed {
187
+ name: string;
188
+ }
189
+
190
+ /**
191
+ * This file was auto-generated by Fern from our API Definition.
192
+ */
193
+ type PromptWriteType = "mustache" | "jinja2";
194
+ declare const PromptWriteType: {
195
+ readonly Mustache: "mustache";
196
+ readonly Jinja2: "jinja2";
197
+ };
198
+
199
+ /**
200
+ * This file was auto-generated by Fern from our API Definition.
201
+ */
202
+ /**
203
+ * @example
204
+ * {}
205
+ */
206
+ interface GetPromptsRequest {
207
+ page?: number;
208
+ size?: number;
209
+ name?: string;
210
+ }
211
+
212
+ /**
213
+ * This file was auto-generated by Fern from our API Definition.
214
+ */
215
+
216
+ /**
217
+ * @example
218
+ * {
219
+ * name: "name"
220
+ * }
221
+ */
222
+ interface PromptWrite {
223
+ id?: string;
224
+ name: string;
225
+ description?: string;
226
+ template?: string;
227
+ metadata?: JsonNodeWrite;
228
+ changeDescription?: string;
229
+ type?: PromptWriteType;
230
+ }
231
+
232
+ /**
233
+ * This file was auto-generated by Fern from our API Definition.
234
+ */
235
+
236
+ /**
237
+ * @example
238
+ * {
239
+ * name: "name",
240
+ * version: {
241
+ * template: "template"
242
+ * }
243
+ * }
244
+ */
245
+ interface CreatePromptVersionDetail {
246
+ name: string;
247
+ version: PromptVersionDetail;
248
+ }
249
+
250
+ /**
251
+ * This file was auto-generated by Fern from our API Definition.
252
+ */
253
+ /**
254
+ * @example
255
+ * {
256
+ * name: "name"
257
+ * }
258
+ */
259
+ interface PromptUpdatable {
260
+ name: string;
261
+ description?: string;
262
+ }
263
+
264
+ /**
265
+ * This file was auto-generated by Fern from our API Definition.
266
+ */
267
+ /**
268
+ * @example
269
+ * {}
270
+ */
271
+ interface GetPromptVersionsRequest {
272
+ page?: number;
273
+ size?: number;
274
+ }
275
+
112
276
  /**
113
277
  * This file was auto-generated by Fern from our API Definition.
114
278
  */
@@ -118,8 +282,9 @@ interface ProjectMetricRequestPublic {
118
282
  * name: "name"
119
283
  * }
120
284
  */
121
- interface ProjectRetrievePublic {
285
+ interface PromptVersionRetrieveDetail {
122
286
  name: string;
287
+ commit?: string;
123
288
  }
124
289
 
125
290
  /**
@@ -152,6 +317,16 @@ declare const GetSpanStatsRequestType: {
152
317
  readonly Llm: "llm";
153
318
  };
154
319
 
320
+ /**
321
+ * This file was auto-generated by Fern from our API Definition.
322
+ */
323
+ type SpanSearchStreamRequestPublicType = "general" | "tool" | "llm";
324
+ declare const SpanSearchStreamRequestPublicType: {
325
+ readonly General: "general";
326
+ readonly Tool: "tool";
327
+ readonly Llm: "llm";
328
+ };
329
+
155
330
  /**
156
331
  * This file was auto-generated by Fern from our API Definition.
157
332
  */
@@ -200,7 +375,7 @@ interface SpanBatchWrite {
200
375
  * traceId: "trace_id"
201
376
  * }
202
377
  */
203
- interface SpanUpdate {
378
+ interface SpanUpdate$1 {
204
379
  /** If null and project_id not specified, Default Project is assumed */
205
380
  projectName?: string;
206
381
  /** If null and project_name not specified, Default Project is assumed */
@@ -215,6 +390,7 @@ interface SpanUpdate {
215
390
  provider?: string;
216
391
  tags?: string[];
217
392
  usage?: Record<string, number>;
393
+ totalEstimatedCost?: number;
218
394
  errorInfo?: ErrorInfo;
219
395
  }
220
396
 
@@ -247,6 +423,81 @@ interface GetSpanStatsRequest {
247
423
  filters?: string;
248
424
  }
249
425
 
426
+ /**
427
+ * This file was auto-generated by Fern from our API Definition.
428
+ */
429
+
430
+ interface SpanSearchStreamRequestPublic {
431
+ traceId?: string;
432
+ projectName?: string;
433
+ projectId?: string;
434
+ type?: SpanSearchStreamRequestPublicType;
435
+ filters?: SpanFilterPublic[];
436
+ limit?: number;
437
+ lastRetrievedId?: string;
438
+ /** Truncate image included in either input, output or metadata */
439
+ truncate?: boolean;
440
+ }
441
+
442
+ /**
443
+ * This file was auto-generated by Fern from our API Definition.
444
+ */
445
+ /**
446
+ * @example
447
+ * {}
448
+ */
449
+ interface FindEvaluatorsRequest {
450
+ name?: string;
451
+ page?: number;
452
+ size?: number;
453
+ }
454
+
455
+ /**
456
+ * This file was auto-generated by Fern from our API Definition.
457
+ */
458
+
459
+ /**
460
+ * @example
461
+ * {
462
+ * name: "name",
463
+ * code: {
464
+ * model: {
465
+ * name: "name",
466
+ * temperature: 1.1
467
+ * },
468
+ * messages: [{
469
+ * role: "SYSTEM",
470
+ * content: "content"
471
+ * }],
472
+ * variables: {
473
+ * "key": "value"
474
+ * },
475
+ * schema: [{
476
+ * name: "name",
477
+ * type: "BOOLEAN",
478
+ * description: "description"
479
+ * }]
480
+ * },
481
+ * samplingRate: 1.1
482
+ * }
483
+ */
484
+ interface AutomationRuleEvaluatorUpdate {
485
+ name: string;
486
+ code: LlmAsJudgeCode;
487
+ samplingRate: number;
488
+ }
489
+
490
+ /**
491
+ * This file was auto-generated by Fern from our API Definition.
492
+ */
493
+ /**
494
+ * @example
495
+ * {}
496
+ */
497
+ interface GetEvaluatorLogsByIdRequest {
498
+ size?: number;
499
+ }
500
+
250
501
  /**
251
502
  * This file was auto-generated by Fern from our API Definition.
252
503
  */
@@ -318,7 +569,10 @@ interface DatasetWrite {
318
569
  * @example
319
570
  * {
320
571
  * items: [{
321
- * source: "manual"
572
+ * source: "manual",
573
+ * data: {
574
+ * "key": "value"
575
+ * }
322
576
  * }]
323
577
  * }
324
578
  */
@@ -465,6 +719,7 @@ interface ExperimentWrite {
465
719
  name?: string;
466
720
  metadata?: JsonNodeWrite;
467
721
  promptVersion?: PromptVersionLinkWrite;
722
+ promptVersions?: PromptVersionLinkWrite[];
468
723
  }
469
724
 
470
725
  /**
@@ -542,6 +797,8 @@ interface ExperimentItemStreamRequest {
542
797
  experimentName: string;
543
798
  limit?: number;
544
799
  lastRetrievedId?: string;
800
+ /** Truncate image included in either input, output or metadata */
801
+ truncate?: boolean;
545
802
  }
546
803
 
547
804
  /**
@@ -549,38 +806,53 @@ interface ExperimentItemStreamRequest {
549
806
  */
550
807
  /**
551
808
  * @example
552
- * {
553
- * apiKey: "api_key"
554
- * }
809
+ * {}
555
810
  */
556
- interface ProviderApiKeyWrite {
557
- apiKey: string;
811
+ interface GetTracesByProjectRequest {
812
+ page?: number;
813
+ size?: number;
814
+ projectName?: string;
815
+ projectId?: string;
816
+ filters?: string;
817
+ truncate?: boolean;
558
818
  }
559
819
 
560
820
  /**
561
821
  * This file was auto-generated by Fern from our API Definition.
562
822
  */
823
+
563
824
  /**
564
825
  * @example
565
826
  * {
566
- * apiKey: "api_key"
827
+ * traces: [{
828
+ * name: "name",
829
+ * startTime: "2024-01-15T09:30:00Z"
830
+ * }]
567
831
  * }
568
832
  */
569
- interface ProviderApiKeyUpdate {
570
- apiKey: string;
833
+ interface TraceBatchWrite {
834
+ traces: TraceWrite[];
571
835
  }
572
836
 
573
837
  /**
574
838
  * This file was auto-generated by Fern from our API Definition.
575
839
  */
840
+
576
841
  /**
577
842
  * @example
578
843
  * {}
579
844
  */
580
- interface GetPromptsRequest {
581
- page?: number;
582
- size?: number;
583
- name?: string;
845
+ interface TraceUpdate {
846
+ /** If null and project_id not specified, Default Project is assumed */
847
+ projectName?: string;
848
+ /** If null and project_name not specified, Default Project is assumed */
849
+ projectId?: string;
850
+ endTime?: Date;
851
+ input?: JsonNode;
852
+ output?: JsonNode;
853
+ metadata?: JsonNode;
854
+ tags?: string[];
855
+ errorInfo?: ErrorInfo;
584
856
  }
585
857
 
586
858
  /**
@@ -588,190 +860,368 @@ interface GetPromptsRequest {
588
860
  */
589
861
  /**
590
862
  * @example
591
- * {
592
- * name: "name"
593
- * }
863
+ * {}
594
864
  */
595
- interface PromptWrite {
596
- id?: string;
597
- name: string;
598
- description?: string;
599
- template?: string;
865
+ interface FindFeedbackScoreNames2Request {
866
+ projectId?: string;
600
867
  }
601
868
 
602
869
  /**
603
870
  * This file was auto-generated by Fern from our API Definition.
604
871
  */
605
-
606
872
  /**
607
873
  * @example
608
- * {
609
- * name: "name",
610
- * version: {
611
- * template: "template"
612
- * }
613
- * }
874
+ * {}
614
875
  */
615
- interface CreatePromptVersionDetail {
876
+ interface GetTraceStatsRequest {
877
+ projectId?: string;
878
+ projectName?: string;
879
+ filters?: string;
880
+ }
881
+
882
+ /**
883
+ * This file was auto-generated by Fern from our API Definition.
884
+ */
885
+ interface BiInformation {
886
+ workspaceId?: string;
887
+ user?: string;
888
+ count?: number;
889
+ }
890
+
891
+ /**
892
+ * This file was auto-generated by Fern from our API Definition.
893
+ */
894
+
895
+ interface BiInformationResponse {
896
+ biInformation?: BiInformation[];
897
+ }
898
+
899
+ /**
900
+ * This file was auto-generated by Fern from our API Definition.
901
+ */
902
+
903
+ interface TraceCountResponse {
904
+ workspacesTracesCount?: WorkspaceTraceCount[];
905
+ }
906
+
907
+ /**
908
+ * This file was auto-generated by Fern from our API Definition.
909
+ */
910
+ interface WorkspaceTraceCount {
911
+ workspace?: string;
912
+ traceCount?: number;
913
+ }
914
+
915
+ /**
916
+ * This file was auto-generated by Fern from our API Definition.
917
+ */
918
+ type AuthDetailsHolder = Record<string, unknown>;
919
+
920
+ /**
921
+ * This file was auto-generated by Fern from our API Definition.
922
+ */
923
+
924
+ interface LlmAsJudgeCode {
925
+ model: LlmAsJudgeModelParameters;
926
+ messages: LlmAsJudgeMessage[];
927
+ variables: Record<string, string>;
928
+ schema: LlmAsJudgeOutputSchema[];
929
+ }
930
+
931
+ /**
932
+ * This file was auto-generated by Fern from our API Definition.
933
+ */
934
+ type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
935
+ declare const LlmAsJudgeMessageRole: {
936
+ readonly System: "SYSTEM";
937
+ readonly User: "USER";
938
+ readonly Ai: "AI";
939
+ readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
940
+ };
941
+
942
+ /**
943
+ * This file was auto-generated by Fern from our API Definition.
944
+ */
945
+
946
+ interface LlmAsJudgeMessage {
947
+ role: LlmAsJudgeMessageRole;
948
+ content: string;
949
+ }
950
+
951
+ /**
952
+ * This file was auto-generated by Fern from our API Definition.
953
+ */
954
+ interface LlmAsJudgeModelParameters {
616
955
  name: string;
617
- version: PromptVersionDetail;
956
+ temperature: number;
618
957
  }
619
958
 
620
959
  /**
621
960
  * This file was auto-generated by Fern from our API Definition.
622
961
  */
962
+ type LlmAsJudgeOutputSchemaType = "BOOLEAN" | "INTEGER" | "DOUBLE";
963
+ declare const LlmAsJudgeOutputSchemaType: {
964
+ readonly Boolean: "BOOLEAN";
965
+ readonly Integer: "INTEGER";
966
+ readonly Double: "DOUBLE";
967
+ };
968
+
623
969
  /**
624
- * @example
625
- * {
626
- * name: "name"
627
- * }
970
+ * This file was auto-generated by Fern from our API Definition.
628
971
  */
629
- interface PromptUpdatable {
972
+
973
+ interface LlmAsJudgeOutputSchema {
630
974
  name: string;
631
- description?: string;
975
+ type: LlmAsJudgeOutputSchemaType;
976
+ description: string;
632
977
  }
633
978
 
634
979
  /**
635
980
  * This file was auto-generated by Fern from our API Definition.
636
981
  */
982
+
983
+ interface AutomationRuleEvaluatorLlmAsJudgeWrite {
984
+ code?: LlmAsJudgeCodeWrite;
985
+ }
986
+
637
987
  /**
638
- * @example
639
- * {}
988
+ * This file was auto-generated by Fern from our API Definition.
640
989
  */
641
- interface GetPromptVersionsRequest {
642
- page?: number;
643
- size?: number;
990
+
991
+ type AutomationRuleEvaluatorWrite = AutomationRuleEvaluatorWrite.LlmAsJudge;
992
+ declare namespace AutomationRuleEvaluatorWrite {
993
+ interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgeWrite, _Base {
994
+ type: "llm_as_judge";
995
+ }
996
+ interface _Base {
997
+ name: string;
998
+ samplingRate?: number;
999
+ action?: "evaluator";
1000
+ }
644
1001
  }
645
1002
 
646
1003
  /**
647
1004
  * This file was auto-generated by Fern from our API Definition.
648
1005
  */
1006
+
1007
+ interface LlmAsJudgeCodeWrite {
1008
+ model: LlmAsJudgeModelParametersWrite;
1009
+ messages: LlmAsJudgeMessageWrite[];
1010
+ variables: Record<string, string>;
1011
+ schema: LlmAsJudgeOutputSchemaWrite[];
1012
+ }
1013
+
649
1014
  /**
650
- * @example
651
- * {
652
- * name: "name"
653
- * }
1015
+ * This file was auto-generated by Fern from our API Definition.
654
1016
  */
655
- interface PromptVersionRetrieveDetail {
1017
+ type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
1018
+ declare const LlmAsJudgeMessageWriteRole: {
1019
+ readonly System: "SYSTEM";
1020
+ readonly User: "USER";
1021
+ readonly Ai: "AI";
1022
+ readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
1023
+ };
1024
+
1025
+ /**
1026
+ * This file was auto-generated by Fern from our API Definition.
1027
+ */
1028
+
1029
+ interface LlmAsJudgeMessageWrite {
1030
+ role: LlmAsJudgeMessageWriteRole;
1031
+ content: string;
1032
+ }
1033
+
1034
+ /**
1035
+ * This file was auto-generated by Fern from our API Definition.
1036
+ */
1037
+ interface LlmAsJudgeModelParametersWrite {
656
1038
  name: string;
657
- commit?: string;
1039
+ temperature: number;
1040
+ }
1041
+
1042
+ /**
1043
+ * This file was auto-generated by Fern from our API Definition.
1044
+ */
1045
+ type LlmAsJudgeOutputSchemaWriteType = "BOOLEAN" | "INTEGER" | "DOUBLE";
1046
+ declare const LlmAsJudgeOutputSchemaWriteType: {
1047
+ readonly Boolean: "BOOLEAN";
1048
+ readonly Integer: "INTEGER";
1049
+ readonly Double: "DOUBLE";
1050
+ };
1051
+
1052
+ /**
1053
+ * This file was auto-generated by Fern from our API Definition.
1054
+ */
1055
+
1056
+ interface LlmAsJudgeOutputSchemaWrite {
1057
+ name: string;
1058
+ type: LlmAsJudgeOutputSchemaWriteType;
1059
+ description: string;
1060
+ }
1061
+
1062
+ /**
1063
+ * This file was auto-generated by Fern from our API Definition.
1064
+ */
1065
+ interface BatchDelete {
1066
+ ids: string[];
1067
+ }
1068
+
1069
+ /**
1070
+ * This file was auto-generated by Fern from our API Definition.
1071
+ */
1072
+
1073
+ interface AutomationRuleEvaluatorLlmAsJudgePublic {
1074
+ code?: LlmAsJudgeCodePublic;
1075
+ }
1076
+
1077
+ /**
1078
+ * This file was auto-generated by Fern from our API Definition.
1079
+ */
1080
+
1081
+ type AutomationRuleEvaluatorObjectPublic = AutomationRuleEvaluatorObjectPublic.LlmAsJudge;
1082
+ declare namespace AutomationRuleEvaluatorObjectPublic {
1083
+ interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
1084
+ type: "llm_as_judge";
1085
+ }
1086
+ interface _Base {
1087
+ id?: string;
1088
+ projectId?: string;
1089
+ name: string;
1090
+ samplingRate?: number;
1091
+ createdAt?: Date;
1092
+ createdBy?: string;
1093
+ lastUpdatedAt?: Date;
1094
+ lastUpdatedBy?: string;
1095
+ action?: "evaluator";
1096
+ }
658
1097
  }
659
1098
 
660
1099
  /**
661
1100
  * This file was auto-generated by Fern from our API Definition.
662
1101
  */
663
- /**
664
- * @example
665
- * {}
666
- */
667
- interface GetTracesByProjectRequest {
1102
+
1103
+ interface AutomationRuleEvaluatorPagePublic {
668
1104
  page?: number;
669
1105
  size?: number;
670
- projectName?: string;
671
- projectId?: string;
672
- filters?: string;
673
- truncate?: boolean;
1106
+ total?: number;
1107
+ content?: AutomationRuleEvaluatorObjectPublic[];
674
1108
  }
675
1109
 
676
1110
  /**
677
1111
  * This file was auto-generated by Fern from our API Definition.
678
1112
  */
679
1113
 
680
- /**
681
- * @example
682
- * {
683
- * traces: [{
684
- * name: "name",
685
- * startTime: "2024-01-15T09:30:00Z"
686
- * }]
687
- * }
688
- */
689
- interface TraceBatchWrite {
690
- traces: TraceWrite[];
1114
+ interface LlmAsJudgeCodePublic {
1115
+ model: LlmAsJudgeModelParametersPublic;
1116
+ messages: LlmAsJudgeMessagePublic[];
1117
+ variables: Record<string, string>;
1118
+ schema: LlmAsJudgeOutputSchemaPublic[];
691
1119
  }
692
1120
 
693
1121
  /**
694
1122
  * This file was auto-generated by Fern from our API Definition.
695
1123
  */
1124
+ type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
1125
+ declare const LlmAsJudgeMessagePublicRole: {
1126
+ readonly System: "SYSTEM";
1127
+ readonly User: "USER";
1128
+ readonly Ai: "AI";
1129
+ readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
1130
+ };
696
1131
 
697
1132
  /**
698
- * @example
699
- * {}
1133
+ * This file was auto-generated by Fern from our API Definition.
700
1134
  */
701
- interface TraceUpdate {
702
- /** If null and project_id not specified, Default Project is assumed */
703
- projectName?: string;
704
- /** If null and project_name not specified, Default Project is assumed */
705
- projectId?: string;
706
- endTime?: Date;
707
- input?: JsonNode;
708
- output?: JsonNode;
709
- metadata?: JsonNode;
710
- tags?: string[];
711
- errorInfo?: ErrorInfo;
1135
+
1136
+ interface LlmAsJudgeMessagePublic {
1137
+ role: LlmAsJudgeMessagePublicRole;
1138
+ content: string;
712
1139
  }
713
1140
 
714
1141
  /**
715
1142
  * This file was auto-generated by Fern from our API Definition.
716
1143
  */
717
- /**
718
- * @example
719
- * {}
720
- */
721
- interface FindFeedbackScoreNames2Request {
722
- projectId?: string;
1144
+ interface LlmAsJudgeModelParametersPublic {
1145
+ name: string;
1146
+ temperature: number;
723
1147
  }
724
1148
 
725
1149
  /**
726
1150
  * This file was auto-generated by Fern from our API Definition.
727
1151
  */
728
- /**
729
- * @example
730
- * {}
731
- */
732
- interface GetTraceStatsRequest {
733
- projectId?: string;
734
- projectName?: string;
735
- filters?: string;
736
- }
1152
+ type LlmAsJudgeOutputSchemaPublicType = "BOOLEAN" | "INTEGER" | "DOUBLE";
1153
+ declare const LlmAsJudgeOutputSchemaPublicType: {
1154
+ readonly Boolean: "BOOLEAN";
1155
+ readonly Integer: "INTEGER";
1156
+ readonly Double: "DOUBLE";
1157
+ };
737
1158
 
738
1159
  /**
739
1160
  * This file was auto-generated by Fern from our API Definition.
740
1161
  */
741
- interface BiInformation {
742
- workspaceId?: string;
743
- user?: string;
744
- count?: number;
1162
+
1163
+ interface LlmAsJudgeOutputSchemaPublic {
1164
+ name: string;
1165
+ type: LlmAsJudgeOutputSchemaPublicType;
1166
+ description: string;
745
1167
  }
746
1168
 
747
1169
  /**
748
1170
  * This file was auto-generated by Fern from our API Definition.
749
1171
  */
750
1172
 
751
- interface BiInformationResponse {
752
- biInformation?: BiInformation[];
1173
+ type AutomationRuleEvaluatorPublic = AutomationRuleEvaluatorPublic.LlmAsJudge;
1174
+ declare namespace AutomationRuleEvaluatorPublic {
1175
+ interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
1176
+ type: "llm_as_judge";
1177
+ }
1178
+ interface _Base {
1179
+ id?: string;
1180
+ projectId?: string;
1181
+ name: string;
1182
+ samplingRate?: number;
1183
+ createdAt?: Date;
1184
+ createdBy?: string;
1185
+ lastUpdatedAt?: Date;
1186
+ lastUpdatedBy?: string;
1187
+ action?: "evaluator";
1188
+ }
753
1189
  }
754
1190
 
755
1191
  /**
756
1192
  * This file was auto-generated by Fern from our API Definition.
757
1193
  */
758
-
759
- interface TraceCountResponse {
760
- workspacesTracesCount?: WorkspaceTraceCount[];
761
- }
1194
+ type LogItemLevel = "INFO" | "WARN" | "ERROR" | "DEBUG" | "TRACE";
1195
+ declare const LogItemLevel: {
1196
+ readonly Info: "INFO";
1197
+ readonly Warn: "WARN";
1198
+ readonly Error: "ERROR";
1199
+ readonly Debug: "DEBUG";
1200
+ readonly Trace: "TRACE";
1201
+ };
762
1202
 
763
1203
  /**
764
1204
  * This file was auto-generated by Fern from our API Definition.
765
1205
  */
766
- interface WorkspaceTraceCount {
767
- workspace?: string;
768
- traceCount?: number;
1206
+
1207
+ interface LogItem {
1208
+ timestamp?: Date;
1209
+ ruleId?: string;
1210
+ level?: LogItemLevel;
1211
+ message?: string;
1212
+ markers?: Record<string, string>;
769
1213
  }
770
1214
 
771
1215
  /**
772
1216
  * This file was auto-generated by Fern from our API Definition.
773
1217
  */
774
- type AuthDetailsHolder = Record<string, unknown>;
1218
+
1219
+ interface LogPage {
1220
+ content?: LogItem[];
1221
+ page?: number;
1222
+ size?: number;
1223
+ total?: number;
1224
+ }
775
1225
 
776
1226
  /**
777
1227
  * This file was auto-generated by Fern from our API Definition.
@@ -963,6 +1413,18 @@ interface Tool {
963
1413
  function?: Function;
964
1414
  }
965
1415
 
1416
+ /**
1417
+ * This file was auto-generated by Fern from our API Definition.
1418
+ */
1419
+ interface Comment {
1420
+ id?: string;
1421
+ text: string;
1422
+ createdAt?: Date;
1423
+ lastUpdatedAt?: Date;
1424
+ createdBy?: string;
1425
+ lastUpdatedBy?: string;
1426
+ }
1427
+
966
1428
  /**
967
1429
  * This file was auto-generated by Fern from our API Definition.
968
1430
  */
@@ -975,6 +1437,7 @@ interface ExperimentItem {
975
1437
  input?: JsonNode;
976
1438
  output?: JsonNode;
977
1439
  feedbackScores?: FeedbackScore[];
1440
+ comments?: Comment[];
978
1441
  createdAt?: Date;
979
1442
  lastUpdatedAt?: Date;
980
1443
  createdBy?: string;
@@ -984,10 +1447,11 @@ interface ExperimentItem {
984
1447
  /**
985
1448
  * This file was auto-generated by Fern from our API Definition.
986
1449
  */
987
- type FeedbackScoreSource = "ui" | "sdk";
1450
+ type FeedbackScoreSource = "ui" | "sdk" | "online_scoring";
988
1451
  declare const FeedbackScoreSource: {
989
1452
  readonly Ui: "ui";
990
1453
  readonly Sdk: "sdk";
1454
+ readonly OnlineScoring: "online_scoring";
991
1455
  };
992
1456
 
993
1457
  /**
@@ -1028,25 +1492,10 @@ declare const DatasetItemWriteSource: {
1028
1492
 
1029
1493
  interface DatasetItemWrite {
1030
1494
  id?: string;
1031
- input?: JsonNodeWrite;
1032
- expectedOutput?: JsonNodeWrite;
1033
- metadata?: JsonNodeWrite;
1034
1495
  traceId?: string;
1035
1496
  spanId?: string;
1036
1497
  source: DatasetItemWriteSource;
1037
- data?: JsonNode;
1038
- }
1039
-
1040
- /**
1041
- * This file was auto-generated by Fern from our API Definition.
1042
- */
1043
- type JsonNodeWrite = Record<string, unknown>;
1044
-
1045
- /**
1046
- * This file was auto-generated by Fern from our API Definition.
1047
- */
1048
- interface BatchDelete {
1049
- ids: string[];
1498
+ data: JsonNode;
1050
1499
  }
1051
1500
 
1052
1501
  /**
@@ -1074,6 +1523,18 @@ interface ColumnCompare {
1074
1523
  filterField?: string;
1075
1524
  }
1076
1525
 
1526
+ /**
1527
+ * This file was auto-generated by Fern from our API Definition.
1528
+ */
1529
+ interface CommentCompare {
1530
+ id?: string;
1531
+ text: string;
1532
+ createdAt?: Date;
1533
+ lastUpdatedAt?: Date;
1534
+ createdBy?: string;
1535
+ lastUpdatedBy?: string;
1536
+ }
1537
+
1077
1538
  /**
1078
1539
  * This file was auto-generated by Fern from our API Definition.
1079
1540
  */
@@ -1103,13 +1564,10 @@ declare const DatasetItemCompareSource: {
1103
1564
 
1104
1565
  interface DatasetItemCompare {
1105
1566
  id?: string;
1106
- input?: JsonNodeCompare;
1107
- expectedOutput?: JsonNodeCompare;
1108
- metadata?: JsonNodeCompare;
1109
1567
  traceId?: string;
1110
1568
  spanId?: string;
1111
1569
  source: DatasetItemCompareSource;
1112
- data?: JsonNode;
1570
+ data: JsonNode;
1113
1571
  experimentItems?: ExperimentItemCompare[];
1114
1572
  createdAt?: Date;
1115
1573
  lastUpdatedAt?: Date;
@@ -1129,6 +1587,7 @@ interface ExperimentItemCompare {
1129
1587
  input?: JsonNodeCompare;
1130
1588
  output?: JsonNodeCompare;
1131
1589
  feedbackScores?: FeedbackScoreCompare[];
1590
+ comments?: CommentCompare[];
1132
1591
  createdAt?: Date;
1133
1592
  lastUpdatedAt?: Date;
1134
1593
  createdBy?: string;
@@ -1138,10 +1597,11 @@ interface ExperimentItemCompare {
1138
1597
  /**
1139
1598
  * This file was auto-generated by Fern from our API Definition.
1140
1599
  */
1141
- type FeedbackScoreCompareSource = "ui" | "sdk";
1600
+ type FeedbackScoreCompareSource = "ui" | "sdk" | "online_scoring";
1142
1601
  declare const FeedbackScoreCompareSource: {
1143
1602
  readonly Ui: "ui";
1144
1603
  readonly Sdk: "sdk";
1604
+ readonly OnlineScoring: "online_scoring";
1145
1605
  };
1146
1606
 
1147
1607
  /**
@@ -1210,13 +1670,10 @@ declare const DatasetItemPublicSource: {
1210
1670
 
1211
1671
  interface DatasetItemPublic {
1212
1672
  id?: string;
1213
- input?: JsonNodePublic;
1214
- expectedOutput?: JsonNodePublic;
1215
- metadata?: JsonNodePublic;
1216
1673
  traceId?: string;
1217
1674
  spanId?: string;
1218
1675
  source: DatasetItemPublicSource;
1219
- data?: JsonNode;
1676
+ data: JsonNode;
1220
1677
  experimentItems?: ExperimentItemPublic[];
1221
1678
  createdAt?: Date;
1222
1679
  lastUpdatedAt?: Date;
@@ -1238,11 +1695,6 @@ interface ExperimentItemPublic {
1238
1695
  lastUpdatedBy?: string;
1239
1696
  }
1240
1697
 
1241
- /**
1242
- * This file was auto-generated by Fern from our API Definition.
1243
- */
1244
- type JsonNodePublic = Record<string, unknown>;
1245
-
1246
1698
  /**
1247
1699
  * This file was auto-generated by Fern from our API Definition.
1248
1700
  */
@@ -1313,6 +1765,19 @@ interface PageColumns {
1313
1765
  columns?: Column[];
1314
1766
  }
1315
1767
 
1768
+ /**
1769
+ * This file was auto-generated by Fern from our API Definition.
1770
+ */
1771
+ interface FeedbackScoreAverage {
1772
+ name: string;
1773
+ value: number;
1774
+ }
1775
+
1776
+ /**
1777
+ * This file was auto-generated by Fern from our API Definition.
1778
+ */
1779
+ type JsonNodeWrite = Record<string, unknown>;
1780
+
1316
1781
  /**
1317
1782
  * This file was auto-generated by Fern from our API Definition.
1318
1783
  */
@@ -1320,6 +1785,18 @@ interface PromptVersionLinkWrite {
1320
1785
  id: string;
1321
1786
  }
1322
1787
 
1788
+ /**
1789
+ * This file was auto-generated by Fern from our API Definition.
1790
+ */
1791
+ interface CommentPublic {
1792
+ id?: string;
1793
+ text: string;
1794
+ createdAt?: Date;
1795
+ lastUpdatedAt?: Date;
1796
+ createdBy?: string;
1797
+ lastUpdatedBy?: string;
1798
+ }
1799
+
1323
1800
  /**
1324
1801
  * This file was auto-generated by Fern from our API Definition.
1325
1802
  */
@@ -1342,12 +1819,14 @@ interface ExperimentPublic {
1342
1819
  name?: string;
1343
1820
  metadata?: JsonNodePublic;
1344
1821
  feedbackScores?: FeedbackScoreAveragePublic[];
1822
+ comments?: CommentPublic[];
1345
1823
  traceCount?: number;
1346
1824
  createdAt?: Date;
1347
1825
  lastUpdatedAt?: Date;
1348
1826
  createdBy?: string;
1349
1827
  lastUpdatedBy?: string;
1350
1828
  promptVersion?: PromptVersionLinkPublic;
1829
+ promptVersions?: PromptVersionLinkPublic[];
1351
1830
  }
1352
1831
 
1353
1832
  /**
@@ -1358,6 +1837,11 @@ interface FeedbackScoreAveragePublic {
1358
1837
  value: number;
1359
1838
  }
1360
1839
 
1840
+ /**
1841
+ * This file was auto-generated by Fern from our API Definition.
1842
+ */
1843
+ type JsonNodePublic = Record<string, unknown>;
1844
+
1361
1845
  /**
1362
1846
  * This file was auto-generated by Fern from our API Definition.
1363
1847
  */
@@ -1574,15 +2058,37 @@ interface ProjectPagePublic {
1574
2058
  /**
1575
2059
  * This file was auto-generated by Fern from our API Definition.
1576
2060
  */
2061
+ type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini";
2062
+ declare const ProviderApiKeyPublicProvider: {
2063
+ readonly Openai: "openai";
2064
+ readonly Anthropic: "anthropic";
2065
+ readonly Gemini: "gemini";
2066
+ };
2067
+
2068
+ /**
2069
+ * This file was auto-generated by Fern from our API Definition.
2070
+ */
2071
+
1577
2072
  interface ProviderApiKeyPublic {
1578
2073
  id?: string;
1579
- provider: "openai";
2074
+ provider: ProviderApiKeyPublicProvider;
2075
+ apiKey: string;
2076
+ name?: string;
1580
2077
  createdAt?: Date;
1581
2078
  createdBy?: string;
1582
2079
  lastUpdatedAt?: Date;
1583
2080
  lastUpdatedBy?: string;
1584
2081
  }
1585
2082
 
2083
+ /**
2084
+ * This file was auto-generated by Fern from our API Definition.
2085
+ */
2086
+ interface PercentageValues {
2087
+ p50?: number;
2088
+ p90?: number;
2089
+ p99?: number;
2090
+ }
2091
+
1586
2092
  /**
1587
2093
  * This file was auto-generated by Fern from our API Definition.
1588
2094
  */
@@ -1597,6 +2103,21 @@ interface ProjectPublic {
1597
2103
  lastUpdatedTraceAt?: Date;
1598
2104
  }
1599
2105
 
2106
+ /**
2107
+ * This file was auto-generated by Fern from our API Definition.
2108
+ */
2109
+
2110
+ interface FeedbackScoreNames {
2111
+ scores?: ScoreName[];
2112
+ }
2113
+
2114
+ /**
2115
+ * This file was auto-generated by Fern from our API Definition.
2116
+ */
2117
+ interface ScoreName {
2118
+ name?: string;
2119
+ }
2120
+
1600
2121
  /**
1601
2122
  * This file was auto-generated by Fern from our API Definition.
1602
2123
  */
@@ -1630,26 +2151,97 @@ declare const ProjectMetricResponsePublicInterval: {
1630
2151
  /**
1631
2152
  * This file was auto-generated by Fern from our API Definition.
1632
2153
  */
1633
-
1634
- interface ProjectMetricResponsePublic {
1635
- projectId?: string;
1636
- metricType?: ProjectMetricResponsePublicMetricType;
1637
- interval?: ProjectMetricResponsePublicInterval;
1638
- results?: ResultsNumberPublic[];
1639
- }
2154
+
2155
+ interface ProjectMetricResponsePublic {
2156
+ projectId?: string;
2157
+ metricType?: ProjectMetricResponsePublicMetricType;
2158
+ interval?: ProjectMetricResponsePublicInterval;
2159
+ results?: ResultsNumberPublic[];
2160
+ }
2161
+
2162
+ /**
2163
+ * This file was auto-generated by Fern from our API Definition.
2164
+ */
2165
+
2166
+ interface ResultsNumberPublic {
2167
+ name?: string;
2168
+ data?: DataPointNumberPublic[];
2169
+ }
2170
+
2171
+ /**
2172
+ * This file was auto-generated by Fern from our API Definition.
2173
+ */
2174
+
2175
+ interface ProjectStatsSummary {
2176
+ content?: ProjectStatsSummaryItem[];
2177
+ }
2178
+
2179
+ /**
2180
+ * This file was auto-generated by Fern from our API Definition.
2181
+ */
2182
+
2183
+ interface ProjectStatsSummaryItem {
2184
+ projectId?: string;
2185
+ feedbackScores?: FeedbackScoreAverage[];
2186
+ duration?: PercentageValues;
2187
+ totalEstimatedCost?: number;
2188
+ usage?: Record<string, number>;
2189
+ }
2190
+
2191
+ /**
2192
+ * This file was auto-generated by Fern from our API Definition.
2193
+ */
2194
+ interface FeedbackScoreAverageDetailed {
2195
+ name: string;
2196
+ value: number;
2197
+ }
2198
+
2199
+ /**
2200
+ * This file was auto-generated by Fern from our API Definition.
2201
+ */
2202
+ interface PercentageValuesDetailed {
2203
+ p50?: number;
2204
+ p90?: number;
2205
+ p99?: number;
2206
+ }
2207
+
2208
+ /**
2209
+ * This file was auto-generated by Fern from our API Definition.
2210
+ */
2211
+
2212
+ interface ProjectDetailed {
2213
+ id?: string;
2214
+ name: string;
2215
+ description?: string;
2216
+ createdAt?: Date;
2217
+ createdBy?: string;
2218
+ lastUpdatedAt?: Date;
2219
+ lastUpdatedBy?: string;
2220
+ lastUpdatedTraceAt?: Date;
2221
+ feedbackScores?: FeedbackScoreAverageDetailed[];
2222
+ duration?: PercentageValuesDetailed;
2223
+ totalEstimatedCost?: number;
2224
+ usage?: Record<string, number>;
2225
+ }
2226
+
2227
+ /**
2228
+ * This file was auto-generated by Fern from our API Definition.
2229
+ */
2230
+ type JsonNodeDetail = Record<string, unknown>;
1640
2231
 
1641
2232
  /**
1642
2233
  * This file was auto-generated by Fern from our API Definition.
1643
2234
  */
1644
-
1645
- interface ResultsNumberPublic {
1646
- name?: string;
1647
- data?: DataPointNumberPublic[];
1648
- }
2235
+ type PromptVersionDetailType = "mustache" | "jinja2";
2236
+ declare const PromptVersionDetailType: {
2237
+ readonly Mustache: "mustache";
2238
+ readonly Jinja2: "jinja2";
2239
+ };
1649
2240
 
1650
2241
  /**
1651
2242
  * This file was auto-generated by Fern from our API Definition.
1652
2243
  */
2244
+
1653
2245
  interface PromptVersionDetail {
1654
2246
  /** version unique identifier, generated if absent */
1655
2247
  id?: string;
@@ -1657,6 +2249,9 @@ interface PromptVersionDetail {
1657
2249
  /** version short unique identifier, generated if absent. it must be 8 characters long */
1658
2250
  commit?: string;
1659
2251
  template: string;
2252
+ metadata?: JsonNodeDetail;
2253
+ type?: PromptVersionDetailType;
2254
+ changeDescription?: string;
1660
2255
  variables?: string[];
1661
2256
  createdAt?: Date;
1662
2257
  createdBy?: string;
@@ -1692,6 +2287,16 @@ interface PromptVersionPagePublic {
1692
2287
  /**
1693
2288
  * This file was auto-generated by Fern from our API Definition.
1694
2289
  */
2290
+ type PromptVersionPublicType = "mustache" | "jinja2";
2291
+ declare const PromptVersionPublicType: {
2292
+ readonly Mustache: "mustache";
2293
+ readonly Jinja2: "jinja2";
2294
+ };
2295
+
2296
+ /**
2297
+ * This file was auto-generated by Fern from our API Definition.
2298
+ */
2299
+
1695
2300
  interface PromptVersionPublic {
1696
2301
  /** version unique identifier, generated if absent */
1697
2302
  id?: string;
@@ -1699,6 +2304,9 @@ interface PromptVersionPublic {
1699
2304
  /** version short unique identifier, generated if absent. it must be 8 characters long */
1700
2305
  commit?: string;
1701
2306
  template: string;
2307
+ metadata?: JsonNodePublic;
2308
+ type?: PromptVersionPublicType;
2309
+ changeDescription?: string;
1702
2310
  createdAt?: Date;
1703
2311
  createdBy?: string;
1704
2312
  }
@@ -1775,7 +2383,9 @@ interface Span$1 {
1775
2383
  createdBy?: string;
1776
2384
  lastUpdatedBy?: string;
1777
2385
  feedbackScores?: FeedbackScore[];
2386
+ comments?: Comment[];
1778
2387
  totalEstimatedCost?: number;
2388
+ totalEstimatedCostVersion?: string;
1779
2389
  /** Duration in milliseconds as a decimal number to support sub-millisecond precision */
1780
2390
  duration?: number;
1781
2391
  }
@@ -1821,6 +2431,8 @@ interface SpanWrite {
1821
2431
  tags?: string[];
1822
2432
  usage?: Record<string, number>;
1823
2433
  errorInfo?: ErrorInfoWrite;
2434
+ totalEstimatedCost?: number;
2435
+ totalEstimatedCostVersion?: string;
1824
2436
  }
1825
2437
 
1826
2438
  /**
@@ -1842,10 +2454,11 @@ interface ErrorInfoPublic {
1842
2454
  /**
1843
2455
  * This file was auto-generated by Fern from our API Definition.
1844
2456
  */
1845
- type FeedbackScorePublicSource = "ui" | "sdk";
2457
+ type FeedbackScorePublicSource = "ui" | "sdk" | "online_scoring";
1846
2458
  declare const FeedbackScorePublicSource: {
1847
2459
  readonly Ui: "ui";
1848
2460
  readonly Sdk: "sdk";
2461
+ readonly OnlineScoring: "online_scoring";
1849
2462
  };
1850
2463
 
1851
2464
  /**
@@ -1900,7 +2513,9 @@ interface SpanPublic {
1900
2513
  createdBy?: string;
1901
2514
  lastUpdatedBy?: string;
1902
2515
  feedbackScores?: FeedbackScorePublic[];
2516
+ comments?: CommentPublic[];
1903
2517
  totalEstimatedCost?: number;
2518
+ totalEstimatedCostVersion?: string;
1904
2519
  /** Duration in milliseconds as a decimal number to support sub-millisecond precision */
1905
2520
  duration?: number;
1906
2521
  }
@@ -1986,10 +2601,11 @@ interface FeedbackScoreBatch {
1986
2601
  /**
1987
2602
  * This file was auto-generated by Fern from our API Definition.
1988
2603
  */
1989
- type FeedbackScoreBatchItemSource = "ui" | "sdk";
2604
+ type FeedbackScoreBatchItemSource = "ui" | "sdk" | "online_scoring";
1990
2605
  declare const FeedbackScoreBatchItemSource: {
1991
2606
  readonly Ui: "ui";
1992
2607
  readonly Sdk: "sdk";
2608
+ readonly OnlineScoring: "online_scoring";
1993
2609
  };
1994
2610
 
1995
2611
  /**
@@ -2007,6 +2623,34 @@ interface FeedbackScoreBatchItem {
2007
2623
  source: FeedbackScoreBatchItemSource;
2008
2624
  }
2009
2625
 
2626
+ /**
2627
+ * This file was auto-generated by Fern from our API Definition.
2628
+ */
2629
+ type SpanFilterPublicOperator = "contains" | "not_contains" | "starts_with" | "ends_with" | "=" | "!=" | ">" | ">=" | "<" | "<=";
2630
+ declare const SpanFilterPublicOperator: {
2631
+ readonly Contains: "contains";
2632
+ readonly NotContains: "not_contains";
2633
+ readonly StartsWith: "starts_with";
2634
+ readonly EndsWith: "ends_with";
2635
+ readonly EqualTo: "=";
2636
+ readonly NotEquals: "!=";
2637
+ readonly GreaterThan: ">";
2638
+ readonly GreaterThanOrEqualTo: ">=";
2639
+ readonly LessThan: "<";
2640
+ readonly LessThanOrEqualTo: "<=";
2641
+ };
2642
+
2643
+ /**
2644
+ * This file was auto-generated by Fern from our API Definition.
2645
+ */
2646
+
2647
+ interface SpanFilterPublic {
2648
+ field?: string;
2649
+ operator?: SpanFilterPublicOperator;
2650
+ key?: string;
2651
+ value?: string;
2652
+ }
2653
+
2010
2654
  /**
2011
2655
  * This file was auto-generated by Fern from our API Definition.
2012
2656
  */
@@ -2030,6 +2674,7 @@ interface Trace$1 {
2030
2674
  createdBy?: string;
2031
2675
  lastUpdatedBy?: string;
2032
2676
  feedbackScores?: FeedbackScore[];
2677
+ comments?: Comment[];
2033
2678
  totalEstimatedCost?: number;
2034
2679
  /** Duration in milliseconds as a decimal number to support sub-millisecond precision */
2035
2680
  duration?: number;
@@ -2074,6 +2719,7 @@ interface TracePublic {
2074
2719
  createdBy?: string;
2075
2720
  lastUpdatedBy?: string;
2076
2721
  feedbackScores?: FeedbackScorePublic[];
2722
+ comments?: CommentPublic[];
2077
2723
  totalEstimatedCost?: number;
2078
2724
  /** Duration in milliseconds as a decimal number to support sub-millisecond precision */
2079
2725
  duration?: number;
@@ -2098,48 +2744,11 @@ declare const OpikApiEnvironment: {
2098
2744
  };
2099
2745
  type OpikApiEnvironment = typeof OpikApiEnvironment.Default;
2100
2746
 
2101
- type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;
2102
- interface SuccessfulResponse<T> {
2103
- ok: true;
2104
- body: T;
2105
- headers?: Record<string, any>;
2106
- }
2107
- interface FailedResponse<T> {
2108
- ok: false;
2109
- error: T;
2110
- }
2111
-
2112
2747
  type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);
2113
2748
  declare const Supplier: {
2114
2749
  get: <T>(supplier: Supplier<T>) => Promise<T>;
2115
2750
  };
2116
2751
 
2117
- /**
2118
- * APIPromise wraps a Promise that resolves with an APIResponse.
2119
- * It provides convenient methods for handling both successful responses and errors.
2120
- *
2121
- * By default, when awaited, it will return just the response body data.
2122
- * Use the `asRaw()` method to get access to both the response data and headers.
2123
- *
2124
- * @example
2125
- * // Get just the response data
2126
- * const data = await apiPromise;
2127
- *
2128
- * // Get response with headers
2129
- * const { data, headers } = await apiPromise.asRaw();
2130
- *
2131
- * @template T The type of the successful response body
2132
- */
2133
- declare class APIPromise<T> extends Promise<T> {
2134
- private readonly responsePromise;
2135
- constructor(responsePromise: Promise<APIResponse<T, unknown>>, executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
2136
- asRaw(): Promise<{
2137
- data: T;
2138
- headers?: Record<string, any>;
2139
- }>;
2140
- static from<T>(responsePromise: Promise<APIResponse<T, unknown>>): APIPromise<T>;
2141
- }
2142
-
2143
2752
  /**
2144
2753
  * This file was auto-generated by Fern from our API Definition.
2145
2754
  */
@@ -2147,6 +2756,8 @@ declare class APIPromise<T> extends Promise<T> {
2147
2756
  declare namespace SystemUsage {
2148
2757
  interface Options {
2149
2758
  environment?: Supplier<OpikApiEnvironment | string>;
2759
+ /** Specify a custom URL to connect the client to. */
2760
+ baseUrl?: Supplier<string>;
2150
2761
  /** Override the Authorization header */
2151
2762
  apiKey?: Supplier<string | undefined>;
2152
2763
  /** Override the Comet-Workspace header */
@@ -2181,7 +2792,7 @@ declare class SystemUsage {
2181
2792
  * @example
2182
2793
  * await client.systemUsage.getDatasetBiInfo()
2183
2794
  */
2184
- getDatasetBiInfo(requestOptions?: SystemUsage.RequestOptions): APIPromise<BiInformationResponse>;
2795
+ getDatasetBiInfo(requestOptions?: SystemUsage.RequestOptions): Promise<BiInformationResponse>;
2185
2796
  /**
2186
2797
  * Get experiments information for BI events per user per workspace
2187
2798
  *
@@ -2190,7 +2801,7 @@ declare class SystemUsage {
2190
2801
  * @example
2191
2802
  * await client.systemUsage.getExperimentBiInfo()
2192
2803
  */
2193
- getExperimentBiInfo(requestOptions?: SystemUsage.RequestOptions): APIPromise<BiInformationResponse>;
2804
+ getExperimentBiInfo(requestOptions?: SystemUsage.RequestOptions): Promise<BiInformationResponse>;
2194
2805
  /**
2195
2806
  * Get traces information for BI events per user per workspace
2196
2807
  *
@@ -2199,7 +2810,7 @@ declare class SystemUsage {
2199
2810
  * @example
2200
2811
  * await client.systemUsage.getTracesBiInfo()
2201
2812
  */
2202
- getTracesBiInfo(requestOptions?: SystemUsage.RequestOptions): APIPromise<BiInformationResponse>;
2813
+ getTracesBiInfo(requestOptions?: SystemUsage.RequestOptions): Promise<BiInformationResponse>;
2203
2814
  /**
2204
2815
  * Get traces count on previous day for all available workspaces
2205
2816
  *
@@ -2208,7 +2819,7 @@ declare class SystemUsage {
2208
2819
  * @example
2209
2820
  * await client.systemUsage.getTracesCountForWorkspaces()
2210
2821
  */
2211
- getTracesCountForWorkspaces(requestOptions?: SystemUsage.RequestOptions): APIPromise<TraceCountResponse>;
2822
+ getTracesCountForWorkspaces(requestOptions?: SystemUsage.RequestOptions): Promise<TraceCountResponse>;
2212
2823
  protected _getCustomAuthorizationHeaders(): Promise<{
2213
2824
  Authorization: string | undefined;
2214
2825
  }>;
@@ -2221,6 +2832,8 @@ declare class SystemUsage {
2221
2832
  declare namespace Check {
2222
2833
  interface Options {
2223
2834
  environment?: Supplier<OpikApiEnvironment | string>;
2835
+ /** Specify a custom URL to connect the client to. */
2836
+ baseUrl?: Supplier<string>;
2224
2837
  /** Override the Authorization header */
2225
2838
  apiKey?: Supplier<string | undefined>;
2226
2839
  /** Override the Comet-Workspace header */
@@ -2261,7 +2874,140 @@ declare class Check {
2261
2874
  * "key": "value"
2262
2875
  * })
2263
2876
  */
2264
- access(request: AuthDetailsHolder, requestOptions?: Check.RequestOptions): APIPromise<void>;
2877
+ access(request: AuthDetailsHolder, requestOptions?: Check.RequestOptions): Promise<void>;
2878
+ protected _getCustomAuthorizationHeaders(): Promise<{
2879
+ Authorization: string | undefined;
2880
+ }>;
2881
+ }
2882
+
2883
+ /**
2884
+ * This file was auto-generated by Fern from our API Definition.
2885
+ */
2886
+
2887
+ declare namespace AutomationRuleEvaluators {
2888
+ interface Options {
2889
+ environment?: Supplier<OpikApiEnvironment | string>;
2890
+ /** Specify a custom URL to connect the client to. */
2891
+ baseUrl?: Supplier<string>;
2892
+ /** Override the Authorization header */
2893
+ apiKey?: Supplier<string | undefined>;
2894
+ /** Override the Comet-Workspace header */
2895
+ workspaceName?: Supplier<string | undefined>;
2896
+ }
2897
+ interface RequestOptions {
2898
+ /** The maximum time to wait for a response in seconds. */
2899
+ timeoutInSeconds?: number;
2900
+ /** The number of times to retry the request. Defaults to 2. */
2901
+ maxRetries?: number;
2902
+ /** A hook to abort the request. */
2903
+ abortSignal?: AbortSignal;
2904
+ /** Override the Authorization header */
2905
+ apiKey?: string | undefined;
2906
+ /** Override the Comet-Workspace header */
2907
+ workspaceName?: string | undefined;
2908
+ /** Additional headers to include in the request. */
2909
+ headers?: Record<string, string>;
2910
+ }
2911
+ }
2912
+ /**
2913
+ * Automation rule evaluators resource
2914
+ */
2915
+ declare class AutomationRuleEvaluators {
2916
+ protected readonly _options: AutomationRuleEvaluators.Options;
2917
+ constructor(_options?: AutomationRuleEvaluators.Options);
2918
+ /**
2919
+ * Find project Evaluators
2920
+ *
2921
+ * @param {string} projectId
2922
+ * @param {OpikApi.FindEvaluatorsRequest} request
2923
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
2924
+ *
2925
+ * @example
2926
+ * await client.automationRuleEvaluators.findEvaluators("projectId")
2927
+ */
2928
+ findEvaluators(projectId: string, request?: FindEvaluatorsRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<AutomationRuleEvaluatorPagePublic>;
2929
+ /**
2930
+ * Create automation rule evaluator
2931
+ *
2932
+ * @param {string} projectId
2933
+ * @param {OpikApi.AutomationRuleEvaluatorWrite} request
2934
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
2935
+ *
2936
+ * @example
2937
+ * await client.automationRuleEvaluators.createAutomationRuleEvaluator("projectId", {
2938
+ * type: "llm_as_judge"
2939
+ * })
2940
+ */
2941
+ createAutomationRuleEvaluator(projectId: string, request: AutomationRuleEvaluatorWrite, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
2942
+ /**
2943
+ * Delete automation rule evaluators batch
2944
+ *
2945
+ * @param {string} projectId
2946
+ * @param {OpikApi.BatchDelete} request
2947
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
2948
+ *
2949
+ * @example
2950
+ * await client.automationRuleEvaluators.deleteAutomationRuleEvaluatorBatch("projectId", {
2951
+ * ids: ["ids"]
2952
+ * })
2953
+ */
2954
+ deleteAutomationRuleEvaluatorBatch(projectId: string, request: BatchDelete, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
2955
+ /**
2956
+ * Get automation rule by id
2957
+ *
2958
+ * @param {string} projectId
2959
+ * @param {string} id
2960
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
2961
+ *
2962
+ * @example
2963
+ * await client.automationRuleEvaluators.getEvaluatorById("projectId", "id")
2964
+ */
2965
+ getEvaluatorById(projectId: string, id: string, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<AutomationRuleEvaluatorPublic>;
2966
+ /**
2967
+ * update Automation Rule Evaluator by id
2968
+ *
2969
+ * @param {string} id
2970
+ * @param {string} projectId
2971
+ * @param {OpikApi.AutomationRuleEvaluatorUpdate} request
2972
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
2973
+ *
2974
+ * @example
2975
+ * await client.automationRuleEvaluators.updateAutomationRuleEvaluator("id", "projectId", {
2976
+ * name: "name",
2977
+ * code: {
2978
+ * model: {
2979
+ * name: "name",
2980
+ * temperature: 1.1
2981
+ * },
2982
+ * messages: [{
2983
+ * role: "SYSTEM",
2984
+ * content: "content"
2985
+ * }],
2986
+ * variables: {
2987
+ * "key": "value"
2988
+ * },
2989
+ * schema: [{
2990
+ * name: "name",
2991
+ * type: "BOOLEAN",
2992
+ * description: "description"
2993
+ * }]
2994
+ * },
2995
+ * samplingRate: 1.1
2996
+ * })
2997
+ */
2998
+ updateAutomationRuleEvaluator(id: string, projectId: string, request: AutomationRuleEvaluatorUpdate, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
2999
+ /**
3000
+ * Get automation rule evaluator logs by id
3001
+ *
3002
+ * @param {string} projectId
3003
+ * @param {string} id
3004
+ * @param {OpikApi.GetEvaluatorLogsByIdRequest} request
3005
+ * @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
3006
+ *
3007
+ * @example
3008
+ * await client.automationRuleEvaluators.getEvaluatorLogsById("projectId", "id")
3009
+ */
3010
+ getEvaluatorLogsById(projectId: string, id: string, request?: GetEvaluatorLogsByIdRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<LogPage>;
2265
3011
  protected _getCustomAuthorizationHeaders(): Promise<{
2266
3012
  Authorization: string | undefined;
2267
3013
  }>;
@@ -2274,6 +3020,8 @@ declare class Check {
2274
3020
  declare namespace ChatCompletions {
2275
3021
  interface Options {
2276
3022
  environment?: Supplier<OpikApiEnvironment | string>;
3023
+ /** Specify a custom URL to connect the client to. */
3024
+ baseUrl?: Supplier<string>;
2277
3025
  /** Override the Authorization header */
2278
3026
  apiKey?: Supplier<string | undefined>;
2279
3027
  /** Override the Comet-Workspace header */
@@ -2309,7 +3057,7 @@ declare class ChatCompletions {
2309
3057
  * @example
2310
3058
  * await client.chatCompletions.createChatCompletions()
2311
3059
  */
2312
- createChatCompletions(request?: ChatCompletionRequest, requestOptions?: ChatCompletions.RequestOptions): APIPromise<ChatCompletionResponse>;
3060
+ createChatCompletions(request?: ChatCompletionRequest, requestOptions?: ChatCompletions.RequestOptions): Promise<ChatCompletionResponse>;
2313
3061
  protected _getCustomAuthorizationHeaders(): Promise<{
2314
3062
  Authorization: string | undefined;
2315
3063
  }>;
@@ -2322,6 +3070,8 @@ declare class ChatCompletions {
2322
3070
  declare namespace Datasets {
2323
3071
  interface Options {
2324
3072
  environment?: Supplier<OpikApiEnvironment | string>;
3073
+ /** Specify a custom URL to connect the client to. */
3074
+ baseUrl?: Supplier<string>;
2325
3075
  /** Override the Authorization header */
2326
3076
  apiKey?: Supplier<string | undefined>;
2327
3077
  /** Override the Comet-Workspace header */
@@ -2357,7 +3107,7 @@ declare class Datasets {
2357
3107
  * @example
2358
3108
  * await client.datasets.findDatasets()
2359
3109
  */
2360
- findDatasets(request?: FindDatasetsRequest, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetPagePublic>;
3110
+ findDatasets(request?: FindDatasetsRequest, requestOptions?: Datasets.RequestOptions): Promise<DatasetPagePublic>;
2361
3111
  /**
2362
3112
  * Create dataset
2363
3113
  *
@@ -2369,7 +3119,7 @@ declare class Datasets {
2369
3119
  * name: "name"
2370
3120
  * })
2371
3121
  */
2372
- createDataset(request: DatasetWrite, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3122
+ createDataset(request: DatasetWrite, requestOptions?: Datasets.RequestOptions): Promise<void>;
2373
3123
  /**
2374
3124
  * Create/update dataset items based on dataset item id
2375
3125
  *
@@ -2379,11 +3129,14 @@ declare class Datasets {
2379
3129
  * @example
2380
3130
  * await client.datasets.createOrUpdateDatasetItems({
2381
3131
  * items: [{
2382
- * source: "manual"
3132
+ * source: "manual",
3133
+ * data: {
3134
+ * "key": "value"
3135
+ * }
2383
3136
  * }]
2384
3137
  * })
2385
3138
  */
2386
- createOrUpdateDatasetItems(request: DatasetItemBatchWrite, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3139
+ createOrUpdateDatasetItems(request: DatasetItemBatchWrite, requestOptions?: Datasets.RequestOptions): Promise<void>;
2387
3140
  /**
2388
3141
  * Get dataset by id
2389
3142
  *
@@ -2393,7 +3146,7 @@ declare class Datasets {
2393
3146
  * @example
2394
3147
  * await client.datasets.getDatasetById("id")
2395
3148
  */
2396
- getDatasetById(id: string, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetPublic>;
3149
+ getDatasetById(id: string, requestOptions?: Datasets.RequestOptions): Promise<DatasetPublic>;
2397
3150
  /**
2398
3151
  * Update dataset by id
2399
3152
  *
@@ -2406,7 +3159,7 @@ declare class Datasets {
2406
3159
  * name: "name"
2407
3160
  * })
2408
3161
  */
2409
- updateDataset(id: string, request: DatasetUpdate, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3162
+ updateDataset(id: string, request: DatasetUpdate, requestOptions?: Datasets.RequestOptions): Promise<void>;
2410
3163
  /**
2411
3164
  * Delete dataset by id
2412
3165
  *
@@ -2416,7 +3169,7 @@ declare class Datasets {
2416
3169
  * @example
2417
3170
  * await client.datasets.deleteDataset("id")
2418
3171
  */
2419
- deleteDataset(id: string, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3172
+ deleteDataset(id: string, requestOptions?: Datasets.RequestOptions): Promise<void>;
2420
3173
  /**
2421
3174
  * Delete dataset by name
2422
3175
  *
@@ -2428,7 +3181,7 @@ declare class Datasets {
2428
3181
  * datasetName: "dataset_name"
2429
3182
  * })
2430
3183
  */
2431
- deleteDatasetByName(request: DatasetIdentifier, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3184
+ deleteDatasetByName(request: DatasetIdentifier, requestOptions?: Datasets.RequestOptions): Promise<void>;
2432
3185
  /**
2433
3186
  * Delete dataset items
2434
3187
  *
@@ -2440,7 +3193,7 @@ declare class Datasets {
2440
3193
  * itemIds: ["item_ids"]
2441
3194
  * })
2442
3195
  */
2443
- deleteDatasetItems(request: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3196
+ deleteDatasetItems(request: DatasetItemsDelete, requestOptions?: Datasets.RequestOptions): Promise<void>;
2444
3197
  /**
2445
3198
  * Delete datasets batch
2446
3199
  *
@@ -2452,7 +3205,7 @@ declare class Datasets {
2452
3205
  * ids: ["ids"]
2453
3206
  * })
2454
3207
  */
2455
- deleteDatasetsBatch(request: BatchDelete, requestOptions?: Datasets.RequestOptions): APIPromise<void>;
3208
+ deleteDatasetsBatch(request: BatchDelete, requestOptions?: Datasets.RequestOptions): Promise<void>;
2456
3209
  /**
2457
3210
  * Find dataset items with experiment items
2458
3211
  *
@@ -2465,7 +3218,7 @@ declare class Datasets {
2465
3218
  * experimentIds: "experiment_ids"
2466
3219
  * })
2467
3220
  */
2468
- findDatasetItemsWithExperimentItems(id: string, request: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetItemPageCompare>;
3221
+ findDatasetItemsWithExperimentItems(id: string, request: FindDatasetItemsWithExperimentItemsRequest, requestOptions?: Datasets.RequestOptions): Promise<DatasetItemPageCompare>;
2469
3222
  /**
2470
3223
  * Get dataset by name
2471
3224
  *
@@ -2477,7 +3230,7 @@ declare class Datasets {
2477
3230
  * datasetName: "dataset_name"
2478
3231
  * })
2479
3232
  */
2480
- getDatasetByIdentifier(request: DatasetIdentifierPublic, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetPublic>;
3233
+ getDatasetByIdentifier(request: DatasetIdentifierPublic, requestOptions?: Datasets.RequestOptions): Promise<DatasetPublic>;
2481
3234
  /**
2482
3235
  * Get dataset item by id
2483
3236
  *
@@ -2487,7 +3240,7 @@ declare class Datasets {
2487
3240
  * @example
2488
3241
  * await client.datasets.getDatasetItemById("itemId")
2489
3242
  */
2490
- getDatasetItemById(itemId: string, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetItemPublic>;
3243
+ getDatasetItemById(itemId: string, requestOptions?: Datasets.RequestOptions): Promise<DatasetItemPublic>;
2491
3244
  /**
2492
3245
  * Get dataset items
2493
3246
  *
@@ -2498,7 +3251,7 @@ declare class Datasets {
2498
3251
  * @example
2499
3252
  * await client.datasets.getDatasetItems("id")
2500
3253
  */
2501
- getDatasetItems(id: string, request?: GetDatasetItemsRequest, requestOptions?: Datasets.RequestOptions): APIPromise<DatasetItemPagePublic>;
3254
+ getDatasetItems(id: string, request?: GetDatasetItemsRequest, requestOptions?: Datasets.RequestOptions): Promise<DatasetItemPagePublic>;
2502
3255
  /**
2503
3256
  * Get dataset items output columns
2504
3257
  *
@@ -2509,11 +3262,11 @@ declare class Datasets {
2509
3262
  * @example
2510
3263
  * await client.datasets.getDatasetItemsOutputColumns("id")
2511
3264
  */
2512
- getDatasetItemsOutputColumns(id: string, request?: GetDatasetItemsOutputColumnsRequest, requestOptions?: Datasets.RequestOptions): APIPromise<PageColumns>;
3265
+ getDatasetItemsOutputColumns(id: string, request?: GetDatasetItemsOutputColumnsRequest, requestOptions?: Datasets.RequestOptions): Promise<PageColumns>;
2513
3266
  /**
2514
3267
  * Stream dataset items
2515
3268
  */
2516
- streamDatasetItems(request: DatasetItemStreamRequest, requestOptions?: Datasets.RequestOptions): APIPromise<stream.Readable>;
3269
+ streamDatasetItems(request: DatasetItemStreamRequest, requestOptions?: Datasets.RequestOptions): Promise<stream.Readable>;
2517
3270
  protected _getCustomAuthorizationHeaders(): Promise<{
2518
3271
  Authorization: string | undefined;
2519
3272
  }>;
@@ -2526,6 +3279,8 @@ declare class Datasets {
2526
3279
  declare namespace Experiments {
2527
3280
  interface Options {
2528
3281
  environment?: Supplier<OpikApiEnvironment | string>;
3282
+ /** Specify a custom URL to connect the client to. */
3283
+ baseUrl?: Supplier<string>;
2529
3284
  /** Override the Authorization header */
2530
3285
  apiKey?: Supplier<string | undefined>;
2531
3286
  /** Override the Comet-Workspace header */
@@ -2561,7 +3316,7 @@ declare class Experiments {
2561
3316
  * @example
2562
3317
  * await client.experiments.findExperiments()
2563
3318
  */
2564
- findExperiments(request?: FindExperimentsRequest, requestOptions?: Experiments.RequestOptions): APIPromise<ExperimentPagePublic>;
3319
+ findExperiments(request?: FindExperimentsRequest, requestOptions?: Experiments.RequestOptions): Promise<ExperimentPagePublic>;
2565
3320
  /**
2566
3321
  * Create experiment
2567
3322
  *
@@ -2573,7 +3328,7 @@ declare class Experiments {
2573
3328
  * datasetName: "dataset_name"
2574
3329
  * })
2575
3330
  */
2576
- createExperiment(request: ExperimentWrite, requestOptions?: Experiments.RequestOptions): APIPromise<void>;
3331
+ createExperiment(request: ExperimentWrite, requestOptions?: Experiments.RequestOptions): Promise<void>;
2577
3332
  /**
2578
3333
  * Create experiment items
2579
3334
  *
@@ -2589,7 +3344,7 @@ declare class Experiments {
2589
3344
  * }]
2590
3345
  * })
2591
3346
  */
2592
- createExperimentItems(request: ExperimentItemsBatch, requestOptions?: Experiments.RequestOptions): APIPromise<void>;
3347
+ createExperimentItems(request: ExperimentItemsBatch, requestOptions?: Experiments.RequestOptions): Promise<void>;
2593
3348
  /**
2594
3349
  * Delete experiment items
2595
3350
  *
@@ -2601,7 +3356,7 @@ declare class Experiments {
2601
3356
  * ids: ["ids"]
2602
3357
  * })
2603
3358
  */
2604
- deleteExperimentItems(request: ExperimentItemsDelete, requestOptions?: Experiments.RequestOptions): APIPromise<void>;
3359
+ deleteExperimentItems(request: ExperimentItemsDelete, requestOptions?: Experiments.RequestOptions): Promise<void>;
2605
3360
  /**
2606
3361
  * Delete experiments by id
2607
3362
  *
@@ -2613,7 +3368,7 @@ declare class Experiments {
2613
3368
  * ids: ["ids"]
2614
3369
  * })
2615
3370
  */
2616
- deleteExperimentsById(request: ExperimentsDelete, requestOptions?: Experiments.RequestOptions): APIPromise<void>;
3371
+ deleteExperimentsById(request: ExperimentsDelete, requestOptions?: Experiments.RequestOptions): Promise<void>;
2617
3372
  /**
2618
3373
  * Find Feedback Score names
2619
3374
  *
@@ -2623,7 +3378,7 @@ declare class Experiments {
2623
3378
  * @example
2624
3379
  * await client.experiments.findFeedbackScoreNames()
2625
3380
  */
2626
- findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: Experiments.RequestOptions): APIPromise<string[]>;
3381
+ findFeedbackScoreNames(request?: FindFeedbackScoreNamesRequest, requestOptions?: Experiments.RequestOptions): Promise<string[]>;
2627
3382
  /**
2628
3383
  * Get experiment by id
2629
3384
  *
@@ -2635,7 +3390,7 @@ declare class Experiments {
2635
3390
  * @example
2636
3391
  * await client.experiments.getExperimentById("id")
2637
3392
  */
2638
- getExperimentById(id: string, requestOptions?: Experiments.RequestOptions): APIPromise<ExperimentPublic>;
3393
+ getExperimentById(id: string, requestOptions?: Experiments.RequestOptions): Promise<ExperimentPublic>;
2639
3394
  /**
2640
3395
  * Get experiment by name
2641
3396
  *
@@ -2649,7 +3404,7 @@ declare class Experiments {
2649
3404
  * name: "name"
2650
3405
  * })
2651
3406
  */
2652
- getExperimentByName(request: IdentifierPublic, requestOptions?: Experiments.RequestOptions): APIPromise<ExperimentPublic>;
3407
+ getExperimentByName(request: IdentifierPublic, requestOptions?: Experiments.RequestOptions): Promise<ExperimentPublic>;
2653
3408
  /**
2654
3409
  * Get experiment item by id
2655
3410
  *
@@ -2661,11 +3416,11 @@ declare class Experiments {
2661
3416
  * @example
2662
3417
  * await client.experiments.getExperimentItemById("id")
2663
3418
  */
2664
- getExperimentItemById(id: string, requestOptions?: Experiments.RequestOptions): APIPromise<ExperimentItemPublic>;
3419
+ getExperimentItemById(id: string, requestOptions?: Experiments.RequestOptions): Promise<ExperimentItemPublic>;
2665
3420
  /**
2666
3421
  * Stream experiment items
2667
3422
  */
2668
- streamExperimentItems(request: ExperimentItemStreamRequest, requestOptions?: Experiments.RequestOptions): APIPromise<stream.Readable>;
3423
+ streamExperimentItems(request: ExperimentItemStreamRequest, requestOptions?: Experiments.RequestOptions): Promise<stream.Readable>;
2669
3424
  protected _getCustomAuthorizationHeaders(): Promise<{
2670
3425
  Authorization: string | undefined;
2671
3426
  }>;
@@ -2678,6 +3433,8 @@ declare class Experiments {
2678
3433
  declare namespace FeedbackDefinitions {
2679
3434
  interface Options {
2680
3435
  environment?: Supplier<OpikApiEnvironment | string>;
3436
+ /** Specify a custom URL to connect the client to. */
3437
+ baseUrl?: Supplier<string>;
2681
3438
  /** Override the Authorization header */
2682
3439
  apiKey?: Supplier<string | undefined>;
2683
3440
  /** Override the Comet-Workspace header */
@@ -2713,7 +3470,7 @@ declare class FeedbackDefinitions {
2713
3470
  * @example
2714
3471
  * await client.feedbackDefinitions.findFeedbackDefinitions()
2715
3472
  */
2716
- findFeedbackDefinitions(request?: FindFeedbackDefinitionsRequest, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<FeedbackDefinitionPagePublic>;
3473
+ findFeedbackDefinitions(request?: FindFeedbackDefinitionsRequest, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<FeedbackDefinitionPagePublic>;
2717
3474
  /**
2718
3475
  * Get feedback definition
2719
3476
  *
@@ -2725,7 +3482,7 @@ declare class FeedbackDefinitions {
2725
3482
  * type: "categorical"
2726
3483
  * })
2727
3484
  */
2728
- createFeedbackDefinition(request: FeedbackCreate, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<void>;
3485
+ createFeedbackDefinition(request: FeedbackCreate, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<void>;
2729
3486
  /**
2730
3487
  * Get feedback definition by id
2731
3488
  *
@@ -2735,7 +3492,7 @@ declare class FeedbackDefinitions {
2735
3492
  * @example
2736
3493
  * await client.feedbackDefinitions.getFeedbackDefinitionById("id")
2737
3494
  */
2738
- getFeedbackDefinitionById(id: string, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<FeedbackPublic>;
3495
+ getFeedbackDefinitionById(id: string, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<FeedbackPublic>;
2739
3496
  /**
2740
3497
  * Update feedback definition by id
2741
3498
  *
@@ -2748,7 +3505,7 @@ declare class FeedbackDefinitions {
2748
3505
  * type: "categorical"
2749
3506
  * })
2750
3507
  */
2751
- updateFeedbackDefinition(id: string, request: FeedbackUpdate, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<void>;
3508
+ updateFeedbackDefinition(id: string, request: FeedbackUpdate, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<void>;
2752
3509
  /**
2753
3510
  * Delete feedback definition by id
2754
3511
  *
@@ -2758,7 +3515,7 @@ declare class FeedbackDefinitions {
2758
3515
  * @example
2759
3516
  * await client.feedbackDefinitions.deleteFeedbackDefinitionById("id")
2760
3517
  */
2761
- deleteFeedbackDefinitionById(id: string, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<void>;
3518
+ deleteFeedbackDefinitionById(id: string, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<void>;
2762
3519
  /**
2763
3520
  * Delete feedback definitions batch
2764
3521
  *
@@ -2770,7 +3527,7 @@ declare class FeedbackDefinitions {
2770
3527
  * ids: ["ids"]
2771
3528
  * })
2772
3529
  */
2773
- deleteFeedbackDefinitionsBatch(request: BatchDelete, requestOptions?: FeedbackDefinitions.RequestOptions): APIPromise<void>;
3530
+ deleteFeedbackDefinitionsBatch(request: BatchDelete, requestOptions?: FeedbackDefinitions.RequestOptions): Promise<void>;
2774
3531
  protected _getCustomAuthorizationHeaders(): Promise<{
2775
3532
  Authorization: string | undefined;
2776
3533
  }>;
@@ -2783,6 +3540,8 @@ declare class FeedbackDefinitions {
2783
3540
  declare namespace LlmProviderKey {
2784
3541
  interface Options {
2785
3542
  environment?: Supplier<OpikApiEnvironment | string>;
3543
+ /** Specify a custom URL to connect the client to. */
3544
+ baseUrl?: Supplier<string>;
2786
3545
  /** Override the Authorization header */
2787
3546
  apiKey?: Supplier<string | undefined>;
2788
3547
  /** Override the Comet-Workspace header */
@@ -2820,7 +3579,7 @@ declare class LlmProviderKey {
2820
3579
  * ids: ["ids"]
2821
3580
  * })
2822
3581
  */
2823
- deleteLlmProviderApiKeysBatch(request: BatchDelete, requestOptions?: LlmProviderKey.RequestOptions): APIPromise<void>;
3582
+ deleteLlmProviderApiKeysBatch(request: BatchDelete, requestOptions?: LlmProviderKey.RequestOptions): Promise<void>;
2824
3583
  /**
2825
3584
  * Find LLM Provider's ApiKeys
2826
3585
  *
@@ -2829,7 +3588,7 @@ declare class LlmProviderKey {
2829
3588
  * @example
2830
3589
  * await client.llmProviderKey.findLlmProviderKeys()
2831
3590
  */
2832
- findLlmProviderKeys(requestOptions?: LlmProviderKey.RequestOptions): APIPromise<ProjectPagePublic>;
3591
+ findLlmProviderKeys(requestOptions?: LlmProviderKey.RequestOptions): Promise<ProjectPagePublic>;
2833
3592
  /**
2834
3593
  * Store LLM Provider's ApiKey
2835
3594
  *
@@ -2841,10 +3600,11 @@ declare class LlmProviderKey {
2841
3600
  *
2842
3601
  * @example
2843
3602
  * await client.llmProviderKey.storeLlmProviderApiKey({
3603
+ * provider: "openai",
2844
3604
  * apiKey: "api_key"
2845
3605
  * })
2846
3606
  */
2847
- storeLlmProviderApiKey(request: ProviderApiKeyWrite, requestOptions?: LlmProviderKey.RequestOptions): APIPromise<void>;
3607
+ storeLlmProviderApiKey(request: ProviderApiKeyWrite, requestOptions?: LlmProviderKey.RequestOptions): Promise<void>;
2848
3608
  /**
2849
3609
  * Get LLM Provider's ApiKey by id
2850
3610
  *
@@ -2856,7 +3616,7 @@ declare class LlmProviderKey {
2856
3616
  * @example
2857
3617
  * await client.llmProviderKey.getLlmProviderApiKeyById("id")
2858
3618
  */
2859
- getLlmProviderApiKeyById(id: string, requestOptions?: LlmProviderKey.RequestOptions): APIPromise<ProviderApiKeyPublic>;
3619
+ getLlmProviderApiKeyById(id: string, requestOptions?: LlmProviderKey.RequestOptions): Promise<ProviderApiKeyPublic>;
2860
3620
  /**
2861
3621
  * Update LLM Provider's ApiKey
2862
3622
  *
@@ -2873,7 +3633,7 @@ declare class LlmProviderKey {
2873
3633
  * apiKey: "api_key"
2874
3634
  * })
2875
3635
  */
2876
- updateLlmProviderApiKey(id: string, request: ProviderApiKeyUpdate, requestOptions?: LlmProviderKey.RequestOptions): APIPromise<void>;
3636
+ updateLlmProviderApiKey(id: string, request: ProviderApiKeyUpdate, requestOptions?: LlmProviderKey.RequestOptions): Promise<void>;
2877
3637
  protected _getCustomAuthorizationHeaders(): Promise<{
2878
3638
  Authorization: string | undefined;
2879
3639
  }>;
@@ -2886,6 +3646,8 @@ declare class LlmProviderKey {
2886
3646
  declare namespace Projects {
2887
3647
  interface Options {
2888
3648
  environment?: Supplier<OpikApiEnvironment | string>;
3649
+ /** Specify a custom URL to connect the client to. */
3650
+ baseUrl?: Supplier<string>;
2889
3651
  /** Override the Authorization header */
2890
3652
  apiKey?: Supplier<string | undefined>;
2891
3653
  /** Override the Comet-Workspace header */
@@ -2921,7 +3683,7 @@ declare class Projects {
2921
3683
  * @example
2922
3684
  * await client.projects.findProjects()
2923
3685
  */
2924
- findProjects(request?: FindProjectsRequest, requestOptions?: Projects.RequestOptions): APIPromise<ProjectPagePublic>;
3686
+ findProjects(request?: FindProjectsRequest, requestOptions?: Projects.RequestOptions): Promise<ProjectPagePublic>;
2925
3687
  /**
2926
3688
  * Create project
2927
3689
  *
@@ -2936,7 +3698,7 @@ declare class Projects {
2936
3698
  * name: "name"
2937
3699
  * })
2938
3700
  */
2939
- createProject(request: ProjectWrite, requestOptions?: Projects.RequestOptions): APIPromise<void>;
3701
+ createProject(request: ProjectWrite, requestOptions?: Projects.RequestOptions): Promise<void>;
2940
3702
  /**
2941
3703
  * Get project by id
2942
3704
  *
@@ -2946,7 +3708,7 @@ declare class Projects {
2946
3708
  * @example
2947
3709
  * await client.projects.getProjectById("id")
2948
3710
  */
2949
- getProjectById(id: string, requestOptions?: Projects.RequestOptions): APIPromise<ProjectPublic>;
3711
+ getProjectById(id: string, requestOptions?: Projects.RequestOptions): Promise<ProjectPublic>;
2950
3712
  /**
2951
3713
  * Delete project by id
2952
3714
  *
@@ -2958,7 +3720,7 @@ declare class Projects {
2958
3720
  * @example
2959
3721
  * await client.projects.deleteProjectById("id")
2960
3722
  */
2961
- deleteProjectById(id: string, requestOptions?: Projects.RequestOptions): APIPromise<void>;
3723
+ deleteProjectById(id: string, requestOptions?: Projects.RequestOptions): Promise<void>;
2962
3724
  /**
2963
3725
  * Update project by id
2964
3726
  *
@@ -2972,7 +3734,7 @@ declare class Projects {
2972
3734
  * @example
2973
3735
  * await client.projects.updateProject("id")
2974
3736
  */
2975
- updateProject(id: string, request?: ProjectUpdate, requestOptions?: Projects.RequestOptions): APIPromise<void>;
3737
+ updateProject(id: string, request?: ProjectUpdate, requestOptions?: Projects.RequestOptions): Promise<void>;
2976
3738
  /**
2977
3739
  * Delete projects batch
2978
3740
  *
@@ -2984,7 +3746,17 @@ declare class Projects {
2984
3746
  * ids: ["ids"]
2985
3747
  * })
2986
3748
  */
2987
- deleteProjectsBatch(request: BatchDelete, requestOptions?: Projects.RequestOptions): APIPromise<void>;
3749
+ deleteProjectsBatch(request: BatchDelete, requestOptions?: Projects.RequestOptions): Promise<void>;
3750
+ /**
3751
+ * Find Feedback Score names By Project Ids
3752
+ *
3753
+ * @param {OpikApi.FindFeedbackScoreNamesByProjectIdsRequest} request
3754
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
3755
+ *
3756
+ * @example
3757
+ * await client.projects.findFeedbackScoreNamesByProjectIds()
3758
+ */
3759
+ findFeedbackScoreNamesByProjectIds(request?: FindFeedbackScoreNamesByProjectIdsRequest, requestOptions?: Projects.RequestOptions): Promise<FeedbackScoreNames>;
2988
3760
  /**
2989
3761
  * Gets specified metrics for a project
2990
3762
  *
@@ -2998,11 +3770,21 @@ declare class Projects {
2998
3770
  * @example
2999
3771
  * await client.projects.getProjectMetrics("id")
3000
3772
  */
3001
- getProjectMetrics(id: string, request?: ProjectMetricRequestPublic, requestOptions?: Projects.RequestOptions): APIPromise<ProjectMetricResponsePublic>;
3773
+ getProjectMetrics(id: string, request?: ProjectMetricRequestPublic, requestOptions?: Projects.RequestOptions): Promise<ProjectMetricResponsePublic>;
3774
+ /**
3775
+ * Get Project Stats
3776
+ *
3777
+ * @param {OpikApi.GetProjectStatsRequest} request
3778
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
3779
+ *
3780
+ * @example
3781
+ * await client.projects.getProjectStats()
3782
+ */
3783
+ getProjectStats(request?: GetProjectStatsRequest, requestOptions?: Projects.RequestOptions): Promise<ProjectStatsSummary>;
3002
3784
  /**
3003
3785
  * Retrieve project
3004
3786
  *
3005
- * @param {OpikApi.ProjectRetrievePublic} request
3787
+ * @param {OpikApi.ProjectRetrieveDetailed} request
3006
3788
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
3007
3789
  *
3008
3790
  * @throws {@link OpikApi.BadRequestError}
@@ -3014,7 +3796,7 @@ declare class Projects {
3014
3796
  * name: "name"
3015
3797
  * })
3016
3798
  */
3017
- retrieveProject(request: ProjectRetrievePublic, requestOptions?: Projects.RequestOptions): APIPromise<ProjectPublic>;
3799
+ retrieveProject(request: ProjectRetrieveDetailed, requestOptions?: Projects.RequestOptions): Promise<ProjectDetailed>;
3018
3800
  protected _getCustomAuthorizationHeaders(): Promise<{
3019
3801
  Authorization: string | undefined;
3020
3802
  }>;
@@ -3027,6 +3809,8 @@ declare class Projects {
3027
3809
  declare namespace Prompts {
3028
3810
  interface Options {
3029
3811
  environment?: Supplier<OpikApiEnvironment | string>;
3812
+ /** Specify a custom URL to connect the client to. */
3813
+ baseUrl?: Supplier<string>;
3030
3814
  /** Override the Authorization header */
3031
3815
  apiKey?: Supplier<string | undefined>;
3032
3816
  /** Override the Comet-Workspace header */
@@ -3062,7 +3846,7 @@ declare class Prompts {
3062
3846
  * @example
3063
3847
  * await client.prompts.getPrompts()
3064
3848
  */
3065
- getPrompts(request?: GetPromptsRequest, requestOptions?: Prompts.RequestOptions): APIPromise<PromptPagePublic>;
3849
+ getPrompts(request?: GetPromptsRequest, requestOptions?: Prompts.RequestOptions): Promise<PromptPagePublic>;
3066
3850
  /**
3067
3851
  * Create prompt
3068
3852
  *
@@ -3078,7 +3862,7 @@ declare class Prompts {
3078
3862
  * name: "name"
3079
3863
  * })
3080
3864
  */
3081
- createPrompt(request: PromptWrite, requestOptions?: Prompts.RequestOptions): APIPromise<void>;
3865
+ createPrompt(request: PromptWrite, requestOptions?: Prompts.RequestOptions): Promise<void>;
3082
3866
  /**
3083
3867
  * Create prompt version
3084
3868
  *
@@ -3097,7 +3881,7 @@ declare class Prompts {
3097
3881
  * }
3098
3882
  * })
3099
3883
  */
3100
- createPromptVersion(request: CreatePromptVersionDetail, requestOptions?: Prompts.RequestOptions): APIPromise<PromptVersionDetail>;
3884
+ createPromptVersion(request: CreatePromptVersionDetail, requestOptions?: Prompts.RequestOptions): Promise<PromptVersionDetail>;
3101
3885
  /**
3102
3886
  * Get prompt by id
3103
3887
  *
@@ -3109,7 +3893,7 @@ declare class Prompts {
3109
3893
  * @example
3110
3894
  * await client.prompts.getPromptById("id")
3111
3895
  */
3112
- getPromptById(id: string, requestOptions?: Prompts.RequestOptions): APIPromise<PromptDetail>;
3896
+ getPromptById(id: string, requestOptions?: Prompts.RequestOptions): Promise<PromptDetail>;
3113
3897
  /**
3114
3898
  * Update prompt
3115
3899
  *
@@ -3127,7 +3911,7 @@ declare class Prompts {
3127
3911
  * name: "name"
3128
3912
  * })
3129
3913
  */
3130
- updatePrompt(id: string, request: PromptUpdatable, requestOptions?: Prompts.RequestOptions): APIPromise<void>;
3914
+ updatePrompt(id: string, request: PromptUpdatable, requestOptions?: Prompts.RequestOptions): Promise<void>;
3131
3915
  /**
3132
3916
  * Delete prompt
3133
3917
  *
@@ -3137,7 +3921,7 @@ declare class Prompts {
3137
3921
  * @example
3138
3922
  * await client.prompts.deletePrompt("id")
3139
3923
  */
3140
- deletePrompt(id: string, requestOptions?: Prompts.RequestOptions): APIPromise<void>;
3924
+ deletePrompt(id: string, requestOptions?: Prompts.RequestOptions): Promise<void>;
3141
3925
  /**
3142
3926
  * Delete prompts batch
3143
3927
  *
@@ -3149,7 +3933,7 @@ declare class Prompts {
3149
3933
  * ids: ["ids"]
3150
3934
  * })
3151
3935
  */
3152
- deletePromptsBatch(request: BatchDelete, requestOptions?: Prompts.RequestOptions): APIPromise<void>;
3936
+ deletePromptsBatch(request: BatchDelete, requestOptions?: Prompts.RequestOptions): Promise<void>;
3153
3937
  /**
3154
3938
  * Get prompt version by id
3155
3939
  *
@@ -3161,7 +3945,7 @@ declare class Prompts {
3161
3945
  * @example
3162
3946
  * await client.prompts.getPromptVersionById("versionId")
3163
3947
  */
3164
- getPromptVersionById(versionId: string, requestOptions?: Prompts.RequestOptions): APIPromise<PromptVersionDetail>;
3948
+ getPromptVersionById(versionId: string, requestOptions?: Prompts.RequestOptions): Promise<PromptVersionDetail>;
3165
3949
  /**
3166
3950
  * Get prompt versions
3167
3951
  *
@@ -3172,7 +3956,7 @@ declare class Prompts {
3172
3956
  * @example
3173
3957
  * await client.prompts.getPromptVersions("id")
3174
3958
  */
3175
- getPromptVersions(id: string, request?: GetPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): APIPromise<PromptVersionPagePublic>;
3959
+ getPromptVersions(id: string, request?: GetPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): Promise<PromptVersionPagePublic>;
3176
3960
  /**
3177
3961
  * Retrieve prompt version
3178
3962
  *
@@ -3188,7 +3972,7 @@ declare class Prompts {
3188
3972
  * name: "name"
3189
3973
  * })
3190
3974
  */
3191
- retrievePromptVersion(request: PromptVersionRetrieveDetail, requestOptions?: Prompts.RequestOptions): APIPromise<PromptVersionDetail>;
3975
+ retrievePromptVersion(request: PromptVersionRetrieveDetail, requestOptions?: Prompts.RequestOptions): Promise<PromptVersionDetail>;
3192
3976
  protected _getCustomAuthorizationHeaders(): Promise<{
3193
3977
  Authorization: string | undefined;
3194
3978
  }>;
@@ -3201,6 +3985,8 @@ declare class Prompts {
3201
3985
  declare namespace Spans {
3202
3986
  interface Options {
3203
3987
  environment?: Supplier<OpikApiEnvironment | string>;
3988
+ /** Specify a custom URL to connect the client to. */
3989
+ baseUrl?: Supplier<string>;
3204
3990
  /** Override the Authorization header */
3205
3991
  apiKey?: Supplier<string | undefined>;
3206
3992
  /** Override the Comet-Workspace header */
@@ -3227,6 +4013,19 @@ declare namespace Spans {
3227
4013
  declare class Spans {
3228
4014
  protected readonly _options: Spans.Options;
3229
4015
  constructor(_options?: Spans.Options);
4016
+ /**
4017
+ * Add span comment
4018
+ *
4019
+ * @param {string} id
4020
+ * @param {OpikApi.Comment} request
4021
+ * @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
4022
+ *
4023
+ * @example
4024
+ * await client.spans.addSpanComment("id", {
4025
+ * text: "text"
4026
+ * })
4027
+ */
4028
+ addSpanComment(id: string, request: Comment, requestOptions?: Spans.RequestOptions): Promise<void>;
3230
4029
  /**
3231
4030
  * Add span feedback score
3232
4031
  *
@@ -3241,7 +4040,7 @@ declare class Spans {
3241
4040
  * source: "ui"
3242
4041
  * })
3243
4042
  */
3244
- addSpanFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4043
+ addSpanFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Spans.RequestOptions): Promise<void>;
3245
4044
  /**
3246
4045
  * Get spans by project_name or project_id and optionally by trace_id and/or type
3247
4046
  *
@@ -3251,7 +4050,7 @@ declare class Spans {
3251
4050
  * @example
3252
4051
  * await client.spans.getSpansByProject()
3253
4052
  */
3254
- getSpansByProject(request?: GetSpansByProjectRequest, requestOptions?: Spans.RequestOptions): APIPromise<SpanPagePublic>;
4053
+ getSpansByProject(request?: GetSpansByProjectRequest, requestOptions?: Spans.RequestOptions): Promise<SpanPagePublic>;
3255
4054
  /**
3256
4055
  * Create span
3257
4056
  *
@@ -3266,7 +4065,7 @@ declare class Spans {
3266
4065
  * startTime: "2024-01-15T09:30:00Z"
3267
4066
  * })
3268
4067
  */
3269
- createSpan(request: SpanWrite, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4068
+ createSpan(request: SpanWrite, requestOptions?: Spans.RequestOptions): Promise<void>;
3270
4069
  /**
3271
4070
  * Create spans
3272
4071
  *
@@ -3283,7 +4082,7 @@ declare class Spans {
3283
4082
  * }]
3284
4083
  * })
3285
4084
  */
3286
- createSpans(request: SpanBatchWrite, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4085
+ createSpans(request: SpanBatchWrite, requestOptions?: Spans.RequestOptions): Promise<void>;
3287
4086
  /**
3288
4087
  * Get span by id
3289
4088
  *
@@ -3295,7 +4094,7 @@ declare class Spans {
3295
4094
  * @example
3296
4095
  * await client.spans.getSpanById("id")
3297
4096
  */
3298
- getSpanById(id: string, requestOptions?: Spans.RequestOptions): APIPromise<SpanPublic>;
4097
+ getSpanById(id: string, requestOptions?: Spans.RequestOptions): Promise<SpanPublic>;
3299
4098
  /**
3300
4099
  * Delete span by id
3301
4100
  *
@@ -3307,7 +4106,7 @@ declare class Spans {
3307
4106
  * @example
3308
4107
  * await client.spans.deleteSpanById("id")
3309
4108
  */
3310
- deleteSpanById(id: string, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4109
+ deleteSpanById(id: string, requestOptions?: Spans.RequestOptions): Promise<void>;
3311
4110
  /**
3312
4111
  * Update span by id
3313
4112
  *
@@ -3322,7 +4121,19 @@ declare class Spans {
3322
4121
  * traceId: "trace_id"
3323
4122
  * })
3324
4123
  */
3325
- updateSpan(id: string, request: SpanUpdate, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4124
+ updateSpan(id: string, request: SpanUpdate$1, requestOptions?: Spans.RequestOptions): Promise<void>;
4125
+ /**
4126
+ * Delete span comments
4127
+ *
4128
+ * @param {OpikApi.BatchDelete} request
4129
+ * @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
4130
+ *
4131
+ * @example
4132
+ * await client.spans.deleteSpanComments({
4133
+ * ids: ["ids"]
4134
+ * })
4135
+ */
4136
+ deleteSpanComments(request: BatchDelete, requestOptions?: Spans.RequestOptions): Promise<void>;
3326
4137
  /**
3327
4138
  * Delete span feedback score
3328
4139
  *
@@ -3335,7 +4146,7 @@ declare class Spans {
3335
4146
  * name: "name"
3336
4147
  * })
3337
4148
  */
3338
- deleteSpanFeedbackScore(id: string, request: DeleteFeedbackScore, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4149
+ deleteSpanFeedbackScore(id: string, request: DeleteFeedbackScore, requestOptions?: Spans.RequestOptions): Promise<void>;
3339
4150
  /**
3340
4151
  * Find Feedback Score names
3341
4152
  *
@@ -3345,7 +4156,20 @@ declare class Spans {
3345
4156
  * @example
3346
4157
  * await client.spans.findFeedbackScoreNames1()
3347
4158
  */
3348
- findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: Spans.RequestOptions): APIPromise<string[]>;
4159
+ findFeedbackScoreNames1(request?: FindFeedbackScoreNames1Request, requestOptions?: Spans.RequestOptions): Promise<string[]>;
4160
+ /**
4161
+ * Get span comment
4162
+ *
4163
+ * @param {string} commentId
4164
+ * @param {string} spanId
4165
+ * @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
4166
+ *
4167
+ * @throws {@link OpikApi.NotFoundError}
4168
+ *
4169
+ * @example
4170
+ * await client.spans.getSpanComment("commentId", "spanId")
4171
+ */
4172
+ getSpanComment(commentId: string, spanId: string, requestOptions?: Spans.RequestOptions): Promise<Comment>;
3349
4173
  /**
3350
4174
  * Get span stats
3351
4175
  *
@@ -3355,7 +4179,7 @@ declare class Spans {
3355
4179
  * @example
3356
4180
  * await client.spans.getSpanStats()
3357
4181
  */
3358
- getSpanStats(request?: GetSpanStatsRequest, requestOptions?: Spans.RequestOptions): APIPromise<ProjectStatsPublic>;
4182
+ getSpanStats(request?: GetSpanStatsRequest, requestOptions?: Spans.RequestOptions): Promise<ProjectStatsPublic>;
3359
4183
  /**
3360
4184
  * Batch feedback scoring for spans
3361
4185
  *
@@ -3372,7 +4196,27 @@ declare class Spans {
3372
4196
  * }]
3373
4197
  * })
3374
4198
  */
3375
- scoreBatchOfSpans(request: FeedbackScoreBatch, requestOptions?: Spans.RequestOptions): APIPromise<void>;
4199
+ scoreBatchOfSpans(request: FeedbackScoreBatch, requestOptions?: Spans.RequestOptions): Promise<void>;
4200
+ /**
4201
+ * Search spans
4202
+ * @throws {@link OpikApi.BadRequestError}
4203
+ */
4204
+ searchSpans(request?: SpanSearchStreamRequestPublic, requestOptions?: Spans.RequestOptions): Promise<stream.Readable>;
4205
+ /**
4206
+ * Update span comment by id
4207
+ *
4208
+ * @param {string} commentId
4209
+ * @param {OpikApi.Comment} request
4210
+ * @param {Spans.RequestOptions} requestOptions - Request-specific configuration.
4211
+ *
4212
+ * @throws {@link OpikApi.NotFoundError}
4213
+ *
4214
+ * @example
4215
+ * await client.spans.updateSpanComment("commentId", {
4216
+ * text: "text"
4217
+ * })
4218
+ */
4219
+ updateSpanComment(commentId: string, request: Comment, requestOptions?: Spans.RequestOptions): Promise<void>;
3376
4220
  protected _getCustomAuthorizationHeaders(): Promise<{
3377
4221
  Authorization: string | undefined;
3378
4222
  }>;
@@ -3385,6 +4229,8 @@ declare class Spans {
3385
4229
  declare namespace Traces {
3386
4230
  interface Options {
3387
4231
  environment?: Supplier<OpikApiEnvironment | string>;
4232
+ /** Specify a custom URL to connect the client to. */
4233
+ baseUrl?: Supplier<string>;
3388
4234
  /** Override the Authorization header */
3389
4235
  apiKey?: Supplier<string | undefined>;
3390
4236
  /** Override the Comet-Workspace header */
@@ -3411,6 +4257,19 @@ declare namespace Traces {
3411
4257
  declare class Traces {
3412
4258
  protected readonly _options: Traces.Options;
3413
4259
  constructor(_options?: Traces.Options);
4260
+ /**
4261
+ * Add trace comment
4262
+ *
4263
+ * @param {string} id
4264
+ * @param {OpikApi.Comment} request
4265
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
4266
+ *
4267
+ * @example
4268
+ * await client.traces.addTraceComment("id", {
4269
+ * text: "text"
4270
+ * })
4271
+ */
4272
+ addTraceComment(id: string, request: Comment, requestOptions?: Traces.RequestOptions): Promise<void>;
3414
4273
  /**
3415
4274
  * Add trace feedback score
3416
4275
  *
@@ -3425,7 +4284,7 @@ declare class Traces {
3425
4284
  * source: "ui"
3426
4285
  * })
3427
4286
  */
3428
- addTraceFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4287
+ addTraceFeedbackScore(id: string, request: FeedbackScore, requestOptions?: Traces.RequestOptions): Promise<void>;
3429
4288
  /**
3430
4289
  * Get traces by project_name or project_id
3431
4290
  *
@@ -3435,7 +4294,7 @@ declare class Traces {
3435
4294
  * @example
3436
4295
  * await client.traces.getTracesByProject()
3437
4296
  */
3438
- getTracesByProject(request?: GetTracesByProjectRequest, requestOptions?: Traces.RequestOptions): APIPromise<TracePagePublic>;
4297
+ getTracesByProject(request?: GetTracesByProjectRequest, requestOptions?: Traces.RequestOptions): Promise<TracePagePublic>;
3439
4298
  /**
3440
4299
  * Get trace
3441
4300
  *
@@ -3448,7 +4307,7 @@ declare class Traces {
3448
4307
  * startTime: "2024-01-15T09:30:00Z"
3449
4308
  * })
3450
4309
  */
3451
- createTrace(request: TraceWrite, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4310
+ createTrace(request: TraceWrite, requestOptions?: Traces.RequestOptions): Promise<void>;
3452
4311
  /**
3453
4312
  * Create traces
3454
4313
  *
@@ -3463,7 +4322,7 @@ declare class Traces {
3463
4322
  * }]
3464
4323
  * })
3465
4324
  */
3466
- createTraces(request: TraceBatchWrite, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4325
+ createTraces(request: TraceBatchWrite, requestOptions?: Traces.RequestOptions): Promise<void>;
3467
4326
  /**
3468
4327
  * Get trace by id
3469
4328
  *
@@ -3473,7 +4332,7 @@ declare class Traces {
3473
4332
  * @example
3474
4333
  * await client.traces.getTraceById("id")
3475
4334
  */
3476
- getTraceById(id: string, requestOptions?: Traces.RequestOptions): APIPromise<TracePublic>;
4335
+ getTraceById(id: string, requestOptions?: Traces.RequestOptions): Promise<TracePublic>;
3477
4336
  /**
3478
4337
  * Delete trace by id
3479
4338
  *
@@ -3483,7 +4342,7 @@ declare class Traces {
3483
4342
  * @example
3484
4343
  * await client.traces.deleteTraceById("id")
3485
4344
  */
3486
- deleteTraceById(id: string, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4345
+ deleteTraceById(id: string, requestOptions?: Traces.RequestOptions): Promise<void>;
3487
4346
  /**
3488
4347
  * Update trace by id
3489
4348
  *
@@ -3494,7 +4353,19 @@ declare class Traces {
3494
4353
  * @example
3495
4354
  * await client.traces.updateTrace("id")
3496
4355
  */
3497
- updateTrace(id: string, request?: TraceUpdate, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4356
+ updateTrace(id: string, request?: TraceUpdate, requestOptions?: Traces.RequestOptions): Promise<void>;
4357
+ /**
4358
+ * Delete trace comments
4359
+ *
4360
+ * @param {OpikApi.BatchDelete} request
4361
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
4362
+ *
4363
+ * @example
4364
+ * await client.traces.deleteTraceComments({
4365
+ * ids: ["ids"]
4366
+ * })
4367
+ */
4368
+ deleteTraceComments(request: BatchDelete, requestOptions?: Traces.RequestOptions): Promise<void>;
3498
4369
  /**
3499
4370
  * Delete trace feedback score
3500
4371
  *
@@ -3507,7 +4378,7 @@ declare class Traces {
3507
4378
  * name: "name"
3508
4379
  * })
3509
4380
  */
3510
- deleteTraceFeedbackScore(id: string, request: DeleteFeedbackScore, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4381
+ deleteTraceFeedbackScore(id: string, request: DeleteFeedbackScore, requestOptions?: Traces.RequestOptions): Promise<void>;
3511
4382
  /**
3512
4383
  * Delete traces
3513
4384
  *
@@ -3519,7 +4390,7 @@ declare class Traces {
3519
4390
  * ids: ["ids"]
3520
4391
  * })
3521
4392
  */
3522
- deleteTraces(request: BatchDelete, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4393
+ deleteTraces(request: BatchDelete, requestOptions?: Traces.RequestOptions): Promise<void>;
3523
4394
  /**
3524
4395
  * Find Feedback Score names
3525
4396
  *
@@ -3529,7 +4400,7 @@ declare class Traces {
3529
4400
  * @example
3530
4401
  * await client.traces.findFeedbackScoreNames2()
3531
4402
  */
3532
- findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: Traces.RequestOptions): APIPromise<string[]>;
4403
+ findFeedbackScoreNames2(request?: FindFeedbackScoreNames2Request, requestOptions?: Traces.RequestOptions): Promise<string[]>;
3533
4404
  /**
3534
4405
  * Get trace stats
3535
4406
  *
@@ -3539,7 +4410,20 @@ declare class Traces {
3539
4410
  * @example
3540
4411
  * await client.traces.getTraceStats()
3541
4412
  */
3542
- getTraceStats(request?: GetTraceStatsRequest, requestOptions?: Traces.RequestOptions): APIPromise<ProjectStatsPublic>;
4413
+ getTraceStats(request?: GetTraceStatsRequest, requestOptions?: Traces.RequestOptions): Promise<ProjectStatsPublic>;
4414
+ /**
4415
+ * Get trace comment
4416
+ *
4417
+ * @param {string} commentId
4418
+ * @param {string} traceId
4419
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
4420
+ *
4421
+ * @throws {@link OpikApi.NotFoundError}
4422
+ *
4423
+ * @example
4424
+ * await client.traces.getTraceComment("commentId", "traceId")
4425
+ */
4426
+ getTraceComment(commentId: string, traceId: string, requestOptions?: Traces.RequestOptions): Promise<Comment>;
3543
4427
  /**
3544
4428
  * Batch feedback scoring for traces
3545
4429
  *
@@ -3556,7 +4440,22 @@ declare class Traces {
3556
4440
  * }]
3557
4441
  * })
3558
4442
  */
3559
- scoreBatchOfTraces(request: FeedbackScoreBatch, requestOptions?: Traces.RequestOptions): APIPromise<void>;
4443
+ scoreBatchOfTraces(request: FeedbackScoreBatch, requestOptions?: Traces.RequestOptions): Promise<void>;
4444
+ /**
4445
+ * Update trace comment by id
4446
+ *
4447
+ * @param {string} commentId
4448
+ * @param {OpikApi.Comment} request
4449
+ * @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
4450
+ *
4451
+ * @throws {@link OpikApi.NotFoundError}
4452
+ *
4453
+ * @example
4454
+ * await client.traces.updateTraceComment("commentId", {
4455
+ * text: "text"
4456
+ * })
4457
+ */
4458
+ updateTraceComment(commentId: string, request: Comment, requestOptions?: Traces.RequestOptions): Promise<void>;
3560
4459
  protected _getCustomAuthorizationHeaders(): Promise<{
3561
4460
  Authorization: string | undefined;
3562
4461
  }>;
@@ -3569,6 +4468,8 @@ declare class Traces {
3569
4468
  declare namespace OpikApiClient {
3570
4469
  interface Options {
3571
4470
  environment?: Supplier<OpikApiEnvironment | string>;
4471
+ /** Specify a custom URL to connect the client to. */
4472
+ baseUrl?: Supplier<string>;
3572
4473
  /** Override the Authorization header */
3573
4474
  apiKey?: Supplier<string | undefined>;
3574
4475
  /** Override the Comet-Workspace header */
@@ -3591,43 +4492,45 @@ declare namespace OpikApiClient {
3591
4492
  }
3592
4493
  declare class OpikApiClient {
3593
4494
  protected readonly _options: OpikApiClient.Options;
4495
+ protected _systemUsage: SystemUsage | undefined;
4496
+ protected _check: Check | undefined;
4497
+ protected _automationRuleEvaluators: AutomationRuleEvaluators | undefined;
4498
+ protected _chatCompletions: ChatCompletions | undefined;
4499
+ protected _datasets: Datasets | undefined;
4500
+ protected _experiments: Experiments | undefined;
4501
+ protected _feedbackDefinitions: FeedbackDefinitions | undefined;
4502
+ protected _llmProviderKey: LlmProviderKey | undefined;
4503
+ protected _projects: Projects | undefined;
4504
+ protected _prompts: Prompts | undefined;
4505
+ protected _spans: Spans | undefined;
4506
+ protected _traces: Traces | undefined;
3594
4507
  constructor(_options?: OpikApiClient.Options);
4508
+ get systemUsage(): SystemUsage;
4509
+ get check(): Check;
4510
+ get automationRuleEvaluators(): AutomationRuleEvaluators;
4511
+ get chatCompletions(): ChatCompletions;
4512
+ get datasets(): Datasets;
4513
+ get experiments(): Experiments;
4514
+ get feedbackDefinitions(): FeedbackDefinitions;
4515
+ get llmProviderKey(): LlmProviderKey;
4516
+ get projects(): Projects;
4517
+ get prompts(): Prompts;
4518
+ get spans(): Spans;
4519
+ get traces(): Traces;
3595
4520
  /**
3596
4521
  * @param {OpikApiClient.RequestOptions} requestOptions - Request-specific configuration.
3597
4522
  *
3598
4523
  * @example
3599
4524
  * await client.isAlive()
3600
4525
  */
3601
- isAlive(requestOptions?: OpikApiClient.RequestOptions): APIPromise<unknown>;
4526
+ isAlive(requestOptions?: OpikApiClient.RequestOptions): Promise<unknown>;
3602
4527
  /**
3603
4528
  * @param {OpikApiClient.RequestOptions} requestOptions - Request-specific configuration.
3604
4529
  *
3605
4530
  * @example
3606
4531
  * await client.version()
3607
4532
  */
3608
- version(requestOptions?: OpikApiClient.RequestOptions): APIPromise<unknown>;
3609
- protected _systemUsage: SystemUsage | undefined;
3610
- get systemUsage(): SystemUsage;
3611
- protected _check: Check | undefined;
3612
- get check(): Check;
3613
- protected _chatCompletions: ChatCompletions | undefined;
3614
- get chatCompletions(): ChatCompletions;
3615
- protected _datasets: Datasets | undefined;
3616
- get datasets(): Datasets;
3617
- protected _experiments: Experiments | undefined;
3618
- get experiments(): Experiments;
3619
- protected _feedbackDefinitions: FeedbackDefinitions | undefined;
3620
- get feedbackDefinitions(): FeedbackDefinitions;
3621
- protected _llmProviderKey: LlmProviderKey | undefined;
3622
- get llmProviderKey(): LlmProviderKey;
3623
- protected _projects: Projects | undefined;
3624
- get projects(): Projects;
3625
- protected _prompts: Prompts | undefined;
3626
- get prompts(): Prompts;
3627
- protected _spans: Spans | undefined;
3628
- get spans(): Spans;
3629
- protected _traces: Traces | undefined;
3630
- get traces(): Traces;
4533
+ version(requestOptions?: OpikApiClient.RequestOptions): Promise<unknown>;
3631
4534
  protected _getCustomAuthorizationHeaders(): Promise<{
3632
4535
  Authorization: string | undefined;
3633
4536
  }>;
@@ -3637,11 +4540,11 @@ interface SavedSpan extends Span$1 {
3637
4540
  id: string;
3638
4541
  }
3639
4542
  declare class Span {
3640
- private data;
4543
+ data: SavedSpan;
3641
4544
  private opik;
3642
4545
  constructor(data: SavedSpan, opik: OpikClient);
3643
- end: () => Promise<void>;
3644
- update: (updates: Omit<SpanUpdate, "traceId" | "parentSpanId" | "projectId" | "projectName">) => Promise<void>;
4546
+ end: () => this;
4547
+ update: (updates: Omit<SpanUpdate$1, "traceId" | "parentSpanId" | "projectId" | "projectName">) => this;
3645
4548
  }
3646
4549
 
3647
4550
  interface SavedTrace extends Trace$1 {
@@ -3651,25 +4554,84 @@ interface SpanData extends Omit<Span$1, "startTime" | "traceId"> {
3651
4554
  startTime?: Date;
3652
4555
  }
3653
4556
  declare class Trace {
3654
- private data;
4557
+ data: SavedTrace;
3655
4558
  private opik;
3656
4559
  private spans;
3657
4560
  constructor(data: SavedTrace, opik: OpikClient);
3658
- end: () => Promise<void>;
3659
- span: (spanData: SpanData) => Promise<Span>;
3660
- update: (updates: Omit<TraceUpdate, "projectId" | "projectName">) => Promise<void>;
4561
+ end: () => this;
4562
+ span: (spanData: SpanData) => Span;
4563
+ update: (updates: Omit<TraceUpdate, "projectId">) => this;
4564
+ }
4565
+
4566
+ type CreateEntity = {
4567
+ id: string;
4568
+ };
4569
+ declare abstract class BatchQueue<EntityData = {}> {
4570
+ private readonly createQueue;
4571
+ private readonly updateQueue;
4572
+ private readonly deleteQueue;
4573
+ private readonly name;
4574
+ constructor({ delay, enableCreateBatch, enableDeleteBatch, name, }: {
4575
+ delay?: number;
4576
+ enableCreateBatch?: boolean;
4577
+ enableDeleteBatch?: boolean;
4578
+ name?: string;
4579
+ });
4580
+ protected abstract createEntities(entities: EntityData[]): Promise<void>;
4581
+ protected abstract getEntity(id: string): Promise<EntityData | undefined>;
4582
+ protected abstract updateEntity(id: string, updates: Partial<EntityData>): Promise<void>;
4583
+ protected abstract deleteEntities(ids: string[]): Promise<void>;
4584
+ create: (entity: CreateEntity & EntityData) => void;
4585
+ get: (id: string) => Promise<EntityData | undefined>;
4586
+ update: (id: string, updates: Partial<EntityData>) => void;
4587
+ delete: (id: string) => void;
4588
+ flush: () => Promise<void>;
4589
+ }
4590
+
4591
+ type SpanUpdate = Partial<SavedSpan> & {
4592
+ traceId: string;
4593
+ };
4594
+ declare class SpanBatchQueue extends BatchQueue<SavedSpan> {
4595
+ private readonly api;
4596
+ constructor(api: OpikApiClient, delay?: number);
4597
+ protected createEntities(spans: SavedSpan[]): Promise<void>;
4598
+ protected getEntity(id: string): Promise<SavedSpan>;
4599
+ protected updateEntity(id: string, updates: SpanUpdate): Promise<void>;
4600
+ protected deleteEntities(ids: string[]): Promise<void>;
4601
+ }
4602
+
4603
+ declare class TraceBatchQueue extends BatchQueue<SavedTrace> {
4604
+ private readonly api;
4605
+ constructor(api: OpikApiClient, delay?: number);
4606
+ protected createEntities(traces: SavedTrace[]): Promise<void>;
4607
+ protected getEntity(id: string): Promise<SavedTrace>;
4608
+ protected updateEntity(id: string, updates: Partial<SavedTrace>): Promise<void>;
4609
+ protected deleteEntities(ids: string[]): Promise<void>;
3661
4610
  }
3662
4611
 
3663
4612
  interface TraceData extends Omit<Trace$1, "startTime"> {
3664
4613
  startTime?: Date;
3665
4614
  }
3666
4615
  declare class OpikClient {
3667
- apiClient: OpikApiClient;
4616
+ api: OpikApiClient;
3668
4617
  config: OpikConfig;
3669
- private existingProjects;
4618
+ spanBatchQueue: SpanBatchQueue;
4619
+ traceBatchQueue: TraceBatchQueue;
3670
4620
  constructor(explicitConfig?: Partial<OpikConfig>);
3671
- loadProject: (projectName: string) => Promise<ProjectPublic>;
3672
- trace: (trace: TraceData) => Promise<Trace>;
4621
+ trace: (traceData: TraceData) => Trace;
4622
+ flush: () => Promise<void>;
3673
4623
  }
3674
4624
 
3675
- export { OpikClient as Opik, type OpikConfig };
4625
+ declare function withTrack({ name, projectName, type, }?: {
4626
+ name?: string;
4627
+ projectName?: string;
4628
+ type?: SpanType;
4629
+ }): <T extends (...args: any[]) => any>(originalFn: T) => T;
4630
+ declare function track({ name, projectName, type, }?: {
4631
+ name?: string;
4632
+ projectName?: string;
4633
+ type?: SpanType;
4634
+ }): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
4635
+ declare const trackOpikClient: OpikClient;
4636
+
4637
+ export { OpikClient as Opik, type OpikConfig, track, trackOpikClient, withTrack };