@opendatalabs/vana-sdk 3.18.0 → 3.18.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.
@@ -34006,10 +34006,15 @@ var LineageNodeSchema = import_zod.z.object({
34006
34006
  */
34007
34007
  version: VersionSchema,
34008
34008
  /** The node's tombstone time, or `null` when live. */
34009
- deletedAt: import_zod.z.string().nullable()
34009
+ deletedAt: import_zod.z.string().nullable(),
34010
+ /**
34011
+ * Never present on a visible node. Declared so a node that carries
34012
+ * `redacted: true` next to an id, scope and version cannot slip through
34013
+ * this branch of {@link LineageEntrySchema} with the key stripped.
34014
+ */
34015
+ redacted: import_zod.z.never().optional()
34010
34016
  });
34011
- var RedactedLineageNodeSchema = import_zod.z.object({
34012
- dataPointId: DataPointIdSchema,
34017
+ var RedactedLineageNodeSchema = import_zod.z.strictObject({
34013
34018
  redacted: import_zod.z.literal(true)
34014
34019
  });
34015
34020
  var LineageEntrySchema = import_zod.z.union([
@@ -34034,7 +34039,7 @@ var LineageGraphSchema = import_zod.z.object({
34034
34039
  derivativesTruncated: import_zod.z.boolean().optional()
34035
34040
  });
34036
34041
  function isRedactedLineageNode(entry) {
34037
- return "redacted" in entry && entry.redacted === true;
34042
+ return "redacted" in entry && entry.redacted === true && Object.keys(entry).length === 1;
34038
34043
  }
34039
34044
  function personalServerLineagePath(scope, version) {
34040
34045
  return `/v1/data/${encodeURIComponent(scope)}/lineage${version === void 0 ? "" : `/${String(version)}`}`;