@langfuse/core 5.0.0-beta.1 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -261,7 +261,7 @@ declare const AnnotationQueueObjectType: {
261
261
  interface AnnotationQueue {
262
262
  id: string;
263
263
  name: string;
264
- description?: string;
264
+ description: string | null;
265
265
  scoreConfigIds: string[];
266
266
  createdAt: string;
267
267
  updatedAt: string;
@@ -305,7 +305,7 @@ interface PaginatedAnnotationQueueItems {
305
305
  */
306
306
  interface CreateAnnotationQueueRequest {
307
307
  name: string;
308
- description?: string;
308
+ description?: string | null;
309
309
  scoreConfigIds: string[];
310
310
  }
311
311
 
@@ -390,23 +390,23 @@ interface GetAnnotationQueueItemsRequest {
390
390
  limit?: number;
391
391
  }
392
392
 
393
- type index$s_AnnotationQueue = AnnotationQueue;
394
- type index$s_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
395
- type index$s_AnnotationQueueItem = AnnotationQueueItem;
396
- declare const index$s_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
397
- declare const index$s_AnnotationQueueStatus: typeof AnnotationQueueStatus;
398
- type index$s_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
399
- type index$s_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
400
- type index$s_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
401
- type index$s_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
402
- type index$s_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
403
- type index$s_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
404
- type index$s_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
405
- type index$s_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
406
- type index$s_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
407
- type index$s_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
408
- declare namespace index$s {
409
- export { type index$s_AnnotationQueue as AnnotationQueue, type index$s_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$s_AnnotationQueueItem as AnnotationQueueItem, index$s_AnnotationQueueObjectType as AnnotationQueueObjectType, index$s_AnnotationQueueStatus as AnnotationQueueStatus, type index$s_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$s_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$s_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$s_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$s_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$s_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$s_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$s_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$s_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$s_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
393
+ type index$t_AnnotationQueue = AnnotationQueue;
394
+ type index$t_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
395
+ type index$t_AnnotationQueueItem = AnnotationQueueItem;
396
+ declare const index$t_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
397
+ declare const index$t_AnnotationQueueStatus: typeof AnnotationQueueStatus;
398
+ type index$t_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
399
+ type index$t_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
400
+ type index$t_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
401
+ type index$t_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
402
+ type index$t_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
403
+ type index$t_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
404
+ type index$t_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
405
+ type index$t_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
406
+ type index$t_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
407
+ type index$t_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
408
+ declare namespace index$t {
409
+ export { type index$t_AnnotationQueue as AnnotationQueue, type index$t_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$t_AnnotationQueueItem as AnnotationQueueItem, index$t_AnnotationQueueObjectType as AnnotationQueueObjectType, index$t_AnnotationQueueStatus as AnnotationQueueStatus, type index$t_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$t_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$t_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$t_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$t_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$t_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$t_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$t_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$t_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$t_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
410
410
  }
411
411
 
412
412
  /**
@@ -489,18 +489,20 @@ interface BlobStorageIntegrationResponse {
489
489
  projectId: string;
490
490
  type: BlobStorageIntegrationType;
491
491
  bucketName: string;
492
- endpoint?: string;
492
+ endpoint: string | null;
493
493
  region: string;
494
- accessKeyId?: string;
494
+ accessKeyId: string | null;
495
495
  prefix: string;
496
496
  exportFrequency: BlobStorageExportFrequency;
497
497
  enabled: boolean;
498
498
  forcePathStyle: boolean;
499
499
  fileType: BlobStorageIntegrationFileType;
500
500
  exportMode: BlobStorageExportMode;
501
- exportStartDate?: string;
502
- nextSyncAt?: string;
503
- lastSyncAt?: string;
501
+ exportStartDate: string | null;
502
+ nextSyncAt: string | null;
503
+ lastSyncAt: string | null;
504
+ lastError: string | null;
505
+ lastErrorAt: string | null;
504
506
  createdAt: string;
505
507
  updatedAt: string;
506
508
  }
@@ -513,6 +515,49 @@ interface BlobStorageIntegrationsResponse {
513
515
  data: BlobStorageIntegrationResponse[];
514
516
  }
515
517
 
518
+ /**
519
+ * This file was auto-generated by Fern from our API Definition.
520
+ */
521
+ /**
522
+ * Sync status of the blob storage integration:
523
+ * - `disabled` — integration is not enabled
524
+ * - `error` — last export failed (see `lastError` for details)
525
+ * - `idle` — enabled but has never exported yet
526
+ * - `queued` — next export is overdue (`nextSyncAt` is in the past) and waiting to be picked up by the worker
527
+ * - `up_to_date` — all available data has been exported; next export is scheduled for the future
528
+ *
529
+ * **ETL usage**: poll this endpoint and check for `up_to_date` status. Compare `lastSyncAt` against your
530
+ * ETL bookmark to determine if new data is available. Note that exports run with a 30-minute lag buffer,
531
+ * so `lastSyncAt` will always be at least 30 minutes behind real-time.
532
+ */
533
+ type BlobStorageSyncStatus = "idle" | "queued" | "up_to_date" | "disabled" | "error";
534
+ declare const BlobStorageSyncStatus: {
535
+ readonly Idle: "idle";
536
+ readonly Queued: "queued";
537
+ readonly UpToDate: "up_to_date";
538
+ readonly Disabled: "disabled";
539
+ readonly Error: "error";
540
+ };
541
+
542
+ /**
543
+ * This file was auto-generated by Fern from our API Definition.
544
+ */
545
+
546
+ interface BlobStorageIntegrationStatusResponse {
547
+ id: string;
548
+ projectId: string;
549
+ syncStatus: BlobStorageSyncStatus;
550
+ enabled: boolean;
551
+ /** End of the last successfully exported time window. Compare against your ETL bookmark to determine if new data is available. Null if the integration has never synced. */
552
+ lastSyncAt: string | null;
553
+ /** When the next export is scheduled. Null if no sync has occurred yet. */
554
+ nextSyncAt: string | null;
555
+ /** Raw error message from the storage provider (S3/Azure/GCS) if the last export failed. Cleared on successful export. */
556
+ lastError: string | null;
557
+ /** When the last error occurred. Cleared on successful export. */
558
+ lastErrorAt: string | null;
559
+ }
560
+
516
561
  /**
517
562
  * This file was auto-generated by Fern from our API Definition.
518
563
  */
@@ -520,16 +565,18 @@ interface BlobStorageIntegrationDeletionResponse {
520
565
  message: string;
521
566
  }
522
567
 
523
- declare const index$r_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
524
- declare const index$r_BlobStorageExportMode: typeof BlobStorageExportMode;
525
- type index$r_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
526
- declare const index$r_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
527
- type index$r_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
528
- declare const index$r_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
529
- type index$r_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
530
- type index$r_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
531
- declare namespace index$r {
532
- export { index$r_BlobStorageExportFrequency as BlobStorageExportFrequency, index$r_BlobStorageExportMode as BlobStorageExportMode, type index$r_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$r_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$r_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, index$r_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$r_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, type index$r_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
568
+ declare const index$s_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
569
+ declare const index$s_BlobStorageExportMode: typeof BlobStorageExportMode;
570
+ type index$s_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
571
+ declare const index$s_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
572
+ type index$s_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
573
+ type index$s_BlobStorageIntegrationStatusResponse = BlobStorageIntegrationStatusResponse;
574
+ declare const index$s_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
575
+ type index$s_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
576
+ declare const index$s_BlobStorageSyncStatus: typeof BlobStorageSyncStatus;
577
+ type index$s_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
578
+ declare namespace index$s {
579
+ export { index$s_BlobStorageExportFrequency as BlobStorageExportFrequency, index$s_BlobStorageExportMode as BlobStorageExportMode, type index$s_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$s_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$s_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, type index$s_BlobStorageIntegrationStatusResponse as BlobStorageIntegrationStatusResponse, index$s_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$s_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, index$s_BlobStorageSyncStatus as BlobStorageSyncStatus, type index$s_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
533
580
  }
534
581
 
535
582
  /**
@@ -585,12 +632,12 @@ interface GetCommentsRequest {
585
632
  authorUserId?: string;
586
633
  }
587
634
 
588
- type index$q_CreateCommentRequest = CreateCommentRequest;
589
- type index$q_CreateCommentResponse = CreateCommentResponse;
590
- type index$q_GetCommentsRequest = GetCommentsRequest;
591
- type index$q_GetCommentsResponse = GetCommentsResponse;
592
- declare namespace index$q {
593
- export type { index$q_CreateCommentRequest as CreateCommentRequest, index$q_CreateCommentResponse as CreateCommentResponse, index$q_GetCommentsRequest as GetCommentsRequest, index$q_GetCommentsResponse as GetCommentsResponse };
635
+ type index$r_CreateCommentRequest = CreateCommentRequest;
636
+ type index$r_CreateCommentResponse = CreateCommentResponse;
637
+ type index$r_GetCommentsRequest = GetCommentsRequest;
638
+ type index$r_GetCommentsResponse = GetCommentsResponse;
639
+ declare namespace index$r {
640
+ export type { index$r_CreateCommentRequest as CreateCommentRequest, index$r_CreateCommentResponse as CreateCommentResponse, index$r_GetCommentsRequest as GetCommentsRequest, index$r_GetCommentsResponse as GetCommentsResponse };
594
641
  }
595
642
 
596
643
  /**
@@ -656,7 +703,7 @@ interface TraceWithFullDetails extends Trace$1 {
656
703
  /** List of observations */
657
704
  observations: ObservationsView[];
658
705
  /** List of scores */
659
- scores: ScoreV1[];
706
+ scores: ScoreV1$1[];
660
707
  }
661
708
 
662
709
  /**
@@ -955,17 +1002,17 @@ interface CategoricalScoreV1 extends BaseScoreV1 {
955
1002
  * This file was auto-generated by Fern from our API Definition.
956
1003
  */
957
1004
 
958
- type ScoreV1 =
1005
+ type ScoreV1$1 =
959
1006
  /**
960
1007
  * Score with NUMERIC data type */
961
- ScoreV1.Numeric
1008
+ ScoreV1$1.Numeric
962
1009
  /**
963
1010
  * Score with CATEGORICAL data type */
964
- | ScoreV1.Categorical
1011
+ | ScoreV1$1.Categorical
965
1012
  /**
966
1013
  * Score with BOOLEAN data type */
967
- | ScoreV1.Boolean;
968
- declare namespace ScoreV1 {
1014
+ | ScoreV1$1.Boolean;
1015
+ declare namespace ScoreV1$1 {
969
1016
  interface Numeric extends NumericScoreV1 {
970
1017
  dataType: "NUMERIC";
971
1018
  }
@@ -1056,20 +1103,20 @@ interface CorrectionScore extends BaseScore {
1056
1103
  * This file was auto-generated by Fern from our API Definition.
1057
1104
  */
1058
1105
 
1059
- type Score$1 =
1106
+ type Score =
1060
1107
  /**
1061
1108
  * Score with NUMERIC data type */
1062
- Score$1.Numeric
1109
+ Score.Numeric
1063
1110
  /**
1064
1111
  * Score with CATEGORICAL data type */
1065
- | Score$1.Categorical
1112
+ | Score.Categorical
1066
1113
  /**
1067
1114
  * Score with BOOLEAN data type */
1068
- | Score$1.Boolean
1115
+ | Score.Boolean
1069
1116
  /**
1070
1117
  * Score with CORRECTION data type */
1071
- | Score$1.Correction;
1072
- declare namespace Score$1 {
1118
+ | Score.Correction;
1119
+ declare namespace Score {
1073
1120
  interface Numeric extends NumericScore {
1074
1121
  dataType: "NUMERIC";
1075
1122
  }
@@ -1679,57 +1726,57 @@ declare class MethodNotAllowedError extends LangfuseAPIError {
1679
1726
  constructor(body?: unknown, rawResponse?: RawResponse);
1680
1727
  }
1681
1728
 
1682
- type index$p_AccessDeniedError = AccessDeniedError;
1683
- declare const index$p_AccessDeniedError: typeof AccessDeniedError;
1684
- type index$p_BaseScore = BaseScore;
1685
- type index$p_BaseScoreV1 = BaseScoreV1;
1686
- type index$p_BooleanScore = BooleanScore;
1687
- type index$p_BooleanScoreV1 = BooleanScoreV1;
1688
- type index$p_CategoricalScore = CategoricalScore;
1689
- type index$p_CategoricalScoreV1 = CategoricalScoreV1;
1690
- type index$p_Comment = Comment;
1691
- declare const index$p_CommentObjectType: typeof CommentObjectType;
1692
- type index$p_ConfigCategory = ConfigCategory;
1693
- type index$p_CorrectionScore = CorrectionScore;
1694
- type index$p_CreateScoreValue = CreateScoreValue;
1695
- type index$p_Dataset = Dataset;
1696
- type index$p_DatasetItem = DatasetItem;
1697
- type index$p_DatasetRun = DatasetRun;
1698
- type index$p_DatasetRunItem = DatasetRunItem;
1699
- type index$p_DatasetRunWithItems = DatasetRunWithItems;
1700
- declare const index$p_DatasetStatus: typeof DatasetStatus;
1701
- type index$p_MapValue = MapValue;
1702
- type index$p_MethodNotAllowedError = MethodNotAllowedError;
1703
- declare const index$p_MethodNotAllowedError: typeof MethodNotAllowedError;
1704
- type index$p_Model = Model;
1705
- type index$p_ModelPrice = ModelPrice;
1706
- declare const index$p_ModelUsageUnit: typeof ModelUsageUnit;
1707
- type index$p_NotFoundError = NotFoundError;
1708
- declare const index$p_NotFoundError: typeof NotFoundError;
1709
- type index$p_NumericScore = NumericScore;
1710
- type index$p_NumericScoreV1 = NumericScoreV1;
1711
- type index$p_Observation = Observation;
1712
- declare const index$p_ObservationLevel: typeof ObservationLevel;
1713
- type index$p_ObservationV2 = ObservationV2;
1714
- type index$p_ObservationsView = ObservationsView;
1715
- type index$p_PricingTier = PricingTier;
1716
- type index$p_PricingTierCondition = PricingTierCondition;
1717
- type index$p_PricingTierInput = PricingTierInput;
1718
- declare const index$p_PricingTierOperator: typeof PricingTierOperator;
1719
- type index$p_ScoreConfig = ScoreConfig;
1720
- declare const index$p_ScoreConfigDataType: typeof ScoreConfigDataType;
1721
- declare const index$p_ScoreDataType: typeof ScoreDataType;
1722
- declare const index$p_ScoreSource: typeof ScoreSource;
1723
- declare const index$p_ScoreV1: typeof ScoreV1;
1724
- type index$p_Session = Session;
1725
- type index$p_SessionWithTraces = SessionWithTraces;
1726
- type index$p_TraceWithDetails = TraceWithDetails;
1727
- type index$p_TraceWithFullDetails = TraceWithFullDetails;
1728
- type index$p_UnauthorizedError = UnauthorizedError;
1729
- declare const index$p_UnauthorizedError: typeof UnauthorizedError;
1730
- type index$p_Usage = Usage;
1731
- declare namespace index$p {
1732
- export { index$p_AccessDeniedError as AccessDeniedError, type index$p_BaseScore as BaseScore, type index$p_BaseScoreV1 as BaseScoreV1, type index$p_BooleanScore as BooleanScore, type index$p_BooleanScoreV1 as BooleanScoreV1, type index$p_CategoricalScore as CategoricalScore, type index$p_CategoricalScoreV1 as CategoricalScoreV1, type index$p_Comment as Comment, index$p_CommentObjectType as CommentObjectType, type index$p_ConfigCategory as ConfigCategory, type index$p_CorrectionScore as CorrectionScore, type index$p_CreateScoreValue as CreateScoreValue, type index$p_Dataset as Dataset, type index$p_DatasetItem as DatasetItem, type index$p_DatasetRun as DatasetRun, type index$p_DatasetRunItem as DatasetRunItem, type index$p_DatasetRunWithItems as DatasetRunWithItems, index$p_DatasetStatus as DatasetStatus, Error$1 as Error, type index$p_MapValue as MapValue, index$p_MethodNotAllowedError as MethodNotAllowedError, type index$p_Model as Model, type index$p_ModelPrice as ModelPrice, index$p_ModelUsageUnit as ModelUsageUnit, index$p_NotFoundError as NotFoundError, type index$p_NumericScore as NumericScore, type index$p_NumericScoreV1 as NumericScoreV1, type index$p_Observation as Observation, index$p_ObservationLevel as ObservationLevel, type index$p_ObservationV2 as ObservationV2, type index$p_ObservationsView as ObservationsView, type index$p_PricingTier as PricingTier, type index$p_PricingTierCondition as PricingTierCondition, type index$p_PricingTierInput as PricingTierInput, index$p_PricingTierOperator as PricingTierOperator, Score$1 as Score, type index$p_ScoreConfig as ScoreConfig, index$p_ScoreConfigDataType as ScoreConfigDataType, index$p_ScoreDataType as ScoreDataType, index$p_ScoreSource as ScoreSource, index$p_ScoreV1 as ScoreV1, type index$p_Session as Session, type index$p_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$p_TraceWithDetails as TraceWithDetails, type index$p_TraceWithFullDetails as TraceWithFullDetails, index$p_UnauthorizedError as UnauthorizedError, type index$p_Usage as Usage };
1729
+ type index$q_AccessDeniedError = AccessDeniedError;
1730
+ declare const index$q_AccessDeniedError: typeof AccessDeniedError;
1731
+ type index$q_BaseScore = BaseScore;
1732
+ type index$q_BaseScoreV1 = BaseScoreV1;
1733
+ type index$q_BooleanScore = BooleanScore;
1734
+ type index$q_BooleanScoreV1 = BooleanScoreV1;
1735
+ type index$q_CategoricalScore = CategoricalScore;
1736
+ type index$q_CategoricalScoreV1 = CategoricalScoreV1;
1737
+ type index$q_Comment = Comment;
1738
+ declare const index$q_CommentObjectType: typeof CommentObjectType;
1739
+ type index$q_ConfigCategory = ConfigCategory;
1740
+ type index$q_CorrectionScore = CorrectionScore;
1741
+ type index$q_CreateScoreValue = CreateScoreValue;
1742
+ type index$q_Dataset = Dataset;
1743
+ type index$q_DatasetItem = DatasetItem;
1744
+ type index$q_DatasetRun = DatasetRun;
1745
+ type index$q_DatasetRunItem = DatasetRunItem;
1746
+ type index$q_DatasetRunWithItems = DatasetRunWithItems;
1747
+ declare const index$q_DatasetStatus: typeof DatasetStatus;
1748
+ type index$q_MapValue = MapValue;
1749
+ type index$q_MethodNotAllowedError = MethodNotAllowedError;
1750
+ declare const index$q_MethodNotAllowedError: typeof MethodNotAllowedError;
1751
+ type index$q_Model = Model;
1752
+ type index$q_ModelPrice = ModelPrice;
1753
+ declare const index$q_ModelUsageUnit: typeof ModelUsageUnit;
1754
+ type index$q_NotFoundError = NotFoundError;
1755
+ declare const index$q_NotFoundError: typeof NotFoundError;
1756
+ type index$q_NumericScore = NumericScore;
1757
+ type index$q_NumericScoreV1 = NumericScoreV1;
1758
+ type index$q_Observation = Observation;
1759
+ declare const index$q_ObservationLevel: typeof ObservationLevel;
1760
+ type index$q_ObservationV2 = ObservationV2;
1761
+ type index$q_ObservationsView = ObservationsView;
1762
+ type index$q_PricingTier = PricingTier;
1763
+ type index$q_PricingTierCondition = PricingTierCondition;
1764
+ type index$q_PricingTierInput = PricingTierInput;
1765
+ declare const index$q_PricingTierOperator: typeof PricingTierOperator;
1766
+ declare const index$q_Score: typeof Score;
1767
+ type index$q_ScoreConfig = ScoreConfig;
1768
+ declare const index$q_ScoreConfigDataType: typeof ScoreConfigDataType;
1769
+ declare const index$q_ScoreDataType: typeof ScoreDataType;
1770
+ declare const index$q_ScoreSource: typeof ScoreSource;
1771
+ type index$q_Session = Session;
1772
+ type index$q_SessionWithTraces = SessionWithTraces;
1773
+ type index$q_TraceWithDetails = TraceWithDetails;
1774
+ type index$q_TraceWithFullDetails = TraceWithFullDetails;
1775
+ type index$q_UnauthorizedError = UnauthorizedError;
1776
+ declare const index$q_UnauthorizedError: typeof UnauthorizedError;
1777
+ type index$q_Usage = Usage;
1778
+ declare namespace index$q {
1779
+ export { index$q_AccessDeniedError as AccessDeniedError, type index$q_BaseScore as BaseScore, type index$q_BaseScoreV1 as BaseScoreV1, type index$q_BooleanScore as BooleanScore, type index$q_BooleanScoreV1 as BooleanScoreV1, type index$q_CategoricalScore as CategoricalScore, type index$q_CategoricalScoreV1 as CategoricalScoreV1, type index$q_Comment as Comment, index$q_CommentObjectType as CommentObjectType, type index$q_ConfigCategory as ConfigCategory, type index$q_CorrectionScore as CorrectionScore, type index$q_CreateScoreValue as CreateScoreValue, type index$q_Dataset as Dataset, type index$q_DatasetItem as DatasetItem, type index$q_DatasetRun as DatasetRun, type index$q_DatasetRunItem as DatasetRunItem, type index$q_DatasetRunWithItems as DatasetRunWithItems, index$q_DatasetStatus as DatasetStatus, Error$1 as Error, type index$q_MapValue as MapValue, index$q_MethodNotAllowedError as MethodNotAllowedError, type index$q_Model as Model, type index$q_ModelPrice as ModelPrice, index$q_ModelUsageUnit as ModelUsageUnit, index$q_NotFoundError as NotFoundError, type index$q_NumericScore as NumericScore, type index$q_NumericScoreV1 as NumericScoreV1, type index$q_Observation as Observation, index$q_ObservationLevel as ObservationLevel, type index$q_ObservationV2 as ObservationV2, type index$q_ObservationsView as ObservationsView, type index$q_PricingTier as PricingTier, type index$q_PricingTierCondition as PricingTierCondition, type index$q_PricingTierInput as PricingTierInput, index$q_PricingTierOperator as PricingTierOperator, index$q_Score as Score, type index$q_ScoreConfig as ScoreConfig, index$q_ScoreConfigDataType as ScoreConfigDataType, index$q_ScoreDataType as ScoreDataType, index$q_ScoreSource as ScoreSource, ScoreV1$1 as ScoreV1, type index$q_Session as Session, type index$q_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$q_TraceWithDetails as TraceWithDetails, type index$q_TraceWithFullDetails as TraceWithFullDetails, index$q_UnauthorizedError as UnauthorizedError, type index$q_Usage as Usage };
1733
1780
  }
1734
1781
 
1735
1782
  /**
@@ -1789,12 +1836,12 @@ interface GetDatasetItemsRequest {
1789
1836
  limit?: number;
1790
1837
  }
1791
1838
 
1792
- type index$o_CreateDatasetItemRequest = CreateDatasetItemRequest;
1793
- type index$o_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
1794
- type index$o_GetDatasetItemsRequest = GetDatasetItemsRequest;
1795
- type index$o_PaginatedDatasetItems = PaginatedDatasetItems;
1796
- declare namespace index$o {
1797
- export type { index$o_CreateDatasetItemRequest as CreateDatasetItemRequest, index$o_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$o_GetDatasetItemsRequest as GetDatasetItemsRequest, index$o_PaginatedDatasetItems as PaginatedDatasetItems };
1839
+ type index$p_CreateDatasetItemRequest = CreateDatasetItemRequest;
1840
+ type index$p_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
1841
+ type index$p_GetDatasetItemsRequest = GetDatasetItemsRequest;
1842
+ type index$p_PaginatedDatasetItems = PaginatedDatasetItems;
1843
+ declare namespace index$p {
1844
+ export type { index$p_CreateDatasetItemRequest as CreateDatasetItemRequest, index$p_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$p_GetDatasetItemsRequest as GetDatasetItemsRequest, index$p_PaginatedDatasetItems as PaginatedDatasetItems };
1798
1845
  }
1799
1846
 
1800
1847
  /**
@@ -1847,11 +1894,11 @@ interface ListDatasetRunItemsRequest {
1847
1894
  limit?: number;
1848
1895
  }
1849
1896
 
1850
- type index$n_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
1851
- type index$n_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
1852
- type index$n_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
1853
- declare namespace index$n {
1854
- export type { index$n_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$n_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$n_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
1897
+ type index$o_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
1898
+ type index$o_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
1899
+ type index$o_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
1900
+ declare namespace index$o {
1901
+ export type { index$o_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$o_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$o_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
1855
1902
  }
1856
1903
 
1857
1904
  /**
@@ -1920,14 +1967,14 @@ interface GetDatasetRunsRequest {
1920
1967
  limit?: number;
1921
1968
  }
1922
1969
 
1923
- type index$m_CreateDatasetRequest = CreateDatasetRequest;
1924
- type index$m_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
1925
- type index$m_GetDatasetRunsRequest = GetDatasetRunsRequest;
1926
- type index$m_GetDatasetsRequest = GetDatasetsRequest;
1927
- type index$m_PaginatedDatasetRuns = PaginatedDatasetRuns;
1928
- type index$m_PaginatedDatasets = PaginatedDatasets;
1929
- declare namespace index$m {
1930
- export type { index$m_CreateDatasetRequest as CreateDatasetRequest, index$m_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$m_GetDatasetRunsRequest as GetDatasetRunsRequest, index$m_GetDatasetsRequest as GetDatasetsRequest, index$m_PaginatedDatasetRuns as PaginatedDatasetRuns, index$m_PaginatedDatasets as PaginatedDatasets };
1970
+ type index$n_CreateDatasetRequest = CreateDatasetRequest;
1971
+ type index$n_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
1972
+ type index$n_GetDatasetRunsRequest = GetDatasetRunsRequest;
1973
+ type index$n_GetDatasetsRequest = GetDatasetsRequest;
1974
+ type index$n_PaginatedDatasetRuns = PaginatedDatasetRuns;
1975
+ type index$n_PaginatedDatasets = PaginatedDatasets;
1976
+ declare namespace index$n {
1977
+ export type { index$n_CreateDatasetRequest as CreateDatasetRequest, index$n_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$n_GetDatasetRunsRequest as GetDatasetRunsRequest, index$n_GetDatasetsRequest as GetDatasetsRequest, index$n_PaginatedDatasetRuns as PaginatedDatasetRuns, index$n_PaginatedDatasets as PaginatedDatasets };
1931
1978
  }
1932
1979
 
1933
1980
  /**
@@ -1954,11 +2001,11 @@ declare class ServiceUnavailableError extends LangfuseAPIError {
1954
2001
  constructor(rawResponse?: RawResponse);
1955
2002
  }
1956
2003
 
1957
- type index$l_HealthResponse = HealthResponse;
1958
- type index$l_ServiceUnavailableError = ServiceUnavailableError;
1959
- declare const index$l_ServiceUnavailableError: typeof ServiceUnavailableError;
1960
- declare namespace index$l {
1961
- export { type index$l_HealthResponse as HealthResponse, index$l_ServiceUnavailableError as ServiceUnavailableError };
2004
+ type index$m_HealthResponse = HealthResponse;
2005
+ type index$m_ServiceUnavailableError = ServiceUnavailableError;
2006
+ declare const index$m_ServiceUnavailableError: typeof ServiceUnavailableError;
2007
+ declare namespace index$m {
2008
+ export { type index$m_HealthResponse as HealthResponse, index$m_ServiceUnavailableError as ServiceUnavailableError };
1962
2009
  }
1963
2010
 
1964
2011
  /**
@@ -2513,232 +2560,565 @@ interface IngestionRequest {
2513
2560
  metadata?: unknown;
2514
2561
  }
2515
2562
 
2516
- type index$k_BaseEvent = BaseEvent;
2517
- type index$k_CreateEventBody = CreateEventBody;
2518
- type index$k_CreateEventEvent = CreateEventEvent;
2519
- type index$k_CreateGenerationBody = CreateGenerationBody;
2520
- type index$k_CreateGenerationEvent = CreateGenerationEvent;
2521
- type index$k_CreateObservationEvent = CreateObservationEvent;
2522
- type index$k_CreateSpanBody = CreateSpanBody;
2523
- type index$k_CreateSpanEvent = CreateSpanEvent;
2524
- type index$k_IngestionError = IngestionError;
2525
- declare const index$k_IngestionEvent: typeof IngestionEvent;
2526
- type index$k_IngestionRequest = IngestionRequest;
2527
- type index$k_IngestionResponse = IngestionResponse;
2528
- type index$k_IngestionSuccess = IngestionSuccess;
2529
- type index$k_IngestionUsage = IngestionUsage;
2530
- type index$k_ObservationBody = ObservationBody;
2531
- declare const index$k_ObservationType: typeof ObservationType;
2532
- type index$k_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
2533
- type index$k_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
2534
- type index$k_OpenAiUsage = OpenAiUsage;
2535
- type index$k_OptionalObservationBody = OptionalObservationBody;
2536
- type index$k_ScoreBody = ScoreBody;
2537
- type index$k_ScoreEvent = ScoreEvent;
2538
- type index$k_SdkLogBody = SdkLogBody;
2539
- type index$k_SdkLogEvent = SdkLogEvent;
2540
- type index$k_TraceBody = TraceBody;
2541
- type index$k_TraceEvent = TraceEvent;
2542
- type index$k_UpdateEventBody = UpdateEventBody;
2543
- type index$k_UpdateGenerationBody = UpdateGenerationBody;
2544
- type index$k_UpdateGenerationEvent = UpdateGenerationEvent;
2545
- type index$k_UpdateObservationEvent = UpdateObservationEvent;
2546
- type index$k_UpdateSpanBody = UpdateSpanBody;
2547
- type index$k_UpdateSpanEvent = UpdateSpanEvent;
2548
- type index$k_UsageDetails = UsageDetails;
2549
- declare namespace index$k {
2550
- export { type index$k_BaseEvent as BaseEvent, type index$k_CreateEventBody as CreateEventBody, type index$k_CreateEventEvent as CreateEventEvent, type index$k_CreateGenerationBody as CreateGenerationBody, type index$k_CreateGenerationEvent as CreateGenerationEvent, type index$k_CreateObservationEvent as CreateObservationEvent, type index$k_CreateSpanBody as CreateSpanBody, type index$k_CreateSpanEvent as CreateSpanEvent, type index$k_IngestionError as IngestionError, index$k_IngestionEvent as IngestionEvent, type index$k_IngestionRequest as IngestionRequest, type index$k_IngestionResponse as IngestionResponse, type index$k_IngestionSuccess as IngestionSuccess, type index$k_IngestionUsage as IngestionUsage, type index$k_ObservationBody as ObservationBody, index$k_ObservationType as ObservationType, type index$k_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$k_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$k_OpenAiUsage as OpenAiUsage, type index$k_OptionalObservationBody as OptionalObservationBody, type index$k_ScoreBody as ScoreBody, type index$k_ScoreEvent as ScoreEvent, type index$k_SdkLogBody as SdkLogBody, type index$k_SdkLogEvent as SdkLogEvent, type index$k_TraceBody as TraceBody, type index$k_TraceEvent as TraceEvent, type index$k_UpdateEventBody as UpdateEventBody, type index$k_UpdateGenerationBody as UpdateGenerationBody, type index$k_UpdateGenerationEvent as UpdateGenerationEvent, type index$k_UpdateObservationEvent as UpdateObservationEvent, type index$k_UpdateSpanBody as UpdateSpanBody, type index$k_UpdateSpanEvent as UpdateSpanEvent, type index$k_UsageDetails as UsageDetails };
2551
- }
2552
-
2553
- /**
2554
- * This file was auto-generated by Fern from our API Definition.
2555
- */
2556
- /**
2557
- * LLM API connection configuration (secrets excluded)
2558
- */
2559
- interface LlmConnection {
2560
- id: string;
2561
- /** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
2562
- provider: string;
2563
- /** The adapter used to interface with the LLM */
2564
- adapter: string;
2565
- /** Masked version of the secret key for display purposes */
2566
- displaySecretKey: string;
2567
- /** Custom base URL for the LLM API */
2568
- baseURL?: string;
2569
- /** List of custom model names available for this connection */
2570
- customModels: string[];
2571
- /** Whether to include default models for this adapter */
2572
- withDefaultModels: boolean;
2573
- /** Keys of extra headers sent with requests (values excluded for security) */
2574
- extraHeaderKeys: string[];
2575
- /** Adapter-specific configuration. Required for Bedrock (`{"region":"us-east-1"}`), optional for VertexAI (`{"location":"us-central1"}`), not used by other adapters. */
2576
- config?: Record<string, unknown>;
2577
- createdAt: string;
2578
- updatedAt: string;
2579
- }
2580
-
2581
- /**
2582
- * This file was auto-generated by Fern from our API Definition.
2583
- */
2584
-
2585
- interface PaginatedLlmConnections {
2586
- data: LlmConnection[];
2587
- meta: MetaResponse;
2563
+ type index$l_BaseEvent = BaseEvent;
2564
+ type index$l_CreateEventBody = CreateEventBody;
2565
+ type index$l_CreateEventEvent = CreateEventEvent;
2566
+ type index$l_CreateGenerationBody = CreateGenerationBody;
2567
+ type index$l_CreateGenerationEvent = CreateGenerationEvent;
2568
+ type index$l_CreateObservationEvent = CreateObservationEvent;
2569
+ type index$l_CreateSpanBody = CreateSpanBody;
2570
+ type index$l_CreateSpanEvent = CreateSpanEvent;
2571
+ type index$l_IngestionError = IngestionError;
2572
+ declare const index$l_IngestionEvent: typeof IngestionEvent;
2573
+ type index$l_IngestionRequest = IngestionRequest;
2574
+ type index$l_IngestionResponse = IngestionResponse;
2575
+ type index$l_IngestionSuccess = IngestionSuccess;
2576
+ type index$l_IngestionUsage = IngestionUsage;
2577
+ type index$l_ObservationBody = ObservationBody;
2578
+ declare const index$l_ObservationType: typeof ObservationType;
2579
+ type index$l_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
2580
+ type index$l_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
2581
+ type index$l_OpenAiUsage = OpenAiUsage;
2582
+ type index$l_OptionalObservationBody = OptionalObservationBody;
2583
+ type index$l_ScoreBody = ScoreBody;
2584
+ type index$l_ScoreEvent = ScoreEvent;
2585
+ type index$l_SdkLogBody = SdkLogBody;
2586
+ type index$l_SdkLogEvent = SdkLogEvent;
2587
+ type index$l_TraceBody = TraceBody;
2588
+ type index$l_TraceEvent = TraceEvent;
2589
+ type index$l_UpdateEventBody = UpdateEventBody;
2590
+ type index$l_UpdateGenerationBody = UpdateGenerationBody;
2591
+ type index$l_UpdateGenerationEvent = UpdateGenerationEvent;
2592
+ type index$l_UpdateObservationEvent = UpdateObservationEvent;
2593
+ type index$l_UpdateSpanBody = UpdateSpanBody;
2594
+ type index$l_UpdateSpanEvent = UpdateSpanEvent;
2595
+ type index$l_UsageDetails = UsageDetails;
2596
+ declare namespace index$l {
2597
+ export { type index$l_BaseEvent as BaseEvent, type index$l_CreateEventBody as CreateEventBody, type index$l_CreateEventEvent as CreateEventEvent, type index$l_CreateGenerationBody as CreateGenerationBody, type index$l_CreateGenerationEvent as CreateGenerationEvent, type index$l_CreateObservationEvent as CreateObservationEvent, type index$l_CreateSpanBody as CreateSpanBody, type index$l_CreateSpanEvent as CreateSpanEvent, type index$l_IngestionError as IngestionError, index$l_IngestionEvent as IngestionEvent, type index$l_IngestionRequest as IngestionRequest, type index$l_IngestionResponse as IngestionResponse, type index$l_IngestionSuccess as IngestionSuccess, type index$l_IngestionUsage as IngestionUsage, type index$l_ObservationBody as ObservationBody, index$l_ObservationType as ObservationType, type index$l_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$l_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$l_OpenAiUsage as OpenAiUsage, type index$l_OptionalObservationBody as OptionalObservationBody, type index$l_ScoreBody as ScoreBody, type index$l_ScoreEvent as ScoreEvent, type index$l_SdkLogBody as SdkLogBody, type index$l_SdkLogEvent as SdkLogEvent, type index$l_TraceBody as TraceBody, type index$l_TraceEvent as TraceEvent, type index$l_UpdateEventBody as UpdateEventBody, type index$l_UpdateGenerationBody as UpdateGenerationBody, type index$l_UpdateGenerationEvent as UpdateGenerationEvent, type index$l_UpdateObservationEvent as UpdateObservationEvent, type index$l_UpdateSpanBody as UpdateSpanBody, type index$l_UpdateSpanEvent as UpdateSpanEvent, type index$l_UsageDetails as UsageDetails };
2588
2598
  }
2589
2599
 
2590
2600
  /**
2591
2601
  * This file was auto-generated by Fern from our API Definition.
2592
2602
  */
2593
-
2594
- /**
2595
- * Request to create or update an LLM connection (upsert)
2596
- */
2597
- interface UpsertLlmConnectionRequest {
2598
- /** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
2599
- provider: string;
2600
- /** The adapter used to interface with the LLM */
2601
- adapter: LlmAdapter;
2602
- /** Secret key for the LLM API. */
2603
- secretKey: string;
2604
- /** Custom base URL for the LLM API */
2605
- baseURL?: string;
2606
- /** List of custom model names */
2607
- customModels?: string[];
2608
- /** Whether to include default models. Default is true. */
2609
- withDefaultModels?: boolean;
2610
- /** Extra headers to send with requests */
2611
- extraHeaders?: Record<string, string>;
2612
- /** Adapter-specific configuration. Validation rules: - **Bedrock**: Required. Must be `{"region": "<aws-region>"}` (e.g., `{"region":"us-east-1"}`) - **VertexAI**: Optional. If provided, must be `{"location": "<gcp-location>"}` (e.g., `{"location":"us-central1"}`) - **Other adapters**: Not supported. Omit this field or set to null. */
2613
- config?: Record<string, unknown>;
2603
+ interface MetricsResponse {
2604
+ /**
2605
+ * The metrics data. Each item in the list contains the metric values and dimensions requested in the query.
2606
+ * Format varies based on the query parameters.
2607
+ * Histograms will return an array with [lower, upper, height] tuples.
2608
+ */
2609
+ data: Record<string, unknown>[];
2614
2610
  }
2615
2611
 
2616
- /**
2617
- * This file was auto-generated by Fern from our API Definition.
2618
- */
2619
- type LlmAdapter = "anthropic" | "openai" | "azure" | "bedrock" | "google-vertex-ai" | "google-ai-studio";
2620
- declare const LlmAdapter: {
2621
- readonly Anthropic: "anthropic";
2622
- readonly OpenAi: "openai";
2623
- readonly Azure: "azure";
2624
- readonly Bedrock: "bedrock";
2625
- readonly GoogleVertexAi: "google-vertex-ai";
2626
- readonly GoogleAiStudio: "google-ai-studio";
2627
- };
2628
-
2629
2612
  /**
2630
2613
  * This file was auto-generated by Fern from our API Definition.
2631
2614
  */
2632
2615
  /**
2633
2616
  * @example
2634
- * {}
2617
+ * {
2618
+ * query: "query"
2619
+ * }
2635
2620
  */
2636
- interface GetLlmConnectionsRequest {
2637
- /** page number, starts at 1 */
2638
- page?: number;
2639
- /** limit of items per page */
2640
- limit?: number;
2621
+ interface GetMetricsRequest {
2622
+ /**
2623
+ * JSON string containing the query parameters with the following structure:
2624
+ * ```json
2625
+ * {
2626
+ * "view": string, // Required. One of "traces", "observations", "scores-numeric", "scores-categorical"
2627
+ * "dimensions": [ // Optional. Default: []
2628
+ * {
2629
+ * "field": string // Field to group by, e.g. "name", "userId", "sessionId"
2630
+ * }
2631
+ * ],
2632
+ * "metrics": [ // Required. At least one metric must be provided
2633
+ * {
2634
+ * "measure": string, // What to measure, e.g. "count", "latency", "value"
2635
+ * "aggregation": string // How to aggregate, e.g. "count", "sum", "avg", "p95", "histogram"
2636
+ * }
2637
+ * ],
2638
+ * "filters": [ // Optional. Default: []
2639
+ * {
2640
+ * "column": string, // Column to filter on
2641
+ * "operator": string, // Operator, e.g. "=", ">", "<", "contains"
2642
+ * "value": any, // Value to compare against
2643
+ * "type": string, // Data type, e.g. "string", "number", "stringObject"
2644
+ * "key": string // Required only when filtering on metadata
2645
+ * }
2646
+ * ],
2647
+ * "timeDimension": { // Optional. Default: null. If provided, results will be grouped by time
2648
+ * "granularity": string // One of "minute", "hour", "day", "week", "month", "auto"
2649
+ * },
2650
+ * "fromTimestamp": string, // Required. ISO datetime string for start of time range
2651
+ * "toTimestamp": string, // Required. ISO datetime string for end of time range
2652
+ * "orderBy": [ // Optional. Default: null
2653
+ * {
2654
+ * "field": string, // Field to order by
2655
+ * "direction": string // "asc" or "desc"
2656
+ * }
2657
+ * ],
2658
+ * "config": { // Optional. Query-specific configuration
2659
+ * "bins": number, // Optional. Number of bins for histogram (1-100), default: 10
2660
+ * "row_limit": number // Optional. Row limit for results (1-1000)
2661
+ * }
2662
+ * }
2663
+ * ```
2664
+ */
2665
+ query: string;
2641
2666
  }
2642
2667
 
2643
- type index$j_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
2644
- declare const index$j_LlmAdapter: typeof LlmAdapter;
2645
- type index$j_LlmConnection = LlmConnection;
2646
- type index$j_PaginatedLlmConnections = PaginatedLlmConnections;
2647
- type index$j_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
2648
- declare namespace index$j {
2649
- export { type index$j_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$j_LlmAdapter as LlmAdapter, type index$j_LlmConnection as LlmConnection, type index$j_PaginatedLlmConnections as PaginatedLlmConnections, type index$j_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
2668
+ type index$k_GetMetricsRequest = GetMetricsRequest;
2669
+ type index$k_MetricsResponse = MetricsResponse;
2670
+ declare namespace index$k {
2671
+ export type { index$k_GetMetricsRequest as GetMetricsRequest, index$k_MetricsResponse as MetricsResponse };
2650
2672
  }
2651
2673
 
2652
2674
  /**
2653
2675
  * This file was auto-generated by Fern from our API Definition.
2654
2676
  */
2655
- interface GetMediaResponse {
2656
- /** The unique langfuse identifier of a media record */
2657
- mediaId: string;
2658
- /** The MIME type of the media record */
2659
- contentType: string;
2660
- /** The size of the media record in bytes */
2661
- contentLength: number;
2662
- /** The date and time when the media record was uploaded */
2663
- uploadedAt: string;
2664
- /** The download URL of the media record */
2665
- url: string;
2666
- /** The expiry date and time of the media record download URL */
2667
- urlExpiry: string;
2668
- }
2669
2677
 
2670
- /**
2671
- * This file was auto-generated by Fern from our API Definition.
2672
- */
2673
- interface PatchMediaBody {
2674
- /** The date and time when the media record was uploaded */
2675
- uploadedAt: string;
2676
- /** The HTTP status code of the upload */
2677
- uploadHttpStatus: number;
2678
- /** The HTTP error message of the upload */
2679
- uploadHttpError?: string;
2680
- /** The time in milliseconds it took to upload the media record */
2681
- uploadTimeMs?: number;
2678
+ interface Observations$1 {
2679
+ data: Observation[];
2680
+ meta: MetaResponse;
2682
2681
  }
2683
2682
 
2684
2683
  /**
2685
2684
  * This file was auto-generated by Fern from our API Definition.
2686
2685
  */
2687
2686
 
2688
- interface GetMediaUploadUrlRequest {
2689
- /** The trace ID associated with the media record */
2690
- traceId: string;
2691
- /** The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null. */
2692
- observationId?: string;
2693
- contentType: MediaContentType;
2694
- /** The size of the media record in bytes */
2695
- contentLength: number;
2696
- /** The SHA-256 hash of the media record */
2697
- sha256Hash: string;
2698
- /** The trace / observation field the media record is associated with. This can be one of `input`, `output`, `metadata` */
2699
- field: string;
2687
+ interface ObservationsViews {
2688
+ data: ObservationsView[];
2689
+ meta: MetaResponse;
2700
2690
  }
2701
2691
 
2702
2692
  /**
2703
2693
  * This file was auto-generated by Fern from our API Definition.
2704
2694
  */
2705
- interface GetMediaUploadUrlResponse {
2706
- /** The presigned upload URL. If the asset is already uploaded, this will be null */
2707
- uploadUrl?: string;
2708
- /** The unique langfuse identifier of a media record */
2709
- mediaId: string;
2710
- }
2711
2695
 
2712
2696
  /**
2713
- * This file was auto-generated by Fern from our API Definition.
2714
- */
2715
- /**
2716
- * The MIME type of the media record
2697
+ * @example
2698
+ * {}
2717
2699
  */
2718
- type MediaContentType = "image/png" | "image/jpeg" | "image/jpg" | "image/webp" | "image/gif" | "image/svg+xml" | "image/tiff" | "image/bmp" | "image/avif" | "image/heic" | "audio/mpeg" | "audio/mp3" | "audio/wav" | "audio/ogg" | "audio/oga" | "audio/aac" | "audio/mp4" | "audio/flac" | "audio/opus" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "video/mpeg" | "video/quicktime" | "video/x-msvideo" | "video/x-matroska" | "text/plain" | "text/html" | "text/css" | "text/csv" | "text/markdown" | "text/x-python" | "application/javascript" | "text/x-typescript" | "application/x-yaml" | "application/pdf" | "application/msword" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/zip" | "application/json" | "application/xml" | "application/octet-stream" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/rtf" | "application/x-ndjson" | "application/vnd.apache.parquet" | "application/gzip" | "application/x-tar" | "application/x-7z-compressed";
2719
- declare const MediaContentType: {
2720
- readonly ImagePng: "image/png";
2721
- readonly ImageJpeg: "image/jpeg";
2722
- readonly ImageJpg: "image/jpg";
2723
- readonly ImageWebp: "image/webp";
2724
- readonly ImageGif: "image/gif";
2725
- readonly ImageSvgXml: "image/svg+xml";
2726
- readonly ImageTiff: "image/tiff";
2727
- readonly ImageBmp: "image/bmp";
2728
- readonly ImageAvif: "image/avif";
2729
- readonly ImageHeic: "image/heic";
2730
- readonly AudioMpeg: "audio/mpeg";
2731
- readonly AudioMp3: "audio/mp3";
2732
- readonly AudioWav: "audio/wav";
2733
- readonly AudioOgg: "audio/ogg";
2734
- readonly AudioOga: "audio/oga";
2735
- readonly AudioAac: "audio/aac";
2736
- readonly AudioMp4: "audio/mp4";
2737
- readonly AudioFlac: "audio/flac";
2738
- readonly AudioOpus: "audio/opus";
2739
- readonly AudioWebm: "audio/webm";
2740
- readonly VideoMp4: "video/mp4";
2741
- readonly VideoWebm: "video/webm";
2700
+ interface GetObservationsRequest {
2701
+ /** Page number, starts at 1. */
2702
+ page?: number;
2703
+ /** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
2704
+ limit?: number;
2705
+ name?: string;
2706
+ userId?: string;
2707
+ type?: string;
2708
+ traceId?: string;
2709
+ /** Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR"). */
2710
+ level?: ObservationLevel;
2711
+ parentObservationId?: string;
2712
+ /** Optional filter for observations where the environment is one of the provided values. */
2713
+ environment?: string | string[];
2714
+ /** Retrieve only observations with a start_time on or after this datetime (ISO 8601). */
2715
+ fromStartTime?: string;
2716
+ /** Retrieve only observations with a start_time before this datetime (ISO 8601). */
2717
+ toStartTime?: string;
2718
+ /** Optional filter to only include observations with a certain version. */
2719
+ version?: string;
2720
+ /**
2721
+ * JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).
2722
+ *
2723
+ * ## Filter Structure
2724
+ * Each filter condition has the following structure:
2725
+ * ```json
2726
+ * [
2727
+ * {
2728
+ * "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
2729
+ * "column": string, // Required. Column to filter on (see available columns below)
2730
+ * "operator": string, // Required. Operator based on type:
2731
+ * // - datetime: ">", "<", ">=", "<="
2732
+ * // - string: "=", "contains", "does not contain", "starts with", "ends with"
2733
+ * // - stringOptions: "any of", "none of"
2734
+ * // - categoryOptions: "any of", "none of"
2735
+ * // - arrayOptions: "any of", "none of", "all of"
2736
+ * // - number: "=", ">", "<", ">=", "<="
2737
+ * // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
2738
+ * // - numberObject: "=", ">", "<", ">=", "<="
2739
+ * // - boolean: "=", "<>"
2740
+ * // - null: "is null", "is not null"
2741
+ * "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
2742
+ * "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
2743
+ * }
2744
+ * ]
2745
+ * ```
2746
+ *
2747
+ * ## Available Columns
2748
+ *
2749
+ * ### Core Observation Fields
2750
+ * - `id` (string) - Observation ID
2751
+ * - `type` (string) - Observation type (SPAN, GENERATION, EVENT)
2752
+ * - `name` (string) - Observation name
2753
+ * - `traceId` (string) - Associated trace ID
2754
+ * - `startTime` (datetime) - Observation start time
2755
+ * - `endTime` (datetime) - Observation end time
2756
+ * - `environment` (string) - Environment tag
2757
+ * - `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)
2758
+ * - `statusMessage` (string) - Status message
2759
+ * - `version` (string) - Version tag
2760
+ *
2761
+ * ### Performance Metrics
2762
+ * - `latency` (number) - Latency in seconds (calculated: end_time - start_time)
2763
+ * - `timeToFirstToken` (number) - Time to first token in seconds
2764
+ * - `tokensPerSecond` (number) - Output tokens per second
2765
+ *
2766
+ * ### Token Usage
2767
+ * - `inputTokens` (number) - Number of input tokens
2768
+ * - `outputTokens` (number) - Number of output tokens
2769
+ * - `totalTokens` (number) - Total tokens (alias: `tokens`)
2770
+ *
2771
+ * ### Cost Metrics
2772
+ * - `inputCost` (number) - Input cost in USD
2773
+ * - `outputCost` (number) - Output cost in USD
2774
+ * - `totalCost` (number) - Total cost in USD
2775
+ *
2776
+ * ### Model Information
2777
+ * - `model` (string) - Provided model name
2778
+ * - `promptName` (string) - Associated prompt name
2779
+ * - `promptVersion` (number) - Associated prompt version
2780
+ *
2781
+ * ### Structured Data
2782
+ * - `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.
2783
+ *
2784
+ * ### Associated Trace Fields (requires join with traces table)
2785
+ * - `userId` (string) - User ID from associated trace
2786
+ * - `traceName` (string) - Name from associated trace
2787
+ * - `traceEnvironment` (string) - Environment from associated trace
2788
+ * - `traceTags` (arrayOptions) - Tags from associated trace
2789
+ *
2790
+ * ## Filter Examples
2791
+ * ```json
2792
+ * [
2793
+ * {
2794
+ * "type": "string",
2795
+ * "column": "type",
2796
+ * "operator": "=",
2797
+ * "value": "GENERATION"
2798
+ * },
2799
+ * {
2800
+ * "type": "number",
2801
+ * "column": "latency",
2802
+ * "operator": ">=",
2803
+ * "value": 2.5
2804
+ * },
2805
+ * {
2806
+ * "type": "stringObject",
2807
+ * "column": "metadata",
2808
+ * "key": "environment",
2809
+ * "operator": "=",
2810
+ * "value": "production"
2811
+ * }
2812
+ * ]
2813
+ * ```
2814
+ */
2815
+ filter?: string;
2816
+ }
2817
+
2818
+ type index$j_GetObservationsRequest = GetObservationsRequest;
2819
+ type index$j_ObservationsViews = ObservationsViews;
2820
+ declare namespace index$j {
2821
+ export type { index$j_GetObservationsRequest as GetObservationsRequest, Observations$1 as Observations, index$j_ObservationsViews as ObservationsViews };
2822
+ }
2823
+
2824
+ /**
2825
+ * This file was auto-generated by Fern from our API Definition.
2826
+ */
2827
+
2828
+ /**
2829
+ * @example
2830
+ * {
2831
+ * name: "novelty",
2832
+ * value: 0.9,
2833
+ * traceId: "cdef-1234-5678-90ab"
2834
+ * }
2835
+ *
2836
+ * @example
2837
+ * {
2838
+ * name: "consistency",
2839
+ * value: 1.2,
2840
+ * dataType: LangfuseAPI.ScoreDataType.Numeric,
2841
+ * traceId: "cdef-1234-5678-90ab"
2842
+ * }
2843
+ *
2844
+ * @example
2845
+ * {
2846
+ * name: "accuracy",
2847
+ * value: 0.9,
2848
+ * dataType: LangfuseAPI.ScoreDataType.Numeric,
2849
+ * configId: "9203-4567-89ab-cdef",
2850
+ * traceId: "cdef-1234-5678-90ab",
2851
+ * environment: "test"
2852
+ * }
2853
+ *
2854
+ * @example
2855
+ * {
2856
+ * name: "toxicity",
2857
+ * value: "not toxic",
2858
+ * traceId: "cdef-1234-5678-90ab",
2859
+ * environment: "production"
2860
+ * }
2861
+ *
2862
+ * @example
2863
+ * {
2864
+ * name: "correctness",
2865
+ * value: "partially correct",
2866
+ * dataType: LangfuseAPI.ScoreDataType.Categorical,
2867
+ * configId: "1234-5678-90ab-cdef",
2868
+ * traceId: "cdef-1234-5678-90ab"
2869
+ * }
2870
+ *
2871
+ * @example
2872
+ * {
2873
+ * name: "hallucination",
2874
+ * value: 0,
2875
+ * dataType: LangfuseAPI.ScoreDataType.Boolean,
2876
+ * traceId: "cdef-1234-5678-90ab"
2877
+ * }
2878
+ *
2879
+ * @example
2880
+ * {
2881
+ * name: "helpfulness",
2882
+ * value: 1,
2883
+ * dataType: LangfuseAPI.ScoreDataType.Boolean,
2884
+ * configId: "1234-5678-90ab-cdef",
2885
+ * traceId: "cdef-1234-5678-90ab"
2886
+ * }
2887
+ */
2888
+ interface CreateScoreRequest {
2889
+ id?: string;
2890
+ traceId?: string;
2891
+ sessionId?: string;
2892
+ observationId?: string;
2893
+ datasetRunId?: string;
2894
+ name: string;
2895
+ /** The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false) */
2896
+ value: CreateScoreValue;
2897
+ comment?: string;
2898
+ metadata?: Record<string, unknown>;
2899
+ /** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
2900
+ environment?: string;
2901
+ /** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
2902
+ queueId?: string;
2903
+ /** The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric. */
2904
+ dataType?: ScoreDataType;
2905
+ /** Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. */
2906
+ configId?: string;
2907
+ }
2908
+
2909
+ /**
2910
+ * This file was auto-generated by Fern from our API Definition.
2911
+ */
2912
+ interface CreateScoreResponse {
2913
+ /** The id of the created object in Langfuse */
2914
+ id: string;
2915
+ }
2916
+
2917
+ type index$i_CreateScoreRequest = CreateScoreRequest;
2918
+ type index$i_CreateScoreResponse = CreateScoreResponse;
2919
+ declare namespace index$i {
2920
+ export type { index$i_CreateScoreRequest as CreateScoreRequest, index$i_CreateScoreResponse as CreateScoreResponse };
2921
+ }
2922
+
2923
+ type index$h_CreateScoreRequest = CreateScoreRequest;
2924
+ type index$h_CreateScoreResponse = CreateScoreResponse;
2925
+ type index$h_GetMetricsRequest = GetMetricsRequest;
2926
+ type index$h_GetObservationsRequest = GetObservationsRequest;
2927
+ type index$h_MetricsResponse = MetricsResponse;
2928
+ type index$h_ObservationsViews = ObservationsViews;
2929
+ declare namespace index$h {
2930
+ export { type index$h_CreateScoreRequest as CreateScoreRequest, type index$h_CreateScoreResponse as CreateScoreResponse, type index$h_GetMetricsRequest as GetMetricsRequest, type index$h_GetObservationsRequest as GetObservationsRequest, type index$h_MetricsResponse as MetricsResponse, type Observations$1 as Observations, type index$h_ObservationsViews as ObservationsViews, index$k as metricsV1, index$j as observationsV1, index$i as scoreV1 };
2931
+ }
2932
+
2933
+ /**
2934
+ * This file was auto-generated by Fern from our API Definition.
2935
+ */
2936
+ /**
2937
+ * LLM API connection configuration (secrets excluded)
2938
+ */
2939
+ interface LlmConnection {
2940
+ id: string;
2941
+ /** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
2942
+ provider: string;
2943
+ /** The adapter used to interface with the LLM */
2944
+ adapter: string;
2945
+ /** Masked version of the secret key for display purposes */
2946
+ displaySecretKey: string;
2947
+ /** Custom base URL for the LLM API */
2948
+ baseURL?: string;
2949
+ /** List of custom model names available for this connection */
2950
+ customModels: string[];
2951
+ /** Whether to include default models for this adapter */
2952
+ withDefaultModels: boolean;
2953
+ /** Keys of extra headers sent with requests (values excluded for security) */
2954
+ extraHeaderKeys: string[];
2955
+ /** Adapter-specific configuration. Required for Bedrock (`{"region":"us-east-1"}`), optional for VertexAI (`{"location":"us-central1"}`), not used by other adapters. */
2956
+ config?: Record<string, unknown>;
2957
+ createdAt: string;
2958
+ updatedAt: string;
2959
+ }
2960
+
2961
+ /**
2962
+ * This file was auto-generated by Fern from our API Definition.
2963
+ */
2964
+
2965
+ interface PaginatedLlmConnections {
2966
+ data: LlmConnection[];
2967
+ meta: MetaResponse;
2968
+ }
2969
+
2970
+ /**
2971
+ * This file was auto-generated by Fern from our API Definition.
2972
+ */
2973
+
2974
+ /**
2975
+ * Request to create or update an LLM connection (upsert)
2976
+ */
2977
+ interface UpsertLlmConnectionRequest {
2978
+ /** Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting. */
2979
+ provider: string;
2980
+ /** The adapter used to interface with the LLM */
2981
+ adapter: LlmAdapter;
2982
+ /** Secret key for the LLM API. */
2983
+ secretKey: string;
2984
+ /** Custom base URL for the LLM API */
2985
+ baseURL?: string;
2986
+ /** List of custom model names */
2987
+ customModels?: string[];
2988
+ /** Whether to include default models. Default is true. */
2989
+ withDefaultModels?: boolean;
2990
+ /** Extra headers to send with requests */
2991
+ extraHeaders?: Record<string, string>;
2992
+ /** Adapter-specific configuration. Validation rules: - **Bedrock**: Required. Must be `{"region": "<aws-region>"}` (e.g., `{"region":"us-east-1"}`) - **VertexAI**: Optional. If provided, must be `{"location": "<gcp-location>"}` (e.g., `{"location":"us-central1"}`) - **Other adapters**: Not supported. Omit this field or set to null. */
2993
+ config?: Record<string, unknown>;
2994
+ }
2995
+
2996
+ /**
2997
+ * This file was auto-generated by Fern from our API Definition.
2998
+ */
2999
+ type LlmAdapter = "anthropic" | "openai" | "azure" | "bedrock" | "google-vertex-ai" | "google-ai-studio";
3000
+ declare const LlmAdapter: {
3001
+ readonly Anthropic: "anthropic";
3002
+ readonly OpenAi: "openai";
3003
+ readonly Azure: "azure";
3004
+ readonly Bedrock: "bedrock";
3005
+ readonly GoogleVertexAi: "google-vertex-ai";
3006
+ readonly GoogleAiStudio: "google-ai-studio";
3007
+ };
3008
+
3009
+ /**
3010
+ * This file was auto-generated by Fern from our API Definition.
3011
+ */
3012
+ /**
3013
+ * @example
3014
+ * {}
3015
+ */
3016
+ interface GetLlmConnectionsRequest {
3017
+ /** page number, starts at 1 */
3018
+ page?: number;
3019
+ /** limit of items per page */
3020
+ limit?: number;
3021
+ }
3022
+
3023
+ type index$g_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
3024
+ declare const index$g_LlmAdapter: typeof LlmAdapter;
3025
+ type index$g_LlmConnection = LlmConnection;
3026
+ type index$g_PaginatedLlmConnections = PaginatedLlmConnections;
3027
+ type index$g_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
3028
+ declare namespace index$g {
3029
+ export { type index$g_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$g_LlmAdapter as LlmAdapter, type index$g_LlmConnection as LlmConnection, type index$g_PaginatedLlmConnections as PaginatedLlmConnections, type index$g_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
3030
+ }
3031
+
3032
+ /**
3033
+ * This file was auto-generated by Fern from our API Definition.
3034
+ */
3035
+ interface GetMediaResponse {
3036
+ /** The unique langfuse identifier of a media record */
3037
+ mediaId: string;
3038
+ /** The MIME type of the media record */
3039
+ contentType: string;
3040
+ /** The size of the media record in bytes */
3041
+ contentLength: number;
3042
+ /** The date and time when the media record was uploaded */
3043
+ uploadedAt: string;
3044
+ /** The download URL of the media record */
3045
+ url: string;
3046
+ /** The expiry date and time of the media record download URL */
3047
+ urlExpiry: string;
3048
+ }
3049
+
3050
+ /**
3051
+ * This file was auto-generated by Fern from our API Definition.
3052
+ */
3053
+ interface PatchMediaBody {
3054
+ /** The date and time when the media record was uploaded */
3055
+ uploadedAt: string;
3056
+ /** The HTTP status code of the upload */
3057
+ uploadHttpStatus: number;
3058
+ /** The HTTP error message of the upload */
3059
+ uploadHttpError?: string;
3060
+ /** The time in milliseconds it took to upload the media record */
3061
+ uploadTimeMs?: number;
3062
+ }
3063
+
3064
+ /**
3065
+ * This file was auto-generated by Fern from our API Definition.
3066
+ */
3067
+
3068
+ interface GetMediaUploadUrlRequest {
3069
+ /** The trace ID associated with the media record */
3070
+ traceId: string;
3071
+ /** The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null. */
3072
+ observationId?: string;
3073
+ contentType: MediaContentType;
3074
+ /** The size of the media record in bytes */
3075
+ contentLength: number;
3076
+ /** The SHA-256 hash of the media record */
3077
+ sha256Hash: string;
3078
+ /** The trace / observation field the media record is associated with. This can be one of `input`, `output`, `metadata` */
3079
+ field: string;
3080
+ }
3081
+
3082
+ /**
3083
+ * This file was auto-generated by Fern from our API Definition.
3084
+ */
3085
+ interface GetMediaUploadUrlResponse {
3086
+ /** The presigned upload URL. If the asset is already uploaded, this will be null */
3087
+ uploadUrl?: string;
3088
+ /** The unique langfuse identifier of a media record */
3089
+ mediaId: string;
3090
+ }
3091
+
3092
+ /**
3093
+ * This file was auto-generated by Fern from our API Definition.
3094
+ */
3095
+ /**
3096
+ * The MIME type of the media record
3097
+ */
3098
+ type MediaContentType = "image/png" | "image/jpeg" | "image/jpg" | "image/webp" | "image/gif" | "image/svg+xml" | "image/tiff" | "image/bmp" | "image/avif" | "image/heic" | "audio/mpeg" | "audio/mp3" | "audio/wav" | "audio/ogg" | "audio/oga" | "audio/aac" | "audio/mp4" | "audio/flac" | "audio/opus" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "video/mpeg" | "video/quicktime" | "video/x-msvideo" | "video/x-matroska" | "text/plain" | "text/html" | "text/css" | "text/csv" | "text/markdown" | "text/x-python" | "application/javascript" | "text/x-typescript" | "application/x-yaml" | "application/pdf" | "application/msword" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/zip" | "application/json" | "application/xml" | "application/octet-stream" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/rtf" | "application/x-ndjson" | "application/vnd.apache.parquet" | "application/gzip" | "application/x-tar" | "application/x-7z-compressed";
3099
+ declare const MediaContentType: {
3100
+ readonly ImagePng: "image/png";
3101
+ readonly ImageJpeg: "image/jpeg";
3102
+ readonly ImageJpg: "image/jpg";
3103
+ readonly ImageWebp: "image/webp";
3104
+ readonly ImageGif: "image/gif";
3105
+ readonly ImageSvgXml: "image/svg+xml";
3106
+ readonly ImageTiff: "image/tiff";
3107
+ readonly ImageBmp: "image/bmp";
3108
+ readonly ImageAvif: "image/avif";
3109
+ readonly ImageHeic: "image/heic";
3110
+ readonly AudioMpeg: "audio/mpeg";
3111
+ readonly AudioMp3: "audio/mp3";
3112
+ readonly AudioWav: "audio/wav";
3113
+ readonly AudioOgg: "audio/ogg";
3114
+ readonly AudioOga: "audio/oga";
3115
+ readonly AudioAac: "audio/aac";
3116
+ readonly AudioMp4: "audio/mp4";
3117
+ readonly AudioFlac: "audio/flac";
3118
+ readonly AudioOpus: "audio/opus";
3119
+ readonly AudioWebm: "audio/webm";
3120
+ readonly VideoMp4: "video/mp4";
3121
+ readonly VideoWebm: "video/webm";
2742
3122
  readonly VideoOgg: "video/ogg";
2743
3123
  readonly VideoMpeg: "video/mpeg";
2744
3124
  readonly VideoQuicktime: "video/quicktime";
@@ -2771,13 +3151,13 @@ declare const MediaContentType: {
2771
3151
  readonly ApplicationX7ZCompressed: "application/x-7z-compressed";
2772
3152
  };
2773
3153
 
2774
- type index$i_GetMediaResponse = GetMediaResponse;
2775
- type index$i_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
2776
- type index$i_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
2777
- declare const index$i_MediaContentType: typeof MediaContentType;
2778
- type index$i_PatchMediaBody = PatchMediaBody;
2779
- declare namespace index$i {
2780
- export { type index$i_GetMediaResponse as GetMediaResponse, type index$i_GetMediaUploadUrlRequest as GetMediaUploadUrlRequest, type index$i_GetMediaUploadUrlResponse as GetMediaUploadUrlResponse, index$i_MediaContentType as MediaContentType, type index$i_PatchMediaBody as PatchMediaBody };
3154
+ type index$f_GetMediaResponse = GetMediaResponse;
3155
+ type index$f_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
3156
+ type index$f_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
3157
+ declare const index$f_MediaContentType: typeof MediaContentType;
3158
+ type index$f_PatchMediaBody = PatchMediaBody;
3159
+ declare namespace index$f {
3160
+ export { type index$f_GetMediaResponse as GetMediaResponse, type index$f_GetMediaUploadUrlRequest as GetMediaUploadUrlRequest, type index$f_GetMediaUploadUrlResponse as GetMediaUploadUrlResponse, index$f_MediaContentType as MediaContentType, type index$f_PatchMediaBody as PatchMediaBody };
2781
3161
  }
2782
3162
 
2783
3163
  /**
@@ -2842,87 +3222,13 @@ interface GetMetricsV2Request {
2842
3222
  * "toTimestamp": string, // Required. ISO datetime string for end of time range (must be after fromTimestamp)
2843
3223
  * "orderBy": [ // Optional. Default: null
2844
3224
  * {
2845
- * "field": string, // Field to order by (dimension or metric alias)
2846
- * "direction": string // "asc" or "desc"
2847
- * }
2848
- * ],
2849
- * "config": { // Optional. Query-specific configuration
2850
- * "bins": number, // Optional. Number of bins for histogram aggregation (1-100), default: 10
2851
- * "row_limit": number // Optional. Maximum number of rows to return (1-1000), default: 100
2852
- * }
2853
- * }
2854
- * ```
2855
- */
2856
- query: string;
2857
- }
2858
-
2859
- type index$h_GetMetricsV2Request = GetMetricsV2Request;
2860
- type index$h_MetricsV2Response = MetricsV2Response;
2861
- declare namespace index$h {
2862
- export type { index$h_GetMetricsV2Request as GetMetricsV2Request, index$h_MetricsV2Response as MetricsV2Response };
2863
- }
2864
-
2865
- /**
2866
- * This file was auto-generated by Fern from our API Definition.
2867
- */
2868
- interface MetricsResponse {
2869
- /**
2870
- * The metrics data. Each item in the list contains the metric values and dimensions requested in the query.
2871
- * Format varies based on the query parameters.
2872
- * Histograms will return an array with [lower, upper, height] tuples.
2873
- */
2874
- data: Record<string, unknown>[];
2875
- }
2876
-
2877
- /**
2878
- * This file was auto-generated by Fern from our API Definition.
2879
- */
2880
- /**
2881
- * @example
2882
- * {
2883
- * query: "query"
2884
- * }
2885
- */
2886
- interface GetMetricsRequest {
2887
- /**
2888
- * JSON string containing the query parameters with the following structure:
2889
- * ```json
2890
- * {
2891
- * "view": string, // Required. One of "traces", "observations", "scores-numeric", "scores-categorical"
2892
- * "dimensions": [ // Optional. Default: []
2893
- * {
2894
- * "field": string // Field to group by, e.g. "name", "userId", "sessionId"
2895
- * }
2896
- * ],
2897
- * "metrics": [ // Required. At least one metric must be provided
2898
- * {
2899
- * "measure": string, // What to measure, e.g. "count", "latency", "value"
2900
- * "aggregation": string // How to aggregate, e.g. "count", "sum", "avg", "p95", "histogram"
2901
- * }
2902
- * ],
2903
- * "filters": [ // Optional. Default: []
2904
- * {
2905
- * "column": string, // Column to filter on
2906
- * "operator": string, // Operator, e.g. "=", ">", "<", "contains"
2907
- * "value": any, // Value to compare against
2908
- * "type": string, // Data type, e.g. "string", "number", "stringObject"
2909
- * "key": string // Required only when filtering on metadata
2910
- * }
2911
- * ],
2912
- * "timeDimension": { // Optional. Default: null. If provided, results will be grouped by time
2913
- * "granularity": string // One of "minute", "hour", "day", "week", "month", "auto"
2914
- * },
2915
- * "fromTimestamp": string, // Required. ISO datetime string for start of time range
2916
- * "toTimestamp": string, // Required. ISO datetime string for end of time range
2917
- * "orderBy": [ // Optional. Default: null
2918
- * {
2919
- * "field": string, // Field to order by
3225
+ * "field": string, // Field to order by (dimension or metric alias)
2920
3226
  * "direction": string // "asc" or "desc"
2921
3227
  * }
2922
3228
  * ],
2923
3229
  * "config": { // Optional. Query-specific configuration
2924
- * "bins": number, // Optional. Number of bins for histogram (1-100), default: 10
2925
- * "row_limit": number // Optional. Row limit for results (1-1000)
3230
+ * "bins": number, // Optional. Number of bins for histogram aggregation (1-100), default: 10
3231
+ * "row_limit": number // Optional. Maximum number of rows to return (1-1000), default: 100
2926
3232
  * }
2927
3233
  * }
2928
3234
  * ```
@@ -2930,10 +3236,10 @@ interface GetMetricsRequest {
2930
3236
  query: string;
2931
3237
  }
2932
3238
 
2933
- type index$g_GetMetricsRequest = GetMetricsRequest;
2934
- type index$g_MetricsResponse = MetricsResponse;
2935
- declare namespace index$g {
2936
- export type { index$g_GetMetricsRequest as GetMetricsRequest, index$g_MetricsResponse as MetricsResponse };
3239
+ type index$e_GetMetricsV2Request = GetMetricsV2Request;
3240
+ type index$e_MetricsV2Response = MetricsV2Response;
3241
+ declare namespace index$e {
3242
+ export type { index$e_GetMetricsV2Request as GetMetricsV2Request, index$e_MetricsV2Response as MetricsV2Response };
2937
3243
  }
2938
3244
 
2939
3245
  /**
@@ -3005,11 +3311,11 @@ interface GetModelsRequest {
3005
3311
  limit?: number;
3006
3312
  }
3007
3313
 
3008
- type index$f_CreateModelRequest = CreateModelRequest;
3009
- type index$f_GetModelsRequest = GetModelsRequest;
3010
- type index$f_PaginatedModels = PaginatedModels;
3011
- declare namespace index$f {
3012
- export type { index$f_CreateModelRequest as CreateModelRequest, index$f_GetModelsRequest as GetModelsRequest, index$f_PaginatedModels as PaginatedModels };
3314
+ type index$d_CreateModelRequest = CreateModelRequest;
3315
+ type index$d_GetModelsRequest = GetModelsRequest;
3316
+ type index$d_PaginatedModels = PaginatedModels;
3317
+ declare namespace index$d {
3318
+ export type { index$d_CreateModelRequest as CreateModelRequest, index$d_GetModelsRequest as GetModelsRequest, index$d_PaginatedModels as PaginatedModels };
3013
3319
  }
3014
3320
 
3015
3321
  /**
@@ -3187,161 +3493,11 @@ interface GetObservationsV2Request {
3187
3493
  filter?: string;
3188
3494
  }
3189
3495
 
3190
- type index$e_GetObservationsV2Request = GetObservationsV2Request;
3191
- type index$e_ObservationsV2Meta = ObservationsV2Meta;
3192
- type index$e_ObservationsV2Response = ObservationsV2Response;
3193
- declare namespace index$e {
3194
- export type { index$e_GetObservationsV2Request as GetObservationsV2Request, index$e_ObservationsV2Meta as ObservationsV2Meta, index$e_ObservationsV2Response as ObservationsV2Response };
3195
- }
3196
-
3197
- /**
3198
- * This file was auto-generated by Fern from our API Definition.
3199
- */
3200
-
3201
- interface Observations$1 {
3202
- data: Observation[];
3203
- meta: MetaResponse;
3204
- }
3205
-
3206
- /**
3207
- * This file was auto-generated by Fern from our API Definition.
3208
- */
3209
-
3210
- interface ObservationsViews {
3211
- data: ObservationsView[];
3212
- meta: MetaResponse;
3213
- }
3214
-
3215
- /**
3216
- * This file was auto-generated by Fern from our API Definition.
3217
- */
3218
-
3219
- /**
3220
- * @example
3221
- * {}
3222
- */
3223
- interface GetObservationsRequest {
3224
- /** Page number, starts at 1. */
3225
- page?: number;
3226
- /** Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit. */
3227
- limit?: number;
3228
- name?: string;
3229
- userId?: string;
3230
- type?: string;
3231
- traceId?: string;
3232
- /** Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR"). */
3233
- level?: ObservationLevel;
3234
- parentObservationId?: string;
3235
- /** Optional filter for observations where the environment is one of the provided values. */
3236
- environment?: string | string[];
3237
- /** Retrieve only observations with a start_time on or after this datetime (ISO 8601). */
3238
- fromStartTime?: string;
3239
- /** Retrieve only observations with a start_time before this datetime (ISO 8601). */
3240
- toStartTime?: string;
3241
- /** Optional filter to only include observations with a certain version. */
3242
- version?: string;
3243
- /**
3244
- * JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).
3245
- *
3246
- * ## Filter Structure
3247
- * Each filter condition has the following structure:
3248
- * ```json
3249
- * [
3250
- * {
3251
- * "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
3252
- * "column": string, // Required. Column to filter on (see available columns below)
3253
- * "operator": string, // Required. Operator based on type:
3254
- * // - datetime: ">", "<", ">=", "<="
3255
- * // - string: "=", "contains", "does not contain", "starts with", "ends with"
3256
- * // - stringOptions: "any of", "none of"
3257
- * // - categoryOptions: "any of", "none of"
3258
- * // - arrayOptions: "any of", "none of", "all of"
3259
- * // - number: "=", ">", "<", ">=", "<="
3260
- * // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
3261
- * // - numberObject: "=", ">", "<", ">=", "<="
3262
- * // - boolean: "=", "<>"
3263
- * // - null: "is null", "is not null"
3264
- * "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
3265
- * "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
3266
- * }
3267
- * ]
3268
- * ```
3269
- *
3270
- * ## Available Columns
3271
- *
3272
- * ### Core Observation Fields
3273
- * - `id` (string) - Observation ID
3274
- * - `type` (string) - Observation type (SPAN, GENERATION, EVENT)
3275
- * - `name` (string) - Observation name
3276
- * - `traceId` (string) - Associated trace ID
3277
- * - `startTime` (datetime) - Observation start time
3278
- * - `endTime` (datetime) - Observation end time
3279
- * - `environment` (string) - Environment tag
3280
- * - `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)
3281
- * - `statusMessage` (string) - Status message
3282
- * - `version` (string) - Version tag
3283
- *
3284
- * ### Performance Metrics
3285
- * - `latency` (number) - Latency in seconds (calculated: end_time - start_time)
3286
- * - `timeToFirstToken` (number) - Time to first token in seconds
3287
- * - `tokensPerSecond` (number) - Output tokens per second
3288
- *
3289
- * ### Token Usage
3290
- * - `inputTokens` (number) - Number of input tokens
3291
- * - `outputTokens` (number) - Number of output tokens
3292
- * - `totalTokens` (number) - Total tokens (alias: `tokens`)
3293
- *
3294
- * ### Cost Metrics
3295
- * - `inputCost` (number) - Input cost in USD
3296
- * - `outputCost` (number) - Output cost in USD
3297
- * - `totalCost` (number) - Total cost in USD
3298
- *
3299
- * ### Model Information
3300
- * - `model` (string) - Provided model name
3301
- * - `promptName` (string) - Associated prompt name
3302
- * - `promptVersion` (number) - Associated prompt version
3303
- *
3304
- * ### Structured Data
3305
- * - `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.
3306
- *
3307
- * ### Associated Trace Fields (requires join with traces table)
3308
- * - `userId` (string) - User ID from associated trace
3309
- * - `traceName` (string) - Name from associated trace
3310
- * - `traceEnvironment` (string) - Environment from associated trace
3311
- * - `traceTags` (arrayOptions) - Tags from associated trace
3312
- *
3313
- * ## Filter Examples
3314
- * ```json
3315
- * [
3316
- * {
3317
- * "type": "string",
3318
- * "column": "type",
3319
- * "operator": "=",
3320
- * "value": "GENERATION"
3321
- * },
3322
- * {
3323
- * "type": "number",
3324
- * "column": "latency",
3325
- * "operator": ">=",
3326
- * "value": 2.5
3327
- * },
3328
- * {
3329
- * "type": "stringObject",
3330
- * "column": "metadata",
3331
- * "key": "environment",
3332
- * "operator": "=",
3333
- * "value": "production"
3334
- * }
3335
- * ]
3336
- * ```
3337
- */
3338
- filter?: string;
3339
- }
3340
-
3341
- type index$d_GetObservationsRequest = GetObservationsRequest;
3342
- type index$d_ObservationsViews = ObservationsViews;
3343
- declare namespace index$d {
3344
- export type { index$d_GetObservationsRequest as GetObservationsRequest, Observations$1 as Observations, index$d_ObservationsViews as ObservationsViews };
3496
+ type index$c_GetObservationsV2Request = GetObservationsV2Request;
3497
+ type index$c_ObservationsV2Meta = ObservationsV2Meta;
3498
+ type index$c_ObservationsV2Response = ObservationsV2Response;
3499
+ declare namespace index$c {
3500
+ export type { index$c_GetObservationsV2Request as GetObservationsV2Request, index$c_ObservationsV2Meta as ObservationsV2Meta, index$c_ObservationsV2Response as ObservationsV2Response };
3345
3501
  }
3346
3502
 
3347
3503
  /**
@@ -3518,17 +3674,17 @@ interface OtelTraceRequest {
3518
3674
  resourceSpans: OtelResourceSpan[];
3519
3675
  }
3520
3676
 
3521
- type index$c_OtelAttribute = OtelAttribute;
3522
- type index$c_OtelAttributeValue = OtelAttributeValue;
3523
- type index$c_OtelResource = OtelResource;
3524
- type index$c_OtelResourceSpan = OtelResourceSpan;
3525
- type index$c_OtelScope = OtelScope;
3526
- type index$c_OtelScopeSpan = OtelScopeSpan;
3527
- type index$c_OtelSpan = OtelSpan;
3528
- type index$c_OtelTraceRequest = OtelTraceRequest;
3529
- type index$c_OtelTraceResponse = OtelTraceResponse;
3530
- declare namespace index$c {
3531
- export type { index$c_OtelAttribute as OtelAttribute, index$c_OtelAttributeValue as OtelAttributeValue, index$c_OtelResource as OtelResource, index$c_OtelResourceSpan as OtelResourceSpan, index$c_OtelScope as OtelScope, index$c_OtelScopeSpan as OtelScopeSpan, index$c_OtelSpan as OtelSpan, index$c_OtelTraceRequest as OtelTraceRequest, index$c_OtelTraceResponse as OtelTraceResponse };
3677
+ type index$b_OtelAttribute = OtelAttribute;
3678
+ type index$b_OtelAttributeValue = OtelAttributeValue;
3679
+ type index$b_OtelResource = OtelResource;
3680
+ type index$b_OtelResourceSpan = OtelResourceSpan;
3681
+ type index$b_OtelScope = OtelScope;
3682
+ type index$b_OtelScopeSpan = OtelScopeSpan;
3683
+ type index$b_OtelSpan = OtelSpan;
3684
+ type index$b_OtelTraceRequest = OtelTraceRequest;
3685
+ type index$b_OtelTraceResponse = OtelTraceResponse;
3686
+ declare namespace index$b {
3687
+ export type { index$b_OtelAttribute as OtelAttribute, index$b_OtelAttributeValue as OtelAttributeValue, index$b_OtelResource as OtelResource, index$b_OtelResourceSpan as OtelResourceSpan, index$b_OtelScope as OtelScope, index$b_OtelScopeSpan as OtelScopeSpan, index$b_OtelSpan as OtelSpan, index$b_OtelTraceRequest as OtelTraceRequest, index$b_OtelTraceResponse as OtelTraceResponse };
3532
3688
  }
3533
3689
 
3534
3690
  /**
@@ -3625,18 +3781,18 @@ interface OrganizationApiKeysResponse {
3625
3781
  apiKeys: OrganizationApiKey[];
3626
3782
  }
3627
3783
 
3628
- type index$b_DeleteMembershipRequest = DeleteMembershipRequest;
3629
- type index$b_MembershipDeletionResponse = MembershipDeletionResponse;
3630
- type index$b_MembershipRequest = MembershipRequest;
3631
- type index$b_MembershipResponse = MembershipResponse;
3632
- declare const index$b_MembershipRole: typeof MembershipRole;
3633
- type index$b_MembershipsResponse = MembershipsResponse;
3634
- type index$b_OrganizationApiKey = OrganizationApiKey;
3635
- type index$b_OrganizationApiKeysResponse = OrganizationApiKeysResponse;
3636
- type index$b_OrganizationProject = OrganizationProject;
3637
- type index$b_OrganizationProjectsResponse = OrganizationProjectsResponse;
3638
- declare namespace index$b {
3639
- export { type index$b_DeleteMembershipRequest as DeleteMembershipRequest, type index$b_MembershipDeletionResponse as MembershipDeletionResponse, type index$b_MembershipRequest as MembershipRequest, type index$b_MembershipResponse as MembershipResponse, index$b_MembershipRole as MembershipRole, type index$b_MembershipsResponse as MembershipsResponse, type index$b_OrganizationApiKey as OrganizationApiKey, type index$b_OrganizationApiKeysResponse as OrganizationApiKeysResponse, type index$b_OrganizationProject as OrganizationProject, type index$b_OrganizationProjectsResponse as OrganizationProjectsResponse };
3784
+ type index$a_DeleteMembershipRequest = DeleteMembershipRequest;
3785
+ type index$a_MembershipDeletionResponse = MembershipDeletionResponse;
3786
+ type index$a_MembershipRequest = MembershipRequest;
3787
+ type index$a_MembershipResponse = MembershipResponse;
3788
+ declare const index$a_MembershipRole: typeof MembershipRole;
3789
+ type index$a_MembershipsResponse = MembershipsResponse;
3790
+ type index$a_OrganizationApiKey = OrganizationApiKey;
3791
+ type index$a_OrganizationApiKeysResponse = OrganizationApiKeysResponse;
3792
+ type index$a_OrganizationProject = OrganizationProject;
3793
+ type index$a_OrganizationProjectsResponse = OrganizationProjectsResponse;
3794
+ declare namespace index$a {
3795
+ export { type index$a_DeleteMembershipRequest as DeleteMembershipRequest, type index$a_MembershipDeletionResponse as MembershipDeletionResponse, type index$a_MembershipRequest as MembershipRequest, type index$a_MembershipResponse as MembershipResponse, index$a_MembershipRole as MembershipRole, type index$a_MembershipsResponse as MembershipsResponse, type index$a_OrganizationApiKey as OrganizationApiKey, type index$a_OrganizationApiKeysResponse as OrganizationApiKeysResponse, type index$a_OrganizationProject as OrganizationProject, type index$a_OrganizationProjectsResponse as OrganizationProjectsResponse };
3640
3796
  }
3641
3797
 
3642
3798
  /**
@@ -3795,18 +3951,18 @@ interface CreateApiKeyRequest {
3795
3951
  secretKey?: string;
3796
3952
  }
3797
3953
 
3798
- type index$a_ApiKeyDeletionResponse = ApiKeyDeletionResponse;
3799
- type index$a_ApiKeyList = ApiKeyList;
3800
- type index$a_ApiKeyResponse = ApiKeyResponse;
3801
- type index$a_ApiKeySummary = ApiKeySummary;
3802
- type index$a_CreateApiKeyRequest = CreateApiKeyRequest;
3803
- type index$a_CreateProjectRequest = CreateProjectRequest;
3804
- type index$a_Organization = Organization;
3805
- type index$a_Project = Project;
3806
- type index$a_ProjectDeletionResponse = ProjectDeletionResponse;
3807
- type index$a_UpdateProjectRequest = UpdateProjectRequest;
3808
- declare namespace index$a {
3809
- export type { index$a_ApiKeyDeletionResponse as ApiKeyDeletionResponse, index$a_ApiKeyList as ApiKeyList, index$a_ApiKeyResponse as ApiKeyResponse, index$a_ApiKeySummary as ApiKeySummary, index$a_CreateApiKeyRequest as CreateApiKeyRequest, index$a_CreateProjectRequest as CreateProjectRequest, index$a_Organization as Organization, index$a_Project as Project, index$a_ProjectDeletionResponse as ProjectDeletionResponse, Projects$1 as Projects, index$a_UpdateProjectRequest as UpdateProjectRequest };
3954
+ type index$9_ApiKeyDeletionResponse = ApiKeyDeletionResponse;
3955
+ type index$9_ApiKeyList = ApiKeyList;
3956
+ type index$9_ApiKeyResponse = ApiKeyResponse;
3957
+ type index$9_ApiKeySummary = ApiKeySummary;
3958
+ type index$9_CreateApiKeyRequest = CreateApiKeyRequest;
3959
+ type index$9_CreateProjectRequest = CreateProjectRequest;
3960
+ type index$9_Organization = Organization;
3961
+ type index$9_Project = Project;
3962
+ type index$9_ProjectDeletionResponse = ProjectDeletionResponse;
3963
+ type index$9_UpdateProjectRequest = UpdateProjectRequest;
3964
+ declare namespace index$9 {
3965
+ export type { index$9_ApiKeyDeletionResponse as ApiKeyDeletionResponse, index$9_ApiKeyList as ApiKeyList, index$9_ApiKeyResponse as ApiKeyResponse, index$9_ApiKeySummary as ApiKeySummary, index$9_CreateApiKeyRequest as CreateApiKeyRequest, index$9_CreateProjectRequest as CreateProjectRequest, index$9_Organization as Organization, index$9_Project as Project, index$9_ProjectDeletionResponse as ProjectDeletionResponse, Projects$1 as Projects, index$9_UpdateProjectRequest as UpdateProjectRequest };
3810
3966
  }
3811
3967
 
3812
3968
  /**
@@ -3910,7 +4066,7 @@ interface BasePrompt {
3910
4066
  tags: string[];
3911
4067
  /** Commit message for this prompt version. */
3912
4068
  commitMessage?: string;
3913
- /** The dependency resolution graph for the current prompt. Null if prompt has no dependencies. */
4069
+ /** The dependency resolution graph for the current prompt. Null if the prompt has no dependencies or if `resolve=false` was used. */
3914
4070
  resolutionGraph?: Record<string, unknown>;
3915
4071
  }
3916
4072
 
@@ -3999,6 +4155,8 @@ interface GetPromptRequest {
3999
4155
  version?: number;
4000
4156
  /** Label of the prompt to be retrieved. Defaults to "production" if no label or version is set. */
4001
4157
  label?: string;
4158
+ /** Resolve prompt dependencies before returning the prompt. Defaults to `true`. Set to `false` to return the raw stored prompt with dependency tags intact. This bypasses prompt caching and is intended for debugging or one-off jobs, not production runtime fetches. */
4159
+ resolve?: boolean;
4002
4160
  }
4003
4161
 
4004
4162
  /**
@@ -4036,28 +4194,28 @@ interface DeletePromptRequest {
4036
4194
  version?: number;
4037
4195
  }
4038
4196
 
4039
- type index$9_BasePrompt = BasePrompt;
4040
- type index$9_ChatMessage = ChatMessage;
4041
- declare const index$9_ChatMessageType: typeof ChatMessageType;
4042
- type index$9_ChatMessageWithPlaceholders = ChatMessageWithPlaceholders;
4043
- type index$9_ChatPrompt = ChatPrompt;
4044
- type index$9_CreateChatPromptRequest = CreateChatPromptRequest;
4045
- declare const index$9_CreateChatPromptType: typeof CreateChatPromptType;
4046
- type index$9_CreatePromptRequest = CreatePromptRequest;
4047
- type index$9_CreateTextPromptRequest = CreateTextPromptRequest;
4048
- declare const index$9_CreateTextPromptType: typeof CreateTextPromptType;
4049
- type index$9_DeletePromptRequest = DeletePromptRequest;
4050
- type index$9_GetPromptRequest = GetPromptRequest;
4051
- type index$9_ListPromptsMetaRequest = ListPromptsMetaRequest;
4052
- type index$9_PlaceholderMessage = PlaceholderMessage;
4053
- declare const index$9_PlaceholderMessageType: typeof PlaceholderMessageType;
4054
- declare const index$9_Prompt: typeof Prompt;
4055
- type index$9_PromptMeta = PromptMeta;
4056
- type index$9_PromptMetaListResponse = PromptMetaListResponse;
4057
- declare const index$9_PromptType: typeof PromptType;
4058
- type index$9_TextPrompt = TextPrompt;
4059
- declare namespace index$9 {
4060
- export { type index$9_BasePrompt as BasePrompt, type index$9_ChatMessage as ChatMessage, index$9_ChatMessageType as ChatMessageType, type index$9_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$9_ChatPrompt as ChatPrompt, type index$9_CreateChatPromptRequest as CreateChatPromptRequest, index$9_CreateChatPromptType as CreateChatPromptType, type index$9_CreatePromptRequest as CreatePromptRequest, type index$9_CreateTextPromptRequest as CreateTextPromptRequest, index$9_CreateTextPromptType as CreateTextPromptType, type index$9_DeletePromptRequest as DeletePromptRequest, type index$9_GetPromptRequest as GetPromptRequest, type index$9_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$9_PlaceholderMessage as PlaceholderMessage, index$9_PlaceholderMessageType as PlaceholderMessageType, index$9_Prompt as Prompt, type index$9_PromptMeta as PromptMeta, type index$9_PromptMetaListResponse as PromptMetaListResponse, index$9_PromptType as PromptType, type index$9_TextPrompt as TextPrompt };
4197
+ type index$8_BasePrompt = BasePrompt;
4198
+ type index$8_ChatMessage = ChatMessage;
4199
+ declare const index$8_ChatMessageType: typeof ChatMessageType;
4200
+ type index$8_ChatMessageWithPlaceholders = ChatMessageWithPlaceholders;
4201
+ type index$8_ChatPrompt = ChatPrompt;
4202
+ type index$8_CreateChatPromptRequest = CreateChatPromptRequest;
4203
+ declare const index$8_CreateChatPromptType: typeof CreateChatPromptType;
4204
+ type index$8_CreatePromptRequest = CreatePromptRequest;
4205
+ type index$8_CreateTextPromptRequest = CreateTextPromptRequest;
4206
+ declare const index$8_CreateTextPromptType: typeof CreateTextPromptType;
4207
+ type index$8_DeletePromptRequest = DeletePromptRequest;
4208
+ type index$8_GetPromptRequest = GetPromptRequest;
4209
+ type index$8_ListPromptsMetaRequest = ListPromptsMetaRequest;
4210
+ type index$8_PlaceholderMessage = PlaceholderMessage;
4211
+ declare const index$8_PlaceholderMessageType: typeof PlaceholderMessageType;
4212
+ declare const index$8_Prompt: typeof Prompt;
4213
+ type index$8_PromptMeta = PromptMeta;
4214
+ type index$8_PromptMetaListResponse = PromptMetaListResponse;
4215
+ declare const index$8_PromptType: typeof PromptType;
4216
+ type index$8_TextPrompt = TextPrompt;
4217
+ declare namespace index$8 {
4218
+ export { type index$8_BasePrompt as BasePrompt, type index$8_ChatMessage as ChatMessage, index$8_ChatMessageType as ChatMessageType, type index$8_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$8_ChatPrompt as ChatPrompt, type index$8_CreateChatPromptRequest as CreateChatPromptRequest, index$8_CreateChatPromptType as CreateChatPromptType, type index$8_CreatePromptRequest as CreatePromptRequest, type index$8_CreateTextPromptRequest as CreateTextPromptRequest, index$8_CreateTextPromptType as CreateTextPromptType, type index$8_DeletePromptRequest as DeletePromptRequest, type index$8_GetPromptRequest as GetPromptRequest, type index$8_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$8_PlaceholderMessage as PlaceholderMessage, index$8_PlaceholderMessageType as PlaceholderMessageType, index$8_Prompt as Prompt, type index$8_PromptMeta as PromptMeta, type index$8_PromptMetaListResponse as PromptMetaListResponse, index$8_PromptType as PromptType, type index$8_TextPrompt as TextPrompt };
4061
4219
  }
4062
4220
 
4063
4221
  /**
@@ -4279,27 +4437,27 @@ interface CreateUserRequest {
4279
4437
  password?: string;
4280
4438
  }
4281
4439
 
4282
- type index$8_AuthenticationScheme = AuthenticationScheme;
4283
- type index$8_BulkConfig = BulkConfig;
4284
- type index$8_CreateUserRequest = CreateUserRequest;
4285
- type index$8_EmptyResponse = EmptyResponse;
4286
- type index$8_FilterConfig = FilterConfig;
4287
- type index$8_ListUsersRequest = ListUsersRequest;
4288
- type index$8_ResourceMeta = ResourceMeta;
4289
- type index$8_ResourceType = ResourceType;
4290
- type index$8_ResourceTypesResponse = ResourceTypesResponse;
4291
- type index$8_SchemaExtension = SchemaExtension;
4292
- type index$8_SchemaResource = SchemaResource;
4293
- type index$8_SchemasResponse = SchemasResponse;
4294
- type index$8_ScimEmail = ScimEmail;
4295
- type index$8_ScimFeatureSupport = ScimFeatureSupport;
4296
- type index$8_ScimName = ScimName;
4297
- type index$8_ScimUser = ScimUser;
4298
- type index$8_ScimUsersListResponse = ScimUsersListResponse;
4299
- type index$8_ServiceProviderConfig = ServiceProviderConfig;
4300
- type index$8_UserMeta = UserMeta;
4301
- declare namespace index$8 {
4302
- export type { index$8_AuthenticationScheme as AuthenticationScheme, index$8_BulkConfig as BulkConfig, index$8_CreateUserRequest as CreateUserRequest, index$8_EmptyResponse as EmptyResponse, index$8_FilterConfig as FilterConfig, index$8_ListUsersRequest as ListUsersRequest, index$8_ResourceMeta as ResourceMeta, index$8_ResourceType as ResourceType, index$8_ResourceTypesResponse as ResourceTypesResponse, index$8_SchemaExtension as SchemaExtension, index$8_SchemaResource as SchemaResource, index$8_SchemasResponse as SchemasResponse, index$8_ScimEmail as ScimEmail, index$8_ScimFeatureSupport as ScimFeatureSupport, index$8_ScimName as ScimName, index$8_ScimUser as ScimUser, index$8_ScimUsersListResponse as ScimUsersListResponse, index$8_ServiceProviderConfig as ServiceProviderConfig, index$8_UserMeta as UserMeta };
4440
+ type index$7_AuthenticationScheme = AuthenticationScheme;
4441
+ type index$7_BulkConfig = BulkConfig;
4442
+ type index$7_CreateUserRequest = CreateUserRequest;
4443
+ type index$7_EmptyResponse = EmptyResponse;
4444
+ type index$7_FilterConfig = FilterConfig;
4445
+ type index$7_ListUsersRequest = ListUsersRequest;
4446
+ type index$7_ResourceMeta = ResourceMeta;
4447
+ type index$7_ResourceType = ResourceType;
4448
+ type index$7_ResourceTypesResponse = ResourceTypesResponse;
4449
+ type index$7_SchemaExtension = SchemaExtension;
4450
+ type index$7_SchemaResource = SchemaResource;
4451
+ type index$7_SchemasResponse = SchemasResponse;
4452
+ type index$7_ScimEmail = ScimEmail;
4453
+ type index$7_ScimFeatureSupport = ScimFeatureSupport;
4454
+ type index$7_ScimName = ScimName;
4455
+ type index$7_ScimUser = ScimUser;
4456
+ type index$7_ScimUsersListResponse = ScimUsersListResponse;
4457
+ type index$7_ServiceProviderConfig = ServiceProviderConfig;
4458
+ type index$7_UserMeta = UserMeta;
4459
+ declare namespace index$7 {
4460
+ export type { index$7_AuthenticationScheme as AuthenticationScheme, index$7_BulkConfig as BulkConfig, index$7_CreateUserRequest as CreateUserRequest, index$7_EmptyResponse as EmptyResponse, index$7_FilterConfig as FilterConfig, index$7_ListUsersRequest as ListUsersRequest, index$7_ResourceMeta as ResourceMeta, index$7_ResourceType as ResourceType, index$7_ResourceTypesResponse as ResourceTypesResponse, index$7_SchemaExtension as SchemaExtension, index$7_SchemaResource as SchemaResource, index$7_SchemasResponse as SchemasResponse, index$7_ScimEmail as ScimEmail, index$7_ScimFeatureSupport as ScimFeatureSupport, index$7_ScimName as ScimName, index$7_ScimUser as ScimUser, index$7_ScimUsersListResponse as ScimUsersListResponse, index$7_ServiceProviderConfig as ServiceProviderConfig, index$7_UserMeta as UserMeta };
4303
4461
  }
4304
4462
 
4305
4463
  /**
@@ -4361,11 +4519,11 @@ interface GetScoreConfigsRequest {
4361
4519
  limit?: number;
4362
4520
  }
4363
4521
 
4364
- type index$7_CreateScoreConfigRequest = CreateScoreConfigRequest;
4365
- type index$7_GetScoreConfigsRequest = GetScoreConfigsRequest;
4366
- type index$7_UpdateScoreConfigRequest = UpdateScoreConfigRequest;
4367
- declare namespace index$7 {
4368
- export type { index$7_CreateScoreConfigRequest as CreateScoreConfigRequest, index$7_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs, index$7_UpdateScoreConfigRequest as UpdateScoreConfigRequest };
4522
+ type index$6_CreateScoreConfigRequest = CreateScoreConfigRequest;
4523
+ type index$6_GetScoreConfigsRequest = GetScoreConfigsRequest;
4524
+ type index$6_UpdateScoreConfigRequest = UpdateScoreConfigRequest;
4525
+ declare namespace index$6 {
4526
+ export type { index$6_CreateScoreConfigRequest as CreateScoreConfigRequest, index$6_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs, index$6_UpdateScoreConfigRequest as UpdateScoreConfigRequest };
4369
4527
  }
4370
4528
 
4371
4529
  /**
@@ -4479,132 +4637,33 @@ interface GetScoresRequest {
4479
4637
  /** Retrieve only scores with a specific sessionId. */
4480
4638
  sessionId?: string;
4481
4639
  /** Retrieve only scores with a specific datasetRunId. */
4482
- datasetRunId?: string;
4483
- /** Retrieve only scores with a specific traceId. */
4484
- traceId?: string;
4485
- /** Comma-separated list of observation IDs to filter scores by. */
4486
- observationId?: string;
4487
- /** Retrieve only scores with a specific annotation queueId. */
4488
- queueId?: string;
4489
- /** Retrieve only scores with a specific dataType. */
4490
- dataType?: ScoreDataType;
4491
- /** Only scores linked to traces that include all of these tags will be returned. */
4492
- traceTags?: string | string[];
4493
- /** Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment, sessionId). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned. */
4494
- fields?: string;
4495
- /** A JSON stringified array of filter objects. Each object requires type, column, operator, and value. Supports filtering by score metadata using the stringObject type. Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}]. Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions. Supported operators for stringObject: =, contains, does not contain, starts with, ends with. */
4496
- filter?: string;
4497
- }
4498
-
4499
- type index$6_GetScoresRequest = GetScoresRequest;
4500
- type index$6_GetScoresResponse = GetScoresResponse;
4501
- declare const index$6_GetScoresResponseData: typeof GetScoresResponseData;
4502
- type index$6_GetScoresResponseDataBoolean = GetScoresResponseDataBoolean;
4503
- type index$6_GetScoresResponseDataCategorical = GetScoresResponseDataCategorical;
4504
- type index$6_GetScoresResponseDataCorrection = GetScoresResponseDataCorrection;
4505
- type index$6_GetScoresResponseDataNumeric = GetScoresResponseDataNumeric;
4506
- type index$6_GetScoresResponseTraceData = GetScoresResponseTraceData;
4507
- declare namespace index$6 {
4508
- export { type index$6_GetScoresRequest as GetScoresRequest, type index$6_GetScoresResponse as GetScoresResponse, index$6_GetScoresResponseData as GetScoresResponseData, type index$6_GetScoresResponseDataBoolean as GetScoresResponseDataBoolean, type index$6_GetScoresResponseDataCategorical as GetScoresResponseDataCategorical, type index$6_GetScoresResponseDataCorrection as GetScoresResponseDataCorrection, type index$6_GetScoresResponseDataNumeric as GetScoresResponseDataNumeric, type index$6_GetScoresResponseTraceData as GetScoresResponseTraceData };
4509
- }
4510
-
4511
- /**
4512
- * This file was auto-generated by Fern from our API Definition.
4513
- */
4514
-
4515
- /**
4516
- * @example
4517
- * {
4518
- * name: "novelty",
4519
- * value: 0.9,
4520
- * traceId: "cdef-1234-5678-90ab"
4521
- * }
4522
- *
4523
- * @example
4524
- * {
4525
- * name: "consistency",
4526
- * value: 1.2,
4527
- * dataType: LangfuseAPI.ScoreDataType.Numeric,
4528
- * traceId: "cdef-1234-5678-90ab"
4529
- * }
4530
- *
4531
- * @example
4532
- * {
4533
- * name: "accuracy",
4534
- * value: 0.9,
4535
- * dataType: LangfuseAPI.ScoreDataType.Numeric,
4536
- * configId: "9203-4567-89ab-cdef",
4537
- * traceId: "cdef-1234-5678-90ab",
4538
- * environment: "test"
4539
- * }
4540
- *
4541
- * @example
4542
- * {
4543
- * name: "toxicity",
4544
- * value: "not toxic",
4545
- * traceId: "cdef-1234-5678-90ab",
4546
- * environment: "production"
4547
- * }
4548
- *
4549
- * @example
4550
- * {
4551
- * name: "correctness",
4552
- * value: "partially correct",
4553
- * dataType: LangfuseAPI.ScoreDataType.Categorical,
4554
- * configId: "1234-5678-90ab-cdef",
4555
- * traceId: "cdef-1234-5678-90ab"
4556
- * }
4557
- *
4558
- * @example
4559
- * {
4560
- * name: "hallucination",
4561
- * value: 0,
4562
- * dataType: LangfuseAPI.ScoreDataType.Boolean,
4563
- * traceId: "cdef-1234-5678-90ab"
4564
- * }
4565
- *
4566
- * @example
4567
- * {
4568
- * name: "helpfulness",
4569
- * value: 1,
4570
- * dataType: LangfuseAPI.ScoreDataType.Boolean,
4571
- * configId: "1234-5678-90ab-cdef",
4572
- * traceId: "cdef-1234-5678-90ab"
4573
- * }
4574
- */
4575
- interface CreateScoreRequest {
4576
- id?: string;
4640
+ datasetRunId?: string;
4641
+ /** Retrieve only scores with a specific traceId. */
4577
4642
  traceId?: string;
4578
- sessionId?: string;
4643
+ /** Comma-separated list of observation IDs to filter scores by. */
4579
4644
  observationId?: string;
4580
- datasetRunId?: string;
4581
- name: string;
4582
- /** The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false) */
4583
- value: CreateScoreValue;
4584
- comment?: string;
4585
- metadata?: Record<string, unknown>;
4586
- /** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
4587
- environment?: string;
4588
- /** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
4645
+ /** Retrieve only scores with a specific annotation queueId. */
4589
4646
  queueId?: string;
4590
- /** The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric. */
4647
+ /** Retrieve only scores with a specific dataType. */
4591
4648
  dataType?: ScoreDataType;
4592
- /** Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. */
4593
- configId?: string;
4594
- }
4595
-
4596
- /**
4597
- * This file was auto-generated by Fern from our API Definition.
4598
- */
4599
- interface CreateScoreResponse {
4600
- /** The id of the created object in Langfuse */
4601
- id: string;
4649
+ /** Only scores linked to traces that include all of these tags will be returned. */
4650
+ traceTags?: string | string[];
4651
+ /** Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment, sessionId). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned. */
4652
+ fields?: string;
4653
+ /** A JSON stringified array of filter objects. Each object requires type, column, operator, and value. Supports filtering by score metadata using the stringObject type. Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}]. Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions. Supported operators for stringObject: =, contains, does not contain, starts with, ends with. */
4654
+ filter?: string;
4602
4655
  }
4603
4656
 
4604
- type index$5_CreateScoreRequest = CreateScoreRequest;
4605
- type index$5_CreateScoreResponse = CreateScoreResponse;
4657
+ type index$5_GetScoresRequest = GetScoresRequest;
4658
+ type index$5_GetScoresResponse = GetScoresResponse;
4659
+ declare const index$5_GetScoresResponseData: typeof GetScoresResponseData;
4660
+ type index$5_GetScoresResponseDataBoolean = GetScoresResponseDataBoolean;
4661
+ type index$5_GetScoresResponseDataCategorical = GetScoresResponseDataCategorical;
4662
+ type index$5_GetScoresResponseDataCorrection = GetScoresResponseDataCorrection;
4663
+ type index$5_GetScoresResponseDataNumeric = GetScoresResponseDataNumeric;
4664
+ type index$5_GetScoresResponseTraceData = GetScoresResponseTraceData;
4606
4665
  declare namespace index$5 {
4607
- export type { index$5_CreateScoreRequest as CreateScoreRequest, index$5_CreateScoreResponse as CreateScoreResponse };
4666
+ export { type index$5_GetScoresRequest as GetScoresRequest, type index$5_GetScoresResponse as GetScoresResponse, index$5_GetScoresResponseData as GetScoresResponseData, type index$5_GetScoresResponseDataBoolean as GetScoresResponseDataBoolean, type index$5_GetScoresResponseDataCategorical as GetScoresResponseDataCategorical, type index$5_GetScoresResponseDataCorrection as GetScoresResponseDataCorrection, type index$5_GetScoresResponseDataNumeric as GetScoresResponseDataNumeric, type index$5_GetScoresResponseTraceData as GetScoresResponseTraceData };
4608
4667
  }
4609
4668
 
4610
4669
  /**
@@ -5199,6 +5258,23 @@ declare class BlobStorageIntegrations {
5199
5258
  */
5200
5259
  upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
5201
5260
  private __upsertBlobStorageIntegration;
5261
+ /**
5262
+ * Get the sync status of a blob storage integration by integration ID (requires organization-scoped API key)
5263
+ *
5264
+ * @param {string} id
5265
+ * @param {BlobStorageIntegrations.RequestOptions} requestOptions - Request-specific configuration.
5266
+ *
5267
+ * @throws {@link LangfuseAPI.Error}
5268
+ * @throws {@link LangfuseAPI.UnauthorizedError}
5269
+ * @throws {@link LangfuseAPI.AccessDeniedError}
5270
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
5271
+ * @throws {@link LangfuseAPI.NotFoundError}
5272
+ *
5273
+ * @example
5274
+ * await client.blobStorageIntegrations.getBlobStorageIntegrationStatus("id")
5275
+ */
5276
+ getBlobStorageIntegrationStatus(id: string, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationStatusResponse>;
5277
+ private __getBlobStorageIntegrationStatus;
5202
5278
  /**
5203
5279
  * Delete a blob storage integration by ID (requires organization-scoped API key)
5204
5280
  *
@@ -5880,6 +5956,280 @@ declare class Ingestion {
5880
5956
  protected _getAuthorizationHeader(): Promise<string | undefined>;
5881
5957
  }
5882
5958
 
5959
+ /**
5960
+ * This file was auto-generated by Fern from our API Definition.
5961
+ */
5962
+
5963
+ declare namespace MetricsV1 {
5964
+ interface Options {
5965
+ environment: Supplier<string>;
5966
+ /** Specify a custom URL to connect the client to. */
5967
+ baseUrl?: Supplier<string>;
5968
+ username?: Supplier<string | undefined>;
5969
+ password?: Supplier<string | undefined>;
5970
+ /** Override the X-Langfuse-Sdk-Name header */
5971
+ xLangfuseSdkName?: Supplier<string | undefined>;
5972
+ /** Override the X-Langfuse-Sdk-Version header */
5973
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
5974
+ /** Override the X-Langfuse-Public-Key header */
5975
+ xLangfusePublicKey?: Supplier<string | undefined>;
5976
+ /** Additional headers to include in requests. */
5977
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
5978
+ }
5979
+ interface RequestOptions {
5980
+ /** The maximum time to wait for a response in seconds. */
5981
+ timeoutInSeconds?: number;
5982
+ /** The number of times to retry the request. Defaults to 2. */
5983
+ maxRetries?: number;
5984
+ /** A hook to abort the request. */
5985
+ abortSignal?: AbortSignal;
5986
+ /** Override the X-Langfuse-Sdk-Name header */
5987
+ xLangfuseSdkName?: string | undefined;
5988
+ /** Override the X-Langfuse-Sdk-Version header */
5989
+ xLangfuseSdkVersion?: string | undefined;
5990
+ /** Override the X-Langfuse-Public-Key header */
5991
+ xLangfusePublicKey?: string | undefined;
5992
+ /** Additional query string parameters to include in the request. */
5993
+ queryParams?: Record<string, unknown>;
5994
+ /** Additional headers to include in the request. */
5995
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
5996
+ }
5997
+ }
5998
+ declare class MetricsV1 {
5999
+ protected readonly _options: MetricsV1.Options;
6000
+ constructor(_options: MetricsV1.Options);
6001
+ /**
6002
+ * Get metrics from the Langfuse project using a query object.
6003
+ *
6004
+ * Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
6005
+ *
6006
+ * For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
6007
+ *
6008
+ * @param {LangfuseAPI.legacy.GetMetricsRequest} request
6009
+ * @param {MetricsV1.RequestOptions} requestOptions - Request-specific configuration.
6010
+ *
6011
+ * @throws {@link LangfuseAPI.Error}
6012
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6013
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6014
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6015
+ * @throws {@link LangfuseAPI.NotFoundError}
6016
+ *
6017
+ * @example
6018
+ * await client.legacy.metricsV1.metrics({
6019
+ * query: "query"
6020
+ * })
6021
+ */
6022
+ metrics(request: GetMetricsRequest, requestOptions?: MetricsV1.RequestOptions): HttpResponsePromise<MetricsResponse>;
6023
+ private __metrics;
6024
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
6025
+ }
6026
+
6027
+ /**
6028
+ * This file was auto-generated by Fern from our API Definition.
6029
+ */
6030
+
6031
+ declare namespace ObservationsV1 {
6032
+ interface Options {
6033
+ environment: Supplier<string>;
6034
+ /** Specify a custom URL to connect the client to. */
6035
+ baseUrl?: Supplier<string>;
6036
+ username?: Supplier<string | undefined>;
6037
+ password?: Supplier<string | undefined>;
6038
+ /** Override the X-Langfuse-Sdk-Name header */
6039
+ xLangfuseSdkName?: Supplier<string | undefined>;
6040
+ /** Override the X-Langfuse-Sdk-Version header */
6041
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
6042
+ /** Override the X-Langfuse-Public-Key header */
6043
+ xLangfusePublicKey?: Supplier<string | undefined>;
6044
+ /** Additional headers to include in requests. */
6045
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6046
+ }
6047
+ interface RequestOptions {
6048
+ /** The maximum time to wait for a response in seconds. */
6049
+ timeoutInSeconds?: number;
6050
+ /** The number of times to retry the request. Defaults to 2. */
6051
+ maxRetries?: number;
6052
+ /** A hook to abort the request. */
6053
+ abortSignal?: AbortSignal;
6054
+ /** Override the X-Langfuse-Sdk-Name header */
6055
+ xLangfuseSdkName?: string | undefined;
6056
+ /** Override the X-Langfuse-Sdk-Version header */
6057
+ xLangfuseSdkVersion?: string | undefined;
6058
+ /** Override the X-Langfuse-Public-Key header */
6059
+ xLangfusePublicKey?: string | undefined;
6060
+ /** Additional query string parameters to include in the request. */
6061
+ queryParams?: Record<string, unknown>;
6062
+ /** Additional headers to include in the request. */
6063
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6064
+ }
6065
+ }
6066
+ declare class ObservationsV1 {
6067
+ protected readonly _options: ObservationsV1.Options;
6068
+ constructor(_options: ObservationsV1.Options);
6069
+ /**
6070
+ * Get a observation
6071
+ *
6072
+ * @param {string} observationId - The unique langfuse identifier of an observation, can be an event, span or generation
6073
+ * @param {ObservationsV1.RequestOptions} requestOptions - Request-specific configuration.
6074
+ *
6075
+ * @throws {@link LangfuseAPI.Error}
6076
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6077
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6078
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6079
+ * @throws {@link LangfuseAPI.NotFoundError}
6080
+ *
6081
+ * @example
6082
+ * await client.legacy.observationsV1.get("observationId")
6083
+ */
6084
+ get(observationId: string, requestOptions?: ObservationsV1.RequestOptions): HttpResponsePromise<ObservationsView>;
6085
+ private __get;
6086
+ /**
6087
+ * Get a list of observations.
6088
+ *
6089
+ * Consider using the [v2 observations endpoint](/api-reference#tag/observationsv2/GET/api/public/v2/observations) for cursor-based pagination and field selection.
6090
+ *
6091
+ * @param {LangfuseAPI.legacy.GetObservationsRequest} request
6092
+ * @param {ObservationsV1.RequestOptions} requestOptions - Request-specific configuration.
6093
+ *
6094
+ * @throws {@link LangfuseAPI.Error}
6095
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6096
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6097
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6098
+ * @throws {@link LangfuseAPI.NotFoundError}
6099
+ *
6100
+ * @example
6101
+ * await client.legacy.observationsV1.getMany()
6102
+ */
6103
+ getMany(request?: GetObservationsRequest, requestOptions?: ObservationsV1.RequestOptions): HttpResponsePromise<ObservationsViews>;
6104
+ private __getMany;
6105
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
6106
+ }
6107
+
6108
+ /**
6109
+ * This file was auto-generated by Fern from our API Definition.
6110
+ */
6111
+
6112
+ declare namespace ScoreV1 {
6113
+ interface Options {
6114
+ environment: Supplier<string>;
6115
+ /** Specify a custom URL to connect the client to. */
6116
+ baseUrl?: Supplier<string>;
6117
+ username?: Supplier<string | undefined>;
6118
+ password?: Supplier<string | undefined>;
6119
+ /** Override the X-Langfuse-Sdk-Name header */
6120
+ xLangfuseSdkName?: Supplier<string | undefined>;
6121
+ /** Override the X-Langfuse-Sdk-Version header */
6122
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
6123
+ /** Override the X-Langfuse-Public-Key header */
6124
+ xLangfusePublicKey?: Supplier<string | undefined>;
6125
+ /** Additional headers to include in requests. */
6126
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6127
+ }
6128
+ interface RequestOptions {
6129
+ /** The maximum time to wait for a response in seconds. */
6130
+ timeoutInSeconds?: number;
6131
+ /** The number of times to retry the request. Defaults to 2. */
6132
+ maxRetries?: number;
6133
+ /** A hook to abort the request. */
6134
+ abortSignal?: AbortSignal;
6135
+ /** Override the X-Langfuse-Sdk-Name header */
6136
+ xLangfuseSdkName?: string | undefined;
6137
+ /** Override the X-Langfuse-Sdk-Version header */
6138
+ xLangfuseSdkVersion?: string | undefined;
6139
+ /** Override the X-Langfuse-Public-Key header */
6140
+ xLangfusePublicKey?: string | undefined;
6141
+ /** Additional query string parameters to include in the request. */
6142
+ queryParams?: Record<string, unknown>;
6143
+ /** Additional headers to include in the request. */
6144
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6145
+ }
6146
+ }
6147
+ declare class ScoreV1 {
6148
+ protected readonly _options: ScoreV1.Options;
6149
+ constructor(_options: ScoreV1.Options);
6150
+ /**
6151
+ * Create a score (supports both trace and session scores)
6152
+ *
6153
+ * @param {LangfuseAPI.legacy.CreateScoreRequest} request
6154
+ * @param {ScoreV1.RequestOptions} requestOptions - Request-specific configuration.
6155
+ *
6156
+ * @throws {@link LangfuseAPI.Error}
6157
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6158
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6159
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6160
+ * @throws {@link LangfuseAPI.NotFoundError}
6161
+ *
6162
+ * @example
6163
+ * await client.legacy.scoreV1.create({
6164
+ * id: undefined,
6165
+ * traceId: undefined,
6166
+ * sessionId: undefined,
6167
+ * observationId: undefined,
6168
+ * datasetRunId: undefined,
6169
+ * name: "name",
6170
+ * value: 1.1,
6171
+ * comment: undefined,
6172
+ * metadata: undefined,
6173
+ * environment: undefined,
6174
+ * queueId: undefined,
6175
+ * dataType: undefined,
6176
+ * configId: undefined
6177
+ * })
6178
+ */
6179
+ create(request: CreateScoreRequest, requestOptions?: ScoreV1.RequestOptions): HttpResponsePromise<CreateScoreResponse>;
6180
+ private __create;
6181
+ /**
6182
+ * Delete a score (supports both trace and session scores)
6183
+ *
6184
+ * @param {string} scoreId - The unique langfuse identifier of a score
6185
+ * @param {ScoreV1.RequestOptions} requestOptions - Request-specific configuration.
6186
+ *
6187
+ * @throws {@link LangfuseAPI.Error}
6188
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6189
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6190
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6191
+ * @throws {@link LangfuseAPI.NotFoundError}
6192
+ *
6193
+ * @example
6194
+ * await client.legacy.scoreV1.delete("scoreId")
6195
+ */
6196
+ delete(scoreId: string, requestOptions?: ScoreV1.RequestOptions): HttpResponsePromise<void>;
6197
+ private __delete;
6198
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
6199
+ }
6200
+
6201
+ /**
6202
+ * This file was auto-generated by Fern from our API Definition.
6203
+ */
6204
+
6205
+ declare namespace Legacy {
6206
+ interface Options {
6207
+ environment: Supplier<string>;
6208
+ /** Specify a custom URL to connect the client to. */
6209
+ baseUrl?: Supplier<string>;
6210
+ username?: Supplier<string | undefined>;
6211
+ password?: Supplier<string | undefined>;
6212
+ /** Override the X-Langfuse-Sdk-Name header */
6213
+ xLangfuseSdkName?: Supplier<string | undefined>;
6214
+ /** Override the X-Langfuse-Sdk-Version header */
6215
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
6216
+ /** Override the X-Langfuse-Public-Key header */
6217
+ xLangfusePublicKey?: Supplier<string | undefined>;
6218
+ /** Additional headers to include in requests. */
6219
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6220
+ }
6221
+ }
6222
+ declare class Legacy {
6223
+ protected readonly _options: Legacy.Options;
6224
+ protected _metricsV1: MetricsV1 | undefined;
6225
+ protected _observationsV1: ObservationsV1 | undefined;
6226
+ protected _scoreV1: ScoreV1 | undefined;
6227
+ constructor(_options: Legacy.Options);
6228
+ get metricsV1(): MetricsV1;
6229
+ get observationsV1(): ObservationsV1;
6230
+ get scoreV1(): ScoreV1;
6231
+ }
6232
+
5883
6233
  /**
5884
6234
  * This file was auto-generated by Fern from our API Definition.
5885
6235
  */
@@ -6081,7 +6431,7 @@ declare class Media {
6081
6431
  * This file was auto-generated by Fern from our API Definition.
6082
6432
  */
6083
6433
 
6084
- declare namespace MetricsV2 {
6434
+ declare namespace Metrics {
6085
6435
  interface Options {
6086
6436
  environment: Supplier<string>;
6087
6437
  /** Specify a custom URL to connect the client to. */
@@ -6116,9 +6466,9 @@ declare namespace MetricsV2 {
6116
6466
  headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6117
6467
  }
6118
6468
  }
6119
- declare class MetricsV2 {
6120
- protected readonly _options: MetricsV2.Options;
6121
- constructor(_options: MetricsV2.Options);
6469
+ declare class Metrics {
6470
+ protected readonly _options: Metrics.Options;
6471
+ constructor(_options: Metrics.Options);
6122
6472
  /**
6123
6473
  * Get metrics from the Langfuse project using a query object. V2 endpoint with optimized performance.
6124
6474
  *
@@ -6223,74 +6573,6 @@ declare class MetricsV2 {
6223
6573
  * - `auto` bins the data into approximately 50 buckets based on the time range
6224
6574
  *
6225
6575
  * @param {LangfuseAPI.GetMetricsV2Request} request
6226
- * @param {MetricsV2.RequestOptions} requestOptions - Request-specific configuration.
6227
- *
6228
- * @throws {@link LangfuseAPI.Error}
6229
- * @throws {@link LangfuseAPI.UnauthorizedError}
6230
- * @throws {@link LangfuseAPI.AccessDeniedError}
6231
- * @throws {@link LangfuseAPI.MethodNotAllowedError}
6232
- * @throws {@link LangfuseAPI.NotFoundError}
6233
- *
6234
- * @example
6235
- * await client.metricsV2.metrics({
6236
- * query: "query"
6237
- * })
6238
- */
6239
- metrics(request: GetMetricsV2Request, requestOptions?: MetricsV2.RequestOptions): HttpResponsePromise<MetricsV2Response>;
6240
- private __metrics;
6241
- protected _getAuthorizationHeader(): Promise<string | undefined>;
6242
- }
6243
-
6244
- /**
6245
- * This file was auto-generated by Fern from our API Definition.
6246
- */
6247
-
6248
- declare namespace Metrics {
6249
- interface Options {
6250
- environment: Supplier<string>;
6251
- /** Specify a custom URL to connect the client to. */
6252
- baseUrl?: Supplier<string>;
6253
- username?: Supplier<string | undefined>;
6254
- password?: Supplier<string | undefined>;
6255
- /** Override the X-Langfuse-Sdk-Name header */
6256
- xLangfuseSdkName?: Supplier<string | undefined>;
6257
- /** Override the X-Langfuse-Sdk-Version header */
6258
- xLangfuseSdkVersion?: Supplier<string | undefined>;
6259
- /** Override the X-Langfuse-Public-Key header */
6260
- xLangfusePublicKey?: Supplier<string | undefined>;
6261
- /** Additional headers to include in requests. */
6262
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6263
- }
6264
- interface RequestOptions {
6265
- /** The maximum time to wait for a response in seconds. */
6266
- timeoutInSeconds?: number;
6267
- /** The number of times to retry the request. Defaults to 2. */
6268
- maxRetries?: number;
6269
- /** A hook to abort the request. */
6270
- abortSignal?: AbortSignal;
6271
- /** Override the X-Langfuse-Sdk-Name header */
6272
- xLangfuseSdkName?: string | undefined;
6273
- /** Override the X-Langfuse-Sdk-Version header */
6274
- xLangfuseSdkVersion?: string | undefined;
6275
- /** Override the X-Langfuse-Public-Key header */
6276
- xLangfusePublicKey?: string | undefined;
6277
- /** Additional query string parameters to include in the request. */
6278
- queryParams?: Record<string, unknown>;
6279
- /** Additional headers to include in the request. */
6280
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6281
- }
6282
- }
6283
- declare class Metrics {
6284
- protected readonly _options: Metrics.Options;
6285
- constructor(_options: Metrics.Options);
6286
- /**
6287
- * Get metrics from the Langfuse project using a query object.
6288
- *
6289
- * Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
6290
- *
6291
- * For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
6292
- *
6293
- * @param {LangfuseAPI.GetMetricsRequest} request
6294
6576
  * @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
6295
6577
  *
6296
6578
  * @throws {@link LangfuseAPI.Error}
@@ -6304,7 +6586,7 @@ declare class Metrics {
6304
6586
  * query: "query"
6305
6587
  * })
6306
6588
  */
6307
- metrics(request: GetMetricsRequest, requestOptions?: Metrics.RequestOptions): HttpResponsePromise<MetricsResponse>;
6589
+ metrics(request: GetMetricsV2Request, requestOptions?: Metrics.RequestOptions): HttpResponsePromise<MetricsV2Response>;
6308
6590
  private __metrics;
6309
6591
  protected _getAuthorizationHeader(): Promise<string | undefined>;
6310
6592
  }
@@ -6437,7 +6719,7 @@ declare class Models {
6437
6719
  * This file was auto-generated by Fern from our API Definition.
6438
6720
  */
6439
6721
 
6440
- declare namespace ObservationsV2 {
6722
+ declare namespace Observations {
6441
6723
  interface Options {
6442
6724
  environment: Supplier<string>;
6443
6725
  /** Specify a custom URL to connect the client to. */
@@ -6472,9 +6754,9 @@ declare namespace ObservationsV2 {
6472
6754
  headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6473
6755
  }
6474
6756
  }
6475
- declare class ObservationsV2 {
6476
- protected readonly _options: ObservationsV2.Options;
6477
- constructor(_options: ObservationsV2.Options);
6757
+ declare class Observations {
6758
+ protected readonly _options: Observations.Options;
6759
+ constructor(_options: Observations.Options);
6478
6760
  /**
6479
6761
  * Get a list of observations with cursor-based pagination and flexible field selection.
6480
6762
  *
@@ -6502,87 +6784,6 @@ declare class ObservationsV2 {
6502
6784
  * When using the `filter` parameter, it takes precedence over individual query parameter filters.
6503
6785
  *
6504
6786
  * @param {LangfuseAPI.GetObservationsV2Request} request
6505
- * @param {ObservationsV2.RequestOptions} requestOptions - Request-specific configuration.
6506
- *
6507
- * @throws {@link LangfuseAPI.Error}
6508
- * @throws {@link LangfuseAPI.UnauthorizedError}
6509
- * @throws {@link LangfuseAPI.AccessDeniedError}
6510
- * @throws {@link LangfuseAPI.MethodNotAllowedError}
6511
- * @throws {@link LangfuseAPI.NotFoundError}
6512
- *
6513
- * @example
6514
- * await client.observationsV2.getMany()
6515
- */
6516
- getMany(request?: GetObservationsV2Request, requestOptions?: ObservationsV2.RequestOptions): HttpResponsePromise<ObservationsV2Response>;
6517
- private __getMany;
6518
- protected _getAuthorizationHeader(): Promise<string | undefined>;
6519
- }
6520
-
6521
- /**
6522
- * This file was auto-generated by Fern from our API Definition.
6523
- */
6524
-
6525
- declare namespace Observations {
6526
- interface Options {
6527
- environment: Supplier<string>;
6528
- /** Specify a custom URL to connect the client to. */
6529
- baseUrl?: Supplier<string>;
6530
- username?: Supplier<string | undefined>;
6531
- password?: Supplier<string | undefined>;
6532
- /** Override the X-Langfuse-Sdk-Name header */
6533
- xLangfuseSdkName?: Supplier<string | undefined>;
6534
- /** Override the X-Langfuse-Sdk-Version header */
6535
- xLangfuseSdkVersion?: Supplier<string | undefined>;
6536
- /** Override the X-Langfuse-Public-Key header */
6537
- xLangfusePublicKey?: Supplier<string | undefined>;
6538
- /** Additional headers to include in requests. */
6539
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6540
- }
6541
- interface RequestOptions {
6542
- /** The maximum time to wait for a response in seconds. */
6543
- timeoutInSeconds?: number;
6544
- /** The number of times to retry the request. Defaults to 2. */
6545
- maxRetries?: number;
6546
- /** A hook to abort the request. */
6547
- abortSignal?: AbortSignal;
6548
- /** Override the X-Langfuse-Sdk-Name header */
6549
- xLangfuseSdkName?: string | undefined;
6550
- /** Override the X-Langfuse-Sdk-Version header */
6551
- xLangfuseSdkVersion?: string | undefined;
6552
- /** Override the X-Langfuse-Public-Key header */
6553
- xLangfusePublicKey?: string | undefined;
6554
- /** Additional query string parameters to include in the request. */
6555
- queryParams?: Record<string, unknown>;
6556
- /** Additional headers to include in the request. */
6557
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6558
- }
6559
- }
6560
- declare class Observations {
6561
- protected readonly _options: Observations.Options;
6562
- constructor(_options: Observations.Options);
6563
- /**
6564
- * Get a observation
6565
- *
6566
- * @param {string} observationId - The unique langfuse identifier of an observation, can be an event, span or generation
6567
- * @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
6568
- *
6569
- * @throws {@link LangfuseAPI.Error}
6570
- * @throws {@link LangfuseAPI.UnauthorizedError}
6571
- * @throws {@link LangfuseAPI.AccessDeniedError}
6572
- * @throws {@link LangfuseAPI.MethodNotAllowedError}
6573
- * @throws {@link LangfuseAPI.NotFoundError}
6574
- *
6575
- * @example
6576
- * await client.observations.get("observationId")
6577
- */
6578
- get(observationId: string, requestOptions?: Observations.RequestOptions): HttpResponsePromise<ObservationsView>;
6579
- private __get;
6580
- /**
6581
- * Get a list of observations.
6582
- *
6583
- * Consider using the [v2 observations endpoint](/api-reference#tag/observationsv2/GET/api/public/v2/observations) for cursor-based pagination and field selection.
6584
- *
6585
- * @param {LangfuseAPI.GetObservationsRequest} request
6586
6787
  * @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
6587
6788
  *
6588
6789
  * @throws {@link LangfuseAPI.Error}
@@ -6594,7 +6795,7 @@ declare class Observations {
6594
6795
  * @example
6595
6796
  * await client.observations.getMany()
6596
6797
  */
6597
- getMany(request?: GetObservationsRequest, requestOptions?: Observations.RequestOptions): HttpResponsePromise<ObservationsViews>;
6798
+ getMany(request?: GetObservationsV2Request, requestOptions?: Observations.RequestOptions): HttpResponsePromise<ObservationsV2Response>;
6598
6799
  private __getMany;
6599
6800
  protected _getAuthorizationHeader(): Promise<string | undefined>;
6600
6801
  }
@@ -7581,7 +7782,7 @@ declare class ScoreConfigs {
7581
7782
  * This file was auto-generated by Fern from our API Definition.
7582
7783
  */
7583
7784
 
7584
- declare namespace ScoreV2 {
7785
+ declare namespace Scores {
7585
7786
  interface Options {
7586
7787
  environment: Supplier<string>;
7587
7788
  /** Specify a custom URL to connect the client to. */
@@ -7616,14 +7817,14 @@ declare namespace ScoreV2 {
7616
7817
  headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
7617
7818
  }
7618
7819
  }
7619
- declare class ScoreV2 {
7620
- protected readonly _options: ScoreV2.Options;
7621
- constructor(_options: ScoreV2.Options);
7820
+ declare class Scores {
7821
+ protected readonly _options: Scores.Options;
7822
+ constructor(_options: Scores.Options);
7622
7823
  /**
7623
7824
  * Get a list of scores (supports both trace and session scores)
7624
7825
  *
7625
7826
  * @param {LangfuseAPI.GetScoresRequest} request
7626
- * @param {ScoreV2.RequestOptions} requestOptions - Request-specific configuration.
7827
+ * @param {Scores.RequestOptions} requestOptions - Request-specific configuration.
7627
7828
  *
7628
7829
  * @throws {@link LangfuseAPI.Error}
7629
7830
  * @throws {@link LangfuseAPI.UnauthorizedError}
@@ -7632,15 +7833,15 @@ declare class ScoreV2 {
7632
7833
  * @throws {@link LangfuseAPI.NotFoundError}
7633
7834
  *
7634
7835
  * @example
7635
- * await client.scoreV2.get()
7836
+ * await client.scores.getMany()
7636
7837
  */
7637
- get(request?: GetScoresRequest, requestOptions?: ScoreV2.RequestOptions): HttpResponsePromise<GetScoresResponse>;
7638
- private __get;
7838
+ getMany(request?: GetScoresRequest, requestOptions?: Scores.RequestOptions): HttpResponsePromise<GetScoresResponse>;
7839
+ private __getMany;
7639
7840
  /**
7640
7841
  * Get a score (supports both trace and session scores)
7641
7842
  *
7642
7843
  * @param {string} scoreId - The unique langfuse identifier of a score
7643
- * @param {ScoreV2.RequestOptions} requestOptions - Request-specific configuration.
7844
+ * @param {Scores.RequestOptions} requestOptions - Request-specific configuration.
7644
7845
  *
7645
7846
  * @throws {@link LangfuseAPI.Error}
7646
7847
  * @throws {@link LangfuseAPI.UnauthorizedError}
@@ -7649,106 +7850,13 @@ declare class ScoreV2 {
7649
7850
  * @throws {@link LangfuseAPI.NotFoundError}
7650
7851
  *
7651
7852
  * @example
7652
- * await client.scoreV2.getById("scoreId")
7853
+ * await client.scores.getById("scoreId")
7653
7854
  */
7654
- getById(scoreId: string, requestOptions?: ScoreV2.RequestOptions): HttpResponsePromise<Score$1>;
7855
+ getById(scoreId: string, requestOptions?: Scores.RequestOptions): HttpResponsePromise<Score>;
7655
7856
  private __getById;
7656
7857
  protected _getAuthorizationHeader(): Promise<string | undefined>;
7657
7858
  }
7658
7859
 
7659
- /**
7660
- * This file was auto-generated by Fern from our API Definition.
7661
- */
7662
-
7663
- declare namespace Score {
7664
- interface Options {
7665
- environment: Supplier<string>;
7666
- /** Specify a custom URL to connect the client to. */
7667
- baseUrl?: Supplier<string>;
7668
- username?: Supplier<string | undefined>;
7669
- password?: Supplier<string | undefined>;
7670
- /** Override the X-Langfuse-Sdk-Name header */
7671
- xLangfuseSdkName?: Supplier<string | undefined>;
7672
- /** Override the X-Langfuse-Sdk-Version header */
7673
- xLangfuseSdkVersion?: Supplier<string | undefined>;
7674
- /** Override the X-Langfuse-Public-Key header */
7675
- xLangfusePublicKey?: Supplier<string | undefined>;
7676
- /** Additional headers to include in requests. */
7677
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
7678
- }
7679
- interface RequestOptions {
7680
- /** The maximum time to wait for a response in seconds. */
7681
- timeoutInSeconds?: number;
7682
- /** The number of times to retry the request. Defaults to 2. */
7683
- maxRetries?: number;
7684
- /** A hook to abort the request. */
7685
- abortSignal?: AbortSignal;
7686
- /** Override the X-Langfuse-Sdk-Name header */
7687
- xLangfuseSdkName?: string | undefined;
7688
- /** Override the X-Langfuse-Sdk-Version header */
7689
- xLangfuseSdkVersion?: string | undefined;
7690
- /** Override the X-Langfuse-Public-Key header */
7691
- xLangfusePublicKey?: string | undefined;
7692
- /** Additional query string parameters to include in the request. */
7693
- queryParams?: Record<string, unknown>;
7694
- /** Additional headers to include in the request. */
7695
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
7696
- }
7697
- }
7698
- declare class Score {
7699
- protected readonly _options: Score.Options;
7700
- constructor(_options: Score.Options);
7701
- /**
7702
- * Create a score (supports both trace and session scores)
7703
- *
7704
- * @param {LangfuseAPI.CreateScoreRequest} request
7705
- * @param {Score.RequestOptions} requestOptions - Request-specific configuration.
7706
- *
7707
- * @throws {@link LangfuseAPI.Error}
7708
- * @throws {@link LangfuseAPI.UnauthorizedError}
7709
- * @throws {@link LangfuseAPI.AccessDeniedError}
7710
- * @throws {@link LangfuseAPI.MethodNotAllowedError}
7711
- * @throws {@link LangfuseAPI.NotFoundError}
7712
- *
7713
- * @example
7714
- * await client.score.create({
7715
- * id: undefined,
7716
- * traceId: undefined,
7717
- * sessionId: undefined,
7718
- * observationId: undefined,
7719
- * datasetRunId: undefined,
7720
- * name: "name",
7721
- * value: 1.1,
7722
- * comment: undefined,
7723
- * metadata: undefined,
7724
- * environment: undefined,
7725
- * queueId: undefined,
7726
- * dataType: undefined,
7727
- * configId: undefined
7728
- * })
7729
- */
7730
- create(request: CreateScoreRequest, requestOptions?: Score.RequestOptions): HttpResponsePromise<CreateScoreResponse>;
7731
- private __create;
7732
- /**
7733
- * Delete a score (supports both trace and session scores)
7734
- *
7735
- * @param {string} scoreId - The unique langfuse identifier of a score
7736
- * @param {Score.RequestOptions} requestOptions - Request-specific configuration.
7737
- *
7738
- * @throws {@link LangfuseAPI.Error}
7739
- * @throws {@link LangfuseAPI.UnauthorizedError}
7740
- * @throws {@link LangfuseAPI.AccessDeniedError}
7741
- * @throws {@link LangfuseAPI.MethodNotAllowedError}
7742
- * @throws {@link LangfuseAPI.NotFoundError}
7743
- *
7744
- * @example
7745
- * await client.score.delete("scoreId")
7746
- */
7747
- delete(scoreId: string, requestOptions?: Score.RequestOptions): HttpResponsePromise<void>;
7748
- private __delete;
7749
- protected _getAuthorizationHeader(): Promise<string | undefined>;
7750
- }
7751
-
7752
7860
  /**
7753
7861
  * This file was auto-generated by Fern from our API Definition.
7754
7862
  */
@@ -7992,12 +8100,11 @@ declare class LangfuseAPIClient {
7992
8100
  protected _datasets: Datasets | undefined;
7993
8101
  protected _health: Health | undefined;
7994
8102
  protected _ingestion: Ingestion | undefined;
8103
+ protected _legacy: Legacy | undefined;
7995
8104
  protected _llmConnections: LlmConnections | undefined;
7996
8105
  protected _media: Media | undefined;
7997
- protected _metricsV2: MetricsV2 | undefined;
7998
8106
  protected _metrics: Metrics | undefined;
7999
8107
  protected _models: Models | undefined;
8000
- protected _observationsV2: ObservationsV2 | undefined;
8001
8108
  protected _observations: Observations | undefined;
8002
8109
  protected _opentelemetry: Opentelemetry | undefined;
8003
8110
  protected _organizations: Organizations | undefined;
@@ -8006,8 +8113,7 @@ declare class LangfuseAPIClient {
8006
8113
  protected _prompts: Prompts | undefined;
8007
8114
  protected _scim: Scim | undefined;
8008
8115
  protected _scoreConfigs: ScoreConfigs | undefined;
8009
- protected _scoreV2: ScoreV2 | undefined;
8010
- protected _score: Score | undefined;
8116
+ protected _scores: Scores | undefined;
8011
8117
  protected _sessions: Sessions | undefined;
8012
8118
  protected _trace: Trace | undefined;
8013
8119
  constructor(_options: LangfuseAPIClient.Options);
@@ -8019,12 +8125,11 @@ declare class LangfuseAPIClient {
8019
8125
  get datasets(): Datasets;
8020
8126
  get health(): Health;
8021
8127
  get ingestion(): Ingestion;
8128
+ get legacy(): Legacy;
8022
8129
  get llmConnections(): LlmConnections;
8023
8130
  get media(): Media;
8024
- get metricsV2(): MetricsV2;
8025
8131
  get metrics(): Metrics;
8026
8132
  get models(): Models;
8027
- get observationsV2(): ObservationsV2;
8028
8133
  get observations(): Observations;
8029
8134
  get opentelemetry(): Opentelemetry;
8030
8135
  get organizations(): Organizations;
@@ -8033,8 +8138,7 @@ declare class LangfuseAPIClient {
8033
8138
  get prompts(): Prompts;
8034
8139
  get scim(): Scim;
8035
8140
  get scoreConfigs(): ScoreConfigs;
8036
- get scoreV2(): ScoreV2;
8037
- get score(): Score;
8141
+ get scores(): Scores;
8038
8142
  get sessions(): Sessions;
8039
8143
  get trace(): Trace;
8040
8144
  }
@@ -8406,4 +8510,4 @@ interface PropagateAttributesParams {
8406
8510
  declare function propagateAttributes<A extends unknown[], F extends (...args: A) => ReturnType<F>>(params: PropagateAttributesParams, fn: F): ReturnType<F>;
8407
8511
  declare function getPropagatedAttributesFromContext(context: Context): Record<string, string | string[]>;
8408
8512
 
8409
- export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueAssignmentRequest, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, BlobStorageExportFrequency, BlobStorageExportMode, type BlobStorageIntegrationDeletionResponse, BlobStorageIntegrationFileType, type BlobStorageIntegrationResponse, BlobStorageIntegrationType, type BlobStorageIntegrationsResponse, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageType, type ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CorrectionScore, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, CreateChatPromptType, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, type CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, CreateTextPromptType, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueAssignmentResponse, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteMembershipRequest, type DeletePromptRequest, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetLlmConnectionsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsRequest, type GetMetricsV2Request, type GetModelsRequest, type GetObservationsRequest, type GetObservationsV2Request, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataCorrection, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_EXPERIMENT_ENVIRONMENT, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelContextKeys, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LlmAdapter, type LlmConnection, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipDeletionResponse, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsResponse, type MetricsV2Response, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type ObservationV2, type Observations$1 as Observations, type ObservationsV2Meta, type ObservationsV2Response, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type Organization, type OrganizationApiKey, type OrganizationApiKeysResponse, type OrganizationProject, type OrganizationProjectsResponse, type OtelAttribute, type OtelAttributeValue, type OtelResource, type OtelResourceSpan, type OtelScope, type OtelScopeSpan, type OtelSpan, type OtelTraceRequest, type OtelTraceResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedLlmConnections, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, PlaceholderMessageType, type PricingTier, type PricingTierCondition, type PricingTierInput, PricingTierOperator, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, PromptType, type PropagateAttributesParams, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score$1 as Score, type ScoreBody, type ScoreConfig, ScoreConfigDataType, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateScoreConfigRequest, type UpdateSpanBody, type UpdateSpanEvent, type UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$s as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$r as blobStorageIntegrations, bytesToBase64, index$q as comments, index$p as commons, configureGlobalLogger, createExperimentId, createExperimentItemId, createLogger, index$o as datasetItems, index$n as datasetRunItems, index$m as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, index$l as health, index$k as ingestion, index$j as llmConnections, LoggerSingleton as logger, index$i as media, index$g as metrics, index$h as metricsV2, index$f as models, index$d as observations, index$e as observationsV2, index$c as opentelemetry, index$b as organizations, index$a as projects, index as promptVersion, index$9 as prompts, propagateAttributes, resetGlobalLogger, safeSetTimeout, index$8 as scim, index$5 as score, index$7 as scoreConfigs, index$6 as scoreV2, serializeValue, index$4 as sessions, index$3 as trace, index$1 as utils };
8513
+ export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueAssignmentRequest, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, BlobStorageExportFrequency, BlobStorageExportMode, type BlobStorageIntegrationDeletionResponse, BlobStorageIntegrationFileType, type BlobStorageIntegrationResponse, type BlobStorageIntegrationStatusResponse, BlobStorageIntegrationType, type BlobStorageIntegrationsResponse, BlobStorageSyncStatus, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageType, type ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CorrectionScore, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, CreateChatPromptType, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, type CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, CreateTextPromptType, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueAssignmentResponse, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteMembershipRequest, type DeletePromptRequest, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetLlmConnectionsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsV2Request, type GetModelsRequest, type GetObservationsV2Request, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataCorrection, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_EXPERIMENT_ENVIRONMENT, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelContextKeys, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LlmAdapter, type LlmConnection, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipDeletionResponse, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsV2Response, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type ObservationV2, type ObservationsV2Meta, type ObservationsV2Response, type ObservationsView, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type Organization, type OrganizationApiKey, type OrganizationApiKeysResponse, type OrganizationProject, type OrganizationProjectsResponse, type OtelAttribute, type OtelAttributeValue, type OtelResource, type OtelResourceSpan, type OtelScope, type OtelScopeSpan, type OtelSpan, type OtelTraceRequest, type OtelTraceResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedLlmConnections, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, PlaceholderMessageType, type PricingTier, type PricingTierCondition, type PricingTierInput, PricingTierOperator, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, PromptType, type PropagateAttributesParams, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score, type ScoreBody, type ScoreConfig, ScoreConfigDataType, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1$1 as ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateScoreConfigRequest, type UpdateSpanBody, type UpdateSpanEvent, type UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$t as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$s as blobStorageIntegrations, bytesToBase64, index$r as comments, index$q as commons, configureGlobalLogger, createExperimentId, createExperimentItemId, createLogger, index$p as datasetItems, index$o as datasetRunItems, index$n as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, index$m as health, index$l as ingestion, index$h as legacy, index$g as llmConnections, LoggerSingleton as logger, index$f as media, index$e as metrics, index$d as models, index$c as observations, index$b as opentelemetry, index$a as organizations, index$9 as projects, index as promptVersion, index$8 as prompts, propagateAttributes, resetGlobalLogger, safeSetTimeout, index$7 as scim, index$6 as scoreConfigs, index$5 as scores, serializeValue, index$4 as sessions, index$3 as trace, index$1 as utils };