@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,7 +40,7 @@ export function infrastructureSearchCertificates(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchCertificatesResponse,
|
|
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.SearchCertificatesResponse,
|
|
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.SearchCertificatesResponse,
|
|
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.SearchCertificatesResponse$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,7 +40,7 @@ export function infrastructureSearchDns(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchDnsResponse,
|
|
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.SearchDnsResponse,
|
|
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.SearchDnsResponse,
|
|
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.SearchDnsResponse$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 infrastructureSearchIpInfo(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchIpInfoResponse,
|
|
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.SearchIpInfoResponse,
|
|
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.SearchIpInfoResponse,
|
|
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.SearchIpInfoResponse$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 infrastructureSearchShodan(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchShodanResponse,
|
|
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.SearchShodanResponse,
|
|
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.SearchShodanResponse,
|
|
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.SearchShodanResponse$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 infrastructureSearchWhois(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchWhoisResponse,
|
|
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.SearchWhoisResponse,
|
|
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.SearchWhoisResponse,
|
|
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.SearchWhoisResponse$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 });
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { IndiciaCore } from "../core.js";
|
|
7
|
-
import { appendForm } from "../lib/encodings.js";
|
|
7
|
+
import { appendForm, normalizeBlob } from "../lib/encodings.js";
|
|
8
|
+
import {
|
|
9
|
+
bytesToBlob,
|
|
10
|
+
getContentTypeFromFileName,
|
|
11
|
+
readableStreamToArrayBuffer,
|
|
12
|
+
} from "../lib/files.js";
|
|
8
13
|
import { matchStatusCode } from "../lib/http.js";
|
|
9
14
|
import * as M from "../lib/matchers.js";
|
|
10
15
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -25,8 +30,10 @@ import { ResponseValidationError } from "../models/errors/response-validation-er
|
|
|
25
30
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
31
|
import * as operations from "../models/operations/index.js";
|
|
27
32
|
import { APICall, APIPromise } from "../types/async.js";
|
|
33
|
+
import { isBlobLike } from "../types/blobs.js";
|
|
28
34
|
import { Result } from "../types/fp.js";
|
|
29
35
|
import * as types$ from "../types/primitives.js";
|
|
36
|
+
import { isReadableStream } from "../types/streams.js";
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
* Geolocate Media
|
|
@@ -35,6 +42,7 @@ import * as types$ from "../types/primitives.js";
|
|
|
35
42
|
* Geolocate an image using AI-powered analysis. Streams progress updates via Server-Sent Events.
|
|
36
43
|
*
|
|
37
44
|
* Response type:
|
|
45
|
+
*
|
|
38
46
|
* ```ts
|
|
39
47
|
* interface GeolocationResponse {
|
|
40
48
|
* location: string | null;
|
|
@@ -52,9 +60,7 @@ export function intelligenceGeolocateMedia(
|
|
|
52
60
|
): APIPromise<
|
|
53
61
|
Result<
|
|
54
62
|
string,
|
|
55
|
-
| errors.
|
|
56
|
-
| errors.GeolocateMediaPaymentRequiredError
|
|
57
|
-
| errors.GeolocateMediaInternalServerError
|
|
63
|
+
| errors.FailedResponseError
|
|
58
64
|
| IndiciaError
|
|
59
65
|
| ResponseValidationError
|
|
60
66
|
| ConnectionError
|
|
@@ -80,9 +86,7 @@ async function $do(
|
|
|
80
86
|
[
|
|
81
87
|
Result<
|
|
82
88
|
string,
|
|
83
|
-
| errors.
|
|
84
|
-
| errors.GeolocateMediaPaymentRequiredError
|
|
85
|
-
| errors.GeolocateMediaInternalServerError
|
|
89
|
+
| errors.FailedResponseError
|
|
86
90
|
| IndiciaError
|
|
87
91
|
| ResponseValidationError
|
|
88
92
|
| ConnectionError
|
|
@@ -106,12 +110,34 @@ async function $do(
|
|
|
106
110
|
const payload = parsed.value;
|
|
107
111
|
const body = new FormData();
|
|
108
112
|
|
|
113
|
+
if (isBlobLike(payload.media)) {
|
|
114
|
+
const file = payload.media;
|
|
115
|
+
const blob = await normalizeBlob(file);
|
|
116
|
+
const name = "name" in file ? (file.name as string) : undefined;
|
|
117
|
+
appendForm(body, "media", blob, name);
|
|
118
|
+
} else if (isReadableStream(payload.media.content)) {
|
|
119
|
+
const buffer = await readableStreamToArrayBuffer(payload.media.content);
|
|
120
|
+
const contentType = getContentTypeFromFileName(payload.media.fileName)
|
|
121
|
+
|| "application/octet-stream";
|
|
122
|
+
appendForm(
|
|
123
|
+
body,
|
|
124
|
+
"media",
|
|
125
|
+
bytesToBlob(buffer, contentType),
|
|
126
|
+
payload.media.fileName,
|
|
127
|
+
);
|
|
128
|
+
} else {
|
|
129
|
+
const contentType = getContentTypeFromFileName(payload.media.fileName)
|
|
130
|
+
|| "application/octet-stream";
|
|
131
|
+
appendForm(
|
|
132
|
+
body,
|
|
133
|
+
"media",
|
|
134
|
+
bytesToBlob(payload.media.content, contentType),
|
|
135
|
+
payload.media.fileName,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
109
138
|
if (payload.locationHint !== undefined) {
|
|
110
139
|
appendForm(body, "locationHint", payload.locationHint);
|
|
111
140
|
}
|
|
112
|
-
if (payload.media !== undefined) {
|
|
113
|
-
appendForm(body, "media", payload.media);
|
|
114
|
-
}
|
|
115
141
|
if (payload.model !== undefined) {
|
|
116
142
|
appendForm(body, "model", payload.model);
|
|
117
143
|
}
|
|
@@ -174,9 +200,7 @@ async function $do(
|
|
|
174
200
|
|
|
175
201
|
const [result] = await M.match<
|
|
176
202
|
string,
|
|
177
|
-
| errors.
|
|
178
|
-
| errors.GeolocateMediaPaymentRequiredError
|
|
179
|
-
| errors.GeolocateMediaInternalServerError
|
|
203
|
+
| errors.FailedResponseError
|
|
180
204
|
| IndiciaError
|
|
181
205
|
| ResponseValidationError
|
|
182
206
|
| ConnectionError
|
|
@@ -187,9 +211,8 @@ async function $do(
|
|
|
187
211
|
| SDKValidationError
|
|
188
212
|
>(
|
|
189
213
|
M.text(200, types$.string(), { ctype: "text/event-stream" }),
|
|
190
|
-
M.jsonErr(400, errors.
|
|
191
|
-
M.jsonErr(
|
|
192
|
-
M.jsonErr(500, errors.GeolocateMediaInternalServerError$inboundSchema),
|
|
214
|
+
M.jsonErr([400, 402], errors.FailedResponseError$inboundSchema),
|
|
215
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
193
216
|
M.fail("4XX"),
|
|
194
217
|
M.fail("5XX"),
|
|
195
218
|
)(response, req, { extraFields: responseFields });
|
|
@@ -37,7 +37,7 @@ export function intelligenceSearchAddress(
|
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
39
|
operations.SearchAddressResponse,
|
|
40
|
-
| errors.
|
|
40
|
+
| errors.FailedResponseError
|
|
41
41
|
| IndiciaError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
65
|
operations.SearchAddressResponse,
|
|
66
|
-
| errors.
|
|
66
|
+
| errors.FailedResponseError
|
|
67
67
|
| IndiciaError
|
|
68
68
|
| ResponseValidationError
|
|
69
69
|
| ConnectionError
|
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
148
|
operations.SearchAddressResponse,
|
|
149
|
-
| errors.
|
|
149
|
+
| errors.FailedResponseError
|
|
150
150
|
| IndiciaError
|
|
151
151
|
| ResponseValidationError
|
|
152
152
|
| ConnectionError
|
|
@@ -157,7 +157,7 @@ async function $do(
|
|
|
157
157
|
| SDKValidationError
|
|
158
158
|
>(
|
|
159
159
|
M.json(200, operations.SearchAddressResponse$inboundSchema),
|
|
160
|
-
M.jsonErr(500, errors.
|
|
160
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
161
161
|
M.fail("4XX"),
|
|
162
162
|
M.fail("5XX"),
|
|
163
163
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function intelligenceSearchEmail(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchEmailResponse,
|
|
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.SearchEmailResponse,
|
|
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.SearchEmailResponse,
|
|
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.SearchEmailResponse$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 });
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { IndiciaCore } from "../core.js";
|
|
7
|
-
import { appendForm } from "../lib/encodings.js";
|
|
7
|
+
import { appendForm, normalizeBlob } from "../lib/encodings.js";
|
|
8
|
+
import {
|
|
9
|
+
bytesToBlob,
|
|
10
|
+
getContentTypeFromFileName,
|
|
11
|
+
readableStreamToArrayBuffer,
|
|
12
|
+
} from "../lib/files.js";
|
|
8
13
|
import { matchStatusCode } from "../lib/http.js";
|
|
9
14
|
import * as M from "../lib/matchers.js";
|
|
10
15
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -25,33 +30,16 @@ import { ResponseValidationError } from "../models/errors/response-validation-er
|
|
|
25
30
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
31
|
import * as operations from "../models/operations/index.js";
|
|
27
32
|
import { APICall, APIPromise } from "../types/async.js";
|
|
33
|
+
import { isBlobLike } from "../types/blobs.js";
|
|
28
34
|
import { Result } from "../types/fp.js";
|
|
29
35
|
import * as types$ from "../types/primitives.js";
|
|
36
|
+
import { isReadableStream } from "../types/streams.js";
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
* Reverse Face Search
|
|
33
40
|
*
|
|
34
41
|
* @remarks
|
|
35
42
|
* Search for faces across the internet using facial recognition. Streams progress updates via Server-Sent Events.
|
|
36
|
-
*
|
|
37
|
-
* Response type:
|
|
38
|
-
* ```ts
|
|
39
|
-
* interface FacialSearchResult {
|
|
40
|
-
* time: number;
|
|
41
|
-
* results: {
|
|
42
|
-
* id: string;
|
|
43
|
-
* hash: string;
|
|
44
|
-
* group: number;
|
|
45
|
-
* quality: number;
|
|
46
|
-
* imageUrl: string;
|
|
47
|
-
* crawledAt: number;
|
|
48
|
-
* sourceUrl: string;
|
|
49
|
-
* thumbnailUrl: string;
|
|
50
|
-
* }[];
|
|
51
|
-
* searchHash: string;
|
|
52
|
-
* numberOfResults: number;
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
43
|
*/
|
|
56
44
|
export function intelligenceSearchFace(
|
|
57
45
|
client: IndiciaCore,
|
|
@@ -60,9 +48,7 @@ export function intelligenceSearchFace(
|
|
|
60
48
|
): APIPromise<
|
|
61
49
|
Result<
|
|
62
50
|
string,
|
|
63
|
-
| errors.
|
|
64
|
-
| errors.SearchFacePaymentRequiredError
|
|
65
|
-
| errors.SearchFaceInternalServerError
|
|
51
|
+
| errors.FailedResponseError
|
|
66
52
|
| IndiciaError
|
|
67
53
|
| ResponseValidationError
|
|
68
54
|
| ConnectionError
|
|
@@ -88,9 +74,7 @@ async function $do(
|
|
|
88
74
|
[
|
|
89
75
|
Result<
|
|
90
76
|
string,
|
|
91
|
-
| errors.
|
|
92
|
-
| errors.SearchFacePaymentRequiredError
|
|
93
|
-
| errors.SearchFaceInternalServerError
|
|
77
|
+
| errors.FailedResponseError
|
|
94
78
|
| IndiciaError
|
|
95
79
|
| ResponseValidationError
|
|
96
80
|
| ConnectionError
|
|
@@ -114,8 +98,30 @@ async function $do(
|
|
|
114
98
|
const payload = parsed.value;
|
|
115
99
|
const body = new FormData();
|
|
116
100
|
|
|
117
|
-
if (payload.media
|
|
118
|
-
|
|
101
|
+
if (isBlobLike(payload.media)) {
|
|
102
|
+
const file = payload.media;
|
|
103
|
+
const blob = await normalizeBlob(file);
|
|
104
|
+
const name = "name" in file ? (file.name as string) : undefined;
|
|
105
|
+
appendForm(body, "media", blob, name);
|
|
106
|
+
} else if (isReadableStream(payload.media.content)) {
|
|
107
|
+
const buffer = await readableStreamToArrayBuffer(payload.media.content);
|
|
108
|
+
const contentType = getContentTypeFromFileName(payload.media.fileName)
|
|
109
|
+
|| "application/octet-stream";
|
|
110
|
+
appendForm(
|
|
111
|
+
body,
|
|
112
|
+
"media",
|
|
113
|
+
bytesToBlob(buffer, contentType),
|
|
114
|
+
payload.media.fileName,
|
|
115
|
+
);
|
|
116
|
+
} else {
|
|
117
|
+
const contentType = getContentTypeFromFileName(payload.media.fileName)
|
|
118
|
+
|| "application/octet-stream";
|
|
119
|
+
appendForm(
|
|
120
|
+
body,
|
|
121
|
+
"media",
|
|
122
|
+
bytesToBlob(payload.media.content, contentType),
|
|
123
|
+
payload.media.fileName,
|
|
124
|
+
);
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
const path = pathToFunc("/v1/search/intelligence/facial")();
|
|
@@ -176,9 +182,7 @@ async function $do(
|
|
|
176
182
|
|
|
177
183
|
const [result] = await M.match<
|
|
178
184
|
string,
|
|
179
|
-
| errors.
|
|
180
|
-
| errors.SearchFacePaymentRequiredError
|
|
181
|
-
| errors.SearchFaceInternalServerError
|
|
185
|
+
| errors.FailedResponseError
|
|
182
186
|
| IndiciaError
|
|
183
187
|
| ResponseValidationError
|
|
184
188
|
| ConnectionError
|
|
@@ -189,9 +193,8 @@ async function $do(
|
|
|
189
193
|
| SDKValidationError
|
|
190
194
|
>(
|
|
191
195
|
M.text(200, types$.string(), { ctype: "text/event-stream" }),
|
|
192
|
-
M.jsonErr(400, errors.
|
|
193
|
-
M.jsonErr(
|
|
194
|
-
M.jsonErr(500, errors.SearchFaceInternalServerError$inboundSchema),
|
|
196
|
+
M.jsonErr([400, 402], errors.FailedResponseError$inboundSchema),
|
|
197
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
195
198
|
M.fail("4XX"),
|
|
196
199
|
M.fail("5XX"),
|
|
197
200
|
)(response, req, { extraFields: responseFields });
|
|
@@ -40,7 +40,7 @@ export function intelligenceSearchGmail(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchGmailResponse,
|
|
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.SearchGmailResponse,
|
|
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.SearchGmailResponse,
|
|
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.SearchGmailResponse$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 intelligenceSearchHudsonRock(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchHudsonRockResponse,
|
|
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.SearchHudsonRockResponse,
|
|
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.SearchHudsonRockResponse,
|
|
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.SearchHudsonRockResponse$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,7 +40,7 @@ export function intelligenceSearchPerson(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchPersonResponse,
|
|
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.SearchPersonResponse,
|
|
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.SearchPersonResponse,
|
|
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.SearchPersonResponse$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 intelligenceSearchPhone(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchPhoneResponse,
|
|
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.SearchPhoneResponse,
|
|
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.SearchPhoneResponse,
|
|
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.SearchPhoneResponse$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 intelligenceSearchSeon(
|
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
42
42
|
operations.SearchSeonResponse,
|
|
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.SearchSeonResponse,
|
|
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.SearchSeonResponse,
|
|
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.SearchSeonResponse$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 });
|