@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.
Files changed (844) hide show
  1. package/.devcontainer/README.md +30 -0
  2. package/FUNCTIONS.md +87 -0
  3. package/README.md +526 -0
  4. package/RUNTIMES.md +48 -0
  5. package/docs/sdks/indicia/README.md +3053 -0
  6. package/esm/core.d.ts +10 -0
  7. package/esm/core.d.ts.map +1 -0
  8. package/esm/core.js +13 -0
  9. package/esm/core.js.map +1 -0
  10. package/esm/funcs/delete-v1-activity-by-id.d.ts +14 -0
  11. package/esm/funcs/delete-v1-activity-by-id.d.ts.map +1 -0
  12. package/esm/funcs/delete-v1-activity-by-id.js +82 -0
  13. package/esm/funcs/delete-v1-activity-by-id.js.map +1 -0
  14. package/esm/funcs/get-v1-activity-by-id.d.ts +14 -0
  15. package/esm/funcs/get-v1-activity-by-id.d.ts.map +1 -0
  16. package/esm/funcs/get-v1-activity-by-id.js +82 -0
  17. package/esm/funcs/get-v1-activity-by-id.js.map +1 -0
  18. package/esm/funcs/get-v1-activity.d.ts +14 -0
  19. package/esm/funcs/get-v1-activity.d.ts.map +1 -0
  20. package/esm/funcs/get-v1-activity.js +81 -0
  21. package/esm/funcs/get-v1-activity.js.map +1 -0
  22. package/esm/funcs/get-v1-info.d.ts +14 -0
  23. package/esm/funcs/get-v1-info.d.ts.map +1 -0
  24. package/esm/funcs/get-v1-info.js +66 -0
  25. package/esm/funcs/get-v1-info.js.map +1 -0
  26. package/esm/funcs/get-v1-organizations-by-id-audit-log.d.ts +14 -0
  27. package/esm/funcs/get-v1-organizations-by-id-audit-log.d.ts.map +1 -0
  28. package/esm/funcs/get-v1-organizations-by-id-audit-log.js +87 -0
  29. package/esm/funcs/get-v1-organizations-by-id-audit-log.js.map +1 -0
  30. package/esm/funcs/get-v1-organizations-by-id-cases.d.ts +14 -0
  31. package/esm/funcs/get-v1-organizations-by-id-cases.d.ts.map +1 -0
  32. package/esm/funcs/get-v1-organizations-by-id-cases.js +82 -0
  33. package/esm/funcs/get-v1-organizations-by-id-cases.js.map +1 -0
  34. package/esm/funcs/get-v1-organizations-by-id-members.d.ts +14 -0
  35. package/esm/funcs/get-v1-organizations-by-id-members.d.ts.map +1 -0
  36. package/esm/funcs/get-v1-organizations-by-id-members.js +82 -0
  37. package/esm/funcs/get-v1-organizations-by-id-members.js.map +1 -0
  38. package/esm/funcs/get-v1-organizations-by-id.d.ts +14 -0
  39. package/esm/funcs/get-v1-organizations-by-id.d.ts.map +1 -0
  40. package/esm/funcs/get-v1-organizations-by-id.js +82 -0
  41. package/esm/funcs/get-v1-organizations-by-id.js.map +1 -0
  42. package/esm/funcs/get-v1-organizations.d.ts +14 -0
  43. package/esm/funcs/get-v1-organizations.d.ts.map +1 -0
  44. package/esm/funcs/get-v1-organizations.js +66 -0
  45. package/esm/funcs/get-v1-organizations.js.map +1 -0
  46. package/esm/funcs/get-v1-pricing.d.ts +14 -0
  47. package/esm/funcs/get-v1-pricing.d.ts.map +1 -0
  48. package/esm/funcs/get-v1-pricing.js +66 -0
  49. package/esm/funcs/get-v1-pricing.js.map +1 -0
  50. package/esm/funcs/post-v1-organizations-by-id-credits.d.ts +14 -0
  51. package/esm/funcs/post-v1-organizations-by-id-credits.d.ts.map +1 -0
  52. package/esm/funcs/post-v1-organizations-by-id-credits.js +83 -0
  53. package/esm/funcs/post-v1-organizations-by-id-credits.js.map +1 -0
  54. package/esm/funcs/post-v1-search-infrastructure-certificates.d.ts +18 -0
  55. package/esm/funcs/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
  56. package/esm/funcs/post-v1-search-infrastructure-certificates.js +85 -0
  57. package/esm/funcs/post-v1-search-infrastructure-certificates.js.map +1 -0
  58. package/esm/funcs/post-v1-search-infrastructure-dns.d.ts +18 -0
  59. package/esm/funcs/post-v1-search-infrastructure-dns.d.ts.map +1 -0
  60. package/esm/funcs/post-v1-search-infrastructure-dns.js +84 -0
  61. package/esm/funcs/post-v1-search-infrastructure-dns.js.map +1 -0
  62. package/esm/funcs/post-v1-search-infrastructure-ipinfo.d.ts +18 -0
  63. package/esm/funcs/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
  64. package/esm/funcs/post-v1-search-infrastructure-ipinfo.js +84 -0
  65. package/esm/funcs/post-v1-search-infrastructure-ipinfo.js.map +1 -0
  66. package/esm/funcs/post-v1-search-infrastructure-portscan.d.ts +144 -0
  67. package/esm/funcs/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
  68. package/esm/funcs/post-v1-search-infrastructure-portscan.js +213 -0
  69. package/esm/funcs/post-v1-search-infrastructure-portscan.js.map +1 -0
  70. package/esm/funcs/post-v1-search-infrastructure-shodan.d.ts +18 -0
  71. package/esm/funcs/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
  72. package/esm/funcs/post-v1-search-infrastructure-shodan.js +84 -0
  73. package/esm/funcs/post-v1-search-infrastructure-shodan.js.map +1 -0
  74. package/esm/funcs/post-v1-search-infrastructure-whois.d.ts +18 -0
  75. package/esm/funcs/post-v1-search-infrastructure-whois.d.ts.map +1 -0
  76. package/esm/funcs/post-v1-search-infrastructure-whois.js +84 -0
  77. package/esm/funcs/post-v1-search-infrastructure-whois.js.map +1 -0
  78. package/esm/funcs/post-v1-search-intelligence-address.d.ts +15 -0
  79. package/esm/funcs/post-v1-search-intelligence-address.d.ts.map +1 -0
  80. package/esm/funcs/post-v1-search-intelligence-address.js +81 -0
  81. package/esm/funcs/post-v1-search-intelligence-address.js.map +1 -0
  82. package/esm/funcs/post-v1-search-intelligence-email.d.ts +18 -0
  83. package/esm/funcs/post-v1-search-intelligence-email.d.ts.map +1 -0
  84. package/esm/funcs/post-v1-search-intelligence-email.js +84 -0
  85. package/esm/funcs/post-v1-search-intelligence-email.js.map +1 -0
  86. package/esm/funcs/post-v1-search-intelligence-facial.d.ts +37 -0
  87. package/esm/funcs/post-v1-search-intelligence-facial.d.ts.map +1 -0
  88. package/esm/funcs/post-v1-search-intelligence-facial.js +106 -0
  89. package/esm/funcs/post-v1-search-intelligence-facial.js.map +1 -0
  90. package/esm/funcs/post-v1-search-intelligence-geolocation.d.ts +29 -0
  91. package/esm/funcs/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
  92. package/esm/funcs/post-v1-search-intelligence-geolocation.js +106 -0
  93. package/esm/funcs/post-v1-search-intelligence-geolocation.js.map +1 -0
  94. package/esm/funcs/post-v1-search-intelligence-gmail.d.ts +18 -0
  95. package/esm/funcs/post-v1-search-intelligence-gmail.d.ts.map +1 -0
  96. package/esm/funcs/post-v1-search-intelligence-gmail.js +84 -0
  97. package/esm/funcs/post-v1-search-intelligence-gmail.js.map +1 -0
  98. package/esm/funcs/post-v1-search-intelligence-hudsonrock.d.ts +18 -0
  99. package/esm/funcs/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
  100. package/esm/funcs/post-v1-search-intelligence-hudsonrock.js +85 -0
  101. package/esm/funcs/post-v1-search-intelligence-hudsonrock.js.map +1 -0
  102. package/esm/funcs/post-v1-search-intelligence-person.d.ts +18 -0
  103. package/esm/funcs/post-v1-search-intelligence-person.d.ts.map +1 -0
  104. package/esm/funcs/post-v1-search-intelligence-person.js +84 -0
  105. package/esm/funcs/post-v1-search-intelligence-person.js.map +1 -0
  106. package/esm/funcs/post-v1-search-intelligence-phone.d.ts +18 -0
  107. package/esm/funcs/post-v1-search-intelligence-phone.d.ts.map +1 -0
  108. package/esm/funcs/post-v1-search-intelligence-phone.js +84 -0
  109. package/esm/funcs/post-v1-search-intelligence-phone.js.map +1 -0
  110. package/esm/funcs/post-v1-search-intelligence-seon.d.ts +18 -0
  111. package/esm/funcs/post-v1-search-intelligence-seon.d.ts.map +1 -0
  112. package/esm/funcs/post-v1-search-intelligence-seon.js +84 -0
  113. package/esm/funcs/post-v1-search-intelligence-seon.js.map +1 -0
  114. package/esm/funcs/post-v1-search-intelligence-web-dbs.d.ts +18 -0
  115. package/esm/funcs/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
  116. package/esm/funcs/post-v1-search-intelligence-web-dbs.js +84 -0
  117. package/esm/funcs/post-v1-search-intelligence-web-dbs.js.map +1 -0
  118. package/esm/funcs/post-v1-search-socials-discord.d.ts +18 -0
  119. package/esm/funcs/post-v1-search-socials-discord.d.ts.map +1 -0
  120. package/esm/funcs/post-v1-search-socials-discord.js +84 -0
  121. package/esm/funcs/post-v1-search-socials-discord.js.map +1 -0
  122. package/esm/funcs/post-v1-search-socials-github.d.ts +18 -0
  123. package/esm/funcs/post-v1-search-socials-github.d.ts.map +1 -0
  124. package/esm/funcs/post-v1-search-socials-github.js +84 -0
  125. package/esm/funcs/post-v1-search-socials-github.js.map +1 -0
  126. package/esm/funcs/post-v1-search-socials-roblox.d.ts +18 -0
  127. package/esm/funcs/post-v1-search-socials-roblox.d.ts.map +1 -0
  128. package/esm/funcs/post-v1-search-socials-roblox.js +84 -0
  129. package/esm/funcs/post-v1-search-socials-roblox.js.map +1 -0
  130. package/esm/funcs/post-v1-search-socials-tiktok.d.ts +18 -0
  131. package/esm/funcs/post-v1-search-socials-tiktok.d.ts.map +1 -0
  132. package/esm/funcs/post-v1-search-socials-tiktok.js +84 -0
  133. package/esm/funcs/post-v1-search-socials-tiktok.js.map +1 -0
  134. package/esm/funcs/post-v1-tools-doogle.d.ts +18 -0
  135. package/esm/funcs/post-v1-tools-doogle.d.ts.map +1 -0
  136. package/esm/funcs/post-v1-tools-doogle.js +84 -0
  137. package/esm/funcs/post-v1-tools-doogle.js.map +1 -0
  138. package/esm/funcs/post-v1-tools-doublecounter.d.ts +18 -0
  139. package/esm/funcs/post-v1-tools-doublecounter.d.ts.map +1 -0
  140. package/esm/funcs/post-v1-tools-doublecounter.js +84 -0
  141. package/esm/funcs/post-v1-tools-doublecounter.js.map +1 -0
  142. package/esm/funcs/post-v1-tools-intelx.d.ts +18 -0
  143. package/esm/funcs/post-v1-tools-intelx.d.ts.map +1 -0
  144. package/esm/funcs/post-v1-tools-intelx.js +84 -0
  145. package/esm/funcs/post-v1-tools-intelx.js.map +1 -0
  146. package/esm/funcs/post-v2-search-socials-username.d.ts +18 -0
  147. package/esm/funcs/post-v2-search-socials-username.d.ts.map +1 -0
  148. package/esm/funcs/post-v2-search-socials-username.js +84 -0
  149. package/esm/funcs/post-v2-search-socials-username.js.map +1 -0
  150. package/esm/hooks/hooks.d.ts +25 -0
  151. package/esm/hooks/hooks.d.ts.map +1 -0
  152. package/esm/hooks/hooks.js +80 -0
  153. package/esm/hooks/hooks.js.map +1 -0
  154. package/esm/hooks/index.d.ts +3 -0
  155. package/esm/hooks/index.d.ts.map +1 -0
  156. package/esm/hooks/index.js +6 -0
  157. package/esm/hooks/index.js.map +1 -0
  158. package/esm/hooks/types.d.ts +77 -0
  159. package/esm/hooks/types.d.ts.map +1 -0
  160. package/esm/hooks/types.js +5 -0
  161. package/esm/hooks/types.js.map +1 -0
  162. package/esm/index.d.ts +6 -0
  163. package/esm/index.d.ts.map +1 -0
  164. package/esm/index.js +8 -0
  165. package/esm/index.js.map +1 -0
  166. package/esm/lib/base64.d.ts +10 -0
  167. package/esm/lib/base64.d.ts.map +1 -0
  168. package/esm/lib/base64.js +31 -0
  169. package/esm/lib/base64.js.map +1 -0
  170. package/esm/lib/config.d.ts +38 -0
  171. package/esm/lib/config.d.ts.map +1 -0
  172. package/esm/lib/config.js +31 -0
  173. package/esm/lib/config.js.map +1 -0
  174. package/esm/lib/encodings.d.ts +54 -0
  175. package/esm/lib/encodings.d.ts.map +1 -0
  176. package/esm/lib/encodings.js +391 -0
  177. package/esm/lib/encodings.js.map +1 -0
  178. package/esm/lib/env.d.ts +15 -0
  179. package/esm/lib/env.d.ts.map +1 -0
  180. package/esm/lib/env.js +44 -0
  181. package/esm/lib/env.js.map +1 -0
  182. package/esm/lib/files.d.ts +26 -0
  183. package/esm/lib/files.d.ts.map +1 -0
  184. package/esm/lib/files.js +91 -0
  185. package/esm/lib/files.js.map +1 -0
  186. package/esm/lib/http.d.ts +67 -0
  187. package/esm/lib/http.d.ts.map +1 -0
  188. package/esm/lib/http.js +209 -0
  189. package/esm/lib/http.js.map +1 -0
  190. package/esm/lib/logger.d.ts +6 -0
  191. package/esm/lib/logger.d.ts.map +1 -0
  192. package/esm/lib/logger.js +5 -0
  193. package/esm/lib/logger.js.map +1 -0
  194. package/esm/lib/matchers.d.ts +59 -0
  195. package/esm/lib/matchers.d.ts.map +1 -0
  196. package/esm/lib/matchers.js +202 -0
  197. package/esm/lib/matchers.js.map +1 -0
  198. package/esm/lib/primitives.d.ts +27 -0
  199. package/esm/lib/primitives.d.ts.map +1 -0
  200. package/esm/lib/primitives.js +120 -0
  201. package/esm/lib/primitives.js.map +1 -0
  202. package/esm/lib/retries.d.ts +38 -0
  203. package/esm/lib/retries.d.ts.map +1 -0
  204. package/esm/lib/retries.js +157 -0
  205. package/esm/lib/retries.js.map +1 -0
  206. package/esm/lib/schemas.d.ts +21 -0
  207. package/esm/lib/schemas.d.ts.map +1 -0
  208. package/esm/lib/schemas.js +57 -0
  209. package/esm/lib/schemas.js.map +1 -0
  210. package/esm/lib/sdks.d.ts +63 -0
  211. package/esm/lib/sdks.d.ts.map +1 -0
  212. package/esm/lib/sdks.js +294 -0
  213. package/esm/lib/sdks.js.map +1 -0
  214. package/esm/lib/security.d.ts +83 -0
  215. package/esm/lib/security.d.ts.map +1 -0
  216. package/esm/lib/security.js +149 -0
  217. package/esm/lib/security.js.map +1 -0
  218. package/esm/lib/url.d.ts +5 -0
  219. package/esm/lib/url.d.ts.map +1 -0
  220. package/esm/lib/url.js +24 -0
  221. package/esm/lib/url.js.map +1 -0
  222. package/esm/models/errors/http-client-errors.d.ts +44 -0
  223. package/esm/models/errors/http-client-errors.d.ts.map +1 -0
  224. package/esm/models/errors/http-client-errors.js +56 -0
  225. package/esm/models/errors/http-client-errors.js.map +1 -0
  226. package/esm/models/errors/index.d.ts +30 -0
  227. package/esm/models/errors/index.d.ts.map +1 -0
  228. package/esm/models/errors/index.js +33 -0
  229. package/esm/models/errors/index.js.map +1 -0
  230. package/esm/models/errors/indicia-default-error.d.ts +10 -0
  231. package/esm/models/errors/indicia-default-error.d.ts.map +1 -0
  232. package/esm/models/errors/indicia-default-error.js +30 -0
  233. package/esm/models/errors/indicia-default-error.js.map +1 -0
  234. package/esm/models/errors/indicia-error.d.ts +19 -0
  235. package/esm/models/errors/indicia-error.d.ts.map +1 -0
  236. package/esm/models/errors/indicia-error.js +26 -0
  237. package/esm/models/errors/indicia-error.js.map +1 -0
  238. package/esm/models/errors/post-v1-search-infrastructure-certificates.d.ts +29 -0
  239. package/esm/models/errors/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
  240. package/esm/models/errors/post-v1-search-infrastructure-certificates.js +46 -0
  241. package/esm/models/errors/post-v1-search-infrastructure-certificates.js.map +1 -0
  242. package/esm/models/errors/post-v1-search-infrastructure-dns.d.ts +26 -0
  243. package/esm/models/errors/post-v1-search-infrastructure-dns.d.ts.map +1 -0
  244. package/esm/models/errors/post-v1-search-infrastructure-dns.js +42 -0
  245. package/esm/models/errors/post-v1-search-infrastructure-dns.js.map +1 -0
  246. package/esm/models/errors/post-v1-search-infrastructure-ipinfo.d.ts +26 -0
  247. package/esm/models/errors/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
  248. package/esm/models/errors/post-v1-search-infrastructure-ipinfo.js +41 -0
  249. package/esm/models/errors/post-v1-search-infrastructure-ipinfo.js.map +1 -0
  250. package/esm/models/errors/post-v1-search-infrastructure-portscan.d.ts +72 -0
  251. package/esm/models/errors/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
  252. package/esm/models/errors/post-v1-search-infrastructure-portscan.js +110 -0
  253. package/esm/models/errors/post-v1-search-infrastructure-portscan.js.map +1 -0
  254. package/esm/models/errors/post-v1-search-infrastructure-shodan.d.ts +26 -0
  255. package/esm/models/errors/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
  256. package/esm/models/errors/post-v1-search-infrastructure-shodan.js +41 -0
  257. package/esm/models/errors/post-v1-search-infrastructure-shodan.js.map +1 -0
  258. package/esm/models/errors/post-v1-search-infrastructure-whois.d.ts +26 -0
  259. package/esm/models/errors/post-v1-search-infrastructure-whois.d.ts.map +1 -0
  260. package/esm/models/errors/post-v1-search-infrastructure-whois.js +42 -0
  261. package/esm/models/errors/post-v1-search-infrastructure-whois.js.map +1 -0
  262. package/esm/models/errors/post-v1-search-intelligence-address.d.ts +26 -0
  263. package/esm/models/errors/post-v1-search-intelligence-address.d.ts.map +1 -0
  264. package/esm/models/errors/post-v1-search-intelligence-address.js +42 -0
  265. package/esm/models/errors/post-v1-search-intelligence-address.js.map +1 -0
  266. package/esm/models/errors/post-v1-search-intelligence-email.d.ts +26 -0
  267. package/esm/models/errors/post-v1-search-intelligence-email.d.ts.map +1 -0
  268. package/esm/models/errors/post-v1-search-intelligence-email.js +42 -0
  269. package/esm/models/errors/post-v1-search-intelligence-email.js.map +1 -0
  270. package/esm/models/errors/post-v1-search-intelligence-facial.d.ts +72 -0
  271. package/esm/models/errors/post-v1-search-intelligence-facial.d.ts.map +1 -0
  272. package/esm/models/errors/post-v1-search-intelligence-facial.js +112 -0
  273. package/esm/models/errors/post-v1-search-intelligence-facial.js.map +1 -0
  274. package/esm/models/errors/post-v1-search-intelligence-geolocation.d.ts +72 -0
  275. package/esm/models/errors/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
  276. package/esm/models/errors/post-v1-search-intelligence-geolocation.js +110 -0
  277. package/esm/models/errors/post-v1-search-intelligence-geolocation.js.map +1 -0
  278. package/esm/models/errors/post-v1-search-intelligence-gmail.d.ts +26 -0
  279. package/esm/models/errors/post-v1-search-intelligence-gmail.d.ts.map +1 -0
  280. package/esm/models/errors/post-v1-search-intelligence-gmail.js +42 -0
  281. package/esm/models/errors/post-v1-search-intelligence-gmail.js.map +1 -0
  282. package/esm/models/errors/post-v1-search-intelligence-hudsonrock.d.ts +26 -0
  283. package/esm/models/errors/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
  284. package/esm/models/errors/post-v1-search-intelligence-hudsonrock.js +41 -0
  285. package/esm/models/errors/post-v1-search-intelligence-hudsonrock.js.map +1 -0
  286. package/esm/models/errors/post-v1-search-intelligence-person.d.ts +26 -0
  287. package/esm/models/errors/post-v1-search-intelligence-person.d.ts.map +1 -0
  288. package/esm/models/errors/post-v1-search-intelligence-person.js +42 -0
  289. package/esm/models/errors/post-v1-search-intelligence-person.js.map +1 -0
  290. package/esm/models/errors/post-v1-search-intelligence-phone.d.ts +26 -0
  291. package/esm/models/errors/post-v1-search-intelligence-phone.d.ts.map +1 -0
  292. package/esm/models/errors/post-v1-search-intelligence-phone.js +42 -0
  293. package/esm/models/errors/post-v1-search-intelligence-phone.js.map +1 -0
  294. package/esm/models/errors/post-v1-search-intelligence-seon.d.ts +26 -0
  295. package/esm/models/errors/post-v1-search-intelligence-seon.d.ts.map +1 -0
  296. package/esm/models/errors/post-v1-search-intelligence-seon.js +42 -0
  297. package/esm/models/errors/post-v1-search-intelligence-seon.js.map +1 -0
  298. package/esm/models/errors/post-v1-search-intelligence-web-dbs.d.ts +49 -0
  299. package/esm/models/errors/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
  300. package/esm/models/errors/post-v1-search-intelligence-web-dbs.js +77 -0
  301. package/esm/models/errors/post-v1-search-intelligence-web-dbs.js.map +1 -0
  302. package/esm/models/errors/post-v1-search-socials-discord.d.ts +26 -0
  303. package/esm/models/errors/post-v1-search-socials-discord.d.ts.map +1 -0
  304. package/esm/models/errors/post-v1-search-socials-discord.js +42 -0
  305. package/esm/models/errors/post-v1-search-socials-discord.js.map +1 -0
  306. package/esm/models/errors/post-v1-search-socials-github.d.ts +26 -0
  307. package/esm/models/errors/post-v1-search-socials-github.d.ts.map +1 -0
  308. package/esm/models/errors/post-v1-search-socials-github.js +41 -0
  309. package/esm/models/errors/post-v1-search-socials-github.js.map +1 -0
  310. package/esm/models/errors/post-v1-search-socials-roblox.d.ts +26 -0
  311. package/esm/models/errors/post-v1-search-socials-roblox.d.ts.map +1 -0
  312. package/esm/models/errors/post-v1-search-socials-roblox.js +41 -0
  313. package/esm/models/errors/post-v1-search-socials-roblox.js.map +1 -0
  314. package/esm/models/errors/post-v1-search-socials-tiktok.d.ts +26 -0
  315. package/esm/models/errors/post-v1-search-socials-tiktok.d.ts.map +1 -0
  316. package/esm/models/errors/post-v1-search-socials-tiktok.js +41 -0
  317. package/esm/models/errors/post-v1-search-socials-tiktok.js.map +1 -0
  318. package/esm/models/errors/post-v1-tools-doogle.d.ts +29 -0
  319. package/esm/models/errors/post-v1-tools-doogle.d.ts.map +1 -0
  320. package/esm/models/errors/post-v1-tools-doogle.js +46 -0
  321. package/esm/models/errors/post-v1-tools-doogle.js.map +1 -0
  322. package/esm/models/errors/post-v1-tools-doublecounter.d.ts +26 -0
  323. package/esm/models/errors/post-v1-tools-doublecounter.d.ts.map +1 -0
  324. package/esm/models/errors/post-v1-tools-doublecounter.js +41 -0
  325. package/esm/models/errors/post-v1-tools-doublecounter.js.map +1 -0
  326. package/esm/models/errors/post-v1-tools-intelx.d.ts +49 -0
  327. package/esm/models/errors/post-v1-tools-intelx.d.ts.map +1 -0
  328. package/esm/models/errors/post-v1-tools-intelx.js +75 -0
  329. package/esm/models/errors/post-v1-tools-intelx.js.map +1 -0
  330. package/esm/models/errors/post-v2-search-socials-username.d.ts +26 -0
  331. package/esm/models/errors/post-v2-search-socials-username.d.ts.map +1 -0
  332. package/esm/models/errors/post-v2-search-socials-username.js +42 -0
  333. package/esm/models/errors/post-v2-search-socials-username.js.map +1 -0
  334. package/esm/models/errors/response-validation-error.d.ts +26 -0
  335. package/esm/models/errors/response-validation-error.d.ts.map +1 -0
  336. package/esm/models/errors/response-validation-error.js +37 -0
  337. package/esm/models/errors/response-validation-error.js.map +1 -0
  338. package/esm/models/errors/sdk-validation-error.d.ts +21 -0
  339. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  340. package/esm/models/errors/sdk-validation-error.js +52 -0
  341. package/esm/models/errors/sdk-validation-error.js.map +1 -0
  342. package/esm/models/index.d.ts +2 -0
  343. package/esm/models/index.d.ts.map +1 -0
  344. package/esm/models/index.js +5 -0
  345. package/esm/models/index.js.map +1 -0
  346. package/esm/models/operations/delete-v1-activity-by-id.d.ts +15 -0
  347. package/esm/models/operations/delete-v1-activity-by-id.d.ts.map +1 -0
  348. package/esm/models/operations/delete-v1-activity-by-id.js +12 -0
  349. package/esm/models/operations/delete-v1-activity-by-id.js.map +1 -0
  350. package/esm/models/operations/get-v1-activity-by-id.d.ts +105 -0
  351. package/esm/models/operations/get-v1-activity-by-id.d.ts.map +1 -0
  352. package/esm/models/operations/get-v1-activity-by-id.js +107 -0
  353. package/esm/models/operations/get-v1-activity-by-id.js.map +1 -0
  354. package/esm/models/operations/get-v1-activity.d.ts +104 -0
  355. package/esm/models/operations/get-v1-activity.d.ts.map +1 -0
  356. package/esm/models/operations/get-v1-activity.js +108 -0
  357. package/esm/models/operations/get-v1-activity.js.map +1 -0
  358. package/esm/models/operations/get-v1-info.d.ts +136 -0
  359. package/esm/models/operations/get-v1-info.d.ts.map +1 -0
  360. package/esm/models/operations/get-v1-info.js +119 -0
  361. package/esm/models/operations/get-v1-info.js.map +1 -0
  362. package/esm/models/operations/get-v1-organizations-by-id-audit-log.d.ts +43 -0
  363. package/esm/models/operations/get-v1-organizations-by-id-audit-log.d.ts.map +1 -0
  364. package/esm/models/operations/get-v1-organizations-by-id-audit-log.js +35 -0
  365. package/esm/models/operations/get-v1-organizations-by-id-audit-log.js.map +1 -0
  366. package/esm/models/operations/get-v1-organizations-by-id-cases.d.ts +38 -0
  367. package/esm/models/operations/get-v1-organizations-by-id-cases.d.ts.map +1 -0
  368. package/esm/models/operations/get-v1-organizations-by-id-cases.js +34 -0
  369. package/esm/models/operations/get-v1-organizations-by-id-cases.js.map +1 -0
  370. package/esm/models/operations/get-v1-organizations-by-id-members.d.ts +39 -0
  371. package/esm/models/operations/get-v1-organizations-by-id-members.d.ts.map +1 -0
  372. package/esm/models/operations/get-v1-organizations-by-id-members.js +35 -0
  373. package/esm/models/operations/get-v1-organizations-by-id-members.js.map +1 -0
  374. package/esm/models/operations/get-v1-organizations-by-id.d.ts +41 -0
  375. package/esm/models/operations/get-v1-organizations-by-id.d.ts.map +1 -0
  376. package/esm/models/operations/get-v1-organizations-by-id.js +37 -0
  377. package/esm/models/operations/get-v1-organizations-by-id.js.map +1 -0
  378. package/esm/models/operations/get-v1-organizations.d.ts +31 -0
  379. package/esm/models/operations/get-v1-organizations.d.ts.map +1 -0
  380. package/esm/models/operations/get-v1-organizations.js +30 -0
  381. package/esm/models/operations/get-v1-organizations.js.map +1 -0
  382. package/esm/models/operations/get-v1-pricing.d.ts +17 -0
  383. package/esm/models/operations/get-v1-pricing.d.ts.map +1 -0
  384. package/esm/models/operations/get-v1-pricing.js +16 -0
  385. package/esm/models/operations/get-v1-pricing.js.map +1 -0
  386. package/esm/models/operations/index.d.ts +36 -0
  387. package/esm/models/operations/index.d.ts.map +1 -0
  388. package/esm/models/operations/index.js +39 -0
  389. package/esm/models/operations/index.js.map +1 -0
  390. package/esm/models/operations/post-v1-organizations-by-id-credits.d.ts +39 -0
  391. package/esm/models/operations/post-v1-organizations-by-id-credits.d.ts.map +1 -0
  392. package/esm/models/operations/post-v1-organizations-by-id-credits.js +32 -0
  393. package/esm/models/operations/post-v1-organizations-by-id-credits.js.map +1 -0
  394. package/esm/models/operations/post-v1-search-infrastructure-certificates.d.ts +53 -0
  395. package/esm/models/operations/post-v1-search-infrastructure-certificates.d.ts.map +1 -0
  396. package/esm/models/operations/post-v1-search-infrastructure-certificates.js +78 -0
  397. package/esm/models/operations/post-v1-search-infrastructure-certificates.js.map +1 -0
  398. package/esm/models/operations/post-v1-search-infrastructure-dns.d.ts +194 -0
  399. package/esm/models/operations/post-v1-search-infrastructure-dns.d.ts.map +1 -0
  400. package/esm/models/operations/post-v1-search-infrastructure-dns.js +268 -0
  401. package/esm/models/operations/post-v1-search-infrastructure-dns.js.map +1 -0
  402. package/esm/models/operations/post-v1-search-infrastructure-ipinfo.d.ts +58 -0
  403. package/esm/models/operations/post-v1-search-infrastructure-ipinfo.d.ts.map +1 -0
  404. package/esm/models/operations/post-v1-search-infrastructure-ipinfo.js +57 -0
  405. package/esm/models/operations/post-v1-search-infrastructure-ipinfo.js.map +1 -0
  406. package/esm/models/operations/post-v1-search-infrastructure-portscan.d.ts +28 -0
  407. package/esm/models/operations/post-v1-search-infrastructure-portscan.d.ts.map +1 -0
  408. package/esm/models/operations/post-v1-search-infrastructure-portscan.js +22 -0
  409. package/esm/models/operations/post-v1-search-infrastructure-portscan.js.map +1 -0
  410. package/esm/models/operations/post-v1-search-infrastructure-shodan.d.ts +215 -0
  411. package/esm/models/operations/post-v1-search-infrastructure-shodan.d.ts.map +1 -0
  412. package/esm/models/operations/post-v1-search-infrastructure-shodan.js +271 -0
  413. package/esm/models/operations/post-v1-search-infrastructure-shodan.js.map +1 -0
  414. package/esm/models/operations/post-v1-search-infrastructure-whois.d.ts +97 -0
  415. package/esm/models/operations/post-v1-search-infrastructure-whois.d.ts.map +1 -0
  416. package/esm/models/operations/post-v1-search-infrastructure-whois.js +123 -0
  417. package/esm/models/operations/post-v1-search-infrastructure-whois.js.map +1 -0
  418. package/esm/models/operations/post-v1-search-intelligence-address.d.ts +77 -0
  419. package/esm/models/operations/post-v1-search-intelligence-address.d.ts.map +1 -0
  420. package/esm/models/operations/post-v1-search-intelligence-address.js +82 -0
  421. package/esm/models/operations/post-v1-search-intelligence-address.js.map +1 -0
  422. package/esm/models/operations/post-v1-search-intelligence-email.d.ts +39 -0
  423. package/esm/models/operations/post-v1-search-intelligence-email.d.ts.map +1 -0
  424. package/esm/models/operations/post-v1-search-intelligence-email.js +38 -0
  425. package/esm/models/operations/post-v1-search-intelligence-email.js.map +1 -0
  426. package/esm/models/operations/post-v1-search-intelligence-facial.d.ts +12 -0
  427. package/esm/models/operations/post-v1-search-intelligence-facial.d.ts.map +1 -0
  428. package/esm/models/operations/post-v1-search-intelligence-facial.js +12 -0
  429. package/esm/models/operations/post-v1-search-intelligence-facial.js.map +1 -0
  430. package/esm/models/operations/post-v1-search-intelligence-geolocation.d.ts +24 -0
  431. package/esm/models/operations/post-v1-search-intelligence-geolocation.d.ts.map +1 -0
  432. package/esm/models/operations/post-v1-search-intelligence-geolocation.js +20 -0
  433. package/esm/models/operations/post-v1-search-intelligence-geolocation.js.map +1 -0
  434. package/esm/models/operations/post-v1-search-intelligence-gmail.d.ts +196 -0
  435. package/esm/models/operations/post-v1-search-intelligence-gmail.d.ts.map +1 -0
  436. package/esm/models/operations/post-v1-search-intelligence-gmail.js +214 -0
  437. package/esm/models/operations/post-v1-search-intelligence-gmail.js.map +1 -0
  438. package/esm/models/operations/post-v1-search-intelligence-hudsonrock.d.ts +265 -0
  439. package/esm/models/operations/post-v1-search-intelligence-hudsonrock.d.ts.map +1 -0
  440. package/esm/models/operations/post-v1-search-intelligence-hudsonrock.js +355 -0
  441. package/esm/models/operations/post-v1-search-intelligence-hudsonrock.js.map +1 -0
  442. package/esm/models/operations/post-v1-search-intelligence-person.d.ts +74 -0
  443. package/esm/models/operations/post-v1-search-intelligence-person.d.ts.map +1 -0
  444. package/esm/models/operations/post-v1-search-intelligence-person.js +81 -0
  445. package/esm/models/operations/post-v1-search-intelligence-person.js.map +1 -0
  446. package/esm/models/operations/post-v1-search-intelligence-phone.d.ts +111 -0
  447. package/esm/models/operations/post-v1-search-intelligence-phone.d.ts.map +1 -0
  448. package/esm/models/operations/post-v1-search-intelligence-phone.js +154 -0
  449. package/esm/models/operations/post-v1-search-intelligence-phone.js.map +1 -0
  450. package/esm/models/operations/post-v1-search-intelligence-seon.d.ts +413 -0
  451. package/esm/models/operations/post-v1-search-intelligence-seon.d.ts.map +1 -0
  452. package/esm/models/operations/post-v1-search-intelligence-seon.js +598 -0
  453. package/esm/models/operations/post-v1-search-intelligence-seon.js.map +1 -0
  454. package/esm/models/operations/post-v1-search-intelligence-web-dbs.d.ts +581 -0
  455. package/esm/models/operations/post-v1-search-intelligence-web-dbs.d.ts.map +1 -0
  456. package/esm/models/operations/post-v1-search-intelligence-web-dbs.js +736 -0
  457. package/esm/models/operations/post-v1-search-intelligence-web-dbs.js.map +1 -0
  458. package/esm/models/operations/post-v1-search-socials-discord.d.ts +243 -0
  459. package/esm/models/operations/post-v1-search-socials-discord.d.ts.map +1 -0
  460. package/esm/models/operations/post-v1-search-socials-discord.js +264 -0
  461. package/esm/models/operations/post-v1-search-socials-discord.js.map +1 -0
  462. package/esm/models/operations/post-v1-search-socials-github.d.ts +48 -0
  463. package/esm/models/operations/post-v1-search-socials-github.d.ts.map +1 -0
  464. package/esm/models/operations/post-v1-search-socials-github.js +52 -0
  465. package/esm/models/operations/post-v1-search-socials-github.js.map +1 -0
  466. package/esm/models/operations/post-v1-search-socials-roblox.d.ts +119 -0
  467. package/esm/models/operations/post-v1-search-socials-roblox.d.ts.map +1 -0
  468. package/esm/models/operations/post-v1-search-socials-roblox.js +118 -0
  469. package/esm/models/operations/post-v1-search-socials-roblox.js.map +1 -0
  470. package/esm/models/operations/post-v1-search-socials-tiktok.d.ts +389 -0
  471. package/esm/models/operations/post-v1-search-socials-tiktok.d.ts.map +1 -0
  472. package/esm/models/operations/post-v1-search-socials-tiktok.js +617 -0
  473. package/esm/models/operations/post-v1-search-socials-tiktok.js.map +1 -0
  474. package/esm/models/operations/post-v1-tools-doogle.d.ts +97 -0
  475. package/esm/models/operations/post-v1-tools-doogle.d.ts.map +1 -0
  476. package/esm/models/operations/post-v1-tools-doogle.js +103 -0
  477. package/esm/models/operations/post-v1-tools-doogle.js.map +1 -0
  478. package/esm/models/operations/post-v1-tools-doublecounter.d.ts +24 -0
  479. package/esm/models/operations/post-v1-tools-doublecounter.d.ts.map +1 -0
  480. package/esm/models/operations/post-v1-tools-doublecounter.js +22 -0
  481. package/esm/models/operations/post-v1-tools-doublecounter.js.map +1 -0
  482. package/esm/models/operations/post-v1-tools-intelx.d.ts +88 -0
  483. package/esm/models/operations/post-v1-tools-intelx.d.ts.map +1 -0
  484. package/esm/models/operations/post-v1-tools-intelx.js +82 -0
  485. package/esm/models/operations/post-v1-tools-intelx.js.map +1 -0
  486. package/esm/models/operations/post-v2-search-socials-username.d.ts +282 -0
  487. package/esm/models/operations/post-v2-search-socials-username.d.ts.map +1 -0
  488. package/esm/models/operations/post-v2-search-socials-username.js +416 -0
  489. package/esm/models/operations/post-v2-search-socials-username.js.map +1 -0
  490. package/esm/models/security.d.ts +12 -0
  491. package/esm/models/security.d.ts.map +1 -0
  492. package/esm/models/security.js +17 -0
  493. package/esm/models/security.js.map +1 -0
  494. package/esm/sdk/index.d.ts +2 -0
  495. package/esm/sdk/index.d.ts.map +1 -0
  496. package/esm/sdk/index.js +5 -0
  497. package/esm/sdk/index.js.map +1 -0
  498. package/esm/sdk/sdk.d.ts +370 -0
  499. package/esm/sdk/sdk.d.ts.map +1 -0
  500. package/esm/sdk/sdk.js +478 -0
  501. package/esm/sdk/sdk.js.map +1 -0
  502. package/esm/types/async.d.ts +23 -0
  503. package/esm/types/async.d.ts.map +1 -0
  504. package/esm/types/async.js +28 -0
  505. package/esm/types/async.js.map +1 -0
  506. package/esm/types/blobs.d.ts +4 -0
  507. package/esm/types/blobs.d.ts.map +1 -0
  508. package/esm/types/blobs.js +25 -0
  509. package/esm/types/blobs.js.map +1 -0
  510. package/esm/types/const-date-time.d.ts +3 -0
  511. package/esm/types/const-date-time.d.ts.map +1 -0
  512. package/esm/types/const-date-time.js +10 -0
  513. package/esm/types/const-date-time.js.map +1 -0
  514. package/esm/types/default-to-zero-value.d.ts +12 -0
  515. package/esm/types/default-to-zero-value.d.ts.map +1 -0
  516. package/esm/types/default-to-zero-value.js +31 -0
  517. package/esm/types/default-to-zero-value.js.map +1 -0
  518. package/esm/types/enums.d.ts +9 -0
  519. package/esm/types/enums.d.ts.map +1 -0
  520. package/esm/types/enums.js +27 -0
  521. package/esm/types/enums.js.map +1 -0
  522. package/esm/types/fp.d.ts +31 -0
  523. package/esm/types/fp.d.ts.map +1 -0
  524. package/esm/types/fp.js +31 -0
  525. package/esm/types/fp.js.map +1 -0
  526. package/esm/types/index.d.ts +10 -0
  527. package/esm/types/index.d.ts.map +1 -0
  528. package/esm/types/index.js +10 -0
  529. package/esm/types/index.js.map +1 -0
  530. package/esm/types/operations.d.ts +27 -0
  531. package/esm/types/operations.d.ts.map +1 -0
  532. package/esm/types/operations.js +77 -0
  533. package/esm/types/operations.js.map +1 -0
  534. package/esm/types/primitives.d.ts +9 -0
  535. package/esm/types/primitives.d.ts.map +1 -0
  536. package/esm/types/primitives.js +109 -0
  537. package/esm/types/primitives.js.map +1 -0
  538. package/esm/types/rfcdate.d.ts +21 -0
  539. package/esm/types/rfcdate.d.ts.map +1 -0
  540. package/esm/types/rfcdate.js +43 -0
  541. package/esm/types/rfcdate.js.map +1 -0
  542. package/esm/types/smart-union.d.ts +7 -0
  543. package/esm/types/smart-union.d.ts.map +1 -0
  544. package/esm/types/smart-union.js +117 -0
  545. package/esm/types/smart-union.js.map +1 -0
  546. package/esm/types/streams.d.ts +2 -0
  547. package/esm/types/streams.d.ts.map +1 -0
  548. package/esm/types/streams.js +15 -0
  549. package/esm/types/streams.js.map +1 -0
  550. package/esm/types/unrecognized.d.ts +16 -0
  551. package/esm/types/unrecognized.d.ts.map +1 -0
  552. package/esm/types/unrecognized.js +31 -0
  553. package/esm/types/unrecognized.js.map +1 -0
  554. package/examples/README.md +31 -0
  555. package/examples/getV1Info.example.ts +26 -0
  556. package/examples/node_modules/@esbuild/darwin-arm64/README.md +3 -0
  557. package/examples/node_modules/@types/node/LICENSE +21 -0
  558. package/examples/node_modules/@types/node/README.md +15 -0
  559. package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
  560. package/examples/node_modules/@types/node/assert.d.ts +1062 -0
  561. package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
  562. package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  563. package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
  564. package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
  565. package/examples/node_modules/@types/node/cluster.d.ts +577 -0
  566. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  567. package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
  568. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  569. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  570. package/examples/node_modules/@types/node/console.d.ts +452 -0
  571. package/examples/node_modules/@types/node/constants.d.ts +21 -0
  572. package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
  573. package/examples/node_modules/@types/node/dgram.d.ts +597 -0
  574. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  575. package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
  576. package/examples/node_modules/@types/node/dns.d.ts +871 -0
  577. package/examples/node_modules/@types/node/domain.d.ts +170 -0
  578. package/examples/node_modules/@types/node/events.d.ts +977 -0
  579. package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
  580. package/examples/node_modules/@types/node/fs.d.ts +4375 -0
  581. package/examples/node_modules/@types/node/globals.d.ts +172 -0
  582. package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  583. package/examples/node_modules/@types/node/http.d.ts +2049 -0
  584. package/examples/node_modules/@types/node/http2.d.ts +2712 -0
  585. package/examples/node_modules/@types/node/https.d.ts +578 -0
  586. package/examples/node_modules/@types/node/index.d.ts +93 -0
  587. package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  588. package/examples/node_modules/@types/node/module.d.ts +539 -0
  589. package/examples/node_modules/@types/node/net.d.ts +1031 -0
  590. package/examples/node_modules/@types/node/os.d.ts +506 -0
  591. package/examples/node_modules/@types/node/path.d.ts +200 -0
  592. package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
  593. package/examples/node_modules/@types/node/process.d.ts +1961 -0
  594. package/examples/node_modules/@types/node/punycode.d.ts +117 -0
  595. package/examples/node_modules/@types/node/querystring.d.ts +152 -0
  596. package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
  597. package/examples/node_modules/@types/node/readline.d.ts +589 -0
  598. package/examples/node_modules/@types/node/repl.d.ts +430 -0
  599. package/examples/node_modules/@types/node/sea.d.ts +153 -0
  600. package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
  601. package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
  602. package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
  603. package/examples/node_modules/@types/node/stream.d.ts +1698 -0
  604. package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
  605. package/examples/node_modules/@types/node/test.d.ts +1787 -0
  606. package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
  607. package/examples/node_modules/@types/node/timers.d.ts +286 -0
  608. package/examples/node_modules/@types/node/tls.d.ts +1259 -0
  609. package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
  610. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  611. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  612. package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  613. package/examples/node_modules/@types/node/tty.d.ts +208 -0
  614. package/examples/node_modules/@types/node/url.d.ts +964 -0
  615. package/examples/node_modules/@types/node/util.d.ts +2331 -0
  616. package/examples/node_modules/@types/node/v8.d.ts +809 -0
  617. package/examples/node_modules/@types/node/vm.d.ts +1001 -0
  618. package/examples/node_modules/@types/node/wasi.d.ts +181 -0
  619. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  620. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  621. package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
  622. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  623. package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
  624. package/examples/node_modules/@types/node/zlib.d.ts +598 -0
  625. package/examples/node_modules/dotenv/LICENSE +23 -0
  626. package/examples/node_modules/dotenv/README.md +645 -0
  627. package/examples/node_modules/dotenv/config.d.ts +1 -0
  628. package/examples/node_modules/dotenv/config.js +9 -0
  629. package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
  630. package/examples/node_modules/dotenv/lib/env-options.js +28 -0
  631. package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
  632. package/examples/node_modules/dotenv/lib/main.js +386 -0
  633. package/examples/node_modules/esbuild/LICENSE.md +21 -0
  634. package/examples/node_modules/esbuild/README.md +3 -0
  635. package/examples/node_modules/esbuild/install.js +300 -0
  636. package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
  637. package/examples/node_modules/esbuild/lib/main.js +2532 -0
  638. package/examples/node_modules/fsevents/LICENSE +22 -0
  639. package/examples/node_modules/fsevents/README.md +89 -0
  640. package/examples/node_modules/fsevents/fsevents.d.ts +46 -0
  641. package/examples/node_modules/fsevents/fsevents.js +83 -0
  642. package/examples/node_modules/tsx/LICENSE +21 -0
  643. package/examples/node_modules/tsx/README.md +32 -0
  644. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
  645. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
  646. package/examples/node_modules/tsx/dist/cli.mjs +55 -0
  647. package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +1 -0
  648. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
  649. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -0
  650. package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
  651. package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +14 -0
  652. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
  653. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
  654. package/examples/node_modules/tsx/dist/loader.mjs +1 -0
  655. package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
  656. package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +1 -0
  657. package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
  658. package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
  659. package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
  660. package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +2 -0
  661. package/examples/node_modules/tsx/dist/repl.mjs +3 -0
  662. package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +1 -0
  663. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
  664. package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +1 -0
  665. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
  666. package/examples/node_modules/undici-types/LICENSE +21 -0
  667. package/examples/node_modules/undici-types/README.md +6 -0
  668. package/examples/node_modules/undici-types/agent.d.ts +31 -0
  669. package/examples/node_modules/undici-types/api.d.ts +43 -0
  670. package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
  671. package/examples/node_modules/undici-types/cache.d.ts +36 -0
  672. package/examples/node_modules/undici-types/client.d.ts +108 -0
  673. package/examples/node_modules/undici-types/connector.d.ts +34 -0
  674. package/examples/node_modules/undici-types/content-type.d.ts +21 -0
  675. package/examples/node_modules/undici-types/cookies.d.ts +28 -0
  676. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  677. package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
  678. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  679. package/examples/node_modules/undici-types/errors.d.ts +149 -0
  680. package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
  681. package/examples/node_modules/undici-types/fetch.d.ts +209 -0
  682. package/examples/node_modules/undici-types/file.d.ts +39 -0
  683. package/examples/node_modules/undici-types/filereader.d.ts +54 -0
  684. package/examples/node_modules/undici-types/formdata.d.ts +108 -0
  685. package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  686. package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
  687. package/examples/node_modules/undici-types/handlers.d.ts +15 -0
  688. package/examples/node_modules/undici-types/header.d.ts +4 -0
  689. package/examples/node_modules/undici-types/index.d.ts +71 -0
  690. package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
  691. package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
  692. package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
  693. package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
  694. package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  695. package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
  696. package/examples/node_modules/undici-types/patch.d.ts +33 -0
  697. package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
  698. package/examples/node_modules/undici-types/pool.d.ts +39 -0
  699. package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
  700. package/examples/node_modules/undici-types/readable.d.ts +65 -0
  701. package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
  702. package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
  703. package/examples/node_modules/undici-types/util.d.ts +18 -0
  704. package/examples/node_modules/undici-types/webidl.d.ts +228 -0
  705. package/examples/node_modules/undici-types/websocket.d.ts +150 -0
  706. package/jsr.json +27 -0
  707. package/package.json +59 -0
  708. package/src/core.ts +13 -0
  709. package/src/funcs/delete-v1-activity-by-id.ts +166 -0
  710. package/src/funcs/get-v1-activity-by-id.ts +166 -0
  711. package/src/funcs/get-v1-activity.ts +169 -0
  712. package/src/funcs/get-v1-info.ts +141 -0
  713. package/src/funcs/get-v1-organizations-by-id-audit-log.ts +178 -0
  714. package/src/funcs/get-v1-organizations-by-id-cases.ts +169 -0
  715. package/src/funcs/get-v1-organizations-by-id-members.ts +169 -0
  716. package/src/funcs/get-v1-organizations-by-id.ts +166 -0
  717. package/src/funcs/get-v1-organizations.ts +141 -0
  718. package/src/funcs/get-v1-pricing.ts +141 -0
  719. package/src/funcs/post-v1-organizations-by-id-credits.ts +173 -0
  720. package/src/funcs/post-v1-search-infrastructure-certificates.ts +183 -0
  721. package/src/funcs/post-v1-search-infrastructure-dns.ts +179 -0
  722. package/src/funcs/post-v1-search-infrastructure-ipinfo.ts +182 -0
  723. package/src/funcs/post-v1-search-infrastructure-portscan.ts +322 -0
  724. package/src/funcs/post-v1-search-infrastructure-shodan.ts +182 -0
  725. package/src/funcs/post-v1-search-infrastructure-whois.ts +182 -0
  726. package/src/funcs/post-v1-search-intelligence-address.ts +179 -0
  727. package/src/funcs/post-v1-search-intelligence-email.ts +179 -0
  728. package/src/funcs/post-v1-search-intelligence-facial.ts +216 -0
  729. package/src/funcs/post-v1-search-intelligence-geolocation.ts +216 -0
  730. package/src/funcs/post-v1-search-intelligence-gmail.ts +179 -0
  731. package/src/funcs/post-v1-search-intelligence-hudsonrock.ts +183 -0
  732. package/src/funcs/post-v1-search-intelligence-person.ts +182 -0
  733. package/src/funcs/post-v1-search-intelligence-phone.ts +179 -0
  734. package/src/funcs/post-v1-search-intelligence-seon.ts +179 -0
  735. package/src/funcs/post-v1-search-intelligence-web-dbs.ts +189 -0
  736. package/src/funcs/post-v1-search-socials-discord.ts +179 -0
  737. package/src/funcs/post-v1-search-socials-github.ts +179 -0
  738. package/src/funcs/post-v1-search-socials-roblox.ts +179 -0
  739. package/src/funcs/post-v1-search-socials-tiktok.ts +179 -0
  740. package/src/funcs/post-v1-tools-doogle.ts +173 -0
  741. package/src/funcs/post-v1-tools-doublecounter.ts +176 -0
  742. package/src/funcs/post-v1-tools-intelx.ts +177 -0
  743. package/src/funcs/post-v2-search-socials-username.ts +179 -0
  744. package/src/hooks/hooks.ts +129 -0
  745. package/src/hooks/index.ts +6 -0
  746. package/src/hooks/types.ts +108 -0
  747. package/src/index.ts +9 -0
  748. package/src/lib/base64.ts +39 -0
  749. package/src/lib/config.ts +64 -0
  750. package/src/lib/encodings.ts +529 -0
  751. package/src/lib/env.ts +61 -0
  752. package/src/lib/files.ts +104 -0
  753. package/src/lib/http.ts +323 -0
  754. package/src/lib/logger.ts +9 -0
  755. package/src/lib/matchers.ts +353 -0
  756. package/src/lib/primitives.ts +166 -0
  757. package/src/lib/retries.ts +226 -0
  758. package/src/lib/schemas.ts +94 -0
  759. package/src/lib/sdks.ts +442 -0
  760. package/src/lib/security.ts +275 -0
  761. package/src/lib/url.ts +35 -0
  762. package/src/models/errors/http-client-errors.ts +62 -0
  763. package/src/models/errors/index.ts +33 -0
  764. package/src/models/errors/indicia-default-error.ts +40 -0
  765. package/src/models/errors/indicia-error.ts +35 -0
  766. package/src/models/errors/post-v1-search-infrastructure-certificates.ts +79 -0
  767. package/src/models/errors/post-v1-search-infrastructure-dns.ts +63 -0
  768. package/src/models/errors/post-v1-search-infrastructure-ipinfo.ts +63 -0
  769. package/src/models/errors/post-v1-search-infrastructure-portscan.ts +179 -0
  770. package/src/models/errors/post-v1-search-infrastructure-shodan.ts +63 -0
  771. package/src/models/errors/post-v1-search-infrastructure-whois.ts +63 -0
  772. package/src/models/errors/post-v1-search-intelligence-address.ts +63 -0
  773. package/src/models/errors/post-v1-search-intelligence-email.ts +63 -0
  774. package/src/models/errors/post-v1-search-intelligence-facial.ts +175 -0
  775. package/src/models/errors/post-v1-search-intelligence-geolocation.ts +179 -0
  776. package/src/models/errors/post-v1-search-intelligence-gmail.ts +63 -0
  777. package/src/models/errors/post-v1-search-intelligence-hudsonrock.ts +65 -0
  778. package/src/models/errors/post-v1-search-intelligence-person.ts +63 -0
  779. package/src/models/errors/post-v1-search-intelligence-phone.ts +63 -0
  780. package/src/models/errors/post-v1-search-intelligence-seon.ts +63 -0
  781. package/src/models/errors/post-v1-search-intelligence-web-dbs.ts +119 -0
  782. package/src/models/errors/post-v1-search-socials-discord.ts +63 -0
  783. package/src/models/errors/post-v1-search-socials-github.ts +60 -0
  784. package/src/models/errors/post-v1-search-socials-roblox.ts +60 -0
  785. package/src/models/errors/post-v1-search-socials-tiktok.ts +60 -0
  786. package/src/models/errors/post-v1-tools-doogle.ts +71 -0
  787. package/src/models/errors/post-v1-tools-doublecounter.ts +60 -0
  788. package/src/models/errors/post-v1-tools-intelx.ts +117 -0
  789. package/src/models/errors/post-v2-search-socials-username.ts +63 -0
  790. package/src/models/errors/response-validation-error.ts +50 -0
  791. package/src/models/errors/sdk-validation-error.ts +54 -0
  792. package/src/models/index.ts +5 -0
  793. package/src/models/operations/delete-v1-activity-by-id.ts +35 -0
  794. package/src/models/operations/get-v1-activity-by-id.ts +218 -0
  795. package/src/models/operations/get-v1-activity.ts +218 -0
  796. package/src/models/operations/get-v1-info.ts +230 -0
  797. package/src/models/operations/get-v1-organizations-by-id-audit-log.ts +99 -0
  798. package/src/models/operations/get-v1-organizations-by-id-cases.ts +96 -0
  799. package/src/models/operations/get-v1-organizations-by-id-members.ts +98 -0
  800. package/src/models/operations/get-v1-organizations-by-id.ts +105 -0
  801. package/src/models/operations/get-v1-organizations.ts +79 -0
  802. package/src/models/operations/get-v1-pricing.ts +38 -0
  803. package/src/models/operations/index.ts +39 -0
  804. package/src/models/operations/post-v1-organizations-by-id-credits.ts +102 -0
  805. package/src/models/operations/post-v1-search-infrastructure-certificates.ts +189 -0
  806. package/src/models/operations/post-v1-search-infrastructure-dns.ts +609 -0
  807. package/src/models/operations/post-v1-search-infrastructure-ipinfo.ts +147 -0
  808. package/src/models/operations/post-v1-search-infrastructure-portscan.ts +62 -0
  809. package/src/models/operations/post-v1-search-infrastructure-shodan.ts +647 -0
  810. package/src/models/operations/post-v1-search-infrastructure-whois.ts +313 -0
  811. package/src/models/operations/post-v1-search-intelligence-address.ts +217 -0
  812. package/src/models/operations/post-v1-search-intelligence-email.ts +104 -0
  813. package/src/models/operations/post-v1-search-intelligence-facial.ts +33 -0
  814. package/src/models/operations/post-v1-search-intelligence-geolocation.ts +50 -0
  815. package/src/models/operations/post-v1-search-intelligence-gmail.ts +565 -0
  816. package/src/models/operations/post-v1-search-intelligence-hudsonrock.ts +882 -0
  817. package/src/models/operations/post-v1-search-intelligence-person.ts +206 -0
  818. package/src/models/operations/post-v1-search-intelligence-phone.ts +366 -0
  819. package/src/models/operations/post-v1-search-intelligence-seon.ts +1384 -0
  820. package/src/models/operations/post-v1-search-intelligence-web-dbs.ts +1652 -0
  821. package/src/models/operations/post-v1-search-socials-discord.ts +678 -0
  822. package/src/models/operations/post-v1-search-socials-github.ts +127 -0
  823. package/src/models/operations/post-v1-search-socials-roblox.ts +312 -0
  824. package/src/models/operations/post-v1-search-socials-tiktok.ts +1449 -0
  825. package/src/models/operations/post-v1-tools-doogle.ts +282 -0
  826. package/src/models/operations/post-v1-tools-doublecounter.ts +63 -0
  827. package/src/models/operations/post-v1-tools-intelx.ts +157 -0
  828. package/src/models/operations/post-v2-search-socials-username.ts +870 -0
  829. package/src/models/security.ts +34 -0
  830. package/src/sdk/index.ts +5 -0
  831. package/src/sdk/sdk.ts +753 -0
  832. package/src/types/async.ts +69 -0
  833. package/src/types/blobs.ts +33 -0
  834. package/src/types/const-date-time.ts +15 -0
  835. package/src/types/default-to-zero-value.ts +33 -0
  836. package/src/types/enums.ts +45 -0
  837. package/src/types/fp.ts +50 -0
  838. package/src/types/index.ts +13 -0
  839. package/src/types/operations.ts +105 -0
  840. package/src/types/primitives.ts +140 -0
  841. package/src/types/rfcdate.ts +54 -0
  842. package/src/types/smart-union.ts +153 -0
  843. package/src/types/streams.ts +21 -0
  844. package/src/types/unrecognized.ts +35 -0
