@indiciaosint/sdk 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/README.md +39 -34
  2. package/esm/funcs/infrastructure-scan-ports.d.ts +1 -1
  3. package/esm/funcs/infrastructure-scan-ports.d.ts.map +1 -1
  4. package/esm/funcs/infrastructure-scan-ports.js +1 -1
  5. package/esm/funcs/infrastructure-scan-ports.js.map +1 -1
  6. package/esm/funcs/infrastructure-search-certificates.d.ts +1 -1
  7. package/esm/funcs/infrastructure-search-certificates.d.ts.map +1 -1
  8. package/esm/funcs/infrastructure-search-certificates.js +1 -1
  9. package/esm/funcs/infrastructure-search-certificates.js.map +1 -1
  10. package/esm/funcs/infrastructure-search-dns.d.ts +1 -1
  11. package/esm/funcs/infrastructure-search-dns.d.ts.map +1 -1
  12. package/esm/funcs/infrastructure-search-dns.js +1 -1
  13. package/esm/funcs/infrastructure-search-dns.js.map +1 -1
  14. package/esm/funcs/infrastructure-search-ip-info.d.ts +1 -1
  15. package/esm/funcs/infrastructure-search-ip-info.d.ts.map +1 -1
  16. package/esm/funcs/infrastructure-search-ip-info.js +1 -1
  17. package/esm/funcs/infrastructure-search-ip-info.js.map +1 -1
  18. package/esm/funcs/infrastructure-search-shodan.d.ts +1 -1
  19. package/esm/funcs/infrastructure-search-shodan.d.ts.map +1 -1
  20. package/esm/funcs/infrastructure-search-shodan.js +1 -1
  21. package/esm/funcs/infrastructure-search-shodan.js.map +1 -1
  22. package/esm/funcs/infrastructure-search-whois.d.ts +1 -1
  23. package/esm/funcs/infrastructure-search-whois.d.ts.map +1 -1
  24. package/esm/funcs/infrastructure-search-whois.js +1 -1
  25. package/esm/funcs/infrastructure-search-whois.js.map +1 -1
  26. package/esm/funcs/intelligence-geolocate-media.d.ts +2 -1
  27. package/esm/funcs/intelligence-geolocate-media.d.ts.map +1 -1
  28. package/esm/funcs/intelligence-geolocate-media.js +23 -5
  29. package/esm/funcs/intelligence-geolocate-media.js.map +1 -1
  30. package/esm/funcs/intelligence-search-address.d.ts +1 -1
  31. package/esm/funcs/intelligence-search-address.d.ts.map +1 -1
  32. package/esm/funcs/intelligence-search-address.js +1 -1
  33. package/esm/funcs/intelligence-search-address.js.map +1 -1
  34. package/esm/funcs/intelligence-search-email.d.ts +1 -1
  35. package/esm/funcs/intelligence-search-email.d.ts.map +1 -1
  36. package/esm/funcs/intelligence-search-email.js +1 -1
  37. package/esm/funcs/intelligence-search-email.js.map +1 -1
  38. package/esm/funcs/intelligence-search-face.d.ts +1 -20
  39. package/esm/funcs/intelligence-search-face.d.ts.map +1 -1
  40. package/esm/funcs/intelligence-search-face.js +21 -23
  41. package/esm/funcs/intelligence-search-face.js.map +1 -1
  42. package/esm/funcs/intelligence-search-gmail.d.ts +1 -1
  43. package/esm/funcs/intelligence-search-gmail.d.ts.map +1 -1
  44. package/esm/funcs/intelligence-search-gmail.js +1 -1
  45. package/esm/funcs/intelligence-search-gmail.js.map +1 -1
  46. package/esm/funcs/intelligence-search-hudson-rock.d.ts +1 -1
  47. package/esm/funcs/intelligence-search-hudson-rock.d.ts.map +1 -1
  48. package/esm/funcs/intelligence-search-hudson-rock.js +1 -1
  49. package/esm/funcs/intelligence-search-hudson-rock.js.map +1 -1
  50. package/esm/funcs/intelligence-search-person.d.ts +1 -1
  51. package/esm/funcs/intelligence-search-person.d.ts.map +1 -1
  52. package/esm/funcs/intelligence-search-person.js +1 -1
  53. package/esm/funcs/intelligence-search-person.js.map +1 -1
  54. package/esm/funcs/intelligence-search-phone.d.ts +1 -1
  55. package/esm/funcs/intelligence-search-phone.d.ts.map +1 -1
  56. package/esm/funcs/intelligence-search-phone.js +1 -1
  57. package/esm/funcs/intelligence-search-phone.js.map +1 -1
  58. package/esm/funcs/intelligence-search-seon.d.ts +1 -1
  59. package/esm/funcs/intelligence-search-seon.d.ts.map +1 -1
  60. package/esm/funcs/intelligence-search-seon.js +1 -1
  61. package/esm/funcs/intelligence-search-seon.js.map +1 -1
  62. package/esm/funcs/intelligence-search-web-databases.d.ts +1 -1
  63. package/esm/funcs/intelligence-search-web-databases.d.ts.map +1 -1
  64. package/esm/funcs/intelligence-search-web-databases.js +1 -1
  65. package/esm/funcs/intelligence-search-web-databases.js.map +1 -1
  66. package/esm/funcs/socials-search-discord.d.ts +1 -1
  67. package/esm/funcs/socials-search-discord.d.ts.map +1 -1
  68. package/esm/funcs/socials-search-discord.js +1 -1
  69. package/esm/funcs/socials-search-discord.js.map +1 -1
  70. package/esm/funcs/socials-search-github.d.ts +1 -1
  71. package/esm/funcs/socials-search-github.d.ts.map +1 -1
  72. package/esm/funcs/socials-search-github.js +1 -1
  73. package/esm/funcs/socials-search-github.js.map +1 -1
  74. package/esm/funcs/socials-search-roblox.d.ts +1 -1
  75. package/esm/funcs/socials-search-roblox.d.ts.map +1 -1
  76. package/esm/funcs/socials-search-roblox.js +1 -1
  77. package/esm/funcs/socials-search-roblox.js.map +1 -1
  78. package/esm/funcs/socials-search-tiktok.d.ts +1 -1
  79. package/esm/funcs/socials-search-tiktok.d.ts.map +1 -1
  80. package/esm/funcs/socials-search-tiktok.js +1 -1
  81. package/esm/funcs/socials-search-tiktok.js.map +1 -1
  82. package/esm/funcs/socials-search-username.d.ts +1 -1
  83. package/esm/funcs/socials-search-username.d.ts.map +1 -1
  84. package/esm/funcs/socials-search-username.js +1 -1
  85. package/esm/funcs/socials-search-username.js.map +1 -1
  86. package/esm/funcs/tools-bypass-double-counter.d.ts +1 -1
  87. package/esm/funcs/tools-bypass-double-counter.d.ts.map +1 -1
  88. package/esm/funcs/tools-bypass-double-counter.js +1 -1
  89. package/esm/funcs/tools-bypass-double-counter.js.map +1 -1
  90. package/esm/funcs/tools-download-intelx-file.d.ts +1 -1
  91. package/esm/funcs/tools-download-intelx-file.d.ts.map +1 -1
  92. package/esm/funcs/tools-download-intelx-file.js +1 -1
  93. package/esm/funcs/tools-download-intelx-file.js.map +1 -1
  94. package/esm/funcs/tools-lookup-discord-alt.d.ts +1 -1
  95. package/esm/funcs/tools-lookup-discord-alt.d.ts.map +1 -1
  96. package/esm/funcs/tools-lookup-discord-alt.js +1 -1
  97. package/esm/funcs/tools-lookup-discord-alt.js.map +1 -1
  98. package/esm/lib/config.d.ts +3 -3
  99. package/esm/lib/config.js +3 -3
  100. package/esm/models/errors/failed-response-error.d.ts +38 -0
  101. package/esm/models/errors/failed-response-error.d.ts.map +1 -0
  102. package/esm/models/errors/{search-discord.js → failed-response-error.js} +12 -6
  103. package/esm/models/errors/failed-response-error.js.map +1 -0
  104. package/esm/models/errors/index.d.ts +1 -24
  105. package/esm/models/errors/index.d.ts.map +1 -1
  106. package/esm/models/errors/index.js +1 -24
  107. package/esm/models/errors/index.js.map +1 -1
  108. package/esm/models/operations/geolocate-media.d.ts +29 -2
  109. package/esm/models/operations/geolocate-media.d.ts.map +1 -1
  110. package/esm/models/operations/geolocate-media.js +21 -1
  111. package/esm/models/operations/geolocate-media.js.map +1 -1
  112. package/esm/models/operations/lookup-discord-alt.d.ts +0 -36
  113. package/esm/models/operations/lookup-discord-alt.d.ts.map +1 -1
  114. package/esm/models/operations/lookup-discord-alt.js +0 -40
  115. package/esm/models/operations/lookup-discord-alt.js.map +1 -1
  116. package/esm/models/operations/search-certificates.d.ts +0 -14
  117. package/esm/models/operations/search-certificates.d.ts.map +1 -1
  118. package/esm/models/operations/search-certificates.js +0 -26
  119. package/esm/models/operations/search-certificates.js.map +1 -1
  120. package/esm/models/operations/search-discord.d.ts +8 -8
  121. package/esm/models/operations/search-discord.d.ts.map +1 -1
  122. package/esm/models/operations/search-discord.js +8 -8
  123. package/esm/models/operations/search-discord.js.map +1 -1
  124. package/esm/models/operations/search-face.d.ts +17 -2
  125. package/esm/models/operations/search-face.d.ts.map +1 -1
  126. package/esm/models/operations/search-face.js +18 -1
  127. package/esm/models/operations/search-face.js.map +1 -1
  128. package/esm/models/operations/search-hudson-rock.d.ts +4 -4
  129. package/esm/models/operations/search-hudson-rock.d.ts.map +1 -1
  130. package/esm/models/operations/search-hudson-rock.js +4 -4
  131. package/esm/models/operations/search-hudson-rock.js.map +1 -1
  132. package/esm/models/operations/search-roblox.d.ts +9 -1
  133. package/esm/models/operations/search-roblox.d.ts.map +1 -1
  134. package/esm/models/operations/search-roblox.js +22 -1
  135. package/esm/models/operations/search-roblox.js.map +1 -1
  136. package/esm/models/operations/search-username.d.ts +108 -12
  137. package/esm/models/operations/search-username.d.ts.map +1 -1
  138. package/esm/models/operations/search-username.js +256 -12
  139. package/esm/models/operations/search-username.js.map +1 -1
  140. package/esm/sdk/intelligence.d.ts +1 -19
  141. package/esm/sdk/intelligence.d.ts.map +1 -1
  142. package/esm/sdk/intelligence.js +1 -19
  143. package/esm/sdk/intelligence.js.map +1 -1
  144. package/jsr.json +1 -1
  145. package/package.json +1 -1
  146. package/src/funcs/infrastructure-scan-ports.ts +5 -12
  147. package/src/funcs/infrastructure-search-certificates.ts +4 -4
  148. package/src/funcs/infrastructure-search-dns.ts +4 -4
  149. package/src/funcs/infrastructure-search-ip-info.ts +4 -4
  150. package/src/funcs/infrastructure-search-shodan.ts +4 -4
  151. package/src/funcs/infrastructure-search-whois.ts +4 -4
  152. package/src/funcs/intelligence-geolocate-media.ts +39 -16
  153. package/src/funcs/intelligence-search-address.ts +4 -4
  154. package/src/funcs/intelligence-search-email.ts +4 -4
  155. package/src/funcs/intelligence-search-face.ts +37 -34
  156. package/src/funcs/intelligence-search-gmail.ts +4 -4
  157. package/src/funcs/intelligence-search-hudson-rock.ts +4 -4
  158. package/src/funcs/intelligence-search-person.ts +4 -4
  159. package/src/funcs/intelligence-search-phone.ts +4 -4
  160. package/src/funcs/intelligence-search-seon.ts +4 -4
  161. package/src/funcs/intelligence-search-web-databases.ts +5 -8
  162. package/src/funcs/socials-search-discord.ts +4 -4
  163. package/src/funcs/socials-search-github.ts +4 -4
  164. package/src/funcs/socials-search-roblox.ts +4 -4
  165. package/src/funcs/socials-search-tiktok.ts +4 -4
  166. package/src/funcs/socials-search-username.ts +4 -4
  167. package/src/funcs/tools-bypass-double-counter.ts +4 -4
  168. package/src/funcs/tools-download-intelx-file.ts +5 -8
  169. package/src/funcs/tools-lookup-discord-alt.ts +4 -4
  170. package/src/lib/config.ts +3 -3
  171. package/src/models/errors/{search-address.ts → failed-response-error.ts} +22 -10
  172. package/src/models/errors/index.ts +1 -24
  173. package/src/models/operations/geolocate-media.ts +55 -3
  174. package/src/models/operations/lookup-discord-alt.ts +0 -116
  175. package/src/models/operations/search-certificates.ts +0 -56
  176. package/src/models/operations/search-discord.ts +22 -16
  177. package/src/models/operations/search-face.ts +41 -3
  178. package/src/models/operations/search-hudson-rock.ts +13 -8
  179. package/src/models/operations/search-roblox.ts +51 -2
  180. package/src/models/operations/search-username.ts +573 -24
  181. package/src/sdk/intelligence.ts +1 -19
  182. package/esm/models/errors/bypass-double-counter.d.ts +0 -26
  183. package/esm/models/errors/bypass-double-counter.d.ts.map +0 -1
  184. package/esm/models/errors/bypass-double-counter.js +0 -41
  185. package/esm/models/errors/bypass-double-counter.js.map +0 -1
  186. package/esm/models/errors/download-intelx-file.d.ts +0 -49
  187. package/esm/models/errors/download-intelx-file.d.ts.map +0 -1
  188. package/esm/models/errors/download-intelx-file.js +0 -75
  189. package/esm/models/errors/download-intelx-file.js.map +0 -1
  190. package/esm/models/errors/geolocate-media.d.ts +0 -72
  191. package/esm/models/errors/geolocate-media.d.ts.map +0 -1
  192. package/esm/models/errors/geolocate-media.js +0 -109
  193. package/esm/models/errors/geolocate-media.js.map +0 -1
  194. package/esm/models/errors/lookup-discord-alt.d.ts +0 -29
  195. package/esm/models/errors/lookup-discord-alt.d.ts.map +0 -1
  196. package/esm/models/errors/lookup-discord-alt.js +0 -46
  197. package/esm/models/errors/lookup-discord-alt.js.map +0 -1
  198. package/esm/models/errors/scan-ports.d.ts +0 -72
  199. package/esm/models/errors/scan-ports.d.ts.map +0 -1
  200. package/esm/models/errors/scan-ports.js +0 -109
  201. package/esm/models/errors/scan-ports.js.map +0 -1
  202. package/esm/models/errors/search-address.d.ts +0 -26
  203. package/esm/models/errors/search-address.d.ts.map +0 -1
  204. package/esm/models/errors/search-address.js +0 -41
  205. package/esm/models/errors/search-address.js.map +0 -1
  206. package/esm/models/errors/search-certificates.d.ts +0 -29
  207. package/esm/models/errors/search-certificates.d.ts.map +0 -1
  208. package/esm/models/errors/search-certificates.js +0 -45
  209. package/esm/models/errors/search-certificates.js.map +0 -1
  210. package/esm/models/errors/search-discord.d.ts +0 -26
  211. package/esm/models/errors/search-discord.d.ts.map +0 -1
  212. package/esm/models/errors/search-discord.js.map +0 -1
  213. package/esm/models/errors/search-dns.d.ts +0 -26
  214. package/esm/models/errors/search-dns.d.ts.map +0 -1
  215. package/esm/models/errors/search-dns.js +0 -41
  216. package/esm/models/errors/search-dns.js.map +0 -1
  217. package/esm/models/errors/search-email.d.ts +0 -26
  218. package/esm/models/errors/search-email.d.ts.map +0 -1
  219. package/esm/models/errors/search-email.js +0 -41
  220. package/esm/models/errors/search-email.js.map +0 -1
  221. package/esm/models/errors/search-face.d.ts +0 -72
  222. package/esm/models/errors/search-face.d.ts.map +0 -1
  223. package/esm/models/errors/search-face.js +0 -109
  224. package/esm/models/errors/search-face.js.map +0 -1
  225. package/esm/models/errors/search-github.d.ts +0 -26
  226. package/esm/models/errors/search-github.d.ts.map +0 -1
  227. package/esm/models/errors/search-github.js +0 -41
  228. package/esm/models/errors/search-github.js.map +0 -1
  229. package/esm/models/errors/search-gmail.d.ts +0 -26
  230. package/esm/models/errors/search-gmail.d.ts.map +0 -1
  231. package/esm/models/errors/search-gmail.js +0 -41
  232. package/esm/models/errors/search-gmail.js.map +0 -1
  233. package/esm/models/errors/search-hudson-rock.d.ts +0 -26
  234. package/esm/models/errors/search-hudson-rock.d.ts.map +0 -1
  235. package/esm/models/errors/search-hudson-rock.js +0 -41
  236. package/esm/models/errors/search-hudson-rock.js.map +0 -1
  237. package/esm/models/errors/search-ip-info.d.ts +0 -26
  238. package/esm/models/errors/search-ip-info.d.ts.map +0 -1
  239. package/esm/models/errors/search-ip-info.js +0 -41
  240. package/esm/models/errors/search-ip-info.js.map +0 -1
  241. package/esm/models/errors/search-person.d.ts +0 -26
  242. package/esm/models/errors/search-person.d.ts.map +0 -1
  243. package/esm/models/errors/search-person.js +0 -41
  244. package/esm/models/errors/search-person.js.map +0 -1
  245. package/esm/models/errors/search-phone.d.ts +0 -26
  246. package/esm/models/errors/search-phone.d.ts.map +0 -1
  247. package/esm/models/errors/search-phone.js +0 -41
  248. package/esm/models/errors/search-phone.js.map +0 -1
  249. package/esm/models/errors/search-roblox.d.ts +0 -26
  250. package/esm/models/errors/search-roblox.d.ts.map +0 -1
  251. package/esm/models/errors/search-roblox.js +0 -41
  252. package/esm/models/errors/search-roblox.js.map +0 -1
  253. package/esm/models/errors/search-seon.d.ts +0 -26
  254. package/esm/models/errors/search-seon.d.ts.map +0 -1
  255. package/esm/models/errors/search-seon.js +0 -41
  256. package/esm/models/errors/search-seon.js.map +0 -1
  257. package/esm/models/errors/search-shodan.d.ts +0 -26
  258. package/esm/models/errors/search-shodan.d.ts.map +0 -1
  259. package/esm/models/errors/search-shodan.js +0 -41
  260. package/esm/models/errors/search-shodan.js.map +0 -1
  261. package/esm/models/errors/search-tiktok.d.ts +0 -26
  262. package/esm/models/errors/search-tiktok.d.ts.map +0 -1
  263. package/esm/models/errors/search-tiktok.js +0 -41
  264. package/esm/models/errors/search-tiktok.js.map +0 -1
  265. package/esm/models/errors/search-username.d.ts +0 -26
  266. package/esm/models/errors/search-username.d.ts.map +0 -1
  267. package/esm/models/errors/search-username.js +0 -41
  268. package/esm/models/errors/search-username.js.map +0 -1
  269. package/esm/models/errors/search-web-databases.d.ts +0 -49
  270. package/esm/models/errors/search-web-databases.d.ts.map +0 -1
  271. package/esm/models/errors/search-web-databases.js +0 -75
  272. package/esm/models/errors/search-web-databases.js.map +0 -1
  273. package/esm/models/errors/search-whois.d.ts +0 -26
  274. package/esm/models/errors/search-whois.d.ts.map +0 -1
  275. package/esm/models/errors/search-whois.js +0 -41
  276. package/esm/models/errors/search-whois.js.map +0 -1
  277. package/src/models/errors/bypass-double-counter.ts +0 -60
  278. package/src/models/errors/download-intelx-file.ts +0 -117
  279. package/src/models/errors/geolocate-media.ts +0 -172
  280. package/src/models/errors/lookup-discord-alt.ts +0 -71
  281. package/src/models/errors/scan-ports.ts +0 -172
  282. package/src/models/errors/search-certificates.ts +0 -71
  283. package/src/models/errors/search-discord.ts +0 -62
  284. package/src/models/errors/search-dns.ts +0 -62
  285. package/src/models/errors/search-email.ts +0 -62
  286. package/src/models/errors/search-face.ts +0 -172
  287. package/src/models/errors/search-github.ts +0 -62
  288. package/src/models/errors/search-gmail.ts +0 -62
  289. package/src/models/errors/search-hudson-rock.ts +0 -62
  290. package/src/models/errors/search-ip-info.ts +0 -62
  291. package/src/models/errors/search-person.ts +0 -62
  292. package/src/models/errors/search-phone.ts +0 -62
  293. package/src/models/errors/search-roblox.ts +0 -62
  294. package/src/models/errors/search-seon.ts +0 -62
  295. package/src/models/errors/search-shodan.ts +0 -62
  296. package/src/models/errors/search-tiktok.ts +0 -62
  297. package/src/models/errors/search-username.ts +0 -62
  298. package/src/models/errors/search-web-databases.ts +0 -115
  299. package/src/models/errors/search-whois.ts +0 -62
