web3bio-profile-kit 0.1.2 → 0.1.3
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/README.md +14 -6
- package/dist/index.d.ts +214 -20
- package/dist/index.esm.js +1637 -29
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1641 -28
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/cointype.d.ts +22 -0
- package/dist/types/utils/helpers.d.ts +1 -1
- package/dist/types/utils/network.d.ts +50 -0
- package/dist/types/utils/platform.d.ts +108 -0
- package/dist/types/utils/source.d.ts +41 -0
- package/dist/types/utils/types.d.ts +16 -44
- package/package.json +1 -1
|
@@ -1,46 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
unstoppableDomains = "unstoppabledomains",
|
|
10
|
-
basenames = "basenames",
|
|
11
|
-
linea = "linea",
|
|
12
|
-
space_id = "space_id",
|
|
13
|
-
solana = "solana",
|
|
14
|
-
sns = "sns",
|
|
15
|
-
nextid = "nextid",
|
|
16
|
-
dotbit = "dotbit"
|
|
17
|
-
}
|
|
18
|
-
export declare enum SourceType {
|
|
19
|
-
ethereum = "ethereum",
|
|
20
|
-
ens = "ens",
|
|
21
|
-
twitter = "twitter",
|
|
22
|
-
nextid = "nextid",
|
|
23
|
-
dotbit = "dotbit",
|
|
24
|
-
unstoppabledomains = "unstoppabledomains",
|
|
25
|
-
lens = "lens",
|
|
26
|
-
farcaster = "farcaster",
|
|
27
|
-
space_id = "space_id",
|
|
28
|
-
solana = "solana",
|
|
29
|
-
sns = "sns"
|
|
30
|
-
}
|
|
1
|
+
import { Network } from "./network";
|
|
2
|
+
import type { PlatformType } from "./platform";
|
|
3
|
+
import type { SourceType } from "./source";
|
|
4
|
+
export type AddressRecord = {
|
|
5
|
+
address: string;
|
|
6
|
+
network: string;
|
|
7
|
+
__typename: "Address";
|
|
8
|
+
};
|
|
31
9
|
export type SocialLinksItem = {
|
|
32
10
|
link: string | null;
|
|
33
11
|
handle: string | null;
|
|
34
12
|
sources: SourceType[];
|
|
35
13
|
};
|
|
36
14
|
export type SocialLinks = Record<string, SocialLinksItem>;
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
displayName: string | null;
|
|
15
|
+
export type SocialRecord = {
|
|
16
|
+
uid: number | null;
|
|
17
|
+
follower: number;
|
|
18
|
+
following: number;
|
|
19
|
+
};
|
|
20
|
+
export interface ProfileResponse extends NSResponse {
|
|
44
21
|
email: string | null;
|
|
45
22
|
contenthash: string | null;
|
|
46
23
|
header: string | null;
|
|
@@ -49,12 +26,7 @@ export interface ProfileResponse {
|
|
|
49
26
|
status: string | null;
|
|
50
27
|
error?: string;
|
|
51
28
|
links: SocialLinks;
|
|
52
|
-
|
|
53
|
-
social: {
|
|
54
|
-
uid: number | null;
|
|
55
|
-
follower: number;
|
|
56
|
-
following: number;
|
|
57
|
-
} | {};
|
|
29
|
+
social: SocialRecord | {};
|
|
58
30
|
}
|
|
59
31
|
export interface NSResponse {
|
|
60
32
|
identity: string;
|
|
@@ -79,7 +51,7 @@ export interface DomainResponse {
|
|
|
79
51
|
expiredAt: string | null;
|
|
80
52
|
contenthash: string | null;
|
|
81
53
|
texts: Record<string, string>;
|
|
82
|
-
addresses: Record<
|
|
54
|
+
addresses: Record<Network, string>;
|
|
83
55
|
}
|
|
84
56
|
export type QueryOptions = {
|
|
85
57
|
/** API Key for authentication */
|