@indiciaosint/sdk 0.0.1
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/.devcontainer/README.md +30 -0
- package/FUNCTIONS.md +87 -0
- package/README.md +526 -0
- package/RUNTIMES.md +48 -0
- package/docs/sdks/indicia/README.md +3053 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/delete-v1-activity-by-id.d.ts +14 -0
- package/esm/funcs/delete-v1-activity-by-id.d.ts.map +1 -0
- package/esm/funcs/delete-v1-activity-by-id.js +82 -0
- package/esm/funcs/delete-v1-activity-by-id.js.map +1 -0
- package/esm/funcs/get-v1-activity-by-id.d.ts +14 -0
- package/esm/funcs/get-v1-activity-by-id.d.ts.map +1 -0
- package/esm/funcs/get-v1-activity-by-id.js +82 -0
- package/esm/funcs/get-v1-activity-by-id.js.map +1 -0
- package/esm/funcs/get-v1-activity.d.ts +14 -0
- package/esm/funcs/get-v1-activity.d.ts.map +1 -0
- package/esm/funcs/get-v1-activity.js +81 -0
- package/esm/funcs/get-v1-activity.js.map +1 -0
- package/esm/funcs/get-v1-info.d.ts +14 -0
- package/esm/funcs/get-v1-info.d.ts.map +1 -0
- package/esm/funcs/get-v1-info.js +66 -0
- package/esm/funcs/get-v1-info.js.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-audit-log.d.ts +14 -0
- package/esm/funcs/get-v1-organizations-by-id-audit-log.d.ts.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-audit-log.js +87 -0
- package/esm/funcs/get-v1-organizations-by-id-audit-log.js.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-cases.d.ts +14 -0
- package/esm/funcs/get-v1-organizations-by-id-cases.d.ts.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-cases.js +82 -0
- package/esm/funcs/get-v1-organizations-by-id-cases.js.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-members.d.ts +14 -0
- package/esm/funcs/get-v1-organizations-by-id-members.d.ts.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id-members.js +82 -0
- package/esm/funcs/get-v1-organizations-by-id-members.js.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id.d.ts +14 -0
- package/esm/funcs/get-v1-organizations-by-id.d.ts.map +1 -0
- package/esm/funcs/get-v1-organizations-by-id.js +82 -0
- package/esm/funcs/get-v1-organizations-by-id.js.map +1 -0
- package/esm/funcs/get-v1-organizations.d.ts +14 -0
- package/esm/funcs/get-v1-organizations.d.ts.map +1 -0
- package/esm/funcs/get-v1-organizations.js +66 -0
- package/esm/funcs/get-v1-organizations.js.map +1 -0
- package/esm/funcs/get-v1-pricing.d.ts +14 -0
- package/esm/funcs/get-v1-pricing.d.ts.map +1 -0
- package/esm/funcs/get-v1-pricing.js +66 -0
- package/esm/funcs/get-v1-pricing.js.map +1 -0
- package/esm/funcs/post-v1-organizations-by-id-credits.d.ts +14 -0
- package/esm/funcs/post-v1-organizations-by-id-credits.d.ts.map +1 -0
- package/esm/funcs/post-v1-organizations-by-id-credits.js +83 -0
- package/esm/funcs/post-v1-organizations-by-id-credits.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-certificates.d.ts +18 -0
- package/esm/funcs/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-certificates.js +85 -0
- package/esm/funcs/post-v1-search-infrastructure-certificates.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-dns.d.ts +18 -0
- package/esm/funcs/post-v1-search-infrastructure-dns.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-dns.js +84 -0
- package/esm/funcs/post-v1-search-infrastructure-dns.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-ipinfo.d.ts +18 -0
- package/esm/funcs/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-ipinfo.js +84 -0
- package/esm/funcs/post-v1-search-infrastructure-ipinfo.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-portscan.d.ts +144 -0
- package/esm/funcs/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-portscan.js +213 -0
- package/esm/funcs/post-v1-search-infrastructure-portscan.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-shodan.d.ts +18 -0
- package/esm/funcs/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-shodan.js +84 -0
- package/esm/funcs/post-v1-search-infrastructure-shodan.js.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-whois.d.ts +18 -0
- package/esm/funcs/post-v1-search-infrastructure-whois.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-infrastructure-whois.js +84 -0
- package/esm/funcs/post-v1-search-infrastructure-whois.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-address.d.ts +15 -0
- package/esm/funcs/post-v1-search-intelligence-address.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-address.js +81 -0
- package/esm/funcs/post-v1-search-intelligence-address.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-email.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-email.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-email.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-email.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-facial.d.ts +37 -0
- package/esm/funcs/post-v1-search-intelligence-facial.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-facial.js +106 -0
- package/esm/funcs/post-v1-search-intelligence-facial.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-geolocation.d.ts +29 -0
- package/esm/funcs/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-geolocation.js +106 -0
- package/esm/funcs/post-v1-search-intelligence-geolocation.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-gmail.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-gmail.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-gmail.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-gmail.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-hudsonrock.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-hudsonrock.js +85 -0
- package/esm/funcs/post-v1-search-intelligence-hudsonrock.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-person.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-person.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-person.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-person.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-phone.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-phone.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-phone.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-phone.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-seon.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-seon.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-seon.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-seon.js.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-web-dbs.d.ts +18 -0
- package/esm/funcs/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-intelligence-web-dbs.js +84 -0
- package/esm/funcs/post-v1-search-intelligence-web-dbs.js.map +1 -0
- package/esm/funcs/post-v1-search-socials-discord.d.ts +18 -0
- package/esm/funcs/post-v1-search-socials-discord.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-socials-discord.js +84 -0
- package/esm/funcs/post-v1-search-socials-discord.js.map +1 -0
- package/esm/funcs/post-v1-search-socials-github.d.ts +18 -0
- package/esm/funcs/post-v1-search-socials-github.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-socials-github.js +84 -0
- package/esm/funcs/post-v1-search-socials-github.js.map +1 -0
- package/esm/funcs/post-v1-search-socials-roblox.d.ts +18 -0
- package/esm/funcs/post-v1-search-socials-roblox.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-socials-roblox.js +84 -0
- package/esm/funcs/post-v1-search-socials-roblox.js.map +1 -0
- package/esm/funcs/post-v1-search-socials-tiktok.d.ts +18 -0
- package/esm/funcs/post-v1-search-socials-tiktok.d.ts.map +1 -0
- package/esm/funcs/post-v1-search-socials-tiktok.js +84 -0
- package/esm/funcs/post-v1-search-socials-tiktok.js.map +1 -0
- package/esm/funcs/post-v1-tools-doogle.d.ts +18 -0
- package/esm/funcs/post-v1-tools-doogle.d.ts.map +1 -0
- package/esm/funcs/post-v1-tools-doogle.js +84 -0
- package/esm/funcs/post-v1-tools-doogle.js.map +1 -0
- package/esm/funcs/post-v1-tools-doublecounter.d.ts +18 -0
- package/esm/funcs/post-v1-tools-doublecounter.d.ts.map +1 -0
- package/esm/funcs/post-v1-tools-doublecounter.js +84 -0
- package/esm/funcs/post-v1-tools-doublecounter.js.map +1 -0
- package/esm/funcs/post-v1-tools-intelx.d.ts +18 -0
- package/esm/funcs/post-v1-tools-intelx.d.ts.map +1 -0
- package/esm/funcs/post-v1-tools-intelx.js +84 -0
- package/esm/funcs/post-v1-tools-intelx.js.map +1 -0
- package/esm/funcs/post-v2-search-socials-username.d.ts +18 -0
- package/esm/funcs/post-v2-search-socials-username.d.ts.map +1 -0
- package/esm/funcs/post-v2-search-socials-username.js +84 -0
- package/esm/funcs/post-v2-search-socials-username.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +77 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +31 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +27 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +120 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +157 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +294 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +30 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +33 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/indicia-default-error.d.ts +10 -0
- package/esm/models/errors/indicia-default-error.d.ts.map +1 -0
- package/esm/models/errors/indicia-default-error.js +30 -0
- package/esm/models/errors/indicia-default-error.js.map +1 -0
- package/esm/models/errors/indicia-error.d.ts +19 -0
- package/esm/models/errors/indicia-error.d.ts.map +1 -0
- package/esm/models/errors/indicia-error.js +26 -0
- package/esm/models/errors/indicia-error.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-certificates.d.ts +29 -0
- package/esm/models/errors/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-certificates.js +46 -0
- package/esm/models/errors/post-v1-search-infrastructure-certificates.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-dns.d.ts +26 -0
- package/esm/models/errors/post-v1-search-infrastructure-dns.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-dns.js +42 -0
- package/esm/models/errors/post-v1-search-infrastructure-dns.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-ipinfo.d.ts +26 -0
- package/esm/models/errors/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-ipinfo.js +41 -0
- package/esm/models/errors/post-v1-search-infrastructure-ipinfo.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-portscan.d.ts +72 -0
- package/esm/models/errors/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-portscan.js +110 -0
- package/esm/models/errors/post-v1-search-infrastructure-portscan.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-shodan.d.ts +26 -0
- package/esm/models/errors/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-shodan.js +41 -0
- package/esm/models/errors/post-v1-search-infrastructure-shodan.js.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-whois.d.ts +26 -0
- package/esm/models/errors/post-v1-search-infrastructure-whois.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-infrastructure-whois.js +42 -0
- package/esm/models/errors/post-v1-search-infrastructure-whois.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-address.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-address.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-address.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-address.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-email.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-email.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-email.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-email.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-facial.d.ts +72 -0
- package/esm/models/errors/post-v1-search-intelligence-facial.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-facial.js +112 -0
- package/esm/models/errors/post-v1-search-intelligence-facial.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-geolocation.d.ts +72 -0
- package/esm/models/errors/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-geolocation.js +110 -0
- package/esm/models/errors/post-v1-search-intelligence-geolocation.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-gmail.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-gmail.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-gmail.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-gmail.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-hudsonrock.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-hudsonrock.js +41 -0
- package/esm/models/errors/post-v1-search-intelligence-hudsonrock.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-person.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-person.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-person.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-person.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-phone.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-phone.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-phone.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-phone.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-seon.d.ts +26 -0
- package/esm/models/errors/post-v1-search-intelligence-seon.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-seon.js +42 -0
- package/esm/models/errors/post-v1-search-intelligence-seon.js.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-web-dbs.d.ts +49 -0
- package/esm/models/errors/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-intelligence-web-dbs.js +77 -0
- package/esm/models/errors/post-v1-search-intelligence-web-dbs.js.map +1 -0
- package/esm/models/errors/post-v1-search-socials-discord.d.ts +26 -0
- package/esm/models/errors/post-v1-search-socials-discord.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-socials-discord.js +42 -0
- package/esm/models/errors/post-v1-search-socials-discord.js.map +1 -0
- package/esm/models/errors/post-v1-search-socials-github.d.ts +26 -0
- package/esm/models/errors/post-v1-search-socials-github.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-socials-github.js +41 -0
- package/esm/models/errors/post-v1-search-socials-github.js.map +1 -0
- package/esm/models/errors/post-v1-search-socials-roblox.d.ts +26 -0
- package/esm/models/errors/post-v1-search-socials-roblox.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-socials-roblox.js +41 -0
- package/esm/models/errors/post-v1-search-socials-roblox.js.map +1 -0
- package/esm/models/errors/post-v1-search-socials-tiktok.d.ts +26 -0
- package/esm/models/errors/post-v1-search-socials-tiktok.d.ts.map +1 -0
- package/esm/models/errors/post-v1-search-socials-tiktok.js +41 -0
- package/esm/models/errors/post-v1-search-socials-tiktok.js.map +1 -0
- package/esm/models/errors/post-v1-tools-doogle.d.ts +29 -0
- package/esm/models/errors/post-v1-tools-doogle.d.ts.map +1 -0
- package/esm/models/errors/post-v1-tools-doogle.js +46 -0
- package/esm/models/errors/post-v1-tools-doogle.js.map +1 -0
- package/esm/models/errors/post-v1-tools-doublecounter.d.ts +26 -0
- package/esm/models/errors/post-v1-tools-doublecounter.d.ts.map +1 -0
- package/esm/models/errors/post-v1-tools-doublecounter.js +41 -0
- package/esm/models/errors/post-v1-tools-doublecounter.js.map +1 -0
- package/esm/models/errors/post-v1-tools-intelx.d.ts +49 -0
- package/esm/models/errors/post-v1-tools-intelx.d.ts.map +1 -0
- package/esm/models/errors/post-v1-tools-intelx.js +75 -0
- package/esm/models/errors/post-v1-tools-intelx.js.map +1 -0
- package/esm/models/errors/post-v2-search-socials-username.d.ts +26 -0
- package/esm/models/errors/post-v2-search-socials-username.d.ts.map +1 -0
- package/esm/models/errors/post-v2-search-socials-username.js +42 -0
- package/esm/models/errors/post-v2-search-socials-username.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +5 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/operations/delete-v1-activity-by-id.d.ts +15 -0
- package/esm/models/operations/delete-v1-activity-by-id.d.ts.map +1 -0
- package/esm/models/operations/delete-v1-activity-by-id.js +12 -0
- package/esm/models/operations/delete-v1-activity-by-id.js.map +1 -0
- package/esm/models/operations/get-v1-activity-by-id.d.ts +105 -0
- package/esm/models/operations/get-v1-activity-by-id.d.ts.map +1 -0
- package/esm/models/operations/get-v1-activity-by-id.js +107 -0
- package/esm/models/operations/get-v1-activity-by-id.js.map +1 -0
- package/esm/models/operations/get-v1-activity.d.ts +104 -0
- package/esm/models/operations/get-v1-activity.d.ts.map +1 -0
- package/esm/models/operations/get-v1-activity.js +108 -0
- package/esm/models/operations/get-v1-activity.js.map +1 -0
- package/esm/models/operations/get-v1-info.d.ts +136 -0
- package/esm/models/operations/get-v1-info.d.ts.map +1 -0
- package/esm/models/operations/get-v1-info.js +119 -0
- package/esm/models/operations/get-v1-info.js.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-audit-log.d.ts +43 -0
- package/esm/models/operations/get-v1-organizations-by-id-audit-log.d.ts.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-audit-log.js +35 -0
- package/esm/models/operations/get-v1-organizations-by-id-audit-log.js.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-cases.d.ts +38 -0
- package/esm/models/operations/get-v1-organizations-by-id-cases.d.ts.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-cases.js +34 -0
- package/esm/models/operations/get-v1-organizations-by-id-cases.js.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-members.d.ts +39 -0
- package/esm/models/operations/get-v1-organizations-by-id-members.d.ts.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id-members.js +35 -0
- package/esm/models/operations/get-v1-organizations-by-id-members.js.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id.d.ts +41 -0
- package/esm/models/operations/get-v1-organizations-by-id.d.ts.map +1 -0
- package/esm/models/operations/get-v1-organizations-by-id.js +37 -0
- package/esm/models/operations/get-v1-organizations-by-id.js.map +1 -0
- package/esm/models/operations/get-v1-organizations.d.ts +31 -0
- package/esm/models/operations/get-v1-organizations.d.ts.map +1 -0
- package/esm/models/operations/get-v1-organizations.js +30 -0
- package/esm/models/operations/get-v1-organizations.js.map +1 -0
- package/esm/models/operations/get-v1-pricing.d.ts +17 -0
- package/esm/models/operations/get-v1-pricing.d.ts.map +1 -0
- package/esm/models/operations/get-v1-pricing.js +16 -0
- package/esm/models/operations/get-v1-pricing.js.map +1 -0
- package/esm/models/operations/index.d.ts +36 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +39 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/post-v1-organizations-by-id-credits.d.ts +39 -0
- package/esm/models/operations/post-v1-organizations-by-id-credits.d.ts.map +1 -0
- package/esm/models/operations/post-v1-organizations-by-id-credits.js +32 -0
- package/esm/models/operations/post-v1-organizations-by-id-credits.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-certificates.d.ts +53 -0
- package/esm/models/operations/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-certificates.js +78 -0
- package/esm/models/operations/post-v1-search-infrastructure-certificates.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-dns.d.ts +194 -0
- package/esm/models/operations/post-v1-search-infrastructure-dns.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-dns.js +268 -0
- package/esm/models/operations/post-v1-search-infrastructure-dns.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-ipinfo.d.ts +58 -0
- package/esm/models/operations/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-ipinfo.js +57 -0
- package/esm/models/operations/post-v1-search-infrastructure-ipinfo.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-portscan.d.ts +28 -0
- package/esm/models/operations/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-portscan.js +22 -0
- package/esm/models/operations/post-v1-search-infrastructure-portscan.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-shodan.d.ts +215 -0
- package/esm/models/operations/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-shodan.js +271 -0
- package/esm/models/operations/post-v1-search-infrastructure-shodan.js.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-whois.d.ts +97 -0
- package/esm/models/operations/post-v1-search-infrastructure-whois.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-infrastructure-whois.js +123 -0
- package/esm/models/operations/post-v1-search-infrastructure-whois.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-address.d.ts +77 -0
- package/esm/models/operations/post-v1-search-intelligence-address.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-address.js +82 -0
- package/esm/models/operations/post-v1-search-intelligence-address.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-email.d.ts +39 -0
- package/esm/models/operations/post-v1-search-intelligence-email.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-email.js +38 -0
- package/esm/models/operations/post-v1-search-intelligence-email.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-facial.d.ts +12 -0
- package/esm/models/operations/post-v1-search-intelligence-facial.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-facial.js +12 -0
- package/esm/models/operations/post-v1-search-intelligence-facial.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-geolocation.d.ts +24 -0
- package/esm/models/operations/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-geolocation.js +20 -0
- package/esm/models/operations/post-v1-search-intelligence-geolocation.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-gmail.d.ts +196 -0
- package/esm/models/operations/post-v1-search-intelligence-gmail.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-gmail.js +214 -0
- package/esm/models/operations/post-v1-search-intelligence-gmail.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-hudsonrock.d.ts +265 -0
- package/esm/models/operations/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-hudsonrock.js +355 -0
- package/esm/models/operations/post-v1-search-intelligence-hudsonrock.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-person.d.ts +74 -0
- package/esm/models/operations/post-v1-search-intelligence-person.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-person.js +81 -0
- package/esm/models/operations/post-v1-search-intelligence-person.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-phone.d.ts +111 -0
- package/esm/models/operations/post-v1-search-intelligence-phone.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-phone.js +154 -0
- package/esm/models/operations/post-v1-search-intelligence-phone.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-seon.d.ts +413 -0
- package/esm/models/operations/post-v1-search-intelligence-seon.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-seon.js +598 -0
- package/esm/models/operations/post-v1-search-intelligence-seon.js.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-web-dbs.d.ts +581 -0
- package/esm/models/operations/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-intelligence-web-dbs.js +736 -0
- package/esm/models/operations/post-v1-search-intelligence-web-dbs.js.map +1 -0
- package/esm/models/operations/post-v1-search-socials-discord.d.ts +243 -0
- package/esm/models/operations/post-v1-search-socials-discord.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-socials-discord.js +264 -0
- package/esm/models/operations/post-v1-search-socials-discord.js.map +1 -0
- package/esm/models/operations/post-v1-search-socials-github.d.ts +48 -0
- package/esm/models/operations/post-v1-search-socials-github.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-socials-github.js +52 -0
- package/esm/models/operations/post-v1-search-socials-github.js.map +1 -0
- package/esm/models/operations/post-v1-search-socials-roblox.d.ts +119 -0
- package/esm/models/operations/post-v1-search-socials-roblox.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-socials-roblox.js +118 -0
- package/esm/models/operations/post-v1-search-socials-roblox.js.map +1 -0
- package/esm/models/operations/post-v1-search-socials-tiktok.d.ts +389 -0
- package/esm/models/operations/post-v1-search-socials-tiktok.d.ts.map +1 -0
- package/esm/models/operations/post-v1-search-socials-tiktok.js +617 -0
- package/esm/models/operations/post-v1-search-socials-tiktok.js.map +1 -0
- package/esm/models/operations/post-v1-tools-doogle.d.ts +97 -0
- package/esm/models/operations/post-v1-tools-doogle.d.ts.map +1 -0
- package/esm/models/operations/post-v1-tools-doogle.js +103 -0
- package/esm/models/operations/post-v1-tools-doogle.js.map +1 -0
- package/esm/models/operations/post-v1-tools-doublecounter.d.ts +24 -0
- package/esm/models/operations/post-v1-tools-doublecounter.d.ts.map +1 -0
- package/esm/models/operations/post-v1-tools-doublecounter.js +22 -0
- package/esm/models/operations/post-v1-tools-doublecounter.js.map +1 -0
- package/esm/models/operations/post-v1-tools-intelx.d.ts +88 -0
- package/esm/models/operations/post-v1-tools-intelx.d.ts.map +1 -0
- package/esm/models/operations/post-v1-tools-intelx.js +82 -0
- package/esm/models/operations/post-v1-tools-intelx.js.map +1 -0
- package/esm/models/operations/post-v2-search-socials-username.d.ts +282 -0
- package/esm/models/operations/post-v2-search-socials-username.d.ts.map +1 -0
- package/esm/models/operations/post-v2-search-socials-username.js +416 -0
- package/esm/models/operations/post-v2-search-socials-username.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +17 -0
- package/esm/models/security.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/sdk.d.ts +370 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +478 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/README.md +31 -0
- package/examples/getV1Info.example.ts +26 -0
- package/examples/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/examples/node_modules/@types/node/LICENSE +21 -0
- package/examples/node_modules/@types/node/README.md +15 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2712 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1031 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1698 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/LICENSE +23 -0
- package/examples/node_modules/dotenv/README.md +645 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/LICENSE.md +21 -0
- package/examples/node_modules/esbuild/README.md +3 -0
- package/examples/node_modules/esbuild/install.js +300 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2532 -0
- package/examples/node_modules/fsevents/LICENSE +22 -0
- package/examples/node_modules/fsevents/README.md +89 -0
- package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
- package/examples/node_modules/fsevents/fsevents.js +83 -0
- package/examples/node_modules/tsx/LICENSE +21 -0
- package/examples/node_modules/tsx/README.md +32 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
- package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/LICENSE +21 -0
- package/examples/node_modules/undici-types/README.md +6 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/jsr.json +27 -0
- package/package.json +59 -0
- package/src/core.ts +13 -0
- package/src/funcs/delete-v1-activity-by-id.ts +166 -0
- package/src/funcs/get-v1-activity-by-id.ts +166 -0
- package/src/funcs/get-v1-activity.ts +169 -0
- package/src/funcs/get-v1-info.ts +141 -0
- package/src/funcs/get-v1-organizations-by-id-audit-log.ts +178 -0
- package/src/funcs/get-v1-organizations-by-id-cases.ts +169 -0
- package/src/funcs/get-v1-organizations-by-id-members.ts +169 -0
- package/src/funcs/get-v1-organizations-by-id.ts +166 -0
- package/src/funcs/get-v1-organizations.ts +141 -0
- package/src/funcs/get-v1-pricing.ts +141 -0
- package/src/funcs/post-v1-organizations-by-id-credits.ts +173 -0
- package/src/funcs/post-v1-search-infrastructure-certificates.ts +183 -0
- package/src/funcs/post-v1-search-infrastructure-dns.ts +179 -0
- package/src/funcs/post-v1-search-infrastructure-ipinfo.ts +182 -0
- package/src/funcs/post-v1-search-infrastructure-portscan.ts +322 -0
- package/src/funcs/post-v1-search-infrastructure-shodan.ts +182 -0
- package/src/funcs/post-v1-search-infrastructure-whois.ts +182 -0
- package/src/funcs/post-v1-search-intelligence-address.ts +179 -0
- package/src/funcs/post-v1-search-intelligence-email.ts +179 -0
- package/src/funcs/post-v1-search-intelligence-facial.ts +216 -0
- package/src/funcs/post-v1-search-intelligence-geolocation.ts +216 -0
- package/src/funcs/post-v1-search-intelligence-gmail.ts +179 -0
- package/src/funcs/post-v1-search-intelligence-hudsonrock.ts +183 -0
- package/src/funcs/post-v1-search-intelligence-person.ts +182 -0
- package/src/funcs/post-v1-search-intelligence-phone.ts +179 -0
- package/src/funcs/post-v1-search-intelligence-seon.ts +179 -0
- package/src/funcs/post-v1-search-intelligence-web-dbs.ts +189 -0
- package/src/funcs/post-v1-search-socials-discord.ts +179 -0
- package/src/funcs/post-v1-search-socials-github.ts +179 -0
- package/src/funcs/post-v1-search-socials-roblox.ts +179 -0
- package/src/funcs/post-v1-search-socials-tiktok.ts +179 -0
- package/src/funcs/post-v1-tools-doogle.ts +173 -0
- package/src/funcs/post-v1-tools-doublecounter.ts +176 -0
- package/src/funcs/post-v1-tools-intelx.ts +177 -0
- package/src/funcs/post-v2-search-socials-username.ts +179 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +108 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +64 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/env.ts +61 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +166 -0
- package/src/lib/retries.ts +226 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +442 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +33 -0
- package/src/models/errors/indicia-default-error.ts +40 -0
- package/src/models/errors/indicia-error.ts +35 -0
- package/src/models/errors/post-v1-search-infrastructure-certificates.ts +79 -0
- package/src/models/errors/post-v1-search-infrastructure-dns.ts +63 -0
- package/src/models/errors/post-v1-search-infrastructure-ipinfo.ts +63 -0
- package/src/models/errors/post-v1-search-infrastructure-portscan.ts +179 -0
- package/src/models/errors/post-v1-search-infrastructure-shodan.ts +63 -0
- package/src/models/errors/post-v1-search-infrastructure-whois.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-address.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-email.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-facial.ts +175 -0
- package/src/models/errors/post-v1-search-intelligence-geolocation.ts +179 -0
- package/src/models/errors/post-v1-search-intelligence-gmail.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-hudsonrock.ts +65 -0
- package/src/models/errors/post-v1-search-intelligence-person.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-phone.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-seon.ts +63 -0
- package/src/models/errors/post-v1-search-intelligence-web-dbs.ts +119 -0
- package/src/models/errors/post-v1-search-socials-discord.ts +63 -0
- package/src/models/errors/post-v1-search-socials-github.ts +60 -0
- package/src/models/errors/post-v1-search-socials-roblox.ts +60 -0
- package/src/models/errors/post-v1-search-socials-tiktok.ts +60 -0
- package/src/models/errors/post-v1-tools-doogle.ts +71 -0
- package/src/models/errors/post-v1-tools-doublecounter.ts +60 -0
- package/src/models/errors/post-v1-tools-intelx.ts +117 -0
- package/src/models/errors/post-v2-search-socials-username.ts +63 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/index.ts +5 -0
- package/src/models/operations/delete-v1-activity-by-id.ts +35 -0
- package/src/models/operations/get-v1-activity-by-id.ts +218 -0
- package/src/models/operations/get-v1-activity.ts +218 -0
- package/src/models/operations/get-v1-info.ts +230 -0
- package/src/models/operations/get-v1-organizations-by-id-audit-log.ts +99 -0
- package/src/models/operations/get-v1-organizations-by-id-cases.ts +96 -0
- package/src/models/operations/get-v1-organizations-by-id-members.ts +98 -0
- package/src/models/operations/get-v1-organizations-by-id.ts +105 -0
- package/src/models/operations/get-v1-organizations.ts +79 -0
- package/src/models/operations/get-v1-pricing.ts +38 -0
- package/src/models/operations/index.ts +39 -0
- package/src/models/operations/post-v1-organizations-by-id-credits.ts +102 -0
- package/src/models/operations/post-v1-search-infrastructure-certificates.ts +189 -0
- package/src/models/operations/post-v1-search-infrastructure-dns.ts +609 -0
- package/src/models/operations/post-v1-search-infrastructure-ipinfo.ts +147 -0
- package/src/models/operations/post-v1-search-infrastructure-portscan.ts +62 -0
- package/src/models/operations/post-v1-search-infrastructure-shodan.ts +647 -0
- package/src/models/operations/post-v1-search-infrastructure-whois.ts +313 -0
- package/src/models/operations/post-v1-search-intelligence-address.ts +217 -0
- package/src/models/operations/post-v1-search-intelligence-email.ts +104 -0
- package/src/models/operations/post-v1-search-intelligence-facial.ts +33 -0
- package/src/models/operations/post-v1-search-intelligence-geolocation.ts +50 -0
- package/src/models/operations/post-v1-search-intelligence-gmail.ts +565 -0
- package/src/models/operations/post-v1-search-intelligence-hudsonrock.ts +882 -0
- package/src/models/operations/post-v1-search-intelligence-person.ts +206 -0
- package/src/models/operations/post-v1-search-intelligence-phone.ts +366 -0
- package/src/models/operations/post-v1-search-intelligence-seon.ts +1384 -0
- package/src/models/operations/post-v1-search-intelligence-web-dbs.ts +1652 -0
- package/src/models/operations/post-v1-search-socials-discord.ts +678 -0
- package/src/models/operations/post-v1-search-socials-github.ts +127 -0
- package/src/models/operations/post-v1-search-socials-roblox.ts +312 -0
- package/src/models/operations/post-v1-search-socials-tiktok.ts +1449 -0
- package/src/models/operations/post-v1-tools-doogle.ts +282 -0
- package/src/models/operations/post-v1-tools-doublecounter.ts +63 -0
- package/src/models/operations/post-v1-tools-intelx.ts +157 -0
- package/src/models/operations/post-v2-search-socials-username.ts +870 -0
- package/src/models/security.ts +34 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +753 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
declare module "buffer" {
|
|
2
|
+
type ImplicitArrayBuffer<T extends WithImplicitCoercion<ArrayBufferLike>> = T extends
|
|
3
|
+
{ valueOf(): infer V extends ArrayBufferLike } ? V : T;
|
|
4
|
+
global {
|
|
5
|
+
interface BufferConstructor {
|
|
6
|
+
// see buffer.d.ts for implementation shared with all TypeScript versions
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Allocates a new buffer containing the given {str}.
|
|
10
|
+
*
|
|
11
|
+
* @param str String to store in buffer.
|
|
12
|
+
* @param encoding encoding to use, optional. Default is 'utf8'
|
|
13
|
+
* @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
|
|
14
|
+
*/
|
|
15
|
+
new(str: string, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
|
|
16
|
+
/**
|
|
17
|
+
* Allocates a new buffer of {size} octets.
|
|
18
|
+
*
|
|
19
|
+
* @param size count of octets to allocate.
|
|
20
|
+
* @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
|
|
21
|
+
*/
|
|
22
|
+
new(size: number): Buffer<ArrayBuffer>;
|
|
23
|
+
/**
|
|
24
|
+
* Allocates a new buffer containing the given {array} of octets.
|
|
25
|
+
*
|
|
26
|
+
* @param array The octets to store.
|
|
27
|
+
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
28
|
+
*/
|
|
29
|
+
new(array: ArrayLike<number>): Buffer<ArrayBuffer>;
|
|
30
|
+
/**
|
|
31
|
+
* Produces a Buffer backed by the same allocated memory as
|
|
32
|
+
* the given {ArrayBuffer}/{SharedArrayBuffer}.
|
|
33
|
+
*
|
|
34
|
+
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
35
|
+
* @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
|
|
36
|
+
*/
|
|
37
|
+
new<TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(arrayBuffer: TArrayBuffer): Buffer<TArrayBuffer>;
|
|
38
|
+
/**
|
|
39
|
+
* Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
|
|
40
|
+
* Array entries outside that range will be truncated to fit into it.
|
|
41
|
+
*
|
|
42
|
+
* ```js
|
|
43
|
+
* import { Buffer } from 'node:buffer';
|
|
44
|
+
*
|
|
45
|
+
* // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
|
|
46
|
+
* const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* If `array` is an `Array`-like object (that is, one with a `length` property of
|
|
50
|
+
* type `number`), it is treated as if it is an array, unless it is a `Buffer` or
|
|
51
|
+
* a `Uint8Array`. This means all other `TypedArray` variants get treated as an
|
|
52
|
+
* `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use
|
|
53
|
+
* `Buffer.copyBytesFrom()`.
|
|
54
|
+
*
|
|
55
|
+
* A `TypeError` will be thrown if `array` is not an `Array` or another type
|
|
56
|
+
* appropriate for `Buffer.from()` variants.
|
|
57
|
+
*
|
|
58
|
+
* `Buffer.from(array)` and `Buffer.from(string)` may also use the internal
|
|
59
|
+
* `Buffer` pool like `Buffer.allocUnsafe()` does.
|
|
60
|
+
* @since v5.10.0
|
|
61
|
+
*/
|
|
62
|
+
from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer<ArrayBuffer>;
|
|
63
|
+
/**
|
|
64
|
+
* This creates a view of the `ArrayBuffer` without copying the underlying
|
|
65
|
+
* memory. For example, when passed a reference to the `.buffer` property of a
|
|
66
|
+
* `TypedArray` instance, the newly created `Buffer` will share the same
|
|
67
|
+
* allocated memory as the `TypedArray`'s underlying `ArrayBuffer`.
|
|
68
|
+
*
|
|
69
|
+
* ```js
|
|
70
|
+
* import { Buffer } from 'node:buffer';
|
|
71
|
+
*
|
|
72
|
+
* const arr = new Uint16Array(2);
|
|
73
|
+
*
|
|
74
|
+
* arr[0] = 5000;
|
|
75
|
+
* arr[1] = 4000;
|
|
76
|
+
*
|
|
77
|
+
* // Shares memory with `arr`.
|
|
78
|
+
* const buf = Buffer.from(arr.buffer);
|
|
79
|
+
*
|
|
80
|
+
* console.log(buf);
|
|
81
|
+
* // Prints: <Buffer 88 13 a0 0f>
|
|
82
|
+
*
|
|
83
|
+
* // Changing the original Uint16Array changes the Buffer also.
|
|
84
|
+
* arr[1] = 6000;
|
|
85
|
+
*
|
|
86
|
+
* console.log(buf);
|
|
87
|
+
* // Prints: <Buffer 88 13 70 17>
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* The optional `byteOffset` and `length` arguments specify a memory range within
|
|
91
|
+
* the `arrayBuffer` that will be shared by the `Buffer`.
|
|
92
|
+
*
|
|
93
|
+
* ```js
|
|
94
|
+
* import { Buffer } from 'node:buffer';
|
|
95
|
+
*
|
|
96
|
+
* const ab = new ArrayBuffer(10);
|
|
97
|
+
* const buf = Buffer.from(ab, 0, 2);
|
|
98
|
+
*
|
|
99
|
+
* console.log(buf.length);
|
|
100
|
+
* // Prints: 2
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a
|
|
104
|
+
* `SharedArrayBuffer` or another type appropriate for `Buffer.from()`
|
|
105
|
+
* variants.
|
|
106
|
+
*
|
|
107
|
+
* It is important to remember that a backing `ArrayBuffer` can cover a range
|
|
108
|
+
* of memory that extends beyond the bounds of a `TypedArray` view. A new
|
|
109
|
+
* `Buffer` created using the `buffer` property of a `TypedArray` may extend
|
|
110
|
+
* beyond the range of the `TypedArray`:
|
|
111
|
+
*
|
|
112
|
+
* ```js
|
|
113
|
+
* import { Buffer } from 'node:buffer';
|
|
114
|
+
*
|
|
115
|
+
* const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements
|
|
116
|
+
* const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements
|
|
117
|
+
* console.log(arrA.buffer === arrB.buffer); // true
|
|
118
|
+
*
|
|
119
|
+
* const buf = Buffer.from(arrB.buffer);
|
|
120
|
+
* console.log(buf);
|
|
121
|
+
* // Prints: <Buffer 63 64 65 66>
|
|
122
|
+
* ```
|
|
123
|
+
* @since v5.10.0
|
|
124
|
+
* @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the
|
|
125
|
+
* `.buffer` property of a `TypedArray`.
|
|
126
|
+
* @param byteOffset Index of first byte to expose. **Default:** `0`.
|
|
127
|
+
* @param length Number of bytes to expose. **Default:**
|
|
128
|
+
* `arrayBuffer.byteLength - byteOffset`.
|
|
129
|
+
*/
|
|
130
|
+
from<TArrayBuffer extends WithImplicitCoercion<ArrayBufferLike>>(
|
|
131
|
+
arrayBuffer: TArrayBuffer,
|
|
132
|
+
byteOffset?: number,
|
|
133
|
+
length?: number,
|
|
134
|
+
): Buffer<ImplicitArrayBuffer<TArrayBuffer>>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new `Buffer` containing `string`. The `encoding` parameter identifies
|
|
137
|
+
* the character encoding to be used when converting `string` into bytes.
|
|
138
|
+
*
|
|
139
|
+
* ```js
|
|
140
|
+
* import { Buffer } from 'node:buffer';
|
|
141
|
+
*
|
|
142
|
+
* const buf1 = Buffer.from('this is a tést');
|
|
143
|
+
* const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
|
|
144
|
+
*
|
|
145
|
+
* console.log(buf1.toString());
|
|
146
|
+
* // Prints: this is a tést
|
|
147
|
+
* console.log(buf2.toString());
|
|
148
|
+
* // Prints: this is a tést
|
|
149
|
+
* console.log(buf1.toString('latin1'));
|
|
150
|
+
* // Prints: this is a tést
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* A `TypeError` will be thrown if `string` is not a string or another type
|
|
154
|
+
* appropriate for `Buffer.from()` variants.
|
|
155
|
+
*
|
|
156
|
+
* `Buffer.from(string)` may also use the internal `Buffer` pool like
|
|
157
|
+
* `Buffer.allocUnsafe()` does.
|
|
158
|
+
* @since v5.10.0
|
|
159
|
+
* @param string A string to encode.
|
|
160
|
+
* @param encoding The encoding of `string`. **Default:** `'utf8'`.
|
|
161
|
+
*/
|
|
162
|
+
from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
|
|
163
|
+
from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer<ArrayBuffer>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new Buffer using the passed {data}
|
|
166
|
+
* @param values to create a new Buffer
|
|
167
|
+
*/
|
|
168
|
+
of(...items: number[]): Buffer<ArrayBuffer>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together.
|
|
171
|
+
*
|
|
172
|
+
* If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned.
|
|
173
|
+
*
|
|
174
|
+
* If `totalLength` is not provided, it is calculated from the `Buffer` instances
|
|
175
|
+
* in `list` by adding their lengths.
|
|
176
|
+
*
|
|
177
|
+
* If `totalLength` is provided, it is coerced to an unsigned integer. If the
|
|
178
|
+
* combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
|
|
179
|
+
* truncated to `totalLength`.
|
|
180
|
+
*
|
|
181
|
+
* ```js
|
|
182
|
+
* import { Buffer } from 'node:buffer';
|
|
183
|
+
*
|
|
184
|
+
* // Create a single `Buffer` from a list of three `Buffer` instances.
|
|
185
|
+
*
|
|
186
|
+
* const buf1 = Buffer.alloc(10);
|
|
187
|
+
* const buf2 = Buffer.alloc(14);
|
|
188
|
+
* const buf3 = Buffer.alloc(18);
|
|
189
|
+
* const totalLength = buf1.length + buf2.length + buf3.length;
|
|
190
|
+
*
|
|
191
|
+
* console.log(totalLength);
|
|
192
|
+
* // Prints: 42
|
|
193
|
+
*
|
|
194
|
+
* const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
|
|
195
|
+
*
|
|
196
|
+
* console.log(bufA);
|
|
197
|
+
* // Prints: <Buffer 00 00 00 00 ...>
|
|
198
|
+
* console.log(bufA.length);
|
|
199
|
+
* // Prints: 42
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
|
|
203
|
+
* @since v0.7.11
|
|
204
|
+
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
|
205
|
+
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
206
|
+
*/
|
|
207
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer<ArrayBuffer>;
|
|
208
|
+
/**
|
|
209
|
+
* Copies the underlying memory of `view` into a new `Buffer`.
|
|
210
|
+
*
|
|
211
|
+
* ```js
|
|
212
|
+
* const u16 = new Uint16Array([0, 0xffff]);
|
|
213
|
+
* const buf = Buffer.copyBytesFrom(u16, 1, 1);
|
|
214
|
+
* u16[1] = 0;
|
|
215
|
+
* console.log(buf.length); // 2
|
|
216
|
+
* console.log(buf[0]); // 255
|
|
217
|
+
* console.log(buf[1]); // 255
|
|
218
|
+
* ```
|
|
219
|
+
* @since v19.8.0
|
|
220
|
+
* @param view The {TypedArray} to copy.
|
|
221
|
+
* @param [offset=0] The starting offset within `view`.
|
|
222
|
+
* @param [length=view.length - offset] The number of elements from `view` to copy.
|
|
223
|
+
*/
|
|
224
|
+
copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer<ArrayBuffer>;
|
|
225
|
+
/**
|
|
226
|
+
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
|
227
|
+
*
|
|
228
|
+
* ```js
|
|
229
|
+
* import { Buffer } from 'node:buffer';
|
|
230
|
+
*
|
|
231
|
+
* const buf = Buffer.alloc(5);
|
|
232
|
+
*
|
|
233
|
+
* console.log(buf);
|
|
234
|
+
* // Prints: <Buffer 00 00 00 00 00>
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
238
|
+
*
|
|
239
|
+
* If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
|
|
240
|
+
*
|
|
241
|
+
* ```js
|
|
242
|
+
* import { Buffer } from 'node:buffer';
|
|
243
|
+
*
|
|
244
|
+
* const buf = Buffer.alloc(5, 'a');
|
|
245
|
+
*
|
|
246
|
+
* console.log(buf);
|
|
247
|
+
* // Prints: <Buffer 61 61 61 61 61>
|
|
248
|
+
* ```
|
|
249
|
+
*
|
|
250
|
+
* If both `fill` and `encoding` are specified, the allocated `Buffer` will be
|
|
251
|
+
* initialized by calling `buf.fill(fill, encoding)`.
|
|
252
|
+
*
|
|
253
|
+
* ```js
|
|
254
|
+
* import { Buffer } from 'node:buffer';
|
|
255
|
+
*
|
|
256
|
+
* const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
|
|
257
|
+
*
|
|
258
|
+
* console.log(buf);
|
|
259
|
+
* // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
|
|
263
|
+
* contents will never contain sensitive data from previous allocations, including
|
|
264
|
+
* data that might not have been allocated for `Buffer`s.
|
|
265
|
+
*
|
|
266
|
+
* A `TypeError` will be thrown if `size` is not a number.
|
|
267
|
+
* @since v5.10.0
|
|
268
|
+
* @param size The desired length of the new `Buffer`.
|
|
269
|
+
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
|
270
|
+
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
|
271
|
+
*/
|
|
272
|
+
alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
|
|
273
|
+
/**
|
|
274
|
+
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
275
|
+
*
|
|
276
|
+
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
277
|
+
* _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
|
|
278
|
+
*
|
|
279
|
+
* ```js
|
|
280
|
+
* import { Buffer } from 'node:buffer';
|
|
281
|
+
*
|
|
282
|
+
* const buf = Buffer.allocUnsafe(10);
|
|
283
|
+
*
|
|
284
|
+
* console.log(buf);
|
|
285
|
+
* // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
|
|
286
|
+
*
|
|
287
|
+
* buf.fill(0);
|
|
288
|
+
*
|
|
289
|
+
* console.log(buf);
|
|
290
|
+
* // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
|
|
291
|
+
* ```
|
|
292
|
+
*
|
|
293
|
+
* A `TypeError` will be thrown if `size` is not a number.
|
|
294
|
+
*
|
|
295
|
+
* The `Buffer` module pre-allocates an internal `Buffer` instance of
|
|
296
|
+
* size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`,
|
|
297
|
+
* and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two).
|
|
298
|
+
*
|
|
299
|
+
* Use of this pre-allocated internal memory pool is a key difference between
|
|
300
|
+
* calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
|
|
301
|
+
* Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
|
|
302
|
+
* than or equal to half `Buffer.poolSize`. The
|
|
303
|
+
* difference is subtle but can be important when an application requires the
|
|
304
|
+
* additional performance that `Buffer.allocUnsafe()` provides.
|
|
305
|
+
* @since v5.10.0
|
|
306
|
+
* @param size The desired length of the new `Buffer`.
|
|
307
|
+
*/
|
|
308
|
+
allocUnsafe(size: number): Buffer<ArrayBuffer>;
|
|
309
|
+
/**
|
|
310
|
+
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if
|
|
311
|
+
* `size` is 0.
|
|
312
|
+
*
|
|
313
|
+
* The underlying memory for `Buffer` instances created in this way is _not_
|
|
314
|
+
* _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize
|
|
315
|
+
* such `Buffer` instances with zeroes.
|
|
316
|
+
*
|
|
317
|
+
* When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
|
|
318
|
+
* allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
|
|
319
|
+
* allows applications to avoid the garbage collection overhead of creating many
|
|
320
|
+
* individually allocated `Buffer` instances. This approach improves both
|
|
321
|
+
* performance and memory usage by eliminating the need to track and clean up as
|
|
322
|
+
* many individual `ArrayBuffer` objects.
|
|
323
|
+
*
|
|
324
|
+
* However, in the case where a developer may need to retain a small chunk of
|
|
325
|
+
* memory from a pool for an indeterminate amount of time, it may be appropriate
|
|
326
|
+
* to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
|
|
327
|
+
* then copying out the relevant bits.
|
|
328
|
+
*
|
|
329
|
+
* ```js
|
|
330
|
+
* import { Buffer } from 'node:buffer';
|
|
331
|
+
*
|
|
332
|
+
* // Need to keep around a few small chunks of memory.
|
|
333
|
+
* const store = [];
|
|
334
|
+
*
|
|
335
|
+
* socket.on('readable', () => {
|
|
336
|
+
* let data;
|
|
337
|
+
* while (null !== (data = readable.read())) {
|
|
338
|
+
* // Allocate for retained data.
|
|
339
|
+
* const sb = Buffer.allocUnsafeSlow(10);
|
|
340
|
+
*
|
|
341
|
+
* // Copy the data into the new allocation.
|
|
342
|
+
* data.copy(sb, 0, 0, 10);
|
|
343
|
+
*
|
|
344
|
+
* store.push(sb);
|
|
345
|
+
* }
|
|
346
|
+
* });
|
|
347
|
+
* ```
|
|
348
|
+
*
|
|
349
|
+
* A `TypeError` will be thrown if `size` is not a number.
|
|
350
|
+
* @since v5.12.0
|
|
351
|
+
* @param size The desired length of the new `Buffer`.
|
|
352
|
+
*/
|
|
353
|
+
allocUnsafeSlow(size: number): Buffer<ArrayBuffer>;
|
|
354
|
+
}
|
|
355
|
+
interface Buffer<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> extends Uint8Array<TArrayBuffer> {
|
|
356
|
+
// see buffer.d.ts for implementation shared with all TypeScript versions
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Returns a new `Buffer` that references the same memory as the original, but
|
|
360
|
+
* offset and cropped by the `start` and `end` indices.
|
|
361
|
+
*
|
|
362
|
+
* This method is not compatible with the `Uint8Array.prototype.slice()`,
|
|
363
|
+
* which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
|
|
364
|
+
*
|
|
365
|
+
* ```js
|
|
366
|
+
* import { Buffer } from 'node:buffer';
|
|
367
|
+
*
|
|
368
|
+
* const buf = Buffer.from('buffer');
|
|
369
|
+
*
|
|
370
|
+
* const copiedBuf = Uint8Array.prototype.slice.call(buf);
|
|
371
|
+
* copiedBuf[0]++;
|
|
372
|
+
* console.log(copiedBuf.toString());
|
|
373
|
+
* // Prints: cuffer
|
|
374
|
+
*
|
|
375
|
+
* console.log(buf.toString());
|
|
376
|
+
* // Prints: buffer
|
|
377
|
+
*
|
|
378
|
+
* // With buf.slice(), the original buffer is modified.
|
|
379
|
+
* const notReallyCopiedBuf = buf.slice();
|
|
380
|
+
* notReallyCopiedBuf[0]++;
|
|
381
|
+
* console.log(notReallyCopiedBuf.toString());
|
|
382
|
+
* // Prints: cuffer
|
|
383
|
+
* console.log(buf.toString());
|
|
384
|
+
* // Also prints: cuffer (!)
|
|
385
|
+
* ```
|
|
386
|
+
* @since v0.3.0
|
|
387
|
+
* @deprecated Use `subarray` instead.
|
|
388
|
+
* @param [start=0] Where the new `Buffer` will start.
|
|
389
|
+
* @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
|
|
390
|
+
*/
|
|
391
|
+
slice(start?: number, end?: number): Buffer<ArrayBuffer>;
|
|
392
|
+
/**
|
|
393
|
+
* Returns a new `Buffer` that references the same memory as the original, but
|
|
394
|
+
* offset and cropped by the `start` and `end` indices.
|
|
395
|
+
*
|
|
396
|
+
* Specifying `end` greater than `buf.length` will return the same result as
|
|
397
|
+
* that of `end` equal to `buf.length`.
|
|
398
|
+
*
|
|
399
|
+
* This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
|
|
400
|
+
*
|
|
401
|
+
* Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
|
|
402
|
+
*
|
|
403
|
+
* ```js
|
|
404
|
+
* import { Buffer } from 'node:buffer';
|
|
405
|
+
*
|
|
406
|
+
* // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
|
|
407
|
+
* // from the original `Buffer`.
|
|
408
|
+
*
|
|
409
|
+
* const buf1 = Buffer.allocUnsafe(26);
|
|
410
|
+
*
|
|
411
|
+
* for (let i = 0; i < 26; i++) {
|
|
412
|
+
* // 97 is the decimal ASCII value for 'a'.
|
|
413
|
+
* buf1[i] = i + 97;
|
|
414
|
+
* }
|
|
415
|
+
*
|
|
416
|
+
* const buf2 = buf1.subarray(0, 3);
|
|
417
|
+
*
|
|
418
|
+
* console.log(buf2.toString('ascii', 0, buf2.length));
|
|
419
|
+
* // Prints: abc
|
|
420
|
+
*
|
|
421
|
+
* buf1[0] = 33;
|
|
422
|
+
*
|
|
423
|
+
* console.log(buf2.toString('ascii', 0, buf2.length));
|
|
424
|
+
* // Prints: !bc
|
|
425
|
+
* ```
|
|
426
|
+
*
|
|
427
|
+
* Specifying negative indexes causes the slice to be generated relative to the
|
|
428
|
+
* end of `buf` rather than the beginning.
|
|
429
|
+
*
|
|
430
|
+
* ```js
|
|
431
|
+
* import { Buffer } from 'node:buffer';
|
|
432
|
+
*
|
|
433
|
+
* const buf = Buffer.from('buffer');
|
|
434
|
+
*
|
|
435
|
+
* console.log(buf.subarray(-6, -1).toString());
|
|
436
|
+
* // Prints: buffe
|
|
437
|
+
* // (Equivalent to buf.subarray(0, 5).)
|
|
438
|
+
*
|
|
439
|
+
* console.log(buf.subarray(-6, -2).toString());
|
|
440
|
+
* // Prints: buff
|
|
441
|
+
* // (Equivalent to buf.subarray(0, 4).)
|
|
442
|
+
*
|
|
443
|
+
* console.log(buf.subarray(-5, -2).toString());
|
|
444
|
+
* // Prints: uff
|
|
445
|
+
* // (Equivalent to buf.subarray(1, 4).)
|
|
446
|
+
* ```
|
|
447
|
+
* @since v3.0.0
|
|
448
|
+
* @param [start=0] Where the new `Buffer` will start.
|
|
449
|
+
* @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
|
|
450
|
+
*/
|
|
451
|
+
subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
|
|
452
|
+
}
|
|
453
|
+
// TODO: remove globals in future version
|
|
454
|
+
/**
|
|
455
|
+
* @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
|
|
456
|
+
* TypeScript versions earlier than 5.7.
|
|
457
|
+
*/
|
|
458
|
+
type NonSharedBuffer = Buffer<ArrayBuffer>;
|
|
459
|
+
/**
|
|
460
|
+
* @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
|
|
461
|
+
* TypeScript versions earlier than 5.7.
|
|
462
|
+
*/
|
|
463
|
+
type AllowSharedBuffer = Buffer<ArrayBufferLike>;
|
|
464
|
+
}
|
|
465
|
+
/** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
|
|
466
|
+
var SlowBuffer: {
|
|
467
|
+
/** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
|
|
468
|
+
new(size: number): Buffer<ArrayBuffer>;
|
|
469
|
+
prototype: Buffer;
|
|
470
|
+
};
|
|
471
|
+
}
|