@distilled.cloud/cloudflare 0.0.0 → 0.2.3

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 (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,2768 @@
1
+ /**
2
+ * Cloudflare INTEL API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service intel
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits";
12
+ import type { Credentials } from "../credentials";
13
+ import { type DefaultErrors } from "../errors";
14
+
15
+ // =============================================================================
16
+ // Asn
17
+ // =============================================================================
18
+
19
+ export interface GetAsnRequest {
20
+ /** Identifier. */
21
+ accountId: string;
22
+ }
23
+
24
+ export const GetAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
25
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
26
+ }).pipe(
27
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/asn/{asn}" }),
28
+ ) as unknown as Schema.Schema<GetAsnRequest>;
29
+
30
+ export type GetAsnResponse = unknown;
31
+
32
+ export const GetAsnResponse =
33
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetAsnResponse>;
34
+
35
+ export type GetAsnError = DefaultErrors;
36
+
37
+ export const getAsn: API.OperationMethod<
38
+ GetAsnRequest,
39
+ GetAsnResponse,
40
+ GetAsnError,
41
+ Credentials | HttpClient.HttpClient
42
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
43
+ input: GetAsnRequest,
44
+ output: GetAsnResponse,
45
+ errors: [],
46
+ }));
47
+
48
+ // =============================================================================
49
+ // AsnSubnet
50
+ // =============================================================================
51
+
52
+ export interface GetAsnSubnetRequest {
53
+ /** Identifier. */
54
+ accountId: string;
55
+ }
56
+
57
+ export const GetAsnSubnetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
58
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
59
+ }).pipe(
60
+ T.Http({
61
+ method: "GET",
62
+ path: "/accounts/{account_id}/intel/asn/{asn}/subnets",
63
+ }),
64
+ ) as unknown as Schema.Schema<GetAsnSubnetRequest>;
65
+
66
+ export interface GetAsnSubnetResponse {
67
+ asn?: number | null;
68
+ /** Total results returned based on your search parameters. */
69
+ count?: number | null;
70
+ ipCountTotal?: number | null;
71
+ /** Current page within paginated list of results. */
72
+ page?: number | null;
73
+ /** Number of results per page of results. */
74
+ perPage?: number | null;
75
+ subnets?: string[] | null;
76
+ }
77
+
78
+ export const GetAsnSubnetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
79
+ asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
80
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
81
+ ipCountTotal: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
82
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
83
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
84
+ subnets: Schema.optional(
85
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
86
+ ),
87
+ }).pipe(
88
+ Schema.encodeKeys({
89
+ asn: "asn",
90
+ count: "count",
91
+ ipCountTotal: "ip_count_total",
92
+ page: "page",
93
+ perPage: "per_page",
94
+ subnets: "subnets",
95
+ }),
96
+ ) as unknown as Schema.Schema<GetAsnSubnetResponse>;
97
+
98
+ export type GetAsnSubnetError = DefaultErrors;
99
+
100
+ export const getAsnSubnet: API.OperationMethod<
101
+ GetAsnSubnetRequest,
102
+ GetAsnSubnetResponse,
103
+ GetAsnSubnetError,
104
+ Credentials | HttpClient.HttpClient
105
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
106
+ input: GetAsnSubnetRequest,
107
+ output: GetAsnSubnetResponse,
108
+ errors: [],
109
+ }));
110
+
111
+ // =============================================================================
112
+ // AttackSurfaceReportIssue
113
+ // =============================================================================
114
+
115
+ export interface ListAttackSurfaceReportIssuesRequest {
116
+ /** Path param: Identifier. */
117
+ accountId: string;
118
+ /** Query param: */
119
+ dismissed?: boolean;
120
+ /** Query param: */
121
+ issueClass?: string[];
122
+ /** Query param: */
123
+ issueClassNeq?: string[];
124
+ /** Query param: */
125
+ issueType?: (
126
+ | "compliance_violation"
127
+ | "email_security"
128
+ | "exposed_infrastructure"
129
+ | "insecure_configuration"
130
+ | "weak_authentication"
131
+ | "configuration_suggestion"
132
+ )[];
133
+ /** Query param: */
134
+ issueTypeNeq?: (
135
+ | "compliance_violation"
136
+ | "email_security"
137
+ | "exposed_infrastructure"
138
+ | "insecure_configuration"
139
+ | "weak_authentication"
140
+ | "configuration_suggestion"
141
+ )[];
142
+ /** Query param: */
143
+ product?: string[];
144
+ /** Query param: */
145
+ productNeq?: string[];
146
+ /** Query param: */
147
+ severity?: ("low" | "moderate" | "critical")[];
148
+ /** Query param: */
149
+ severityNeq?: ("low" | "moderate" | "critical")[];
150
+ /** Query param: */
151
+ subject?: string[];
152
+ /** Query param: */
153
+ subjectNeq?: string[];
154
+ }
155
+
156
+ export const ListAttackSurfaceReportIssuesRequest =
157
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
158
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
159
+ dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
160
+ issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(
161
+ T.HttpQuery("issue_class"),
162
+ ),
163
+ issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
164
+ T.HttpQuery("issue_class~neq"),
165
+ ),
166
+ issueType: Schema.optional(
167
+ Schema.Array(
168
+ Schema.Literals([
169
+ "compliance_violation",
170
+ "email_security",
171
+ "exposed_infrastructure",
172
+ "insecure_configuration",
173
+ "weak_authentication",
174
+ "configuration_suggestion",
175
+ ]),
176
+ ),
177
+ ).pipe(T.HttpQuery("issue_type")),
178
+ issueTypeNeq: Schema.optional(
179
+ Schema.Array(
180
+ Schema.Literals([
181
+ "compliance_violation",
182
+ "email_security",
183
+ "exposed_infrastructure",
184
+ "insecure_configuration",
185
+ "weak_authentication",
186
+ "configuration_suggestion",
187
+ ]),
188
+ ),
189
+ ).pipe(T.HttpQuery("issue_type~neq")),
190
+ product: Schema.optional(Schema.Array(Schema.String)).pipe(
191
+ T.HttpQuery("product"),
192
+ ),
193
+ productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
194
+ T.HttpQuery("product~neq"),
195
+ ),
196
+ severity: Schema.optional(
197
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
198
+ ).pipe(T.HttpQuery("severity")),
199
+ severityNeq: Schema.optional(
200
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
201
+ ).pipe(T.HttpQuery("severity~neq")),
202
+ subject: Schema.optional(Schema.Array(Schema.String)).pipe(
203
+ T.HttpQuery("subject"),
204
+ ),
205
+ subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
206
+ T.HttpQuery("subject~neq"),
207
+ ),
208
+ }).pipe(
209
+ T.Http({
210
+ method: "GET",
211
+ path: "/accounts/{account_id}/intel/attack-surface-report/issues",
212
+ }),
213
+ ) as unknown as Schema.Schema<ListAttackSurfaceReportIssuesRequest>;
214
+
215
+ export type ListAttackSurfaceReportIssuesResponse = {
216
+ count?: number | null;
217
+ issues?:
218
+ | {
219
+ id?: string | null;
220
+ dismissed?: boolean | null;
221
+ issueClass?: string | null;
222
+ issueType?:
223
+ | "compliance_violation"
224
+ | "email_security"
225
+ | "exposed_infrastructure"
226
+ | "insecure_configuration"
227
+ | "weak_authentication"
228
+ | "configuration_suggestion"
229
+ | null;
230
+ payload?: {
231
+ detectionMethod?: string | null;
232
+ zoneTag?: string | null;
233
+ } | null;
234
+ resolveLink?: string | null;
235
+ resolveText?: string | null;
236
+ severity?: "Low" | "Moderate" | "Critical" | null;
237
+ since?: string | null;
238
+ subject?: string | null;
239
+ timestamp?: string | null;
240
+ }[]
241
+ | null;
242
+ page?: number | null;
243
+ perPage?: number | null;
244
+ }[];
245
+
246
+ export const ListAttackSurfaceReportIssuesResponse =
247
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
248
+ Schema.Struct({
249
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
250
+ issues: Schema.optional(
251
+ Schema.Union([
252
+ Schema.Array(
253
+ Schema.Struct({
254
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
255
+ dismissed: Schema.optional(
256
+ Schema.Union([Schema.Boolean, Schema.Null]),
257
+ ),
258
+ issueClass: Schema.optional(
259
+ Schema.Union([Schema.String, Schema.Null]),
260
+ ),
261
+ issueType: Schema.optional(
262
+ Schema.Union([
263
+ Schema.Literals([
264
+ "compliance_violation",
265
+ "email_security",
266
+ "exposed_infrastructure",
267
+ "insecure_configuration",
268
+ "weak_authentication",
269
+ "configuration_suggestion",
270
+ ]),
271
+ Schema.Null,
272
+ ]),
273
+ ),
274
+ payload: Schema.optional(
275
+ Schema.Union([
276
+ Schema.Struct({
277
+ detectionMethod: Schema.optional(
278
+ Schema.Union([Schema.String, Schema.Null]),
279
+ ),
280
+ zoneTag: Schema.optional(
281
+ Schema.Union([Schema.String, Schema.Null]),
282
+ ),
283
+ }).pipe(
284
+ Schema.encodeKeys({
285
+ detectionMethod: "detection_method",
286
+ zoneTag: "zone_tag",
287
+ }),
288
+ ),
289
+ Schema.Null,
290
+ ]),
291
+ ),
292
+ resolveLink: Schema.optional(
293
+ Schema.Union([Schema.String, Schema.Null]),
294
+ ),
295
+ resolveText: Schema.optional(
296
+ Schema.Union([Schema.String, Schema.Null]),
297
+ ),
298
+ severity: Schema.optional(
299
+ Schema.Union([
300
+ Schema.Literals(["Low", "Moderate", "Critical"]),
301
+ Schema.Null,
302
+ ]),
303
+ ),
304
+ since: Schema.optional(
305
+ Schema.Union([Schema.String, Schema.Null]),
306
+ ),
307
+ subject: Schema.optional(
308
+ Schema.Union([Schema.String, Schema.Null]),
309
+ ),
310
+ timestamp: Schema.optional(
311
+ Schema.Union([Schema.String, Schema.Null]),
312
+ ),
313
+ }).pipe(
314
+ Schema.encodeKeys({
315
+ id: "id",
316
+ dismissed: "dismissed",
317
+ issueClass: "issue_class",
318
+ issueType: "issue_type",
319
+ payload: "payload",
320
+ resolveLink: "resolve_link",
321
+ resolveText: "resolve_text",
322
+ severity: "severity",
323
+ since: "since",
324
+ subject: "subject",
325
+ timestamp: "timestamp",
326
+ }),
327
+ ),
328
+ ),
329
+ Schema.Null,
330
+ ]),
331
+ ),
332
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
333
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
334
+ }).pipe(
335
+ Schema.encodeKeys({
336
+ count: "count",
337
+ issues: "issues",
338
+ page: "page",
339
+ perPage: "per_page",
340
+ }),
341
+ ),
342
+ ) as unknown as Schema.Schema<ListAttackSurfaceReportIssuesResponse>;
343
+
344
+ export type ListAttackSurfaceReportIssuesError = DefaultErrors;
345
+
346
+ export const listAttackSurfaceReportIssues: API.OperationMethod<
347
+ ListAttackSurfaceReportIssuesRequest,
348
+ ListAttackSurfaceReportIssuesResponse,
349
+ ListAttackSurfaceReportIssuesError,
350
+ Credentials | HttpClient.HttpClient
351
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
352
+ input: ListAttackSurfaceReportIssuesRequest,
353
+ output: ListAttackSurfaceReportIssuesResponse,
354
+ errors: [],
355
+ }));
356
+
357
+ export interface ClassAttackSurfaceReportIssueRequest {
358
+ /** Path param: Identifier. */
359
+ accountId: string;
360
+ /** Query param: */
361
+ dismissed?: boolean;
362
+ /** Query param: */
363
+ issueClass?: string[];
364
+ /** Query param: */
365
+ issueClassNeq?: string[];
366
+ /** Query param: */
367
+ issueType?: (
368
+ | "compliance_violation"
369
+ | "email_security"
370
+ | "exposed_infrastructure"
371
+ | "insecure_configuration"
372
+ | "weak_authentication"
373
+ | "configuration_suggestion"
374
+ )[];
375
+ /** Query param: */
376
+ issueTypeNeq?: (
377
+ | "compliance_violation"
378
+ | "email_security"
379
+ | "exposed_infrastructure"
380
+ | "insecure_configuration"
381
+ | "weak_authentication"
382
+ | "configuration_suggestion"
383
+ )[];
384
+ /** Query param: */
385
+ product?: string[];
386
+ /** Query param: */
387
+ productNeq?: string[];
388
+ /** Query param: */
389
+ severity?: ("low" | "moderate" | "critical")[];
390
+ /** Query param: */
391
+ severityNeq?: ("low" | "moderate" | "critical")[];
392
+ /** Query param: */
393
+ subject?: string[];
394
+ /** Query param: */
395
+ subjectNeq?: string[];
396
+ }
397
+
398
+ export const ClassAttackSurfaceReportIssueRequest =
399
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
400
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
401
+ dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
402
+ issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(
403
+ T.HttpQuery("issue_class"),
404
+ ),
405
+ issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
406
+ T.HttpQuery("issue_class~neq"),
407
+ ),
408
+ issueType: Schema.optional(
409
+ Schema.Array(
410
+ Schema.Literals([
411
+ "compliance_violation",
412
+ "email_security",
413
+ "exposed_infrastructure",
414
+ "insecure_configuration",
415
+ "weak_authentication",
416
+ "configuration_suggestion",
417
+ ]),
418
+ ),
419
+ ).pipe(T.HttpQuery("issue_type")),
420
+ issueTypeNeq: Schema.optional(
421
+ Schema.Array(
422
+ Schema.Literals([
423
+ "compliance_violation",
424
+ "email_security",
425
+ "exposed_infrastructure",
426
+ "insecure_configuration",
427
+ "weak_authentication",
428
+ "configuration_suggestion",
429
+ ]),
430
+ ),
431
+ ).pipe(T.HttpQuery("issue_type~neq")),
432
+ product: Schema.optional(Schema.Array(Schema.String)).pipe(
433
+ T.HttpQuery("product"),
434
+ ),
435
+ productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
436
+ T.HttpQuery("product~neq"),
437
+ ),
438
+ severity: Schema.optional(
439
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
440
+ ).pipe(T.HttpQuery("severity")),
441
+ severityNeq: Schema.optional(
442
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
443
+ ).pipe(T.HttpQuery("severity~neq")),
444
+ subject: Schema.optional(Schema.Array(Schema.String)).pipe(
445
+ T.HttpQuery("subject"),
446
+ ),
447
+ subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
448
+ T.HttpQuery("subject~neq"),
449
+ ),
450
+ }).pipe(
451
+ T.Http({
452
+ method: "GET",
453
+ path: "/accounts/{account_id}/intel/attack-surface-report/issues/class",
454
+ }),
455
+ ) as unknown as Schema.Schema<ClassAttackSurfaceReportIssueRequest>;
456
+
457
+ export type ClassAttackSurfaceReportIssueResponse = {
458
+ count?: number | null;
459
+ value?: string | null;
460
+ }[];
461
+
462
+ export const ClassAttackSurfaceReportIssueResponse =
463
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
464
+ Schema.Struct({
465
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
466
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
467
+ }),
468
+ ) as unknown as Schema.Schema<ClassAttackSurfaceReportIssueResponse>;
469
+
470
+ export type ClassAttackSurfaceReportIssueError = DefaultErrors;
471
+
472
+ export const classAttackSurfaceReportIssue: API.OperationMethod<
473
+ ClassAttackSurfaceReportIssueRequest,
474
+ ClassAttackSurfaceReportIssueResponse,
475
+ ClassAttackSurfaceReportIssueError,
476
+ Credentials | HttpClient.HttpClient
477
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
478
+ input: ClassAttackSurfaceReportIssueRequest,
479
+ output: ClassAttackSurfaceReportIssueResponse,
480
+ errors: [],
481
+ }));
482
+
483
+ export interface DismissAttackSurfaceReportIssueRequest {
484
+ issueId: string;
485
+ /** Path param: Identifier. */
486
+ accountId: string;
487
+ /** Body param: */
488
+ dismiss?: boolean;
489
+ }
490
+
491
+ export const DismissAttackSurfaceReportIssueRequest =
492
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
493
+ issueId: Schema.String.pipe(T.HttpPath("issueId")),
494
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
495
+ dismiss: Schema.optional(Schema.Boolean),
496
+ }).pipe(
497
+ T.Http({
498
+ method: "PUT",
499
+ path: "/accounts/{account_id}/intel/attack-surface-report/{issueId}/dismiss",
500
+ }),
501
+ ) as unknown as Schema.Schema<DismissAttackSurfaceReportIssueRequest>;
502
+
503
+ export interface DismissAttackSurfaceReportIssueResponse {
504
+ errors: {
505
+ code: number;
506
+ message: string;
507
+ documentationUrl?: string | null;
508
+ source?: { pointer?: string | null } | null;
509
+ }[];
510
+ messages: {
511
+ code: number;
512
+ message: string;
513
+ documentationUrl?: string | null;
514
+ source?: { pointer?: string | null } | null;
515
+ }[];
516
+ /** Whether the API call was successful. */
517
+ success: true;
518
+ }
519
+
520
+ export const DismissAttackSurfaceReportIssueResponse =
521
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
522
+ errors: Schema.Array(
523
+ Schema.Struct({
524
+ code: Schema.Number,
525
+ message: Schema.String,
526
+ documentationUrl: Schema.optional(
527
+ Schema.Union([Schema.String, Schema.Null]),
528
+ ),
529
+ source: Schema.optional(
530
+ Schema.Union([
531
+ Schema.Struct({
532
+ pointer: Schema.optional(
533
+ Schema.Union([Schema.String, Schema.Null]),
534
+ ),
535
+ }),
536
+ Schema.Null,
537
+ ]),
538
+ ),
539
+ }).pipe(
540
+ Schema.encodeKeys({
541
+ code: "code",
542
+ message: "message",
543
+ documentationUrl: "documentation_url",
544
+ source: "source",
545
+ }),
546
+ ),
547
+ ),
548
+ messages: Schema.Array(
549
+ Schema.Struct({
550
+ code: Schema.Number,
551
+ message: Schema.String,
552
+ documentationUrl: Schema.optional(
553
+ Schema.Union([Schema.String, Schema.Null]),
554
+ ),
555
+ source: Schema.optional(
556
+ Schema.Union([
557
+ Schema.Struct({
558
+ pointer: Schema.optional(
559
+ Schema.Union([Schema.String, Schema.Null]),
560
+ ),
561
+ }),
562
+ Schema.Null,
563
+ ]),
564
+ ),
565
+ }).pipe(
566
+ Schema.encodeKeys({
567
+ code: "code",
568
+ message: "message",
569
+ documentationUrl: "documentation_url",
570
+ source: "source",
571
+ }),
572
+ ),
573
+ ),
574
+ success: Schema.Literal(true),
575
+ }) as unknown as Schema.Schema<DismissAttackSurfaceReportIssueResponse>;
576
+
577
+ export type DismissAttackSurfaceReportIssueError = DefaultErrors;
578
+
579
+ export const dismissAttackSurfaceReportIssue: API.OperationMethod<
580
+ DismissAttackSurfaceReportIssueRequest,
581
+ DismissAttackSurfaceReportIssueResponse,
582
+ DismissAttackSurfaceReportIssueError,
583
+ Credentials | HttpClient.HttpClient
584
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
585
+ input: DismissAttackSurfaceReportIssueRequest,
586
+ output: DismissAttackSurfaceReportIssueResponse,
587
+ errors: [],
588
+ }));
589
+
590
+ export interface SeverityAttackSurfaceReportIssueRequest {
591
+ /** Path param: Identifier. */
592
+ accountId: string;
593
+ /** Query param: */
594
+ dismissed?: boolean;
595
+ /** Query param: */
596
+ issueClass?: string[];
597
+ /** Query param: */
598
+ issueClassNeq?: string[];
599
+ /** Query param: */
600
+ issueType?: (
601
+ | "compliance_violation"
602
+ | "email_security"
603
+ | "exposed_infrastructure"
604
+ | "insecure_configuration"
605
+ | "weak_authentication"
606
+ | "configuration_suggestion"
607
+ )[];
608
+ /** Query param: */
609
+ issueTypeNeq?: (
610
+ | "compliance_violation"
611
+ | "email_security"
612
+ | "exposed_infrastructure"
613
+ | "insecure_configuration"
614
+ | "weak_authentication"
615
+ | "configuration_suggestion"
616
+ )[];
617
+ /** Query param: */
618
+ product?: string[];
619
+ /** Query param: */
620
+ productNeq?: string[];
621
+ /** Query param: */
622
+ severity?: ("low" | "moderate" | "critical")[];
623
+ /** Query param: */
624
+ severityNeq?: ("low" | "moderate" | "critical")[];
625
+ /** Query param: */
626
+ subject?: string[];
627
+ /** Query param: */
628
+ subjectNeq?: string[];
629
+ }
630
+
631
+ export const SeverityAttackSurfaceReportIssueRequest =
632
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
633
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
634
+ dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
635
+ issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(
636
+ T.HttpQuery("issue_class"),
637
+ ),
638
+ issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
639
+ T.HttpQuery("issue_class~neq"),
640
+ ),
641
+ issueType: Schema.optional(
642
+ Schema.Array(
643
+ Schema.Literals([
644
+ "compliance_violation",
645
+ "email_security",
646
+ "exposed_infrastructure",
647
+ "insecure_configuration",
648
+ "weak_authentication",
649
+ "configuration_suggestion",
650
+ ]),
651
+ ),
652
+ ).pipe(T.HttpQuery("issue_type")),
653
+ issueTypeNeq: Schema.optional(
654
+ Schema.Array(
655
+ Schema.Literals([
656
+ "compliance_violation",
657
+ "email_security",
658
+ "exposed_infrastructure",
659
+ "insecure_configuration",
660
+ "weak_authentication",
661
+ "configuration_suggestion",
662
+ ]),
663
+ ),
664
+ ).pipe(T.HttpQuery("issue_type~neq")),
665
+ product: Schema.optional(Schema.Array(Schema.String)).pipe(
666
+ T.HttpQuery("product"),
667
+ ),
668
+ productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
669
+ T.HttpQuery("product~neq"),
670
+ ),
671
+ severity: Schema.optional(
672
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
673
+ ).pipe(T.HttpQuery("severity")),
674
+ severityNeq: Schema.optional(
675
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
676
+ ).pipe(T.HttpQuery("severity~neq")),
677
+ subject: Schema.optional(Schema.Array(Schema.String)).pipe(
678
+ T.HttpQuery("subject"),
679
+ ),
680
+ subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
681
+ T.HttpQuery("subject~neq"),
682
+ ),
683
+ }).pipe(
684
+ T.Http({
685
+ method: "GET",
686
+ path: "/accounts/{account_id}/intel/attack-surface-report/issues/severity",
687
+ }),
688
+ ) as unknown as Schema.Schema<SeverityAttackSurfaceReportIssueRequest>;
689
+
690
+ export type SeverityAttackSurfaceReportIssueResponse = {
691
+ count?: number | null;
692
+ value?: string | null;
693
+ }[];
694
+
695
+ export const SeverityAttackSurfaceReportIssueResponse =
696
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
697
+ Schema.Struct({
698
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
699
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
700
+ }),
701
+ ) as unknown as Schema.Schema<SeverityAttackSurfaceReportIssueResponse>;
702
+
703
+ export type SeverityAttackSurfaceReportIssueError = DefaultErrors;
704
+
705
+ export const severityAttackSurfaceReportIssue: API.OperationMethod<
706
+ SeverityAttackSurfaceReportIssueRequest,
707
+ SeverityAttackSurfaceReportIssueResponse,
708
+ SeverityAttackSurfaceReportIssueError,
709
+ Credentials | HttpClient.HttpClient
710
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
711
+ input: SeverityAttackSurfaceReportIssueRequest,
712
+ output: SeverityAttackSurfaceReportIssueResponse,
713
+ errors: [],
714
+ }));
715
+
716
+ export interface TypeAttackSurfaceReportIssueRequest {
717
+ /** Path param: Identifier. */
718
+ accountId: string;
719
+ /** Query param: */
720
+ dismissed?: boolean;
721
+ /** Query param: */
722
+ issueClass?: string[];
723
+ /** Query param: */
724
+ issueClassNeq?: string[];
725
+ /** Query param: */
726
+ issueType?: (
727
+ | "compliance_violation"
728
+ | "email_security"
729
+ | "exposed_infrastructure"
730
+ | "insecure_configuration"
731
+ | "weak_authentication"
732
+ | "configuration_suggestion"
733
+ )[];
734
+ /** Query param: */
735
+ issueTypeNeq?: (
736
+ | "compliance_violation"
737
+ | "email_security"
738
+ | "exposed_infrastructure"
739
+ | "insecure_configuration"
740
+ | "weak_authentication"
741
+ | "configuration_suggestion"
742
+ )[];
743
+ /** Query param: */
744
+ product?: string[];
745
+ /** Query param: */
746
+ productNeq?: string[];
747
+ /** Query param: */
748
+ severity?: ("low" | "moderate" | "critical")[];
749
+ /** Query param: */
750
+ severityNeq?: ("low" | "moderate" | "critical")[];
751
+ /** Query param: */
752
+ subject?: string[];
753
+ /** Query param: */
754
+ subjectNeq?: string[];
755
+ }
756
+
757
+ export const TypeAttackSurfaceReportIssueRequest =
758
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
759
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
760
+ dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
761
+ issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(
762
+ T.HttpQuery("issue_class"),
763
+ ),
764
+ issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
765
+ T.HttpQuery("issue_class~neq"),
766
+ ),
767
+ issueType: Schema.optional(
768
+ Schema.Array(
769
+ Schema.Literals([
770
+ "compliance_violation",
771
+ "email_security",
772
+ "exposed_infrastructure",
773
+ "insecure_configuration",
774
+ "weak_authentication",
775
+ "configuration_suggestion",
776
+ ]),
777
+ ),
778
+ ).pipe(T.HttpQuery("issue_type")),
779
+ issueTypeNeq: Schema.optional(
780
+ Schema.Array(
781
+ Schema.Literals([
782
+ "compliance_violation",
783
+ "email_security",
784
+ "exposed_infrastructure",
785
+ "insecure_configuration",
786
+ "weak_authentication",
787
+ "configuration_suggestion",
788
+ ]),
789
+ ),
790
+ ).pipe(T.HttpQuery("issue_type~neq")),
791
+ product: Schema.optional(Schema.Array(Schema.String)).pipe(
792
+ T.HttpQuery("product"),
793
+ ),
794
+ productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
795
+ T.HttpQuery("product~neq"),
796
+ ),
797
+ severity: Schema.optional(
798
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
799
+ ).pipe(T.HttpQuery("severity")),
800
+ severityNeq: Schema.optional(
801
+ Schema.Array(Schema.Literals(["low", "moderate", "critical"])),
802
+ ).pipe(T.HttpQuery("severity~neq")),
803
+ subject: Schema.optional(Schema.Array(Schema.String)).pipe(
804
+ T.HttpQuery("subject"),
805
+ ),
806
+ subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(
807
+ T.HttpQuery("subject~neq"),
808
+ ),
809
+ }).pipe(
810
+ T.Http({
811
+ method: "GET",
812
+ path: "/accounts/{account_id}/intel/attack-surface-report/issues/type",
813
+ }),
814
+ ) as unknown as Schema.Schema<TypeAttackSurfaceReportIssueRequest>;
815
+
816
+ export type TypeAttackSurfaceReportIssueResponse = {
817
+ count?: number | null;
818
+ value?: string | null;
819
+ }[];
820
+
821
+ export const TypeAttackSurfaceReportIssueResponse =
822
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
823
+ Schema.Struct({
824
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
825
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
826
+ }),
827
+ ) as unknown as Schema.Schema<TypeAttackSurfaceReportIssueResponse>;
828
+
829
+ export type TypeAttackSurfaceReportIssueError = DefaultErrors;
830
+
831
+ export const typeAttackSurfaceReportIssue: API.OperationMethod<
832
+ TypeAttackSurfaceReportIssueRequest,
833
+ TypeAttackSurfaceReportIssueResponse,
834
+ TypeAttackSurfaceReportIssueError,
835
+ Credentials | HttpClient.HttpClient
836
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
837
+ input: TypeAttackSurfaceReportIssueRequest,
838
+ output: TypeAttackSurfaceReportIssueResponse,
839
+ errors: [],
840
+ }));
841
+
842
+ // =============================================================================
843
+ // AttackSurfaceReportIssueType
844
+ // =============================================================================
845
+
846
+ export interface GetAttackSurfaceReportIssueTypeRequest {
847
+ /** Identifier. */
848
+ accountId: string;
849
+ }
850
+
851
+ export const GetAttackSurfaceReportIssueTypeRequest =
852
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
853
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
854
+ }).pipe(
855
+ T.Http({
856
+ method: "GET",
857
+ path: "/accounts/{account_id}/intel/attack-surface-report/issue-types",
858
+ }),
859
+ ) as unknown as Schema.Schema<GetAttackSurfaceReportIssueTypeRequest>;
860
+
861
+ export type GetAttackSurfaceReportIssueTypeResponse = string[];
862
+
863
+ export const GetAttackSurfaceReportIssueTypeResponse =
864
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
865
+ Schema.String,
866
+ ) as unknown as Schema.Schema<GetAttackSurfaceReportIssueTypeResponse>;
867
+
868
+ export type GetAttackSurfaceReportIssueTypeError = DefaultErrors;
869
+
870
+ export const getAttackSurfaceReportIssueType: API.OperationMethod<
871
+ GetAttackSurfaceReportIssueTypeRequest,
872
+ GetAttackSurfaceReportIssueTypeResponse,
873
+ GetAttackSurfaceReportIssueTypeError,
874
+ Credentials | HttpClient.HttpClient
875
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
876
+ input: GetAttackSurfaceReportIssueTypeRequest,
877
+ output: GetAttackSurfaceReportIssueTypeResponse,
878
+ errors: [],
879
+ }));
880
+
881
+ // =============================================================================
882
+ // Dns
883
+ // =============================================================================
884
+
885
+ export interface ListDnsRequest {
886
+ /** Path param: Identifier. */
887
+ accountId: string;
888
+ /** Query param: */
889
+ ipv4?: string;
890
+ /** Query param: */
891
+ startEndParams?: { end?: string; start?: string };
892
+ }
893
+
894
+ export const ListDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
895
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
896
+ ipv4: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv4")),
897
+ startEndParams: Schema.optional(
898
+ Schema.Struct({
899
+ end: Schema.optional(Schema.String),
900
+ start: Schema.optional(Schema.String),
901
+ }),
902
+ ).pipe(T.HttpQuery("start_end_params")),
903
+ }).pipe(
904
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/dns" }),
905
+ ) as unknown as Schema.Schema<ListDnsRequest>;
906
+
907
+ export type ListDnsResponse = {
908
+ count?: number | null;
909
+ page?: number | null;
910
+ perPage?: number | null;
911
+ reverseRecords?:
912
+ | {
913
+ firstSeen?: string | null;
914
+ hostname?: string | null;
915
+ lastSeen?: string | null;
916
+ }[]
917
+ | null;
918
+ }[];
919
+
920
+ export const ListDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
921
+ Schema.Struct({
922
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
923
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
924
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
925
+ reverseRecords: Schema.optional(
926
+ Schema.Union([
927
+ Schema.Array(
928
+ Schema.Struct({
929
+ firstSeen: Schema.optional(
930
+ Schema.Union([Schema.String, Schema.Null]),
931
+ ),
932
+ hostname: Schema.optional(
933
+ Schema.Union([Schema.String, Schema.Null]),
934
+ ),
935
+ lastSeen: Schema.optional(
936
+ Schema.Union([Schema.String, Schema.Null]),
937
+ ),
938
+ }).pipe(
939
+ Schema.encodeKeys({
940
+ firstSeen: "first_seen",
941
+ hostname: "hostname",
942
+ lastSeen: "last_seen",
943
+ }),
944
+ ),
945
+ ),
946
+ Schema.Null,
947
+ ]),
948
+ ),
949
+ }).pipe(
950
+ Schema.encodeKeys({
951
+ count: "count",
952
+ page: "page",
953
+ perPage: "per_page",
954
+ reverseRecords: "reverse_records",
955
+ }),
956
+ ),
957
+ ) as unknown as Schema.Schema<ListDnsResponse>;
958
+
959
+ export type ListDnsError = DefaultErrors;
960
+
961
+ export const listDns: API.OperationMethod<
962
+ ListDnsRequest,
963
+ ListDnsResponse,
964
+ ListDnsError,
965
+ Credentials | HttpClient.HttpClient
966
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
967
+ input: ListDnsRequest,
968
+ output: ListDnsResponse,
969
+ errors: [],
970
+ }));
971
+
972
+ // =============================================================================
973
+ // Domain
974
+ // =============================================================================
975
+
976
+ export interface GetDomainRequest {
977
+ /** Path param: Identifier. */
978
+ accountId: string;
979
+ /** Query param: */
980
+ domain?: string;
981
+ }
982
+
983
+ export const GetDomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
984
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
985
+ domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
986
+ }).pipe(
987
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/domain" }),
988
+ ) as unknown as Schema.Schema<GetDomainRequest>;
989
+
990
+ export interface GetDomainResponse {
991
+ /** Additional information related to the host name. */
992
+ additionalInformation?: { suspectedMalwareFamily?: string | null } | null;
993
+ /** Application that the hostname belongs to. */
994
+ application?: { id?: number | null; name?: string | null } | null;
995
+ contentCategories?:
996
+ | {
997
+ id?: number | null;
998
+ name?: string | null;
999
+ superCategoryId?: number | null;
1000
+ }[]
1001
+ | null;
1002
+ domain?: string | null;
1003
+ inheritedContentCategories?:
1004
+ | {
1005
+ id?: number | null;
1006
+ name?: string | null;
1007
+ superCategoryId?: number | null;
1008
+ }[]
1009
+ | null;
1010
+ /** Domain from which `inherited_content_categories` and `inherited_risk_types` are inherited, if applicable. */
1011
+ inheritedFrom?: string | null;
1012
+ inheritedRiskTypes?:
1013
+ | {
1014
+ id?: number | null;
1015
+ name?: string | null;
1016
+ superCategoryId?: number | null;
1017
+ }[]
1018
+ | null;
1019
+ /** Global Cloudflare 100k ranking for the last 30 days, if available for the hostname. The top ranked domain is 1, the lowest ranked domain is 100,000. */
1020
+ popularityRank?: number | null;
1021
+ /** Specifies a list of references to one or more IP addresses or domain names that the domain name currently resolves to. */
1022
+ resolvesToRefs?: { id?: string | null; value?: string | null }[] | null;
1023
+ /** Hostname risk score, which is a value between 0 (lowest risk) to 1 (highest risk). */
1024
+ riskScore?: number | null;
1025
+ riskTypes?:
1026
+ | {
1027
+ id?: number | null;
1028
+ name?: string | null;
1029
+ superCategoryId?: number | null;
1030
+ }[]
1031
+ | null;
1032
+ }
1033
+
1034
+ export const GetDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1035
+ additionalInformation: Schema.optional(
1036
+ Schema.Union([
1037
+ Schema.Struct({
1038
+ suspectedMalwareFamily: Schema.optional(
1039
+ Schema.Union([Schema.String, Schema.Null]),
1040
+ ),
1041
+ }).pipe(
1042
+ Schema.encodeKeys({
1043
+ suspectedMalwareFamily: "suspected_malware_family",
1044
+ }),
1045
+ ),
1046
+ Schema.Null,
1047
+ ]),
1048
+ ),
1049
+ application: Schema.optional(
1050
+ Schema.Union([
1051
+ Schema.Struct({
1052
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1053
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1054
+ }),
1055
+ Schema.Null,
1056
+ ]),
1057
+ ),
1058
+ contentCategories: Schema.optional(
1059
+ Schema.Union([
1060
+ Schema.Array(
1061
+ Schema.Struct({
1062
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1063
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1064
+ superCategoryId: Schema.optional(
1065
+ Schema.Union([Schema.Number, Schema.Null]),
1066
+ ),
1067
+ }).pipe(
1068
+ Schema.encodeKeys({
1069
+ id: "id",
1070
+ name: "name",
1071
+ superCategoryId: "super_category_id",
1072
+ }),
1073
+ ),
1074
+ ),
1075
+ Schema.Null,
1076
+ ]),
1077
+ ),
1078
+ domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1079
+ inheritedContentCategories: Schema.optional(
1080
+ Schema.Union([
1081
+ Schema.Array(
1082
+ Schema.Struct({
1083
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1084
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1085
+ superCategoryId: Schema.optional(
1086
+ Schema.Union([Schema.Number, Schema.Null]),
1087
+ ),
1088
+ }).pipe(
1089
+ Schema.encodeKeys({
1090
+ id: "id",
1091
+ name: "name",
1092
+ superCategoryId: "super_category_id",
1093
+ }),
1094
+ ),
1095
+ ),
1096
+ Schema.Null,
1097
+ ]),
1098
+ ),
1099
+ inheritedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1100
+ inheritedRiskTypes: Schema.optional(
1101
+ Schema.Union([
1102
+ Schema.Array(
1103
+ Schema.Struct({
1104
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1105
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1106
+ superCategoryId: Schema.optional(
1107
+ Schema.Union([Schema.Number, Schema.Null]),
1108
+ ),
1109
+ }).pipe(
1110
+ Schema.encodeKeys({
1111
+ id: "id",
1112
+ name: "name",
1113
+ superCategoryId: "super_category_id",
1114
+ }),
1115
+ ),
1116
+ ),
1117
+ Schema.Null,
1118
+ ]),
1119
+ ),
1120
+ popularityRank: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1121
+ resolvesToRefs: Schema.optional(
1122
+ Schema.Union([
1123
+ Schema.Array(
1124
+ Schema.Struct({
1125
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1126
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1127
+ }),
1128
+ ),
1129
+ Schema.Null,
1130
+ ]),
1131
+ ),
1132
+ riskScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1133
+ riskTypes: Schema.optional(
1134
+ Schema.Union([
1135
+ Schema.Array(
1136
+ Schema.Struct({
1137
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1138
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1139
+ superCategoryId: Schema.optional(
1140
+ Schema.Union([Schema.Number, Schema.Null]),
1141
+ ),
1142
+ }).pipe(
1143
+ Schema.encodeKeys({
1144
+ id: "id",
1145
+ name: "name",
1146
+ superCategoryId: "super_category_id",
1147
+ }),
1148
+ ),
1149
+ ),
1150
+ Schema.Null,
1151
+ ]),
1152
+ ),
1153
+ }).pipe(
1154
+ Schema.encodeKeys({
1155
+ additionalInformation: "additional_information",
1156
+ application: "application",
1157
+ contentCategories: "content_categories",
1158
+ domain: "domain",
1159
+ inheritedContentCategories: "inherited_content_categories",
1160
+ inheritedFrom: "inherited_from",
1161
+ inheritedRiskTypes: "inherited_risk_types",
1162
+ popularityRank: "popularity_rank",
1163
+ resolvesToRefs: "resolves_to_refs",
1164
+ riskScore: "risk_score",
1165
+ riskTypes: "risk_types",
1166
+ }),
1167
+ ) as unknown as Schema.Schema<GetDomainResponse>;
1168
+
1169
+ export type GetDomainError = DefaultErrors;
1170
+
1171
+ export const getDomain: API.OperationMethod<
1172
+ GetDomainRequest,
1173
+ GetDomainResponse,
1174
+ GetDomainError,
1175
+ Credentials | HttpClient.HttpClient
1176
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1177
+ input: GetDomainRequest,
1178
+ output: GetDomainResponse,
1179
+ errors: [],
1180
+ }));
1181
+
1182
+ // =============================================================================
1183
+ // DomainBulk
1184
+ // =============================================================================
1185
+
1186
+ export interface GetDomainBulkRequest {
1187
+ /** Path param: Identifier. */
1188
+ accountId: string;
1189
+ /** Query param: Accepts multiple values like `?domain=cloudflare.com&domain=example.com`. */
1190
+ domain?: string[];
1191
+ }
1192
+
1193
+ export const GetDomainBulkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1194
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1195
+ domain: Schema.optional(Schema.Array(Schema.String)).pipe(
1196
+ T.HttpQuery("domain"),
1197
+ ),
1198
+ }).pipe(
1199
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/domain/bulk" }),
1200
+ ) as unknown as Schema.Schema<GetDomainBulkRequest>;
1201
+
1202
+ export type GetDomainBulkResponse = {
1203
+ additionalInformation?: { suspectedMalwareFamily?: string | null } | null;
1204
+ application?: { id?: number | null; name?: string | null } | null;
1205
+ contentCategories?:
1206
+ | {
1207
+ id?: number | null;
1208
+ name?: string | null;
1209
+ superCategoryId?: number | null;
1210
+ }[]
1211
+ | null;
1212
+ domain?: string | null;
1213
+ inheritedContentCategories?:
1214
+ | {
1215
+ id?: number | null;
1216
+ name?: string | null;
1217
+ superCategoryId?: number | null;
1218
+ }[]
1219
+ | null;
1220
+ inheritedFrom?: string | null;
1221
+ inheritedRiskTypes?:
1222
+ | {
1223
+ id?: number | null;
1224
+ name?: string | null;
1225
+ superCategoryId?: number | null;
1226
+ }[]
1227
+ | null;
1228
+ popularityRank?: number | null;
1229
+ riskScore?: number | null;
1230
+ riskTypes?:
1231
+ | {
1232
+ id?: number | null;
1233
+ name?: string | null;
1234
+ superCategoryId?: number | null;
1235
+ }[]
1236
+ | null;
1237
+ }[];
1238
+
1239
+ export const GetDomainBulkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1240
+ Schema.Struct({
1241
+ additionalInformation: Schema.optional(
1242
+ Schema.Union([
1243
+ Schema.Struct({
1244
+ suspectedMalwareFamily: Schema.optional(
1245
+ Schema.Union([Schema.String, Schema.Null]),
1246
+ ),
1247
+ }).pipe(
1248
+ Schema.encodeKeys({
1249
+ suspectedMalwareFamily: "suspected_malware_family",
1250
+ }),
1251
+ ),
1252
+ Schema.Null,
1253
+ ]),
1254
+ ),
1255
+ application: Schema.optional(
1256
+ Schema.Union([
1257
+ Schema.Struct({
1258
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1259
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1260
+ }),
1261
+ Schema.Null,
1262
+ ]),
1263
+ ),
1264
+ contentCategories: Schema.optional(
1265
+ Schema.Union([
1266
+ Schema.Array(
1267
+ Schema.Struct({
1268
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1269
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1270
+ superCategoryId: Schema.optional(
1271
+ Schema.Union([Schema.Number, Schema.Null]),
1272
+ ),
1273
+ }).pipe(
1274
+ Schema.encodeKeys({
1275
+ id: "id",
1276
+ name: "name",
1277
+ superCategoryId: "super_category_id",
1278
+ }),
1279
+ ),
1280
+ ),
1281
+ Schema.Null,
1282
+ ]),
1283
+ ),
1284
+ domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1285
+ inheritedContentCategories: Schema.optional(
1286
+ Schema.Union([
1287
+ Schema.Array(
1288
+ Schema.Struct({
1289
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1290
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1291
+ superCategoryId: Schema.optional(
1292
+ Schema.Union([Schema.Number, Schema.Null]),
1293
+ ),
1294
+ }).pipe(
1295
+ Schema.encodeKeys({
1296
+ id: "id",
1297
+ name: "name",
1298
+ superCategoryId: "super_category_id",
1299
+ }),
1300
+ ),
1301
+ ),
1302
+ Schema.Null,
1303
+ ]),
1304
+ ),
1305
+ inheritedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1306
+ inheritedRiskTypes: Schema.optional(
1307
+ Schema.Union([
1308
+ Schema.Array(
1309
+ Schema.Struct({
1310
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1311
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1312
+ superCategoryId: Schema.optional(
1313
+ Schema.Union([Schema.Number, Schema.Null]),
1314
+ ),
1315
+ }).pipe(
1316
+ Schema.encodeKeys({
1317
+ id: "id",
1318
+ name: "name",
1319
+ superCategoryId: "super_category_id",
1320
+ }),
1321
+ ),
1322
+ ),
1323
+ Schema.Null,
1324
+ ]),
1325
+ ),
1326
+ popularityRank: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1327
+ riskScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1328
+ riskTypes: Schema.optional(
1329
+ Schema.Union([
1330
+ Schema.Array(
1331
+ Schema.Struct({
1332
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1333
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1334
+ superCategoryId: Schema.optional(
1335
+ Schema.Union([Schema.Number, Schema.Null]),
1336
+ ),
1337
+ }).pipe(
1338
+ Schema.encodeKeys({
1339
+ id: "id",
1340
+ name: "name",
1341
+ superCategoryId: "super_category_id",
1342
+ }),
1343
+ ),
1344
+ ),
1345
+ Schema.Null,
1346
+ ]),
1347
+ ),
1348
+ }).pipe(
1349
+ Schema.encodeKeys({
1350
+ additionalInformation: "additional_information",
1351
+ application: "application",
1352
+ contentCategories: "content_categories",
1353
+ domain: "domain",
1354
+ inheritedContentCategories: "inherited_content_categories",
1355
+ inheritedFrom: "inherited_from",
1356
+ inheritedRiskTypes: "inherited_risk_types",
1357
+ popularityRank: "popularity_rank",
1358
+ riskScore: "risk_score",
1359
+ riskTypes: "risk_types",
1360
+ }),
1361
+ ),
1362
+ ) as unknown as Schema.Schema<GetDomainBulkResponse>;
1363
+
1364
+ export type GetDomainBulkError = DefaultErrors;
1365
+
1366
+ export const getDomainBulk: API.OperationMethod<
1367
+ GetDomainBulkRequest,
1368
+ GetDomainBulkResponse,
1369
+ GetDomainBulkError,
1370
+ Credentials | HttpClient.HttpClient
1371
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1372
+ input: GetDomainBulkRequest,
1373
+ output: GetDomainBulkResponse,
1374
+ errors: [],
1375
+ }));
1376
+
1377
+ // =============================================================================
1378
+ // DomainHistory
1379
+ // =============================================================================
1380
+
1381
+ export interface GetDomainHistoryRequest {
1382
+ /** Path param: Identifier. */
1383
+ accountId: string;
1384
+ /** Query param: */
1385
+ domain?: string;
1386
+ }
1387
+
1388
+ export const GetDomainHistoryRequest =
1389
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1390
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1391
+ domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
1392
+ }).pipe(
1393
+ T.Http({
1394
+ method: "GET",
1395
+ path: "/accounts/{account_id}/intel/domain-history",
1396
+ }),
1397
+ ) as unknown as Schema.Schema<GetDomainHistoryRequest>;
1398
+
1399
+ export type GetDomainHistoryResponse = {
1400
+ categorizations?:
1401
+ | {
1402
+ categories?: { id?: number | null; name?: string | null }[] | null;
1403
+ end?: string | null;
1404
+ start?: string | null;
1405
+ }[]
1406
+ | null;
1407
+ domain?: string | null;
1408
+ }[];
1409
+
1410
+ export const GetDomainHistoryResponse =
1411
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1412
+ Schema.Struct({
1413
+ categorizations: Schema.optional(
1414
+ Schema.Union([
1415
+ Schema.Array(
1416
+ Schema.Struct({
1417
+ categories: Schema.optional(
1418
+ Schema.Union([
1419
+ Schema.Array(
1420
+ Schema.Struct({
1421
+ id: Schema.optional(
1422
+ Schema.Union([Schema.Number, Schema.Null]),
1423
+ ),
1424
+ name: Schema.optional(
1425
+ Schema.Union([Schema.String, Schema.Null]),
1426
+ ),
1427
+ }),
1428
+ ),
1429
+ Schema.Null,
1430
+ ]),
1431
+ ),
1432
+ end: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1433
+ start: Schema.optional(
1434
+ Schema.Union([Schema.String, Schema.Null]),
1435
+ ),
1436
+ }),
1437
+ ),
1438
+ Schema.Null,
1439
+ ]),
1440
+ ),
1441
+ domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1442
+ }),
1443
+ ) as unknown as Schema.Schema<GetDomainHistoryResponse>;
1444
+
1445
+ export type GetDomainHistoryError = DefaultErrors;
1446
+
1447
+ export const getDomainHistory: API.OperationMethod<
1448
+ GetDomainHistoryRequest,
1449
+ GetDomainHistoryResponse,
1450
+ GetDomainHistoryError,
1451
+ Credentials | HttpClient.HttpClient
1452
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1453
+ input: GetDomainHistoryRequest,
1454
+ output: GetDomainHistoryResponse,
1455
+ errors: [],
1456
+ }));
1457
+
1458
+ // =============================================================================
1459
+ // IndicatorFeed
1460
+ // =============================================================================
1461
+
1462
+ export interface GetIndicatorFeedRequest {
1463
+ feedId: number;
1464
+ /** Identifier */
1465
+ accountId: string;
1466
+ }
1467
+
1468
+ export const GetIndicatorFeedRequest =
1469
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1470
+ feedId: Schema.Number.pipe(T.HttpPath("feedId")),
1471
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1472
+ }).pipe(
1473
+ T.Http({
1474
+ method: "GET",
1475
+ path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}",
1476
+ }),
1477
+ ) as unknown as Schema.Schema<GetIndicatorFeedRequest>;
1478
+
1479
+ export interface GetIndicatorFeedResponse {
1480
+ /** The unique identifier for the indicator feed */
1481
+ id?: number | null;
1482
+ /** The date and time when the data entry was created */
1483
+ createdOn?: string | null;
1484
+ /** The description of the example test */
1485
+ description?: string | null;
1486
+ /** Whether the indicator feed can be attributed to a provider */
1487
+ isAttributable?: boolean | null;
1488
+ /** Whether the indicator feed can be downloaded */
1489
+ isDownloadable?: boolean | null;
1490
+ /** Whether the indicator feed is exposed to customers */
1491
+ isPublic?: boolean | null;
1492
+ /** Status of the latest snapshot uploaded */
1493
+ latestUploadStatus?:
1494
+ | "Mirroring"
1495
+ | "Unifying"
1496
+ | "Loading"
1497
+ | "Provisioning"
1498
+ | "Complete"
1499
+ | "Error"
1500
+ | null;
1501
+ /** The date and time when the data entry was last modified */
1502
+ modifiedOn?: string | null;
1503
+ /** The name of the indicator feed */
1504
+ name?: string | null;
1505
+ /** The unique identifier for the provider */
1506
+ providerId?: string | null;
1507
+ /** The provider of the indicator feed */
1508
+ providerName?: string | null;
1509
+ }
1510
+
1511
+ export const GetIndicatorFeedResponse =
1512
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1513
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1514
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1515
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1516
+ isAttributable: Schema.optional(
1517
+ Schema.Union([Schema.Boolean, Schema.Null]),
1518
+ ),
1519
+ isDownloadable: Schema.optional(
1520
+ Schema.Union([Schema.Boolean, Schema.Null]),
1521
+ ),
1522
+ isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1523
+ latestUploadStatus: Schema.optional(
1524
+ Schema.Union([
1525
+ Schema.Literals([
1526
+ "Mirroring",
1527
+ "Unifying",
1528
+ "Loading",
1529
+ "Provisioning",
1530
+ "Complete",
1531
+ "Error",
1532
+ ]),
1533
+ Schema.Null,
1534
+ ]),
1535
+ ),
1536
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1537
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1538
+ providerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1539
+ providerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1540
+ }).pipe(
1541
+ Schema.encodeKeys({
1542
+ id: "id",
1543
+ createdOn: "created_on",
1544
+ description: "description",
1545
+ isAttributable: "is_attributable",
1546
+ isDownloadable: "is_downloadable",
1547
+ isPublic: "is_public",
1548
+ latestUploadStatus: "latest_upload_status",
1549
+ modifiedOn: "modified_on",
1550
+ name: "name",
1551
+ providerId: "provider_id",
1552
+ providerName: "provider_name",
1553
+ }),
1554
+ ) as unknown as Schema.Schema<GetIndicatorFeedResponse>;
1555
+
1556
+ export type GetIndicatorFeedError = DefaultErrors;
1557
+
1558
+ export const getIndicatorFeed: API.OperationMethod<
1559
+ GetIndicatorFeedRequest,
1560
+ GetIndicatorFeedResponse,
1561
+ GetIndicatorFeedError,
1562
+ Credentials | HttpClient.HttpClient
1563
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1564
+ input: GetIndicatorFeedRequest,
1565
+ output: GetIndicatorFeedResponse,
1566
+ errors: [],
1567
+ }));
1568
+
1569
+ export interface ListIndicatorFeedsRequest {
1570
+ /** Identifier */
1571
+ accountId: string;
1572
+ }
1573
+
1574
+ export const ListIndicatorFeedsRequest =
1575
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1576
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1577
+ }).pipe(
1578
+ T.Http({
1579
+ method: "GET",
1580
+ path: "/accounts/{account_id}/intel/indicator-feeds",
1581
+ }),
1582
+ ) as unknown as Schema.Schema<ListIndicatorFeedsRequest>;
1583
+
1584
+ export type ListIndicatorFeedsResponse = {
1585
+ id?: number | null;
1586
+ createdOn?: string | null;
1587
+ description?: string | null;
1588
+ isAttributable?: boolean | null;
1589
+ isDownloadable?: boolean | null;
1590
+ isPublic?: boolean | null;
1591
+ modifiedOn?: string | null;
1592
+ name?: string | null;
1593
+ }[];
1594
+
1595
+ export const ListIndicatorFeedsResponse =
1596
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1597
+ Schema.Struct({
1598
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1599
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1600
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1601
+ isAttributable: Schema.optional(
1602
+ Schema.Union([Schema.Boolean, Schema.Null]),
1603
+ ),
1604
+ isDownloadable: Schema.optional(
1605
+ Schema.Union([Schema.Boolean, Schema.Null]),
1606
+ ),
1607
+ isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1608
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1609
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1610
+ }).pipe(
1611
+ Schema.encodeKeys({
1612
+ id: "id",
1613
+ createdOn: "created_on",
1614
+ description: "description",
1615
+ isAttributable: "is_attributable",
1616
+ isDownloadable: "is_downloadable",
1617
+ isPublic: "is_public",
1618
+ modifiedOn: "modified_on",
1619
+ name: "name",
1620
+ }),
1621
+ ),
1622
+ ) as unknown as Schema.Schema<ListIndicatorFeedsResponse>;
1623
+
1624
+ export type ListIndicatorFeedsError = DefaultErrors;
1625
+
1626
+ export const listIndicatorFeeds: API.OperationMethod<
1627
+ ListIndicatorFeedsRequest,
1628
+ ListIndicatorFeedsResponse,
1629
+ ListIndicatorFeedsError,
1630
+ Credentials | HttpClient.HttpClient
1631
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1632
+ input: ListIndicatorFeedsRequest,
1633
+ output: ListIndicatorFeedsResponse,
1634
+ errors: [],
1635
+ }));
1636
+
1637
+ export interface CreateIndicatorFeedRequest {
1638
+ /** Path param: Identifier */
1639
+ accountId: string;
1640
+ /** Body param: The description of the example test */
1641
+ description?: string;
1642
+ /** Body param: The name of the indicator feed */
1643
+ name?: string;
1644
+ }
1645
+
1646
+ export const CreateIndicatorFeedRequest =
1647
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1648
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1649
+ description: Schema.optional(Schema.String),
1650
+ name: Schema.optional(Schema.String),
1651
+ }).pipe(
1652
+ T.Http({
1653
+ method: "POST",
1654
+ path: "/accounts/{account_id}/intel/indicator-feeds",
1655
+ }),
1656
+ ) as unknown as Schema.Schema<CreateIndicatorFeedRequest>;
1657
+
1658
+ export interface CreateIndicatorFeedResponse {
1659
+ /** The unique identifier for the indicator feed */
1660
+ id?: number | null;
1661
+ /** The date and time when the data entry was created */
1662
+ createdOn?: string | null;
1663
+ /** The description of the example test */
1664
+ description?: string | null;
1665
+ /** Whether the indicator feed can be attributed to a provider */
1666
+ isAttributable?: boolean | null;
1667
+ /** Whether the indicator feed can be downloaded */
1668
+ isDownloadable?: boolean | null;
1669
+ /** Whether the indicator feed is exposed to customers */
1670
+ isPublic?: boolean | null;
1671
+ /** The date and time when the data entry was last modified */
1672
+ modifiedOn?: string | null;
1673
+ /** The name of the indicator feed */
1674
+ name?: string | null;
1675
+ }
1676
+
1677
+ export const CreateIndicatorFeedResponse =
1678
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1679
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1680
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1681
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1682
+ isAttributable: Schema.optional(
1683
+ Schema.Union([Schema.Boolean, Schema.Null]),
1684
+ ),
1685
+ isDownloadable: Schema.optional(
1686
+ Schema.Union([Schema.Boolean, Schema.Null]),
1687
+ ),
1688
+ isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1689
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1690
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1691
+ }).pipe(
1692
+ Schema.encodeKeys({
1693
+ id: "id",
1694
+ createdOn: "created_on",
1695
+ description: "description",
1696
+ isAttributable: "is_attributable",
1697
+ isDownloadable: "is_downloadable",
1698
+ isPublic: "is_public",
1699
+ modifiedOn: "modified_on",
1700
+ name: "name",
1701
+ }),
1702
+ ) as unknown as Schema.Schema<CreateIndicatorFeedResponse>;
1703
+
1704
+ export type CreateIndicatorFeedError = DefaultErrors;
1705
+
1706
+ export const createIndicatorFeed: API.OperationMethod<
1707
+ CreateIndicatorFeedRequest,
1708
+ CreateIndicatorFeedResponse,
1709
+ CreateIndicatorFeedError,
1710
+ Credentials | HttpClient.HttpClient
1711
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1712
+ input: CreateIndicatorFeedRequest,
1713
+ output: CreateIndicatorFeedResponse,
1714
+ errors: [],
1715
+ }));
1716
+
1717
+ export interface UpdateIndicatorFeedRequest {
1718
+ feedId: number;
1719
+ /** Path param: Identifier */
1720
+ accountId: string;
1721
+ /** Body param: The new description of the feed */
1722
+ description?: string;
1723
+ /** Body param: The new is_attributable value of the feed */
1724
+ isAttributable?: boolean;
1725
+ /** Body param: The new is_downloadable value of the feed */
1726
+ isDownloadable?: boolean;
1727
+ /** Body param: The new is_public value of the feed */
1728
+ isPublic?: boolean;
1729
+ /** Body param: The new name of the feed */
1730
+ name?: string;
1731
+ }
1732
+
1733
+ export const UpdateIndicatorFeedRequest =
1734
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1735
+ feedId: Schema.Number.pipe(T.HttpPath("feedId")),
1736
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1737
+ description: Schema.optional(Schema.String),
1738
+ isAttributable: Schema.optional(Schema.Boolean),
1739
+ isDownloadable: Schema.optional(Schema.Boolean),
1740
+ isPublic: Schema.optional(Schema.Boolean),
1741
+ name: Schema.optional(Schema.String),
1742
+ }).pipe(
1743
+ Schema.encodeKeys({
1744
+ description: "description",
1745
+ isAttributable: "is_attributable",
1746
+ isDownloadable: "is_downloadable",
1747
+ isPublic: "is_public",
1748
+ name: "name",
1749
+ }),
1750
+ T.Http({
1751
+ method: "PUT",
1752
+ path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}",
1753
+ }),
1754
+ ) as unknown as Schema.Schema<UpdateIndicatorFeedRequest>;
1755
+
1756
+ export interface UpdateIndicatorFeedResponse {
1757
+ /** The unique identifier for the indicator feed */
1758
+ id?: number | null;
1759
+ /** The date and time when the data entry was created */
1760
+ createdOn?: string | null;
1761
+ /** The description of the example test */
1762
+ description?: string | null;
1763
+ /** Whether the indicator feed can be attributed to a provider */
1764
+ isAttributable?: boolean | null;
1765
+ /** Whether the indicator feed can be downloaded */
1766
+ isDownloadable?: boolean | null;
1767
+ /** Whether the indicator feed is exposed to customers */
1768
+ isPublic?: boolean | null;
1769
+ /** The date and time when the data entry was last modified */
1770
+ modifiedOn?: string | null;
1771
+ /** The name of the indicator feed */
1772
+ name?: string | null;
1773
+ }
1774
+
1775
+ export const UpdateIndicatorFeedResponse =
1776
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1777
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1778
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1779
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1780
+ isAttributable: Schema.optional(
1781
+ Schema.Union([Schema.Boolean, Schema.Null]),
1782
+ ),
1783
+ isDownloadable: Schema.optional(
1784
+ Schema.Union([Schema.Boolean, Schema.Null]),
1785
+ ),
1786
+ isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1787
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1788
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1789
+ }).pipe(
1790
+ Schema.encodeKeys({
1791
+ id: "id",
1792
+ createdOn: "created_on",
1793
+ description: "description",
1794
+ isAttributable: "is_attributable",
1795
+ isDownloadable: "is_downloadable",
1796
+ isPublic: "is_public",
1797
+ modifiedOn: "modified_on",
1798
+ name: "name",
1799
+ }),
1800
+ ) as unknown as Schema.Schema<UpdateIndicatorFeedResponse>;
1801
+
1802
+ export type UpdateIndicatorFeedError = DefaultErrors;
1803
+
1804
+ export const updateIndicatorFeed: API.OperationMethod<
1805
+ UpdateIndicatorFeedRequest,
1806
+ UpdateIndicatorFeedResponse,
1807
+ UpdateIndicatorFeedError,
1808
+ Credentials | HttpClient.HttpClient
1809
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1810
+ input: UpdateIndicatorFeedRequest,
1811
+ output: UpdateIndicatorFeedResponse,
1812
+ errors: [],
1813
+ }));
1814
+
1815
+ export interface DataIndicatorFeedRequest {
1816
+ feedId: number;
1817
+ /** Identifier */
1818
+ accountId: string;
1819
+ }
1820
+
1821
+ export const DataIndicatorFeedRequest =
1822
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1823
+ feedId: Schema.Number.pipe(T.HttpPath("feedId")),
1824
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1825
+ }).pipe(
1826
+ T.Http({
1827
+ method: "GET",
1828
+ path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}/data",
1829
+ }),
1830
+ ) as unknown as Schema.Schema<DataIndicatorFeedRequest>;
1831
+
1832
+ export type DataIndicatorFeedResponse = unknown;
1833
+
1834
+ export const DataIndicatorFeedResponse =
1835
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DataIndicatorFeedResponse>;
1836
+
1837
+ export type DataIndicatorFeedError = DefaultErrors;
1838
+
1839
+ export const dataIndicatorFeed: API.OperationMethod<
1840
+ DataIndicatorFeedRequest,
1841
+ DataIndicatorFeedResponse,
1842
+ DataIndicatorFeedError,
1843
+ Credentials | HttpClient.HttpClient
1844
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1845
+ input: DataIndicatorFeedRequest,
1846
+ output: DataIndicatorFeedResponse,
1847
+ errors: [],
1848
+ }));
1849
+
1850
+ // =============================================================================
1851
+ // IndicatorFeedPermission
1852
+ // =============================================================================
1853
+
1854
+ export interface ListIndicatorFeedPermissionsRequest {
1855
+ /** Identifier */
1856
+ accountId: string;
1857
+ }
1858
+
1859
+ export const ListIndicatorFeedPermissionsRequest =
1860
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1861
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1862
+ }).pipe(
1863
+ T.Http({
1864
+ method: "GET",
1865
+ path: "/accounts/{account_id}/intel/indicator-feeds/permissions/view",
1866
+ }),
1867
+ ) as unknown as Schema.Schema<ListIndicatorFeedPermissionsRequest>;
1868
+
1869
+ export type ListIndicatorFeedPermissionsResponse = {
1870
+ id?: number | null;
1871
+ description?: string | null;
1872
+ isAttributable?: boolean | null;
1873
+ isDownloadable?: boolean | null;
1874
+ isPublic?: boolean | null;
1875
+ name?: string | null;
1876
+ }[];
1877
+
1878
+ export const ListIndicatorFeedPermissionsResponse =
1879
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1880
+ Schema.Struct({
1881
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1882
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1883
+ isAttributable: Schema.optional(
1884
+ Schema.Union([Schema.Boolean, Schema.Null]),
1885
+ ),
1886
+ isDownloadable: Schema.optional(
1887
+ Schema.Union([Schema.Boolean, Schema.Null]),
1888
+ ),
1889
+ isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1890
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1891
+ }).pipe(
1892
+ Schema.encodeKeys({
1893
+ id: "id",
1894
+ description: "description",
1895
+ isAttributable: "is_attributable",
1896
+ isDownloadable: "is_downloadable",
1897
+ isPublic: "is_public",
1898
+ name: "name",
1899
+ }),
1900
+ ),
1901
+ ) as unknown as Schema.Schema<ListIndicatorFeedPermissionsResponse>;
1902
+
1903
+ export type ListIndicatorFeedPermissionsError = DefaultErrors;
1904
+
1905
+ export const listIndicatorFeedPermissions: API.OperationMethod<
1906
+ ListIndicatorFeedPermissionsRequest,
1907
+ ListIndicatorFeedPermissionsResponse,
1908
+ ListIndicatorFeedPermissionsError,
1909
+ Credentials | HttpClient.HttpClient
1910
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1911
+ input: ListIndicatorFeedPermissionsRequest,
1912
+ output: ListIndicatorFeedPermissionsResponse,
1913
+ errors: [],
1914
+ }));
1915
+
1916
+ export interface CreateIndicatorFeedPermissionRequest {
1917
+ /** Path param: Identifier */
1918
+ accountId: string;
1919
+ /** Body param: The Cloudflare account tag of the account to change permissions on */
1920
+ accountTag?: string;
1921
+ /** Body param: The ID of the feed to add/remove permissions on */
1922
+ feedId?: number;
1923
+ }
1924
+
1925
+ export const CreateIndicatorFeedPermissionRequest =
1926
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1927
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1928
+ accountTag: Schema.optional(Schema.String),
1929
+ feedId: Schema.optional(Schema.Number),
1930
+ }).pipe(
1931
+ Schema.encodeKeys({ accountTag: "account_tag", feedId: "feed_id" }),
1932
+ T.Http({
1933
+ method: "PUT",
1934
+ path: "/accounts/{account_id}/intel/indicator-feeds/permissions/add",
1935
+ }),
1936
+ ) as unknown as Schema.Schema<CreateIndicatorFeedPermissionRequest>;
1937
+
1938
+ export interface CreateIndicatorFeedPermissionResponse {
1939
+ /** Whether the update succeeded or not */
1940
+ success?: boolean | null;
1941
+ }
1942
+
1943
+ export const CreateIndicatorFeedPermissionResponse =
1944
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1945
+ success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1946
+ }) as unknown as Schema.Schema<CreateIndicatorFeedPermissionResponse>;
1947
+
1948
+ export type CreateIndicatorFeedPermissionError = DefaultErrors;
1949
+
1950
+ export const createIndicatorFeedPermission: API.OperationMethod<
1951
+ CreateIndicatorFeedPermissionRequest,
1952
+ CreateIndicatorFeedPermissionResponse,
1953
+ CreateIndicatorFeedPermissionError,
1954
+ Credentials | HttpClient.HttpClient
1955
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1956
+ input: CreateIndicatorFeedPermissionRequest,
1957
+ output: CreateIndicatorFeedPermissionResponse,
1958
+ errors: [],
1959
+ }));
1960
+
1961
+ export interface DeleteIndicatorFeedPermissionRequest {
1962
+ /** Path param: Identifier */
1963
+ accountId: string;
1964
+ /** Body param: The Cloudflare account tag of the account to change permissions on */
1965
+ accountTag?: string;
1966
+ /** Body param: The ID of the feed to add/remove permissions on */
1967
+ feedId?: number;
1968
+ }
1969
+
1970
+ export const DeleteIndicatorFeedPermissionRequest =
1971
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1972
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1973
+ accountTag: Schema.optional(Schema.String),
1974
+ feedId: Schema.optional(Schema.Number),
1975
+ }).pipe(
1976
+ Schema.encodeKeys({ accountTag: "account_tag", feedId: "feed_id" }),
1977
+ T.Http({
1978
+ method: "PUT",
1979
+ path: "/accounts/{account_id}/intel/indicator-feeds/permissions/remove",
1980
+ }),
1981
+ ) as unknown as Schema.Schema<DeleteIndicatorFeedPermissionRequest>;
1982
+
1983
+ export interface DeleteIndicatorFeedPermissionResponse {
1984
+ /** Whether the update succeeded or not */
1985
+ success?: boolean | null;
1986
+ }
1987
+
1988
+ export const DeleteIndicatorFeedPermissionResponse =
1989
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1990
+ success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1991
+ }) as unknown as Schema.Schema<DeleteIndicatorFeedPermissionResponse>;
1992
+
1993
+ export type DeleteIndicatorFeedPermissionError = DefaultErrors;
1994
+
1995
+ export const deleteIndicatorFeedPermission: API.OperationMethod<
1996
+ DeleteIndicatorFeedPermissionRequest,
1997
+ DeleteIndicatorFeedPermissionResponse,
1998
+ DeleteIndicatorFeedPermissionError,
1999
+ Credentials | HttpClient.HttpClient
2000
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2001
+ input: DeleteIndicatorFeedPermissionRequest,
2002
+ output: DeleteIndicatorFeedPermissionResponse,
2003
+ errors: [],
2004
+ }));
2005
+
2006
+ // =============================================================================
2007
+ // IndicatorFeedSnapshot
2008
+ // =============================================================================
2009
+
2010
+ export interface PutIndicatorFeedSnapshotRequest {
2011
+ feedId: number;
2012
+ /** Path param: Identifier */
2013
+ accountId: string;
2014
+ /** Body param: The file to upload */
2015
+ source?: string;
2016
+ }
2017
+
2018
+ export const PutIndicatorFeedSnapshotRequest =
2019
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2020
+ feedId: Schema.Number.pipe(T.HttpPath("feedId")),
2021
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2022
+ source: Schema.optional(Schema.String),
2023
+ }).pipe(
2024
+ T.Http({
2025
+ method: "PUT",
2026
+ path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}/snapshot",
2027
+ contentType: "multipart",
2028
+ }),
2029
+ ) as unknown as Schema.Schema<PutIndicatorFeedSnapshotRequest>;
2030
+
2031
+ export interface PutIndicatorFeedSnapshotResponse {
2032
+ /** Feed id */
2033
+ fileId?: number | null;
2034
+ /** Name of the file unified in our system */
2035
+ filename?: string | null;
2036
+ /** Current status of upload, should be unified */
2037
+ status?: string | null;
2038
+ }
2039
+
2040
+ export const PutIndicatorFeedSnapshotResponse =
2041
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2042
+ fileId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2043
+ filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2044
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2045
+ }).pipe(
2046
+ Schema.encodeKeys({
2047
+ fileId: "file_id",
2048
+ filename: "filename",
2049
+ status: "status",
2050
+ }),
2051
+ ) as unknown as Schema.Schema<PutIndicatorFeedSnapshotResponse>;
2052
+
2053
+ export type PutIndicatorFeedSnapshotError = DefaultErrors;
2054
+
2055
+ export const putIndicatorFeedSnapshot: API.OperationMethod<
2056
+ PutIndicatorFeedSnapshotRequest,
2057
+ PutIndicatorFeedSnapshotResponse,
2058
+ PutIndicatorFeedSnapshotError,
2059
+ Credentials | HttpClient.HttpClient
2060
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2061
+ input: PutIndicatorFeedSnapshotRequest,
2062
+ output: PutIndicatorFeedSnapshotResponse,
2063
+ errors: [],
2064
+ }));
2065
+
2066
+ // =============================================================================
2067
+ // Ip
2068
+ // =============================================================================
2069
+
2070
+ export interface GetIpRequest {
2071
+ /** Path param: Identifier. */
2072
+ accountId: string;
2073
+ /** Query param: */
2074
+ ipv4?: string;
2075
+ /** Query param: */
2076
+ ipv6?: string;
2077
+ }
2078
+
2079
+ export const GetIpRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2080
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2081
+ ipv4: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv4")),
2082
+ ipv6: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv6")),
2083
+ }).pipe(
2084
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/ip" }),
2085
+ ) as unknown as Schema.Schema<GetIpRequest>;
2086
+
2087
+ export type GetIpResponse = {
2088
+ belongsToRef?: {
2089
+ id?: string | null;
2090
+ country?: string | null;
2091
+ description?: string | null;
2092
+ type?: "hosting_provider" | "isp" | "organization" | null;
2093
+ value?: string | null;
2094
+ } | null;
2095
+ ip?: string | null;
2096
+ riskTypes?:
2097
+ | {
2098
+ id?: number | null;
2099
+ name?: string | null;
2100
+ superCategoryId?: number | null;
2101
+ }[]
2102
+ | null;
2103
+ }[];
2104
+
2105
+ export const GetIpResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2106
+ Schema.Struct({
2107
+ belongsToRef: Schema.optional(
2108
+ Schema.Union([
2109
+ Schema.Struct({
2110
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2111
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2112
+ description: Schema.optional(
2113
+ Schema.Union([Schema.String, Schema.Null]),
2114
+ ),
2115
+ type: Schema.optional(
2116
+ Schema.Union([
2117
+ Schema.Literals(["hosting_provider", "isp", "organization"]),
2118
+ Schema.Null,
2119
+ ]),
2120
+ ),
2121
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2122
+ }),
2123
+ Schema.Null,
2124
+ ]),
2125
+ ),
2126
+ ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2127
+ riskTypes: Schema.optional(
2128
+ Schema.Union([
2129
+ Schema.Array(
2130
+ Schema.Struct({
2131
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2132
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2133
+ superCategoryId: Schema.optional(
2134
+ Schema.Union([Schema.Number, Schema.Null]),
2135
+ ),
2136
+ }).pipe(
2137
+ Schema.encodeKeys({
2138
+ id: "id",
2139
+ name: "name",
2140
+ superCategoryId: "super_category_id",
2141
+ }),
2142
+ ),
2143
+ ),
2144
+ Schema.Null,
2145
+ ]),
2146
+ ),
2147
+ }).pipe(
2148
+ Schema.encodeKeys({
2149
+ belongsToRef: "belongs_to_ref",
2150
+ ip: "ip",
2151
+ riskTypes: "risk_types",
2152
+ }),
2153
+ ),
2154
+ ) as unknown as Schema.Schema<GetIpResponse>;
2155
+
2156
+ export type GetIpError = DefaultErrors;
2157
+
2158
+ export const getIp: API.OperationMethod<
2159
+ GetIpRequest,
2160
+ GetIpResponse,
2161
+ GetIpError,
2162
+ Credentials | HttpClient.HttpClient
2163
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2164
+ input: GetIpRequest,
2165
+ output: GetIpResponse,
2166
+ errors: [],
2167
+ }));
2168
+
2169
+ // =============================================================================
2170
+ // IpList
2171
+ // =============================================================================
2172
+
2173
+ export interface GetIpListRequest {
2174
+ /** Identifier. */
2175
+ accountId: string;
2176
+ }
2177
+
2178
+ export const GetIpListRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2179
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2180
+ }).pipe(
2181
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/ip-list" }),
2182
+ ) as unknown as Schema.Schema<GetIpListRequest>;
2183
+
2184
+ export type GetIpListResponse = {
2185
+ id?: number | null;
2186
+ description?: string | null;
2187
+ name?: string | null;
2188
+ }[];
2189
+
2190
+ export const GetIpListResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2191
+ Schema.Struct({
2192
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2193
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2194
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2195
+ }),
2196
+ ) as unknown as Schema.Schema<GetIpListResponse>;
2197
+
2198
+ export type GetIpListError = DefaultErrors;
2199
+
2200
+ export const getIpList: API.OperationMethod<
2201
+ GetIpListRequest,
2202
+ GetIpListResponse,
2203
+ GetIpListError,
2204
+ Credentials | HttpClient.HttpClient
2205
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2206
+ input: GetIpListRequest,
2207
+ output: GetIpListResponse,
2208
+ errors: [],
2209
+ }));
2210
+
2211
+ // =============================================================================
2212
+ // Miscategorization
2213
+ // =============================================================================
2214
+
2215
+ export interface CreateMiscategorizationRequest {
2216
+ /** Path param: Identifier. */
2217
+ accountId: string;
2218
+ /** Body param: Content category IDs to add. */
2219
+ contentAdds?: number[];
2220
+ /** Body param: Content category IDs to remove. */
2221
+ contentRemoves?: number[];
2222
+ /** Body param: */
2223
+ indicatorType?: "domain" | "ipv4" | "ipv6" | "url";
2224
+ /** Body param: Provide only if indicator_type is `ipv4` or `ipv6`. */
2225
+ ip?: string | null;
2226
+ /** Body param: Security category IDs to add. */
2227
+ securityAdds?: number[];
2228
+ /** Body param: Security category IDs to remove. */
2229
+ securityRemoves?: number[];
2230
+ /** Body param: Provide only if indicator_type is `domain` or `url`. Example if indicator_type is `domain`: `example.com`. Example if indicator_type is `url`: `https://example.com/news/`. */
2231
+ url?: string;
2232
+ }
2233
+
2234
+ export const CreateMiscategorizationRequest =
2235
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2236
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2237
+ contentAdds: Schema.optional(Schema.Array(Schema.Number)),
2238
+ contentRemoves: Schema.optional(Schema.Array(Schema.Number)),
2239
+ indicatorType: Schema.optional(
2240
+ Schema.Literals(["domain", "ipv4", "ipv6", "url"]),
2241
+ ),
2242
+ ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2243
+ securityAdds: Schema.optional(Schema.Array(Schema.Number)),
2244
+ securityRemoves: Schema.optional(Schema.Array(Schema.Number)),
2245
+ url: Schema.optional(Schema.String),
2246
+ }).pipe(
2247
+ Schema.encodeKeys({
2248
+ contentAdds: "content_adds",
2249
+ contentRemoves: "content_removes",
2250
+ indicatorType: "indicator_type",
2251
+ ip: "ip",
2252
+ securityAdds: "security_adds",
2253
+ securityRemoves: "security_removes",
2254
+ url: "url",
2255
+ }),
2256
+ T.Http({
2257
+ method: "POST",
2258
+ path: "/accounts/{account_id}/intel/miscategorization",
2259
+ }),
2260
+ ) as unknown as Schema.Schema<CreateMiscategorizationRequest>;
2261
+
2262
+ export interface CreateMiscategorizationResponse {
2263
+ errors: {
2264
+ code: number;
2265
+ message: string;
2266
+ documentationUrl?: string | null;
2267
+ source?: { pointer?: string | null } | null;
2268
+ }[];
2269
+ messages: {
2270
+ code: number;
2271
+ message: string;
2272
+ documentationUrl?: string | null;
2273
+ source?: { pointer?: string | null } | null;
2274
+ }[];
2275
+ /** Whether the API call was successful. */
2276
+ success: true;
2277
+ }
2278
+
2279
+ export const CreateMiscategorizationResponse =
2280
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2281
+ errors: Schema.Array(
2282
+ Schema.Struct({
2283
+ code: Schema.Number,
2284
+ message: Schema.String,
2285
+ documentationUrl: Schema.optional(
2286
+ Schema.Union([Schema.String, Schema.Null]),
2287
+ ),
2288
+ source: Schema.optional(
2289
+ Schema.Union([
2290
+ Schema.Struct({
2291
+ pointer: Schema.optional(
2292
+ Schema.Union([Schema.String, Schema.Null]),
2293
+ ),
2294
+ }),
2295
+ Schema.Null,
2296
+ ]),
2297
+ ),
2298
+ }).pipe(
2299
+ Schema.encodeKeys({
2300
+ code: "code",
2301
+ message: "message",
2302
+ documentationUrl: "documentation_url",
2303
+ source: "source",
2304
+ }),
2305
+ ),
2306
+ ),
2307
+ messages: Schema.Array(
2308
+ Schema.Struct({
2309
+ code: Schema.Number,
2310
+ message: Schema.String,
2311
+ documentationUrl: Schema.optional(
2312
+ Schema.Union([Schema.String, Schema.Null]),
2313
+ ),
2314
+ source: Schema.optional(
2315
+ Schema.Union([
2316
+ Schema.Struct({
2317
+ pointer: Schema.optional(
2318
+ Schema.Union([Schema.String, Schema.Null]),
2319
+ ),
2320
+ }),
2321
+ Schema.Null,
2322
+ ]),
2323
+ ),
2324
+ }).pipe(
2325
+ Schema.encodeKeys({
2326
+ code: "code",
2327
+ message: "message",
2328
+ documentationUrl: "documentation_url",
2329
+ source: "source",
2330
+ }),
2331
+ ),
2332
+ ),
2333
+ success: Schema.Literal(true),
2334
+ }) as unknown as Schema.Schema<CreateMiscategorizationResponse>;
2335
+
2336
+ export type CreateMiscategorizationError = DefaultErrors;
2337
+
2338
+ export const createMiscategorization: API.OperationMethod<
2339
+ CreateMiscategorizationRequest,
2340
+ CreateMiscategorizationResponse,
2341
+ CreateMiscategorizationError,
2342
+ Credentials | HttpClient.HttpClient
2343
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2344
+ input: CreateMiscategorizationRequest,
2345
+ output: CreateMiscategorizationResponse,
2346
+ errors: [],
2347
+ }));
2348
+
2349
+ // =============================================================================
2350
+ // Sinkhole
2351
+ // =============================================================================
2352
+
2353
+ export interface ListSinkholesRequest {
2354
+ /** Identifier */
2355
+ accountId: string;
2356
+ }
2357
+
2358
+ export const ListSinkholesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2359
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2360
+ }).pipe(
2361
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/sinkholes" }),
2362
+ ) as unknown as Schema.Schema<ListSinkholesRequest>;
2363
+
2364
+ export type ListSinkholesResponse = {
2365
+ id?: number | null;
2366
+ accountTag?: string | null;
2367
+ createdOn?: string | null;
2368
+ modifiedOn?: string | null;
2369
+ name?: string | null;
2370
+ r2Bucket?: string | null;
2371
+ r2Id?: string | null;
2372
+ }[];
2373
+
2374
+ export const ListSinkholesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2375
+ Schema.Struct({
2376
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2377
+ accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2378
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2379
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2380
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2381
+ r2Bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2382
+ r2Id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2383
+ }).pipe(
2384
+ Schema.encodeKeys({
2385
+ id: "id",
2386
+ accountTag: "account_tag",
2387
+ createdOn: "created_on",
2388
+ modifiedOn: "modified_on",
2389
+ name: "name",
2390
+ r2Bucket: "r2_bucket",
2391
+ r2Id: "r2_id",
2392
+ }),
2393
+ ),
2394
+ ) as unknown as Schema.Schema<ListSinkholesResponse>;
2395
+
2396
+ export type ListSinkholesError = DefaultErrors;
2397
+
2398
+ export const listSinkholes: API.OperationMethod<
2399
+ ListSinkholesRequest,
2400
+ ListSinkholesResponse,
2401
+ ListSinkholesError,
2402
+ Credentials | HttpClient.HttpClient
2403
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2404
+ input: ListSinkholesRequest,
2405
+ output: ListSinkholesResponse,
2406
+ errors: [],
2407
+ }));
2408
+
2409
+ // =============================================================================
2410
+ // Whoi
2411
+ // =============================================================================
2412
+
2413
+ export interface GetWhoiRequest {
2414
+ /** Path param: Use to uniquely identify or reference the resource. */
2415
+ accountId: string;
2416
+ /** Query param: */
2417
+ domain?: string;
2418
+ }
2419
+
2420
+ export const GetWhoiRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2421
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2422
+ domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
2423
+ }).pipe(
2424
+ T.Http({ method: "GET", path: "/accounts/{account_id}/intel/whois" }),
2425
+ ) as unknown as Schema.Schema<GetWhoiRequest>;
2426
+
2427
+ export interface GetWhoiResponse {
2428
+ dnssec: boolean;
2429
+ domain: string;
2430
+ extension: string;
2431
+ found: boolean;
2432
+ nameservers: string[];
2433
+ punycode: string;
2434
+ registrant: string;
2435
+ registrar: string;
2436
+ id?: string | null;
2437
+ administrativeCity?: string | null;
2438
+ administrativeCountry?: string | null;
2439
+ administrativeEmail?: string | null;
2440
+ administrativeFax?: string | null;
2441
+ administrativeFaxExt?: string | null;
2442
+ administrativeId?: string | null;
2443
+ administrativeName?: string | null;
2444
+ administrativeOrg?: string | null;
2445
+ administrativePhone?: string | null;
2446
+ administrativePhoneExt?: string | null;
2447
+ administrativePostalCode?: string | null;
2448
+ administrativeProvince?: string | null;
2449
+ administrativeReferralUrl?: string | null;
2450
+ administrativeStreet?: string | null;
2451
+ billingCity?: string | null;
2452
+ billingCountry?: string | null;
2453
+ billingEmail?: string | null;
2454
+ billingFax?: string | null;
2455
+ billingFaxExt?: string | null;
2456
+ billingId?: string | null;
2457
+ billingName?: string | null;
2458
+ billingOrg?: string | null;
2459
+ billingPhone?: string | null;
2460
+ billingPhoneExt?: string | null;
2461
+ billingPostalCode?: string | null;
2462
+ billingProvince?: string | null;
2463
+ billingReferralUrl?: string | null;
2464
+ billingStreet?: string | null;
2465
+ createdDate?: string | null;
2466
+ createdDateRaw?: string | null;
2467
+ expirationDate?: string | null;
2468
+ expirationDateRaw?: string | null;
2469
+ registrantCity?: string | null;
2470
+ registrantCountry?: string | null;
2471
+ registrantEmail?: string | null;
2472
+ registrantFax?: string | null;
2473
+ registrantFaxExt?: string | null;
2474
+ registrantId?: string | null;
2475
+ registrantName?: string | null;
2476
+ registrantOrg?: string | null;
2477
+ registrantPhone?: string | null;
2478
+ registrantPhoneExt?: string | null;
2479
+ registrantPostalCode?: string | null;
2480
+ registrantProvince?: string | null;
2481
+ registrantReferralUrl?: string | null;
2482
+ registrantStreet?: string | null;
2483
+ registrarCity?: string | null;
2484
+ registrarCountry?: string | null;
2485
+ registrarEmail?: string | null;
2486
+ registrarFax?: string | null;
2487
+ registrarFaxExt?: string | null;
2488
+ registrarId?: string | null;
2489
+ registrarName?: string | null;
2490
+ registrarOrg?: string | null;
2491
+ registrarPhone?: string | null;
2492
+ registrarPhoneExt?: string | null;
2493
+ registrarPostalCode?: string | null;
2494
+ registrarProvince?: string | null;
2495
+ registrarReferralUrl?: string | null;
2496
+ registrarStreet?: string | null;
2497
+ status?: string[] | null;
2498
+ technicalCity?: string | null;
2499
+ technicalCountry?: string | null;
2500
+ technicalEmail?: string | null;
2501
+ technicalFax?: string | null;
2502
+ technicalFaxExt?: string | null;
2503
+ technicalId?: string | null;
2504
+ technicalName?: string | null;
2505
+ technicalOrg?: string | null;
2506
+ technicalPhone?: string | null;
2507
+ technicalPhoneExt?: string | null;
2508
+ technicalPostalCode?: string | null;
2509
+ technicalProvince?: string | null;
2510
+ technicalReferralUrl?: string | null;
2511
+ technicalStreet?: string | null;
2512
+ updatedDate?: string | null;
2513
+ updatedDateRaw?: string | null;
2514
+ whoisServer?: string | null;
2515
+ }
2516
+
2517
+ export const GetWhoiResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2518
+ dnssec: Schema.Boolean,
2519
+ domain: Schema.String,
2520
+ extension: Schema.String,
2521
+ found: Schema.Boolean,
2522
+ nameservers: Schema.Array(Schema.String),
2523
+ punycode: Schema.String,
2524
+ registrant: Schema.String,
2525
+ registrar: Schema.String,
2526
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2527
+ administrativeCity: Schema.optional(
2528
+ Schema.Union([Schema.String, Schema.Null]),
2529
+ ),
2530
+ administrativeCountry: Schema.optional(
2531
+ Schema.Union([Schema.String, Schema.Null]),
2532
+ ),
2533
+ administrativeEmail: Schema.optional(
2534
+ Schema.Union([Schema.String, Schema.Null]),
2535
+ ),
2536
+ administrativeFax: Schema.optional(
2537
+ Schema.Union([Schema.String, Schema.Null]),
2538
+ ),
2539
+ administrativeFaxExt: Schema.optional(
2540
+ Schema.Union([Schema.String, Schema.Null]),
2541
+ ),
2542
+ administrativeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2543
+ administrativeName: Schema.optional(
2544
+ Schema.Union([Schema.String, Schema.Null]),
2545
+ ),
2546
+ administrativeOrg: Schema.optional(
2547
+ Schema.Union([Schema.String, Schema.Null]),
2548
+ ),
2549
+ administrativePhone: Schema.optional(
2550
+ Schema.Union([Schema.String, Schema.Null]),
2551
+ ),
2552
+ administrativePhoneExt: Schema.optional(
2553
+ Schema.Union([Schema.String, Schema.Null]),
2554
+ ),
2555
+ administrativePostalCode: Schema.optional(
2556
+ Schema.Union([Schema.String, Schema.Null]),
2557
+ ),
2558
+ administrativeProvince: Schema.optional(
2559
+ Schema.Union([Schema.String, Schema.Null]),
2560
+ ),
2561
+ administrativeReferralUrl: Schema.optional(
2562
+ Schema.Union([Schema.String, Schema.Null]),
2563
+ ),
2564
+ administrativeStreet: Schema.optional(
2565
+ Schema.Union([Schema.String, Schema.Null]),
2566
+ ),
2567
+ billingCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2568
+ billingCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2569
+ billingEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2570
+ billingFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2571
+ billingFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2572
+ billingId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2573
+ billingName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2574
+ billingOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2575
+ billingPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2576
+ billingPhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2577
+ billingPostalCode: Schema.optional(
2578
+ Schema.Union([Schema.String, Schema.Null]),
2579
+ ),
2580
+ billingProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2581
+ billingReferralUrl: Schema.optional(
2582
+ Schema.Union([Schema.String, Schema.Null]),
2583
+ ),
2584
+ billingStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2585
+ createdDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2586
+ createdDateRaw: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2587
+ expirationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2588
+ expirationDateRaw: Schema.optional(
2589
+ Schema.Union([Schema.String, Schema.Null]),
2590
+ ),
2591
+ registrantCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2592
+ registrantCountry: Schema.optional(
2593
+ Schema.Union([Schema.String, Schema.Null]),
2594
+ ),
2595
+ registrantEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2596
+ registrantFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2597
+ registrantFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2598
+ registrantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2599
+ registrantName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2600
+ registrantOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2601
+ registrantPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2602
+ registrantPhoneExt: Schema.optional(
2603
+ Schema.Union([Schema.String, Schema.Null]),
2604
+ ),
2605
+ registrantPostalCode: Schema.optional(
2606
+ Schema.Union([Schema.String, Schema.Null]),
2607
+ ),
2608
+ registrantProvince: Schema.optional(
2609
+ Schema.Union([Schema.String, Schema.Null]),
2610
+ ),
2611
+ registrantReferralUrl: Schema.optional(
2612
+ Schema.Union([Schema.String, Schema.Null]),
2613
+ ),
2614
+ registrantStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2615
+ registrarCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2616
+ registrarCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2617
+ registrarEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2618
+ registrarFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2619
+ registrarFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2620
+ registrarId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2621
+ registrarName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2622
+ registrarOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2623
+ registrarPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2624
+ registrarPhoneExt: Schema.optional(
2625
+ Schema.Union([Schema.String, Schema.Null]),
2626
+ ),
2627
+ registrarPostalCode: Schema.optional(
2628
+ Schema.Union([Schema.String, Schema.Null]),
2629
+ ),
2630
+ registrarProvince: Schema.optional(
2631
+ Schema.Union([Schema.String, Schema.Null]),
2632
+ ),
2633
+ registrarReferralUrl: Schema.optional(
2634
+ Schema.Union([Schema.String, Schema.Null]),
2635
+ ),
2636
+ registrarStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2637
+ status: Schema.optional(
2638
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2639
+ ),
2640
+ technicalCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2641
+ technicalCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2642
+ technicalEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2643
+ technicalFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2644
+ technicalFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2645
+ technicalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2646
+ technicalName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2647
+ technicalOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2648
+ technicalPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2649
+ technicalPhoneExt: Schema.optional(
2650
+ Schema.Union([Schema.String, Schema.Null]),
2651
+ ),
2652
+ technicalPostalCode: Schema.optional(
2653
+ Schema.Union([Schema.String, Schema.Null]),
2654
+ ),
2655
+ technicalProvince: Schema.optional(
2656
+ Schema.Union([Schema.String, Schema.Null]),
2657
+ ),
2658
+ technicalReferralUrl: Schema.optional(
2659
+ Schema.Union([Schema.String, Schema.Null]),
2660
+ ),
2661
+ technicalStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2662
+ updatedDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2663
+ updatedDateRaw: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2664
+ whoisServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2665
+ }).pipe(
2666
+ Schema.encodeKeys({
2667
+ dnssec: "dnssec",
2668
+ domain: "domain",
2669
+ extension: "extension",
2670
+ found: "found",
2671
+ nameservers: "nameservers",
2672
+ punycode: "punycode",
2673
+ registrant: "registrant",
2674
+ registrar: "registrar",
2675
+ id: "id",
2676
+ administrativeCity: "administrative_city",
2677
+ administrativeCountry: "administrative_country",
2678
+ administrativeEmail: "administrative_email",
2679
+ administrativeFax: "administrative_fax",
2680
+ administrativeFaxExt: "administrative_fax_ext",
2681
+ administrativeId: "administrative_id",
2682
+ administrativeName: "administrative_name",
2683
+ administrativeOrg: "administrative_org",
2684
+ administrativePhone: "administrative_phone",
2685
+ administrativePhoneExt: "administrative_phone_ext",
2686
+ administrativePostalCode: "administrative_postal_code",
2687
+ administrativeProvince: "administrative_province",
2688
+ administrativeReferralUrl: "administrative_referral_url",
2689
+ administrativeStreet: "administrative_street",
2690
+ billingCity: "billing_city",
2691
+ billingCountry: "billing_country",
2692
+ billingEmail: "billing_email",
2693
+ billingFax: "billing_fax",
2694
+ billingFaxExt: "billing_fax_ext",
2695
+ billingId: "billing_id",
2696
+ billingName: "billing_name",
2697
+ billingOrg: "billing_org",
2698
+ billingPhone: "billing_phone",
2699
+ billingPhoneExt: "billing_phone_ext",
2700
+ billingPostalCode: "billing_postal_code",
2701
+ billingProvince: "billing_province",
2702
+ billingReferralUrl: "billing_referral_url",
2703
+ billingStreet: "billing_street",
2704
+ createdDate: "created_date",
2705
+ createdDateRaw: "created_date_raw",
2706
+ expirationDate: "expiration_date",
2707
+ expirationDateRaw: "expiration_date_raw",
2708
+ registrantCity: "registrant_city",
2709
+ registrantCountry: "registrant_country",
2710
+ registrantEmail: "registrant_email",
2711
+ registrantFax: "registrant_fax",
2712
+ registrantFaxExt: "registrant_fax_ext",
2713
+ registrantId: "registrant_id",
2714
+ registrantName: "registrant_name",
2715
+ registrantOrg: "registrant_org",
2716
+ registrantPhone: "registrant_phone",
2717
+ registrantPhoneExt: "registrant_phone_ext",
2718
+ registrantPostalCode: "registrant_postal_code",
2719
+ registrantProvince: "registrant_province",
2720
+ registrantReferralUrl: "registrant_referral_url",
2721
+ registrantStreet: "registrant_street",
2722
+ registrarCity: "registrar_city",
2723
+ registrarCountry: "registrar_country",
2724
+ registrarEmail: "registrar_email",
2725
+ registrarFax: "registrar_fax",
2726
+ registrarFaxExt: "registrar_fax_ext",
2727
+ registrarId: "registrar_id",
2728
+ registrarName: "registrar_name",
2729
+ registrarOrg: "registrar_org",
2730
+ registrarPhone: "registrar_phone",
2731
+ registrarPhoneExt: "registrar_phone_ext",
2732
+ registrarPostalCode: "registrar_postal_code",
2733
+ registrarProvince: "registrar_province",
2734
+ registrarReferralUrl: "registrar_referral_url",
2735
+ registrarStreet: "registrar_street",
2736
+ status: "status",
2737
+ technicalCity: "technical_city",
2738
+ technicalCountry: "technical_country",
2739
+ technicalEmail: "technical_email",
2740
+ technicalFax: "technical_fax",
2741
+ technicalFaxExt: "technical_fax_ext",
2742
+ technicalId: "technical_id",
2743
+ technicalName: "technical_name",
2744
+ technicalOrg: "technical_org",
2745
+ technicalPhone: "technical_phone",
2746
+ technicalPhoneExt: "technical_phone_ext",
2747
+ technicalPostalCode: "technical_postal_code",
2748
+ technicalProvince: "technical_province",
2749
+ technicalReferralUrl: "technical_referral_url",
2750
+ technicalStreet: "technical_street",
2751
+ updatedDate: "updated_date",
2752
+ updatedDateRaw: "updated_date_raw",
2753
+ whoisServer: "whois_server",
2754
+ }),
2755
+ ) as unknown as Schema.Schema<GetWhoiResponse>;
2756
+
2757
+ export type GetWhoiError = DefaultErrors;
2758
+
2759
+ export const getWhoi: API.OperationMethod<
2760
+ GetWhoiRequest,
2761
+ GetWhoiResponse,
2762
+ GetWhoiError,
2763
+ Credentials | HttpClient.HttpClient
2764
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2765
+ input: GetWhoiRequest,
2766
+ output: GetWhoiResponse,
2767
+ errors: [],
2768
+ }));