@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,1449 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
14
|
+
|
|
15
|
+
export type PostV1SearchSocialsTiktokRequest = {
|
|
16
|
+
query: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type GeoIndicators = {
|
|
20
|
+
top10LanguagesInDescription: Array<string>;
|
|
21
|
+
top10RegionsFromVideos: Array<string>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type PerformanceByDay = {
|
|
25
|
+
avgViews: number;
|
|
26
|
+
posts: number;
|
|
27
|
+
totalEngagement: number;
|
|
28
|
+
totalViews: number;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type PerformanceByHour = {
|
|
32
|
+
avgViews: number;
|
|
33
|
+
posts: number;
|
|
34
|
+
totalEngagement: number;
|
|
35
|
+
totalViews: number;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type PostingFrequency = {
|
|
39
|
+
averagePostsPerWeek?: number | undefined;
|
|
40
|
+
postingConsistencyScore?: number | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type PostingSchedule = {
|
|
44
|
+
mostActiveDay: string;
|
|
45
|
+
mostActiveHourUtc: string;
|
|
46
|
+
optimalPostingDay: string;
|
|
47
|
+
optimalPostingHourUtc: string;
|
|
48
|
+
performanceByDay: { [k: string]: PerformanceByDay };
|
|
49
|
+
performanceByHour: { [k: string]: PerformanceByHour };
|
|
50
|
+
postingHeatmapDayVsHourUtc: { [k: string]: { [k: string]: number } };
|
|
51
|
+
postingFrequency?: PostingFrequency | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type AudienceAndTimingInsights = {
|
|
55
|
+
geoIndicators: GeoIndicators;
|
|
56
|
+
postingSchedule: PostingSchedule;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type TrendingHashtag = {
|
|
60
|
+
hashtag: string;
|
|
61
|
+
olderUsage: number;
|
|
62
|
+
recentUsage: number;
|
|
63
|
+
trendScore: number;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type ContentTrends = {
|
|
67
|
+
contentConsistencyScore: number;
|
|
68
|
+
recentPopularHashtags: Array<string>;
|
|
69
|
+
trendingHashtags: Array<TrendingHashtag>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type VideoLengthAnalysisSeconds = {
|
|
73
|
+
averageDuration: number;
|
|
74
|
+
longestDuration: number;
|
|
75
|
+
optimalDurationRange: string;
|
|
76
|
+
shortestDuration: number;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type ContentStrategyDeepDive = {
|
|
80
|
+
contentTrends: ContentTrends;
|
|
81
|
+
top10EffectsUsed: Array<string>;
|
|
82
|
+
top10MusicTitlesUsed: Array<string>;
|
|
83
|
+
top15HashtagsUsed: Array<string>;
|
|
84
|
+
videoLengthAnalysisSeconds: VideoLengthAnalysisSeconds;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type AccountStatistics = {
|
|
88
|
+
followersCount: number;
|
|
89
|
+
followingCount: number;
|
|
90
|
+
totalLikesReceivedOnAllVideos: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type AveragePerformancePerVideo = {
|
|
94
|
+
avgComments: number;
|
|
95
|
+
avgFavorites: number;
|
|
96
|
+
avgLikes: number;
|
|
97
|
+
avgShares: number;
|
|
98
|
+
avgViews: number;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type EngagementRatePerFollower = {
|
|
102
|
+
explanation: string;
|
|
103
|
+
value: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type EngagementRatePerView = {
|
|
107
|
+
explanation: string;
|
|
108
|
+
value: string;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type EngagementRatios = {
|
|
112
|
+
commentToViewRatio: string;
|
|
113
|
+
engagementRatePerFollower: EngagementRatePerFollower;
|
|
114
|
+
engagementRatePerView: EngagementRatePerView;
|
|
115
|
+
favoriteToViewRatio: string;
|
|
116
|
+
likeToViewRatio: string;
|
|
117
|
+
shareToViewRatio: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type PerformanceSummaryAcrossAnalyzedVideos = {
|
|
121
|
+
totalComments: number;
|
|
122
|
+
totalFavorites: number;
|
|
123
|
+
totalLikes: number;
|
|
124
|
+
totalShares: number;
|
|
125
|
+
totalVideosAnalyzed: number;
|
|
126
|
+
totalViews: number;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export type KeyMetrics = {
|
|
130
|
+
accountStatistics: AccountStatistics;
|
|
131
|
+
averagePerformancePerVideo: AveragePerformancePerVideo;
|
|
132
|
+
engagementRatios: EngagementRatios;
|
|
133
|
+
performanceSummaryAcrossAnalyzedVideos:
|
|
134
|
+
PerformanceSummaryAcrossAnalyzedVideos;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export const IsPrivateAccount = {
|
|
138
|
+
No: "No",
|
|
139
|
+
Yes: "Yes",
|
|
140
|
+
} as const;
|
|
141
|
+
export type IsPrivateAccount = OpenEnum<typeof IsPrivateAccount>;
|
|
142
|
+
|
|
143
|
+
export type ProfileSummary = {
|
|
144
|
+
isPrivateAccount: IsPrivateAccount;
|
|
145
|
+
nickname: string;
|
|
146
|
+
signature: string;
|
|
147
|
+
username: string;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export type HistoricalPerformance = {
|
|
151
|
+
avgComments: number;
|
|
152
|
+
avgLikes: number;
|
|
153
|
+
avgShares: number;
|
|
154
|
+
avgViews: number;
|
|
155
|
+
engagementRate: string;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type RecentPerformance = {
|
|
159
|
+
avgComments: number;
|
|
160
|
+
avgLikes: number;
|
|
161
|
+
avgShares: number;
|
|
162
|
+
avgViews: number;
|
|
163
|
+
engagementRate: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type DetailedMetrics = {
|
|
167
|
+
historicalPerformance: HistoricalPerformance;
|
|
168
|
+
recentPerformance: RecentPerformance;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export type ShadowBanRiskAssessmentResult = {
|
|
172
|
+
assessment: string;
|
|
173
|
+
confidenceLevel: string;
|
|
174
|
+
detailedMetrics: DetailedMetrics;
|
|
175
|
+
probabilityPercentage: string;
|
|
176
|
+
reasoning: string;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export type ShadowBanRiskAssessment = {
|
|
180
|
+
explanation: string;
|
|
181
|
+
result: ShadowBanRiskAssessmentResult;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export type ByComment = {
|
|
185
|
+
createdDate: string;
|
|
186
|
+
description: string;
|
|
187
|
+
engagementRate: string;
|
|
188
|
+
value: number;
|
|
189
|
+
videoId: string;
|
|
190
|
+
videoUrl: string;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export type ByLike = {
|
|
194
|
+
createdDate: string;
|
|
195
|
+
description: string;
|
|
196
|
+
engagementRate: string;
|
|
197
|
+
value: number;
|
|
198
|
+
videoId: string;
|
|
199
|
+
videoUrl: string;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export type ByShare = {
|
|
203
|
+
createdDate: string;
|
|
204
|
+
description: string;
|
|
205
|
+
engagementRate: string;
|
|
206
|
+
value: number;
|
|
207
|
+
videoId: string;
|
|
208
|
+
videoUrl: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export type ByView = {
|
|
212
|
+
createdDate: string;
|
|
213
|
+
description: string;
|
|
214
|
+
engagementRate: string;
|
|
215
|
+
value: number;
|
|
216
|
+
videoId: string;
|
|
217
|
+
videoUrl: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type TopPerformingVideosSnapshot = {
|
|
221
|
+
byComments: Array<ByComment>;
|
|
222
|
+
byLikes: Array<ByLike>;
|
|
223
|
+
byShares: Array<ByShare>;
|
|
224
|
+
byViews: Array<ByView>;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export type BestPerformingVideo = {
|
|
228
|
+
likes: number;
|
|
229
|
+
videoId: string;
|
|
230
|
+
views: number;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export type ViralPotentialAnalysisResult = {
|
|
234
|
+
assessment: string;
|
|
235
|
+
bestPerformingVideo: BestPerformingVideo;
|
|
236
|
+
factors: Array<string>;
|
|
237
|
+
score: number;
|
|
238
|
+
viralVideosCount: number;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type ViralPotentialAnalysis = {
|
|
242
|
+
explanation: string;
|
|
243
|
+
result: ViralPotentialAnalysisResult;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export type PostV1SearchSocialsTiktokData2 = {
|
|
247
|
+
audienceAndTimingInsights: AudienceAndTimingInsights;
|
|
248
|
+
contentStrategyDeepDive: ContentStrategyDeepDive;
|
|
249
|
+
keyMetrics: KeyMetrics;
|
|
250
|
+
profileSummary: ProfileSummary;
|
|
251
|
+
reportGeneratedUtc: string;
|
|
252
|
+
shadowBanRiskAssessment: ShadowBanRiskAssessment;
|
|
253
|
+
topPerformingVideosSnapshot: TopPerformingVideosSnapshot;
|
|
254
|
+
viralPotentialAnalysis: ViralPotentialAnalysis;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type PostV1SearchSocialsTiktokProfile = {
|
|
258
|
+
accountCreated: string;
|
|
259
|
+
avatarURL: string;
|
|
260
|
+
bioLink: string;
|
|
261
|
+
country: string;
|
|
262
|
+
language: string;
|
|
263
|
+
nicknameLastModified: string;
|
|
264
|
+
nickname: string;
|
|
265
|
+
secUID: string;
|
|
266
|
+
userID: string;
|
|
267
|
+
usernameLastModified: string;
|
|
268
|
+
username: string;
|
|
269
|
+
about?: string | undefined;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export type PostV1SearchSocialsTiktokStats = {
|
|
273
|
+
followers: string;
|
|
274
|
+
following: string;
|
|
275
|
+
friends: string;
|
|
276
|
+
hearts: string;
|
|
277
|
+
videos: string;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export type PostV1SearchSocialsTiktokData1 = {
|
|
281
|
+
profile?: PostV1SearchSocialsTiktokProfile | undefined;
|
|
282
|
+
stats?: PostV1SearchSocialsTiktokStats | undefined;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
export type PostV1SearchSocialsTiktokDataUnion =
|
|
286
|
+
| PostV1SearchSocialsTiktokData2
|
|
287
|
+
| PostV1SearchSocialsTiktokData1;
|
|
288
|
+
|
|
289
|
+
export const SearchType = {
|
|
290
|
+
Basic: "basic",
|
|
291
|
+
Full: "full",
|
|
292
|
+
} as const;
|
|
293
|
+
export type SearchType = OpenEnum<typeof SearchType>;
|
|
294
|
+
|
|
295
|
+
export type PostV1SearchSocialsTiktokData3 = {
|
|
296
|
+
data: Array<PostV1SearchSocialsTiktokData2 | PostV1SearchSocialsTiktokData1>;
|
|
297
|
+
searchType: SearchType;
|
|
298
|
+
success: boolean;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Search successful
|
|
303
|
+
*/
|
|
304
|
+
export type PostV1SearchSocialsTiktokResponse = {
|
|
305
|
+
data: PostV1SearchSocialsTiktokData3;
|
|
306
|
+
success: boolean;
|
|
307
|
+
error?: string | undefined;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/** @internal */
|
|
311
|
+
export type PostV1SearchSocialsTiktokRequest$Outbound = {
|
|
312
|
+
query: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const PostV1SearchSocialsTiktokRequest$outboundSchema: z.ZodMiniType<
|
|
317
|
+
PostV1SearchSocialsTiktokRequest$Outbound,
|
|
318
|
+
PostV1SearchSocialsTiktokRequest
|
|
319
|
+
> = z.object({
|
|
320
|
+
query: z.string(),
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export function postV1SearchSocialsTiktokRequestToJSON(
|
|
324
|
+
postV1SearchSocialsTiktokRequest: PostV1SearchSocialsTiktokRequest,
|
|
325
|
+
): string {
|
|
326
|
+
return JSON.stringify(
|
|
327
|
+
PostV1SearchSocialsTiktokRequest$outboundSchema.parse(
|
|
328
|
+
postV1SearchSocialsTiktokRequest,
|
|
329
|
+
),
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** @internal */
|
|
334
|
+
export const GeoIndicators$inboundSchema: z.ZodMiniType<
|
|
335
|
+
GeoIndicators,
|
|
336
|
+
unknown
|
|
337
|
+
> = z.pipe(
|
|
338
|
+
z.object({
|
|
339
|
+
top_10_languages_in_description: z.array(types.string()),
|
|
340
|
+
top_10_regions_from_videos: z.array(types.string()),
|
|
341
|
+
}),
|
|
342
|
+
z.transform((v) => {
|
|
343
|
+
return remap$(v, {
|
|
344
|
+
"top_10_languages_in_description": "top10LanguagesInDescription",
|
|
345
|
+
"top_10_regions_from_videos": "top10RegionsFromVideos",
|
|
346
|
+
});
|
|
347
|
+
}),
|
|
348
|
+
);
|
|
349
|
+
|
|
350
|
+
export function geoIndicatorsFromJSON(
|
|
351
|
+
jsonString: string,
|
|
352
|
+
): SafeParseResult<GeoIndicators, SDKValidationError> {
|
|
353
|
+
return safeParse(
|
|
354
|
+
jsonString,
|
|
355
|
+
(x) => GeoIndicators$inboundSchema.parse(JSON.parse(x)),
|
|
356
|
+
`Failed to parse 'GeoIndicators' from JSON`,
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/** @internal */
|
|
361
|
+
export const PerformanceByDay$inboundSchema: z.ZodMiniType<
|
|
362
|
+
PerformanceByDay,
|
|
363
|
+
unknown
|
|
364
|
+
> = z.object({
|
|
365
|
+
avgViews: types.number(),
|
|
366
|
+
posts: types.number(),
|
|
367
|
+
totalEngagement: types.number(),
|
|
368
|
+
totalViews: types.number(),
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
export function performanceByDayFromJSON(
|
|
372
|
+
jsonString: string,
|
|
373
|
+
): SafeParseResult<PerformanceByDay, SDKValidationError> {
|
|
374
|
+
return safeParse(
|
|
375
|
+
jsonString,
|
|
376
|
+
(x) => PerformanceByDay$inboundSchema.parse(JSON.parse(x)),
|
|
377
|
+
`Failed to parse 'PerformanceByDay' from JSON`,
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/** @internal */
|
|
382
|
+
export const PerformanceByHour$inboundSchema: z.ZodMiniType<
|
|
383
|
+
PerformanceByHour,
|
|
384
|
+
unknown
|
|
385
|
+
> = z.object({
|
|
386
|
+
avgViews: types.number(),
|
|
387
|
+
posts: types.number(),
|
|
388
|
+
totalEngagement: types.number(),
|
|
389
|
+
totalViews: types.number(),
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
export function performanceByHourFromJSON(
|
|
393
|
+
jsonString: string,
|
|
394
|
+
): SafeParseResult<PerformanceByHour, SDKValidationError> {
|
|
395
|
+
return safeParse(
|
|
396
|
+
jsonString,
|
|
397
|
+
(x) => PerformanceByHour$inboundSchema.parse(JSON.parse(x)),
|
|
398
|
+
`Failed to parse 'PerformanceByHour' from JSON`,
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const PostingFrequency$inboundSchema: z.ZodMiniType<
|
|
404
|
+
PostingFrequency,
|
|
405
|
+
unknown
|
|
406
|
+
> = z.pipe(
|
|
407
|
+
z.object({
|
|
408
|
+
average_posts_per_week: types.optional(types.number()),
|
|
409
|
+
posting_consistency_score: types.optional(types.number()),
|
|
410
|
+
}),
|
|
411
|
+
z.transform((v) => {
|
|
412
|
+
return remap$(v, {
|
|
413
|
+
"average_posts_per_week": "averagePostsPerWeek",
|
|
414
|
+
"posting_consistency_score": "postingConsistencyScore",
|
|
415
|
+
});
|
|
416
|
+
}),
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
export function postingFrequencyFromJSON(
|
|
420
|
+
jsonString: string,
|
|
421
|
+
): SafeParseResult<PostingFrequency, SDKValidationError> {
|
|
422
|
+
return safeParse(
|
|
423
|
+
jsonString,
|
|
424
|
+
(x) => PostingFrequency$inboundSchema.parse(JSON.parse(x)),
|
|
425
|
+
`Failed to parse 'PostingFrequency' from JSON`,
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const PostingSchedule$inboundSchema: z.ZodMiniType<
|
|
431
|
+
PostingSchedule,
|
|
432
|
+
unknown
|
|
433
|
+
> = z.pipe(
|
|
434
|
+
z.object({
|
|
435
|
+
most_active_day: types.string(),
|
|
436
|
+
most_active_hour_utc: types.string(),
|
|
437
|
+
optimal_posting_day: types.string(),
|
|
438
|
+
optimal_posting_hour_utc: types.string(),
|
|
439
|
+
performance_by_day: z.record(
|
|
440
|
+
z.string(),
|
|
441
|
+
z.lazy(() => PerformanceByDay$inboundSchema),
|
|
442
|
+
),
|
|
443
|
+
performance_by_hour: z.record(
|
|
444
|
+
z.string(),
|
|
445
|
+
z.lazy(() => PerformanceByHour$inboundSchema),
|
|
446
|
+
),
|
|
447
|
+
posting_heatmap_day_vs_hour_utc: z.record(
|
|
448
|
+
z.string(),
|
|
449
|
+
z.record(z.string(), types.number()),
|
|
450
|
+
),
|
|
451
|
+
posting_frequency: types.optional(
|
|
452
|
+
z.lazy(() => PostingFrequency$inboundSchema),
|
|
453
|
+
),
|
|
454
|
+
}),
|
|
455
|
+
z.transform((v) => {
|
|
456
|
+
return remap$(v, {
|
|
457
|
+
"most_active_day": "mostActiveDay",
|
|
458
|
+
"most_active_hour_utc": "mostActiveHourUtc",
|
|
459
|
+
"optimal_posting_day": "optimalPostingDay",
|
|
460
|
+
"optimal_posting_hour_utc": "optimalPostingHourUtc",
|
|
461
|
+
"performance_by_day": "performanceByDay",
|
|
462
|
+
"performance_by_hour": "performanceByHour",
|
|
463
|
+
"posting_heatmap_day_vs_hour_utc": "postingHeatmapDayVsHourUtc",
|
|
464
|
+
"posting_frequency": "postingFrequency",
|
|
465
|
+
});
|
|
466
|
+
}),
|
|
467
|
+
);
|
|
468
|
+
|
|
469
|
+
export function postingScheduleFromJSON(
|
|
470
|
+
jsonString: string,
|
|
471
|
+
): SafeParseResult<PostingSchedule, SDKValidationError> {
|
|
472
|
+
return safeParse(
|
|
473
|
+
jsonString,
|
|
474
|
+
(x) => PostingSchedule$inboundSchema.parse(JSON.parse(x)),
|
|
475
|
+
`Failed to parse 'PostingSchedule' from JSON`,
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/** @internal */
|
|
480
|
+
export const AudienceAndTimingInsights$inboundSchema: z.ZodMiniType<
|
|
481
|
+
AudienceAndTimingInsights,
|
|
482
|
+
unknown
|
|
483
|
+
> = z.pipe(
|
|
484
|
+
z.object({
|
|
485
|
+
geo_indicators: z.lazy(() => GeoIndicators$inboundSchema),
|
|
486
|
+
posting_schedule: z.lazy(() => PostingSchedule$inboundSchema),
|
|
487
|
+
}),
|
|
488
|
+
z.transform((v) => {
|
|
489
|
+
return remap$(v, {
|
|
490
|
+
"geo_indicators": "geoIndicators",
|
|
491
|
+
"posting_schedule": "postingSchedule",
|
|
492
|
+
});
|
|
493
|
+
}),
|
|
494
|
+
);
|
|
495
|
+
|
|
496
|
+
export function audienceAndTimingInsightsFromJSON(
|
|
497
|
+
jsonString: string,
|
|
498
|
+
): SafeParseResult<AudienceAndTimingInsights, SDKValidationError> {
|
|
499
|
+
return safeParse(
|
|
500
|
+
jsonString,
|
|
501
|
+
(x) => AudienceAndTimingInsights$inboundSchema.parse(JSON.parse(x)),
|
|
502
|
+
`Failed to parse 'AudienceAndTimingInsights' from JSON`,
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/** @internal */
|
|
507
|
+
export const TrendingHashtag$inboundSchema: z.ZodMiniType<
|
|
508
|
+
TrendingHashtag,
|
|
509
|
+
unknown
|
|
510
|
+
> = z.pipe(
|
|
511
|
+
z.object({
|
|
512
|
+
hashtag: types.string(),
|
|
513
|
+
older_usage: types.number(),
|
|
514
|
+
recent_usage: types.number(),
|
|
515
|
+
trend_score: types.number(),
|
|
516
|
+
}),
|
|
517
|
+
z.transform((v) => {
|
|
518
|
+
return remap$(v, {
|
|
519
|
+
"older_usage": "olderUsage",
|
|
520
|
+
"recent_usage": "recentUsage",
|
|
521
|
+
"trend_score": "trendScore",
|
|
522
|
+
});
|
|
523
|
+
}),
|
|
524
|
+
);
|
|
525
|
+
|
|
526
|
+
export function trendingHashtagFromJSON(
|
|
527
|
+
jsonString: string,
|
|
528
|
+
): SafeParseResult<TrendingHashtag, SDKValidationError> {
|
|
529
|
+
return safeParse(
|
|
530
|
+
jsonString,
|
|
531
|
+
(x) => TrendingHashtag$inboundSchema.parse(JSON.parse(x)),
|
|
532
|
+
`Failed to parse 'TrendingHashtag' from JSON`,
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/** @internal */
|
|
537
|
+
export const ContentTrends$inboundSchema: z.ZodMiniType<
|
|
538
|
+
ContentTrends,
|
|
539
|
+
unknown
|
|
540
|
+
> = z.pipe(
|
|
541
|
+
z.object({
|
|
542
|
+
content_consistency_score: types.number(),
|
|
543
|
+
recent_popular_hashtags: z.array(types.string()),
|
|
544
|
+
trending_hashtags: z.array(z.lazy(() => TrendingHashtag$inboundSchema)),
|
|
545
|
+
}),
|
|
546
|
+
z.transform((v) => {
|
|
547
|
+
return remap$(v, {
|
|
548
|
+
"content_consistency_score": "contentConsistencyScore",
|
|
549
|
+
"recent_popular_hashtags": "recentPopularHashtags",
|
|
550
|
+
"trending_hashtags": "trendingHashtags",
|
|
551
|
+
});
|
|
552
|
+
}),
|
|
553
|
+
);
|
|
554
|
+
|
|
555
|
+
export function contentTrendsFromJSON(
|
|
556
|
+
jsonString: string,
|
|
557
|
+
): SafeParseResult<ContentTrends, SDKValidationError> {
|
|
558
|
+
return safeParse(
|
|
559
|
+
jsonString,
|
|
560
|
+
(x) => ContentTrends$inboundSchema.parse(JSON.parse(x)),
|
|
561
|
+
`Failed to parse 'ContentTrends' from JSON`,
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/** @internal */
|
|
566
|
+
export const VideoLengthAnalysisSeconds$inboundSchema: z.ZodMiniType<
|
|
567
|
+
VideoLengthAnalysisSeconds,
|
|
568
|
+
unknown
|
|
569
|
+
> = z.pipe(
|
|
570
|
+
z.object({
|
|
571
|
+
average_duration: types.number(),
|
|
572
|
+
longest_duration: types.number(),
|
|
573
|
+
optimal_duration_range: types.string(),
|
|
574
|
+
shortest_duration: types.number(),
|
|
575
|
+
}),
|
|
576
|
+
z.transform((v) => {
|
|
577
|
+
return remap$(v, {
|
|
578
|
+
"average_duration": "averageDuration",
|
|
579
|
+
"longest_duration": "longestDuration",
|
|
580
|
+
"optimal_duration_range": "optimalDurationRange",
|
|
581
|
+
"shortest_duration": "shortestDuration",
|
|
582
|
+
});
|
|
583
|
+
}),
|
|
584
|
+
);
|
|
585
|
+
|
|
586
|
+
export function videoLengthAnalysisSecondsFromJSON(
|
|
587
|
+
jsonString: string,
|
|
588
|
+
): SafeParseResult<VideoLengthAnalysisSeconds, SDKValidationError> {
|
|
589
|
+
return safeParse(
|
|
590
|
+
jsonString,
|
|
591
|
+
(x) => VideoLengthAnalysisSeconds$inboundSchema.parse(JSON.parse(x)),
|
|
592
|
+
`Failed to parse 'VideoLengthAnalysisSeconds' from JSON`,
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/** @internal */
|
|
597
|
+
export const ContentStrategyDeepDive$inboundSchema: z.ZodMiniType<
|
|
598
|
+
ContentStrategyDeepDive,
|
|
599
|
+
unknown
|
|
600
|
+
> = z.pipe(
|
|
601
|
+
z.object({
|
|
602
|
+
content_trends: z.lazy(() => ContentTrends$inboundSchema),
|
|
603
|
+
top_10_effects_used: z.array(types.string()),
|
|
604
|
+
top_10_music_titles_used: z.array(types.string()),
|
|
605
|
+
top_15_hashtags_used: z.array(types.string()),
|
|
606
|
+
video_length_analysis_seconds: z.lazy(() =>
|
|
607
|
+
VideoLengthAnalysisSeconds$inboundSchema
|
|
608
|
+
),
|
|
609
|
+
}),
|
|
610
|
+
z.transform((v) => {
|
|
611
|
+
return remap$(v, {
|
|
612
|
+
"content_trends": "contentTrends",
|
|
613
|
+
"top_10_effects_used": "top10EffectsUsed",
|
|
614
|
+
"top_10_music_titles_used": "top10MusicTitlesUsed",
|
|
615
|
+
"top_15_hashtags_used": "top15HashtagsUsed",
|
|
616
|
+
"video_length_analysis_seconds": "videoLengthAnalysisSeconds",
|
|
617
|
+
});
|
|
618
|
+
}),
|
|
619
|
+
);
|
|
620
|
+
|
|
621
|
+
export function contentStrategyDeepDiveFromJSON(
|
|
622
|
+
jsonString: string,
|
|
623
|
+
): SafeParseResult<ContentStrategyDeepDive, SDKValidationError> {
|
|
624
|
+
return safeParse(
|
|
625
|
+
jsonString,
|
|
626
|
+
(x) => ContentStrategyDeepDive$inboundSchema.parse(JSON.parse(x)),
|
|
627
|
+
`Failed to parse 'ContentStrategyDeepDive' from JSON`,
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/** @internal */
|
|
632
|
+
export const AccountStatistics$inboundSchema: z.ZodMiniType<
|
|
633
|
+
AccountStatistics,
|
|
634
|
+
unknown
|
|
635
|
+
> = z.pipe(
|
|
636
|
+
z.object({
|
|
637
|
+
followers_count: types.number(),
|
|
638
|
+
following_count: types.number(),
|
|
639
|
+
total_likes_received_on_all_videos: types.number(),
|
|
640
|
+
}),
|
|
641
|
+
z.transform((v) => {
|
|
642
|
+
return remap$(v, {
|
|
643
|
+
"followers_count": "followersCount",
|
|
644
|
+
"following_count": "followingCount",
|
|
645
|
+
"total_likes_received_on_all_videos": "totalLikesReceivedOnAllVideos",
|
|
646
|
+
});
|
|
647
|
+
}),
|
|
648
|
+
);
|
|
649
|
+
|
|
650
|
+
export function accountStatisticsFromJSON(
|
|
651
|
+
jsonString: string,
|
|
652
|
+
): SafeParseResult<AccountStatistics, SDKValidationError> {
|
|
653
|
+
return safeParse(
|
|
654
|
+
jsonString,
|
|
655
|
+
(x) => AccountStatistics$inboundSchema.parse(JSON.parse(x)),
|
|
656
|
+
`Failed to parse 'AccountStatistics' from JSON`,
|
|
657
|
+
);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const AveragePerformancePerVideo$inboundSchema: z.ZodMiniType<
|
|
662
|
+
AveragePerformancePerVideo,
|
|
663
|
+
unknown
|
|
664
|
+
> = z.pipe(
|
|
665
|
+
z.object({
|
|
666
|
+
avg_comments: types.number(),
|
|
667
|
+
avg_favorites: types.number(),
|
|
668
|
+
avg_likes: types.number(),
|
|
669
|
+
avg_shares: types.number(),
|
|
670
|
+
avg_views: types.number(),
|
|
671
|
+
}),
|
|
672
|
+
z.transform((v) => {
|
|
673
|
+
return remap$(v, {
|
|
674
|
+
"avg_comments": "avgComments",
|
|
675
|
+
"avg_favorites": "avgFavorites",
|
|
676
|
+
"avg_likes": "avgLikes",
|
|
677
|
+
"avg_shares": "avgShares",
|
|
678
|
+
"avg_views": "avgViews",
|
|
679
|
+
});
|
|
680
|
+
}),
|
|
681
|
+
);
|
|
682
|
+
|
|
683
|
+
export function averagePerformancePerVideoFromJSON(
|
|
684
|
+
jsonString: string,
|
|
685
|
+
): SafeParseResult<AveragePerformancePerVideo, SDKValidationError> {
|
|
686
|
+
return safeParse(
|
|
687
|
+
jsonString,
|
|
688
|
+
(x) => AveragePerformancePerVideo$inboundSchema.parse(JSON.parse(x)),
|
|
689
|
+
`Failed to parse 'AveragePerformancePerVideo' from JSON`,
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/** @internal */
|
|
694
|
+
export const EngagementRatePerFollower$inboundSchema: z.ZodMiniType<
|
|
695
|
+
EngagementRatePerFollower,
|
|
696
|
+
unknown
|
|
697
|
+
> = z.object({
|
|
698
|
+
explanation: types.string(),
|
|
699
|
+
value: types.string(),
|
|
700
|
+
});
|
|
701
|
+
|
|
702
|
+
export function engagementRatePerFollowerFromJSON(
|
|
703
|
+
jsonString: string,
|
|
704
|
+
): SafeParseResult<EngagementRatePerFollower, SDKValidationError> {
|
|
705
|
+
return safeParse(
|
|
706
|
+
jsonString,
|
|
707
|
+
(x) => EngagementRatePerFollower$inboundSchema.parse(JSON.parse(x)),
|
|
708
|
+
`Failed to parse 'EngagementRatePerFollower' from JSON`,
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/** @internal */
|
|
713
|
+
export const EngagementRatePerView$inboundSchema: z.ZodMiniType<
|
|
714
|
+
EngagementRatePerView,
|
|
715
|
+
unknown
|
|
716
|
+
> = z.object({
|
|
717
|
+
explanation: types.string(),
|
|
718
|
+
value: types.string(),
|
|
719
|
+
});
|
|
720
|
+
|
|
721
|
+
export function engagementRatePerViewFromJSON(
|
|
722
|
+
jsonString: string,
|
|
723
|
+
): SafeParseResult<EngagementRatePerView, SDKValidationError> {
|
|
724
|
+
return safeParse(
|
|
725
|
+
jsonString,
|
|
726
|
+
(x) => EngagementRatePerView$inboundSchema.parse(JSON.parse(x)),
|
|
727
|
+
`Failed to parse 'EngagementRatePerView' from JSON`,
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/** @internal */
|
|
732
|
+
export const EngagementRatios$inboundSchema: z.ZodMiniType<
|
|
733
|
+
EngagementRatios,
|
|
734
|
+
unknown
|
|
735
|
+
> = z.pipe(
|
|
736
|
+
z.object({
|
|
737
|
+
comment_to_view_ratio: types.string(),
|
|
738
|
+
engagement_rate_per_follower: z.lazy(() =>
|
|
739
|
+
EngagementRatePerFollower$inboundSchema
|
|
740
|
+
),
|
|
741
|
+
engagement_rate_per_view: z.lazy(() => EngagementRatePerView$inboundSchema),
|
|
742
|
+
favorite_to_view_ratio: types.string(),
|
|
743
|
+
like_to_view_ratio: types.string(),
|
|
744
|
+
share_to_view_ratio: types.string(),
|
|
745
|
+
}),
|
|
746
|
+
z.transform((v) => {
|
|
747
|
+
return remap$(v, {
|
|
748
|
+
"comment_to_view_ratio": "commentToViewRatio",
|
|
749
|
+
"engagement_rate_per_follower": "engagementRatePerFollower",
|
|
750
|
+
"engagement_rate_per_view": "engagementRatePerView",
|
|
751
|
+
"favorite_to_view_ratio": "favoriteToViewRatio",
|
|
752
|
+
"like_to_view_ratio": "likeToViewRatio",
|
|
753
|
+
"share_to_view_ratio": "shareToViewRatio",
|
|
754
|
+
});
|
|
755
|
+
}),
|
|
756
|
+
);
|
|
757
|
+
|
|
758
|
+
export function engagementRatiosFromJSON(
|
|
759
|
+
jsonString: string,
|
|
760
|
+
): SafeParseResult<EngagementRatios, SDKValidationError> {
|
|
761
|
+
return safeParse(
|
|
762
|
+
jsonString,
|
|
763
|
+
(x) => EngagementRatios$inboundSchema.parse(JSON.parse(x)),
|
|
764
|
+
`Failed to parse 'EngagementRatios' from JSON`,
|
|
765
|
+
);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/** @internal */
|
|
769
|
+
export const PerformanceSummaryAcrossAnalyzedVideos$inboundSchema:
|
|
770
|
+
z.ZodMiniType<PerformanceSummaryAcrossAnalyzedVideos, unknown> = z.pipe(
|
|
771
|
+
z.object({
|
|
772
|
+
total_comments: types.number(),
|
|
773
|
+
total_favorites: types.number(),
|
|
774
|
+
total_likes: types.number(),
|
|
775
|
+
total_shares: types.number(),
|
|
776
|
+
total_videos_analyzed: types.number(),
|
|
777
|
+
total_views: types.number(),
|
|
778
|
+
}),
|
|
779
|
+
z.transform((v) => {
|
|
780
|
+
return remap$(v, {
|
|
781
|
+
"total_comments": "totalComments",
|
|
782
|
+
"total_favorites": "totalFavorites",
|
|
783
|
+
"total_likes": "totalLikes",
|
|
784
|
+
"total_shares": "totalShares",
|
|
785
|
+
"total_videos_analyzed": "totalVideosAnalyzed",
|
|
786
|
+
"total_views": "totalViews",
|
|
787
|
+
});
|
|
788
|
+
}),
|
|
789
|
+
);
|
|
790
|
+
|
|
791
|
+
export function performanceSummaryAcrossAnalyzedVideosFromJSON(
|
|
792
|
+
jsonString: string,
|
|
793
|
+
): SafeParseResult<PerformanceSummaryAcrossAnalyzedVideos, SDKValidationError> {
|
|
794
|
+
return safeParse(
|
|
795
|
+
jsonString,
|
|
796
|
+
(x) =>
|
|
797
|
+
PerformanceSummaryAcrossAnalyzedVideos$inboundSchema.parse(JSON.parse(x)),
|
|
798
|
+
`Failed to parse 'PerformanceSummaryAcrossAnalyzedVideos' from JSON`,
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/** @internal */
|
|
803
|
+
export const KeyMetrics$inboundSchema: z.ZodMiniType<KeyMetrics, unknown> = z
|
|
804
|
+
.pipe(
|
|
805
|
+
z.object({
|
|
806
|
+
account_statistics: z.lazy(() => AccountStatistics$inboundSchema),
|
|
807
|
+
average_performance_per_video: z.lazy(() =>
|
|
808
|
+
AveragePerformancePerVideo$inboundSchema
|
|
809
|
+
),
|
|
810
|
+
engagement_ratios: z.lazy(() => EngagementRatios$inboundSchema),
|
|
811
|
+
performance_summary_across_analyzed_videos: z.lazy(() =>
|
|
812
|
+
PerformanceSummaryAcrossAnalyzedVideos$inboundSchema
|
|
813
|
+
),
|
|
814
|
+
}),
|
|
815
|
+
z.transform((v) => {
|
|
816
|
+
return remap$(v, {
|
|
817
|
+
"account_statistics": "accountStatistics",
|
|
818
|
+
"average_performance_per_video": "averagePerformancePerVideo",
|
|
819
|
+
"engagement_ratios": "engagementRatios",
|
|
820
|
+
"performance_summary_across_analyzed_videos":
|
|
821
|
+
"performanceSummaryAcrossAnalyzedVideos",
|
|
822
|
+
});
|
|
823
|
+
}),
|
|
824
|
+
);
|
|
825
|
+
|
|
826
|
+
export function keyMetricsFromJSON(
|
|
827
|
+
jsonString: string,
|
|
828
|
+
): SafeParseResult<KeyMetrics, SDKValidationError> {
|
|
829
|
+
return safeParse(
|
|
830
|
+
jsonString,
|
|
831
|
+
(x) => KeyMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
832
|
+
`Failed to parse 'KeyMetrics' from JSON`,
|
|
833
|
+
);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** @internal */
|
|
837
|
+
export const IsPrivateAccount$inboundSchema: z.ZodMiniType<
|
|
838
|
+
IsPrivateAccount,
|
|
839
|
+
unknown
|
|
840
|
+
> = openEnums.inboundSchema(IsPrivateAccount);
|
|
841
|
+
|
|
842
|
+
/** @internal */
|
|
843
|
+
export const ProfileSummary$inboundSchema: z.ZodMiniType<
|
|
844
|
+
ProfileSummary,
|
|
845
|
+
unknown
|
|
846
|
+
> = z.pipe(
|
|
847
|
+
z.object({
|
|
848
|
+
is_private_account: IsPrivateAccount$inboundSchema,
|
|
849
|
+
nickname: types.string(),
|
|
850
|
+
signature: types.string(),
|
|
851
|
+
username: types.string(),
|
|
852
|
+
}),
|
|
853
|
+
z.transform((v) => {
|
|
854
|
+
return remap$(v, {
|
|
855
|
+
"is_private_account": "isPrivateAccount",
|
|
856
|
+
});
|
|
857
|
+
}),
|
|
858
|
+
);
|
|
859
|
+
|
|
860
|
+
export function profileSummaryFromJSON(
|
|
861
|
+
jsonString: string,
|
|
862
|
+
): SafeParseResult<ProfileSummary, SDKValidationError> {
|
|
863
|
+
return safeParse(
|
|
864
|
+
jsonString,
|
|
865
|
+
(x) => ProfileSummary$inboundSchema.parse(JSON.parse(x)),
|
|
866
|
+
`Failed to parse 'ProfileSummary' from JSON`,
|
|
867
|
+
);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/** @internal */
|
|
871
|
+
export const HistoricalPerformance$inboundSchema: z.ZodMiniType<
|
|
872
|
+
HistoricalPerformance,
|
|
873
|
+
unknown
|
|
874
|
+
> = z.pipe(
|
|
875
|
+
z.object({
|
|
876
|
+
avg_comments: types.number(),
|
|
877
|
+
avg_likes: types.number(),
|
|
878
|
+
avg_shares: types.number(),
|
|
879
|
+
avg_views: types.number(),
|
|
880
|
+
engagement_rate: types.string(),
|
|
881
|
+
}),
|
|
882
|
+
z.transform((v) => {
|
|
883
|
+
return remap$(v, {
|
|
884
|
+
"avg_comments": "avgComments",
|
|
885
|
+
"avg_likes": "avgLikes",
|
|
886
|
+
"avg_shares": "avgShares",
|
|
887
|
+
"avg_views": "avgViews",
|
|
888
|
+
"engagement_rate": "engagementRate",
|
|
889
|
+
});
|
|
890
|
+
}),
|
|
891
|
+
);
|
|
892
|
+
|
|
893
|
+
export function historicalPerformanceFromJSON(
|
|
894
|
+
jsonString: string,
|
|
895
|
+
): SafeParseResult<HistoricalPerformance, SDKValidationError> {
|
|
896
|
+
return safeParse(
|
|
897
|
+
jsonString,
|
|
898
|
+
(x) => HistoricalPerformance$inboundSchema.parse(JSON.parse(x)),
|
|
899
|
+
`Failed to parse 'HistoricalPerformance' from JSON`,
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/** @internal */
|
|
904
|
+
export const RecentPerformance$inboundSchema: z.ZodMiniType<
|
|
905
|
+
RecentPerformance,
|
|
906
|
+
unknown
|
|
907
|
+
> = z.pipe(
|
|
908
|
+
z.object({
|
|
909
|
+
avg_comments: types.number(),
|
|
910
|
+
avg_likes: types.number(),
|
|
911
|
+
avg_shares: types.number(),
|
|
912
|
+
avg_views: types.number(),
|
|
913
|
+
engagement_rate: types.string(),
|
|
914
|
+
}),
|
|
915
|
+
z.transform((v) => {
|
|
916
|
+
return remap$(v, {
|
|
917
|
+
"avg_comments": "avgComments",
|
|
918
|
+
"avg_likes": "avgLikes",
|
|
919
|
+
"avg_shares": "avgShares",
|
|
920
|
+
"avg_views": "avgViews",
|
|
921
|
+
"engagement_rate": "engagementRate",
|
|
922
|
+
});
|
|
923
|
+
}),
|
|
924
|
+
);
|
|
925
|
+
|
|
926
|
+
export function recentPerformanceFromJSON(
|
|
927
|
+
jsonString: string,
|
|
928
|
+
): SafeParseResult<RecentPerformance, SDKValidationError> {
|
|
929
|
+
return safeParse(
|
|
930
|
+
jsonString,
|
|
931
|
+
(x) => RecentPerformance$inboundSchema.parse(JSON.parse(x)),
|
|
932
|
+
`Failed to parse 'RecentPerformance' from JSON`,
|
|
933
|
+
);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/** @internal */
|
|
937
|
+
export const DetailedMetrics$inboundSchema: z.ZodMiniType<
|
|
938
|
+
DetailedMetrics,
|
|
939
|
+
unknown
|
|
940
|
+
> = z.pipe(
|
|
941
|
+
z.object({
|
|
942
|
+
historical_performance: z.lazy(() => HistoricalPerformance$inboundSchema),
|
|
943
|
+
recent_performance: z.lazy(() => RecentPerformance$inboundSchema),
|
|
944
|
+
}),
|
|
945
|
+
z.transform((v) => {
|
|
946
|
+
return remap$(v, {
|
|
947
|
+
"historical_performance": "historicalPerformance",
|
|
948
|
+
"recent_performance": "recentPerformance",
|
|
949
|
+
});
|
|
950
|
+
}),
|
|
951
|
+
);
|
|
952
|
+
|
|
953
|
+
export function detailedMetricsFromJSON(
|
|
954
|
+
jsonString: string,
|
|
955
|
+
): SafeParseResult<DetailedMetrics, SDKValidationError> {
|
|
956
|
+
return safeParse(
|
|
957
|
+
jsonString,
|
|
958
|
+
(x) => DetailedMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
959
|
+
`Failed to parse 'DetailedMetrics' from JSON`,
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/** @internal */
|
|
964
|
+
export const ShadowBanRiskAssessmentResult$inboundSchema: z.ZodMiniType<
|
|
965
|
+
ShadowBanRiskAssessmentResult,
|
|
966
|
+
unknown
|
|
967
|
+
> = z.pipe(
|
|
968
|
+
z.object({
|
|
969
|
+
assessment: types.string(),
|
|
970
|
+
confidence_level: types.string(),
|
|
971
|
+
detailed_metrics: z.lazy(() => DetailedMetrics$inboundSchema),
|
|
972
|
+
probability_percentage: types.string(),
|
|
973
|
+
reasoning: types.string(),
|
|
974
|
+
}),
|
|
975
|
+
z.transform((v) => {
|
|
976
|
+
return remap$(v, {
|
|
977
|
+
"confidence_level": "confidenceLevel",
|
|
978
|
+
"detailed_metrics": "detailedMetrics",
|
|
979
|
+
"probability_percentage": "probabilityPercentage",
|
|
980
|
+
});
|
|
981
|
+
}),
|
|
982
|
+
);
|
|
983
|
+
|
|
984
|
+
export function shadowBanRiskAssessmentResultFromJSON(
|
|
985
|
+
jsonString: string,
|
|
986
|
+
): SafeParseResult<ShadowBanRiskAssessmentResult, SDKValidationError> {
|
|
987
|
+
return safeParse(
|
|
988
|
+
jsonString,
|
|
989
|
+
(x) => ShadowBanRiskAssessmentResult$inboundSchema.parse(JSON.parse(x)),
|
|
990
|
+
`Failed to parse 'ShadowBanRiskAssessmentResult' from JSON`,
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/** @internal */
|
|
995
|
+
export const ShadowBanRiskAssessment$inboundSchema: z.ZodMiniType<
|
|
996
|
+
ShadowBanRiskAssessment,
|
|
997
|
+
unknown
|
|
998
|
+
> = z.object({
|
|
999
|
+
explanation: types.string(),
|
|
1000
|
+
result: z.lazy(() => ShadowBanRiskAssessmentResult$inboundSchema),
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
export function shadowBanRiskAssessmentFromJSON(
|
|
1004
|
+
jsonString: string,
|
|
1005
|
+
): SafeParseResult<ShadowBanRiskAssessment, SDKValidationError> {
|
|
1006
|
+
return safeParse(
|
|
1007
|
+
jsonString,
|
|
1008
|
+
(x) => ShadowBanRiskAssessment$inboundSchema.parse(JSON.parse(x)),
|
|
1009
|
+
`Failed to parse 'ShadowBanRiskAssessment' from JSON`,
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/** @internal */
|
|
1014
|
+
export const ByComment$inboundSchema: z.ZodMiniType<ByComment, unknown> = z
|
|
1015
|
+
.pipe(
|
|
1016
|
+
z.object({
|
|
1017
|
+
created_date: types.string(),
|
|
1018
|
+
description: types.string(),
|
|
1019
|
+
engagement_rate: types.string(),
|
|
1020
|
+
value: types.number(),
|
|
1021
|
+
video_id: types.string(),
|
|
1022
|
+
video_url: types.string(),
|
|
1023
|
+
}),
|
|
1024
|
+
z.transform((v) => {
|
|
1025
|
+
return remap$(v, {
|
|
1026
|
+
"created_date": "createdDate",
|
|
1027
|
+
"engagement_rate": "engagementRate",
|
|
1028
|
+
"video_id": "videoId",
|
|
1029
|
+
"video_url": "videoUrl",
|
|
1030
|
+
});
|
|
1031
|
+
}),
|
|
1032
|
+
);
|
|
1033
|
+
|
|
1034
|
+
export function byCommentFromJSON(
|
|
1035
|
+
jsonString: string,
|
|
1036
|
+
): SafeParseResult<ByComment, SDKValidationError> {
|
|
1037
|
+
return safeParse(
|
|
1038
|
+
jsonString,
|
|
1039
|
+
(x) => ByComment$inboundSchema.parse(JSON.parse(x)),
|
|
1040
|
+
`Failed to parse 'ByComment' from JSON`,
|
|
1041
|
+
);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/** @internal */
|
|
1045
|
+
export const ByLike$inboundSchema: z.ZodMiniType<ByLike, unknown> = z.pipe(
|
|
1046
|
+
z.object({
|
|
1047
|
+
created_date: types.string(),
|
|
1048
|
+
description: types.string(),
|
|
1049
|
+
engagement_rate: types.string(),
|
|
1050
|
+
value: types.number(),
|
|
1051
|
+
video_id: types.string(),
|
|
1052
|
+
video_url: types.string(),
|
|
1053
|
+
}),
|
|
1054
|
+
z.transform((v) => {
|
|
1055
|
+
return remap$(v, {
|
|
1056
|
+
"created_date": "createdDate",
|
|
1057
|
+
"engagement_rate": "engagementRate",
|
|
1058
|
+
"video_id": "videoId",
|
|
1059
|
+
"video_url": "videoUrl",
|
|
1060
|
+
});
|
|
1061
|
+
}),
|
|
1062
|
+
);
|
|
1063
|
+
|
|
1064
|
+
export function byLikeFromJSON(
|
|
1065
|
+
jsonString: string,
|
|
1066
|
+
): SafeParseResult<ByLike, SDKValidationError> {
|
|
1067
|
+
return safeParse(
|
|
1068
|
+
jsonString,
|
|
1069
|
+
(x) => ByLike$inboundSchema.parse(JSON.parse(x)),
|
|
1070
|
+
`Failed to parse 'ByLike' from JSON`,
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/** @internal */
|
|
1075
|
+
export const ByShare$inboundSchema: z.ZodMiniType<ByShare, unknown> = z.pipe(
|
|
1076
|
+
z.object({
|
|
1077
|
+
created_date: types.string(),
|
|
1078
|
+
description: types.string(),
|
|
1079
|
+
engagement_rate: types.string(),
|
|
1080
|
+
value: types.number(),
|
|
1081
|
+
video_id: types.string(),
|
|
1082
|
+
video_url: types.string(),
|
|
1083
|
+
}),
|
|
1084
|
+
z.transform((v) => {
|
|
1085
|
+
return remap$(v, {
|
|
1086
|
+
"created_date": "createdDate",
|
|
1087
|
+
"engagement_rate": "engagementRate",
|
|
1088
|
+
"video_id": "videoId",
|
|
1089
|
+
"video_url": "videoUrl",
|
|
1090
|
+
});
|
|
1091
|
+
}),
|
|
1092
|
+
);
|
|
1093
|
+
|
|
1094
|
+
export function byShareFromJSON(
|
|
1095
|
+
jsonString: string,
|
|
1096
|
+
): SafeParseResult<ByShare, SDKValidationError> {
|
|
1097
|
+
return safeParse(
|
|
1098
|
+
jsonString,
|
|
1099
|
+
(x) => ByShare$inboundSchema.parse(JSON.parse(x)),
|
|
1100
|
+
`Failed to parse 'ByShare' from JSON`,
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/** @internal */
|
|
1105
|
+
export const ByView$inboundSchema: z.ZodMiniType<ByView, unknown> = z.pipe(
|
|
1106
|
+
z.object({
|
|
1107
|
+
created_date: types.string(),
|
|
1108
|
+
description: types.string(),
|
|
1109
|
+
engagement_rate: types.string(),
|
|
1110
|
+
value: types.number(),
|
|
1111
|
+
video_id: types.string(),
|
|
1112
|
+
video_url: types.string(),
|
|
1113
|
+
}),
|
|
1114
|
+
z.transform((v) => {
|
|
1115
|
+
return remap$(v, {
|
|
1116
|
+
"created_date": "createdDate",
|
|
1117
|
+
"engagement_rate": "engagementRate",
|
|
1118
|
+
"video_id": "videoId",
|
|
1119
|
+
"video_url": "videoUrl",
|
|
1120
|
+
});
|
|
1121
|
+
}),
|
|
1122
|
+
);
|
|
1123
|
+
|
|
1124
|
+
export function byViewFromJSON(
|
|
1125
|
+
jsonString: string,
|
|
1126
|
+
): SafeParseResult<ByView, SDKValidationError> {
|
|
1127
|
+
return safeParse(
|
|
1128
|
+
jsonString,
|
|
1129
|
+
(x) => ByView$inboundSchema.parse(JSON.parse(x)),
|
|
1130
|
+
`Failed to parse 'ByView' from JSON`,
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/** @internal */
|
|
1135
|
+
export const TopPerformingVideosSnapshot$inboundSchema: z.ZodMiniType<
|
|
1136
|
+
TopPerformingVideosSnapshot,
|
|
1137
|
+
unknown
|
|
1138
|
+
> = z.pipe(
|
|
1139
|
+
z.object({
|
|
1140
|
+
by_comments: z.array(z.lazy(() => ByComment$inboundSchema)),
|
|
1141
|
+
by_likes: z.array(z.lazy(() => ByLike$inboundSchema)),
|
|
1142
|
+
by_shares: z.array(z.lazy(() => ByShare$inboundSchema)),
|
|
1143
|
+
by_views: z.array(z.lazy(() => ByView$inboundSchema)),
|
|
1144
|
+
}),
|
|
1145
|
+
z.transform((v) => {
|
|
1146
|
+
return remap$(v, {
|
|
1147
|
+
"by_comments": "byComments",
|
|
1148
|
+
"by_likes": "byLikes",
|
|
1149
|
+
"by_shares": "byShares",
|
|
1150
|
+
"by_views": "byViews",
|
|
1151
|
+
});
|
|
1152
|
+
}),
|
|
1153
|
+
);
|
|
1154
|
+
|
|
1155
|
+
export function topPerformingVideosSnapshotFromJSON(
|
|
1156
|
+
jsonString: string,
|
|
1157
|
+
): SafeParseResult<TopPerformingVideosSnapshot, SDKValidationError> {
|
|
1158
|
+
return safeParse(
|
|
1159
|
+
jsonString,
|
|
1160
|
+
(x) => TopPerformingVideosSnapshot$inboundSchema.parse(JSON.parse(x)),
|
|
1161
|
+
`Failed to parse 'TopPerformingVideosSnapshot' from JSON`,
|
|
1162
|
+
);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
/** @internal */
|
|
1166
|
+
export const BestPerformingVideo$inboundSchema: z.ZodMiniType<
|
|
1167
|
+
BestPerformingVideo,
|
|
1168
|
+
unknown
|
|
1169
|
+
> = z.pipe(
|
|
1170
|
+
z.object({
|
|
1171
|
+
likes: types.number(),
|
|
1172
|
+
video_id: types.string(),
|
|
1173
|
+
views: types.number(),
|
|
1174
|
+
}),
|
|
1175
|
+
z.transform((v) => {
|
|
1176
|
+
return remap$(v, {
|
|
1177
|
+
"video_id": "videoId",
|
|
1178
|
+
});
|
|
1179
|
+
}),
|
|
1180
|
+
);
|
|
1181
|
+
|
|
1182
|
+
export function bestPerformingVideoFromJSON(
|
|
1183
|
+
jsonString: string,
|
|
1184
|
+
): SafeParseResult<BestPerformingVideo, SDKValidationError> {
|
|
1185
|
+
return safeParse(
|
|
1186
|
+
jsonString,
|
|
1187
|
+
(x) => BestPerformingVideo$inboundSchema.parse(JSON.parse(x)),
|
|
1188
|
+
`Failed to parse 'BestPerformingVideo' from JSON`,
|
|
1189
|
+
);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/** @internal */
|
|
1193
|
+
export const ViralPotentialAnalysisResult$inboundSchema: z.ZodMiniType<
|
|
1194
|
+
ViralPotentialAnalysisResult,
|
|
1195
|
+
unknown
|
|
1196
|
+
> = z.pipe(
|
|
1197
|
+
z.object({
|
|
1198
|
+
assessment: types.string(),
|
|
1199
|
+
best_performing_video: z.lazy(() => BestPerformingVideo$inboundSchema),
|
|
1200
|
+
factors: z.array(types.string()),
|
|
1201
|
+
score: types.number(),
|
|
1202
|
+
viral_videos_count: types.number(),
|
|
1203
|
+
}),
|
|
1204
|
+
z.transform((v) => {
|
|
1205
|
+
return remap$(v, {
|
|
1206
|
+
"best_performing_video": "bestPerformingVideo",
|
|
1207
|
+
"viral_videos_count": "viralVideosCount",
|
|
1208
|
+
});
|
|
1209
|
+
}),
|
|
1210
|
+
);
|
|
1211
|
+
|
|
1212
|
+
export function viralPotentialAnalysisResultFromJSON(
|
|
1213
|
+
jsonString: string,
|
|
1214
|
+
): SafeParseResult<ViralPotentialAnalysisResult, SDKValidationError> {
|
|
1215
|
+
return safeParse(
|
|
1216
|
+
jsonString,
|
|
1217
|
+
(x) => ViralPotentialAnalysisResult$inboundSchema.parse(JSON.parse(x)),
|
|
1218
|
+
`Failed to parse 'ViralPotentialAnalysisResult' from JSON`,
|
|
1219
|
+
);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
/** @internal */
|
|
1223
|
+
export const ViralPotentialAnalysis$inboundSchema: z.ZodMiniType<
|
|
1224
|
+
ViralPotentialAnalysis,
|
|
1225
|
+
unknown
|
|
1226
|
+
> = z.object({
|
|
1227
|
+
explanation: types.string(),
|
|
1228
|
+
result: z.lazy(() => ViralPotentialAnalysisResult$inboundSchema),
|
|
1229
|
+
});
|
|
1230
|
+
|
|
1231
|
+
export function viralPotentialAnalysisFromJSON(
|
|
1232
|
+
jsonString: string,
|
|
1233
|
+
): SafeParseResult<ViralPotentialAnalysis, SDKValidationError> {
|
|
1234
|
+
return safeParse(
|
|
1235
|
+
jsonString,
|
|
1236
|
+
(x) => ViralPotentialAnalysis$inboundSchema.parse(JSON.parse(x)),
|
|
1237
|
+
`Failed to parse 'ViralPotentialAnalysis' from JSON`,
|
|
1238
|
+
);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/** @internal */
|
|
1242
|
+
export const PostV1SearchSocialsTiktokData2$inboundSchema: z.ZodMiniType<
|
|
1243
|
+
PostV1SearchSocialsTiktokData2,
|
|
1244
|
+
unknown
|
|
1245
|
+
> = z.pipe(
|
|
1246
|
+
z.object({
|
|
1247
|
+
audience_and_timing_insights: z.lazy(() =>
|
|
1248
|
+
AudienceAndTimingInsights$inboundSchema
|
|
1249
|
+
),
|
|
1250
|
+
content_strategy_deep_dive: z.lazy(() =>
|
|
1251
|
+
ContentStrategyDeepDive$inboundSchema
|
|
1252
|
+
),
|
|
1253
|
+
key_metrics: z.lazy(() => KeyMetrics$inboundSchema),
|
|
1254
|
+
profile_summary: z.lazy(() => ProfileSummary$inboundSchema),
|
|
1255
|
+
report_generated_utc: types.string(),
|
|
1256
|
+
shadow_ban_risk_assessment: z.lazy(() =>
|
|
1257
|
+
ShadowBanRiskAssessment$inboundSchema
|
|
1258
|
+
),
|
|
1259
|
+
top_performing_videos_snapshot: z.lazy(() =>
|
|
1260
|
+
TopPerformingVideosSnapshot$inboundSchema
|
|
1261
|
+
),
|
|
1262
|
+
viral_potential_analysis: z.lazy(() =>
|
|
1263
|
+
ViralPotentialAnalysis$inboundSchema
|
|
1264
|
+
),
|
|
1265
|
+
}),
|
|
1266
|
+
z.transform((v) => {
|
|
1267
|
+
return remap$(v, {
|
|
1268
|
+
"audience_and_timing_insights": "audienceAndTimingInsights",
|
|
1269
|
+
"content_strategy_deep_dive": "contentStrategyDeepDive",
|
|
1270
|
+
"key_metrics": "keyMetrics",
|
|
1271
|
+
"profile_summary": "profileSummary",
|
|
1272
|
+
"report_generated_utc": "reportGeneratedUtc",
|
|
1273
|
+
"shadow_ban_risk_assessment": "shadowBanRiskAssessment",
|
|
1274
|
+
"top_performing_videos_snapshot": "topPerformingVideosSnapshot",
|
|
1275
|
+
"viral_potential_analysis": "viralPotentialAnalysis",
|
|
1276
|
+
});
|
|
1277
|
+
}),
|
|
1278
|
+
);
|
|
1279
|
+
|
|
1280
|
+
export function postV1SearchSocialsTiktokData2FromJSON(
|
|
1281
|
+
jsonString: string,
|
|
1282
|
+
): SafeParseResult<PostV1SearchSocialsTiktokData2, SDKValidationError> {
|
|
1283
|
+
return safeParse(
|
|
1284
|
+
jsonString,
|
|
1285
|
+
(x) => PostV1SearchSocialsTiktokData2$inboundSchema.parse(JSON.parse(x)),
|
|
1286
|
+
`Failed to parse 'PostV1SearchSocialsTiktokData2' from JSON`,
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/** @internal */
|
|
1291
|
+
export const PostV1SearchSocialsTiktokProfile$inboundSchema: z.ZodMiniType<
|
|
1292
|
+
PostV1SearchSocialsTiktokProfile,
|
|
1293
|
+
unknown
|
|
1294
|
+
> = z.pipe(
|
|
1295
|
+
z.object({
|
|
1296
|
+
"Account Created": types.string(),
|
|
1297
|
+
"Avatar URL": types.string(),
|
|
1298
|
+
"Bio Link": types.string(),
|
|
1299
|
+
Country: types.string(),
|
|
1300
|
+
Language: types.string(),
|
|
1301
|
+
"Nickname Last Modified": types.string(),
|
|
1302
|
+
Nickname: types.string(),
|
|
1303
|
+
SecUID: types.string(),
|
|
1304
|
+
"User ID": types.string(),
|
|
1305
|
+
"Username Last Modified": types.string(),
|
|
1306
|
+
Username: types.string(),
|
|
1307
|
+
About: types.optional(types.string()),
|
|
1308
|
+
}),
|
|
1309
|
+
z.transform((v) => {
|
|
1310
|
+
return remap$(v, {
|
|
1311
|
+
"Account Created": "accountCreated",
|
|
1312
|
+
"Avatar URL": "avatarURL",
|
|
1313
|
+
"Bio Link": "bioLink",
|
|
1314
|
+
"Country": "country",
|
|
1315
|
+
"Language": "language",
|
|
1316
|
+
"Nickname Last Modified": "nicknameLastModified",
|
|
1317
|
+
"Nickname": "nickname",
|
|
1318
|
+
"SecUID": "secUID",
|
|
1319
|
+
"User ID": "userID",
|
|
1320
|
+
"Username Last Modified": "usernameLastModified",
|
|
1321
|
+
"Username": "username",
|
|
1322
|
+
"About": "about",
|
|
1323
|
+
});
|
|
1324
|
+
}),
|
|
1325
|
+
);
|
|
1326
|
+
|
|
1327
|
+
export function postV1SearchSocialsTiktokProfileFromJSON(
|
|
1328
|
+
jsonString: string,
|
|
1329
|
+
): SafeParseResult<PostV1SearchSocialsTiktokProfile, SDKValidationError> {
|
|
1330
|
+
return safeParse(
|
|
1331
|
+
jsonString,
|
|
1332
|
+
(x) => PostV1SearchSocialsTiktokProfile$inboundSchema.parse(JSON.parse(x)),
|
|
1333
|
+
`Failed to parse 'PostV1SearchSocialsTiktokProfile' from JSON`,
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/** @internal */
|
|
1338
|
+
export const PostV1SearchSocialsTiktokStats$inboundSchema: z.ZodMiniType<
|
|
1339
|
+
PostV1SearchSocialsTiktokStats,
|
|
1340
|
+
unknown
|
|
1341
|
+
> = z.object({
|
|
1342
|
+
followers: types.string(),
|
|
1343
|
+
following: types.string(),
|
|
1344
|
+
friends: types.string(),
|
|
1345
|
+
hearts: types.string(),
|
|
1346
|
+
videos: types.string(),
|
|
1347
|
+
});
|
|
1348
|
+
|
|
1349
|
+
export function postV1SearchSocialsTiktokStatsFromJSON(
|
|
1350
|
+
jsonString: string,
|
|
1351
|
+
): SafeParseResult<PostV1SearchSocialsTiktokStats, SDKValidationError> {
|
|
1352
|
+
return safeParse(
|
|
1353
|
+
jsonString,
|
|
1354
|
+
(x) => PostV1SearchSocialsTiktokStats$inboundSchema.parse(JSON.parse(x)),
|
|
1355
|
+
`Failed to parse 'PostV1SearchSocialsTiktokStats' from JSON`,
|
|
1356
|
+
);
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
/** @internal */
|
|
1360
|
+
export const PostV1SearchSocialsTiktokData1$inboundSchema: z.ZodMiniType<
|
|
1361
|
+
PostV1SearchSocialsTiktokData1,
|
|
1362
|
+
unknown
|
|
1363
|
+
> = z.object({
|
|
1364
|
+
profile: types.optional(
|
|
1365
|
+
z.lazy(() => PostV1SearchSocialsTiktokProfile$inboundSchema),
|
|
1366
|
+
),
|
|
1367
|
+
stats: types.optional(
|
|
1368
|
+
z.lazy(() => PostV1SearchSocialsTiktokStats$inboundSchema),
|
|
1369
|
+
),
|
|
1370
|
+
});
|
|
1371
|
+
|
|
1372
|
+
export function postV1SearchSocialsTiktokData1FromJSON(
|
|
1373
|
+
jsonString: string,
|
|
1374
|
+
): SafeParseResult<PostV1SearchSocialsTiktokData1, SDKValidationError> {
|
|
1375
|
+
return safeParse(
|
|
1376
|
+
jsonString,
|
|
1377
|
+
(x) => PostV1SearchSocialsTiktokData1$inboundSchema.parse(JSON.parse(x)),
|
|
1378
|
+
`Failed to parse 'PostV1SearchSocialsTiktokData1' from JSON`,
|
|
1379
|
+
);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/** @internal */
|
|
1383
|
+
export const PostV1SearchSocialsTiktokDataUnion$inboundSchema: z.ZodMiniType<
|
|
1384
|
+
PostV1SearchSocialsTiktokDataUnion,
|
|
1385
|
+
unknown
|
|
1386
|
+
> = smartUnion([
|
|
1387
|
+
z.lazy(() => PostV1SearchSocialsTiktokData2$inboundSchema),
|
|
1388
|
+
z.lazy(() => PostV1SearchSocialsTiktokData1$inboundSchema),
|
|
1389
|
+
]);
|
|
1390
|
+
|
|
1391
|
+
export function postV1SearchSocialsTiktokDataUnionFromJSON(
|
|
1392
|
+
jsonString: string,
|
|
1393
|
+
): SafeParseResult<PostV1SearchSocialsTiktokDataUnion, SDKValidationError> {
|
|
1394
|
+
return safeParse(
|
|
1395
|
+
jsonString,
|
|
1396
|
+
(x) =>
|
|
1397
|
+
PostV1SearchSocialsTiktokDataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1398
|
+
`Failed to parse 'PostV1SearchSocialsTiktokDataUnion' from JSON`,
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/** @internal */
|
|
1403
|
+
export const SearchType$inboundSchema: z.ZodMiniType<SearchType, unknown> =
|
|
1404
|
+
openEnums.inboundSchema(SearchType);
|
|
1405
|
+
|
|
1406
|
+
/** @internal */
|
|
1407
|
+
export const PostV1SearchSocialsTiktokData3$inboundSchema: z.ZodMiniType<
|
|
1408
|
+
PostV1SearchSocialsTiktokData3,
|
|
1409
|
+
unknown
|
|
1410
|
+
> = z.object({
|
|
1411
|
+
data: z.array(
|
|
1412
|
+
smartUnion([
|
|
1413
|
+
z.lazy(() => PostV1SearchSocialsTiktokData2$inboundSchema),
|
|
1414
|
+
z.lazy(() => PostV1SearchSocialsTiktokData1$inboundSchema),
|
|
1415
|
+
]),
|
|
1416
|
+
),
|
|
1417
|
+
searchType: SearchType$inboundSchema,
|
|
1418
|
+
success: types.boolean(),
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
export function postV1SearchSocialsTiktokData3FromJSON(
|
|
1422
|
+
jsonString: string,
|
|
1423
|
+
): SafeParseResult<PostV1SearchSocialsTiktokData3, SDKValidationError> {
|
|
1424
|
+
return safeParse(
|
|
1425
|
+
jsonString,
|
|
1426
|
+
(x) => PostV1SearchSocialsTiktokData3$inboundSchema.parse(JSON.parse(x)),
|
|
1427
|
+
`Failed to parse 'PostV1SearchSocialsTiktokData3' from JSON`,
|
|
1428
|
+
);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export const PostV1SearchSocialsTiktokResponse$inboundSchema: z.ZodMiniType<
|
|
1433
|
+
PostV1SearchSocialsTiktokResponse,
|
|
1434
|
+
unknown
|
|
1435
|
+
> = z.object({
|
|
1436
|
+
data: z.lazy(() => PostV1SearchSocialsTiktokData3$inboundSchema),
|
|
1437
|
+
success: types.boolean(),
|
|
1438
|
+
error: types.optional(types.string()),
|
|
1439
|
+
});
|
|
1440
|
+
|
|
1441
|
+
export function postV1SearchSocialsTiktokResponseFromJSON(
|
|
1442
|
+
jsonString: string,
|
|
1443
|
+
): SafeParseResult<PostV1SearchSocialsTiktokResponse, SDKValidationError> {
|
|
1444
|
+
return safeParse(
|
|
1445
|
+
jsonString,
|
|
1446
|
+
(x) => PostV1SearchSocialsTiktokResponse$inboundSchema.parse(JSON.parse(x)),
|
|
1447
|
+
`Failed to parse 'PostV1SearchSocialsTiktokResponse' from JSON`,
|
|
1448
|
+
);
|
|
1449
|
+
}
|