enssdk 1.15.2 → 1.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enssdk",
3
- "version": "1.15.2",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "description": "The foundational ENS development library",
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "typescript": "^5.7.3",
57
57
  "viem": "^2.50.3",
58
58
  "vitest": "^4.1.0",
59
- "@ensnode/shared-configs": "1.15.2"
59
+ "@ensnode/shared-configs": "1.16.0"
60
60
  },
61
61
  "scripts": {
62
62
  "prepublish": "tsup",
@@ -25,6 +25,11 @@ type Account {
25
25
  """A unique reference to this Account."""
26
26
  id: Address!
27
27
 
28
+ """
29
+ The Names whose indexed `addr()` record points at this Account, optionally scoped to a single CoinType. Reflects literally-indexed, Canonical Domains only: records whose node has no Canonical Domain are omitted.
30
+ """
31
+ nameReferences(after: String, before: String, first: Int, last: Int, where: AccountNameReferencesWhereInput): AccountNameReferencesConnection
32
+
28
33
  """
29
34
  The Permissions granted to this Account, optionally filtered to Permissions in a specific contract.
30
35
  """
@@ -120,6 +125,25 @@ input AccountIdInput {
120
125
  chainId: ChainId!
121
126
  }
122
127
 
128
+ type AccountNameReferencesConnection {
129
+ edges: [AccountNameReferencesConnectionEdge!]!
130
+ pageInfo: PageInfo!
131
+ totalCount: Int!
132
+ }
133
+
134
+ type AccountNameReferencesConnectionEdge {
135
+ cursor: String!
136
+ node: NameReference!
137
+ }
138
+
139
+ """Filter for Account.nameReferences."""
140
+ input AccountNameReferencesWhereInput {
141
+ """
142
+ If set, scopes matches to a single CoinType. When omitted, returns matches across all CoinTypes.
143
+ """
144
+ coinType: CoinType
145
+ }
146
+
123
147
  type AccountPermissionsConnection {
124
148
  edges: [AccountPermissionsConnectionEdge!]!
125
149
  pageInfo: PageInfo!
@@ -290,6 +314,19 @@ enum ChainName {
290
314
  """CoinType represents an enssdk#CoinType."""
291
315
  scalar CoinType
292
316
 
317
+ """
318
+ The ENSIP-7 contenthash protocol type (e.g. IPFS, IPNS, Swarm, Arweave).
319
+ """
320
+ enum ContenthashProtocol {
321
+ ARWEAVE
322
+ IPFS
323
+ IPNS
324
+ ONION
325
+ ONION3
326
+ SKYNET
327
+ SWARM
328
+ }
329
+
293
330
  """
294
331
  DogecoinAddress represents a Base58Check-encoded Dogecoin address (coin type 3).
295
332
  """
@@ -427,6 +464,11 @@ type DomainProfile {
427
464
  """
428
465
  avatar: ProfileAvatar
429
466
 
467
+ """
468
+ The interpreted ENSIP-7 contenthash on the profile of an ENS name. Returns null when the raw contenthash record is unset, empty, or cannot be decoded (unknown codec or malformed bytes). See https://docs.ens.domains/ensip/7.
469
+ """
470
+ contenthash: ProfileContenthash
471
+
430
472
  """
431
473
  The interpreted description on the profile of an ENS name, or null when unset.
432
474
  """
@@ -1081,6 +1123,25 @@ input NameOrNodeInput @oneOf {
1081
1123
  node: Node
1082
1124
  }
1083
1125
 
1126
+ """A Name whose indexed `addr()` record points at an Account."""
1127
+ type NameReference {
1128
+ """The CoinType of the matching `addr()` record."""
1129
+ coinType: CoinType!
1130
+
1131
+ """
1132
+ The canonical Domain whose `addr(coinType)` record points at this Account.
1133
+ """
1134
+ domain: Domain!
1135
+
1136
+ """
1137
+ Whether this name is the ENSIP-19 Primary Name of this Account for this `coinType`. i.e. whether reverse resolution of `(address, coinType)` resolves to this exact name. Protocol Accelerated when supported.
1138
+ """
1139
+ match: Boolean!
1140
+
1141
+ """The Resolver holding the matching `addr()` record."""
1142
+ resolver: Resolver!
1143
+ }
1144
+
1084
1145
  """
1085
1146
  A NameWrapperRegistration represents a Registration initiated by the ENSv1 NameWrapper.
1086
1147
  """
@@ -1371,6 +1432,29 @@ type ProfileAvatar {
1371
1432
  httpUrl: String
1372
1433
  }
1373
1434
 
1435
+ """The interpreted ENSIP-7 contenthash on the profile of an ENS name."""
1436
+ type ProfileContenthash {
1437
+ """
1438
+ The decoded, human-readable content identifier (e.g. a CID for IPFS, transaction ID for Arweave).
1439
+ """
1440
+ decoded: String!
1441
+
1442
+ """
1443
+ The default public HTTP gateway URL for fetching this content in a browser (e.g. https://ipfs.io/ipfs/…). Null for protocols with no well-known public gateway (onion, skynet).
1444
+ """
1445
+ httpUrl: String
1446
+
1447
+ """
1448
+ The ENSIP-7 contenthash protocol type (e.g. IPFS, IPNS, Swarm, Arweave).
1449
+ """
1450
+ protocolType: ContenthashProtocol!
1451
+
1452
+ """
1453
+ The canonical protocol-native URI (e.g. "ipfs://bafy…", "ar://…", "bzz://…").
1454
+ """
1455
+ uri: String!
1456
+ }
1457
+
1374
1458
  """The interpreted header image on the profile of an ENS name."""
1375
1459
  type ProfileHeader {
1376
1460
  """