@distilled.cloud/cloudflare 0.0.0-john

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