@@ -0,0 +1,66 @@
1
+ import { Socket } from "net";
2
+ import { URL } from "url";
3
+ import Connector from "./connector";
4
+ import Dispatcher from "./dispatcher";
5
+
6
+ declare namespace DiagnosticsChannel {
7
+ interface Request {
8
+ origin?: string | URL;
9
+ completed: boolean;
10
+ method?: Dispatcher.HttpMethod;
11
+ path: string;
12
+ headers: any;
13
+ }
14
+ interface Response {
15
+ statusCode: number;
16
+ statusText: string;
17
+ headers: Array<Buffer>;
18
+ }
19
+ type Error = unknown;
20
+ interface ConnectParams {
21
+ host: URL["host"];
22
+ hostname: URL["hostname"];
23
+ protocol: URL["protocol"];
24
+ port: URL["port"];
25
+ servername: string | null;
26
+ }
27
+ type Connector = Connector.connector;
28
+ export interface RequestCreateMessage {
29
+ request: Request;
30
+ }
31
+ export interface RequestBodySentMessage {
32
+ request: Request;
33
+ }
34
+ export interface RequestHeadersMessage {
35
+ request: Request;
36
+ response: Response;
37
+ }
38
+ export interface RequestTrailersMessage {
39
+ request: Request;
40
+ trailers: Array<Buffer>;
41
+ }
42
+ export interface RequestErrorMessage {
43
+ request: Request;
44
+ error: Error;
45
+ }
46
+ export interface ClientSendHeadersMessage {
47
+ request: Request;
48
+ headers: string;
49
+ socket: Socket;
50
+ }
51
+ export interface ClientBeforeConnectMessage {
52
+ connectParams: ConnectParams;
53
+ connector: Connector;
54
+ }
55
+ export interface ClientConnectedMessage {
56
+ socket: Socket;
57
+ connectParams: ConnectParams;
58
+ connector: Connector;
59
+ }
60
+ export interface ClientConnectErrorMessage {
61
+ error: Error;
62
+ socket: Socket;
63
+ connectParams: ConnectParams;
64
+ connector: Connector;
65
+ }
66
+ }
@@ -0,0 +1,256 @@
1
+ import { URL } from 'url'
2
+ import { Duplex, Readable, Writable } from 'stream'
3
+ import { EventEmitter } from 'events'
4
+ import { Blob } from 'buffer'
5
+ import { IncomingHttpHeaders } from './header'
6
+ import BodyReadable from './readable'
7
+ import { FormData } from './formdata'
8
+ import Errors from './errors'
9
+
10
+ type AbortSignal = unknown;
11
+
12
+ export default Dispatcher
13
+
14
+ /** Dispatcher is the core API used to dispatch requests. */
15
+ declare class Dispatcher extends EventEmitter {
16
+ /** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
17
+ dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
18
+ /** Starts two-way communications with the requested resource. */
19
+ connect(options: Dispatcher.ConnectOptions): Promise<Dispatcher.ConnectData>;
20
+ connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
21
+ /** Compose a chain of dispatchers */
22
+ compose(dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
23
+ compose(...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
24
+ /** Performs an HTTP request. */
25
+ request(options: Dispatcher.RequestOptions): Promise<Dispatcher.ResponseData>;
26
+ request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void;
27
+ /** For easy use with `stream.pipeline`. */
28
+ pipeline(options: Dispatcher.PipelineOptions, handler: Dispatcher.PipelineHandler): Duplex;
29
+ /** A faster version of `Dispatcher.request`. */
30
+ stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory): Promise<Dispatcher.StreamData>;
31
+ stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory, callback: (err: Error | null, data: Dispatcher.StreamData) => void): void;
32
+ /** Upgrade to a different protocol. */
33
+ upgrade(options: Dispatcher.UpgradeOptions): Promise<Dispatcher.UpgradeData>;
34
+ upgrade(options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void;
35
+ /** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */
36
+ close(): Promise<void>;
37
+ close(callback: () => void): void;
38
+ /** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */
39
+ destroy(): Promise<void>;
40
+ destroy(err: Error | null): Promise<void>;
41
+ destroy(callback: () => void): void;
42
+ destroy(err: Error | null, callback: () => void): void;
43
+
44
+ on(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
45
+ on(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
46
+ on(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
47
+ on(eventName: 'drain', callback: (origin: URL) => void): this;
48
+
49
+
50
+ once(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
51
+ once(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
52
+ once(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
53
+ once(eventName: 'drain', callback: (origin: URL) => void): this;
54
+
55
+
56
+ off(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
57
+ off(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
58
+ off(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
59
+ off(eventName: 'drain', callback: (origin: URL) => void): this;
60
+
61
+
62
+ addListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
63
+ addListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
64
+ addListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
65
+ addListener(eventName: 'drain', callback: (origin: URL) => void): this;
66
+
67
+ removeListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
68
+ removeListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
69
+ removeListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
70
+ removeListener(eventName: 'drain', callback: (origin: URL) => void): this;
71
+
72
+ prependListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
73
+ prependListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
74
+ prependListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
75
+ prependListener(eventName: 'drain', callback: (origin: URL) => void): this;
76
+
77
+ prependOnceListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
78
+ prependOnceListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
79
+ prependOnceListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
80
+ prependOnceListener(eventName: 'drain', callback: (origin: URL) => void): this;
81
+
82
+ listeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[]
83
+ listeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
84
+ listeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
85
+ listeners(eventName: 'drain'): ((origin: URL) => void)[];
86
+
87
+ rawListeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[]
88
+ rawListeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
89
+ rawListeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
90
+ rawListeners(eventName: 'drain'): ((origin: URL) => void)[];
91
+
92
+ emit(eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean;
93
+ emit(eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
94
+ emit(eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
95
+ emit(eventName: 'drain', origin: URL): boolean;
96
+ }
97
+
98
+ declare namespace Dispatcher {
99
+ export interface ComposedDispatcher extends Dispatcher {}
100
+ export type DispatcherComposeInterceptor = (dispatch: Dispatcher['dispatch']) => Dispatcher['dispatch'];
101
+ export interface DispatchOptions {
102
+ origin?: string | URL;
103
+ path: string;
104
+ method: HttpMethod;
105
+ /** Default: `null` */
106
+ body?: string | Buffer | Uint8Array | Readable | null | FormData;
107
+ /** Default: `null` */
108
+ headers?: IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null;
109
+ /** Query string params to be embedded in the request URL. Default: `null` */
110
+ query?: Record<string, any>;
111
+ /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */
112
+ idempotent?: boolean;
113
+ /** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. */
114
+ blocking?: boolean;
115
+ /** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */
116
+ upgrade?: boolean | string | null;
117
+ /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */
118
+ headersTimeout?: number | null;
119
+ /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */
120
+ bodyTimeout?: number | null;
121
+ /** Whether the request should stablish a keep-alive or not. Default `false` */
122
+ reset?: boolean;
123
+ /** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */
124
+ throwOnError?: boolean;
125
+ /** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server*/
126
+ expectContinue?: boolean;
127
+ }
128
+ export interface ConnectOptions {
129
+ origin: string | URL;
130
+ path: string;
131
+ /** Default: `null` */
132
+ headers?: IncomingHttpHeaders | string[] | null;
133
+ /** Default: `null` */
134
+ signal?: AbortSignal | EventEmitter | null;
135
+ /** This argument parameter is passed through to `ConnectData` */
136
+ opaque?: unknown;
137
+ /** Default: 0 */
138
+ maxRedirections?: number;
139
+ /** Default: false */
140
+ redirectionLimitReached?: boolean;
141
+ /** Default: `null` */
142
+ responseHeader?: 'raw' | null;
143
+ }
144
+ export interface RequestOptions extends DispatchOptions {
145
+ /** Default: `null` */
146
+ opaque?: unknown;
147
+ /** Default: `null` */
148
+ signal?: AbortSignal | EventEmitter | null;
149
+ /** Default: 0 */
150
+ maxRedirections?: number;
151
+ /** Default: false */
152
+ redirectionLimitReached?: boolean;
153
+ /** Default: `null` */
154
+ onInfo?: (info: { statusCode: number, headers: Record<string, string | string[]> }) => void;
155
+ /** Default: `null` */
156
+ responseHeader?: 'raw' | null;
157
+ /** Default: `64 KiB` */
158
+ highWaterMark?: number;
159
+ }
160
+ export interface PipelineOptions extends RequestOptions {
161
+ /** `true` if the `handler` will return an object stream. Default: `false` */
162
+ objectMode?: boolean;
163
+ }
164
+ export interface UpgradeOptions {
165
+ path: string;
166
+ /** Default: `'GET'` */
167
+ method?: string;
168
+ /** Default: `null` */
169
+ headers?: IncomingHttpHeaders | string[] | null;
170
+ /** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */
171
+ protocol?: string;
172
+ /** Default: `null` */
173
+ signal?: AbortSignal | EventEmitter | null;
174
+ /** Default: 0 */
175
+ maxRedirections?: number;
176
+ /** Default: false */
177
+ redirectionLimitReached?: boolean;
178
+ /** Default: `null` */
179
+ responseHeader?: 'raw' | null;
180
+ }
181
+ export interface ConnectData {
182
+ statusCode: number;
183
+ headers: IncomingHttpHeaders;
184
+ socket: Duplex;
185
+ opaque: unknown;
186
+ }
187
+ export interface ResponseData {
188
+ statusCode: number;
189
+ headers: IncomingHttpHeaders;
190
+ body: BodyReadable & BodyMixin;
191
+ trailers: Record<string, string>;
192
+ opaque: unknown;
193
+ context: object;
194
+ }
195
+ export interface PipelineHandlerData {
196
+ statusCode: number;
197
+ headers: IncomingHttpHeaders;
198
+ opaque: unknown;
199
+ body: BodyReadable;
200
+ context: object;
201
+ }
202
+ export interface StreamData {
203
+ opaque: unknown;
204
+ trailers: Record<string, string>;
205
+ }
206
+ export interface UpgradeData {
207
+ headers: IncomingHttpHeaders;
208
+ socket: Duplex;
209
+ opaque: unknown;
210
+ }
211
+ export interface StreamFactoryData {
212
+ statusCode: number;
213
+ headers: IncomingHttpHeaders;
214
+ opaque: unknown;
215
+ context: object;
216
+ }
217
+ export type StreamFactory = (data: StreamFactoryData) => Writable;
218
+ export interface DispatchHandlers {
219
+ /** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */
220
+ onConnect?(abort: (err?: Error) => void): void;
221
+ /** Invoked when an error has occurred. */
222
+ onError?(err: Error): void;
223
+ /** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
224
+ onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
225
+ /** Invoked when response is received, before headers have been read. **/
226
+ onResponseStarted?(): void;
227
+ /** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
228
+ onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean;
229
+ /** Invoked when response payload data is received. */
230
+ onData?(chunk: Buffer): boolean;
231
+ /** Invoked when response payload and trailers have been received and the request has completed. */
232
+ onComplete?(trailers: string[] | null): void;
233
+ /** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */
234
+ onBodySent?(chunkSize: number, totalBytesSent: number): void;
235
+ }
236
+ export type PipelineHandler = (data: PipelineHandlerData) => Readable;
237
+ export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
238
+
239
+ /**
240
+ * @link https://fetch.spec.whatwg.org/#body-mixin
241
+ */
242
+ interface BodyMixin {
243
+ readonly body?: never;
244
+ readonly bodyUsed: boolean;
245
+ arrayBuffer(): Promise<ArrayBuffer>;
246
+ blob(): Promise<Blob>;
247
+ bytes(): Promise<Uint8Array>;
248
+ formData(): Promise<never>;
249
+ json(): Promise<unknown>;
250
+ text(): Promise<string>;
251
+ }
252
+
253
+ export interface DispatchInterceptor {
254
+ (dispatch: Dispatcher['dispatch']): Dispatcher['dispatch']
255
+ }
256
+ }
@@ -0,0 +1,21 @@
1
+ import Agent from './agent'
2
+ import Dispatcher from './dispatcher'
3
+
4
+ export default EnvHttpProxyAgent
5
+
6
+ declare class EnvHttpProxyAgent extends Dispatcher {
7
+ constructor(opts?: EnvHttpProxyAgent.Options)
8
+
9
+ dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
10
+ }
11
+
12
+ declare namespace EnvHttpProxyAgent {
13
+ export interface Options extends Agent.Options {
14
+ /** Overrides the value of the HTTP_PROXY environment variable */
15
+ httpProxy?: string;
16
+ /** Overrides the value of the HTTPS_PROXY environment variable */
17
+ httpsProxy?: string;
18
+ /** Overrides the value of the NO_PROXY environment variable */
19
+ noProxy?: string;
20
+ }
21
+ }
@@ -0,0 +1,149 @@
1
+ import { IncomingHttpHeaders } from "./header";
2
+ import Client from './client'
3
+
4
+ export default Errors
5
+
6
+ declare namespace Errors {
7
+ export class UndiciError extends Error {
8
+ name: string;
9
+ code: string;
10
+ }
11
+
12
+ /** Connect timeout error. */
13
+ export class ConnectTimeoutError extends UndiciError {
14
+ name: 'ConnectTimeoutError';
15
+ code: 'UND_ERR_CONNECT_TIMEOUT';
16
+ }
17
+
18
+ /** A header exceeds the `headersTimeout` option. */
19
+ export class HeadersTimeoutError extends UndiciError {
20
+ name: 'HeadersTimeoutError';
21
+ code: 'UND_ERR_HEADERS_TIMEOUT';
22
+ }
23
+
24
+ /** Headers overflow error. */
25
+ export class HeadersOverflowError extends UndiciError {
26
+ name: 'HeadersOverflowError'
27
+ code: 'UND_ERR_HEADERS_OVERFLOW'
28
+ }
29
+
30
+ /** A body exceeds the `bodyTimeout` option. */
31
+ export class BodyTimeoutError extends UndiciError {
32
+ name: 'BodyTimeoutError';
33
+ code: 'UND_ERR_BODY_TIMEOUT';
34
+ }
35
+
36
+ export class ResponseStatusCodeError extends UndiciError {
37
+ constructor (
38
+ message?: string,
39
+ statusCode?: number,
40
+ headers?: IncomingHttpHeaders | string[] | null,
41
+ body?: null | Record<string, any> | string
42
+ );
43
+ name: 'ResponseStatusCodeError';
44
+ code: 'UND_ERR_RESPONSE_STATUS_CODE';
45
+ body: null | Record<string, any> | string
46
+ status: number
47
+ statusCode: number
48
+ headers: IncomingHttpHeaders | string[] | null;
49
+ }
50
+
51
+ /** Passed an invalid argument. */
52
+ export class InvalidArgumentError extends UndiciError {
53
+ name: 'InvalidArgumentError';
54
+ code: 'UND_ERR_INVALID_ARG';
55
+ }
56
+
57
+ /** Returned an invalid value. */
58
+ export class InvalidReturnValueError extends UndiciError {
59
+ name: 'InvalidReturnValueError';
60
+ code: 'UND_ERR_INVALID_RETURN_VALUE';
61
+ }
62
+
63
+ /** The request has been aborted by the user. */
64
+ export class RequestAbortedError extends UndiciError {
65
+ name: 'AbortError';
66
+ code: 'UND_ERR_ABORTED';
67
+ }
68
+
69
+ /** Expected error with reason. */
70
+ export class InformationalError extends UndiciError {
71
+ name: 'InformationalError';
72
+ code: 'UND_ERR_INFO';
73
+ }
74
+
75
+ /** Request body length does not match content-length header. */
76
+ export class RequestContentLengthMismatchError extends UndiciError {
77
+ name: 'RequestContentLengthMismatchError';
78
+ code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH';
79
+ }
80
+
81
+ /** Response body length does not match content-length header. */
82
+ export class ResponseContentLengthMismatchError extends UndiciError {
83
+ name: 'ResponseContentLengthMismatchError';
84
+ code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH';
85
+ }
86
+
87
+ /** Trying to use a destroyed client. */
88
+ export class ClientDestroyedError extends UndiciError {
89
+ name: 'ClientDestroyedError';
90
+ code: 'UND_ERR_DESTROYED';
91
+ }
92
+
93
+ /** Trying to use a closed client. */
94
+ export class ClientClosedError extends UndiciError {
95
+ name: 'ClientClosedError';
96
+ code: 'UND_ERR_CLOSED';
97
+ }
98
+
99
+ /** There is an error with the socket. */
100
+ export class SocketError extends UndiciError {
101
+ name: 'SocketError';
102
+ code: 'UND_ERR_SOCKET';
103
+ socket: Client.SocketInfo | null
104
+ }
105
+
106
+ /** Encountered unsupported functionality. */
107
+ export class NotSupportedError extends UndiciError {
108
+ name: 'NotSupportedError';
109
+ code: 'UND_ERR_NOT_SUPPORTED';
110
+ }
111
+
112
+ /** No upstream has been added to the BalancedPool. */
113
+ export class BalancedPoolMissingUpstreamError extends UndiciError {
114
+ name: 'MissingUpstreamError';
115
+ code: 'UND_ERR_BPL_MISSING_UPSTREAM';
116
+ }
117
+
118
+ export class HTTPParserError extends UndiciError {
119
+ name: 'HTTPParserError';
120
+ code: string;
121
+ }
122
+
123
+ /** The response exceed the length allowed. */
124
+ export class ResponseExceededMaxSizeError extends UndiciError {
125
+ name: 'ResponseExceededMaxSizeError';
126
+ code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
127
+ }
128
+
129
+ export class RequestRetryError extends UndiciError {
130
+ constructor (
131
+ message: string,
132
+ statusCode: number,
133
+ headers?: IncomingHttpHeaders | string[] | null,
134
+ body?: null | Record<string, any> | string
135
+ );
136
+ name: 'RequestRetryError';
137
+ code: 'UND_ERR_REQ_RETRY';
138
+ statusCode: number;
139
+ data: {
140
+ count: number;
141
+ };
142
+ headers: Record<string, string | string[]>;
143
+ }
144
+
145
+ export class SecureProxyConnectionError extends UndiciError {
146
+ name: 'SecureProxyConnectionError';
147
+ code: 'UND_ERR_PRX_TLS';
148
+ }
149
+ }
@@ -0,0 +1,61 @@
1
+ import { MessageEvent, ErrorEvent } from './websocket'
2
+ import Dispatcher from './dispatcher'
3
+
4
+ import {
5
+ EventListenerOptions,
6
+ AddEventListenerOptions,
7
+ EventListenerOrEventListenerObject
8
+ } from './patch'
9
+
10
+ interface EventSourceEventMap {
11
+ error: ErrorEvent
12
+ message: MessageEvent
13
+ open: Event
14
+ }
15
+
16
+ interface EventSource extends EventTarget {
17
+ close(): void
18
+ readonly CLOSED: 2
19
+ readonly CONNECTING: 0
20
+ readonly OPEN: 1
21
+ onerror: (this: EventSource, ev: ErrorEvent) => any
22
+ onmessage: (this: EventSource, ev: MessageEvent) => any
23
+ onopen: (this: EventSource, ev: Event) => any
24
+ readonly readyState: 0 | 1 | 2
25
+ readonly url: string
26
+ readonly withCredentials: boolean
27
+
28
+ addEventListener<K extends keyof EventSourceEventMap>(
29
+ type: K,
30
+ listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
31
+ options?: boolean | AddEventListenerOptions
32
+ ): void
33
+ addEventListener(
34
+ type: string,
35
+ listener: EventListenerOrEventListenerObject,
36
+ options?: boolean | AddEventListenerOptions
37
+ ): void
38
+ removeEventListener<K extends keyof EventSourceEventMap>(
39
+ type: K,
40
+ listener: (this: EventSource, ev: EventSourceEventMap[K]) => any,
41
+ options?: boolean | EventListenerOptions
42
+ ): void
43
+ removeEventListener(
44
+ type: string,
45
+ listener: EventListenerOrEventListenerObject,
46
+ options?: boolean | EventListenerOptions
47
+ ): void
48
+ }
49
+
50
+ export declare const EventSource: {
51
+ prototype: EventSource
52
+ new (url: string | URL, init?: EventSourceInit): EventSource
53
+ readonly CLOSED: 2
54
+ readonly CONNECTING: 0
55
+ readonly OPEN: 1
56
+ }
57
+
58
+ interface EventSourceInit {
59
+ withCredentials?: boolean,
60
+ dispatcher?: Dispatcher
61
+ }