@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.
- package/README.md +6 -3
- package/dist/index.browser.js +9 -4
- package/dist/index.browser.js.map +2 -2
- package/dist/index.node.cjs +9 -4
- package/dist/index.node.cjs.map +2 -2
- package/dist/index.node.js +9 -4
- package/dist/index.node.js.map +2 -2
- package/dist/protocol/lineage.cjs +9 -4
- package/dist/protocol/lineage.cjs.map +1 -1
- package/dist/protocol/lineage.d.ts +21 -12
- package/dist/protocol/lineage.js +9 -4
- package/dist/protocol/lineage.js.map +1 -1
- package/package.json +1 -1
package/dist/index.node.cjs
CHANGED
|
@@ -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.
|
|
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)}`}`;
|