@langfuse/core 5.10.0 → 5.10.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.cjs CHANGED
@@ -396,7 +396,7 @@ var resetGlobalLogger = () => {
396
396
  // package.json
397
397
  var package_default = {
398
398
  name: "@langfuse/core",
399
- version: "5.10.0",
399
+ version: "5.10.1",
400
400
  description: "Core functions and utilities for Langfuse packages",
401
401
  type: "module",
402
402
  sideEffects: false,
@@ -6831,9 +6831,6 @@ var Scores = class {
6831
6831
  }
6832
6832
  }
6833
6833
  /**
6834
- * **Deprecated.** Use `GET /api/public/v3/scores` instead. This endpoint
6835
- * is no longer available on Langfuse v4 and later.
6836
- *
6837
6834
  * Get a list of scores (supports both trace and session scores)
6838
6835
  *
6839
6836
  * @param {LangfuseAPI.GetScoresRequest} request
@@ -7032,9 +7029,6 @@ var Scores = class {
7032
7029
  }
7033
7030
  }
7034
7031
  /**
7035
- * **Deprecated.** Use `GET /api/public/v3/scores` with the `id` filter
7036
- * instead. This endpoint is no longer available on Langfuse v4 and later.
7037
- *
7038
7032
  * Get a score (supports both trace and session scores)
7039
7033
  *
7040
7034
  * @param {string} scoreId - The unique langfuse identifier of a score
@@ -7999,6 +7993,7 @@ var Metrics = class {
7999
7993
  * ## V2 Differences
8000
7994
  * - Supports `observations`, `scores-numeric`, `scores-boolean`, and `scores-categorical` views only (traces view not supported)
8001
7995
  * - Direct access to tags and release fields on observations
7996
+ * - Semantic-root filtering and grouping through the v2-only `isRootObservation` dimension
8002
7997
  * - Backwards-compatible: traceName, traceRelease, traceVersion dimensions are still available on observations view
8003
7998
  * - High cardinality dimensions are not supported and will return a 400 error (see below)
8004
7999
  *
@@ -8023,6 +8018,7 @@ var Metrics = class {
8023
8018
  * - `providedModelName` - Name of the model used
8024
8019
  * - `promptName` - Name of the prompt used
8025
8020
  * - `promptVersion` - Version of the prompt used
8021
+ * - `isRootObservation` - Boolean semantic-root status. `true` includes physical roots and app roots whose SDK parent is external (so `parentObservationId` may be non-null).
8026
8022
  * - `startTimeMonth` - Month of start_time in YYYY-MM format
8027
8023
  *
8028
8024
  * **Measures:**
@@ -8730,6 +8726,7 @@ var Observations = class {
8730
8726
  parseIoAsJson,
8731
8727
  name,
8732
8728
  userId,
8729
+ sessionId,
8733
8730
  type: type_,
8734
8731
  traceId,
8735
8732
  level,
@@ -8763,6 +8760,9 @@ var Observations = class {
8763
8760
  if (userId != null) {
8764
8761
  _queryParams["userId"] = userId;
8765
8762
  }
8763
+ if (sessionId != null) {
8764
+ _queryParams["sessionId"] = sessionId;
8765
+ }
8766
8766
  if (type_ != null) {
8767
8767
  _queryParams["type"] = type_;
8768
8768
  }