@@ -1,117 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import { IndiciaError } from "./indicia-error.js";
8
-
9
- /**
10
- * Internal Server Error
11
- */
12
- export type DownloadIntelxFileInternalServerErrorData = {
13
- success: boolean;
14
- data?: string | undefined;
15
- };
16
-
17
- /**
18
- * Internal Server Error
19
- */
20
- export class DownloadIntelxFileInternalServerError extends IndiciaError {
21
- success: boolean;
22
- data?: string | undefined;
23
-
24
- /** The original data that was passed to this error instance. */
25
- data$: DownloadIntelxFileInternalServerErrorData;
26
-
27
- constructor(
28
- err: DownloadIntelxFileInternalServerErrorData,
29
- httpMeta: { response: Response; request: Request; body: string },
30
- ) {
31
- const message = "message" in err && typeof err.message === "string"
32
- ? err.message
33
- : `API error occurred: ${JSON.stringify(err)}`;
34
- super(message, httpMeta);
35
- this.data$ = err;
36
- this.success = err.success;
37
- if (err.data != null) this.data = err.data;
38
-
39
- this.name = "DownloadIntelxFileInternalServerError";
40
- }
41
- }
42
-
43
- /**
44
- * Bad Request
45
- */
46
- export type DownloadIntelxFileBadRequestErrorData = {
47
- success: boolean;
48
- data?: string | undefined;
49
- };
50
-
51
- /**
52
- * Bad Request
53
- */
54
- export class DownloadIntelxFileBadRequestError extends IndiciaError {
55
- success: boolean;
56
- data?: string | undefined;
57
-
58
- /** The original data that was passed to this error instance. */
59
- data$: DownloadIntelxFileBadRequestErrorData;
60
-
61
- constructor(
62
- err: DownloadIntelxFileBadRequestErrorData,
63
- httpMeta: { response: Response; request: Request; body: string },
64
- ) {
65
- const message = "message" in err && typeof err.message === "string"
66
- ? err.message
67
- : `API error occurred: ${JSON.stringify(err)}`;
68
- super(message, httpMeta);
69
- this.data$ = err;
70
- this.success = err.success;
71
- if (err.data != null) this.data = err.data;
72
-
73
- this.name = "DownloadIntelxFileBadRequestError";
74
- }
75
- }
76
-
77
- /** @internal */
78
- export const DownloadIntelxFileInternalServerError$inboundSchema: z.ZodMiniType<
79
- DownloadIntelxFileInternalServerError,
80
- unknown
81
- > = z.pipe(
82
- z.object({
83
- success: types.boolean(),
84
- data: types.optional(types.string()),
85
- request$: z.custom<Request>(x => x instanceof Request),
86
- response$: z.custom<Response>(x => x instanceof Response),
87
- body$: z.string(),
88
- }),
89
- z.transform((v) => {
90
- return new DownloadIntelxFileInternalServerError(v, {
91
- request: v.request$,
92
- response: v.response$,
93
- body: v.body$,
94
- });
95
- }),
96
- );
97
-
98
- /** @internal */
99
- export const DownloadIntelxFileBadRequestError$inboundSchema: z.ZodMiniType<
100
- DownloadIntelxFileBadRequestError,
101
- unknown
102
- > = z.pipe(
103
- z.object({
104
- success: types.boolean(),
105
- data: types.optional(types.string()),
106
- request$: z.custom<Request>(x => x instanceof Request),
107
- response$: z.custom<Response>(x => x instanceof Response),
108
- body$: z.string(),
109
- }),
110
- z.transform((v) => {
111
- return new DownloadIntelxFileBadRequestError(v, {
112
- request: v.request$,
113
- response: v.response$,
114
- body: v.body$,
115
- });
116
- }),
117
- );
@@ -1,172 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import { IndiciaError } from "./indicia-error.js";
8
-
9
- /**
10
- * Internal Server Error
11
- */
12
- export type GeolocateMediaInternalServerErrorData = {
13
- success: boolean;
14
- error?: string | undefined;
15
- };
16
-
17
- /**
18
- * Internal Server Error
19
- */
20
- export class GeolocateMediaInternalServerError extends IndiciaError {
21
- success: boolean;
22
- error?: string | undefined;
23
-
24
- /** The original data that was passed to this error instance. */
25
- data$: GeolocateMediaInternalServerErrorData;
26
-
27
- constructor(
28
- err: GeolocateMediaInternalServerErrorData,
29
- httpMeta: { response: Response; request: Request; body: string },
30
- ) {
31
- const message = "message" in err && typeof err.message === "string"
32
- ? err.message
33
- : `API error occurred: ${JSON.stringify(err)}`;
34
- super(message, httpMeta);
35
- this.data$ = err;
36
- this.success = err.success;
37
- if (err.error != null) this.error = err.error;
38
-
39
- this.name = "GeolocateMediaInternalServerError";
40
- }
41
- }
42
-
43
- /**
44
- * Payment Required - Insufficient Credits
45
- */
46
- export type GeolocateMediaPaymentRequiredErrorData = {
47
- success: boolean;
48
- error?: string | undefined;
49
- };
50
-
51
- /**
52
- * Payment Required - Insufficient Credits
53
- */
54
- export class GeolocateMediaPaymentRequiredError extends IndiciaError {
55
- success: boolean;
56
- error?: string | undefined;
57
-
58
- /** The original data that was passed to this error instance. */
59
- data$: GeolocateMediaPaymentRequiredErrorData;
60
-
61
- constructor(
62
- err: GeolocateMediaPaymentRequiredErrorData,
63
- httpMeta: { response: Response; request: Request; body: string },
64
- ) {
65
- const message = "message" in err && typeof err.message === "string"
66
- ? err.message
67
- : `API error occurred: ${JSON.stringify(err)}`;
68
- super(message, httpMeta);
69
- this.data$ = err;
70
- this.success = err.success;
71
- if (err.error != null) this.error = err.error;
72
-
73
- this.name = "GeolocateMediaPaymentRequiredError";
74
- }
75
- }
76
-
77
- /**
78
- * Bad Request
79
- */
80
- export type GeolocateMediaBadRequestErrorData = {
81
- success: boolean;
82
- error?: string | undefined;
83
- };
84
-
85
- /**
86
- * Bad Request
87
- */
88
- export class GeolocateMediaBadRequestError extends IndiciaError {
89
- success: boolean;
90
- error?: string | undefined;
91
-
92
- /** The original data that was passed to this error instance. */
93
- data$: GeolocateMediaBadRequestErrorData;
94
-
95
- constructor(
96
- err: GeolocateMediaBadRequestErrorData,
97
- httpMeta: { response: Response; request: Request; body: string },
98
- ) {
99
- const message = "message" in err && typeof err.message === "string"
100
- ? err.message
101
- : `API error occurred: ${JSON.stringify(err)}`;
102
- super(message, httpMeta);
103
- this.data$ = err;
104
- this.success = err.success;
105
- if (err.error != null) this.error = err.error;
106
-
107
- this.name = "GeolocateMediaBadRequestError";
108
- }
109
- }
110
-
111
- /** @internal */
112
- export const GeolocateMediaInternalServerError$inboundSchema: z.ZodMiniType<
113
- GeolocateMediaInternalServerError,
114
- unknown
115
- > = z.pipe(
116
- z.object({
117
- success: types.boolean(),
118
- error: types.optional(types.string()),
119
- request$: z.custom<Request>(x => x instanceof Request),
120
- response$: z.custom<Response>(x => x instanceof Response),
121
- body$: z.string(),
122
- }),
123
- z.transform((v) => {
124
- return new GeolocateMediaInternalServerError(v, {
125
- request: v.request$,
126
- response: v.response$,
127
- body: v.body$,
128
- });
129
- }),
130
- );
131
-
132
- /** @internal */
133
- export const GeolocateMediaPaymentRequiredError$inboundSchema: z.ZodMiniType<
134
- GeolocateMediaPaymentRequiredError,
135
- unknown
136
- > = z.pipe(
137
- z.object({
138
- success: types.boolean(),
139
- error: types.optional(types.string()),
140
- request$: z.custom<Request>(x => x instanceof Request),
141
- response$: z.custom<Response>(x => x instanceof Response),
142
- body$: z.string(),
143
- }),
144
- z.transform((v) => {
145
- return new GeolocateMediaPaymentRequiredError(v, {
146
- request: v.request$,
147
- response: v.response$,
148
- body: v.body$,
149
- });
150
- }),
151
- );
152
-
153
- /** @internal */
154
- export const GeolocateMediaBadRequestError$inboundSchema: z.ZodMiniType<
155
- GeolocateMediaBadRequestError,
156
- unknown
157
- > = z.pipe(
158
- z.object({
159
- success: types.boolean(),
160
- error: types.optional(types.string()),
161
- request$: z.custom<Request>(x => x instanceof Request),
162
- response$: z.custom<Response>(x => x instanceof Response),
163
- body$: z.string(),
164
- }),
165
- z.transform((v) => {
166
- return new GeolocateMediaBadRequestError(v, {
167
- request: v.request$,
168
- response: v.response$,
169
- body: v.body$,
170
- });
171
- }),
172
- );
@@ -1,71 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import * as operations from "../operations/index.js";
8
- import { IndiciaError } from "./indicia-error.js";
9
-
10
- /**
11
- * Internal Server Error
12
- */
13
- export type LookupDiscordAltInternalServerErrorData = {
14
- success: boolean;
15
- data?: operations.LookupDiscordAltInternalServerErrorData | undefined;
16
- error?: string | undefined;
17
- };
18
-
19
- /**
20
- * Internal Server Error
21
- */
22
- export class LookupDiscordAltInternalServerError extends IndiciaError {
23
- success: boolean;
24
- data?: operations.LookupDiscordAltInternalServerErrorData | undefined;
25
- error?: string | undefined;
26
-
27
- /** The original data that was passed to this error instance. */
28
- data$: LookupDiscordAltInternalServerErrorData;
29
-
30
- constructor(
31
- err: LookupDiscordAltInternalServerErrorData,
32
- httpMeta: { response: Response; request: Request; body: string },
33
- ) {
34
- const message = "message" in err && typeof err.message === "string"
35
- ? err.message
36
- : `API error occurred: ${JSON.stringify(err)}`;
37
- super(message, httpMeta);
38
- this.data$ = err;
39
- this.success = err.success;
40
- if (err.data != null) this.data = err.data;
41
- if (err.error != null) this.error = err.error;
42
-
43
- this.name = "LookupDiscordAltInternalServerError";
44
- }
45
- }
46
-
47
- /** @internal */
48
- export const LookupDiscordAltInternalServerError$inboundSchema: z.ZodMiniType<
49
- LookupDiscordAltInternalServerError,
50
- unknown
51
- > = z.pipe(
52
- z.object({
53
- success: types.boolean(),
54
- data: types.optional(z.lazy(() =>
55
- operations.LookupDiscordAltInternalServerErrorData$inboundSchema
56
- )),
57
- error: types.optional(types.string()),
58
- request$: z.custom<Request>(x =>
59
- x instanceof Request
60
- ),
61
- response$: z.custom<Response>(x => x instanceof Response),
62
- body$: z.string(),
63
- }),
64
- z.transform((v) => {
65
- return new LookupDiscordAltInternalServerError(v, {
66
- request: v.request$,
67
- response: v.response$,
68
- body: v.body$,
69
- });
70
- }),
71
- );
@@ -1,172 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import { IndiciaError } from "./indicia-error.js";
8
-
9
- /**
10
- * Internal Server Error
11
- */
12
- export type ScanPortsInternalServerErrorData = {
13
- success: boolean;
14
- error?: string | undefined;
15
- };
16
-
17
- /**
18
- * Internal Server Error
19
- */
20
- export class ScanPortsInternalServerError extends IndiciaError {
21
- success: boolean;
22
- error?: string | undefined;
23
-
24
- /** The original data that was passed to this error instance. */
25
- data$: ScanPortsInternalServerErrorData;
26
-
27
- constructor(
28
- err: ScanPortsInternalServerErrorData,
29
- httpMeta: { response: Response; request: Request; body: string },
30
- ) {
31
- const message = "message" in err && typeof err.message === "string"
32
- ? err.message
33
- : `API error occurred: ${JSON.stringify(err)}`;
34
- super(message, httpMeta);
35
- this.data$ = err;
36
- this.success = err.success;
37
- if (err.error != null) this.error = err.error;
38
-
39
- this.name = "ScanPortsInternalServerError";
40
- }
41
- }
42
-
43
- /**
44
- * Payment Required - Insufficient Credits
45
- */
46
- export type ScanPortsPaymentRequiredErrorData = {
47
- success: boolean;
48
- error?: string | undefined;
49
- };
50
-
51
- /**
52
- * Payment Required - Insufficient Credits
53
- */
54
- export class ScanPortsPaymentRequiredError extends IndiciaError {
55
- success: boolean;
56
- error?: string | undefined;
57
-
58
- /** The original data that was passed to this error instance. */
59
- data$: ScanPortsPaymentRequiredErrorData;
60
-
61
- constructor(
62
- err: ScanPortsPaymentRequiredErrorData,
63
- httpMeta: { response: Response; request: Request; body: string },
64
- ) {
65
- const message = "message" in err && typeof err.message === "string"
66
- ? err.message
67
- : `API error occurred: ${JSON.stringify(err)}`;
68
- super(message, httpMeta);
69
- this.data$ = err;
70
- this.success = err.success;
71
- if (err.error != null) this.error = err.error;
72
-
73
- this.name = "ScanPortsPaymentRequiredError";
74
- }
75
- }
76
-
77
- /**
78
- * Bad Request
79
- */
80
- export type ScanPortsBadRequestErrorData = {
81
- success: boolean;
82
- error?: string | undefined;
83
- };
84
-
85
- /**
86
- * Bad Request
87
- */
88
- export class ScanPortsBadRequestError extends IndiciaError {
89
- success: boolean;
90
- error?: string | undefined;
91
-
92
- /** The original data that was passed to this error instance. */
93
- data$: ScanPortsBadRequestErrorData;
94
-
95
- constructor(
96
- err: ScanPortsBadRequestErrorData,
97
- httpMeta: { response: Response; request: Request; body: string },
98
- ) {
99
- const message = "message" in err && typeof err.message === "string"
100
- ? err.message
101
- : `API error occurred: ${JSON.stringify(err)}`;
102
- super(message, httpMeta);
103
- this.data$ = err;
104
- this.success = err.success;
105
- if (err.error != null) this.error = err.error;
106
-
107
- this.name = "ScanPortsBadRequestError";
108
- }
109
- }
110
-
111
- /** @internal */
112
- export const ScanPortsInternalServerError$inboundSchema: z.ZodMiniType<
113
- ScanPortsInternalServerError,
114
- unknown
115
- > = z.pipe(
116
- z.object({
117
- success: types.boolean(),
118
- error: types.optional(types.string()),
119
- request$: z.custom<Request>(x => x instanceof Request),
120
- response$: z.custom<Response>(x => x instanceof Response),
121
- body$: z.string(),
122
- }),
123
- z.transform((v) => {
124
- return new ScanPortsInternalServerError(v, {
125
- request: v.request$,
126
- response: v.response$,
127
- body: v.body$,
128
- });
129
- }),
130
- );
131
-
132
- /** @internal */
133
- export const ScanPortsPaymentRequiredError$inboundSchema: z.ZodMiniType<
134
- ScanPortsPaymentRequiredError,
135
- unknown
136
- > = z.pipe(
137
- z.object({
138
- success: types.boolean(),
139
- error: types.optional(types.string()),
140
- request$: z.custom<Request>(x => x instanceof Request),
141
- response$: z.custom<Response>(x => x instanceof Response),
142
- body$: z.string(),
143
- }),
144
- z.transform((v) => {
145
- return new ScanPortsPaymentRequiredError(v, {
146
- request: v.request$,
147
- response: v.response$,
148
- body: v.body$,
149
- });
150
- }),
151
- );
152
-
153
- /** @internal */
154
- export const ScanPortsBadRequestError$inboundSchema: z.ZodMiniType<
155
- ScanPortsBadRequestError,
156
- unknown
157
- > = z.pipe(
158
- z.object({
159
- success: types.boolean(),
160
- error: types.optional(types.string()),
161
- request$: z.custom<Request>(x => x instanceof Request),
162
- response$: z.custom<Response>(x => x instanceof Response),
163
- body$: z.string(),
164
- }),
165
- z.transform((v) => {
166
- return new ScanPortsBadRequestError(v, {
167
- request: v.request$,
168
- response: v.response$,
169
- body: v.body$,
170
- });
171
- }),
172
- );
@@ -1,71 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import * as operations from "../operations/index.js";
8
- import { IndiciaError } from "./indicia-error.js";
9
-
10
- /**
11
- * Internal Server Error
12
- */
13
- export type SearchCertificatesInternalServerErrorData = {
14
- data: Array<operations.SearchCertificatesInternalServerErrorData>;
15
- success: boolean;
16
- error?: string | undefined;
17
- };
18
-
19
- /**
20
- * Internal Server Error
21
- */
22
- export class SearchCertificatesInternalServerError extends IndiciaError {
23
- data: Array<operations.SearchCertificatesInternalServerErrorData>;
24
- success: boolean;
25
- error?: string | undefined;
26
-
27
- /** The original data that was passed to this error instance. */
28
- data$: SearchCertificatesInternalServerErrorData;
29
-
30
- constructor(
31
- err: SearchCertificatesInternalServerErrorData,
32
- httpMeta: { response: Response; request: Request; body: string },
33
- ) {
34
- const message = "message" in err && typeof err.message === "string"
35
- ? err.message
36
- : `API error occurred: ${JSON.stringify(err)}`;
37
- super(message, httpMeta);
38
- this.data$ = err;
39
- this.data = err.data;
40
- this.success = err.success;
41
- if (err.error != null) this.error = err.error;
42
-
43
- this.name = "SearchCertificatesInternalServerError";
44
- }
45
- }
46
-
47
- /** @internal */
48
- export const SearchCertificatesInternalServerError$inboundSchema: z.ZodMiniType<
49
- SearchCertificatesInternalServerError,
50
- unknown
51
- > = z.pipe(
52
- z.object({
53
- data: z.array(z.lazy(() =>
54
- operations.SearchCertificatesInternalServerErrorData$inboundSchema
55
- )),
56
- success: types.boolean(),
57
- error: types.optional(types.string()),
58
- request$: z.custom<Request>(x =>
59
- x instanceof Request
60
- ),
61
- response$: z.custom<Response>(x => x instanceof Response),
62
- body$: z.string(),
63
- }),
64
- z.transform((v) => {
65
- return new SearchCertificatesInternalServerError(v, {
66
- request: v.request$,
67
- response: v.response$,
68
- body: v.body$,
69
- });
70
- }),
71
- );
@@ -1,62 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import { IndiciaError } from "./indicia-error.js";
8
-
9
- /**
10
- * Internal Server Error
11
- */
12
- export type SearchDiscordInternalServerErrorData = {
13
- success: boolean;
14
- error?: string | undefined;
15
- };
16
-
17
- /**
18
- * Internal Server Error
19
- */
20
- export class SearchDiscordInternalServerError extends IndiciaError {
21
- success: boolean;
22
- error?: string | undefined;
23
-
24
- /** The original data that was passed to this error instance. */
25
- data$: SearchDiscordInternalServerErrorData;
26
-
27
- constructor(
28
- err: SearchDiscordInternalServerErrorData,
29
- httpMeta: { response: Response; request: Request; body: string },
30
- ) {
31
- const message = "message" in err && typeof err.message === "string"
32
- ? err.message
33
- : `API error occurred: ${JSON.stringify(err)}`;
34
- super(message, httpMeta);
35
- this.data$ = err;
36
- this.success = err.success;
37
- if (err.error != null) this.error = err.error;
38
-
39
- this.name = "SearchDiscordInternalServerError";
40
- }
41
- }
42
-
43
- /** @internal */
44
- export const SearchDiscordInternalServerError$inboundSchema: z.ZodMiniType<
45
- SearchDiscordInternalServerError,
46
- unknown
47
- > = z.pipe(
48
- z.object({
49
- success: types.boolean(),
50
- error: types.optional(types.string()),
51
- request$: z.custom<Request>(x => x instanceof Request),
52
- response$: z.custom<Response>(x => x instanceof Response),
53
- body$: z.string(),
54
- }),
55
- z.transform((v) => {
56
- return new SearchDiscordInternalServerError(v, {
57
- request: v.request$,
58
- response: v.response$,
59
- body: v.body$,
60
- });
61
- }),
62
- );