@indiciaosint/sdk 1.0.3 → 1.1.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/README.md +39 -34
- package/esm/funcs/infrastructure-scan-ports.d.ts +1 -1
- package/esm/funcs/infrastructure-scan-ports.d.ts.map +1 -1
- package/esm/funcs/infrastructure-scan-ports.js +1 -1
- package/esm/funcs/infrastructure-scan-ports.js.map +1 -1
- package/esm/funcs/infrastructure-search-certificates.d.ts +1 -1
- package/esm/funcs/infrastructure-search-certificates.d.ts.map +1 -1
- package/esm/funcs/infrastructure-search-certificates.js +1 -1
- package/esm/funcs/infrastructure-search-certificates.js.map +1 -1
- package/esm/funcs/infrastructure-search-dns.d.ts +1 -1
- package/esm/funcs/infrastructure-search-dns.d.ts.map +1 -1
- package/esm/funcs/infrastructure-search-dns.js +1 -1
- package/esm/funcs/infrastructure-search-dns.js.map +1 -1
- package/esm/funcs/infrastructure-search-ip-info.d.ts +1 -1
- package/esm/funcs/infrastructure-search-ip-info.d.ts.map +1 -1
- package/esm/funcs/infrastructure-search-ip-info.js +1 -1
- package/esm/funcs/infrastructure-search-ip-info.js.map +1 -1
- package/esm/funcs/infrastructure-search-shodan.d.ts +1 -1
- package/esm/funcs/infrastructure-search-shodan.d.ts.map +1 -1
- package/esm/funcs/infrastructure-search-shodan.js +1 -1
- package/esm/funcs/infrastructure-search-shodan.js.map +1 -1
- package/esm/funcs/infrastructure-search-whois.d.ts +1 -1
- package/esm/funcs/infrastructure-search-whois.d.ts.map +1 -1
- package/esm/funcs/infrastructure-search-whois.js +1 -1
- package/esm/funcs/infrastructure-search-whois.js.map +1 -1
- package/esm/funcs/intelligence-geolocate-media.d.ts +2 -1
- package/esm/funcs/intelligence-geolocate-media.d.ts.map +1 -1
- package/esm/funcs/intelligence-geolocate-media.js +23 -5
- package/esm/funcs/intelligence-geolocate-media.js.map +1 -1
- package/esm/funcs/intelligence-search-address.d.ts +1 -1
- package/esm/funcs/intelligence-search-address.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-address.js +1 -1
- package/esm/funcs/intelligence-search-address.js.map +1 -1
- package/esm/funcs/intelligence-search-email.d.ts +1 -1
- package/esm/funcs/intelligence-search-email.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-email.js +1 -1
- package/esm/funcs/intelligence-search-email.js.map +1 -1
- package/esm/funcs/intelligence-search-face.d.ts +1 -20
- package/esm/funcs/intelligence-search-face.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-face.js +21 -23
- package/esm/funcs/intelligence-search-face.js.map +1 -1
- package/esm/funcs/intelligence-search-gmail.d.ts +1 -1
- package/esm/funcs/intelligence-search-gmail.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-gmail.js +1 -1
- package/esm/funcs/intelligence-search-gmail.js.map +1 -1
- package/esm/funcs/intelligence-search-hudson-rock.d.ts +1 -1
- package/esm/funcs/intelligence-search-hudson-rock.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-hudson-rock.js +1 -1
- package/esm/funcs/intelligence-search-hudson-rock.js.map +1 -1
- package/esm/funcs/intelligence-search-person.d.ts +1 -1
- package/esm/funcs/intelligence-search-person.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-person.js +1 -1
- package/esm/funcs/intelligence-search-person.js.map +1 -1
- package/esm/funcs/intelligence-search-phone.d.ts +1 -1
- package/esm/funcs/intelligence-search-phone.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-phone.js +1 -1
- package/esm/funcs/intelligence-search-phone.js.map +1 -1
- package/esm/funcs/intelligence-search-seon.d.ts +1 -1
- package/esm/funcs/intelligence-search-seon.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-seon.js +1 -1
- package/esm/funcs/intelligence-search-seon.js.map +1 -1
- package/esm/funcs/intelligence-search-web-databases.d.ts +1 -1
- package/esm/funcs/intelligence-search-web-databases.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-web-databases.js +1 -1
- package/esm/funcs/intelligence-search-web-databases.js.map +1 -1
- package/esm/funcs/socials-search-discord.d.ts +1 -1
- package/esm/funcs/socials-search-discord.d.ts.map +1 -1
- package/esm/funcs/socials-search-discord.js +1 -1
- package/esm/funcs/socials-search-discord.js.map +1 -1
- package/esm/funcs/socials-search-github.d.ts +1 -1
- package/esm/funcs/socials-search-github.d.ts.map +1 -1
- package/esm/funcs/socials-search-github.js +1 -1
- package/esm/funcs/socials-search-github.js.map +1 -1
- package/esm/funcs/socials-search-roblox.d.ts +1 -1
- package/esm/funcs/socials-search-roblox.d.ts.map +1 -1
- package/esm/funcs/socials-search-roblox.js +1 -1
- package/esm/funcs/socials-search-roblox.js.map +1 -1
- package/esm/funcs/socials-search-tiktok.d.ts +1 -1
- package/esm/funcs/socials-search-tiktok.d.ts.map +1 -1
- package/esm/funcs/socials-search-tiktok.js +1 -1
- package/esm/funcs/socials-search-tiktok.js.map +1 -1
- package/esm/funcs/socials-search-username.d.ts +1 -1
- package/esm/funcs/socials-search-username.d.ts.map +1 -1
- package/esm/funcs/socials-search-username.js +1 -1
- package/esm/funcs/socials-search-username.js.map +1 -1
- package/esm/funcs/tools-bypass-double-counter.d.ts +1 -1
- package/esm/funcs/tools-bypass-double-counter.d.ts.map +1 -1
- package/esm/funcs/tools-bypass-double-counter.js +1 -1
- package/esm/funcs/tools-bypass-double-counter.js.map +1 -1
- package/esm/funcs/tools-download-intelx-file.d.ts +1 -1
- package/esm/funcs/tools-download-intelx-file.d.ts.map +1 -1
- package/esm/funcs/tools-download-intelx-file.js +1 -1
- package/esm/funcs/tools-download-intelx-file.js.map +1 -1
- package/esm/funcs/tools-lookup-discord-alt.d.ts +1 -1
- package/esm/funcs/tools-lookup-discord-alt.d.ts.map +1 -1
- package/esm/funcs/tools-lookup-discord-alt.js +1 -1
- package/esm/funcs/tools-lookup-discord-alt.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/errors/failed-response-error.d.ts +38 -0
- package/esm/models/errors/failed-response-error.d.ts.map +1 -0
- package/esm/models/errors/{search-discord.js → failed-response-error.js} +12 -6
- package/esm/models/errors/failed-response-error.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -24
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -24
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/operations/geolocate-media.d.ts +29 -2
- package/esm/models/operations/geolocate-media.d.ts.map +1 -1
- package/esm/models/operations/geolocate-media.js +21 -1
- package/esm/models/operations/geolocate-media.js.map +1 -1
- package/esm/models/operations/lookup-discord-alt.d.ts +0 -36
- package/esm/models/operations/lookup-discord-alt.d.ts.map +1 -1
- package/esm/models/operations/lookup-discord-alt.js +0 -40
- package/esm/models/operations/lookup-discord-alt.js.map +1 -1
- package/esm/models/operations/search-certificates.d.ts +0 -14
- package/esm/models/operations/search-certificates.d.ts.map +1 -1
- package/esm/models/operations/search-certificates.js +0 -26
- package/esm/models/operations/search-certificates.js.map +1 -1
- package/esm/models/operations/search-discord.d.ts +8 -8
- package/esm/models/operations/search-discord.d.ts.map +1 -1
- package/esm/models/operations/search-discord.js +8 -8
- package/esm/models/operations/search-discord.js.map +1 -1
- package/esm/models/operations/search-face.d.ts +17 -2
- package/esm/models/operations/search-face.d.ts.map +1 -1
- package/esm/models/operations/search-face.js +18 -1
- package/esm/models/operations/search-face.js.map +1 -1
- package/esm/models/operations/search-hudson-rock.d.ts +4 -4
- package/esm/models/operations/search-hudson-rock.d.ts.map +1 -1
- package/esm/models/operations/search-hudson-rock.js +4 -4
- package/esm/models/operations/search-hudson-rock.js.map +1 -1
- package/esm/models/operations/search-roblox.d.ts +9 -1
- package/esm/models/operations/search-roblox.d.ts.map +1 -1
- package/esm/models/operations/search-roblox.js +22 -1
- package/esm/models/operations/search-roblox.js.map +1 -1
- package/esm/models/operations/search-username.d.ts +108 -12
- package/esm/models/operations/search-username.d.ts.map +1 -1
- package/esm/models/operations/search-username.js +256 -12
- package/esm/models/operations/search-username.js.map +1 -1
- package/esm/sdk/intelligence.d.ts +1 -19
- package/esm/sdk/intelligence.d.ts.map +1 -1
- package/esm/sdk/intelligence.js +1 -19
- package/esm/sdk/intelligence.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/infrastructure-scan-ports.ts +5 -12
- package/src/funcs/infrastructure-search-certificates.ts +4 -4
- package/src/funcs/infrastructure-search-dns.ts +4 -4
- package/src/funcs/infrastructure-search-ip-info.ts +4 -4
- package/src/funcs/infrastructure-search-shodan.ts +4 -4
- package/src/funcs/infrastructure-search-whois.ts +4 -4
- package/src/funcs/intelligence-geolocate-media.ts +39 -16
- package/src/funcs/intelligence-search-address.ts +4 -4
- package/src/funcs/intelligence-search-email.ts +4 -4
- package/src/funcs/intelligence-search-face.ts +37 -34
- package/src/funcs/intelligence-search-gmail.ts +4 -4
- package/src/funcs/intelligence-search-hudson-rock.ts +4 -4
- package/src/funcs/intelligence-search-person.ts +4 -4
- package/src/funcs/intelligence-search-phone.ts +4 -4
- package/src/funcs/intelligence-search-seon.ts +4 -4
- package/src/funcs/intelligence-search-web-databases.ts +5 -8
- package/src/funcs/socials-search-discord.ts +4 -4
- package/src/funcs/socials-search-github.ts +4 -4
- package/src/funcs/socials-search-roblox.ts +4 -4
- package/src/funcs/socials-search-tiktok.ts +4 -4
- package/src/funcs/socials-search-username.ts +4 -4
- package/src/funcs/tools-bypass-double-counter.ts +4 -4
- package/src/funcs/tools-download-intelx-file.ts +5 -8
- package/src/funcs/tools-lookup-discord-alt.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/errors/{search-address.ts → failed-response-error.ts} +22 -10
- package/src/models/errors/index.ts +1 -24
- package/src/models/operations/geolocate-media.ts +55 -3
- package/src/models/operations/lookup-discord-alt.ts +0 -116
- package/src/models/operations/search-certificates.ts +0 -56
- package/src/models/operations/search-discord.ts +22 -16
- package/src/models/operations/search-face.ts +41 -3
- package/src/models/operations/search-hudson-rock.ts +13 -8
- package/src/models/operations/search-roblox.ts +51 -2
- package/src/models/operations/search-username.ts +573 -24
- package/src/sdk/intelligence.ts +1 -19
- package/esm/models/errors/bypass-double-counter.d.ts +0 -26
- package/esm/models/errors/bypass-double-counter.d.ts.map +0 -1
- package/esm/models/errors/bypass-double-counter.js +0 -41
- package/esm/models/errors/bypass-double-counter.js.map +0 -1
- package/esm/models/errors/download-intelx-file.d.ts +0 -49
- package/esm/models/errors/download-intelx-file.d.ts.map +0 -1
- package/esm/models/errors/download-intelx-file.js +0 -75
- package/esm/models/errors/download-intelx-file.js.map +0 -1
- package/esm/models/errors/geolocate-media.d.ts +0 -72
- package/esm/models/errors/geolocate-media.d.ts.map +0 -1
- package/esm/models/errors/geolocate-media.js +0 -109
- package/esm/models/errors/geolocate-media.js.map +0 -1
- package/esm/models/errors/lookup-discord-alt.d.ts +0 -29
- package/esm/models/errors/lookup-discord-alt.d.ts.map +0 -1
- package/esm/models/errors/lookup-discord-alt.js +0 -46
- package/esm/models/errors/lookup-discord-alt.js.map +0 -1
- package/esm/models/errors/scan-ports.d.ts +0 -72
- package/esm/models/errors/scan-ports.d.ts.map +0 -1
- package/esm/models/errors/scan-ports.js +0 -109
- package/esm/models/errors/scan-ports.js.map +0 -1
- package/esm/models/errors/search-address.d.ts +0 -26
- package/esm/models/errors/search-address.d.ts.map +0 -1
- package/esm/models/errors/search-address.js +0 -41
- package/esm/models/errors/search-address.js.map +0 -1
- package/esm/models/errors/search-certificates.d.ts +0 -29
- package/esm/models/errors/search-certificates.d.ts.map +0 -1
- package/esm/models/errors/search-certificates.js +0 -45
- package/esm/models/errors/search-certificates.js.map +0 -1
- package/esm/models/errors/search-discord.d.ts +0 -26
- package/esm/models/errors/search-discord.d.ts.map +0 -1
- package/esm/models/errors/search-discord.js.map +0 -1
- package/esm/models/errors/search-dns.d.ts +0 -26
- package/esm/models/errors/search-dns.d.ts.map +0 -1
- package/esm/models/errors/search-dns.js +0 -41
- package/esm/models/errors/search-dns.js.map +0 -1
- package/esm/models/errors/search-email.d.ts +0 -26
- package/esm/models/errors/search-email.d.ts.map +0 -1
- package/esm/models/errors/search-email.js +0 -41
- package/esm/models/errors/search-email.js.map +0 -1
- package/esm/models/errors/search-face.d.ts +0 -72
- package/esm/models/errors/search-face.d.ts.map +0 -1
- package/esm/models/errors/search-face.js +0 -109
- package/esm/models/errors/search-face.js.map +0 -1
- package/esm/models/errors/search-github.d.ts +0 -26
- package/esm/models/errors/search-github.d.ts.map +0 -1
- package/esm/models/errors/search-github.js +0 -41
- package/esm/models/errors/search-github.js.map +0 -1
- package/esm/models/errors/search-gmail.d.ts +0 -26
- package/esm/models/errors/search-gmail.d.ts.map +0 -1
- package/esm/models/errors/search-gmail.js +0 -41
- package/esm/models/errors/search-gmail.js.map +0 -1
- package/esm/models/errors/search-hudson-rock.d.ts +0 -26
- package/esm/models/errors/search-hudson-rock.d.ts.map +0 -1
- package/esm/models/errors/search-hudson-rock.js +0 -41
- package/esm/models/errors/search-hudson-rock.js.map +0 -1
- package/esm/models/errors/search-ip-info.d.ts +0 -26
- package/esm/models/errors/search-ip-info.d.ts.map +0 -1
- package/esm/models/errors/search-ip-info.js +0 -41
- package/esm/models/errors/search-ip-info.js.map +0 -1
- package/esm/models/errors/search-person.d.ts +0 -26
- package/esm/models/errors/search-person.d.ts.map +0 -1
- package/esm/models/errors/search-person.js +0 -41
- package/esm/models/errors/search-person.js.map +0 -1
- package/esm/models/errors/search-phone.d.ts +0 -26
- package/esm/models/errors/search-phone.d.ts.map +0 -1
- package/esm/models/errors/search-phone.js +0 -41
- package/esm/models/errors/search-phone.js.map +0 -1
- package/esm/models/errors/search-roblox.d.ts +0 -26
- package/esm/models/errors/search-roblox.d.ts.map +0 -1
- package/esm/models/errors/search-roblox.js +0 -41
- package/esm/models/errors/search-roblox.js.map +0 -1
- package/esm/models/errors/search-seon.d.ts +0 -26
- package/esm/models/errors/search-seon.d.ts.map +0 -1
- package/esm/models/errors/search-seon.js +0 -41
- package/esm/models/errors/search-seon.js.map +0 -1
- package/esm/models/errors/search-shodan.d.ts +0 -26
- package/esm/models/errors/search-shodan.d.ts.map +0 -1
- package/esm/models/errors/search-shodan.js +0 -41
- package/esm/models/errors/search-shodan.js.map +0 -1
- package/esm/models/errors/search-tiktok.d.ts +0 -26
- package/esm/models/errors/search-tiktok.d.ts.map +0 -1
- package/esm/models/errors/search-tiktok.js +0 -41
- package/esm/models/errors/search-tiktok.js.map +0 -1
- package/esm/models/errors/search-username.d.ts +0 -26
- package/esm/models/errors/search-username.d.ts.map +0 -1
- package/esm/models/errors/search-username.js +0 -41
- package/esm/models/errors/search-username.js.map +0 -1
- package/esm/models/errors/search-web-databases.d.ts +0 -49
- package/esm/models/errors/search-web-databases.d.ts.map +0 -1
- package/esm/models/errors/search-web-databases.js +0 -75
- package/esm/models/errors/search-web-databases.js.map +0 -1
- package/esm/models/errors/search-whois.d.ts +0 -26
- package/esm/models/errors/search-whois.d.ts.map +0 -1
- package/esm/models/errors/search-whois.js +0 -41
- package/esm/models/errors/search-whois.js.map +0 -1
- package/src/models/errors/bypass-double-counter.ts +0 -60
- package/src/models/errors/download-intelx-file.ts +0 -117
- package/src/models/errors/geolocate-media.ts +0 -172
- package/src/models/errors/lookup-discord-alt.ts +0 -71
- package/src/models/errors/scan-ports.ts +0 -172
- package/src/models/errors/search-certificates.ts +0 -71
- package/src/models/errors/search-discord.ts +0 -62
- package/src/models/errors/search-dns.ts +0 -62
- package/src/models/errors/search-email.ts +0 -62
- package/src/models/errors/search-face.ts +0 -172
- package/src/models/errors/search-github.ts +0 -62
- package/src/models/errors/search-gmail.ts +0 -62
- package/src/models/errors/search-hudson-rock.ts +0 -62
- package/src/models/errors/search-ip-info.ts +0 -62
- package/src/models/errors/search-person.ts +0 -62
- package/src/models/errors/search-phone.ts +0 -62
- package/src/models/errors/search-roblox.ts +0 -62
- package/src/models/errors/search-seon.ts +0 -62
- package/src/models/errors/search-shodan.ts +0 -62
- package/src/models/errors/search-tiktok.ts +0 -62
- package/src/models/errors/search-username.ts +0 -62
- package/src/models/errors/search-web-databases.ts +0 -115
- package/src/models/errors/search-whois.ts +0 -62
|
@@ -31,8 +31,24 @@ export type Account = {
|
|
|
31
31
|
verified?: boolean | undefined;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
export type Award = {};
|
|
35
|
+
|
|
36
|
+
export type AwardUnion = number | Award | string | boolean;
|
|
37
|
+
|
|
38
|
+
export type SearchUsernameBadge = {};
|
|
39
|
+
|
|
40
|
+
export type Badge = number | SearchUsernameBadge | string | boolean;
|
|
41
|
+
|
|
34
42
|
export type Bands = number | string;
|
|
35
43
|
|
|
44
|
+
export type BioLink = {};
|
|
45
|
+
|
|
46
|
+
export type BioLinkUnion = number | BioLink | string | boolean;
|
|
47
|
+
|
|
48
|
+
export type Club = {};
|
|
49
|
+
|
|
50
|
+
export type ClubUnion = number | Club | string | boolean;
|
|
51
|
+
|
|
36
52
|
export type Collections = number | string;
|
|
37
53
|
|
|
38
54
|
export type Connection = {
|
|
@@ -46,17 +62,45 @@ export type Course = {
|
|
|
46
62
|
xp?: number | undefined;
|
|
47
63
|
};
|
|
48
64
|
|
|
65
|
+
export type CryptoAddress = {};
|
|
66
|
+
|
|
67
|
+
export type CryptoAddressUnion = number | CryptoAddress | string | boolean;
|
|
68
|
+
|
|
49
69
|
export type Followers = number | string;
|
|
50
70
|
|
|
51
71
|
export type Following = number | string;
|
|
52
72
|
|
|
73
|
+
export type LatestPaste = {};
|
|
74
|
+
|
|
75
|
+
export type LatestPasteUnion = number | LatestPaste | string | boolean;
|
|
76
|
+
|
|
77
|
+
export type Link = {};
|
|
78
|
+
|
|
79
|
+
export type LinkUnion = number | Link | string | boolean;
|
|
80
|
+
|
|
53
81
|
export type SearchUsernameOrganization = {
|
|
54
82
|
name?: string | undefined;
|
|
55
83
|
url?: string | undefined;
|
|
56
84
|
};
|
|
57
85
|
|
|
86
|
+
export type Platform = {};
|
|
87
|
+
|
|
88
|
+
export type PlatformUnion = number | Platform | string | boolean;
|
|
89
|
+
|
|
58
90
|
export type Plays = number | string;
|
|
59
91
|
|
|
92
|
+
export type Proof = {};
|
|
93
|
+
|
|
94
|
+
export type ProofUnion = number | Proof | string | boolean;
|
|
95
|
+
|
|
96
|
+
export type SearchUsernameRole = {};
|
|
97
|
+
|
|
98
|
+
export type Role = number | SearchUsernameRole | string | boolean;
|
|
99
|
+
|
|
100
|
+
export type SocialLink = {};
|
|
101
|
+
|
|
102
|
+
export type SocialLinkUnion = number | SocialLink | string | boolean;
|
|
103
|
+
|
|
60
104
|
export type Socials = {
|
|
61
105
|
facebook?: string | undefined;
|
|
62
106
|
instagram?: string | undefined;
|
|
@@ -76,6 +120,10 @@ export type Status = {
|
|
|
76
120
|
|
|
77
121
|
export type StatusUnion = string | Status;
|
|
78
122
|
|
|
123
|
+
export type UrlEntity = {};
|
|
124
|
+
|
|
125
|
+
export type UrlEntityUnion = number | UrlEntity | string | boolean;
|
|
126
|
+
|
|
79
127
|
export type Url = {
|
|
80
128
|
title?: string | undefined;
|
|
81
129
|
value?: string | undefined;
|
|
@@ -88,18 +136,20 @@ export type Metadata = {
|
|
|
88
136
|
address?: string | undefined;
|
|
89
137
|
awardeeKarma?: number | undefined;
|
|
90
138
|
awarderKarma?: number | undefined;
|
|
91
|
-
awards?: Array<
|
|
139
|
+
awards?: Array<number | Award | string | boolean | null> | undefined;
|
|
92
140
|
backgroundPicture?: string | undefined;
|
|
93
|
-
badges?:
|
|
141
|
+
badges?:
|
|
142
|
+
| Array<number | SearchUsernameBadge | string | boolean | null>
|
|
143
|
+
| undefined;
|
|
94
144
|
bands?: number | string | undefined;
|
|
95
|
-
bioLinks?: Array<
|
|
145
|
+
bioLinks?: Array<number | BioLink | string | boolean | null> | undefined;
|
|
96
146
|
blog?: string | undefined;
|
|
97
147
|
boardCount?: number | undefined;
|
|
98
148
|
broadcasterType?: string | undefined;
|
|
99
149
|
capeUrl?: string | undefined;
|
|
100
150
|
cashtagUrl?: string | undefined;
|
|
101
151
|
channelId?: string | undefined;
|
|
102
|
-
clubs?: Array<
|
|
152
|
+
clubs?: Array<number | Club | string | boolean | null> | undefined;
|
|
103
153
|
collections?: number | string | undefined;
|
|
104
154
|
company?: string | undefined;
|
|
105
155
|
connections?: Array<Connection> | undefined;
|
|
@@ -109,7 +159,9 @@ export type Metadata = {
|
|
|
109
159
|
createdDate?: string | undefined;
|
|
110
160
|
createdOn?: string | undefined;
|
|
111
161
|
createdUtc?: number | undefined;
|
|
112
|
-
cryptoAddresses?:
|
|
162
|
+
cryptoAddresses?:
|
|
163
|
+
| Array<number | CryptoAddress | string | boolean | null>
|
|
164
|
+
| undefined;
|
|
113
165
|
currency?: string | undefined;
|
|
114
166
|
currentStreak?: number | undefined;
|
|
115
167
|
devices?: Array<string> | undefined;
|
|
@@ -145,11 +197,13 @@ export type Metadata = {
|
|
|
145
197
|
keywords?: Array<string> | undefined;
|
|
146
198
|
lastModified?: string | undefined;
|
|
147
199
|
lastSeen?: string | undefined;
|
|
148
|
-
latestPastes?:
|
|
200
|
+
latestPastes?:
|
|
201
|
+
| Array<number | LatestPaste | string | boolean | null>
|
|
202
|
+
| undefined;
|
|
149
203
|
learningLanguage?: string | undefined;
|
|
150
204
|
likes?: number | undefined;
|
|
151
205
|
likesReceived?: number | undefined;
|
|
152
|
-
links?: Array<
|
|
206
|
+
links?: Array<number | Link | string | boolean | null> | undefined;
|
|
153
207
|
listedCount?: number | undefined;
|
|
154
208
|
mediaCount?: number | undefined;
|
|
155
209
|
memberType?: string | undefined;
|
|
@@ -159,14 +213,14 @@ export type Metadata = {
|
|
|
159
213
|
pasteViews?: number | undefined;
|
|
160
214
|
pins?: number | undefined;
|
|
161
215
|
platformId?: string | undefined;
|
|
162
|
-
platforms?: Array<
|
|
216
|
+
platforms?: Array<number | Platform | string | boolean | null> | undefined;
|
|
163
217
|
playlistCount?: number | undefined;
|
|
164
218
|
plays?: number | string | undefined;
|
|
165
219
|
posts?: number | undefined;
|
|
166
220
|
postsCount?: number | undefined;
|
|
167
221
|
primaryTeam?: string | undefined;
|
|
168
222
|
profileViews?: number | undefined;
|
|
169
|
-
proofs?: Array<
|
|
223
|
+
proofs?: Array<number | Proof | string | boolean | null> | undefined;
|
|
170
224
|
provider?: string | undefined;
|
|
171
225
|
providerId?: string | undefined;
|
|
172
226
|
publicGists?: number | undefined;
|
|
@@ -179,11 +233,15 @@ export type Metadata = {
|
|
|
179
233
|
registeredSince?: string | undefined;
|
|
180
234
|
reputation?: number | undefined;
|
|
181
235
|
reputationLabel?: string | undefined;
|
|
182
|
-
roles?:
|
|
236
|
+
roles?:
|
|
237
|
+
| Array<number | SearchUsernameRole | string | boolean | null>
|
|
238
|
+
| undefined;
|
|
183
239
|
scratchTeam?: boolean | undefined;
|
|
184
240
|
skills?: Array<string> | undefined;
|
|
185
241
|
skinUrl?: string | undefined;
|
|
186
|
-
socialLinks?:
|
|
242
|
+
socialLinks?:
|
|
243
|
+
| Array<number | SocialLink | string | boolean | null>
|
|
244
|
+
| undefined;
|
|
187
245
|
socials?: Socials | Array<string> | undefined;
|
|
188
246
|
status?: string | Status | undefined;
|
|
189
247
|
steamId64?: string | undefined;
|
|
@@ -204,7 +262,7 @@ export type Metadata = {
|
|
|
204
262
|
twitterUsername?: string | undefined;
|
|
205
263
|
updatedAt?: string | undefined;
|
|
206
264
|
upvotes?: number | undefined;
|
|
207
|
-
urlEntities?: Array<
|
|
265
|
+
urlEntities?: Array<number | UrlEntity | string | boolean | null> | undefined;
|
|
208
266
|
urls?: Array<Url> | undefined;
|
|
209
267
|
uuid?: string | undefined;
|
|
210
268
|
videoCount?: number | undefined;
|
|
@@ -305,6 +363,72 @@ export function accountFromJSON(
|
|
|
305
363
|
);
|
|
306
364
|
}
|
|
307
365
|
|
|
366
|
+
/** @internal */
|
|
367
|
+
export const Award$inboundSchema: z.ZodMiniType<Award, unknown> = z.object({});
|
|
368
|
+
|
|
369
|
+
export function awardFromJSON(
|
|
370
|
+
jsonString: string,
|
|
371
|
+
): SafeParseResult<Award, SDKValidationError> {
|
|
372
|
+
return safeParse(
|
|
373
|
+
jsonString,
|
|
374
|
+
(x) => Award$inboundSchema.parse(JSON.parse(x)),
|
|
375
|
+
`Failed to parse 'Award' from JSON`,
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** @internal */
|
|
380
|
+
export const AwardUnion$inboundSchema: z.ZodMiniType<AwardUnion, unknown> =
|
|
381
|
+
smartUnion([
|
|
382
|
+
types.number(),
|
|
383
|
+
z.lazy(() => Award$inboundSchema),
|
|
384
|
+
types.string(),
|
|
385
|
+
types.boolean(),
|
|
386
|
+
]);
|
|
387
|
+
|
|
388
|
+
export function awardUnionFromJSON(
|
|
389
|
+
jsonString: string,
|
|
390
|
+
): SafeParseResult<AwardUnion, SDKValidationError> {
|
|
391
|
+
return safeParse(
|
|
392
|
+
jsonString,
|
|
393
|
+
(x) => AwardUnion$inboundSchema.parse(JSON.parse(x)),
|
|
394
|
+
`Failed to parse 'AwardUnion' from JSON`,
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const SearchUsernameBadge$inboundSchema: z.ZodMiniType<
|
|
400
|
+
SearchUsernameBadge,
|
|
401
|
+
unknown
|
|
402
|
+
> = z.object({});
|
|
403
|
+
|
|
404
|
+
export function searchUsernameBadgeFromJSON(
|
|
405
|
+
jsonString: string,
|
|
406
|
+
): SafeParseResult<SearchUsernameBadge, SDKValidationError> {
|
|
407
|
+
return safeParse(
|
|
408
|
+
jsonString,
|
|
409
|
+
(x) => SearchUsernameBadge$inboundSchema.parse(JSON.parse(x)),
|
|
410
|
+
`Failed to parse 'SearchUsernameBadge' from JSON`,
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/** @internal */
|
|
415
|
+
export const Badge$inboundSchema: z.ZodMiniType<Badge, unknown> = smartUnion([
|
|
416
|
+
types.number(),
|
|
417
|
+
z.lazy(() => SearchUsernameBadge$inboundSchema),
|
|
418
|
+
types.string(),
|
|
419
|
+
types.boolean(),
|
|
420
|
+
]);
|
|
421
|
+
|
|
422
|
+
export function badgeFromJSON(
|
|
423
|
+
jsonString: string,
|
|
424
|
+
): SafeParseResult<Badge, SDKValidationError> {
|
|
425
|
+
return safeParse(
|
|
426
|
+
jsonString,
|
|
427
|
+
(x) => Badge$inboundSchema.parse(JSON.parse(x)),
|
|
428
|
+
`Failed to parse 'Badge' from JSON`,
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
|
|
308
432
|
/** @internal */
|
|
309
433
|
export const Bands$inboundSchema: z.ZodMiniType<Bands, unknown> = smartUnion([
|
|
310
434
|
types.number(),
|
|
@@ -321,6 +445,72 @@ export function bandsFromJSON(
|
|
|
321
445
|
);
|
|
322
446
|
}
|
|
323
447
|
|
|
448
|
+
/** @internal */
|
|
449
|
+
export const BioLink$inboundSchema: z.ZodMiniType<BioLink, unknown> = z.object(
|
|
450
|
+
{},
|
|
451
|
+
);
|
|
452
|
+
|
|
453
|
+
export function bioLinkFromJSON(
|
|
454
|
+
jsonString: string,
|
|
455
|
+
): SafeParseResult<BioLink, SDKValidationError> {
|
|
456
|
+
return safeParse(
|
|
457
|
+
jsonString,
|
|
458
|
+
(x) => BioLink$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
+
`Failed to parse 'BioLink' from JSON`,
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const BioLinkUnion$inboundSchema: z.ZodMiniType<BioLinkUnion, unknown> =
|
|
465
|
+
smartUnion([
|
|
466
|
+
types.number(),
|
|
467
|
+
z.lazy(() => BioLink$inboundSchema),
|
|
468
|
+
types.string(),
|
|
469
|
+
types.boolean(),
|
|
470
|
+
]);
|
|
471
|
+
|
|
472
|
+
export function bioLinkUnionFromJSON(
|
|
473
|
+
jsonString: string,
|
|
474
|
+
): SafeParseResult<BioLinkUnion, SDKValidationError> {
|
|
475
|
+
return safeParse(
|
|
476
|
+
jsonString,
|
|
477
|
+
(x) => BioLinkUnion$inboundSchema.parse(JSON.parse(x)),
|
|
478
|
+
`Failed to parse 'BioLinkUnion' from JSON`,
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/** @internal */
|
|
483
|
+
export const Club$inboundSchema: z.ZodMiniType<Club, unknown> = z.object({});
|
|
484
|
+
|
|
485
|
+
export function clubFromJSON(
|
|
486
|
+
jsonString: string,
|
|
487
|
+
): SafeParseResult<Club, SDKValidationError> {
|
|
488
|
+
return safeParse(
|
|
489
|
+
jsonString,
|
|
490
|
+
(x) => Club$inboundSchema.parse(JSON.parse(x)),
|
|
491
|
+
`Failed to parse 'Club' from JSON`,
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/** @internal */
|
|
496
|
+
export const ClubUnion$inboundSchema: z.ZodMiniType<ClubUnion, unknown> =
|
|
497
|
+
smartUnion([
|
|
498
|
+
types.number(),
|
|
499
|
+
z.lazy(() => Club$inboundSchema),
|
|
500
|
+
types.string(),
|
|
501
|
+
types.boolean(),
|
|
502
|
+
]);
|
|
503
|
+
|
|
504
|
+
export function clubUnionFromJSON(
|
|
505
|
+
jsonString: string,
|
|
506
|
+
): SafeParseResult<ClubUnion, SDKValidationError> {
|
|
507
|
+
return safeParse(
|
|
508
|
+
jsonString,
|
|
509
|
+
(x) => ClubUnion$inboundSchema.parse(JSON.parse(x)),
|
|
510
|
+
`Failed to parse 'ClubUnion' from JSON`,
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
|
|
324
514
|
/** @internal */
|
|
325
515
|
export const Collections$inboundSchema: z.ZodMiniType<Collections, unknown> =
|
|
326
516
|
smartUnion([types.number(), types.string()]);
|
|
@@ -369,6 +559,43 @@ export function courseFromJSON(
|
|
|
369
559
|
);
|
|
370
560
|
}
|
|
371
561
|
|
|
562
|
+
/** @internal */
|
|
563
|
+
export const CryptoAddress$inboundSchema: z.ZodMiniType<
|
|
564
|
+
CryptoAddress,
|
|
565
|
+
unknown
|
|
566
|
+
> = z.object({});
|
|
567
|
+
|
|
568
|
+
export function cryptoAddressFromJSON(
|
|
569
|
+
jsonString: string,
|
|
570
|
+
): SafeParseResult<CryptoAddress, SDKValidationError> {
|
|
571
|
+
return safeParse(
|
|
572
|
+
jsonString,
|
|
573
|
+
(x) => CryptoAddress$inboundSchema.parse(JSON.parse(x)),
|
|
574
|
+
`Failed to parse 'CryptoAddress' from JSON`,
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/** @internal */
|
|
579
|
+
export const CryptoAddressUnion$inboundSchema: z.ZodMiniType<
|
|
580
|
+
CryptoAddressUnion,
|
|
581
|
+
unknown
|
|
582
|
+
> = smartUnion([
|
|
583
|
+
types.number(),
|
|
584
|
+
z.lazy(() => CryptoAddress$inboundSchema),
|
|
585
|
+
types.string(),
|
|
586
|
+
types.boolean(),
|
|
587
|
+
]);
|
|
588
|
+
|
|
589
|
+
export function cryptoAddressUnionFromJSON(
|
|
590
|
+
jsonString: string,
|
|
591
|
+
): SafeParseResult<CryptoAddressUnion, SDKValidationError> {
|
|
592
|
+
return safeParse(
|
|
593
|
+
jsonString,
|
|
594
|
+
(x) => CryptoAddressUnion$inboundSchema.parse(JSON.parse(x)),
|
|
595
|
+
`Failed to parse 'CryptoAddressUnion' from JSON`,
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
|
|
372
599
|
/** @internal */
|
|
373
600
|
export const Followers$inboundSchema: z.ZodMiniType<Followers, unknown> =
|
|
374
601
|
smartUnion([types.number(), types.string()]);
|
|
@@ -397,6 +624,73 @@ export function followingFromJSON(
|
|
|
397
624
|
);
|
|
398
625
|
}
|
|
399
626
|
|
|
627
|
+
/** @internal */
|
|
628
|
+
export const LatestPaste$inboundSchema: z.ZodMiniType<LatestPaste, unknown> = z
|
|
629
|
+
.object({});
|
|
630
|
+
|
|
631
|
+
export function latestPasteFromJSON(
|
|
632
|
+
jsonString: string,
|
|
633
|
+
): SafeParseResult<LatestPaste, SDKValidationError> {
|
|
634
|
+
return safeParse(
|
|
635
|
+
jsonString,
|
|
636
|
+
(x) => LatestPaste$inboundSchema.parse(JSON.parse(x)),
|
|
637
|
+
`Failed to parse 'LatestPaste' from JSON`,
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/** @internal */
|
|
642
|
+
export const LatestPasteUnion$inboundSchema: z.ZodMiniType<
|
|
643
|
+
LatestPasteUnion,
|
|
644
|
+
unknown
|
|
645
|
+
> = smartUnion([
|
|
646
|
+
types.number(),
|
|
647
|
+
z.lazy(() => LatestPaste$inboundSchema),
|
|
648
|
+
types.string(),
|
|
649
|
+
types.boolean(),
|
|
650
|
+
]);
|
|
651
|
+
|
|
652
|
+
export function latestPasteUnionFromJSON(
|
|
653
|
+
jsonString: string,
|
|
654
|
+
): SafeParseResult<LatestPasteUnion, SDKValidationError> {
|
|
655
|
+
return safeParse(
|
|
656
|
+
jsonString,
|
|
657
|
+
(x) => LatestPasteUnion$inboundSchema.parse(JSON.parse(x)),
|
|
658
|
+
`Failed to parse 'LatestPasteUnion' from JSON`,
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/** @internal */
|
|
663
|
+
export const Link$inboundSchema: z.ZodMiniType<Link, unknown> = z.object({});
|
|
664
|
+
|
|
665
|
+
export function linkFromJSON(
|
|
666
|
+
jsonString: string,
|
|
667
|
+
): SafeParseResult<Link, SDKValidationError> {
|
|
668
|
+
return safeParse(
|
|
669
|
+
jsonString,
|
|
670
|
+
(x) => Link$inboundSchema.parse(JSON.parse(x)),
|
|
671
|
+
`Failed to parse 'Link' from JSON`,
|
|
672
|
+
);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/** @internal */
|
|
676
|
+
export const LinkUnion$inboundSchema: z.ZodMiniType<LinkUnion, unknown> =
|
|
677
|
+
smartUnion([
|
|
678
|
+
types.number(),
|
|
679
|
+
z.lazy(() => Link$inboundSchema),
|
|
680
|
+
types.string(),
|
|
681
|
+
types.boolean(),
|
|
682
|
+
]);
|
|
683
|
+
|
|
684
|
+
export function linkUnionFromJSON(
|
|
685
|
+
jsonString: string,
|
|
686
|
+
): SafeParseResult<LinkUnion, SDKValidationError> {
|
|
687
|
+
return safeParse(
|
|
688
|
+
jsonString,
|
|
689
|
+
(x) => LinkUnion$inboundSchema.parse(JSON.parse(x)),
|
|
690
|
+
`Failed to parse 'LinkUnion' from JSON`,
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
|
|
400
694
|
/** @internal */
|
|
401
695
|
export const SearchUsernameOrganization$inboundSchema: z.ZodMiniType<
|
|
402
696
|
SearchUsernameOrganization,
|
|
@@ -416,6 +710,41 @@ export function searchUsernameOrganizationFromJSON(
|
|
|
416
710
|
);
|
|
417
711
|
}
|
|
418
712
|
|
|
713
|
+
/** @internal */
|
|
714
|
+
export const Platform$inboundSchema: z.ZodMiniType<Platform, unknown> = z
|
|
715
|
+
.object({});
|
|
716
|
+
|
|
717
|
+
export function platformFromJSON(
|
|
718
|
+
jsonString: string,
|
|
719
|
+
): SafeParseResult<Platform, SDKValidationError> {
|
|
720
|
+
return safeParse(
|
|
721
|
+
jsonString,
|
|
722
|
+
(x) => Platform$inboundSchema.parse(JSON.parse(x)),
|
|
723
|
+
`Failed to parse 'Platform' from JSON`,
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/** @internal */
|
|
728
|
+
export const PlatformUnion$inboundSchema: z.ZodMiniType<
|
|
729
|
+
PlatformUnion,
|
|
730
|
+
unknown
|
|
731
|
+
> = smartUnion([
|
|
732
|
+
types.number(),
|
|
733
|
+
z.lazy(() => Platform$inboundSchema),
|
|
734
|
+
types.string(),
|
|
735
|
+
types.boolean(),
|
|
736
|
+
]);
|
|
737
|
+
|
|
738
|
+
export function platformUnionFromJSON(
|
|
739
|
+
jsonString: string,
|
|
740
|
+
): SafeParseResult<PlatformUnion, SDKValidationError> {
|
|
741
|
+
return safeParse(
|
|
742
|
+
jsonString,
|
|
743
|
+
(x) => PlatformUnion$inboundSchema.parse(JSON.parse(x)),
|
|
744
|
+
`Failed to parse 'PlatformUnion' from JSON`,
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
|
|
419
748
|
/** @internal */
|
|
420
749
|
export const Plays$inboundSchema: z.ZodMiniType<Plays, unknown> = smartUnion([
|
|
421
750
|
types.number(),
|
|
@@ -432,6 +761,107 @@ export function playsFromJSON(
|
|
|
432
761
|
);
|
|
433
762
|
}
|
|
434
763
|
|
|
764
|
+
/** @internal */
|
|
765
|
+
export const Proof$inboundSchema: z.ZodMiniType<Proof, unknown> = z.object({});
|
|
766
|
+
|
|
767
|
+
export function proofFromJSON(
|
|
768
|
+
jsonString: string,
|
|
769
|
+
): SafeParseResult<Proof, SDKValidationError> {
|
|
770
|
+
return safeParse(
|
|
771
|
+
jsonString,
|
|
772
|
+
(x) => Proof$inboundSchema.parse(JSON.parse(x)),
|
|
773
|
+
`Failed to parse 'Proof' from JSON`,
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/** @internal */
|
|
778
|
+
export const ProofUnion$inboundSchema: z.ZodMiniType<ProofUnion, unknown> =
|
|
779
|
+
smartUnion([
|
|
780
|
+
types.number(),
|
|
781
|
+
z.lazy(() => Proof$inboundSchema),
|
|
782
|
+
types.string(),
|
|
783
|
+
types.boolean(),
|
|
784
|
+
]);
|
|
785
|
+
|
|
786
|
+
export function proofUnionFromJSON(
|
|
787
|
+
jsonString: string,
|
|
788
|
+
): SafeParseResult<ProofUnion, SDKValidationError> {
|
|
789
|
+
return safeParse(
|
|
790
|
+
jsonString,
|
|
791
|
+
(x) => ProofUnion$inboundSchema.parse(JSON.parse(x)),
|
|
792
|
+
`Failed to parse 'ProofUnion' from JSON`,
|
|
793
|
+
);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/** @internal */
|
|
797
|
+
export const SearchUsernameRole$inboundSchema: z.ZodMiniType<
|
|
798
|
+
SearchUsernameRole,
|
|
799
|
+
unknown
|
|
800
|
+
> = z.object({});
|
|
801
|
+
|
|
802
|
+
export function searchUsernameRoleFromJSON(
|
|
803
|
+
jsonString: string,
|
|
804
|
+
): SafeParseResult<SearchUsernameRole, SDKValidationError> {
|
|
805
|
+
return safeParse(
|
|
806
|
+
jsonString,
|
|
807
|
+
(x) => SearchUsernameRole$inboundSchema.parse(JSON.parse(x)),
|
|
808
|
+
`Failed to parse 'SearchUsernameRole' from JSON`,
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/** @internal */
|
|
813
|
+
export const Role$inboundSchema: z.ZodMiniType<Role, unknown> = smartUnion([
|
|
814
|
+
types.number(),
|
|
815
|
+
z.lazy(() => SearchUsernameRole$inboundSchema),
|
|
816
|
+
types.string(),
|
|
817
|
+
types.boolean(),
|
|
818
|
+
]);
|
|
819
|
+
|
|
820
|
+
export function roleFromJSON(
|
|
821
|
+
jsonString: string,
|
|
822
|
+
): SafeParseResult<Role, SDKValidationError> {
|
|
823
|
+
return safeParse(
|
|
824
|
+
jsonString,
|
|
825
|
+
(x) => Role$inboundSchema.parse(JSON.parse(x)),
|
|
826
|
+
`Failed to parse 'Role' from JSON`,
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
/** @internal */
|
|
831
|
+
export const SocialLink$inboundSchema: z.ZodMiniType<SocialLink, unknown> = z
|
|
832
|
+
.object({});
|
|
833
|
+
|
|
834
|
+
export function socialLinkFromJSON(
|
|
835
|
+
jsonString: string,
|
|
836
|
+
): SafeParseResult<SocialLink, SDKValidationError> {
|
|
837
|
+
return safeParse(
|
|
838
|
+
jsonString,
|
|
839
|
+
(x) => SocialLink$inboundSchema.parse(JSON.parse(x)),
|
|
840
|
+
`Failed to parse 'SocialLink' from JSON`,
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/** @internal */
|
|
845
|
+
export const SocialLinkUnion$inboundSchema: z.ZodMiniType<
|
|
846
|
+
SocialLinkUnion,
|
|
847
|
+
unknown
|
|
848
|
+
> = smartUnion([
|
|
849
|
+
types.number(),
|
|
850
|
+
z.lazy(() => SocialLink$inboundSchema),
|
|
851
|
+
types.string(),
|
|
852
|
+
types.boolean(),
|
|
853
|
+
]);
|
|
854
|
+
|
|
855
|
+
export function socialLinkUnionFromJSON(
|
|
856
|
+
jsonString: string,
|
|
857
|
+
): SafeParseResult<SocialLinkUnion, SDKValidationError> {
|
|
858
|
+
return safeParse(
|
|
859
|
+
jsonString,
|
|
860
|
+
(x) => SocialLinkUnion$inboundSchema.parse(JSON.parse(x)),
|
|
861
|
+
`Failed to parse 'SocialLinkUnion' from JSON`,
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
|
|
435
865
|
/** @internal */
|
|
436
866
|
export const Socials$inboundSchema: z.ZodMiniType<Socials, unknown> = z.object({
|
|
437
867
|
facebook: types.optional(types.string()),
|
|
@@ -508,6 +938,41 @@ export function statusUnionFromJSON(
|
|
|
508
938
|
);
|
|
509
939
|
}
|
|
510
940
|
|
|
941
|
+
/** @internal */
|
|
942
|
+
export const UrlEntity$inboundSchema: z.ZodMiniType<UrlEntity, unknown> = z
|
|
943
|
+
.object({});
|
|
944
|
+
|
|
945
|
+
export function urlEntityFromJSON(
|
|
946
|
+
jsonString: string,
|
|
947
|
+
): SafeParseResult<UrlEntity, SDKValidationError> {
|
|
948
|
+
return safeParse(
|
|
949
|
+
jsonString,
|
|
950
|
+
(x) => UrlEntity$inboundSchema.parse(JSON.parse(x)),
|
|
951
|
+
`Failed to parse 'UrlEntity' from JSON`,
|
|
952
|
+
);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/** @internal */
|
|
956
|
+
export const UrlEntityUnion$inboundSchema: z.ZodMiniType<
|
|
957
|
+
UrlEntityUnion,
|
|
958
|
+
unknown
|
|
959
|
+
> = smartUnion([
|
|
960
|
+
types.number(),
|
|
961
|
+
z.lazy(() => UrlEntity$inboundSchema),
|
|
962
|
+
types.string(),
|
|
963
|
+
types.boolean(),
|
|
964
|
+
]);
|
|
965
|
+
|
|
966
|
+
export function urlEntityUnionFromJSON(
|
|
967
|
+
jsonString: string,
|
|
968
|
+
): SafeParseResult<UrlEntityUnion, SDKValidationError> {
|
|
969
|
+
return safeParse(
|
|
970
|
+
jsonString,
|
|
971
|
+
(x) => UrlEntityUnion$inboundSchema.parse(JSON.parse(x)),
|
|
972
|
+
`Failed to parse 'UrlEntityUnion' from JSON`,
|
|
973
|
+
);
|
|
974
|
+
}
|
|
975
|
+
|
|
511
976
|
/** @internal */
|
|
512
977
|
export const Url$inboundSchema: z.ZodMiniType<Url, unknown> = z.object({
|
|
513
978
|
title: types.optional(types.string()),
|
|
@@ -533,18 +998,46 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
533
998
|
address: types.optional(types.string()),
|
|
534
999
|
awardee_karma: types.optional(types.number()),
|
|
535
1000
|
awarder_karma: types.optional(types.number()),
|
|
536
|
-
awards: types.optional(
|
|
1001
|
+
awards: types.optional(
|
|
1002
|
+
z.array(types.nullable(smartUnion([
|
|
1003
|
+
types.number(),
|
|
1004
|
+
z.lazy(() => Award$inboundSchema),
|
|
1005
|
+
types.string(),
|
|
1006
|
+
types.boolean(),
|
|
1007
|
+
]))),
|
|
1008
|
+
),
|
|
537
1009
|
background_picture: types.optional(types.string()),
|
|
538
|
-
badges: types.optional(
|
|
1010
|
+
badges: types.optional(
|
|
1011
|
+
z.array(types.nullable(smartUnion([
|
|
1012
|
+
types.number(),
|
|
1013
|
+
z.lazy(() => SearchUsernameBadge$inboundSchema),
|
|
1014
|
+
types.string(),
|
|
1015
|
+
types.boolean(),
|
|
1016
|
+
]))),
|
|
1017
|
+
),
|
|
539
1018
|
bands: types.optional(smartUnion([types.number(), types.string()])),
|
|
540
|
-
bio_links: types.optional(
|
|
1019
|
+
bio_links: types.optional(
|
|
1020
|
+
z.array(types.nullable(smartUnion([
|
|
1021
|
+
types.number(),
|
|
1022
|
+
z.lazy(() => BioLink$inboundSchema),
|
|
1023
|
+
types.string(),
|
|
1024
|
+
types.boolean(),
|
|
1025
|
+
]))),
|
|
1026
|
+
),
|
|
541
1027
|
blog: types.optional(types.string()),
|
|
542
1028
|
board_count: types.optional(types.number()),
|
|
543
1029
|
broadcaster_type: types.optional(types.string()),
|
|
544
1030
|
cape_url: types.optional(types.string()),
|
|
545
1031
|
cashtag_url: types.optional(types.string()),
|
|
546
1032
|
channel_id: types.optional(types.string()),
|
|
547
|
-
clubs: types.optional(
|
|
1033
|
+
clubs: types.optional(
|
|
1034
|
+
z.array(types.nullable(smartUnion([
|
|
1035
|
+
types.number(),
|
|
1036
|
+
z.lazy(() => Club$inboundSchema),
|
|
1037
|
+
types.string(),
|
|
1038
|
+
types.boolean(),
|
|
1039
|
+
]))),
|
|
1040
|
+
),
|
|
548
1041
|
collections: types.optional(smartUnion([types.number(), types.string()])),
|
|
549
1042
|
company: types.optional(types.string()),
|
|
550
1043
|
connections: types.optional(
|
|
@@ -556,7 +1049,14 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
556
1049
|
created_date: types.optional(types.string()),
|
|
557
1050
|
created_on: types.optional(types.string()),
|
|
558
1051
|
created_utc: types.optional(types.number()),
|
|
559
|
-
crypto_addresses: types.optional(
|
|
1052
|
+
crypto_addresses: types.optional(
|
|
1053
|
+
z.array(types.nullable(smartUnion([
|
|
1054
|
+
types.number(),
|
|
1055
|
+
z.lazy(() => CryptoAddress$inboundSchema),
|
|
1056
|
+
types.string(),
|
|
1057
|
+
types.boolean(),
|
|
1058
|
+
]))),
|
|
1059
|
+
),
|
|
560
1060
|
currency: types.optional(types.string()),
|
|
561
1061
|
current_streak: types.optional(types.number()),
|
|
562
1062
|
devices: types.optional(z.array(types.string())),
|
|
@@ -592,11 +1092,25 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
592
1092
|
keywords: types.optional(z.array(types.string())),
|
|
593
1093
|
last_modified: types.optional(types.string()),
|
|
594
1094
|
last_seen: types.optional(types.string()),
|
|
595
|
-
latest_pastes: types.optional(
|
|
1095
|
+
latest_pastes: types.optional(
|
|
1096
|
+
z.array(types.nullable(smartUnion([
|
|
1097
|
+
types.number(),
|
|
1098
|
+
z.lazy(() => LatestPaste$inboundSchema),
|
|
1099
|
+
types.string(),
|
|
1100
|
+
types.boolean(),
|
|
1101
|
+
]))),
|
|
1102
|
+
),
|
|
596
1103
|
learning_language: types.optional(types.string()),
|
|
597
1104
|
likes: types.optional(types.number()),
|
|
598
1105
|
likes_received: types.optional(types.number()),
|
|
599
|
-
links: types.optional(
|
|
1106
|
+
links: types.optional(
|
|
1107
|
+
z.array(types.nullable(smartUnion([
|
|
1108
|
+
types.number(),
|
|
1109
|
+
z.lazy(() => Link$inboundSchema),
|
|
1110
|
+
types.string(),
|
|
1111
|
+
types.boolean(),
|
|
1112
|
+
]))),
|
|
1113
|
+
),
|
|
600
1114
|
listed_count: types.optional(types.number()),
|
|
601
1115
|
media_count: types.optional(types.number()),
|
|
602
1116
|
member_type: types.optional(types.string()),
|
|
@@ -608,14 +1122,28 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
608
1122
|
paste_views: types.optional(types.number()),
|
|
609
1123
|
pins: types.optional(types.number()),
|
|
610
1124
|
platform_id: types.optional(types.string()),
|
|
611
|
-
platforms: types.optional(
|
|
1125
|
+
platforms: types.optional(
|
|
1126
|
+
z.array(types.nullable(smartUnion([
|
|
1127
|
+
types.number(),
|
|
1128
|
+
z.lazy(() => Platform$inboundSchema),
|
|
1129
|
+
types.string(),
|
|
1130
|
+
types.boolean(),
|
|
1131
|
+
]))),
|
|
1132
|
+
),
|
|
612
1133
|
playlist_count: types.optional(types.number()),
|
|
613
1134
|
plays: types.optional(smartUnion([types.number(), types.string()])),
|
|
614
1135
|
posts: types.optional(types.number()),
|
|
615
1136
|
posts_count: types.optional(types.number()),
|
|
616
1137
|
primary_team: types.optional(types.string()),
|
|
617
1138
|
profile_views: types.optional(types.number()),
|
|
618
|
-
proofs: types.optional(
|
|
1139
|
+
proofs: types.optional(
|
|
1140
|
+
z.array(types.nullable(smartUnion([
|
|
1141
|
+
types.number(),
|
|
1142
|
+
z.lazy(() => Proof$inboundSchema),
|
|
1143
|
+
types.string(),
|
|
1144
|
+
types.boolean(),
|
|
1145
|
+
]))),
|
|
1146
|
+
),
|
|
619
1147
|
provider: types.optional(types.string()),
|
|
620
1148
|
provider_id: types.optional(types.string()),
|
|
621
1149
|
public_gists: types.optional(types.number()),
|
|
@@ -628,11 +1156,25 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
628
1156
|
registered_since: types.optional(types.string()),
|
|
629
1157
|
reputation: types.optional(types.number()),
|
|
630
1158
|
reputation_label: types.optional(types.string()),
|
|
631
|
-
roles: types.optional(
|
|
1159
|
+
roles: types.optional(
|
|
1160
|
+
z.array(types.nullable(smartUnion([
|
|
1161
|
+
types.number(),
|
|
1162
|
+
z.lazy(() => SearchUsernameRole$inboundSchema),
|
|
1163
|
+
types.string(),
|
|
1164
|
+
types.boolean(),
|
|
1165
|
+
]))),
|
|
1166
|
+
),
|
|
632
1167
|
scratch_team: types.optional(types.boolean()),
|
|
633
1168
|
skills: types.optional(z.array(types.string())),
|
|
634
1169
|
skin_url: types.optional(types.string()),
|
|
635
|
-
social_links: types.optional(
|
|
1170
|
+
social_links: types.optional(
|
|
1171
|
+
z.array(types.nullable(smartUnion([
|
|
1172
|
+
types.number(),
|
|
1173
|
+
z.lazy(() => SocialLink$inboundSchema),
|
|
1174
|
+
types.string(),
|
|
1175
|
+
types.boolean(),
|
|
1176
|
+
]))),
|
|
1177
|
+
),
|
|
636
1178
|
socials: types.optional(
|
|
637
1179
|
smartUnion([
|
|
638
1180
|
z.lazy(() => Socials$inboundSchema),
|
|
@@ -660,7 +1202,14 @@ export const Metadata$inboundSchema: z.ZodMiniType<Metadata, unknown> = z.pipe(
|
|
|
660
1202
|
twitter_username: types.optional(types.string()),
|
|
661
1203
|
updated_at: types.optional(types.string()),
|
|
662
1204
|
upvotes: types.optional(types.number()),
|
|
663
|
-
url_entities: types.optional(
|
|
1205
|
+
url_entities: types.optional(
|
|
1206
|
+
z.array(types.nullable(smartUnion([
|
|
1207
|
+
types.number(),
|
|
1208
|
+
z.lazy(() => UrlEntity$inboundSchema),
|
|
1209
|
+
types.string(),
|
|
1210
|
+
types.boolean(),
|
|
1211
|
+
]))),
|
|
1212
|
+
),
|
|
664
1213
|
urls: types.optional(z.array(z.lazy(() => Url$inboundSchema))),
|
|
665
1214
|
uuid: types.optional(types.string()),
|
|
666
1215
|
video_count: types.optional(types.number()),
|