@ensnode/ensnode-sdk 0.0.0-next-20260213092129 → 0.0.0-next-20260216100641

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.js CHANGED
@@ -392,7 +392,7 @@ var makePositiveIntegerSchema = (valueLabel = "Value") => makeIntegerSchema(valu
392
392
  var makeNonNegativeIntegerSchema = (valueLabel = "Value") => makeIntegerSchema(valueLabel).nonnegative({
393
393
  error: `${valueLabel} must be a non-negative integer (>=0).`
394
394
  });
395
- var makeDurationSchema = (valueLabel = "Value") => z.coerce.number({
395
+ var makeDurationSchema = (valueLabel = "Value") => z.number({
396
396
  error: `${valueLabel} must be a number.`
397
397
  }).pipe(makeNonNegativeIntegerSchema(valueLabel));
398
398
  var makeChainIdSchema = (valueLabel = "Chain ID") => makePositiveIntegerSchema(valueLabel).transform((val) => val);
@@ -1058,13 +1058,13 @@ ${prettifyError3(parsed.error)}
1058
1058
  import { prettifyError as prettifyError5 } from "zod/v4";
1059
1059
 
1060
1060
  // src/ensindexer/indexing-status/zod-schema/cross-chain-indexing-status-snapshot.ts
1061
- import { z as z7 } from "zod/v4";
1061
+ import { z as z8 } from "zod/v4";
1062
1062
 
1063
1063
  // src/ensindexer/indexing-status/zod-schema/omnichain-indexing-status-snapshot.ts
1064
- import { z as z6 } from "zod/v4";
1064
+ import { z as z7 } from "zod/v4";
1065
1065
 
1066
1066
  // src/shared/deserialize.ts
1067
- import { prettifyError as prettifyError4 } from "zod/v4";
1067
+ import z6, { prettifyError as prettifyError4 } from "zod/v4";
1068
1068
  function deserializeChainId(maybeChainId, valueLabel) {
1069
1069
  const schema = makeChainIdStringSchema(valueLabel);
1070
1070
  const parsed = schema.safeParse(maybeChainId);
@@ -1136,7 +1136,7 @@ ${prettifyError4(parsed.error)}
1136
1136
  return parsed.data;
1137
1137
  }
1138
1138
  function deserializeDuration(maybeDuration, valueLabel) {
1139
- const schema = makeDurationSchema(valueLabel);
1139
+ const schema = z6.coerce.number().pipe(makeDurationSchema(valueLabel));
1140
1140
  const parsed = schema.safeParse(maybeDuration);
1141
1141
  if (parsed.error) {
1142
1142
  throw new RangeError(`Cannot deserialize Duration:
@@ -1376,7 +1376,7 @@ function invariant_omnichainStatusSnapshotCompletedHasValidChains(ctx) {
1376
1376
  });
1377
1377
  }
1378
1378
  }
1379
- var makeChainIndexingStatusesSchema = (valueLabel = "Value") => z6.record(makeChainIdStringSchema(), makeChainIndexingStatusSnapshotSchema(valueLabel), {
1379
+ var makeChainIndexingStatusesSchema = (valueLabel = "Value") => z7.record(makeChainIdStringSchema(), makeChainIndexingStatusSnapshotSchema(valueLabel), {
1380
1380
  error: "Chains indexing statuses must be an object mapping valid chain IDs to their indexing status snapshots."
1381
1381
  }).transform((serializedChainsIndexingStatus) => {
1382
1382
  const chainsIndexingStatus = /* @__PURE__ */ new Map();
@@ -1385,29 +1385,29 @@ var makeChainIndexingStatusesSchema = (valueLabel = "Value") => z6.record(makeCh
1385
1385
  }
1386
1386
  return chainsIndexingStatus;
1387
1387
  });
1388
- var makeOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => z6.strictObject({
1389
- omnichainStatus: z6.literal(OmnichainIndexingStatusIds.Unstarted),
1388
+ var makeOmnichainIndexingStatusSnapshotUnstartedSchema = (valueLabel) => z7.strictObject({
1389
+ omnichainStatus: z7.literal(OmnichainIndexingStatusIds.Unstarted),
1390
1390
  chains: makeChainIndexingStatusesSchema(valueLabel).check(invariant_omnichainSnapshotUnstartedHasValidChains).transform((chains) => chains),
1391
1391
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1392
1392
  });
1393
- var makeOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => z6.strictObject({
1394
- omnichainStatus: z6.literal(OmnichainIndexingStatusIds.Backfill),
1393
+ var makeOmnichainIndexingStatusSnapshotBackfillSchema = (valueLabel) => z7.strictObject({
1394
+ omnichainStatus: z7.literal(OmnichainIndexingStatusIds.Backfill),
1395
1395
  chains: makeChainIndexingStatusesSchema(valueLabel).check(invariant_omnichainStatusSnapshotBackfillHasValidChains).transform(
1396
1396
  (chains) => chains
1397
1397
  ),
1398
1398
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1399
1399
  });
1400
- var makeOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => z6.strictObject({
1401
- omnichainStatus: z6.literal(OmnichainIndexingStatusIds.Completed),
1400
+ var makeOmnichainIndexingStatusSnapshotCompletedSchema = (valueLabel) => z7.strictObject({
1401
+ omnichainStatus: z7.literal(OmnichainIndexingStatusIds.Completed),
1402
1402
  chains: makeChainIndexingStatusesSchema(valueLabel).check(invariant_omnichainStatusSnapshotCompletedHasValidChains).transform((chains) => chains),
1403
1403
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1404
1404
  });
1405
- var makeOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => z6.strictObject({
1406
- omnichainStatus: z6.literal(OmnichainIndexingStatusIds.Following),
1405
+ var makeOmnichainIndexingStatusSnapshotFollowingSchema = (valueLabel) => z7.strictObject({
1406
+ omnichainStatus: z7.literal(OmnichainIndexingStatusIds.Following),
1407
1407
  chains: makeChainIndexingStatusesSchema(valueLabel),
1408
1408
  omnichainIndexingCursor: makeUnixTimestampSchema(valueLabel)
1409
1409
  });
1410
- var makeOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Omnichain Indexing Snapshot") => z6.discriminatedUnion("omnichainStatus", [
1410
+ var makeOmnichainIndexingStatusSnapshotSchema = (valueLabel = "Omnichain Indexing Snapshot") => z7.discriminatedUnion("omnichainStatus", [
1411
1411
  makeOmnichainIndexingStatusSnapshotUnstartedSchema(valueLabel),
1412
1412
  makeOmnichainIndexingStatusSnapshotBackfillSchema(valueLabel),
1413
1413
  makeOmnichainIndexingStatusSnapshotCompletedSchema(valueLabel),
@@ -1453,13 +1453,13 @@ function invariant_snapshotTimeIsTheHighestKnownBlockTimestamp(ctx) {
1453
1453
  });
1454
1454
  }
1455
1455
  }
1456
- var makeCrossChainIndexingStatusSnapshotOmnichainSchema = (valueLabel = "Cross-chain Indexing Status Snapshot Omnichain") => z7.strictObject({
1457
- strategy: z7.literal(CrossChainIndexingStrategyIds.Omnichain),
1456
+ var makeCrossChainIndexingStatusSnapshotOmnichainSchema = (valueLabel = "Cross-chain Indexing Status Snapshot Omnichain") => z8.strictObject({
1457
+ strategy: z8.literal(CrossChainIndexingStrategyIds.Omnichain),
1458
1458
  slowestChainIndexingCursor: makeUnixTimestampSchema(valueLabel),
1459
1459
  snapshotTime: makeUnixTimestampSchema(valueLabel),
1460
1460
  omnichainSnapshot: makeOmnichainIndexingStatusSnapshotSchema(valueLabel)
1461
1461
  }).check(invariant_slowestChainEqualsToOmnichainSnapshotTime).check(invariant_snapshotTimeIsTheHighestKnownBlockTimestamp);
1462
- var makeCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Cross-chain Indexing Status Snapshot") => z7.discriminatedUnion("strategy", [
1462
+ var makeCrossChainIndexingStatusSnapshotSchema = (valueLabel = "Cross-chain Indexing Status Snapshot") => z8.discriminatedUnion("strategy", [
1463
1463
  makeCrossChainIndexingStatusSnapshotOmnichainSchema(valueLabel)
1464
1464
  ]);
1465
1465
 
@@ -1496,7 +1496,7 @@ ${prettifyError6(parsed.error)}
1496
1496
  import { prettifyError as prettifyError7 } from "zod/v4";
1497
1497
 
1498
1498
  // src/ensindexer/indexing-status/zod-schema/realtime-indexing-status-projection.ts
1499
- import { z as z8 } from "zod/v4";
1499
+ import { z as z9 } from "zod/v4";
1500
1500
  function invariant_realtimeIndexingStatusProjectionProjectedAtIsAfterOrEqualToSnapshotTime(ctx) {
1501
1501
  const projection = ctx.value;
1502
1502
  const { snapshot, projectedAt } = projection;
@@ -1520,7 +1520,7 @@ function invariant_realtimeIndexingStatusProjectionWorstCaseDistanceIsCorrect(ct
1520
1520
  });
1521
1521
  }
1522
1522
  }
1523
- var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => z8.strictObject({
1523
+ var makeRealtimeIndexingStatusProjectionSchema = (valueLabel = "Realtime Indexing Status Projection") => z9.strictObject({
1524
1524
  projectedAt: makeUnixTimestampSchema(valueLabel),
1525
1525
  worstCaseDistance: makeDurationSchema(valueLabel),
1526
1526
  snapshot: makeCrossChainIndexingStatusSnapshotSchema(valueLabel)
@@ -1695,7 +1695,7 @@ function serializeConfigResponse(response) {
1695
1695
  import { prettifyError as prettifyError9 } from "zod/v4";
1696
1696
 
1697
1697
  // src/api/indexing-status/zod-schemas.ts
1698
- import { z as z9 } from "zod/v4";
1698
+ import { z as z10 } from "zod/v4";
1699
1699
 
1700
1700
  // src/api/indexing-status/response.ts
1701
1701
  var IndexingStatusResponseCodes = {
@@ -1710,14 +1710,14 @@ var IndexingStatusResponseCodes = {
1710
1710
  };
1711
1711
 
1712
1712
  // src/api/indexing-status/zod-schemas.ts
1713
- var makeIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => z9.strictObject({
1714
- responseCode: z9.literal(IndexingStatusResponseCodes.Ok),
1713
+ var makeIndexingStatusResponseOkSchema = (valueLabel = "Indexing Status Response OK") => z10.strictObject({
1714
+ responseCode: z10.literal(IndexingStatusResponseCodes.Ok),
1715
1715
  realtimeProjection: makeRealtimeIndexingStatusProjectionSchema(valueLabel)
1716
1716
  });
1717
- var makeIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => z9.strictObject({
1718
- responseCode: z9.literal(IndexingStatusResponseCodes.Error)
1717
+ var makeIndexingStatusResponseErrorSchema = (_valueLabel = "Indexing Status Response Error") => z10.strictObject({
1718
+ responseCode: z10.literal(IndexingStatusResponseCodes.Error)
1719
1719
  });
1720
- var makeIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => z9.discriminatedUnion("responseCode", [
1720
+ var makeIndexingStatusResponseSchema = (valueLabel = "Indexing Status Response") => z10.discriminatedUnion("responseCode", [
1721
1721
  makeIndexingStatusResponseOkSchema(valueLabel),
1722
1722
  makeIndexingStatusResponseErrorSchema(valueLabel)
1723
1723
  ]);
@@ -1751,7 +1751,7 @@ import { prettifyError as prettifyError11 } from "zod/v4";
1751
1751
 
1752
1752
  // src/api/name-tokens/zod-schemas.ts
1753
1753
  import { namehash as namehash2 } from "viem";
1754
- import { z as z12 } from "zod/v4";
1754
+ import { z as z13 } from "zod/v4";
1755
1755
 
1756
1756
  // src/tokenscope/assets.ts
1757
1757
  import { isAddressEqual as isAddressEqual3, zeroAddress as zeroAddress3 } from "viem";
@@ -1760,7 +1760,7 @@ import { prettifyError as prettifyError10 } from "zod/v4";
1760
1760
  // src/tokenscope/zod-schemas.ts
1761
1761
  import { AssetId as CaipAssetId2 } from "caip";
1762
1762
  import { zeroAddress as zeroAddress2 } from "viem";
1763
- import { z as z10 } from "zod/v4";
1763
+ import { z as z11 } from "zod/v4";
1764
1764
 
1765
1765
  // src/shared/types.ts
1766
1766
  var AssetNamespaces = {
@@ -1885,10 +1885,10 @@ function getNameTokenOwnership(namespaceId, name, owner) {
1885
1885
  }
1886
1886
 
1887
1887
  // src/tokenscope/zod-schemas.ts
1888
- var tokenIdSchemaSerializable = z10.string();
1889
- var tokenIdSchemaNative = z10.preprocess(
1888
+ var tokenIdSchemaSerializable = z11.string();
1889
+ var tokenIdSchemaNative = z11.preprocess(
1890
1890
  (v) => typeof v === "string" ? BigInt(v) : v,
1891
- z10.bigint().positive()
1891
+ z11.bigint().positive()
1892
1892
  );
1893
1893
  function makeTokenIdSchema(_valueLabel = "Token ID Schema", serializable = false) {
1894
1894
  if (serializable) {
@@ -1898,13 +1898,13 @@ function makeTokenIdSchema(_valueLabel = "Token ID Schema", serializable = false
1898
1898
  }
1899
1899
  }
1900
1900
  var makeAssetIdSchema = (valueLabel = "Asset ID Schema", serializable) => {
1901
- return z10.object({
1902
- assetNamespace: z10.enum(AssetNamespaces),
1901
+ return z11.object({
1902
+ assetNamespace: z11.enum(AssetNamespaces),
1903
1903
  contract: makeAccountIdSchema(valueLabel),
1904
1904
  tokenId: makeTokenIdSchema(valueLabel, serializable ?? false)
1905
1905
  });
1906
1906
  };
1907
- var makeAssetIdStringSchema = (valueLabel = "Asset ID String Schema") => z10.preprocess((v) => {
1907
+ var makeAssetIdStringSchema = (valueLabel = "Asset ID String Schema") => z11.preprocess((v) => {
1908
1908
  if (typeof v === "string") {
1909
1909
  const result = new CaipAssetId2(v);
1910
1910
  return {
@@ -1928,20 +1928,20 @@ function invariant_nameTokenOwnershipHasNonZeroAddressOwner(ctx) {
1928
1928
  });
1929
1929
  }
1930
1930
  }
1931
- var makeNameTokenOwnershipNameWrapperSchema = (valueLabel = "Name Token Ownership NameWrapper") => z10.object({
1932
- ownershipType: z10.literal(NameTokenOwnershipTypes.NameWrapper),
1931
+ var makeNameTokenOwnershipNameWrapperSchema = (valueLabel = "Name Token Ownership NameWrapper") => z11.object({
1932
+ ownershipType: z11.literal(NameTokenOwnershipTypes.NameWrapper),
1933
1933
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
1934
1934
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
1935
- var makeNameTokenOwnershipFullyOnchainSchema = (valueLabel = "Name Token Ownership Fully Onchain") => z10.object({
1936
- ownershipType: z10.literal(NameTokenOwnershipTypes.FullyOnchain),
1935
+ var makeNameTokenOwnershipFullyOnchainSchema = (valueLabel = "Name Token Ownership Fully Onchain") => z11.object({
1936
+ ownershipType: z11.literal(NameTokenOwnershipTypes.FullyOnchain),
1937
1937
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
1938
1938
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
1939
- var makeNameTokenOwnershipBurnedSchema = (valueLabel = "Name Token Ownership Burned") => z10.object({
1940
- ownershipType: z10.literal(NameTokenOwnershipTypes.Burned),
1939
+ var makeNameTokenOwnershipBurnedSchema = (valueLabel = "Name Token Ownership Burned") => z11.object({
1940
+ ownershipType: z11.literal(NameTokenOwnershipTypes.Burned),
1941
1941
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
1942
1942
  }).check(invariant_nameTokenOwnershipHasZeroAddressOwner);
1943
- var makeNameTokenOwnershipUnknownSchema = (valueLabel = "Name Token Ownership Unknown") => z10.object({
1944
- ownershipType: z10.literal(NameTokenOwnershipTypes.Unknown),
1943
+ var makeNameTokenOwnershipUnknownSchema = (valueLabel = "Name Token Ownership Unknown") => z11.object({
1944
+ ownershipType: z11.literal(NameTokenOwnershipTypes.Unknown),
1945
1945
  owner: makeAccountIdSchema(`${valueLabel}.owner`)
1946
1946
  }).check(invariant_nameTokenOwnershipHasNonZeroAddressOwner);
1947
1947
  function invariant_nameTokenOwnershipHasZeroAddressOwner(ctx) {
@@ -1954,16 +1954,16 @@ function invariant_nameTokenOwnershipHasZeroAddressOwner(ctx) {
1954
1954
  });
1955
1955
  }
1956
1956
  }
1957
- var makeNameTokenOwnershipSchema = (valueLabel = "Name Token Ownership") => z10.discriminatedUnion("ownershipType", [
1957
+ var makeNameTokenOwnershipSchema = (valueLabel = "Name Token Ownership") => z11.discriminatedUnion("ownershipType", [
1958
1958
  makeNameTokenOwnershipNameWrapperSchema(valueLabel),
1959
1959
  makeNameTokenOwnershipFullyOnchainSchema(valueLabel),
1960
1960
  makeNameTokenOwnershipBurnedSchema(valueLabel),
1961
1961
  makeNameTokenOwnershipUnknownSchema(valueLabel)
1962
1962
  ]);
1963
- var makeNameTokenSchema = (valueLabel = "Name Token Schema", serializable) => z10.object({
1963
+ var makeNameTokenSchema = (valueLabel = "Name Token Schema", serializable) => z11.object({
1964
1964
  token: makeAssetIdSchema(`${valueLabel}.token`, serializable),
1965
1965
  ownership: makeNameTokenOwnershipSchema(`${valueLabel}.ownership`),
1966
- mintStatus: z10.enum(NFTMintStatuses)
1966
+ mintStatus: z11.enum(NFTMintStatuses)
1967
1967
  });
1968
1968
 
1969
1969
  // src/tokenscope/assets.ts
@@ -2211,10 +2211,10 @@ ${formatNFTTransferEventMetadata(metadata)}`
2211
2211
  };
2212
2212
 
2213
2213
  // src/api/shared/errors/zod-schemas.ts
2214
- import { z as z11 } from "zod/v4";
2215
- var ErrorResponseSchema = z11.object({
2216
- message: z11.string(),
2217
- details: z11.optional(z11.unknown())
2214
+ import { z as z12 } from "zod/v4";
2215
+ var ErrorResponseSchema = z12.object({
2216
+ message: z12.string(),
2217
+ details: z12.optional(z12.unknown())
2218
2218
  });
2219
2219
 
2220
2220
  // src/api/name-tokens/response.ts
@@ -2253,10 +2253,10 @@ var NameTokensResponseErrorCodes = {
2253
2253
  };
2254
2254
 
2255
2255
  // src/api/name-tokens/zod-schemas.ts
2256
- var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", serializable) => z12.object({
2256
+ var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", serializable) => z13.object({
2257
2257
  domainId: makeNodeSchema(`${valueLabel}.domainId`),
2258
2258
  name: makeReinterpretedNameSchema(valueLabel),
2259
- tokens: z12.array(makeNameTokenSchema(`${valueLabel}.tokens`, serializable)).nonempty(),
2259
+ tokens: z13.array(makeNameTokenSchema(`${valueLabel}.tokens`, serializable)).nonempty(),
2260
2260
  expiresAt: makeUnixTimestampSchema(`${valueLabel}.expiresAt`),
2261
2261
  accurateAsOf: makeUnixTimestampSchema(`${valueLabel}.accurateAsOf`)
2262
2262
  }).check(function invariant_nameIsAssociatedWithDomainId(ctx) {
@@ -2298,32 +2298,32 @@ var makeRegisteredNameTokenSchema = (valueLabel = "Registered Name Token", seria
2298
2298
  });
2299
2299
  }
2300
2300
  });
2301
- var makeNameTokensResponseOkSchema = (valueLabel = "Name Tokens Response OK", serializable) => z12.strictObject({
2302
- responseCode: z12.literal(NameTokensResponseCodes.Ok),
2301
+ var makeNameTokensResponseOkSchema = (valueLabel = "Name Tokens Response OK", serializable) => z13.strictObject({
2302
+ responseCode: z13.literal(NameTokensResponseCodes.Ok),
2303
2303
  registeredNameTokens: makeRegisteredNameTokenSchema(`${valueLabel}.nameTokens`, serializable)
2304
2304
  });
2305
- var makeNameTokensResponseErrorNameTokensNotIndexedSchema = (_valueLabel = "Name Tokens Response Error Name Not Indexed") => z12.strictObject({
2306
- responseCode: z12.literal(NameTokensResponseCodes.Error),
2307
- errorCode: z12.literal(NameTokensResponseErrorCodes.NameTokensNotIndexed),
2305
+ var makeNameTokensResponseErrorNameTokensNotIndexedSchema = (_valueLabel = "Name Tokens Response Error Name Not Indexed") => z13.strictObject({
2306
+ responseCode: z13.literal(NameTokensResponseCodes.Error),
2307
+ errorCode: z13.literal(NameTokensResponseErrorCodes.NameTokensNotIndexed),
2308
2308
  error: ErrorResponseSchema
2309
2309
  });
2310
- var makeNameTokensResponseErrorEnsIndexerConfigUnsupported = (_valueLabel = "Name Tokens Response Error ENSIndexer Config Unsupported") => z12.strictObject({
2311
- responseCode: z12.literal(NameTokensResponseCodes.Error),
2312
- errorCode: z12.literal(NameTokensResponseErrorCodes.EnsIndexerConfigUnsupported),
2310
+ var makeNameTokensResponseErrorEnsIndexerConfigUnsupported = (_valueLabel = "Name Tokens Response Error ENSIndexer Config Unsupported") => z13.strictObject({
2311
+ responseCode: z13.literal(NameTokensResponseCodes.Error),
2312
+ errorCode: z13.literal(NameTokensResponseErrorCodes.EnsIndexerConfigUnsupported),
2313
2313
  error: ErrorResponseSchema
2314
2314
  });
2315
- var makeNameTokensResponseErrorNameIndexingStatusUnsupported = (_valueLabel = "Name Tokens Response Error Indexing Status Unsupported") => z12.strictObject({
2316
- responseCode: z12.literal(NameTokensResponseCodes.Error),
2317
- errorCode: z12.literal(NameTokensResponseErrorCodes.IndexingStatusUnsupported),
2315
+ var makeNameTokensResponseErrorNameIndexingStatusUnsupported = (_valueLabel = "Name Tokens Response Error Indexing Status Unsupported") => z13.strictObject({
2316
+ responseCode: z13.literal(NameTokensResponseCodes.Error),
2317
+ errorCode: z13.literal(NameTokensResponseErrorCodes.IndexingStatusUnsupported),
2318
2318
  error: ErrorResponseSchema
2319
2319
  });
2320
- var makeNameTokensResponseErrorSchema = (valueLabel = "Name Tokens Response Error") => z12.discriminatedUnion("errorCode", [
2320
+ var makeNameTokensResponseErrorSchema = (valueLabel = "Name Tokens Response Error") => z13.discriminatedUnion("errorCode", [
2321
2321
  makeNameTokensResponseErrorNameTokensNotIndexedSchema(valueLabel),
2322
2322
  makeNameTokensResponseErrorEnsIndexerConfigUnsupported(valueLabel),
2323
2323
  makeNameTokensResponseErrorNameIndexingStatusUnsupported(valueLabel)
2324
2324
  ]);
2325
2325
  var makeNameTokensResponseSchema = (valueLabel = "Name Tokens Response", serializable) => {
2326
- return z12.discriminatedUnion("responseCode", [
2326
+ return z13.discriminatedUnion("responseCode", [
2327
2327
  makeNameTokensResponseOkSchema(valueLabel, serializable ?? false),
2328
2328
  makeNameTokensResponseErrorSchema(valueLabel)
2329
2329
  ]);
@@ -2414,10 +2414,10 @@ import { prettifyError as prettifyError12 } from "zod/v4";
2414
2414
 
2415
2415
  // src/api/registrar-actions/zod-schemas.ts
2416
2416
  import { namehash as namehash3 } from "viem/ens";
2417
- import { z as z15 } from "zod/v4";
2417
+ import { z as z16 } from "zod/v4";
2418
2418
 
2419
2419
  // src/registrars/zod-schemas.ts
2420
- import { z as z13 } from "zod/v4";
2420
+ import { z as z14 } from "zod/v4";
2421
2421
 
2422
2422
  // src/registrars/encoded-referrer.ts
2423
2423
  import { getAddress, pad, size as size2, slice, zeroAddress as zeroAddress4 } from "viem";
@@ -2492,11 +2492,11 @@ function serializeRegistrarAction(registrarAction) {
2492
2492
  }
2493
2493
 
2494
2494
  // src/registrars/zod-schemas.ts
2495
- var makeSubregistrySchema = (valueLabel = "Subregistry") => z13.object({
2495
+ var makeSubregistrySchema = (valueLabel = "Subregistry") => z14.object({
2496
2496
  subregistryId: makeAccountIdSchema(`${valueLabel} Subregistry ID`),
2497
2497
  node: makeNodeSchema(`${valueLabel} Node`)
2498
2498
  });
2499
- var makeRegistrationLifecycleSchema = (valueLabel = "Registration Lifecycle") => z13.object({
2499
+ var makeRegistrationLifecycleSchema = (valueLabel = "Registration Lifecycle") => z14.object({
2500
2500
  subregistry: makeSubregistrySchema(`${valueLabel} Subregistry`),
2501
2501
  node: makeNodeSchema(`${valueLabel} Node`),
2502
2502
  expiresAt: makeUnixTimestampSchema(`${valueLabel} Expires at`)
@@ -2512,18 +2512,18 @@ function invariant_registrarActionPricingTotalIsSumOfBaseCostAndPremium(ctx) {
2512
2512
  });
2513
2513
  }
2514
2514
  }
2515
- var makeRegistrarActionPricingSchema = (valueLabel = "Registrar Action Pricing") => z13.union([
2515
+ var makeRegistrarActionPricingSchema = (valueLabel = "Registrar Action Pricing") => z14.union([
2516
2516
  // pricing available
2517
- z13.object({
2517
+ z14.object({
2518
2518
  baseCost: makePriceEthSchema(`${valueLabel} Base Cost`),
2519
2519
  premium: makePriceEthSchema(`${valueLabel} Premium`),
2520
2520
  total: makePriceEthSchema(`${valueLabel} Total`)
2521
2521
  }).check(invariant_registrarActionPricingTotalIsSumOfBaseCostAndPremium).transform((v) => v),
2522
2522
  // pricing unknown
2523
- z13.object({
2524
- baseCost: z13.null(),
2525
- premium: z13.null(),
2526
- total: z13.null()
2523
+ z14.object({
2524
+ baseCost: z14.null(),
2525
+ premium: z14.null(),
2526
+ total: z14.null()
2527
2527
  }).transform((v) => v)
2528
2528
  ]);
2529
2529
  function invariant_registrarActionDecodedReferrerBasedOnRawReferrer(ctx) {
@@ -2546,9 +2546,9 @@ function invariant_registrarActionDecodedReferrerBasedOnRawReferrer(ctx) {
2546
2546
  });
2547
2547
  }
2548
2548
  }
2549
- var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral") => z13.union([
2549
+ var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral") => z14.union([
2550
2550
  // referral available
2551
- z13.object({
2551
+ z14.object({
2552
2552
  encodedReferrer: makeHexStringSchema(
2553
2553
  { bytesCount: ENCODED_REFERRER_BYTE_LENGTH },
2554
2554
  `${valueLabel} Encoded Referrer`
@@ -2556,9 +2556,9 @@ var makeRegistrarActionReferralSchema = (valueLabel = "Registrar Action Referral
2556
2556
  decodedReferrer: makeLowercaseAddressSchema(`${valueLabel} Decoded Referrer`)
2557
2557
  }).check(invariant_registrarActionDecodedReferrerBasedOnRawReferrer),
2558
2558
  // referral not applicable
2559
- z13.object({
2560
- encodedReferrer: z13.null(),
2561
- decodedReferrer: z13.null()
2559
+ z14.object({
2560
+ encodedReferrer: z14.null(),
2561
+ decodedReferrer: z14.null()
2562
2562
  })
2563
2563
  ]);
2564
2564
  function invariant_eventIdsInitialElementIsTheActionId(ctx) {
@@ -2571,9 +2571,9 @@ function invariant_eventIdsInitialElementIsTheActionId(ctx) {
2571
2571
  });
2572
2572
  }
2573
2573
  }
2574
- var EventIdSchema = z13.string().nonempty();
2575
- var EventIdsSchema = z13.array(EventIdSchema).min(1).transform((v) => v);
2576
- var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => z13.object({
2574
+ var EventIdSchema = z14.string().nonempty();
2575
+ var EventIdsSchema = z14.array(EventIdSchema).min(1).transform((v) => v);
2576
+ var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => z14.object({
2577
2577
  id: EventIdSchema,
2578
2578
  incrementalDuration: makeDurationSchema(`${valueLabel} Incremental Duration`),
2579
2579
  registrant: makeLowercaseAddressSchema(`${valueLabel} Registrant`),
@@ -2587,38 +2587,38 @@ var makeBaseRegistrarActionSchema = (valueLabel = "Base Registrar Action") => z1
2587
2587
  eventIds: EventIdsSchema
2588
2588
  }).check(invariant_eventIdsInitialElementIsTheActionId);
2589
2589
  var makeRegistrarActionRegistrationSchema = (valueLabel = "Registration ") => makeBaseRegistrarActionSchema(valueLabel).extend({
2590
- type: z13.literal(RegistrarActionTypes.Registration)
2590
+ type: z14.literal(RegistrarActionTypes.Registration)
2591
2591
  });
2592
2592
  var makeRegistrarActionRenewalSchema = (valueLabel = "Renewal") => makeBaseRegistrarActionSchema(valueLabel).extend({
2593
- type: z13.literal(RegistrarActionTypes.Renewal)
2593
+ type: z14.literal(RegistrarActionTypes.Renewal)
2594
2594
  });
2595
- var makeRegistrarActionSchema = (valueLabel = "Registrar Action") => z13.discriminatedUnion("type", [
2595
+ var makeRegistrarActionSchema = (valueLabel = "Registrar Action") => z14.discriminatedUnion("type", [
2596
2596
  makeRegistrarActionRegistrationSchema(`${valueLabel} Registration`),
2597
2597
  makeRegistrarActionRenewalSchema(`${valueLabel} Renewal`)
2598
2598
  ]);
2599
2599
 
2600
2600
  // src/api/shared/pagination/zod-schemas.ts
2601
- import { z as z14 } from "zod/v4";
2601
+ import { z as z15 } from "zod/v4";
2602
2602
 
2603
2603
  // src/api/shared/pagination/request.ts
2604
2604
  var RECORDS_PER_PAGE_DEFAULT = 10;
2605
2605
  var RECORDS_PER_PAGE_MAX = 100;
2606
2606
 
2607
2607
  // src/api/shared/pagination/zod-schemas.ts
2608
- var makeRequestPageParamsSchema = (valueLabel = "RequestPageParams") => z14.object({
2608
+ var makeRequestPageParamsSchema = (valueLabel = "RequestPageParams") => z15.object({
2609
2609
  page: makePositiveIntegerSchema(`${valueLabel}.page`),
2610
2610
  recordsPerPage: makePositiveIntegerSchema(`${valueLabel}.recordsPerPage`).max(
2611
2611
  RECORDS_PER_PAGE_MAX,
2612
2612
  `${valueLabel}.recordsPerPage must not exceed ${RECORDS_PER_PAGE_MAX}`
2613
2613
  )
2614
2614
  });
2615
- var makeResponsePageContextSchemaWithNoRecords = (valueLabel = "ResponsePageContextWithNoRecords") => z14.object({
2616
- totalRecords: z14.literal(0),
2617
- totalPages: z14.literal(1),
2618
- hasNext: z14.literal(false),
2619
- hasPrev: z14.literal(false),
2620
- startIndex: z14.undefined(),
2621
- endIndex: z14.undefined()
2615
+ var makeResponsePageContextSchemaWithNoRecords = (valueLabel = "ResponsePageContextWithNoRecords") => z15.object({
2616
+ totalRecords: z15.literal(0),
2617
+ totalPages: z15.literal(1),
2618
+ hasNext: z15.literal(false),
2619
+ hasPrev: z15.literal(false),
2620
+ startIndex: z15.undefined(),
2621
+ endIndex: z15.undefined()
2622
2622
  }).extend(makeRequestPageParamsSchema(valueLabel).shape);
2623
2623
  function invariant_responsePageWithRecordsIsCorrect(ctx) {
2624
2624
  const { hasNext, hasPrev, recordsPerPage, page, totalRecords, startIndex, endIndex } = ctx.value;
@@ -2653,15 +2653,15 @@ function invariant_responsePageWithRecordsIsCorrect(ctx) {
2653
2653
  });
2654
2654
  }
2655
2655
  }
2656
- var makeResponsePageContextSchemaWithRecords = (valueLabel = "ResponsePageContextWithRecords") => z14.object({
2656
+ var makeResponsePageContextSchemaWithRecords = (valueLabel = "ResponsePageContextWithRecords") => z15.object({
2657
2657
  totalRecords: makePositiveIntegerSchema(`${valueLabel}.totalRecords`),
2658
2658
  totalPages: makePositiveIntegerSchema(`${valueLabel}.totalPages`),
2659
- hasNext: z14.boolean(),
2660
- hasPrev: z14.boolean(),
2659
+ hasNext: z15.boolean(),
2660
+ hasPrev: z15.boolean(),
2661
2661
  startIndex: makeNonNegativeIntegerSchema(`${valueLabel}.startIndex`),
2662
2662
  endIndex: makeNonNegativeIntegerSchema(`${valueLabel}.endIndex`)
2663
2663
  }).extend(makeRequestPageParamsSchema(valueLabel).shape).check(invariant_responsePageWithRecordsIsCorrect);
2664
- var makeResponsePageContextSchema = (valueLabel = "ResponsePageContext") => z14.union([
2664
+ var makeResponsePageContextSchema = (valueLabel = "ResponsePageContext") => z15.union([
2665
2665
  makeResponsePageContextSchemaWithNoRecords(valueLabel),
2666
2666
  makeResponsePageContextSchemaWithRecords(valueLabel)
2667
2667
  ]);
@@ -2691,21 +2691,21 @@ function invariant_registrationLifecycleNodeMatchesName(ctx) {
2691
2691
  });
2692
2692
  }
2693
2693
  }
2694
- var makeNamedRegistrarActionSchema = (valueLabel = "Named Registrar Action") => z15.object({
2694
+ var makeNamedRegistrarActionSchema = (valueLabel = "Named Registrar Action") => z16.object({
2695
2695
  action: makeRegistrarActionSchema(valueLabel),
2696
2696
  name: makeReinterpretedNameSchema(valueLabel)
2697
2697
  }).check(invariant_registrationLifecycleNodeMatchesName);
2698
- var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => z15.object({
2699
- responseCode: z15.literal(RegistrarActionsResponseCodes.Ok),
2700
- registrarActions: z15.array(makeNamedRegistrarActionSchema(valueLabel)),
2698
+ var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => z16.object({
2699
+ responseCode: z16.literal(RegistrarActionsResponseCodes.Ok),
2700
+ registrarActions: z16.array(makeNamedRegistrarActionSchema(valueLabel)),
2701
2701
  pageContext: makeResponsePageContextSchema(`${valueLabel}.pageContext`),
2702
2702
  accurateAsOf: makeUnixTimestampSchema(`${valueLabel}.accurateAsOf`).optional()
2703
2703
  });
2704
- var makeRegistrarActionsResponseErrorSchema = (_valueLabel = "Registrar Actions Response Error") => z15.strictObject({
2705
- responseCode: z15.literal(RegistrarActionsResponseCodes.Error),
2704
+ var makeRegistrarActionsResponseErrorSchema = (_valueLabel = "Registrar Actions Response Error") => z16.strictObject({
2705
+ responseCode: z16.literal(RegistrarActionsResponseCodes.Error),
2706
2706
  error: ErrorResponseSchema
2707
2707
  });
2708
- var makeRegistrarActionsResponseSchema = (valueLabel = "Registrar Actions Response") => z15.discriminatedUnion("responseCode", [
2708
+ var makeRegistrarActionsResponseSchema = (valueLabel = "Registrar Actions Response") => z16.discriminatedUnion("responseCode", [
2709
2709
  makeRegistrarActionsResponseOkSchema(valueLabel),
2710
2710
  makeRegistrarActionsResponseErrorSchema(valueLabel)
2711
2711
  ]);