@ensnode/ensnode-sdk 0.0.0-next-20260518194029 → 0.0.0-next-20260518200954
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 +20 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1257
- package/dist/index.d.ts +5 -1257
- package/dist/index.js +20 -8
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +3289 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +4178 -0
- package/dist/internal.d.ts +4178 -0
- package/dist/internal.js +3290 -0
- package/dist/internal.js.map +1 -0
- package/dist/namespace-specific-value-CPvcFpGI.d.cts +1260 -0
- package/dist/namespace-specific-value-CPvcFpGI.d.ts +1260 -0
- package/package.json +14 -4
package/dist/index.cjs
CHANGED
|
@@ -1767,14 +1767,26 @@ function invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect(ct
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => import_v413.z.object({
|
|
1770
|
-
projectedAt: makeUnixTimestampSchema(valueLabel)
|
|
1771
|
-
|
|
1772
|
-
|
|
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
|
+
)
|
|
1773
1779
|
}).check(invariant_realtimeIndexingStatusProjectionProjectedAtIsAfterOrEqualToSnapshotTime).check(invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect);
|
|
1774
1780
|
var makeSerializedRealtimeIndexingStatusProjectionSchema = (valueLabel = "Value") => import_v413.z.object({
|
|
1775
|
-
snapshot: makeSerializedCrossChainIndexingStatusSnapshotSchema(valueLabel)
|
|
1776
|
-
|
|
1777
|
-
|
|
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
|
+
)
|
|
1778
1790
|
});
|
|
1779
1791
|
|
|
1780
1792
|
// src/indexing-status/deserialize/cross-chain-indexing-status-snapshot.ts
|
|
@@ -2956,8 +2968,8 @@ function getNameTokenOwnership(namespaceId, name, owner) {
|
|
|
2956
2968
|
// src/ensnode/api/shared/errors/zod-schemas.ts
|
|
2957
2969
|
var import_v431 = require("zod/v4");
|
|
2958
2970
|
var makeErrorResponseSchema = () => import_v431.z.object({
|
|
2959
|
-
message: import_v431.z.string(),
|
|
2960
|
-
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.")
|
|
2961
2973
|
});
|
|
2962
2974
|
|
|
2963
2975
|
// src/ensnode/api/name-tokens/response.ts
|