@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.js
CHANGED
|
@@ -33776,10 +33776,15 @@ var LineageNodeSchema = z.object({
|
|
|
33776
33776
|
*/
|
|
33777
33777
|
version: VersionSchema,
|
|
33778
33778
|
/** The node's tombstone time, or `null` when live. */
|
|
33779
|
-
deletedAt: z.string().nullable()
|
|
33779
|
+
deletedAt: z.string().nullable(),
|
|
33780
|
+
/**
|
|
33781
|
+
* Never present on a visible node. Declared so a node that carries
|
|
33782
|
+
* `redacted: true` next to an id, scope and version cannot slip through
|
|
33783
|
+
* this branch of {@link LineageEntrySchema} with the key stripped.
|
|
33784
|
+
*/
|
|
33785
|
+
redacted: z.never().optional()
|
|
33780
33786
|
});
|
|
33781
|
-
var RedactedLineageNodeSchema = z.
|
|
33782
|
-
dataPointId: DataPointIdSchema,
|
|
33787
|
+
var RedactedLineageNodeSchema = z.strictObject({
|
|
33783
33788
|
redacted: z.literal(true)
|
|
33784
33789
|
});
|
|
33785
33790
|
var LineageEntrySchema = z.union([
|
|
@@ -33804,7 +33809,7 @@ var LineageGraphSchema = z.object({
|
|
|
33804
33809
|
derivativesTruncated: z.boolean().optional()
|
|
33805
33810
|
});
|
|
33806
33811
|
function isRedactedLineageNode(entry) {
|
|
33807
|
-
return "redacted" in entry && entry.redacted === true;
|
|
33812
|
+
return "redacted" in entry && entry.redacted === true && Object.keys(entry).length === 1;
|
|
33808
33813
|
}
|
|
33809
33814
|
function personalServerLineagePath(scope, version) {
|
|
33810
33815
|
return `/v1/data/${encodeURIComponent(scope)}/lineage${version === void 0 ? "" : `/${String(version)}`}`;
|