@langfuse/core 5.0.1 → 5.1.0

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
@@ -4,6 +4,8 @@ import { Context } from '@opentelemetry/api';
4
4
  * Enumeration of log levels in order of severity (lowest to highest).
5
5
  */
6
6
  declare enum LogLevel {
7
+ /** Not logging anything */
8
+ NONE = 4,
7
9
  /** Critical errors that may cause application failure */
8
10
  ERROR = 3,
9
11
  /** Warning messages for potentially harmful situations */
@@ -478,6 +480,8 @@ interface CreateBlobStorageIntegrationRequest {
478
480
  exportMode: BlobStorageExportMode;
479
481
  /** Custom start date for exports (required when exportMode is FROM_CUSTOM_DATE) */
480
482
  exportStartDate?: string;
483
+ /** Enable gzip compression for exported files (.csv.gz, .json.gz, .jsonl.gz). Defaults to true. */
484
+ compressed?: boolean;
481
485
  }
482
486
 
483
487
  /**
@@ -499,6 +503,7 @@ interface BlobStorageIntegrationResponse {
499
503
  fileType: BlobStorageIntegrationFileType;
500
504
  exportMode: BlobStorageExportMode;
501
505
  exportStartDate: string | null;
506
+ compressed: boolean;
502
507
  nextSyncAt: string | null;
503
508
  lastSyncAt: string | null;
504
509
  lastError: string | null;
@@ -998,6 +1003,15 @@ interface CategoricalScoreV1 extends BaseScoreV1 {
998
1003
  stringValue: string;
999
1004
  }
1000
1005
 
1006
+ /**
1007
+ * This file was auto-generated by Fern from our API Definition.
1008
+ */
1009
+
1010
+ interface TextScoreV1 extends BaseScoreV1 {
1011
+ /** The text content of the score (1-500 characters) */
1012
+ stringValue: string;
1013
+ }
1014
+
1001
1015
  /**
1002
1016
  * This file was auto-generated by Fern from our API Definition.
1003
1017
  */
@@ -1011,7 +1025,10 @@ ScoreV1$1.Numeric
1011
1025
  | ScoreV1$1.Categorical
1012
1026
  /**
1013
1027
  * Score with BOOLEAN data type */
1014
- | ScoreV1$1.Boolean;
1028
+ | ScoreV1$1.Boolean
1029
+ /**
1030
+ * Score with TEXT data type */
1031
+ | ScoreV1$1.Text;
1015
1032
  declare namespace ScoreV1$1 {
1016
1033
  interface Numeric extends NumericScoreV1 {
1017
1034
  dataType: "NUMERIC";
@@ -1022,6 +1039,9 @@ declare namespace ScoreV1$1 {
1022
1039
  interface Boolean extends BooleanScoreV1 {
1023
1040
  dataType: "BOOLEAN";
1024
1041
  }
1042
+ interface Text extends TextScoreV1 {
1043
+ dataType: "TEXT";
1044
+ }
1025
1045
  }
1026
1046
 
1027
1047
  /**
@@ -1099,6 +1119,15 @@ interface CorrectionScore extends BaseScore {
1099
1119
  stringValue: string;
1100
1120
  }
1101
1121
 
1122
+ /**
1123
+ * This file was auto-generated by Fern from our API Definition.
1124
+ */
1125
+
1126
+ interface TextScore extends BaseScore {
1127
+ /** The text content of the score (1-500 characters) */
1128
+ stringValue: string;
1129
+ }
1130
+
1102
1131
  /**
1103
1132
  * This file was auto-generated by Fern from our API Definition.
1104
1133
  */
@@ -1115,7 +1144,10 @@ Score.Numeric
1115
1144
  | Score.Boolean
1116
1145
  /**
1117
1146
  * Score with CORRECTION data type */
1118
- | Score.Correction;
1147
+ | Score.Correction
1148
+ /**
1149
+ * Score with TEXT data type */
1150
+ | Score.Text;
1119
1151
  declare namespace Score {
1120
1152
  interface Numeric extends NumericScore {
1121
1153
  dataType: "NUMERIC";
@@ -1129,13 +1161,16 @@ declare namespace Score {
1129
1161
  interface Correction extends CorrectionScore {
1130
1162
  dataType: "CORRECTION";
1131
1163
  }
1164
+ interface Text extends TextScore {
1165
+ dataType: "TEXT";
1166
+ }
1132
1167
  }
1133
1168
 
1134
1169
  /**
1135
1170
  * This file was auto-generated by Fern from our API Definition.
1136
1171
  */
1137
1172
  /**
1138
- * The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores
1173
+ * The value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores
1139
1174
  */
1140
1175
  type CreateScoreValue = number | string;
1141
1176
 
@@ -1568,22 +1603,24 @@ declare const ScoreSource: {
1568
1603
  /**
1569
1604
  * This file was auto-generated by Fern from our API Definition.
1570
1605
  */
1571
- type ScoreConfigDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL";
1606
+ type ScoreConfigDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL" | "TEXT";
1572
1607
  declare const ScoreConfigDataType: {
1573
1608
  readonly Numeric: "NUMERIC";
1574
1609
  readonly Boolean: "BOOLEAN";
1575
1610
  readonly Categorical: "CATEGORICAL";
1611
+ readonly Text: "TEXT";
1576
1612
  };
1577
1613
 
1578
1614
  /**
1579
1615
  * This file was auto-generated by Fern from our API Definition.
1580
1616
  */
1581
- type ScoreDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL" | "CORRECTION";
1617
+ type ScoreDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL" | "CORRECTION" | "TEXT";
1582
1618
  declare const ScoreDataType: {
1583
1619
  readonly Numeric: "NUMERIC";
1584
1620
  readonly Boolean: "BOOLEAN";
1585
1621
  readonly Categorical: "CATEGORICAL";
1586
1622
  readonly Correction: "CORRECTION";
1623
+ readonly Text: "TEXT";
1587
1624
  };
1588
1625
 
1589
1626
  /**
@@ -1770,13 +1807,15 @@ declare const index$q_ScoreDataType: typeof ScoreDataType;
1770
1807
  declare const index$q_ScoreSource: typeof ScoreSource;
1771
1808
  type index$q_Session = Session;
1772
1809
  type index$q_SessionWithTraces = SessionWithTraces;
1810
+ type index$q_TextScore = TextScore;
1811
+ type index$q_TextScoreV1 = TextScoreV1;
1773
1812
  type index$q_TraceWithDetails = TraceWithDetails;
1774
1813
  type index$q_TraceWithFullDetails = TraceWithFullDetails;
1775
1814
  type index$q_UnauthorizedError = UnauthorizedError;
1776
1815
  declare const index$q_UnauthorizedError: typeof UnauthorizedError;
1777
1816
  type index$q_Usage = Usage;
1778
1817
  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 };
1818
+ 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 index$q_TextScore as TextScore, type index$q_TextScoreV1 as TextScoreV1, 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 };
1780
1819
  }
1781
1820
 
1782
1821
  /**
@@ -1864,6 +1903,8 @@ interface CreateDatasetRunItemRequest {
1864
1903
  * If not provided, uses the latest version of dataset items.
1865
1904
  */
1866
1905
  datasetVersion?: string;
1906
+ /** Optional timestamp to set the createdAt field of the dataset run item. If not provided or null, defaults to current timestamp. */
1907
+ createdAt?: string;
1867
1908
  }
1868
1909
 
1869
1910
  /**
@@ -2330,7 +2371,7 @@ interface ScoreBody {
2330
2371
  environment?: string;
2331
2372
  /** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
2332
2373
  queueId?: string;
2333
- /** 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) */
2374
+ /** The value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false). Text score values must be between 1 and 500 characters. */
2334
2375
  value: CreateScoreValue;
2335
2376
  comment?: string;
2336
2377
  metadata?: unknown;
@@ -2884,6 +2925,14 @@ declare namespace index$j {
2884
2925
  * configId: "1234-5678-90ab-cdef",
2885
2926
  * traceId: "cdef-1234-5678-90ab"
2886
2927
  * }
2928
+ *
2929
+ * @example
2930
+ * {
2931
+ * name: "feedback",
2932
+ * value: "Great explanation of the concept",
2933
+ * dataType: LangfuseAPI.ScoreDataType.Text,
2934
+ * traceId: "cdef-1234-5678-90ab"
2935
+ * }
2887
2936
  */
2888
2937
  interface CreateScoreRequest {
2889
2938
  id?: string;
@@ -2892,7 +2941,7 @@ interface CreateScoreRequest {
2892
2941
  observationId?: string;
2893
2942
  datasetRunId?: string;
2894
2943
  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) */
2944
+ /** The value of the score. Must be passed as string for categorical and text scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false). Text score values must be between 1 and 500 characters. */
2896
2945
  value: CreateScoreValue;
2897
2946
  comment?: string;
2898
2947
  metadata?: Record<string, unknown>;
@@ -4576,7 +4625,15 @@ interface GetScoresResponseDataCorrection extends CorrectionScore {
4576
4625
  * This file was auto-generated by Fern from our API Definition.
4577
4626
  */
4578
4627
 
4579
- type GetScoresResponseData = GetScoresResponseData.Numeric | GetScoresResponseData.Categorical | GetScoresResponseData.Boolean | GetScoresResponseData.Correction;
4628
+ interface GetScoresResponseDataText extends TextScore {
4629
+ trace?: GetScoresResponseTraceData;
4630
+ }
4631
+
4632
+ /**
4633
+ * This file was auto-generated by Fern from our API Definition.
4634
+ */
4635
+
4636
+ type GetScoresResponseData = GetScoresResponseData.Numeric | GetScoresResponseData.Categorical | GetScoresResponseData.Boolean | GetScoresResponseData.Correction | GetScoresResponseData.Text;
4580
4637
  declare namespace GetScoresResponseData {
4581
4638
  interface Numeric extends GetScoresResponseDataNumeric {
4582
4639
  dataType: "NUMERIC";
@@ -4590,6 +4647,9 @@ declare namespace GetScoresResponseData {
4590
4647
  interface Correction extends GetScoresResponseDataCorrection {
4591
4648
  dataType: "CORRECTION";
4592
4649
  }
4650
+ interface Text extends GetScoresResponseDataText {
4651
+ dataType: "TEXT";
4652
+ }
4593
4653
  }
4594
4654
 
4595
4655
  /**
@@ -4661,9 +4721,10 @@ type index$5_GetScoresResponseDataBoolean = GetScoresResponseDataBoolean;
4661
4721
  type index$5_GetScoresResponseDataCategorical = GetScoresResponseDataCategorical;
4662
4722
  type index$5_GetScoresResponseDataCorrection = GetScoresResponseDataCorrection;
4663
4723
  type index$5_GetScoresResponseDataNumeric = GetScoresResponseDataNumeric;
4724
+ type index$5_GetScoresResponseDataText = GetScoresResponseDataText;
4664
4725
  type index$5_GetScoresResponseTraceData = GetScoresResponseTraceData;
4665
4726
  declare namespace index$5 {
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 };
4727
+ 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_GetScoresResponseDataText as GetScoresResponseDataText, type index$5_GetScoresResponseTraceData as GetScoresResponseTraceData };
4667
4728
  }
4668
4729
 
4669
4730
  /**
@@ -4724,6 +4785,18 @@ interface Sort {
4724
4785
  id: string;
4725
4786
  }
4726
4787
 
4788
+ /**
4789
+ * This file was auto-generated by Fern from our API Definition.
4790
+ */
4791
+ /**
4792
+ * @example
4793
+ * {}
4794
+ */
4795
+ interface GetTraceRequest {
4796
+ /** Comma-separated list of fields to include in the response. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'. */
4797
+ fields?: string;
4798
+ }
4799
+
4727
4800
  /**
4728
4801
  * This file was auto-generated by Fern from our API Definition.
4729
4802
  */
@@ -4881,11 +4954,12 @@ interface DeleteTracesRequest {
4881
4954
 
4882
4955
  type index$3_DeleteTraceResponse = DeleteTraceResponse;
4883
4956
  type index$3_DeleteTracesRequest = DeleteTracesRequest;
4957
+ type index$3_GetTraceRequest = GetTraceRequest;
4884
4958
  type index$3_GetTracesRequest = GetTracesRequest;
4885
4959
  type index$3_Sort = Sort;
4886
4960
  type index$3_Traces = Traces;
4887
4961
  declare namespace index$3 {
4888
- export type { index$3_DeleteTraceResponse as DeleteTraceResponse, index$3_DeleteTracesRequest as DeleteTracesRequest, index$3_GetTracesRequest as GetTracesRequest, index$3_Sort as Sort, index$3_Traces as Traces };
4962
+ export type { index$3_DeleteTraceResponse as DeleteTraceResponse, index$3_DeleteTracesRequest as DeleteTracesRequest, index$3_GetTraceRequest as GetTraceRequest, index$3_GetTracesRequest as GetTracesRequest, index$3_Sort as Sort, index$3_Traces as Traces };
4889
4963
  }
4890
4964
 
4891
4965
  /**
@@ -5253,7 +5327,8 @@ declare class BlobStorageIntegrations {
5253
5327
  * forcePathStyle: true,
5254
5328
  * fileType: "JSON",
5255
5329
  * exportMode: "FULL_HISTORY",
5256
- * exportStartDate: undefined
5330
+ * exportStartDate: undefined,
5331
+ * compressed: undefined
5257
5332
  * })
5258
5333
  */
5259
5334
  upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
@@ -5582,7 +5657,8 @@ declare class DatasetRunItems {
5582
5657
  * datasetItemId: "datasetItemId",
5583
5658
  * observationId: undefined,
5584
5659
  * traceId: undefined,
5585
- * datasetVersion: undefined
5660
+ * datasetVersion: undefined,
5661
+ * createdAt: undefined
5586
5662
  * })
5587
5663
  */
5588
5664
  create(request: CreateDatasetRunItemRequest, requestOptions?: DatasetRunItems.RequestOptions): HttpResponsePromise<DatasetRunItem>;
@@ -7982,6 +8058,7 @@ declare class Trace {
7982
8058
  * Get a specific trace
7983
8059
  *
7984
8060
  * @param {string} traceId - The unique langfuse identifier of a trace
8061
+ * @param {LangfuseAPI.GetTraceRequest} request
7985
8062
  * @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
7986
8063
  *
7987
8064
  * @throws {@link LangfuseAPI.Error}
@@ -7993,7 +8070,7 @@ declare class Trace {
7993
8070
  * @example
7994
8071
  * await client.trace.get("traceId")
7995
8072
  */
7996
- get(traceId: string, requestOptions?: Trace.RequestOptions): HttpResponsePromise<TraceWithFullDetails>;
8073
+ get(traceId: string, request?: GetTraceRequest, requestOptions?: Trace.RequestOptions): HttpResponsePromise<TraceWithFullDetails>;
7997
8074
  private __get;
7998
8075
  /**
7999
8076
  * Delete a specific trace
@@ -8510,4 +8587,4 @@ interface PropagateAttributesParams {
8510
8587
  declare function propagateAttributes<A extends unknown[], F extends (...args: A) => ReturnType<F>>(params: PropagateAttributesParams, fn: F): ReturnType<F>;
8511
8588
  declare function getPropagatedAttributesFromContext(context: Context): Record<string, string | string[]>;
8512
8589
 
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 };
8590
+ 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 GetScoresResponseDataText, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTraceRequest, 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 TextScore, type TextScoreV1, 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 };