@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
|
@@ -40,8 +40,7 @@ export function intelligenceSearchWebDatabases(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchWebDatabasesResponse,
|
|
43
|
-
| errors.
|
|
44
|
-
| errors.SearchWebDatabasesInternalServerError
|
|
43
|
+
| errors.FailedResponseError
|
|
45
44
|
| IndiciaError
|
|
46
45
|
| ResponseValidationError
|
|
47
46
|
| ConnectionError
|
|
@@ -67,8 +66,7 @@ async function $do(
|
|
|
67
66
|
[
|
|
68
67
|
Result<
|
|
69
68
|
operations.SearchWebDatabasesResponse,
|
|
70
|
-
| errors.
|
|
71
|
-
| errors.SearchWebDatabasesInternalServerError
|
|
69
|
+
| errors.FailedResponseError
|
|
72
70
|
| IndiciaError
|
|
73
71
|
| ResponseValidationError
|
|
74
72
|
| ConnectionError
|
|
@@ -152,8 +150,7 @@ async function $do(
|
|
|
152
150
|
|
|
153
151
|
const [result] = await M.match<
|
|
154
152
|
operations.SearchWebDatabasesResponse,
|
|
155
|
-
| errors.
|
|
156
|
-
| errors.SearchWebDatabasesInternalServerError
|
|
153
|
+
| errors.FailedResponseError
|
|
157
154
|
| IndiciaError
|
|
158
155
|
| ResponseValidationError
|
|
159
156
|
| ConnectionError
|
|
@@ -164,8 +161,8 @@ async function $do(
|
|
|
164
161
|
| SDKValidationError
|
|
165
162
|
>(
|
|
166
163
|
M.json(200, operations.SearchWebDatabasesResponse$inboundSchema),
|
|
167
|
-
M.jsonErr(402, errors.
|
|
168
|
-
M.jsonErr(500, errors.
|
|
164
|
+
M.jsonErr(402, errors.FailedResponseError$inboundSchema),
|
|
165
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
169
166
|
M.fail("4XX"),
|
|
170
167
|
M.fail("5XX"),
|
|
171
168
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function socialsSearchDiscord(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchDiscordResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.SearchDiscordResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
151
|
operations.SearchDiscordResponse,
|
|
152
|
-
| errors.
|
|
152
|
+
| errors.FailedResponseError
|
|
153
153
|
| IndiciaError
|
|
154
154
|
| ResponseValidationError
|
|
155
155
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| SDKValidationError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.SearchDiscordResponse$inboundSchema),
|
|
163
|
-
M.jsonErr(500, errors.
|
|
163
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function socialsSearchGithub(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchGithubResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.SearchGithubResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
151
|
operations.SearchGithubResponse,
|
|
152
|
-
| errors.
|
|
152
|
+
| errors.FailedResponseError
|
|
153
153
|
| IndiciaError
|
|
154
154
|
| ResponseValidationError
|
|
155
155
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| SDKValidationError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.SearchGithubResponse$inboundSchema),
|
|
163
|
-
M.jsonErr(500, errors.
|
|
163
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function socialsSearchRoblox(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchRobloxResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.SearchRobloxResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
151
|
operations.SearchRobloxResponse,
|
|
152
|
-
| errors.
|
|
152
|
+
| errors.FailedResponseError
|
|
153
153
|
| IndiciaError
|
|
154
154
|
| ResponseValidationError
|
|
155
155
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| SDKValidationError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.SearchRobloxResponse$inboundSchema),
|
|
163
|
-
M.jsonErr(500, errors.
|
|
163
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function socialsSearchTiktok(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchTiktokResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.SearchTiktokResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
151
|
operations.SearchTiktokResponse,
|
|
152
|
-
| errors.
|
|
152
|
+
| errors.FailedResponseError
|
|
153
153
|
| IndiciaError
|
|
154
154
|
| ResponseValidationError
|
|
155
155
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| SDKValidationError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.SearchTiktokResponse$inboundSchema),
|
|
163
|
-
M.jsonErr(500, errors.
|
|
163
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function socialsSearchUsername(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchUsernameResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.SearchUsernameResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
151
|
operations.SearchUsernameResponse,
|
|
152
|
-
| errors.
|
|
152
|
+
| errors.FailedResponseError
|
|
153
153
|
| IndiciaError
|
|
154
154
|
| ResponseValidationError
|
|
155
155
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| SDKValidationError
|
|
161
161
|
>(
|
|
162
162
|
M.json(200, operations.SearchUsernameResponse$inboundSchema),
|
|
163
|
-
M.jsonErr(500, errors.
|
|
163
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function toolsBypassDoubleCounter(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.BypassDoubleCounterResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.BypassDoubleCounterResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
|
|
151
151
|
const [result] = await M.match<
|
|
152
152
|
operations.BypassDoubleCounterResponse,
|
|
153
|
-
| errors.
|
|
153
|
+
| errors.FailedResponseError
|
|
154
154
|
| IndiciaError
|
|
155
155
|
| ResponseValidationError
|
|
156
156
|
| ConnectionError
|
|
@@ -161,7 +161,7 @@ async function $do(
|
|
|
161
161
|
| SDKValidationError
|
|
162
162
|
>(
|
|
163
163
|
M.json(200, operations.BypassDoubleCounterResponse$inboundSchema),
|
|
164
|
-
M.jsonErr(500, errors.
|
|
164
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
167
167
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,8 +40,7 @@ export function toolsDownloadIntelxFile(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.DownloadIntelxFileResponse,
|
|
43
|
-
| errors.
|
|
44
|
-
| errors.DownloadIntelxFileInternalServerError
|
|
43
|
+
| errors.FailedResponseError
|
|
45
44
|
| IndiciaError
|
|
46
45
|
| ResponseValidationError
|
|
47
46
|
| ConnectionError
|
|
@@ -67,8 +66,7 @@ async function $do(
|
|
|
67
66
|
[
|
|
68
67
|
Result<
|
|
69
68
|
operations.DownloadIntelxFileResponse,
|
|
70
|
-
| errors.
|
|
71
|
-
| errors.DownloadIntelxFileInternalServerError
|
|
69
|
+
| errors.FailedResponseError
|
|
72
70
|
| IndiciaError
|
|
73
71
|
| ResponseValidationError
|
|
74
72
|
| ConnectionError
|
|
@@ -152,8 +150,7 @@ async function $do(
|
|
|
152
150
|
|
|
153
151
|
const [result] = await M.match<
|
|
154
152
|
operations.DownloadIntelxFileResponse,
|
|
155
|
-
| errors.
|
|
156
|
-
| errors.DownloadIntelxFileInternalServerError
|
|
153
|
+
| errors.FailedResponseError
|
|
157
154
|
| IndiciaError
|
|
158
155
|
| ResponseValidationError
|
|
159
156
|
| ConnectionError
|
|
@@ -164,8 +161,8 @@ async function $do(
|
|
|
164
161
|
| SDKValidationError
|
|
165
162
|
>(
|
|
166
163
|
M.json(200, operations.DownloadIntelxFileResponse$inboundSchema),
|
|
167
|
-
M.jsonErr(400, errors.
|
|
168
|
-
M.jsonErr(500, errors.
|
|
164
|
+
M.jsonErr(400, errors.FailedResponseError$inboundSchema),
|
|
165
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
169
166
|
M.fail("4XX"),
|
|
170
167
|
M.fail("5XX"),
|
|
171
168
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function toolsLookupDiscordAlt(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.LookupDiscordAltResponse,
|
|
43
|
-
| errors.
|
|
43
|
+
| errors.FailedResponseError
|
|
44
44
|
| IndiciaError
|
|
45
45
|
| ResponseValidationError
|
|
46
46
|
| ConnectionError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
[
|
|
67
67
|
Result<
|
|
68
68
|
operations.LookupDiscordAltResponse,
|
|
69
|
-
| errors.
|
|
69
|
+
| errors.FailedResponseError
|
|
70
70
|
| IndiciaError
|
|
71
71
|
| ResponseValidationError
|
|
72
72
|
| ConnectionError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
|
|
151
151
|
const [result] = await M.match<
|
|
152
152
|
operations.LookupDiscordAltResponse,
|
|
153
|
-
| errors.
|
|
153
|
+
| errors.FailedResponseError
|
|
154
154
|
| IndiciaError
|
|
155
155
|
| ResponseValidationError
|
|
156
156
|
| ConnectionError
|
|
@@ -161,7 +161,7 @@ async function $do(
|
|
|
161
161
|
| SDKValidationError
|
|
162
162
|
>(
|
|
163
163
|
M.json(200, operations.LookupDiscordAltResponse$inboundSchema),
|
|
164
|
-
M.jsonErr(500, errors.
|
|
164
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
167
167
|
)(response, req, { extraFields: responseFields });
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "1.0
|
|
62
|
-
genVersion: "2.911.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 1.0
|
|
61
|
+
sdkVersion: "1.1.0",
|
|
62
|
+
genVersion: "2.911.3",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 1.1.0 2.911.3 1.0.0 @indiciaosint/sdk",
|
|
64
64
|
} as const;
|
|
@@ -7,25 +7,37 @@ import * as types from "../../types/primitives.js";
|
|
|
7
7
|
import { IndiciaError } from "./indicia-error.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* A failed API response.
|
|
11
11
|
*/
|
|
12
|
-
export type
|
|
12
|
+
export type FailedResponseErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* Always `false` for error responses.
|
|
15
|
+
*/
|
|
13
16
|
success: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Human-readable error message.
|
|
19
|
+
*/
|
|
14
20
|
error?: string | undefined;
|
|
15
21
|
};
|
|
16
22
|
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* A failed API response.
|
|
19
25
|
*/
|
|
20
|
-
export class
|
|
26
|
+
export class FailedResponseError extends IndiciaError {
|
|
27
|
+
/**
|
|
28
|
+
* Always `false` for error responses.
|
|
29
|
+
*/
|
|
21
30
|
success: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable error message.
|
|
33
|
+
*/
|
|
22
34
|
error?: string | undefined;
|
|
23
35
|
|
|
24
36
|
/** The original data that was passed to this error instance. */
|
|
25
|
-
data$:
|
|
37
|
+
data$: FailedResponseErrorData;
|
|
26
38
|
|
|
27
39
|
constructor(
|
|
28
|
-
err:
|
|
40
|
+
err: FailedResponseErrorData,
|
|
29
41
|
httpMeta: { response: Response; request: Request; body: string },
|
|
30
42
|
) {
|
|
31
43
|
const message = "message" in err && typeof err.message === "string"
|
|
@@ -36,13 +48,13 @@ export class SearchAddressInternalServerError extends IndiciaError {
|
|
|
36
48
|
this.success = err.success;
|
|
37
49
|
if (err.error != null) this.error = err.error;
|
|
38
50
|
|
|
39
|
-
this.name = "
|
|
51
|
+
this.name = "FailedResponseError";
|
|
40
52
|
}
|
|
41
53
|
}
|
|
42
54
|
|
|
43
55
|
/** @internal */
|
|
44
|
-
export const
|
|
45
|
-
|
|
56
|
+
export const FailedResponseError$inboundSchema: z.ZodMiniType<
|
|
57
|
+
FailedResponseError,
|
|
46
58
|
unknown
|
|
47
59
|
> = z.pipe(
|
|
48
60
|
z.object({
|
|
@@ -53,7 +65,7 @@ export const SearchAddressInternalServerError$inboundSchema: z.ZodMiniType<
|
|
|
53
65
|
body$: z.string(),
|
|
54
66
|
}),
|
|
55
67
|
z.transform((v) => {
|
|
56
|
-
return new
|
|
68
|
+
return new FailedResponseError(v, {
|
|
57
69
|
request: v.request$,
|
|
58
70
|
response: v.response$,
|
|
59
71
|
body: v.body$,
|
|
@@ -2,32 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./download-intelx-file.js";
|
|
7
|
-
export * from "./geolocate-media.js";
|
|
5
|
+
export * from "./failed-response-error.js";
|
|
8
6
|
export * from "./http-client-errors.js";
|
|
9
7
|
export * from "./indicia-default-error.js";
|
|
10
8
|
export * from "./indicia-error.js";
|
|
11
|
-
export * from "./lookup-discord-alt.js";
|
|
12
9
|
export * from "./response-validation-error.js";
|
|
13
|
-
export * from "./scan-ports.js";
|
|
14
10
|
export * from "./sdk-validation-error.js";
|
|
15
|
-
export * from "./search-address.js";
|
|
16
|
-
export * from "./search-certificates.js";
|
|
17
|
-
export * from "./search-discord.js";
|
|
18
|
-
export * from "./search-dns.js";
|
|
19
|
-
export * from "./search-email.js";
|
|
20
|
-
export * from "./search-face.js";
|
|
21
|
-
export * from "./search-github.js";
|
|
22
|
-
export * from "./search-gmail.js";
|
|
23
|
-
export * from "./search-hudson-rock.js";
|
|
24
|
-
export * from "./search-ip-info.js";
|
|
25
|
-
export * from "./search-person.js";
|
|
26
|
-
export * from "./search-phone.js";
|
|
27
|
-
export * from "./search-roblox.js";
|
|
28
|
-
export * from "./search-seon.js";
|
|
29
|
-
export * from "./search-shodan.js";
|
|
30
|
-
export * from "./search-tiktok.js";
|
|
31
|
-
export * from "./search-username.js";
|
|
32
|
-
export * from "./search-web-databases.js";
|
|
33
|
-
export * from "./search-whois.js";
|
|
@@ -3,26 +3,75 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { blobLikeSchema } from "../../types/blobs.js";
|
|
6
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
|
|
9
|
+
export type GeolocateMediaMedia = {
|
|
10
|
+
fileName: string;
|
|
11
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The geolocation model to use. "enhanced" provides more detailed analysis at a higher credit cost, and takes longer.
|
|
16
|
+
*/
|
|
8
17
|
export const Model = {
|
|
9
18
|
Default: "default",
|
|
10
19
|
Enhanced: "enhanced",
|
|
11
20
|
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The geolocation model to use. "enhanced" provides more detailed analysis at a higher credit cost, and takes longer.
|
|
23
|
+
*/
|
|
12
24
|
export type Model = ClosedEnum<typeof Model>;
|
|
13
25
|
|
|
14
26
|
export type GeolocateMediaRequest = {
|
|
15
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The image file to be analyzed. Max size 10MB
|
|
29
|
+
*/
|
|
30
|
+
media: GeolocateMediaMedia | Blob;
|
|
31
|
+
/**
|
|
32
|
+
* Optional geographic hint to narrow the search area (e.g. "NYC", "France"). Max 20 characters. The AI may override it if visual evidence disagrees.
|
|
33
|
+
*/
|
|
16
34
|
locationHint?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The geolocation model to use. "enhanced" provides more detailed analysis at a higher credit cost, and takes longer.
|
|
37
|
+
*/
|
|
17
38
|
model?: Model | undefined;
|
|
18
39
|
};
|
|
19
40
|
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type GeolocateMediaMedia$Outbound = {
|
|
43
|
+
fileName: string;
|
|
44
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const GeolocateMediaMedia$outboundSchema: z.ZodMiniType<
|
|
49
|
+
GeolocateMediaMedia$Outbound,
|
|
50
|
+
GeolocateMediaMedia
|
|
51
|
+
> = z.object({
|
|
52
|
+
fileName: z.string(),
|
|
53
|
+
content: z.union([
|
|
54
|
+
z.custom<ReadableStream<Uint8Array>>(x => x instanceof ReadableStream),
|
|
55
|
+
z.custom<Blob>(x => x instanceof Blob),
|
|
56
|
+
z.custom<ArrayBuffer>(x => x instanceof ArrayBuffer),
|
|
57
|
+
z.custom<Uint8Array>(x => x instanceof Uint8Array),
|
|
58
|
+
]),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function geolocateMediaMediaToJSON(
|
|
62
|
+
geolocateMediaMedia: GeolocateMediaMedia,
|
|
63
|
+
): string {
|
|
64
|
+
return JSON.stringify(
|
|
65
|
+
GeolocateMediaMedia$outboundSchema.parse(geolocateMediaMedia),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
20
69
|
/** @internal */
|
|
21
70
|
export const Model$outboundSchema: z.ZodMiniEnum<typeof Model> = z.enum(Model);
|
|
22
71
|
|
|
23
72
|
/** @internal */
|
|
24
73
|
export type GeolocateMediaRequest$Outbound = {
|
|
25
|
-
media:
|
|
74
|
+
media: GeolocateMediaMedia$Outbound | Blob;
|
|
26
75
|
locationHint?: string | undefined;
|
|
27
76
|
model?: string | undefined;
|
|
28
77
|
};
|
|
@@ -32,7 +81,10 @@ export const GeolocateMediaRequest$outboundSchema: z.ZodMiniType<
|
|
|
32
81
|
GeolocateMediaRequest$Outbound,
|
|
33
82
|
GeolocateMediaRequest
|
|
34
83
|
> = z.object({
|
|
35
|
-
media: z.
|
|
84
|
+
media: z.union([
|
|
85
|
+
z.lazy(() => GeolocateMediaMedia$outboundSchema),
|
|
86
|
+
blobLikeSchema,
|
|
87
|
+
]),
|
|
36
88
|
locationHint: z.optional(z.string()),
|
|
37
89
|
model: z.optional(Model$outboundSchema),
|
|
38
90
|
});
|
|
@@ -12,34 +12,6 @@ export type LookupDiscordAltRequest = {
|
|
|
12
12
|
query: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export type InternalServerErrorFirst = {
|
|
16
|
-
avatar: string;
|
|
17
|
-
id: string;
|
|
18
|
-
username: string;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type InternalServerErrorSecond = {
|
|
22
|
-
avatar: string;
|
|
23
|
-
id: string;
|
|
24
|
-
username: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type InternalServerErrorThird = {
|
|
28
|
-
avatar: string;
|
|
29
|
-
id: string;
|
|
30
|
-
username: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type LookupDiscordAltInternalServerErrorData = {
|
|
34
|
-
first: Array<InternalServerErrorFirst>;
|
|
35
|
-
second: Array<InternalServerErrorSecond>;
|
|
36
|
-
third: Array<InternalServerErrorThird>;
|
|
37
|
-
tier: string;
|
|
38
|
-
totalalts: number;
|
|
39
|
-
verifications: number;
|
|
40
|
-
vpns: number;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
15
|
export type First = {
|
|
44
16
|
avatar: string;
|
|
45
17
|
id: string;
|
|
@@ -98,94 +70,6 @@ export function lookupDiscordAltRequestToJSON(
|
|
|
98
70
|
);
|
|
99
71
|
}
|
|
100
72
|
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const InternalServerErrorFirst$inboundSchema: z.ZodMiniType<
|
|
103
|
-
InternalServerErrorFirst,
|
|
104
|
-
unknown
|
|
105
|
-
> = z.object({
|
|
106
|
-
avatar: types.string(),
|
|
107
|
-
id: types.string(),
|
|
108
|
-
username: types.string(),
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
export function internalServerErrorFirstFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<InternalServerErrorFirst, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => InternalServerErrorFirst$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'InternalServerErrorFirst' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const InternalServerErrorSecond$inboundSchema: z.ZodMiniType<
|
|
123
|
-
InternalServerErrorSecond,
|
|
124
|
-
unknown
|
|
125
|
-
> = z.object({
|
|
126
|
-
avatar: types.string(),
|
|
127
|
-
id: types.string(),
|
|
128
|
-
username: types.string(),
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
export function internalServerErrorSecondFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<InternalServerErrorSecond, SDKValidationError> {
|
|
134
|
-
return safeParse(
|
|
135
|
-
jsonString,
|
|
136
|
-
(x) => InternalServerErrorSecond$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
-
`Failed to parse 'InternalServerErrorSecond' from JSON`,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const InternalServerErrorThird$inboundSchema: z.ZodMiniType<
|
|
143
|
-
InternalServerErrorThird,
|
|
144
|
-
unknown
|
|
145
|
-
> = z.object({
|
|
146
|
-
avatar: types.string(),
|
|
147
|
-
id: types.string(),
|
|
148
|
-
username: types.string(),
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
export function internalServerErrorThirdFromJSON(
|
|
152
|
-
jsonString: string,
|
|
153
|
-
): SafeParseResult<InternalServerErrorThird, SDKValidationError> {
|
|
154
|
-
return safeParse(
|
|
155
|
-
jsonString,
|
|
156
|
-
(x) => InternalServerErrorThird$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
-
`Failed to parse 'InternalServerErrorThird' from JSON`,
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const LookupDiscordAltInternalServerErrorData$inboundSchema:
|
|
163
|
-
z.ZodMiniType<LookupDiscordAltInternalServerErrorData, unknown> = z.object({
|
|
164
|
-
first: z.array(z.lazy(() => InternalServerErrorFirst$inboundSchema)),
|
|
165
|
-
second: z.array(z.lazy(() => InternalServerErrorSecond$inboundSchema)),
|
|
166
|
-
third: z.array(z.lazy(() => InternalServerErrorThird$inboundSchema)),
|
|
167
|
-
tier: types.string(),
|
|
168
|
-
totalalts: types.number(),
|
|
169
|
-
verifications: types.number(),
|
|
170
|
-
vpns: types.number(),
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
export function lookupDiscordAltInternalServerErrorDataFromJSON(
|
|
174
|
-
jsonString: string,
|
|
175
|
-
): SafeParseResult<
|
|
176
|
-
LookupDiscordAltInternalServerErrorData,
|
|
177
|
-
SDKValidationError
|
|
178
|
-
> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) =>
|
|
182
|
-
LookupDiscordAltInternalServerErrorData$inboundSchema.parse(
|
|
183
|
-
JSON.parse(x),
|
|
184
|
-
),
|
|
185
|
-
`Failed to parse 'LookupDiscordAltInternalServerErrorData' from JSON`,
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
73
|
/** @internal */
|
|
190
74
|
export const First$inboundSchema: z.ZodMiniType<First, unknown> = z.object({
|
|
191
75
|
avatar: types.string(),
|