@langfuse/core 4.5.0 → 4.5.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.ts CHANGED
@@ -375,23 +375,23 @@ interface GetAnnotationQueueItemsRequest {
375
375
  limit?: number;
376
376
  }
377
377
 
378
- type index$q_AnnotationQueue = AnnotationQueue;
379
- type index$q_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
380
- type index$q_AnnotationQueueItem = AnnotationQueueItem;
381
- declare const index$q_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
382
- declare const index$q_AnnotationQueueStatus: typeof AnnotationQueueStatus;
383
- type index$q_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
384
- type index$q_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
385
- type index$q_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
386
- type index$q_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
387
- type index$q_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
388
- type index$q_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
389
- type index$q_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
390
- type index$q_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
391
- type index$q_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
392
- type index$q_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
393
- declare namespace index$q {
394
- export { type index$q_AnnotationQueue as AnnotationQueue, type index$q_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$q_AnnotationQueueItem as AnnotationQueueItem, index$q_AnnotationQueueObjectType as AnnotationQueueObjectType, index$q_AnnotationQueueStatus as AnnotationQueueStatus, type index$q_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$q_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$q_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$q_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$q_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$q_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$q_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$q_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$q_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$q_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
378
+ type index$s_AnnotationQueue = AnnotationQueue;
379
+ type index$s_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
380
+ type index$s_AnnotationQueueItem = AnnotationQueueItem;
381
+ declare const index$s_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
382
+ declare const index$s_AnnotationQueueStatus: typeof AnnotationQueueStatus;
383
+ type index$s_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
384
+ type index$s_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
385
+ type index$s_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
386
+ type index$s_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
387
+ type index$s_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
388
+ type index$s_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
389
+ type index$s_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
390
+ type index$s_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
391
+ type index$s_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
392
+ type index$s_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
393
+ declare namespace index$s {
394
+ 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 };
395
395
  }
396
396
 
397
397
  /**
@@ -505,16 +505,16 @@ interface BlobStorageIntegrationDeletionResponse {
505
505
  message: string;
506
506
  }
507
507
 
508
- declare const index$p_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
509
- declare const index$p_BlobStorageExportMode: typeof BlobStorageExportMode;
510
- type index$p_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
511
- declare const index$p_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
512
- type index$p_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
513
- declare const index$p_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
514
- type index$p_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
515
- type index$p_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
516
- declare namespace index$p {
517
- export { index$p_BlobStorageExportFrequency as BlobStorageExportFrequency, index$p_BlobStorageExportMode as BlobStorageExportMode, type index$p_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$p_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$p_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, index$p_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$p_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, type index$p_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
508
+ declare const index$r_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
509
+ declare const index$r_BlobStorageExportMode: typeof BlobStorageExportMode;
510
+ type index$r_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
511
+ declare const index$r_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
512
+ type index$r_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
513
+ declare const index$r_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
514
+ type index$r_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
515
+ type index$r_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
516
+ declare namespace index$r {
517
+ 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 };
518
518
  }
519
519
 
520
520
  /**
@@ -570,12 +570,12 @@ interface GetCommentsRequest {
570
570
  authorUserId?: string;
571
571
  }
572
572
 
573
- type index$o_CreateCommentRequest = CreateCommentRequest;
574
- type index$o_CreateCommentResponse = CreateCommentResponse;
575
- type index$o_GetCommentsRequest = GetCommentsRequest;
576
- type index$o_GetCommentsResponse = GetCommentsResponse;
577
- declare namespace index$o {
578
- export type { index$o_CreateCommentRequest as CreateCommentRequest, index$o_CreateCommentResponse as CreateCommentResponse, index$o_GetCommentsRequest as GetCommentsRequest, index$o_GetCommentsResponse as GetCommentsResponse };
573
+ type index$q_CreateCommentRequest = CreateCommentRequest;
574
+ type index$q_CreateCommentResponse = CreateCommentResponse;
575
+ type index$q_GetCommentsRequest = GetCommentsRequest;
576
+ type index$q_GetCommentsResponse = GetCommentsResponse;
577
+ declare namespace index$q {
578
+ export type { index$q_CreateCommentRequest as CreateCommentRequest, index$q_CreateCommentResponse as CreateCommentResponse, index$q_GetCommentsRequest as GetCommentsRequest, index$q_GetCommentsResponse as GetCommentsResponse };
579
579
  }
580
580
 
581
581
  /**
@@ -1536,54 +1536,54 @@ declare class MethodNotAllowedError extends LangfuseAPIError {
1536
1536
  constructor(body?: unknown, rawResponse?: RawResponse);
1537
1537
  }
1538
1538
 
1539
- type index$n_AccessDeniedError = AccessDeniedError;
1540
- declare const index$n_AccessDeniedError: typeof AccessDeniedError;
1541
- type index$n_BaseScore = BaseScore;
1542
- type index$n_BaseScoreV1 = BaseScoreV1;
1543
- type index$n_BooleanScore = BooleanScore;
1544
- type index$n_BooleanScoreV1 = BooleanScoreV1;
1545
- type index$n_CategoricalScore = CategoricalScore;
1546
- type index$n_CategoricalScoreV1 = CategoricalScoreV1;
1547
- type index$n_Comment = Comment;
1548
- declare const index$n_CommentObjectType: typeof CommentObjectType;
1549
- type index$n_ConfigCategory = ConfigCategory;
1550
- type index$n_CreateScoreValue = CreateScoreValue;
1551
- type index$n_Dataset = Dataset;
1552
- type index$n_DatasetItem = DatasetItem;
1553
- type index$n_DatasetRun = DatasetRun;
1554
- type index$n_DatasetRunItem = DatasetRunItem;
1555
- type index$n_DatasetRunWithItems = DatasetRunWithItems;
1556
- declare const index$n_DatasetStatus: typeof DatasetStatus;
1557
- type index$n_MapValue = MapValue;
1558
- type index$n_MethodNotAllowedError = MethodNotAllowedError;
1559
- declare const index$n_MethodNotAllowedError: typeof MethodNotAllowedError;
1560
- type index$n_Model = Model;
1561
- type index$n_ModelPrice = ModelPrice;
1562
- declare const index$n_ModelUsageUnit: typeof ModelUsageUnit;
1563
- type index$n_NotFoundError = NotFoundError;
1564
- declare const index$n_NotFoundError: typeof NotFoundError;
1565
- type index$n_NumericScore = NumericScore;
1566
- type index$n_NumericScoreV1 = NumericScoreV1;
1567
- type index$n_Observation = Observation;
1568
- declare const index$n_ObservationLevel: typeof ObservationLevel;
1569
- type index$n_ObservationsView = ObservationsView;
1570
- type index$n_PricingTier = PricingTier;
1571
- type index$n_PricingTierCondition = PricingTierCondition;
1572
- type index$n_PricingTierInput = PricingTierInput;
1573
- declare const index$n_PricingTierOperator: typeof PricingTierOperator;
1574
- type index$n_ScoreConfig = ScoreConfig;
1575
- declare const index$n_ScoreDataType: typeof ScoreDataType;
1576
- declare const index$n_ScoreSource: typeof ScoreSource;
1577
- declare const index$n_ScoreV1: typeof ScoreV1;
1578
- type index$n_Session = Session;
1579
- type index$n_SessionWithTraces = SessionWithTraces;
1580
- type index$n_TraceWithDetails = TraceWithDetails;
1581
- type index$n_TraceWithFullDetails = TraceWithFullDetails;
1582
- type index$n_UnauthorizedError = UnauthorizedError;
1583
- declare const index$n_UnauthorizedError: typeof UnauthorizedError;
1584
- type index$n_Usage = Usage;
1585
- declare namespace index$n {
1586
- export { index$n_AccessDeniedError as AccessDeniedError, type index$n_BaseScore as BaseScore, type index$n_BaseScoreV1 as BaseScoreV1, type index$n_BooleanScore as BooleanScore, type index$n_BooleanScoreV1 as BooleanScoreV1, type index$n_CategoricalScore as CategoricalScore, type index$n_CategoricalScoreV1 as CategoricalScoreV1, type index$n_Comment as Comment, index$n_CommentObjectType as CommentObjectType, type index$n_ConfigCategory as ConfigCategory, type index$n_CreateScoreValue as CreateScoreValue, type index$n_Dataset as Dataset, type index$n_DatasetItem as DatasetItem, type index$n_DatasetRun as DatasetRun, type index$n_DatasetRunItem as DatasetRunItem, type index$n_DatasetRunWithItems as DatasetRunWithItems, index$n_DatasetStatus as DatasetStatus, Error$1 as Error, type index$n_MapValue as MapValue, index$n_MethodNotAllowedError as MethodNotAllowedError, type index$n_Model as Model, type index$n_ModelPrice as ModelPrice, index$n_ModelUsageUnit as ModelUsageUnit, index$n_NotFoundError as NotFoundError, type index$n_NumericScore as NumericScore, type index$n_NumericScoreV1 as NumericScoreV1, type index$n_Observation as Observation, index$n_ObservationLevel as ObservationLevel, type index$n_ObservationsView as ObservationsView, type index$n_PricingTier as PricingTier, type index$n_PricingTierCondition as PricingTierCondition, type index$n_PricingTierInput as PricingTierInput, index$n_PricingTierOperator as PricingTierOperator, Score$1 as Score, type index$n_ScoreConfig as ScoreConfig, index$n_ScoreDataType as ScoreDataType, index$n_ScoreSource as ScoreSource, index$n_ScoreV1 as ScoreV1, type index$n_Session as Session, type index$n_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$n_TraceWithDetails as TraceWithDetails, type index$n_TraceWithFullDetails as TraceWithFullDetails, index$n_UnauthorizedError as UnauthorizedError, type index$n_Usage as Usage };
1539
+ type index$p_AccessDeniedError = AccessDeniedError;
1540
+ declare const index$p_AccessDeniedError: typeof AccessDeniedError;
1541
+ type index$p_BaseScore = BaseScore;
1542
+ type index$p_BaseScoreV1 = BaseScoreV1;
1543
+ type index$p_BooleanScore = BooleanScore;
1544
+ type index$p_BooleanScoreV1 = BooleanScoreV1;
1545
+ type index$p_CategoricalScore = CategoricalScore;
1546
+ type index$p_CategoricalScoreV1 = CategoricalScoreV1;
1547
+ type index$p_Comment = Comment;
1548
+ declare const index$p_CommentObjectType: typeof CommentObjectType;
1549
+ type index$p_ConfigCategory = ConfigCategory;
1550
+ type index$p_CreateScoreValue = CreateScoreValue;
1551
+ type index$p_Dataset = Dataset;
1552
+ type index$p_DatasetItem = DatasetItem;
1553
+ type index$p_DatasetRun = DatasetRun;
1554
+ type index$p_DatasetRunItem = DatasetRunItem;
1555
+ type index$p_DatasetRunWithItems = DatasetRunWithItems;
1556
+ declare const index$p_DatasetStatus: typeof DatasetStatus;
1557
+ type index$p_MapValue = MapValue;
1558
+ type index$p_MethodNotAllowedError = MethodNotAllowedError;
1559
+ declare const index$p_MethodNotAllowedError: typeof MethodNotAllowedError;
1560
+ type index$p_Model = Model;
1561
+ type index$p_ModelPrice = ModelPrice;
1562
+ declare const index$p_ModelUsageUnit: typeof ModelUsageUnit;
1563
+ type index$p_NotFoundError = NotFoundError;
1564
+ declare const index$p_NotFoundError: typeof NotFoundError;
1565
+ type index$p_NumericScore = NumericScore;
1566
+ type index$p_NumericScoreV1 = NumericScoreV1;
1567
+ type index$p_Observation = Observation;
1568
+ declare const index$p_ObservationLevel: typeof ObservationLevel;
1569
+ type index$p_ObservationsView = ObservationsView;
1570
+ type index$p_PricingTier = PricingTier;
1571
+ type index$p_PricingTierCondition = PricingTierCondition;
1572
+ type index$p_PricingTierInput = PricingTierInput;
1573
+ declare const index$p_PricingTierOperator: typeof PricingTierOperator;
1574
+ type index$p_ScoreConfig = ScoreConfig;
1575
+ declare const index$p_ScoreDataType: typeof ScoreDataType;
1576
+ declare const index$p_ScoreSource: typeof ScoreSource;
1577
+ declare const index$p_ScoreV1: typeof ScoreV1;
1578
+ type index$p_Session = Session;
1579
+ type index$p_SessionWithTraces = SessionWithTraces;
1580
+ type index$p_TraceWithDetails = TraceWithDetails;
1581
+ type index$p_TraceWithFullDetails = TraceWithFullDetails;
1582
+ type index$p_UnauthorizedError = UnauthorizedError;
1583
+ declare const index$p_UnauthorizedError: typeof UnauthorizedError;
1584
+ type index$p_Usage = Usage;
1585
+ declare namespace index$p {
1586
+ 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_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_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_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 };
1587
1587
  }
1588
1588
 
1589
1589
  /**
@@ -1637,12 +1637,12 @@ interface GetDatasetItemsRequest {
1637
1637
  limit?: number;
1638
1638
  }
1639
1639
 
1640
- type index$m_CreateDatasetItemRequest = CreateDatasetItemRequest;
1641
- type index$m_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
1642
- type index$m_GetDatasetItemsRequest = GetDatasetItemsRequest;
1643
- type index$m_PaginatedDatasetItems = PaginatedDatasetItems;
1644
- declare namespace index$m {
1645
- export type { index$m_CreateDatasetItemRequest as CreateDatasetItemRequest, index$m_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$m_GetDatasetItemsRequest as GetDatasetItemsRequest, index$m_PaginatedDatasetItems as PaginatedDatasetItems };
1640
+ type index$o_CreateDatasetItemRequest = CreateDatasetItemRequest;
1641
+ type index$o_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
1642
+ type index$o_GetDatasetItemsRequest = GetDatasetItemsRequest;
1643
+ type index$o_PaginatedDatasetItems = PaginatedDatasetItems;
1644
+ declare namespace index$o {
1645
+ export type { index$o_CreateDatasetItemRequest as CreateDatasetItemRequest, index$o_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$o_GetDatasetItemsRequest as GetDatasetItemsRequest, index$o_PaginatedDatasetItems as PaginatedDatasetItems };
1646
1646
  }
1647
1647
 
1648
1648
  /**
@@ -1688,11 +1688,11 @@ interface ListDatasetRunItemsRequest {
1688
1688
  limit?: number;
1689
1689
  }
1690
1690
 
1691
- type index$l_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
1692
- type index$l_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
1693
- type index$l_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
1694
- declare namespace index$l {
1695
- export type { index$l_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$l_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$l_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
1691
+ type index$n_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
1692
+ type index$n_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
1693
+ type index$n_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
1694
+ declare namespace index$n {
1695
+ export type { index$n_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$n_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$n_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
1696
1696
  }
1697
1697
 
1698
1698
  /**
@@ -1761,14 +1761,14 @@ interface GetDatasetRunsRequest {
1761
1761
  limit?: number;
1762
1762
  }
1763
1763
 
1764
- type index$k_CreateDatasetRequest = CreateDatasetRequest;
1765
- type index$k_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
1766
- type index$k_GetDatasetRunsRequest = GetDatasetRunsRequest;
1767
- type index$k_GetDatasetsRequest = GetDatasetsRequest;
1768
- type index$k_PaginatedDatasetRuns = PaginatedDatasetRuns;
1769
- type index$k_PaginatedDatasets = PaginatedDatasets;
1770
- declare namespace index$k {
1771
- export type { index$k_CreateDatasetRequest as CreateDatasetRequest, index$k_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$k_GetDatasetRunsRequest as GetDatasetRunsRequest, index$k_GetDatasetsRequest as GetDatasetsRequest, index$k_PaginatedDatasetRuns as PaginatedDatasetRuns, index$k_PaginatedDatasets as PaginatedDatasets };
1764
+ type index$m_CreateDatasetRequest = CreateDatasetRequest;
1765
+ type index$m_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
1766
+ type index$m_GetDatasetRunsRequest = GetDatasetRunsRequest;
1767
+ type index$m_GetDatasetsRequest = GetDatasetsRequest;
1768
+ type index$m_PaginatedDatasetRuns = PaginatedDatasetRuns;
1769
+ type index$m_PaginatedDatasets = PaginatedDatasets;
1770
+ declare namespace index$m {
1771
+ 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 };
1772
1772
  }
1773
1773
 
1774
1774
  /**
@@ -1795,11 +1795,11 @@ declare class ServiceUnavailableError extends LangfuseAPIError {
1795
1795
  constructor(rawResponse?: RawResponse);
1796
1796
  }
1797
1797
 
1798
- type index$j_HealthResponse = HealthResponse;
1799
- type index$j_ServiceUnavailableError = ServiceUnavailableError;
1800
- declare const index$j_ServiceUnavailableError: typeof ServiceUnavailableError;
1801
- declare namespace index$j {
1802
- export { type index$j_HealthResponse as HealthResponse, index$j_ServiceUnavailableError as ServiceUnavailableError };
1798
+ type index$l_HealthResponse = HealthResponse;
1799
+ type index$l_ServiceUnavailableError = ServiceUnavailableError;
1800
+ declare const index$l_ServiceUnavailableError: typeof ServiceUnavailableError;
1801
+ declare namespace index$l {
1802
+ export { type index$l_HealthResponse as HealthResponse, index$l_ServiceUnavailableError as ServiceUnavailableError };
1803
1803
  }
1804
1804
 
1805
1805
  /**
@@ -2353,41 +2353,41 @@ interface IngestionRequest {
2353
2353
  metadata?: unknown;
2354
2354
  }
2355
2355
 
2356
- type index$i_BaseEvent = BaseEvent;
2357
- type index$i_CreateEventBody = CreateEventBody;
2358
- type index$i_CreateEventEvent = CreateEventEvent;
2359
- type index$i_CreateGenerationBody = CreateGenerationBody;
2360
- type index$i_CreateGenerationEvent = CreateGenerationEvent;
2361
- type index$i_CreateObservationEvent = CreateObservationEvent;
2362
- type index$i_CreateSpanBody = CreateSpanBody;
2363
- type index$i_CreateSpanEvent = CreateSpanEvent;
2364
- type index$i_IngestionError = IngestionError;
2365
- declare const index$i_IngestionEvent: typeof IngestionEvent;
2366
- type index$i_IngestionRequest = IngestionRequest;
2367
- type index$i_IngestionResponse = IngestionResponse;
2368
- type index$i_IngestionSuccess = IngestionSuccess;
2369
- type index$i_IngestionUsage = IngestionUsage;
2370
- type index$i_ObservationBody = ObservationBody;
2371
- declare const index$i_ObservationType: typeof ObservationType;
2372
- type index$i_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
2373
- type index$i_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
2374
- type index$i_OpenAiUsage = OpenAiUsage;
2375
- type index$i_OptionalObservationBody = OptionalObservationBody;
2376
- type index$i_ScoreBody = ScoreBody;
2377
- type index$i_ScoreEvent = ScoreEvent;
2378
- type index$i_SdkLogBody = SdkLogBody;
2379
- type index$i_SdkLogEvent = SdkLogEvent;
2380
- type index$i_TraceBody = TraceBody;
2381
- type index$i_TraceEvent = TraceEvent;
2382
- type index$i_UpdateEventBody = UpdateEventBody;
2383
- type index$i_UpdateGenerationBody = UpdateGenerationBody;
2384
- type index$i_UpdateGenerationEvent = UpdateGenerationEvent;
2385
- type index$i_UpdateObservationEvent = UpdateObservationEvent;
2386
- type index$i_UpdateSpanBody = UpdateSpanBody;
2387
- type index$i_UpdateSpanEvent = UpdateSpanEvent;
2388
- type index$i_UsageDetails = UsageDetails;
2389
- declare namespace index$i {
2390
- export { type index$i_BaseEvent as BaseEvent, type index$i_CreateEventBody as CreateEventBody, type index$i_CreateEventEvent as CreateEventEvent, type index$i_CreateGenerationBody as CreateGenerationBody, type index$i_CreateGenerationEvent as CreateGenerationEvent, type index$i_CreateObservationEvent as CreateObservationEvent, type index$i_CreateSpanBody as CreateSpanBody, type index$i_CreateSpanEvent as CreateSpanEvent, type index$i_IngestionError as IngestionError, index$i_IngestionEvent as IngestionEvent, type index$i_IngestionRequest as IngestionRequest, type index$i_IngestionResponse as IngestionResponse, type index$i_IngestionSuccess as IngestionSuccess, type index$i_IngestionUsage as IngestionUsage, type index$i_ObservationBody as ObservationBody, index$i_ObservationType as ObservationType, type index$i_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$i_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$i_OpenAiUsage as OpenAiUsage, type index$i_OptionalObservationBody as OptionalObservationBody, type index$i_ScoreBody as ScoreBody, type index$i_ScoreEvent as ScoreEvent, type index$i_SdkLogBody as SdkLogBody, type index$i_SdkLogEvent as SdkLogEvent, type index$i_TraceBody as TraceBody, type index$i_TraceEvent as TraceEvent, type index$i_UpdateEventBody as UpdateEventBody, type index$i_UpdateGenerationBody as UpdateGenerationBody, type index$i_UpdateGenerationEvent as UpdateGenerationEvent, type index$i_UpdateObservationEvent as UpdateObservationEvent, type index$i_UpdateSpanBody as UpdateSpanBody, type index$i_UpdateSpanEvent as UpdateSpanEvent, type index$i_UsageDetails as UsageDetails };
2356
+ type index$k_BaseEvent = BaseEvent;
2357
+ type index$k_CreateEventBody = CreateEventBody;
2358
+ type index$k_CreateEventEvent = CreateEventEvent;
2359
+ type index$k_CreateGenerationBody = CreateGenerationBody;
2360
+ type index$k_CreateGenerationEvent = CreateGenerationEvent;
2361
+ type index$k_CreateObservationEvent = CreateObservationEvent;
2362
+ type index$k_CreateSpanBody = CreateSpanBody;
2363
+ type index$k_CreateSpanEvent = CreateSpanEvent;
2364
+ type index$k_IngestionError = IngestionError;
2365
+ declare const index$k_IngestionEvent: typeof IngestionEvent;
2366
+ type index$k_IngestionRequest = IngestionRequest;
2367
+ type index$k_IngestionResponse = IngestionResponse;
2368
+ type index$k_IngestionSuccess = IngestionSuccess;
2369
+ type index$k_IngestionUsage = IngestionUsage;
2370
+ type index$k_ObservationBody = ObservationBody;
2371
+ declare const index$k_ObservationType: typeof ObservationType;
2372
+ type index$k_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
2373
+ type index$k_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
2374
+ type index$k_OpenAiUsage = OpenAiUsage;
2375
+ type index$k_OptionalObservationBody = OptionalObservationBody;
2376
+ type index$k_ScoreBody = ScoreBody;
2377
+ type index$k_ScoreEvent = ScoreEvent;
2378
+ type index$k_SdkLogBody = SdkLogBody;
2379
+ type index$k_SdkLogEvent = SdkLogEvent;
2380
+ type index$k_TraceBody = TraceBody;
2381
+ type index$k_TraceEvent = TraceEvent;
2382
+ type index$k_UpdateEventBody = UpdateEventBody;
2383
+ type index$k_UpdateGenerationBody = UpdateGenerationBody;
2384
+ type index$k_UpdateGenerationEvent = UpdateGenerationEvent;
2385
+ type index$k_UpdateObservationEvent = UpdateObservationEvent;
2386
+ type index$k_UpdateSpanBody = UpdateSpanBody;
2387
+ type index$k_UpdateSpanEvent = UpdateSpanEvent;
2388
+ type index$k_UsageDetails = UsageDetails;
2389
+ declare namespace index$k {
2390
+ 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 };
2391
2391
  }
2392
2392
 
2393
2393
  /**
@@ -2480,13 +2480,13 @@ interface GetLlmConnectionsRequest {
2480
2480
  limit?: number;
2481
2481
  }
2482
2482
 
2483
- type index$h_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
2484
- declare const index$h_LlmAdapter: typeof LlmAdapter;
2485
- type index$h_LlmConnection = LlmConnection;
2486
- type index$h_PaginatedLlmConnections = PaginatedLlmConnections;
2487
- type index$h_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
2488
- declare namespace index$h {
2489
- export { type index$h_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$h_LlmAdapter as LlmAdapter, type index$h_LlmConnection as LlmConnection, type index$h_PaginatedLlmConnections as PaginatedLlmConnections, type index$h_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
2483
+ type index$j_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
2484
+ declare const index$j_LlmAdapter: typeof LlmAdapter;
2485
+ type index$j_LlmConnection = LlmConnection;
2486
+ type index$j_PaginatedLlmConnections = PaginatedLlmConnections;
2487
+ type index$j_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
2488
+ declare namespace index$j {
2489
+ 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 };
2490
2490
  }
2491
2491
 
2492
2492
  /**
@@ -2611,13 +2611,95 @@ declare const MediaContentType: {
2611
2611
  readonly ApplicationX7ZCompressed: "application/x-7z-compressed";
2612
2612
  };
2613
2613
 
2614
- type index$g_GetMediaResponse = GetMediaResponse;
2615
- type index$g_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
2616
- type index$g_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
2617
- declare const index$g_MediaContentType: typeof MediaContentType;
2618
- type index$g_PatchMediaBody = PatchMediaBody;
2619
- declare namespace index$g {
2620
- export { type index$g_GetMediaResponse as GetMediaResponse, type index$g_GetMediaUploadUrlRequest as GetMediaUploadUrlRequest, type index$g_GetMediaUploadUrlResponse as GetMediaUploadUrlResponse, index$g_MediaContentType as MediaContentType, type index$g_PatchMediaBody as PatchMediaBody };
2614
+ type index$i_GetMediaResponse = GetMediaResponse;
2615
+ type index$i_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
2616
+ type index$i_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
2617
+ declare const index$i_MediaContentType: typeof MediaContentType;
2618
+ type index$i_PatchMediaBody = PatchMediaBody;
2619
+ declare namespace index$i {
2620
+ 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 };
2621
+ }
2622
+
2623
+ /**
2624
+ * This file was auto-generated by Fern from our API Definition.
2625
+ */
2626
+ interface MetricsV2Response {
2627
+ /**
2628
+ * The metrics data. Each item in the list contains the metric values and dimensions requested in the query.
2629
+ * Format varies based on the query parameters.
2630
+ * Histograms will return an array with [lower, upper, height] tuples.
2631
+ */
2632
+ data: Record<string, unknown>[];
2633
+ }
2634
+
2635
+ /**
2636
+ * This file was auto-generated by Fern from our API Definition.
2637
+ */
2638
+ /**
2639
+ * @example
2640
+ * {
2641
+ * query: "query"
2642
+ * }
2643
+ */
2644
+ interface GetMetricsV2Request {
2645
+ /**
2646
+ * JSON string containing the query parameters with the following structure:
2647
+ * ```json
2648
+ * {
2649
+ * "view": string, // Required. One of "observations", "scores-numeric", "scores-categorical"
2650
+ * "dimensions": [ // Optional. Default: []
2651
+ * {
2652
+ * "field": string // Field to group by (see available dimensions above)
2653
+ * }
2654
+ * ],
2655
+ * "metrics": [ // Required. At least one metric must be provided
2656
+ * {
2657
+ * "measure": string, // What to measure (see available measures above)
2658
+ * "aggregation": string // How to aggregate: "sum", "avg", "count", "max", "min", "p50", "p75", "p90", "p95", "p99", "histogram"
2659
+ * }
2660
+ * ],
2661
+ * "filters": [ // Optional. Default: []
2662
+ * {
2663
+ * "column": string, // Column to filter on (any dimension field)
2664
+ * "operator": string, // Operator based on type:
2665
+ * // - datetime: ">", "<", ">=", "<="
2666
+ * // - string: "=", "contains", "does not contain", "starts with", "ends with"
2667
+ * // - stringOptions: "any of", "none of"
2668
+ * // - arrayOptions: "any of", "none of", "all of"
2669
+ * // - number: "=", ">", "<", ">=", "<="
2670
+ * // - stringObject/numberObject: same as string/number with required "key"
2671
+ * // - boolean: "=", "<>"
2672
+ * // - null: "is null", "is not null"
2673
+ * "value": any, // Value to compare against
2674
+ * "type": string, // Data type: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
2675
+ * "key": string // Required only for stringObject/numberObject types (e.g., metadata filtering)
2676
+ * }
2677
+ * ],
2678
+ * "timeDimension": { // Optional. Default: null. If provided, results will be grouped by time
2679
+ * "granularity": string // One of "auto", "minute", "hour", "day", "week", "month"
2680
+ * },
2681
+ * "fromTimestamp": string, // Required. ISO datetime string for start of time range
2682
+ * "toTimestamp": string, // Required. ISO datetime string for end of time range (must be after fromTimestamp)
2683
+ * "orderBy": [ // Optional. Default: null
2684
+ * {
2685
+ * "field": string, // Field to order by (dimension or metric alias)
2686
+ * "direction": string // "asc" or "desc"
2687
+ * }
2688
+ * ],
2689
+ * "config": { // Optional. Query-specific configuration
2690
+ * "bins": number, // Optional. Number of bins for histogram aggregation (1-100), default: 10
2691
+ * "row_limit": number // Optional. Maximum number of rows to return (1-1000), default: 100
2692
+ * }
2693
+ * }
2694
+ * ```
2695
+ */
2696
+ query: string;
2697
+ }
2698
+
2699
+ type index$h_GetMetricsV2Request = GetMetricsV2Request;
2700
+ type index$h_MetricsV2Response = MetricsV2Response;
2701
+ declare namespace index$h {
2702
+ export type { index$h_GetMetricsV2Request as GetMetricsV2Request, index$h_MetricsV2Response as MetricsV2Response };
2621
2703
  }
2622
2704
 
2623
2705
  /**
@@ -2688,10 +2770,10 @@ interface GetMetricsRequest {
2688
2770
  query: string;
2689
2771
  }
2690
2772
 
2691
- type index$f_GetMetricsRequest = GetMetricsRequest;
2692
- type index$f_MetricsResponse = MetricsResponse;
2693
- declare namespace index$f {
2694
- export type { index$f_GetMetricsRequest as GetMetricsRequest, index$f_MetricsResponse as MetricsResponse };
2773
+ type index$g_GetMetricsRequest = GetMetricsRequest;
2774
+ type index$g_MetricsResponse = MetricsResponse;
2775
+ declare namespace index$g {
2776
+ export type { index$g_GetMetricsRequest as GetMetricsRequest, index$g_MetricsResponse as MetricsResponse };
2695
2777
  }
2696
2778
 
2697
2779
  /**
@@ -2763,11 +2845,185 @@ interface GetModelsRequest {
2763
2845
  limit?: number;
2764
2846
  }
2765
2847
 
2766
- type index$e_CreateModelRequest = CreateModelRequest;
2767
- type index$e_GetModelsRequest = GetModelsRequest;
2768
- type index$e_PaginatedModels = PaginatedModels;
2848
+ type index$f_CreateModelRequest = CreateModelRequest;
2849
+ type index$f_GetModelsRequest = GetModelsRequest;
2850
+ type index$f_PaginatedModels = PaginatedModels;
2851
+ declare namespace index$f {
2852
+ export type { index$f_CreateModelRequest as CreateModelRequest, index$f_GetModelsRequest as GetModelsRequest, index$f_PaginatedModels as PaginatedModels };
2853
+ }
2854
+
2855
+ /**
2856
+ * This file was auto-generated by Fern from our API Definition.
2857
+ */
2858
+
2859
+ /**
2860
+ * Response containing observations with field-group-based filtering and cursor-based pagination.
2861
+ *
2862
+ * The `data` array contains observation objects with only the requested field groups included.
2863
+ * Use the `cursor` in `meta` to retrieve the next page of results.
2864
+ */
2865
+ interface ObservationsV2Response {
2866
+ /** Array of observation objects. Fields included depend on the `fields` parameter in the request. */
2867
+ data: Record<string, unknown>[];
2868
+ meta: ObservationsV2Meta;
2869
+ }
2870
+
2871
+ /**
2872
+ * This file was auto-generated by Fern from our API Definition.
2873
+ */
2874
+ /**
2875
+ * Metadata for cursor-based pagination
2876
+ */
2877
+ interface ObservationsV2Meta {
2878
+ /** Base64-encoded cursor to use for retrieving the next page. If not present, there are no more results. */
2879
+ cursor?: string;
2880
+ }
2881
+
2882
+ /**
2883
+ * This file was auto-generated by Fern from our API Definition.
2884
+ */
2885
+
2886
+ /**
2887
+ * @example
2888
+ * {}
2889
+ */
2890
+ interface GetObservationsV2Request {
2891
+ /**
2892
+ * Comma-separated list of field groups to include in the response.
2893
+ * Available groups: core, basic, time, io, metadata, model, usage, prompt, metrics.
2894
+ * If not specified, `core` and `basic` field groups are returned.
2895
+ * Example: "basic,usage,model"
2896
+ */
2897
+ fields?: string;
2898
+ /** Number of items to return per page. Maximum 1000, default 50. */
2899
+ limit?: number;
2900
+ /** Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page. */
2901
+ cursor?: string;
2902
+ /**
2903
+ * Set to `true` to parse input/output fields as JSON, or `false` to return raw strings.
2904
+ * Defaults to `false` if not provided.
2905
+ */
2906
+ parseIoAsJson?: boolean;
2907
+ name?: string;
2908
+ userId?: string;
2909
+ /** Filter by observation type (e.g., "GENERATION", "SPAN", "EVENT", "AGENT", "TOOL", "CHAIN", "RETRIEVER", "EVALUATOR", "EMBEDDING", "GUARDRAIL") */
2910
+ type?: string;
2911
+ traceId?: string;
2912
+ /** Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR"). */
2913
+ level?: ObservationLevel;
2914
+ parentObservationId?: string;
2915
+ /** Optional filter for observations where the environment is one of the provided values. */
2916
+ environment?: string | string[];
2917
+ /** Retrieve only observations with a start_time on or after this datetime (ISO 8601). */
2918
+ fromStartTime?: string;
2919
+ /** Retrieve only observations with a start_time before this datetime (ISO 8601). */
2920
+ toStartTime?: string;
2921
+ /** Optional filter to only include observations with a certain version. */
2922
+ version?: string;
2923
+ /**
2924
+ * JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).
2925
+ *
2926
+ * ## Filter Structure
2927
+ * Each filter condition has the following structure:
2928
+ * ```json
2929
+ * [
2930
+ * {
2931
+ * "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
2932
+ * "column": string, // Required. Column to filter on (see available columns below)
2933
+ * "operator": string, // Required. Operator based on type:
2934
+ * // - datetime: ">", "<", ">=", "<="
2935
+ * // - string: "=", "contains", "does not contain", "starts with", "ends with"
2936
+ * // - stringOptions: "any of", "none of"
2937
+ * // - categoryOptions: "any of", "none of"
2938
+ * // - arrayOptions: "any of", "none of", "all of"
2939
+ * // - number: "=", ">", "<", ">=", "<="
2940
+ * // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
2941
+ * // - numberObject: "=", ">", "<", ">=", "<="
2942
+ * // - boolean: "=", "<>"
2943
+ * // - null: "is null", "is not null"
2944
+ * "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
2945
+ * "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
2946
+ * }
2947
+ * ]
2948
+ * ```
2949
+ *
2950
+ * ## Available Columns
2951
+ *
2952
+ * ### Core Observation Fields
2953
+ * - `id` (string) - Observation ID
2954
+ * - `type` (string) - Observation type (SPAN, GENERATION, EVENT)
2955
+ * - `name` (string) - Observation name
2956
+ * - `traceId` (string) - Associated trace ID
2957
+ * - `startTime` (datetime) - Observation start time
2958
+ * - `endTime` (datetime) - Observation end time
2959
+ * - `environment` (string) - Environment tag
2960
+ * - `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)
2961
+ * - `statusMessage` (string) - Status message
2962
+ * - `version` (string) - Version tag
2963
+ * - `userId` (string) - User ID
2964
+ * - `sessionId` (string) - Session ID
2965
+ *
2966
+ * ### Trace-Related Fields
2967
+ * - `traceName` (string) - Name of the parent trace
2968
+ * - `traceTags` (arrayOptions) - Tags from the parent trace
2969
+ * - `tags` (arrayOptions) - Alias for traceTags
2970
+ *
2971
+ * ### Performance Metrics
2972
+ * - `latency` (number) - Latency in seconds (calculated: end_time - start_time)
2973
+ * - `timeToFirstToken` (number) - Time to first token in seconds
2974
+ * - `tokensPerSecond` (number) - Output tokens per second
2975
+ *
2976
+ * ### Token Usage
2977
+ * - `inputTokens` (number) - Number of input tokens
2978
+ * - `outputTokens` (number) - Number of output tokens
2979
+ * - `totalTokens` (number) - Total tokens (alias: `tokens`)
2980
+ *
2981
+ * ### Cost Metrics
2982
+ * - `inputCost` (number) - Input cost in USD
2983
+ * - `outputCost` (number) - Output cost in USD
2984
+ * - `totalCost` (number) - Total cost in USD
2985
+ *
2986
+ * ### Model Information
2987
+ * - `model` (string) - Provided model name (alias: `providedModelName`)
2988
+ * - `promptName` (string) - Associated prompt name
2989
+ * - `promptVersion` (number) - Associated prompt version
2990
+ *
2991
+ * ### Structured Data
2992
+ * - `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.
2993
+ *
2994
+ * ## Filter Examples
2995
+ * ```json
2996
+ * [
2997
+ * {
2998
+ * "type": "string",
2999
+ * "column": "type",
3000
+ * "operator": "=",
3001
+ * "value": "GENERATION"
3002
+ * },
3003
+ * {
3004
+ * "type": "number",
3005
+ * "column": "latency",
3006
+ * "operator": ">=",
3007
+ * "value": 2.5
3008
+ * },
3009
+ * {
3010
+ * "type": "stringObject",
3011
+ * "column": "metadata",
3012
+ * "key": "environment",
3013
+ * "operator": "=",
3014
+ * "value": "production"
3015
+ * }
3016
+ * ]
3017
+ * ```
3018
+ */
3019
+ filter?: string;
3020
+ }
3021
+
3022
+ type index$e_GetObservationsV2Request = GetObservationsV2Request;
3023
+ type index$e_ObservationsV2Meta = ObservationsV2Meta;
3024
+ type index$e_ObservationsV2Response = ObservationsV2Response;
2769
3025
  declare namespace index$e {
2770
- export type { index$e_CreateModelRequest as CreateModelRequest, index$e_GetModelsRequest as GetModelsRequest, index$e_PaginatedModels as PaginatedModels };
3026
+ export type { index$e_GetObservationsV2Request as GetObservationsV2Request, index$e_ObservationsV2Meta as ObservationsV2Meta, index$e_ObservationsV2Response as ObservationsV2Response };
2771
3027
  }
2772
3028
 
2773
3029
  /**
@@ -5585,6 +5841,170 @@ declare class Media {
5585
5841
  protected _getAuthorizationHeader(): Promise<string | undefined>;
5586
5842
  }
5587
5843
 
5844
+ /**
5845
+ * This file was auto-generated by Fern from our API Definition.
5846
+ */
5847
+
5848
+ declare namespace MetricsV2 {
5849
+ interface Options {
5850
+ environment: Supplier<string>;
5851
+ /** Specify a custom URL to connect the client to. */
5852
+ baseUrl?: Supplier<string>;
5853
+ username?: Supplier<string | undefined>;
5854
+ password?: Supplier<string | undefined>;
5855
+ /** Override the X-Langfuse-Sdk-Name header */
5856
+ xLangfuseSdkName?: Supplier<string | undefined>;
5857
+ /** Override the X-Langfuse-Sdk-Version header */
5858
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
5859
+ /** Override the X-Langfuse-Public-Key header */
5860
+ xLangfusePublicKey?: Supplier<string | undefined>;
5861
+ /** Additional headers to include in requests. */
5862
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
5863
+ }
5864
+ interface RequestOptions {
5865
+ /** The maximum time to wait for a response in seconds. */
5866
+ timeoutInSeconds?: number;
5867
+ /** The number of times to retry the request. Defaults to 2. */
5868
+ maxRetries?: number;
5869
+ /** A hook to abort the request. */
5870
+ abortSignal?: AbortSignal;
5871
+ /** Override the X-Langfuse-Sdk-Name header */
5872
+ xLangfuseSdkName?: string | undefined;
5873
+ /** Override the X-Langfuse-Sdk-Version header */
5874
+ xLangfuseSdkVersion?: string | undefined;
5875
+ /** Override the X-Langfuse-Public-Key header */
5876
+ xLangfusePublicKey?: string | undefined;
5877
+ /** Additional query string parameters to include in the request. */
5878
+ queryParams?: Record<string, unknown>;
5879
+ /** Additional headers to include in the request. */
5880
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
5881
+ }
5882
+ }
5883
+ declare class MetricsV2 {
5884
+ protected readonly _options: MetricsV2.Options;
5885
+ constructor(_options: MetricsV2.Options);
5886
+ /**
5887
+ * Get metrics from the Langfuse project using a query object. V2 endpoint with optimized performance.
5888
+ *
5889
+ * ## V2 Differences
5890
+ * - Supports `observations`, `scores-numeric`, and `scores-categorical` views only (traces view not supported)
5891
+ * - Direct access to tags and release fields on observations
5892
+ * - Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view
5893
+ * - High cardinality dimensions are not supported and will return a 400 error (see below)
5894
+ *
5895
+ * For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
5896
+ *
5897
+ * ## Available Views
5898
+ *
5899
+ * ### observations
5900
+ * Query observation-level data (spans, generations, events).
5901
+ *
5902
+ * **Dimensions:**
5903
+ * - `environment` - Deployment environment (e.g., production, staging)
5904
+ * - `type` - Type of observation (SPAN, GENERATION, EVENT)
5905
+ * - `name` - Name of the observation
5906
+ * - `level` - Logging level of the observation
5907
+ * - `version` - Version of the observation
5908
+ * - `tags` - User-defined tags
5909
+ * - `release` - Release version
5910
+ * - `traceName` - Name of the parent trace (backwards-compatible)
5911
+ * - `traceRelease` - Release version of the parent trace (backwards-compatible, maps to release)
5912
+ * - `traceVersion` - Version of the parent trace (backwards-compatible, maps to version)
5913
+ * - `providedModelName` - Name of the model used
5914
+ * - `promptName` - Name of the prompt used
5915
+ * - `promptVersion` - Version of the prompt used
5916
+ * - `startTimeMonth` - Month of start_time in YYYY-MM format
5917
+ *
5918
+ * **Measures:**
5919
+ * - `count` - Total number of observations
5920
+ * - `latency` - Observation latency (milliseconds)
5921
+ * - `streamingLatency` - Generation latency from completion start to end (milliseconds)
5922
+ * - `inputTokens` - Sum of input tokens consumed
5923
+ * - `outputTokens` - Sum of output tokens produced
5924
+ * - `totalTokens` - Sum of all tokens consumed
5925
+ * - `outputTokensPerSecond` - Output tokens per second
5926
+ * - `tokensPerSecond` - Total tokens per second
5927
+ * - `inputCost` - Input cost (USD)
5928
+ * - `outputCost` - Output cost (USD)
5929
+ * - `totalCost` - Total cost (USD)
5930
+ * - `timeToFirstToken` - Time to first token (milliseconds)
5931
+ * - `countScores` - Number of scores attached to the observation
5932
+ *
5933
+ * ### scores-numeric
5934
+ * Query numeric and boolean score data.
5935
+ *
5936
+ * **Dimensions:**
5937
+ * - `environment` - Deployment environment
5938
+ * - `name` - Name of the score (e.g., accuracy, toxicity)
5939
+ * - `source` - Origin of the score (API, ANNOTATION, EVAL)
5940
+ * - `dataType` - Data type (NUMERIC, BOOLEAN)
5941
+ * - `configId` - Identifier of the score config
5942
+ * - `timestampMonth` - Month in YYYY-MM format
5943
+ * - `timestampDay` - Day in YYYY-MM-DD format
5944
+ * - `value` - Numeric value of the score
5945
+ * - `traceName` - Name of the parent trace
5946
+ * - `tags` - Tags
5947
+ * - `traceRelease` - Release version
5948
+ * - `traceVersion` - Version
5949
+ * - `observationName` - Name of the associated observation
5950
+ * - `observationModelName` - Model name of the associated observation
5951
+ * - `observationPromptName` - Prompt name of the associated observation
5952
+ * - `observationPromptVersion` - Prompt version of the associated observation
5953
+ *
5954
+ * **Measures:**
5955
+ * - `count` - Total number of scores
5956
+ * - `value` - Score value (for aggregations)
5957
+ *
5958
+ * ### scores-categorical
5959
+ * Query categorical score data. Same dimensions as scores-numeric except uses `stringValue` instead of `value`.
5960
+ *
5961
+ * **Measures:**
5962
+ * - `count` - Total number of scores
5963
+ *
5964
+ * ## High Cardinality Dimensions
5965
+ * The following dimensions cannot be used as grouping dimensions in v2 metrics API as they can cause performance issues.
5966
+ * Use them in filters instead.
5967
+ *
5968
+ * **observations view:**
5969
+ * - `id` - Use traceId filter to narrow down results
5970
+ * - `traceId` - Use traceId filter instead
5971
+ * - `userId` - Use userId filter instead
5972
+ * - `sessionId` - Use sessionId filter instead
5973
+ * - `parentObservationId` - Use parentObservationId filter instead
5974
+ *
5975
+ * **scores-numeric / scores-categorical views:**
5976
+ * - `id` - Use specific filters to narrow down results
5977
+ * - `traceId` - Use traceId filter instead
5978
+ * - `userId` - Use userId filter instead
5979
+ * - `sessionId` - Use sessionId filter instead
5980
+ * - `observationId` - Use observationId filter instead
5981
+ *
5982
+ * ## Aggregations
5983
+ * Available aggregation functions: `sum`, `avg`, `count`, `max`, `min`, `p50`, `p75`, `p90`, `p95`, `p99`, `histogram`
5984
+ *
5985
+ * ## Time Granularities
5986
+ * Available granularities for timeDimension: `auto`, `minute`, `hour`, `day`, `week`, `month`
5987
+ * - `auto` bins the data into approximately 50 buckets based on the time range
5988
+ *
5989
+ * @param {LangfuseAPI.GetMetricsV2Request} request
5990
+ * @param {MetricsV2.RequestOptions} requestOptions - Request-specific configuration.
5991
+ *
5992
+ * @throws {@link LangfuseAPI.Error}
5993
+ * @throws {@link LangfuseAPI.UnauthorizedError}
5994
+ * @throws {@link LangfuseAPI.AccessDeniedError}
5995
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
5996
+ * @throws {@link LangfuseAPI.NotFoundError}
5997
+ *
5998
+ * @example
5999
+ * await client.metricsV2.metrics({
6000
+ * query: "query"
6001
+ * })
6002
+ */
6003
+ metrics(request: GetMetricsV2Request, requestOptions?: MetricsV2.RequestOptions): HttpResponsePromise<MetricsV2Response>;
6004
+ private __metrics;
6005
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
6006
+ }
6007
+
5588
6008
  /**
5589
6009
  * This file was auto-generated by Fern from our API Definition.
5590
6010
  */
@@ -5775,6 +6195,91 @@ declare class Models {
5775
6195
  protected _getAuthorizationHeader(): Promise<string | undefined>;
5776
6196
  }
5777
6197
 
6198
+ /**
6199
+ * This file was auto-generated by Fern from our API Definition.
6200
+ */
6201
+
6202
+ declare namespace ObservationsV2 {
6203
+ interface Options {
6204
+ environment: Supplier<string>;
6205
+ /** Specify a custom URL to connect the client to. */
6206
+ baseUrl?: Supplier<string>;
6207
+ username?: Supplier<string | undefined>;
6208
+ password?: Supplier<string | undefined>;
6209
+ /** Override the X-Langfuse-Sdk-Name header */
6210
+ xLangfuseSdkName?: Supplier<string | undefined>;
6211
+ /** Override the X-Langfuse-Sdk-Version header */
6212
+ xLangfuseSdkVersion?: Supplier<string | undefined>;
6213
+ /** Override the X-Langfuse-Public-Key header */
6214
+ xLangfusePublicKey?: Supplier<string | undefined>;
6215
+ /** Additional headers to include in requests. */
6216
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6217
+ }
6218
+ interface RequestOptions {
6219
+ /** The maximum time to wait for a response in seconds. */
6220
+ timeoutInSeconds?: number;
6221
+ /** The number of times to retry the request. Defaults to 2. */
6222
+ maxRetries?: number;
6223
+ /** A hook to abort the request. */
6224
+ abortSignal?: AbortSignal;
6225
+ /** Override the X-Langfuse-Sdk-Name header */
6226
+ xLangfuseSdkName?: string | undefined;
6227
+ /** Override the X-Langfuse-Sdk-Version header */
6228
+ xLangfuseSdkVersion?: string | undefined;
6229
+ /** Override the X-Langfuse-Public-Key header */
6230
+ xLangfusePublicKey?: string | undefined;
6231
+ /** Additional query string parameters to include in the request. */
6232
+ queryParams?: Record<string, unknown>;
6233
+ /** Additional headers to include in the request. */
6234
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
6235
+ }
6236
+ }
6237
+ declare class ObservationsV2 {
6238
+ protected readonly _options: ObservationsV2.Options;
6239
+ constructor(_options: ObservationsV2.Options);
6240
+ /**
6241
+ * Get a list of observations with cursor-based pagination and flexible field selection.
6242
+ *
6243
+ * ## Cursor-based Pagination
6244
+ * This endpoint uses cursor-based pagination for efficient traversal of large datasets.
6245
+ * The cursor is returned in the response metadata and should be passed in subsequent requests
6246
+ * to retrieve the next page of results.
6247
+ *
6248
+ * ## Field Selection
6249
+ * Use the `fields` parameter to control which observation fields are returned:
6250
+ * - `core` - Always included: id, traceId, startTime, endTime, projectId, parentObservationId, type
6251
+ * - `basic` - name, level, statusMessage, version, environment, bookmarked, public, userId, sessionId
6252
+ * - `time` - completionStartTime, createdAt, updatedAt
6253
+ * - `io` - input, output
6254
+ * - `metadata` - metadata
6255
+ * - `model` - providedModelName, internalModelId, modelParameters
6256
+ * - `usage` - usageDetails, costDetails, totalCost
6257
+ * - `prompt` - promptId, promptName, promptVersion
6258
+ * - `metrics` - latency, timeToFirstToken
6259
+ *
6260
+ * If not specified, `core` and `basic` field groups are returned.
6261
+ *
6262
+ * ## Filters
6263
+ * Multiple filtering options are available via query parameters or the structured `filter` parameter.
6264
+ * When using the `filter` parameter, it takes precedence over individual query parameter filters.
6265
+ *
6266
+ * @param {LangfuseAPI.GetObservationsV2Request} request
6267
+ * @param {ObservationsV2.RequestOptions} requestOptions - Request-specific configuration.
6268
+ *
6269
+ * @throws {@link LangfuseAPI.Error}
6270
+ * @throws {@link LangfuseAPI.UnauthorizedError}
6271
+ * @throws {@link LangfuseAPI.AccessDeniedError}
6272
+ * @throws {@link LangfuseAPI.MethodNotAllowedError}
6273
+ * @throws {@link LangfuseAPI.NotFoundError}
6274
+ *
6275
+ * @example
6276
+ * await client.observationsV2.getMany()
6277
+ */
6278
+ getMany(request?: GetObservationsV2Request, requestOptions?: ObservationsV2.RequestOptions): HttpResponsePromise<ObservationsV2Response>;
6279
+ private __getMany;
6280
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
6281
+ }
6282
+
5778
6283
  /**
5779
6284
  * This file was auto-generated by Fern from our API Definition.
5780
6285
  */
@@ -7249,8 +7754,10 @@ declare class LangfuseAPIClient {
7249
7754
  protected _ingestion: Ingestion | undefined;
7250
7755
  protected _llmConnections: LlmConnections | undefined;
7251
7756
  protected _media: Media | undefined;
7757
+ protected _metricsV2: MetricsV2 | undefined;
7252
7758
  protected _metrics: Metrics | undefined;
7253
7759
  protected _models: Models | undefined;
7760
+ protected _observationsV2: ObservationsV2 | undefined;
7254
7761
  protected _observations: Observations | undefined;
7255
7762
  protected _opentelemetry: Opentelemetry | undefined;
7256
7763
  protected _organizations: Organizations | undefined;
@@ -7274,8 +7781,10 @@ declare class LangfuseAPIClient {
7274
7781
  get ingestion(): Ingestion;
7275
7782
  get llmConnections(): LlmConnections;
7276
7783
  get media(): Media;
7784
+ get metricsV2(): MetricsV2;
7277
7785
  get metrics(): Metrics;
7278
7786
  get models(): Models;
7787
+ get observationsV2(): ObservationsV2;
7279
7788
  get observations(): Observations;
7280
7789
  get opentelemetry(): Opentelemetry;
7281
7790
  get organizations(): Organizations;
@@ -7657,4 +8166,4 @@ interface PropagateAttributesParams {
7657
8166
  declare function propagateAttributes<A extends unknown[], F extends (...args: A) => ReturnType<F>>(params: PropagateAttributesParams, fn: F): ReturnType<F>;
7658
8167
  declare function getPropagatedAttributesFromContext(context: Context): Record<string, string | string[]>;
7659
8168
 
7660
- 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, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, 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 GetModelsRequest, type GetObservationsRequest, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, 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 Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, 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, 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, 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$q as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$p as blobStorageIntegrations, bytesToBase64, index$o as comments, index$n as commons, configureGlobalLogger, createExperimentId, createExperimentItemId, createLogger, index$m as datasetItems, index$l as datasetRunItems, index$k as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, index$j as health, index$i as ingestion, index$h as llmConnections, LoggerSingleton as logger, index$g as media, index$f as metrics, index$e as models, index$d as observations, 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 };
8169
+ 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, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, 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 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 Observations$1 as Observations, type ObservationsV2Meta, type ObservationsV2Response, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, 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, 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, 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 };