web3bio-profile-kit 0.1.3 → 0.1.4

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.
Files changed (74) hide show
  1. package/dist/hooks/index.cjs +21 -0
  2. package/dist/hooks/index.js +8 -0
  3. package/dist/hooks/useBaseQuery.cjs +129 -0
  4. package/dist/{types/hooks → hooks}/useBaseQuery.d.ts +1 -2
  5. package/dist/hooks/useBaseQuery.js +127 -0
  6. package/dist/hooks/useBatchNS.cjs +25 -0
  7. package/dist/{types/hooks → hooks}/useBatchNS.d.ts +1 -1
  8. package/dist/hooks/useBatchNS.js +23 -0
  9. package/dist/hooks/useBatchProfile.cjs +25 -0
  10. package/dist/{types/hooks → hooks}/useBatchProfile.d.ts +1 -1
  11. package/dist/hooks/useBatchProfile.js +23 -0
  12. package/dist/hooks/useDomain.cjs +28 -0
  13. package/dist/{types/hooks → hooks}/useDomain.d.ts +1 -1
  14. package/dist/hooks/useDomain.js +26 -0
  15. package/dist/hooks/useNS.cjs +28 -0
  16. package/dist/{types/hooks → hooks}/useNS.d.ts +1 -1
  17. package/dist/hooks/useNS.js +26 -0
  18. package/dist/hooks/useProfile.cjs +28 -0
  19. package/dist/{types/hooks → hooks}/useProfile.d.ts +1 -1
  20. package/dist/hooks/useProfile.js +26 -0
  21. package/dist/hooks/useUniversalNS.cjs +28 -0
  22. package/dist/{types/hooks → hooks}/useUniversalNS.d.ts +1 -1
  23. package/dist/hooks/useUniversalNS.js +26 -0
  24. package/dist/hooks/useUniversalProfile.cjs +28 -0
  25. package/dist/{types/hooks → hooks}/useUniversalProfile.d.ts +1 -1
  26. package/dist/hooks/useUniversalProfile.js +26 -0
  27. package/dist/index.cjs +71 -0
  28. package/dist/index.d.ts +3 -441
  29. package/dist/index.js +18 -2038
  30. package/dist/types/cointype.cjs +29 -0
  31. package/dist/types/cointype.d.ts +26 -0
  32. package/dist/types/cointype.js +29 -0
  33. package/dist/types/hook.cjs +38 -0
  34. package/dist/types/hook.d.ts +195 -0
  35. package/dist/types/hook.js +38 -0
  36. package/dist/types/index.cjs +38 -0
  37. package/dist/types/index.d.ts +5 -7
  38. package/dist/types/index.js +5 -0
  39. package/dist/types/network.cjs +41 -0
  40. package/dist/types/{utils/network.d.ts → network.d.ts} +9 -4
  41. package/dist/types/network.js +41 -0
  42. package/dist/types/platform.cjs +110 -0
  43. package/dist/types/{utils/platform.d.ts → platform.d.ts} +19 -5
  44. package/dist/types/platform.js +110 -0
  45. package/dist/types/source.cjs +44 -0
  46. package/dist/types/{utils/source.d.ts → source.d.ts} +11 -3
  47. package/dist/types/source.js +44 -0
  48. package/dist/utils/helpers.cjs +119 -0
  49. package/dist/{types/utils → utils}/helpers.d.ts +4 -3
  50. package/dist/utils/helpers.js +112 -0
  51. package/dist/utils/index.cjs +27 -0
  52. package/dist/utils/index.d.ts +6 -0
  53. package/dist/utils/index.js +6 -0
  54. package/dist/utils/network.cjs +355 -0
  55. package/dist/utils/network.d.ts +4 -0
  56. package/dist/utils/network.js +353 -0
  57. package/dist/utils/platform.cjs +983 -0
  58. package/dist/utils/platform.d.ts +18 -0
  59. package/dist/utils/platform.js +979 -0
  60. package/dist/utils/regex.cjs +34 -0
  61. package/dist/utils/regex.d.ts +30 -0
  62. package/dist/utils/regex.js +32 -0
  63. package/dist/utils/source.cjs +144 -0
  64. package/dist/utils/source.d.ts +2 -0
  65. package/dist/utils/source.js +142 -0
  66. package/package.json +32 -12
  67. package/dist/index.esm.js +0 -2023
  68. package/dist/index.esm.js.map +0 -1
  69. package/dist/index.js.map +0 -1
  70. package/dist/types/utils/cointype.d.ts +0 -22
  71. package/dist/types/utils/constants.d.ts +0 -36
  72. package/dist/types/utils/types.d.ts +0 -74
  73. /package/dist/{types/hooks → hooks}/index.d.ts +0 -0
  74. /package/dist/{types/setupTests.d.ts → setupTests.d.ts} +0 -0
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ require('../types/platform.cjs');
4
+ require('../types/network.cjs');
5
+ var hook = require('../types/hook.cjs');
6
+ require('../types/source.cjs');
7
+ require('../types/cointype.cjs');
8
+ var useBaseQuery = require('./useBaseQuery.cjs');
9
+
10
+ /**
11
+ * Hook to query Web3.bio profile data using universal identity lookup
12
+ *
13
+ * @param identity - Identity string
14
+ * @param options - Optional configuration options
15
+ * @returns Object containing profile data, loading state, and any errors
16
+ *
17
+ * @example
18
+ * // Query by ENS name with universal lookup
19
+ * const { data, isLoading, error } = useUniversalProfile("vitalik.eth");
20
+ *
21
+ * // Query by any identity type with universal lookup
22
+ * const { data } = useUniversalProfile("dwr.farcaster");
23
+ */
24
+ function useUniversalProfile(identity, options = {}) {
25
+ return useBaseQuery.useBaseQuery(identity, hook.QueryEndpoint.PROFILE, true, options);
26
+ }
27
+
28
+ exports.useUniversalProfile = useUniversalProfile;
@@ -1,4 +1,4 @@
1
- import type { IdentityString, ProfileUniversalResult, QueryOptions } from "../utils/types";
1
+ import { type IdentityString, type ProfileUniversalResult, type QueryOptions } from "../types";
2
2
  /**
3
3
  * Hook to query Web3.bio profile data using universal identity lookup
4
4
  *
@@ -0,0 +1,26 @@
1
+ import '../types/platform.js';
2
+ import '../types/network.js';
3
+ import { QueryEndpoint } from '../types/hook.js';
4
+ import '../types/source.js';
5
+ import '../types/cointype.js';
6
+ import { useBaseQuery } from './useBaseQuery.js';
7
+
8
+ /**
9
+ * Hook to query Web3.bio profile data using universal identity lookup
10
+ *
11
+ * @param identity - Identity string
12
+ * @param options - Optional configuration options
13
+ * @returns Object containing profile data, loading state, and any errors
14
+ *
15
+ * @example
16
+ * // Query by ENS name with universal lookup
17
+ * const { data, isLoading, error } = useUniversalProfile("vitalik.eth");
18
+ *
19
+ * // Query by any identity type with universal lookup
20
+ * const { data } = useUniversalProfile("dwr.farcaster");
21
+ */
22
+ function useUniversalProfile(identity, options = {}) {
23
+ return useBaseQuery(identity, QueryEndpoint.PROFILE, true, options);
24
+ }
25
+
26
+ export { useUniversalProfile };
package/dist/index.cjs ADDED
@@ -0,0 +1,71 @@
1
+ 'use strict';
2
+
3
+ var useProfile = require('./hooks/useProfile.cjs');
4
+ var useNS = require('./hooks/useNS.cjs');
5
+ var useUniversalProfile = require('./hooks/useUniversalProfile.cjs');
6
+ var useUniversalNS = require('./hooks/useUniversalNS.cjs');
7
+ var useBatchProfile = require('./hooks/useBatchProfile.cjs');
8
+ var useBatchNS = require('./hooks/useBatchNS.cjs');
9
+ var useDomain = require('./hooks/useDomain.cjs');
10
+ var useBaseQuery = require('./hooks/useBaseQuery.cjs');
11
+ var cointype = require('./types/cointype.cjs');
12
+ var regex = require('./utils/regex.cjs');
13
+ var helpers = require('./utils/helpers.cjs');
14
+ var network = require('./utils/network.cjs');
15
+ var platform = require('./utils/platform.cjs');
16
+ var source = require('./utils/source.cjs');
17
+ var platform$1 = require('./types/platform.cjs');
18
+ var network$1 = require('./types/network.cjs');
19
+ var hook = require('./types/hook.cjs');
20
+ var source$1 = require('./types/source.cjs');
21
+
22
+
23
+
24
+ exports.useProfile = useProfile.useProfile;
25
+ exports.useNS = useNS.useNS;
26
+ exports.useUniversalProfile = useUniversalProfile.useUniversalProfile;
27
+ exports.useUniversalNS = useUniversalNS.useUniversalNS;
28
+ exports.useBatchProfile = useBatchProfile.useBatchProfile;
29
+ exports.useBatchNS = useBatchNS.useBatchNS;
30
+ exports.useDomain = useDomain.useDomain;
31
+ exports.useBaseQuery = useBaseQuery.useBaseQuery;
32
+ Object.defineProperty(exports, 'CoinType', {
33
+ enumerable: true,
34
+ get: function () { return cointype.CoinType; }
35
+ });
36
+ exports.REGEX = regex.REGEX;
37
+ exports.API_ENDPOINT = helpers.API_ENDPOINT;
38
+ exports.detectPlatform = helpers.detectPlatform;
39
+ exports.getApiKey = helpers.getApiKey;
40
+ exports.isSupportedPlatform = helpers.isSupportedPlatform;
41
+ exports.prettify = helpers.prettify;
42
+ exports.resolveIdentity = helpers.resolveIdentity;
43
+ exports.NETWORK_DATA = network.NETWORK_DATA;
44
+ exports.DEFAULT_PLATFORM = platform.DEFAULT_PLATFORM;
45
+ exports.PLATFORM_DATA = platform.PLATFORM_DATA;
46
+ exports.getPlatformData = platform.getPlatformData;
47
+ exports.SOURCE_DATA = source.SOURCE_DATA;
48
+ Object.defineProperty(exports, 'Platform', {
49
+ enumerable: true,
50
+ get: function () { return platform$1.Platform; }
51
+ });
52
+ Object.defineProperty(exports, 'PlatformSystem', {
53
+ enumerable: true,
54
+ get: function () { return platform$1.PlatformSystem; }
55
+ });
56
+ Object.defineProperty(exports, 'Network', {
57
+ enumerable: true,
58
+ get: function () { return network$1.Network; }
59
+ });
60
+ Object.defineProperty(exports, 'ErrorMessages', {
61
+ enumerable: true,
62
+ get: function () { return hook.ErrorMessages; }
63
+ });
64
+ Object.defineProperty(exports, 'QueryEndpoint', {
65
+ enumerable: true,
66
+ get: function () { return hook.QueryEndpoint; }
67
+ });
68
+ Object.defineProperty(exports, 'Source', {
69
+ enumerable: true,
70
+ get: function () { return source$1.Source; }
71
+ });
package/dist/index.d.ts CHANGED
@@ -1,441 +1,3 @@
1
- declare enum Network {
2
- aptos = "aptos",
3
- arbitrum = "arbitrum",
4
- arbitrum_nova = "arbitrum_nova",
5
- arbitrum_one = "arbitrum_one",
6
- apechain = "apechain",
7
- arweave = "arweave",
8
- avalanche = "avalanche",
9
- base = "base",
10
- bitcoin = "bitcoin",
11
- binanceSmartChain = "binance-smart-chain",
12
- bsc = "bsc",
13
- conflux = "conflux",
14
- crossbell = "crossbell",
15
- erc1577 = "erc1577",
16
- ethereum = "ethereum",
17
- fantom = "fantom",
18
- farcaster = "farcaster",
19
- flow = "flow",
20
- gnosis = "gnosis",
21
- lens = "lens",
22
- linea = "linea",
23
- mastodon = "mastodon",
24
- optimism = "optimism",
25
- polygon = "polygon",
26
- scroll = "scroll",
27
- snapshot = "snapshot",
28
- solana = "solana",
29
- vsl = "vsl",
30
- xLayer = "x-layer",
31
- zksync_era = "zksync_era",
32
- zora = "zora",
33
- unichain = "unichain"
34
- }
35
- interface NetworkMetaData {
36
- assetPrefix?: string;
37
- bgColor: string;
38
- chainId?: number;
39
- icon: string;
40
- key: string;
41
- label: string;
42
- primaryColor: string;
43
- scanLabel?: string;
44
- scanPrefix: string;
45
- scanPrefixTx?: string;
46
- short?: string;
47
- }
48
- declare const NETWORK_DATA: {
49
- [key in Network]: NetworkMetaData;
50
- };
51
-
52
- declare enum PlatformType {
53
- ens = "ens",
54
- dotbit = "dotbit",
55
- lens = "lens",
56
- box = "box",
57
- ethereum = "ethereum",
58
- twitter = "twitter",
59
- nextid = "nextid",
60
- bitcoin = "bitcoin",
61
- keybase = "keybase",
62
- reddit = "reddit",
63
- github = "github",
64
- unstoppableDomains = "unstoppabledomains",
65
- basenames = "basenames",
66
- linea = "linea",
67
- ckb = "ckb",
68
- farcaster = "farcaster",
69
- space_id = "space_id",
70
- telegram = "telegram",
71
- instagram = "instagram",
72
- cyberconnect = "cyberconnect",
73
- opensea = "opensea",
74
- discord = "discord",
75
- calendly = "calendly",
76
- url = "url",
77
- website = "website",
78
- linkedin = "linkedin",
79
- dns = "dns",
80
- tron = "tron",
81
- hey = "hey",
82
- facebook = "facebook",
83
- threads = "threads",
84
- whatsapp = "whatsapp",
85
- weibo = "weibo",
86
- youtube = "youtube",
87
- tiktok = "tiktok",
88
- bilibili = "bilibili",
89
- medium = "medium",
90
- mirror = "mirror",
91
- zerion = "zerion",
92
- aave = "aave",
93
- rainbow = "rainbow",
94
- bluesky = "bluesky",
95
- nostr = "nostr",
96
- poap = "poap",
97
- uniswap = "uniswap",
98
- degenscore = "degenscore",
99
- firefly = "firefly",
100
- solana = "solana",
101
- sns = "sns",
102
- mstdnjp = "mstdnjp",
103
- lobsters = "lobsters",
104
- hackernews = "hackernews",
105
- crossbell = "crossbell",
106
- minds = "minds",
107
- paragraph = "paragraph",
108
- genome = "genome",
109
- gnosis = "gnosis",
110
- webacy = "webacy",
111
- clusters = "clusters",
112
- guild = "guild",
113
- ton = "ton",
114
- snapshot = "snapshot",
115
- coingecko = "coingecko",
116
- gitcoin = "gitcoin",
117
- humanpassport = "humanpassport",
118
- talent = "talentprotocol",
119
- doge = "doge",
120
- bsc = "bsc",
121
- aptos = "aptos",
122
- near = "near",
123
- stacks = "stacks",
124
- cosmos = "cosmos",
125
- zeta = "zeta",
126
- mode = "mode",
127
- arbitrum = "arbitrum",
128
- scroll = "scroll",
129
- taiko = "taiko",
130
- mint = "mint",
131
- zkfair = "zkfair",
132
- manta = "manta",
133
- lightlink = "lightlink",
134
- merlin = "merlin",
135
- alienx = "alienx",
136
- edgeless = "edgeless",
137
- tomo = "tomo",
138
- ailayer = "ailayer",
139
- philand = "philand",
140
- efp = "efp",
141
- gravity = "gravity"
142
- }
143
- type SocialPlatform = {
144
- color?: string;
145
- icon?: string;
146
- label: string;
147
- description?: string;
148
- urlPrefix?: string;
149
- ensText?: string[];
150
- registerlink?: string;
151
- editUrlPrefix?: string;
152
- system: PlatformSystem;
153
- };
154
- declare enum PlatformSystem {
155
- web2 = 0,
156
- web3 = 1
157
- }
158
- declare const DEFAULT_PLATFORM: Readonly<SocialPlatform>;
159
- declare const PLATFORM_DATA: ReadonlyMap<PlatformType, Readonly<SocialPlatform>>;
160
-
161
- declare enum SourceType {
162
- ethereum = "ethereum",
163
- ens = "ens",
164
- twitter = "twitter",
165
- keybase = "keybase",
166
- nextid = "nextid",
167
- rss3 = "rss3",
168
- dotbit = "dotbit",
169
- unstoppabledomains = "unstoppabledomains",
170
- lens = "lens",
171
- farcaster = "farcaster",
172
- space_id = "space_id",
173
- crossbell = "crossbell",
174
- clusters = "clusters",
175
- solana = "solana",
176
- sns = "sns",
177
- opensea = "opensea",
178
- firefly = "firefly",
179
- basenames = "basenames",
180
- dentity = "dentity",
181
- nftd = "nftd",
182
- mirror = "mirror",
183
- paragraph = "paragraph",
184
- foundation = "foundation",
185
- rarible = "rarible",
186
- soundxyz = "soundxyz",
187
- gravity = "gravity",
188
- linea = "linea",
189
- gmgn = "gmgn",
190
- nostr = "nostr",
191
- talentprotocol = "talentprotocol",
192
- crowdsourcing = "crowdsourcing",
193
- particle = "particle",
194
- tally = "tally",
195
- icebreaker = "icebreaker"
196
- }
197
- interface SourceInfo {
198
- name: string;
199
- description: string;
200
- }
201
- declare const SOURCE_DATA: Readonly<Record<SourceType, SourceInfo>>;
202
-
203
- type AddressRecord = {
204
- address: string;
205
- network: string;
206
- __typename: "Address";
207
- };
208
- type SocialLinksItem = {
209
- link: string | null;
210
- handle: string | null;
211
- sources: SourceType[];
212
- };
213
- type SocialLinks = Record<string, SocialLinksItem>;
214
- type SocialRecord = {
215
- uid: number | null;
216
- follower: number;
217
- following: number;
218
- };
219
- interface ProfileResponse extends NSResponse {
220
- email: string | null;
221
- contenthash: string | null;
222
- header: string | null;
223
- location: string | null;
224
- createdAt: string | null;
225
- status: string | null;
226
- error?: string;
227
- links: SocialLinks;
228
- social: SocialRecord | {};
229
- }
230
- interface NSResponse {
231
- identity: string;
232
- address: string | null;
233
- avatar: string | null;
234
- description: string | null;
235
- platform: string;
236
- displayName: string | null;
237
- aliases?: string[];
238
- }
239
- interface DomainResponse {
240
- identity: string;
241
- platform: PlatformType;
242
- resolvedAddress: string | null;
243
- ownerAddress: string | null;
244
- managerAddress: string | null;
245
- displayName: string | null;
246
- isPrimary: boolean;
247
- status: string;
248
- createdAt: string | null;
249
- updatedAt: string | null;
250
- expiredAt: string | null;
251
- contenthash: string | null;
252
- texts: Record<string, string>;
253
- addresses: Record<Network, string>;
254
- }
255
- type QueryOptions = {
256
- /** API Key for authentication */
257
- apiKey?: string;
258
- /** Whether the query should execute */
259
- enabled?: boolean;
260
- };
261
- type IdentityString = string | `${PlatformType},${string}`;
262
- type QueryResult<T> = {
263
- data: T | null;
264
- isLoading: boolean;
265
- error: Error | null;
266
- };
267
- type ProfileResult = QueryResult<ProfileResponse>;
268
- type NSResult = QueryResult<NSResponse>;
269
- type ProfileBatchResult = QueryResult<ProfileResponse[]>;
270
- type NSBatchResult = QueryResult<NSResponse[]>;
271
- type ProfileUniversalResult = QueryResult<ProfileResponse[]>;
272
- type NSUniversalResult = QueryResult<NSResponse[]>;
273
- type DomainResult = QueryResult<DomainResponse>;
274
-
275
- /**
276
- * Hook to query Web3.bio profile data by identity
277
- *
278
- * @param identity - Identity string
279
- * @param options - Optional configuration options
280
- * @returns Object containing profile data, loading state, and any errors
281
- *
282
- * @example
283
- * // Query by ENS name
284
- * const { data, isLoading, error } = useProfile("vitalik.eth");
285
- *
286
- * // Query with platform specification
287
- * const { data } = useProfile("farcaster,dwr");
288
- */
289
- declare function useProfile(identity: IdentityString, options?: QueryOptions): ProfileResult;
290
-
291
- /**
292
- * Hook to query Web3.bio name service (NS) data by identity
293
- *
294
- * @param identity - Identity string
295
- * @param options - Optional configuration options
296
- * @returns Object containing NS data, loading state, and any errors
297
- *
298
- * @example
299
- * // Query by ENS name
300
- * const { data, isLoading, error } = useNS("vitalik.eth");
301
- *
302
- * // Query by Ethereum address
303
- * const { data } = useNS("0x123...");
304
- */
305
- declare function useNS(identity: IdentityString, options?: QueryOptions): NSResult;
306
-
307
- /**
308
- * Hook to query Web3.bio profile data using universal identity lookup
309
- *
310
- * @param identity - Identity string
311
- * @param options - Optional configuration options
312
- * @returns Object containing profile data, loading state, and any errors
313
- *
314
- * @example
315
- * // Query by ENS name with universal lookup
316
- * const { data, isLoading, error } = useUniversalProfile("vitalik.eth");
317
- *
318
- * // Query by any identity type with universal lookup
319
- * const { data } = useUniversalProfile("dwr.farcaster");
320
- */
321
- declare function useUniversalProfile(identity: IdentityString, options?: QueryOptions): ProfileUniversalResult;
322
-
323
- /**
324
- * Hook to query Web3.bio name service (NS) data using universal identity lookup
325
- *
326
- * @param identity - Identity string
327
- * @param options - Optional configuration options
328
- * @returns Object containing NS data, loading state, and any errors
329
- *
330
- * @example
331
- * // Query by ENS name with universal lookup
332
- * const { data, isLoading, error } = useUniversalNS("vitalik.eth");
333
- *
334
- * // Query by any identity type with universal lookup
335
- * const { data } = useUniversalNS("dwr.farcaster");
336
- */
337
- declare function useUniversalNS(identity: IdentityString, options?: QueryOptions): NSUniversalResult;
338
-
339
- /**
340
- * Hook to query Web3.bio profile data using batch identity lookup
341
- *
342
- * @param identity - array of Identity string
343
- * @param options - Optional configuration options
344
- * @returns Object containing profile data, loading state, and any errors
345
- *
346
- * @example
347
- * // Query by any identity type with batch lookup
348
- * const { data } = useBatchProfile(["dwr.farcaster","ens,vitalik.eth","sujiyan.eth","stani.lens"]);
349
- */
350
- declare function useBatchProfile(identity: IdentityString[], options?: QueryOptions): ProfileBatchResult;
351
-
352
- /**
353
- * Hook to query Web3.bio profile data using batch(NS) identity lookup
354
- *
355
- * @param identity - array of Identity string
356
- * @param options - Optional configuration options
357
- * @returns Object containing profile data, loading state, and any errors
358
- *
359
- * @example
360
- * // Query by any identity type with batch lookup
361
- * const { data } = useBatchNS(["dwr.farcaster","ens,vitalik.eth","sujiyan.eth","stani.lens"]);
362
- */
363
- declare function useBatchNS(identity: IdentityString[], options?: QueryOptions): NSBatchResult;
364
-
365
- /**
366
- * Hook to query Web3.bio domain data by identity
367
- *
368
- * @param identity - Identity string
369
- * @param options - Optional configuration options
370
- * @returns Object containing domain data, loading state, and any errors
371
- *
372
- * @example
373
- * // Query by ENS name
374
- * const { data, isLoading, error } = useDomain("vitalik.eth");
375
- *
376
- * // Query by domain name with platform
377
- * const { data } = useDomain("ens,vitalik.eth");
378
- */
379
- declare function useDomain(identity: IdentityString, options?: QueryOptions): DomainResult;
380
-
381
- declare const API_ENDPOINT = "https://api.web3.bio";
382
- declare enum ErrorMessages {
383
- NOT_FOUND = "Not Found",
384
- INVALID_RESOLVER = "Invalid Resolver Address",
385
- INVALID_RESOLVED = "Invalid Resolved Address",
386
- NOT_EXIST = "Does Not Exist",
387
- INVALID_IDENTITY = "Invalid Identity or Domain",
388
- INVALID_ADDRESS = "Invalid Address",
389
- UNKNOWN_ERROR = "Unknown Error Occurred",
390
- NETWORK_ERROR = "Network Error"
391
- }
392
- declare enum QueryEndpoint {
393
- NS = "ns",
394
- PROFILE = "profile",
395
- DOMAIN = "domain"
396
- }
397
- declare const REGEX: {
398
- ENS: RegExp;
399
- BASENAMES: RegExp;
400
- LINEA: RegExp;
401
- FARCASTER: RegExp;
402
- LENS: RegExp;
403
- CLUSTER: RegExp;
404
- SPACE_ID: RegExp;
405
- GENOME: RegExp;
406
- UNSTOPPABLE_DOMAINS: RegExp;
407
- CROSSBELL: RegExp;
408
- DOTBIT: RegExp;
409
- SNS: RegExp;
410
- ETH_ADDRESS: RegExp;
411
- BTC_ADDRESS: RegExp;
412
- SOLANA_ADDRESS: RegExp;
413
- LOWERCASE_EXEMPT: RegExp;
414
- TWITTER: RegExp;
415
- NEXT_ID: RegExp;
416
- };
417
-
418
- declare const CoinType: {
419
- btc: number;
420
- ltc: number;
421
- doge: number;
422
- dash: number;
423
- monacoin: number;
424
- eth: number;
425
- etc: number;
426
- xrp: number;
427
- atom: number;
428
- rootstock: number;
429
- ripple: number;
430
- bch: number;
431
- bnb: number;
432
- xlm: number;
433
- rsk: number;
434
- eos: number;
435
- xem: number;
436
- trx: number;
437
- xdai: number;
438
- matic: number;
439
- };
440
-
441
- export { API_ENDPOINT, AddressRecord, CoinType, DEFAULT_PLATFORM, DomainResponse, DomainResult, ErrorMessages, IdentityString, NETWORK_DATA, NSBatchResult, NSResponse, NSResult, NSUniversalResult, Network, NetworkMetaData, PLATFORM_DATA, PlatformSystem, PlatformType, ProfileBatchResult, ProfileResponse, ProfileResult, ProfileUniversalResult, QueryEndpoint, QueryOptions, QueryResult, REGEX, SOURCE_DATA, SocialLinks, SocialLinksItem, SocialPlatform, SocialRecord, SourceInfo, SourceType, useBatchNS, useBatchProfile, useDomain, useNS, useProfile, useUniversalNS, useUniversalProfile };
1
+ export * from "./hooks";
2
+ export * from "./utils";
3
+ export * from "./types";