@ensnode/ensnode-sdk 0.0.0-next-20260518172715 → 0.0.0-next-20260518194843

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
@@ -638,6 +638,7 @@ var PluginName = /* @__PURE__ */ ((PluginName2) => {
638
638
  PluginName2["Registrars"] = "registrars";
639
639
  PluginName2["TokenScope"] = "tokenscope";
640
640
  PluginName2["ENSv2"] = "ensv2";
641
+ PluginName2["Unigraph"] = "unigraph";
641
642
  return PluginName2;
642
643
  })(PluginName || {});
643
644
 
@@ -1766,14 +1767,26 @@ function invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect(ct
1766
1767
  }
1767
1768
  }
1768
1769
  var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => import_v413.z.object({
1769
- projectedAt: makeUnixTimestampSchema(valueLabel),
1770
- worstCaseDistance: makeDurationSchema(valueLabel),
1771
- snapshot: makeCrossChainIndexingStatusSnapshotSchema(valueLabel)
1770
+ projectedAt: makeUnixTimestampSchema(valueLabel).describe(
1771
+ "The timestamp representing 'now' as of the time this projection was generated."
1772
+ ),
1773
+ worstCaseDistance: makeDurationSchema(valueLabel).describe(
1774
+ "The distance between `projectedAt` and `snapshot.slowestChainIndexingCursor` in seconds. This is a worst-case distance because it assumes no indexing progress has been made since `snapshot.snapshotTime` and that each indexed chain has added a new block as of `projectedAt`."
1775
+ ),
1776
+ snapshot: makeCrossChainIndexingStatusSnapshotSchema(valueLabel).describe(
1777
+ "The cross-chain indexing status snapshot that this projection is based on."
1778
+ )
1772
1779
  }).check(invariant_realtimeIndexingStatusProjectionProjectedAtIsAfterOrEqualToSnapshotTime).check(invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect);
1773
1780
  var makeSerializedRealtimeIndexingStatusProjectionSchema = (valueLabel = "Value") => import_v413.z.object({
1774
- snapshot: makeSerializedCrossChainIndexingStatusSnapshotSchema(valueLabel),
1775
- projectedAt: makeUnixTimestampSchema(valueLabel),
1776
- worstCaseDistance: makeDurationSchema(valueLabel)
1781
+ snapshot: makeSerializedCrossChainIndexingStatusSnapshotSchema(valueLabel).describe(
1782
+ "The cross-chain indexing status snapshot that this projection is based on."
1783
+ ),
1784
+ projectedAt: makeUnixTimestampSchema(valueLabel).describe(
1785
+ "The timestamp representing 'now' as of the time this projection was generated."
1786
+ ),
1787
+ worstCaseDistance: makeDurationSchema(valueLabel).describe(
1788
+ "The distance between `projectedAt` and `snapshot.slowestChainIndexingCursor` in seconds. This is a worst-case distance because it assumes no indexing progress has been made since `snapshot.snapshotTime` and that each indexed chain has added a new block as of `projectedAt`."
1789
+ )
1777
1790
  });
1778
1791
 
1779
1792
  // src/indexing-status/deserialize/cross-chain-indexing-status-snapshot.ts
@@ -2955,8 +2968,8 @@ function getNameTokenOwnership(namespaceId, name, owner) {
2955
2968
  // src/ensnode/api/shared/errors/zod-schemas.ts
2956
2969
  var import_v431 = require("zod/v4");
2957
2970
  var makeErrorResponseSchema = () => import_v431.z.object({
2958
- message: import_v431.z.string(),
2959
- details: import_v431.z.optional(import_v431.z.unknown())
2971
+ message: import_v431.z.string().describe("A description of the error that occurred."),
2972
+ details: import_v431.z.optional(import_v431.z.unknown()).describe("Additional details about the error.")
2960
2973
  });
2961
2974
 
2962
2975
  // src/ensnode/api/name-tokens/response.ts
@@ -4409,11 +4422,11 @@ function hasBackfillCompleted(indexingStatus) {
4409
4422
 
4410
4423
  // src/omnigraph-api/prerequisites.ts
4411
4424
  function hasOmnigraphApiConfigSupport(config) {
4412
- const supported = config.plugins.includes("ensv2" /* ENSv2 */);
4425
+ const supported = config.plugins.includes("unigraph" /* Unigraph */) || config.plugins.includes("ensv2" /* ENSv2 */);
4413
4426
  if (supported) return { supported };
4414
4427
  return {
4415
4428
  supported: false,
4416
- reason: `The connected ENSNode's Config must have the '${"ensv2" /* ENSv2 */}' plugin enabled.`
4429
+ reason: `The connected ENSNode's Config must have the '${"unigraph" /* Unigraph */}' plugin enabled.`
4417
4430
  };
4418
4431
  }
4419
4432
  function hasOmnigraphApiIndexingStatusSupport(indexingStatus) {