@langfuse/core 5.0.1 → 5.0.2

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;
@@ -1864,6 +1869,8 @@ interface CreateDatasetRunItemRequest {
1864
1869
  * If not provided, uses the latest version of dataset items.
1865
1870
  */
1866
1871
  datasetVersion?: string;
1872
+ /** Optional timestamp to set the createdAt field of the dataset run item. If not provided or null, defaults to current timestamp. */
1873
+ createdAt?: string;
1867
1874
  }
1868
1875
 
1869
1876
  /**
@@ -5253,7 +5260,8 @@ declare class BlobStorageIntegrations {
5253
5260
  * forcePathStyle: true,
5254
5261
  * fileType: "JSON",
5255
5262
  * exportMode: "FULL_HISTORY",
5256
- * exportStartDate: undefined
5263
+ * exportStartDate: undefined,
5264
+ * compressed: undefined
5257
5265
  * })
5258
5266
  */
5259
5267
  upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
@@ -5582,7 +5590,8 @@ declare class DatasetRunItems {
5582
5590
  * datasetItemId: "datasetItemId",
5583
5591
  * observationId: undefined,
5584
5592
  * traceId: undefined,
5585
- * datasetVersion: undefined
5593
+ * datasetVersion: undefined,
5594
+ * createdAt: undefined
5586
5595
  * })
5587
5596
  */
5588
5597
  create(request: CreateDatasetRunItemRequest, requestOptions?: DatasetRunItems.RequestOptions): HttpResponsePromise<DatasetRunItem>;
package/dist/index.d.ts 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;
@@ -1864,6 +1869,8 @@ interface CreateDatasetRunItemRequest {
1864
1869
  * If not provided, uses the latest version of dataset items.
1865
1870
  */
1866
1871
  datasetVersion?: string;
1872
+ /** Optional timestamp to set the createdAt field of the dataset run item. If not provided or null, defaults to current timestamp. */
1873
+ createdAt?: string;
1867
1874
  }
1868
1875
 
1869
1876
  /**
@@ -5253,7 +5260,8 @@ declare class BlobStorageIntegrations {
5253
5260
  * forcePathStyle: true,
5254
5261
  * fileType: "JSON",
5255
5262
  * exportMode: "FULL_HISTORY",
5256
- * exportStartDate: undefined
5263
+ * exportStartDate: undefined,
5264
+ * compressed: undefined
5257
5265
  * })
5258
5266
  */
5259
5267
  upsertBlobStorageIntegration(request: CreateBlobStorageIntegrationRequest, requestOptions?: BlobStorageIntegrations.RequestOptions): HttpResponsePromise<BlobStorageIntegrationResponse>;
@@ -5582,7 +5590,8 @@ declare class DatasetRunItems {
5582
5590
  * datasetItemId: "datasetItemId",
5583
5591
  * observationId: undefined,
5584
5592
  * traceId: undefined,
5585
- * datasetVersion: undefined
5593
+ * datasetVersion: undefined,
5594
+ * createdAt: undefined
5586
5595
  * })
5587
5596
  */
5588
5597
  create(request: CreateDatasetRunItemRequest, requestOptions?: DatasetRunItems.RequestOptions): HttpResponsePromise<DatasetRunItem>;
package/dist/index.mjs CHANGED
@@ -80,6 +80,7 @@ function serializeValue(value) {
80
80
 
81
81
  // src/logger/index.ts
82
82
  var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
83
+ LogLevel2[LogLevel2["NONE"] = 4] = "NONE";
83
84
  LogLevel2[LogLevel2["ERROR"] = 3] = "ERROR";
84
85
  LogLevel2[LogLevel2["WARN"] = 2] = "WARN";
85
86
  LogLevel2[LogLevel2["INFO"] = 1] = "INFO";
@@ -94,6 +95,8 @@ function parseLogLevelFromEnv() {
94
95
  const envValue = getEnv("LANGFUSE_LOG_LEVEL");
95
96
  const value = (envValue != null ? envValue : "").toUpperCase();
96
97
  switch (value) {
98
+ case "NONE":
99
+ return 4 /* NONE */;
97
100
  case "ERROR":
98
101
  return 3 /* ERROR */;
99
102
  case "WARN":
@@ -273,7 +276,7 @@ var resetGlobalLogger = () => {
273
276
  // package.json
274
277
  var package_default = {
275
278
  name: "@langfuse/core",
276
- version: "5.0.1",
279
+ version: "5.0.2",
277
280
  description: "Core functions and utilities for Langfuse packages",
278
281
  type: "module",
279
282
  sideEffects: false,
@@ -2836,7 +2839,8 @@ var BlobStorageIntegrations = class {
2836
2839
  * forcePathStyle: true,
2837
2840
  * fileType: "JSON",
2838
2841
  * exportMode: "FULL_HISTORY",
2839
- * exportStartDate: undefined
2842
+ * exportStartDate: undefined,
2843
+ * compressed: undefined
2840
2844
  * })
2841
2845
  */
2842
2846
  upsertBlobStorageIntegration(request, requestOptions) {
@@ -3995,7 +3999,8 @@ var DatasetRunItems = class {
3995
3999
  * datasetItemId: "datasetItemId",
3996
4000
  * observationId: undefined,
3997
4001
  * traceId: undefined,
3998
- * datasetVersion: undefined
4002
+ * datasetVersion: undefined,
4003
+ * createdAt: undefined
3999
4004
  * })
4000
4005
  */
4001
4006
  create(request, requestOptions) {