@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
|
@@ -13,18 +13,6 @@ export type SearchCertificatesRequest = {
|
|
|
13
13
|
query: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export type SearchCertificatesInternalServerErrorData = {
|
|
17
|
-
commonName: string;
|
|
18
|
-
entryTimestamp: string;
|
|
19
|
-
id: number;
|
|
20
|
-
issuerCaId: number;
|
|
21
|
-
issuerName: string;
|
|
22
|
-
nameValue: string;
|
|
23
|
-
notAfter: string;
|
|
24
|
-
notBefore: string;
|
|
25
|
-
serialNumber: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
16
|
export type SearchCertificatesData = {
|
|
29
17
|
commonName: string;
|
|
30
18
|
entryTimestamp: string;
|
|
@@ -67,50 +55,6 @@ export function searchCertificatesRequestToJSON(
|
|
|
67
55
|
);
|
|
68
56
|
}
|
|
69
57
|
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const SearchCertificatesInternalServerErrorData$inboundSchema:
|
|
72
|
-
z.ZodMiniType<SearchCertificatesInternalServerErrorData, unknown> = z.pipe(
|
|
73
|
-
z.object({
|
|
74
|
-
common_name: types.string(),
|
|
75
|
-
entry_timestamp: types.string(),
|
|
76
|
-
id: types.number(),
|
|
77
|
-
issuer_ca_id: types.number(),
|
|
78
|
-
issuer_name: types.string(),
|
|
79
|
-
name_value: types.string(),
|
|
80
|
-
not_after: types.string(),
|
|
81
|
-
not_before: types.string(),
|
|
82
|
-
serial_number: types.string(),
|
|
83
|
-
}),
|
|
84
|
-
z.transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
"common_name": "commonName",
|
|
87
|
-
"entry_timestamp": "entryTimestamp",
|
|
88
|
-
"issuer_ca_id": "issuerCaId",
|
|
89
|
-
"issuer_name": "issuerName",
|
|
90
|
-
"name_value": "nameValue",
|
|
91
|
-
"not_after": "notAfter",
|
|
92
|
-
"not_before": "notBefore",
|
|
93
|
-
"serial_number": "serialNumber",
|
|
94
|
-
});
|
|
95
|
-
}),
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
export function searchCertificatesInternalServerErrorDataFromJSON(
|
|
99
|
-
jsonString: string,
|
|
100
|
-
): SafeParseResult<
|
|
101
|
-
SearchCertificatesInternalServerErrorData,
|
|
102
|
-
SDKValidationError
|
|
103
|
-
> {
|
|
104
|
-
return safeParse(
|
|
105
|
-
jsonString,
|
|
106
|
-
(x) =>
|
|
107
|
-
SearchCertificatesInternalServerErrorData$inboundSchema.parse(
|
|
108
|
-
JSON.parse(x),
|
|
109
|
-
),
|
|
110
|
-
`Failed to parse 'SearchCertificatesInternalServerErrorData' from JSON`,
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
58
|
/** @internal */
|
|
115
59
|
export const SearchCertificatesData$inboundSchema: z.ZodMiniType<
|
|
116
60
|
SearchCertificatesData,
|
|
@@ -75,7 +75,7 @@ export type ModAction = {
|
|
|
75
75
|
title: string;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
export type
|
|
78
|
+
export type SearchDiscordBadge = {
|
|
79
79
|
description: string;
|
|
80
80
|
icon: string;
|
|
81
81
|
name: string;
|
|
@@ -84,7 +84,7 @@ export type Badge = {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
export type Sender = {
|
|
87
|
-
badges: Array<
|
|
87
|
+
badges: Array<SearchDiscordBadge>;
|
|
88
88
|
discordID: string;
|
|
89
89
|
id: number;
|
|
90
90
|
profilePhoto: string;
|
|
@@ -148,7 +148,7 @@ export type RobloxProfile = {
|
|
|
148
148
|
rolimons?: SearchDiscordRolimons | undefined;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
export type
|
|
151
|
+
export type SearchDiscordRole = {
|
|
152
152
|
color: number;
|
|
153
153
|
hoist: boolean;
|
|
154
154
|
id: string;
|
|
@@ -168,7 +168,7 @@ export type Server = {
|
|
|
168
168
|
name: string | null;
|
|
169
169
|
nickname: string | null;
|
|
170
170
|
totalMembers: number | null;
|
|
171
|
-
roles?: Array<
|
|
171
|
+
roles?: Array<SearchDiscordRole> | undefined;
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
export type SearchDiscordData = {
|
|
@@ -386,7 +386,10 @@ export function modActionFromJSON(
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
/** @internal */
|
|
389
|
-
export const
|
|
389
|
+
export const SearchDiscordBadge$inboundSchema: z.ZodMiniType<
|
|
390
|
+
SearchDiscordBadge,
|
|
391
|
+
unknown
|
|
392
|
+
> = z.object({
|
|
390
393
|
description: types.string(),
|
|
391
394
|
icon: types.string(),
|
|
392
395
|
name: types.string(),
|
|
@@ -394,19 +397,19 @@ export const Badge$inboundSchema: z.ZodMiniType<Badge, unknown> = z.object({
|
|
|
394
397
|
type: types.number(),
|
|
395
398
|
});
|
|
396
399
|
|
|
397
|
-
export function
|
|
400
|
+
export function searchDiscordBadgeFromJSON(
|
|
398
401
|
jsonString: string,
|
|
399
|
-
): SafeParseResult<
|
|
402
|
+
): SafeParseResult<SearchDiscordBadge, SDKValidationError> {
|
|
400
403
|
return safeParse(
|
|
401
404
|
jsonString,
|
|
402
|
-
(x) =>
|
|
403
|
-
`Failed to parse '
|
|
405
|
+
(x) => SearchDiscordBadge$inboundSchema.parse(JSON.parse(x)),
|
|
406
|
+
`Failed to parse 'SearchDiscordBadge' from JSON`,
|
|
404
407
|
);
|
|
405
408
|
}
|
|
406
409
|
|
|
407
410
|
/** @internal */
|
|
408
411
|
export const Sender$inboundSchema: z.ZodMiniType<Sender, unknown> = z.object({
|
|
409
|
-
badges: z.array(z.lazy(() =>
|
|
412
|
+
badges: z.array(z.lazy(() => SearchDiscordBadge$inboundSchema)),
|
|
410
413
|
discordID: types.string(),
|
|
411
414
|
id: types.number(),
|
|
412
415
|
profilePhoto: types.string(),
|
|
@@ -562,7 +565,10 @@ export function robloxProfileFromJSON(
|
|
|
562
565
|
}
|
|
563
566
|
|
|
564
567
|
/** @internal */
|
|
565
|
-
export const
|
|
568
|
+
export const SearchDiscordRole$inboundSchema: z.ZodMiniType<
|
|
569
|
+
SearchDiscordRole,
|
|
570
|
+
unknown
|
|
571
|
+
> = z.object({
|
|
566
572
|
color: types.number(),
|
|
567
573
|
hoist: types.boolean(),
|
|
568
574
|
id: types.string(),
|
|
@@ -572,13 +578,13 @@ export const Role$inboundSchema: z.ZodMiniType<Role, unknown> = z.object({
|
|
|
572
578
|
position: types.number(),
|
|
573
579
|
});
|
|
574
580
|
|
|
575
|
-
export function
|
|
581
|
+
export function searchDiscordRoleFromJSON(
|
|
576
582
|
jsonString: string,
|
|
577
|
-
): SafeParseResult<
|
|
583
|
+
): SafeParseResult<SearchDiscordRole, SDKValidationError> {
|
|
578
584
|
return safeParse(
|
|
579
585
|
jsonString,
|
|
580
|
-
(x) =>
|
|
581
|
-
`Failed to parse '
|
|
586
|
+
(x) => SearchDiscordRole$inboundSchema.parse(JSON.parse(x)),
|
|
587
|
+
`Failed to parse 'SearchDiscordRole' from JSON`,
|
|
582
588
|
);
|
|
583
589
|
}
|
|
584
590
|
|
|
@@ -593,7 +599,7 @@ export const Server$inboundSchema: z.ZodMiniType<Server, unknown> = z.object({
|
|
|
593
599
|
name: types.nullable(types.string()),
|
|
594
600
|
nickname: types.nullable(types.string()),
|
|
595
601
|
totalMembers: types.nullable(types.number()),
|
|
596
|
-
roles: types.optional(z.array(z.lazy(() =>
|
|
602
|
+
roles: types.optional(z.array(z.lazy(() => SearchDiscordRole$inboundSchema))),
|
|
597
603
|
});
|
|
598
604
|
|
|
599
605
|
export function serverFromJSON(
|
|
@@ -3,14 +3,49 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { blobLikeSchema } from "../../types/blobs.js";
|
|
7
|
+
|
|
8
|
+
export type SearchFaceMedia = {
|
|
9
|
+
fileName: string;
|
|
10
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
11
|
+
};
|
|
6
12
|
|
|
7
13
|
export type SearchFaceRequest = {
|
|
8
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The image file to be analyzed. Max size 10MB
|
|
16
|
+
*/
|
|
17
|
+
media: SearchFaceMedia | Blob;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type SearchFaceMedia$Outbound = {
|
|
22
|
+
fileName: string;
|
|
23
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
9
24
|
};
|
|
10
25
|
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const SearchFaceMedia$outboundSchema: z.ZodMiniType<
|
|
28
|
+
SearchFaceMedia$Outbound,
|
|
29
|
+
SearchFaceMedia
|
|
30
|
+
> = z.object({
|
|
31
|
+
fileName: z.string(),
|
|
32
|
+
content: z.union([
|
|
33
|
+
z.custom<ReadableStream<Uint8Array>>(x => x instanceof ReadableStream),
|
|
34
|
+
z.custom<Blob>(x => x instanceof Blob),
|
|
35
|
+
z.custom<ArrayBuffer>(x => x instanceof ArrayBuffer),
|
|
36
|
+
z.custom<Uint8Array>(x => x instanceof Uint8Array),
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function searchFaceMediaToJSON(
|
|
41
|
+
searchFaceMedia: SearchFaceMedia,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(SearchFaceMedia$outboundSchema.parse(searchFaceMedia));
|
|
44
|
+
}
|
|
45
|
+
|
|
11
46
|
/** @internal */
|
|
12
47
|
export type SearchFaceRequest$Outbound = {
|
|
13
|
-
media:
|
|
48
|
+
media: SearchFaceMedia$Outbound | Blob;
|
|
14
49
|
};
|
|
15
50
|
|
|
16
51
|
/** @internal */
|
|
@@ -18,7 +53,10 @@ export const SearchFaceRequest$outboundSchema: z.ZodMiniType<
|
|
|
18
53
|
SearchFaceRequest$Outbound,
|
|
19
54
|
SearchFaceRequest
|
|
20
55
|
> = z.object({
|
|
21
|
-
media: z.
|
|
56
|
+
media: z.union([
|
|
57
|
+
z.lazy(() => SearchFaceMedia$outboundSchema),
|
|
58
|
+
blobLikeSchema,
|
|
59
|
+
]),
|
|
22
60
|
});
|
|
23
61
|
|
|
24
62
|
export function searchFaceRequestToJSON(
|
|
@@ -39,7 +39,7 @@ export type SearchHudsonRockDataType2 = OpenEnum<
|
|
|
39
39
|
typeof SearchHudsonRockDataType2
|
|
40
40
|
>;
|
|
41
41
|
|
|
42
|
-
export type
|
|
42
|
+
export type SearchHudsonRockStealer = {
|
|
43
43
|
computerName: string;
|
|
44
44
|
dateCompromised: string;
|
|
45
45
|
ip: string;
|
|
@@ -55,7 +55,7 @@ export type Stealer = {
|
|
|
55
55
|
export type SearchHudsonRockData2 = {
|
|
56
56
|
type: SearchHudsonRockDataType2;
|
|
57
57
|
message?: string | undefined;
|
|
58
|
-
stealers?: Array<
|
|
58
|
+
stealers?: Array<SearchHudsonRockStealer> | undefined;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export type Application = {
|
|
@@ -259,7 +259,10 @@ export const SearchHudsonRockDataType2$inboundSchema: z.ZodMiniType<
|
|
|
259
259
|
> = openEnums.inboundSchema(SearchHudsonRockDataType2);
|
|
260
260
|
|
|
261
261
|
/** @internal */
|
|
262
|
-
export const
|
|
262
|
+
export const SearchHudsonRockStealer$inboundSchema: z.ZodMiniType<
|
|
263
|
+
SearchHudsonRockStealer,
|
|
264
|
+
unknown
|
|
265
|
+
> = z.pipe(
|
|
263
266
|
z.object({
|
|
264
267
|
computer_name: types.string(),
|
|
265
268
|
date_compromised: types.string(),
|
|
@@ -287,13 +290,13 @@ export const Stealer$inboundSchema: z.ZodMiniType<Stealer, unknown> = z.pipe(
|
|
|
287
290
|
}),
|
|
288
291
|
);
|
|
289
292
|
|
|
290
|
-
export function
|
|
293
|
+
export function searchHudsonRockStealerFromJSON(
|
|
291
294
|
jsonString: string,
|
|
292
|
-
): SafeParseResult<
|
|
295
|
+
): SafeParseResult<SearchHudsonRockStealer, SDKValidationError> {
|
|
293
296
|
return safeParse(
|
|
294
297
|
jsonString,
|
|
295
|
-
(x) =>
|
|
296
|
-
`Failed to parse '
|
|
298
|
+
(x) => SearchHudsonRockStealer$inboundSchema.parse(JSON.parse(x)),
|
|
299
|
+
`Failed to parse 'SearchHudsonRockStealer' from JSON`,
|
|
297
300
|
);
|
|
298
301
|
}
|
|
299
302
|
|
|
@@ -304,7 +307,9 @@ export const SearchHudsonRockData2$inboundSchema: z.ZodMiniType<
|
|
|
304
307
|
> = z.object({
|
|
305
308
|
type: SearchHudsonRockDataType2$inboundSchema,
|
|
306
309
|
message: types.optional(types.string()),
|
|
307
|
-
stealers: types.optional(
|
|
310
|
+
stealers: types.optional(
|
|
311
|
+
z.array(z.lazy(() => SearchHudsonRockStealer$inboundSchema)),
|
|
312
|
+
),
|
|
308
313
|
});
|
|
309
314
|
|
|
310
315
|
export function searchHudsonRockData2FromJSON(
|
|
@@ -7,6 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
12
|
|
|
12
13
|
export const SearchRobloxType = {
|
|
@@ -76,13 +77,19 @@ export type SearchRobloxProfile = {
|
|
|
76
77
|
rolimons?: SearchRobloxRolimons | undefined;
|
|
77
78
|
};
|
|
78
79
|
|
|
80
|
+
export type SearchRobloxStealer = {};
|
|
81
|
+
|
|
82
|
+
export type Stealer = number | SearchRobloxStealer | string | boolean;
|
|
83
|
+
|
|
79
84
|
export type SearchRobloxData = {
|
|
80
85
|
type: string;
|
|
81
86
|
altAccountThumbnails?: { [k: string]: string } | undefined;
|
|
82
87
|
altAccounts?: AltAccounts | undefined;
|
|
83
88
|
leaks?: any | undefined;
|
|
84
89
|
profile?: SearchRobloxProfile | undefined;
|
|
85
|
-
stealers?:
|
|
90
|
+
stealers?:
|
|
91
|
+
| Array<number | SearchRobloxStealer | string | boolean | null>
|
|
92
|
+
| undefined;
|
|
86
93
|
verified?: boolean | null | undefined;
|
|
87
94
|
};
|
|
88
95
|
|
|
@@ -260,6 +267,41 @@ export function searchRobloxProfileFromJSON(
|
|
|
260
267
|
);
|
|
261
268
|
}
|
|
262
269
|
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const SearchRobloxStealer$inboundSchema: z.ZodMiniType<
|
|
272
|
+
SearchRobloxStealer,
|
|
273
|
+
unknown
|
|
274
|
+
> = z.object({});
|
|
275
|
+
|
|
276
|
+
export function searchRobloxStealerFromJSON(
|
|
277
|
+
jsonString: string,
|
|
278
|
+
): SafeParseResult<SearchRobloxStealer, SDKValidationError> {
|
|
279
|
+
return safeParse(
|
|
280
|
+
jsonString,
|
|
281
|
+
(x) => SearchRobloxStealer$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
+
`Failed to parse 'SearchRobloxStealer' from JSON`,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const Stealer$inboundSchema: z.ZodMiniType<Stealer, unknown> =
|
|
288
|
+
smartUnion([
|
|
289
|
+
types.number(),
|
|
290
|
+
z.lazy(() => SearchRobloxStealer$inboundSchema),
|
|
291
|
+
types.string(),
|
|
292
|
+
types.boolean(),
|
|
293
|
+
]);
|
|
294
|
+
|
|
295
|
+
export function stealerFromJSON(
|
|
296
|
+
jsonString: string,
|
|
297
|
+
): SafeParseResult<Stealer, SDKValidationError> {
|
|
298
|
+
return safeParse(
|
|
299
|
+
jsonString,
|
|
300
|
+
(x) => Stealer$inboundSchema.parse(JSON.parse(x)),
|
|
301
|
+
`Failed to parse 'Stealer' from JSON`,
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
263
305
|
/** @internal */
|
|
264
306
|
export const SearchRobloxData$inboundSchema: z.ZodMiniType<
|
|
265
307
|
SearchRobloxData,
|
|
@@ -270,7 +312,14 @@ export const SearchRobloxData$inboundSchema: z.ZodMiniType<
|
|
|
270
312
|
altAccounts: types.optional(z.lazy(() => AltAccounts$inboundSchema)),
|
|
271
313
|
leaks: types.optional(z.any()),
|
|
272
314
|
profile: types.optional(z.lazy(() => SearchRobloxProfile$inboundSchema)),
|
|
273
|
-
stealers: types.optional(
|
|
315
|
+
stealers: types.optional(
|
|
316
|
+
z.array(types.nullable(smartUnion([
|
|
317
|
+
types.number(),
|
|
318
|
+
z.lazy(() => SearchRobloxStealer$inboundSchema),
|
|
319
|
+
types.string(),
|
|
320
|
+
types.boolean(),
|
|
321
|
+
]))),
|
|
322
|
+
),
|
|
274
323
|
verified: z.optional(z.nullable(types.boolean())),
|
|
275
324
|
});
|
|
276
325
|
|