@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1881 @@
1
+ /**
2
+ * Cloudflare FIREWALL API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service firewall
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ export const GetAccessRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
13
+ }).pipe(T.Http({
14
+ method: "GET",
15
+ path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules/{ruleId}",
16
+ }));
17
+ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
+ id: Schema.String,
19
+ allowedModes: Schema.Array(Schema.Literals([
20
+ "block",
21
+ "challenge",
22
+ "whitelist",
23
+ "js_challenge",
24
+ "managed_challenge",
25
+ ])),
26
+ configuration: Schema.Union([
27
+ Schema.Struct({
28
+ target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
29
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
30
+ }),
31
+ Schema.Struct({
32
+ target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
33
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
34
+ }),
35
+ Schema.Struct({
36
+ target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
37
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
38
+ }),
39
+ Schema.Struct({
40
+ target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
41
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
42
+ }),
43
+ Schema.Struct({
44
+ target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
45
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
+ }),
47
+ ]),
48
+ mode: Schema.Literals([
49
+ "block",
50
+ "challenge",
51
+ "whitelist",
52
+ "js_challenge",
53
+ "managed_challenge",
54
+ ]),
55
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
56
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
57
+ notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
58
+ scope: Schema.optional(Schema.Union([
59
+ Schema.Struct({
60
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
61
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
62
+ type: Schema.optional(Schema.Union([
63
+ Schema.Literals(["user", "organization"]),
64
+ Schema.Null,
65
+ ])),
66
+ }),
67
+ Schema.Null,
68
+ ])),
69
+ }).pipe(Schema.encodeKeys({
70
+ id: "id",
71
+ allowedModes: "allowed_modes",
72
+ configuration: "configuration",
73
+ mode: "mode",
74
+ createdOn: "created_on",
75
+ modifiedOn: "modified_on",
76
+ notes: "notes",
77
+ scope: "scope",
78
+ }));
79
+ export const getAccessRule = API.make(() => ({
80
+ input: GetAccessRuleRequest,
81
+ output: GetAccessRuleResponse,
82
+ errors: [],
83
+ }));
84
+ export const ListAccessRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
85
+ method: "GET",
86
+ path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules",
87
+ }));
88
+ export const ListAccessRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
89
+ id: Schema.String,
90
+ allowedModes: Schema.Array(Schema.Literals([
91
+ "block",
92
+ "challenge",
93
+ "whitelist",
94
+ "js_challenge",
95
+ "managed_challenge",
96
+ ])),
97
+ configuration: Schema.Union([
98
+ Schema.Struct({
99
+ target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
100
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
101
+ }),
102
+ Schema.Struct({
103
+ target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
104
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
105
+ }),
106
+ Schema.Struct({
107
+ target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
108
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
109
+ }),
110
+ Schema.Struct({
111
+ target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
112
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
113
+ }),
114
+ Schema.Struct({
115
+ target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
116
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
117
+ }),
118
+ ]),
119
+ mode: Schema.Literals([
120
+ "block",
121
+ "challenge",
122
+ "whitelist",
123
+ "js_challenge",
124
+ "managed_challenge",
125
+ ]),
126
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
127
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
128
+ notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
129
+ scope: Schema.optional(Schema.Union([
130
+ Schema.Struct({
131
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
132
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
133
+ type: Schema.optional(Schema.Union([
134
+ Schema.Literals(["user", "organization"]),
135
+ Schema.Null,
136
+ ])),
137
+ }),
138
+ Schema.Null,
139
+ ])),
140
+ }).pipe(Schema.encodeKeys({
141
+ id: "id",
142
+ allowedModes: "allowed_modes",
143
+ configuration: "configuration",
144
+ mode: "mode",
145
+ createdOn: "created_on",
146
+ modifiedOn: "modified_on",
147
+ notes: "notes",
148
+ scope: "scope",
149
+ })));
150
+ export const listAccessRules = API.make(() => ({
151
+ input: ListAccessRulesRequest,
152
+ output: ListAccessRulesResponse,
153
+ errors: [],
154
+ }));
155
+ export const CreateAccessRuleRequest =
156
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
157
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
158
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
159
+ configuration: Schema.Union([
160
+ Schema.Struct({
161
+ target: Schema.optional(Schema.Literal("ip")),
162
+ value: Schema.optional(Schema.String),
163
+ }),
164
+ Schema.Struct({
165
+ target: Schema.optional(Schema.Literal("ip6")),
166
+ value: Schema.optional(Schema.String),
167
+ }),
168
+ Schema.Struct({
169
+ target: Schema.optional(Schema.Literal("ip_range")),
170
+ value: Schema.optional(Schema.String),
171
+ }),
172
+ Schema.Struct({
173
+ target: Schema.optional(Schema.Literal("asn")),
174
+ value: Schema.optional(Schema.String),
175
+ }),
176
+ Schema.Struct({
177
+ target: Schema.optional(Schema.Literal("country")),
178
+ value: Schema.optional(Schema.String),
179
+ }),
180
+ ]),
181
+ mode: Schema.Literals([
182
+ "block",
183
+ "challenge",
184
+ "whitelist",
185
+ "js_challenge",
186
+ "managed_challenge",
187
+ ]),
188
+ notes: Schema.optional(Schema.String),
189
+ }).pipe(T.Http({
190
+ method: "POST",
191
+ path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules",
192
+ }));
193
+ export const CreateAccessRuleResponse =
194
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
195
+ id: Schema.String,
196
+ allowedModes: Schema.Array(Schema.Literals([
197
+ "block",
198
+ "challenge",
199
+ "whitelist",
200
+ "js_challenge",
201
+ "managed_challenge",
202
+ ])),
203
+ configuration: Schema.Union([
204
+ Schema.Struct({
205
+ target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
206
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
207
+ }),
208
+ Schema.Struct({
209
+ target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
210
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
211
+ }),
212
+ Schema.Struct({
213
+ target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
214
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
215
+ }),
216
+ Schema.Struct({
217
+ target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
218
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
219
+ }),
220
+ Schema.Struct({
221
+ target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
222
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
223
+ }),
224
+ ]),
225
+ mode: Schema.Literals([
226
+ "block",
227
+ "challenge",
228
+ "whitelist",
229
+ "js_challenge",
230
+ "managed_challenge",
231
+ ]),
232
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
233
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
234
+ notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
235
+ scope: Schema.optional(Schema.Union([
236
+ Schema.Struct({
237
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
238
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
239
+ type: Schema.optional(Schema.Union([
240
+ Schema.Literals(["user", "organization"]),
241
+ Schema.Null,
242
+ ])),
243
+ }),
244
+ Schema.Null,
245
+ ])),
246
+ }).pipe(Schema.encodeKeys({
247
+ id: "id",
248
+ allowedModes: "allowed_modes",
249
+ configuration: "configuration",
250
+ mode: "mode",
251
+ createdOn: "created_on",
252
+ modifiedOn: "modified_on",
253
+ notes: "notes",
254
+ scope: "scope",
255
+ }));
256
+ export const createAccessRule = API.make(() => ({
257
+ input: CreateAccessRuleRequest,
258
+ output: CreateAccessRuleResponse,
259
+ errors: [],
260
+ }));
261
+ export const PatchAccessRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
262
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
263
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
264
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
265
+ configuration: Schema.Union([
266
+ Schema.Struct({
267
+ target: Schema.optional(Schema.Literal("ip")),
268
+ value: Schema.optional(Schema.String),
269
+ }),
270
+ Schema.Struct({
271
+ target: Schema.optional(Schema.Literal("ip6")),
272
+ value: Schema.optional(Schema.String),
273
+ }),
274
+ Schema.Struct({
275
+ target: Schema.optional(Schema.Literal("ip_range")),
276
+ value: Schema.optional(Schema.String),
277
+ }),
278
+ Schema.Struct({
279
+ target: Schema.optional(Schema.Literal("asn")),
280
+ value: Schema.optional(Schema.String),
281
+ }),
282
+ Schema.Struct({
283
+ target: Schema.optional(Schema.Literal("country")),
284
+ value: Schema.optional(Schema.String),
285
+ }),
286
+ ]),
287
+ mode: Schema.Literals([
288
+ "block",
289
+ "challenge",
290
+ "whitelist",
291
+ "js_challenge",
292
+ "managed_challenge",
293
+ ]),
294
+ notes: Schema.optional(Schema.String),
295
+ }).pipe(T.Http({
296
+ method: "PATCH",
297
+ path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules/{ruleId}",
298
+ }));
299
+ export const PatchAccessRuleResponse =
300
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
301
+ id: Schema.String,
302
+ allowedModes: Schema.Array(Schema.Literals([
303
+ "block",
304
+ "challenge",
305
+ "whitelist",
306
+ "js_challenge",
307
+ "managed_challenge",
308
+ ])),
309
+ configuration: Schema.Union([
310
+ Schema.Struct({
311
+ target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
312
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
313
+ }),
314
+ Schema.Struct({
315
+ target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
316
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
317
+ }),
318
+ Schema.Struct({
319
+ target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
320
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
321
+ }),
322
+ Schema.Struct({
323
+ target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
324
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
325
+ }),
326
+ Schema.Struct({
327
+ target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
328
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
329
+ }),
330
+ ]),
331
+ mode: Schema.Literals([
332
+ "block",
333
+ "challenge",
334
+ "whitelist",
335
+ "js_challenge",
336
+ "managed_challenge",
337
+ ]),
338
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
339
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
340
+ notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
341
+ scope: Schema.optional(Schema.Union([
342
+ Schema.Struct({
343
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
345
+ type: Schema.optional(Schema.Union([
346
+ Schema.Literals(["user", "organization"]),
347
+ Schema.Null,
348
+ ])),
349
+ }),
350
+ Schema.Null,
351
+ ])),
352
+ }).pipe(Schema.encodeKeys({
353
+ id: "id",
354
+ allowedModes: "allowed_modes",
355
+ configuration: "configuration",
356
+ mode: "mode",
357
+ createdOn: "created_on",
358
+ modifiedOn: "modified_on",
359
+ notes: "notes",
360
+ scope: "scope",
361
+ }));
362
+ export const patchAccessRule = API.make(() => ({
363
+ input: PatchAccessRuleRequest,
364
+ output: PatchAccessRuleResponse,
365
+ errors: [],
366
+ }));
367
+ export const DeleteAccessRuleRequest =
368
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
369
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
370
+ }).pipe(T.Http({
371
+ method: "DELETE",
372
+ path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules/{ruleId}",
373
+ }));
374
+ export const DeleteAccessRuleResponse =
375
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
376
+ id: Schema.String,
377
+ });
378
+ export const deleteAccessRule = API.make(() => ({
379
+ input: DeleteAccessRuleRequest,
380
+ output: DeleteAccessRuleResponse,
381
+ errors: [],
382
+ }));
383
+ export const GetLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
384
+ lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
385
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
386
+ }).pipe(T.Http({
387
+ method: "GET",
388
+ path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
389
+ }));
390
+ export const GetLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
391
+ id: Schema.String,
392
+ configurations: Schema.Unknown,
393
+ createdOn: Schema.String,
394
+ description: Schema.String,
395
+ modifiedOn: Schema.String,
396
+ paused: Schema.Boolean,
397
+ urls: Schema.Array(Schema.String),
398
+ }).pipe(Schema.encodeKeys({
399
+ id: "id",
400
+ configurations: "configurations",
401
+ createdOn: "created_on",
402
+ description: "description",
403
+ modifiedOn: "modified_on",
404
+ paused: "paused",
405
+ urls: "urls",
406
+ }));
407
+ export const getLockdown = API.make(() => ({
408
+ input: GetLockdownRequest,
409
+ output: GetLockdownResponse,
410
+ errors: [],
411
+ }));
412
+ export const ListLockdownsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
413
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
414
+ createdOn: Schema.optional(Schema.String).pipe(T.HttpQuery("created_on")),
415
+ description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
416
+ descriptionSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("description_search")),
417
+ ip: Schema.optional(Schema.String).pipe(T.HttpQuery("ip")),
418
+ ipRangeSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("ip_range_search")),
419
+ ipSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("ip_search")),
420
+ modifiedOn: Schema.optional(Schema.String).pipe(T.HttpQuery("modified_on")),
421
+ priority: Schema.optional(Schema.Number).pipe(T.HttpQuery("priority")),
422
+ uriSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("uri_search")),
423
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/lockdowns" }));
424
+ export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
425
+ id: Schema.String,
426
+ configurations: Schema.Unknown,
427
+ createdOn: Schema.String,
428
+ description: Schema.String,
429
+ modifiedOn: Schema.String,
430
+ paused: Schema.Boolean,
431
+ urls: Schema.Array(Schema.String),
432
+ }).pipe(Schema.encodeKeys({
433
+ id: "id",
434
+ configurations: "configurations",
435
+ createdOn: "created_on",
436
+ description: "description",
437
+ modifiedOn: "modified_on",
438
+ paused: "paused",
439
+ urls: "urls",
440
+ })));
441
+ export const listLockdowns = API.make(() => ({
442
+ input: ListLockdownsRequest,
443
+ output: ListLockdownsResponse,
444
+ errors: [],
445
+ }));
446
+ export const CreateLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
447
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
448
+ configurations: Schema.Unknown,
449
+ urls: Schema.Array(Schema.String),
450
+ description: Schema.optional(Schema.String),
451
+ paused: Schema.optional(Schema.Boolean),
452
+ priority: Schema.optional(Schema.Number),
453
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/lockdowns" }));
454
+ export const CreateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
455
+ id: Schema.String,
456
+ configurations: Schema.Unknown,
457
+ createdOn: Schema.String,
458
+ description: Schema.String,
459
+ modifiedOn: Schema.String,
460
+ paused: Schema.Boolean,
461
+ urls: Schema.Array(Schema.String),
462
+ }).pipe(Schema.encodeKeys({
463
+ id: "id",
464
+ configurations: "configurations",
465
+ createdOn: "created_on",
466
+ description: "description",
467
+ modifiedOn: "modified_on",
468
+ paused: "paused",
469
+ urls: "urls",
470
+ }));
471
+ export const createLockdown = API.make(() => ({
472
+ input: CreateLockdownRequest,
473
+ output: CreateLockdownResponse,
474
+ errors: [],
475
+ }));
476
+ export const UpdateLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
477
+ lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
478
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
479
+ configurations: Schema.Unknown,
480
+ urls: Schema.Array(Schema.String),
481
+ }).pipe(T.Http({
482
+ method: "PUT",
483
+ path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
484
+ }));
485
+ export const UpdateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
486
+ id: Schema.String,
487
+ configurations: Schema.Unknown,
488
+ createdOn: Schema.String,
489
+ description: Schema.String,
490
+ modifiedOn: Schema.String,
491
+ paused: Schema.Boolean,
492
+ urls: Schema.Array(Schema.String),
493
+ }).pipe(Schema.encodeKeys({
494
+ id: "id",
495
+ configurations: "configurations",
496
+ createdOn: "created_on",
497
+ description: "description",
498
+ modifiedOn: "modified_on",
499
+ paused: "paused",
500
+ urls: "urls",
501
+ }));
502
+ export const updateLockdown = API.make(() => ({
503
+ input: UpdateLockdownRequest,
504
+ output: UpdateLockdownResponse,
505
+ errors: [],
506
+ }));
507
+ export const DeleteLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
508
+ lockDownsId: Schema.String.pipe(T.HttpPath("lockDownsId")),
509
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
510
+ }).pipe(T.Http({
511
+ method: "DELETE",
512
+ path: "/zones/{zone_id}/firewall/lockdowns/{lockDownsId}",
513
+ }));
514
+ export const DeleteLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
515
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
516
+ });
517
+ export const deleteLockdown = API.make(() => ({
518
+ input: DeleteLockdownRequest,
519
+ output: DeleteLockdownResponse,
520
+ errors: [],
521
+ }));
522
+ export const BulkPutRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
523
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
524
+ body: Schema.Unknown.pipe(T.HttpBody()),
525
+ }).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/firewall/rules" }));
526
+ export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
527
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
528
+ action: Schema.optional(Schema.Union([
529
+ Schema.Literals([
530
+ "block",
531
+ "challenge",
532
+ "js_challenge",
533
+ "managed_challenge",
534
+ "allow",
535
+ "log",
536
+ "bypass",
537
+ ]),
538
+ Schema.Null,
539
+ ])),
540
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
541
+ filter: Schema.optional(Schema.Union([
542
+ Schema.Union([
543
+ Schema.Unknown,
544
+ Schema.Struct({
545
+ id: Schema.String,
546
+ deleted: Schema.Boolean,
547
+ }),
548
+ ]),
549
+ Schema.Null,
550
+ ])),
551
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
552
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
553
+ products: Schema.optional(Schema.Union([
554
+ Schema.Array(Schema.Literals([
555
+ "zoneLockdown",
556
+ "uaBlock",
557
+ "bic",
558
+ "hot",
559
+ "securityLevel",
560
+ "rateLimit",
561
+ "waf",
562
+ ])),
563
+ Schema.Null,
564
+ ])),
565
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
566
+ }));
567
+ export const bulkPutRules = API.make(() => ({
568
+ input: BulkPutRulesRequest,
569
+ output: BulkPutRulesResponse,
570
+ errors: [],
571
+ }));
572
+ export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
573
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
574
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
575
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
576
+ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
577
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
578
+ action: Schema.optional(Schema.Union([
579
+ Schema.Literals([
580
+ "block",
581
+ "challenge",
582
+ "js_challenge",
583
+ "managed_challenge",
584
+ "allow",
585
+ "log",
586
+ "bypass",
587
+ ]),
588
+ Schema.Null,
589
+ ])),
590
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
591
+ filter: Schema.optional(Schema.Union([
592
+ Schema.Union([
593
+ Schema.Unknown,
594
+ Schema.Struct({
595
+ id: Schema.String,
596
+ deleted: Schema.Boolean,
597
+ }),
598
+ ]),
599
+ Schema.Null,
600
+ ])),
601
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
602
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
603
+ products: Schema.optional(Schema.Union([
604
+ Schema.Array(Schema.Literals([
605
+ "zoneLockdown",
606
+ "uaBlock",
607
+ "bic",
608
+ "hot",
609
+ "securityLevel",
610
+ "rateLimit",
611
+ "waf",
612
+ ])),
613
+ Schema.Null,
614
+ ])),
615
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
616
+ });
617
+ export const getRule = API.make(() => ({
618
+ input: GetRuleRequest,
619
+ output: GetRuleResponse,
620
+ errors: [],
621
+ }));
622
+ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
623
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
624
+ id: Schema.optional(Schema.String).pipe(T.HttpQuery("id")),
625
+ action: Schema.optional(Schema.String).pipe(T.HttpQuery("action")),
626
+ description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
627
+ paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
628
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/rules" }));
629
+ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
630
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
631
+ action: Schema.optional(Schema.Union([
632
+ Schema.Literals([
633
+ "block",
634
+ "challenge",
635
+ "js_challenge",
636
+ "managed_challenge",
637
+ "allow",
638
+ "log",
639
+ "bypass",
640
+ ]),
641
+ Schema.Null,
642
+ ])),
643
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
644
+ filter: Schema.optional(Schema.Union([
645
+ Schema.Union([
646
+ Schema.Unknown,
647
+ Schema.Struct({
648
+ id: Schema.String,
649
+ deleted: Schema.Boolean,
650
+ }),
651
+ ]),
652
+ Schema.Null,
653
+ ])),
654
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
655
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
656
+ products: Schema.optional(Schema.Union([
657
+ Schema.Array(Schema.Literals([
658
+ "zoneLockdown",
659
+ "uaBlock",
660
+ "bic",
661
+ "hot",
662
+ "securityLevel",
663
+ "rateLimit",
664
+ "waf",
665
+ ])),
666
+ Schema.Null,
667
+ ])),
668
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
669
+ }));
670
+ export const listRules = API.make(() => ({
671
+ input: ListRulesRequest,
672
+ output: ListRulesResponse,
673
+ errors: [],
674
+ }));
675
+ export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
676
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
677
+ action: Schema.Struct({
678
+ mode: Schema.optional(Schema.Literals([
679
+ "simulate",
680
+ "ban",
681
+ "challenge",
682
+ "js_challenge",
683
+ "managed_challenge",
684
+ ])),
685
+ response: Schema.optional(Schema.Struct({
686
+ body: Schema.optional(Schema.String),
687
+ contentType: Schema.optional(Schema.String),
688
+ }).pipe(Schema.encodeKeys({ body: "body", contentType: "content_type" }))),
689
+ timeout: Schema.optional(Schema.Number),
690
+ }),
691
+ filter: Schema.Unknown,
692
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/rules" }));
693
+ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
694
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
695
+ action: Schema.optional(Schema.Union([
696
+ Schema.Literals([
697
+ "block",
698
+ "challenge",
699
+ "js_challenge",
700
+ "managed_challenge",
701
+ "allow",
702
+ "log",
703
+ "bypass",
704
+ ]),
705
+ Schema.Null,
706
+ ])),
707
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
708
+ filter: Schema.optional(Schema.Union([
709
+ Schema.Union([
710
+ Schema.Unknown,
711
+ Schema.Struct({
712
+ id: Schema.String,
713
+ deleted: Schema.Boolean,
714
+ }),
715
+ ]),
716
+ Schema.Null,
717
+ ])),
718
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
719
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
720
+ products: Schema.optional(Schema.Union([
721
+ Schema.Array(Schema.Literals([
722
+ "zoneLockdown",
723
+ "uaBlock",
724
+ "bic",
725
+ "hot",
726
+ "securityLevel",
727
+ "rateLimit",
728
+ "waf",
729
+ ])),
730
+ Schema.Null,
731
+ ])),
732
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
733
+ }));
734
+ export const createRule = API.make(() => ({
735
+ input: CreateRuleRequest,
736
+ output: CreateRuleResponse,
737
+ errors: [],
738
+ }));
739
+ export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
740
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
741
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
742
+ action: Schema.Struct({
743
+ mode: Schema.optional(Schema.Literals([
744
+ "simulate",
745
+ "ban",
746
+ "challenge",
747
+ "js_challenge",
748
+ "managed_challenge",
749
+ ])),
750
+ response: Schema.optional(Schema.Struct({
751
+ body: Schema.optional(Schema.String),
752
+ contentType: Schema.optional(Schema.String),
753
+ }).pipe(Schema.encodeKeys({ body: "body", contentType: "content_type" }))),
754
+ timeout: Schema.optional(Schema.Number),
755
+ }),
756
+ filter: Schema.Unknown,
757
+ }).pipe(T.Http({ method: "PUT", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
758
+ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
759
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
760
+ action: Schema.optional(Schema.Union([
761
+ Schema.Literals([
762
+ "block",
763
+ "challenge",
764
+ "js_challenge",
765
+ "managed_challenge",
766
+ "allow",
767
+ "log",
768
+ "bypass",
769
+ ]),
770
+ Schema.Null,
771
+ ])),
772
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
773
+ filter: Schema.optional(Schema.Union([
774
+ Schema.Union([
775
+ Schema.Unknown,
776
+ Schema.Struct({
777
+ id: Schema.String,
778
+ deleted: Schema.Boolean,
779
+ }),
780
+ ]),
781
+ Schema.Null,
782
+ ])),
783
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
784
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
785
+ products: Schema.optional(Schema.Union([
786
+ Schema.Array(Schema.Literals([
787
+ "zoneLockdown",
788
+ "uaBlock",
789
+ "bic",
790
+ "hot",
791
+ "securityLevel",
792
+ "rateLimit",
793
+ "waf",
794
+ ])),
795
+ Schema.Null,
796
+ ])),
797
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
798
+ });
799
+ export const updateRule = API.make(() => ({
800
+ input: UpdateRuleRequest,
801
+ output: UpdateRuleResponse,
802
+ errors: [],
803
+ }));
804
+ export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
805
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
806
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
807
+ }).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
808
+ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
809
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
810
+ action: Schema.optional(Schema.Union([
811
+ Schema.Literals([
812
+ "block",
813
+ "challenge",
814
+ "js_challenge",
815
+ "managed_challenge",
816
+ "allow",
817
+ "log",
818
+ "bypass",
819
+ ]),
820
+ Schema.Null,
821
+ ])),
822
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
823
+ filter: Schema.optional(Schema.Union([
824
+ Schema.Union([
825
+ Schema.Unknown,
826
+ Schema.Struct({
827
+ id: Schema.String,
828
+ deleted: Schema.Boolean,
829
+ }),
830
+ ]),
831
+ Schema.Null,
832
+ ])),
833
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
834
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
835
+ products: Schema.optional(Schema.Union([
836
+ Schema.Array(Schema.Literals([
837
+ "zoneLockdown",
838
+ "uaBlock",
839
+ "bic",
840
+ "hot",
841
+ "securityLevel",
842
+ "rateLimit",
843
+ "waf",
844
+ ])),
845
+ Schema.Null,
846
+ ])),
847
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
848
+ }));
849
+ export const patchRule = API.make(() => ({
850
+ input: PatchRuleRequest,
851
+ output: PatchRuleResponse,
852
+ errors: [],
853
+ }));
854
+ export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
855
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
856
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
857
+ }).pipe(T.Http({
858
+ method: "DELETE",
859
+ path: "/zones/{zone_id}/firewall/rules/{ruleId}",
860
+ }));
861
+ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
862
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
863
+ action: Schema.optional(Schema.Union([
864
+ Schema.Literals([
865
+ "block",
866
+ "challenge",
867
+ "js_challenge",
868
+ "managed_challenge",
869
+ "allow",
870
+ "log",
871
+ "bypass",
872
+ ]),
873
+ Schema.Null,
874
+ ])),
875
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
876
+ filter: Schema.optional(Schema.Union([
877
+ Schema.Union([
878
+ Schema.Unknown,
879
+ Schema.Struct({
880
+ id: Schema.String,
881
+ deleted: Schema.Boolean,
882
+ }),
883
+ ]),
884
+ Schema.Null,
885
+ ])),
886
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
887
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
888
+ products: Schema.optional(Schema.Union([
889
+ Schema.Array(Schema.Literals([
890
+ "zoneLockdown",
891
+ "uaBlock",
892
+ "bic",
893
+ "hot",
894
+ "securityLevel",
895
+ "rateLimit",
896
+ "waf",
897
+ ])),
898
+ Schema.Null,
899
+ ])),
900
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
901
+ });
902
+ export const deleteRule = API.make(() => ({
903
+ input: DeleteRuleRequest,
904
+ output: DeleteRuleResponse,
905
+ errors: [],
906
+ }));
907
+ export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
908
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
909
+ body: Schema.Unknown.pipe(T.HttpBody()),
910
+ }).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" }));
911
+ export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
912
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
913
+ action: Schema.optional(Schema.Union([
914
+ Schema.Literals([
915
+ "block",
916
+ "challenge",
917
+ "js_challenge",
918
+ "managed_challenge",
919
+ "allow",
920
+ "log",
921
+ "bypass",
922
+ ]),
923
+ Schema.Null,
924
+ ])),
925
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
926
+ filter: Schema.optional(Schema.Union([
927
+ Schema.Union([
928
+ Schema.Unknown,
929
+ Schema.Struct({
930
+ id: Schema.String,
931
+ deleted: Schema.Boolean,
932
+ }),
933
+ ]),
934
+ Schema.Null,
935
+ ])),
936
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
937
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
938
+ products: Schema.optional(Schema.Union([
939
+ Schema.Array(Schema.Literals([
940
+ "zoneLockdown",
941
+ "uaBlock",
942
+ "bic",
943
+ "hot",
944
+ "securityLevel",
945
+ "rateLimit",
946
+ "waf",
947
+ ])),
948
+ Schema.Null,
949
+ ])),
950
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
951
+ }));
952
+ export const bulkPatchRules = API.make(() => ({
953
+ input: BulkPatchRulesRequest,
954
+ output: BulkPatchRulesResponse,
955
+ errors: [],
956
+ }));
957
+ export const BulkDeleteRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
958
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
959
+ }).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/firewall/rules" }));
960
+ export const BulkDeleteRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
961
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
962
+ action: Schema.optional(Schema.Union([
963
+ Schema.Literals([
964
+ "block",
965
+ "challenge",
966
+ "js_challenge",
967
+ "managed_challenge",
968
+ "allow",
969
+ "log",
970
+ "bypass",
971
+ ]),
972
+ Schema.Null,
973
+ ])),
974
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
975
+ filter: Schema.optional(Schema.Union([
976
+ Schema.Union([
977
+ Schema.Unknown,
978
+ Schema.Struct({
979
+ id: Schema.String,
980
+ deleted: Schema.Boolean,
981
+ }),
982
+ ]),
983
+ Schema.Null,
984
+ ])),
985
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
986
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
987
+ products: Schema.optional(Schema.Union([
988
+ Schema.Array(Schema.Literals([
989
+ "zoneLockdown",
990
+ "uaBlock",
991
+ "bic",
992
+ "hot",
993
+ "securityLevel",
994
+ "rateLimit",
995
+ "waf",
996
+ ])),
997
+ Schema.Null,
998
+ ])),
999
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1000
+ }));
1001
+ export const bulkDeleteRules = API.make(() => ({
1002
+ input: BulkDeleteRulesRequest,
1003
+ output: BulkDeleteRulesResponse,
1004
+ errors: [],
1005
+ }));
1006
+ export const GetUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1007
+ uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
1008
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1009
+ }).pipe(T.Http({
1010
+ method: "GET",
1011
+ path: "/zones/{zone_id}/firewall/ua_rules/{uaRuleId}",
1012
+ }));
1013
+ export const GetUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1014
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1015
+ configuration: Schema.optional(Schema.Union([
1016
+ Schema.Struct({
1017
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1018
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1019
+ }),
1020
+ Schema.Null,
1021
+ ])),
1022
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1023
+ mode: Schema.optional(Schema.Union([
1024
+ Schema.Literals([
1025
+ "block",
1026
+ "challenge",
1027
+ "js_challenge",
1028
+ "managed_challenge",
1029
+ ]),
1030
+ Schema.Null,
1031
+ ])),
1032
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1033
+ });
1034
+ export const getUaRule = API.make(() => ({
1035
+ input: GetUaRuleRequest,
1036
+ output: GetUaRuleResponse,
1037
+ errors: [],
1038
+ }));
1039
+ export const ListUaRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1040
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1041
+ description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
1042
+ paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
1043
+ userAgent: Schema.optional(Schema.String).pipe(T.HttpQuery("user_agent")),
1044
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/ua_rules" }));
1045
+ export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1046
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1047
+ configuration: Schema.optional(Schema.Union([
1048
+ Schema.Struct({
1049
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1050
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1051
+ }),
1052
+ Schema.Null,
1053
+ ])),
1054
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1055
+ mode: Schema.optional(Schema.Union([
1056
+ Schema.Literals([
1057
+ "block",
1058
+ "challenge",
1059
+ "js_challenge",
1060
+ "managed_challenge",
1061
+ ]),
1062
+ Schema.Null,
1063
+ ])),
1064
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1065
+ }));
1066
+ export const listUaRules = API.make(() => ({
1067
+ input: ListUaRulesRequest,
1068
+ output: ListUaRulesResponse,
1069
+ errors: [],
1070
+ }));
1071
+ export const CreateUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1072
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1073
+ configuration: Schema.Struct({
1074
+ target: Schema.optional(Schema.Literal("ua")),
1075
+ value: Schema.optional(Schema.String),
1076
+ }),
1077
+ mode: Schema.Literals([
1078
+ "block",
1079
+ "challenge",
1080
+ "whitelist",
1081
+ "js_challenge",
1082
+ "managed_challenge",
1083
+ ]),
1084
+ description: Schema.optional(Schema.String),
1085
+ paused: Schema.optional(Schema.Boolean),
1086
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/ua_rules" }));
1087
+ export const CreateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1088
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1089
+ configuration: Schema.optional(Schema.Union([
1090
+ Schema.Struct({
1091
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1092
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1093
+ }),
1094
+ Schema.Null,
1095
+ ])),
1096
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1097
+ mode: Schema.optional(Schema.Union([
1098
+ Schema.Literals([
1099
+ "block",
1100
+ "challenge",
1101
+ "js_challenge",
1102
+ "managed_challenge",
1103
+ ]),
1104
+ Schema.Null,
1105
+ ])),
1106
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1107
+ });
1108
+ export const createUaRule = API.make(() => ({
1109
+ input: CreateUaRuleRequest,
1110
+ output: CreateUaRuleResponse,
1111
+ errors: [],
1112
+ }));
1113
+ export const UpdateUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1114
+ uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
1115
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1116
+ configuration: Schema.Unknown,
1117
+ mode: Schema.Literals([
1118
+ "block",
1119
+ "challenge",
1120
+ "whitelist",
1121
+ "js_challenge",
1122
+ "managed_challenge",
1123
+ ]),
1124
+ description: Schema.optional(Schema.String),
1125
+ paused: Schema.optional(Schema.Boolean),
1126
+ }).pipe(T.Http({
1127
+ method: "PUT",
1128
+ path: "/zones/{zone_id}/firewall/ua_rules/{uaRuleId}",
1129
+ }));
1130
+ export const UpdateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1131
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1132
+ configuration: Schema.optional(Schema.Union([
1133
+ Schema.Struct({
1134
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1135
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1136
+ }),
1137
+ Schema.Null,
1138
+ ])),
1139
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1140
+ mode: Schema.optional(Schema.Union([
1141
+ Schema.Literals([
1142
+ "block",
1143
+ "challenge",
1144
+ "js_challenge",
1145
+ "managed_challenge",
1146
+ ]),
1147
+ Schema.Null,
1148
+ ])),
1149
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1150
+ });
1151
+ export const updateUaRule = API.make(() => ({
1152
+ input: UpdateUaRuleRequest,
1153
+ output: UpdateUaRuleResponse,
1154
+ errors: [],
1155
+ }));
1156
+ export const DeleteUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1157
+ uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
1158
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1159
+ }).pipe(T.Http({
1160
+ method: "DELETE",
1161
+ path: "/zones/{zone_id}/firewall/ua_rules/{uaRuleId}",
1162
+ }));
1163
+ export const DeleteUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1164
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1165
+ configuration: Schema.optional(Schema.Union([
1166
+ Schema.Struct({
1167
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1168
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1169
+ }),
1170
+ Schema.Null,
1171
+ ])),
1172
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1173
+ mode: Schema.optional(Schema.Union([
1174
+ Schema.Literals([
1175
+ "block",
1176
+ "challenge",
1177
+ "js_challenge",
1178
+ "managed_challenge",
1179
+ ]),
1180
+ Schema.Null,
1181
+ ])),
1182
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1183
+ });
1184
+ export const deleteUaRule = API.make(() => ({
1185
+ input: DeleteUaRuleRequest,
1186
+ output: DeleteUaRuleResponse,
1187
+ errors: [],
1188
+ }));
1189
+ export const GetWafOverrideRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1190
+ overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
1191
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1192
+ }).pipe(T.Http({
1193
+ method: "GET",
1194
+ path: "/zones/{zone_id}/firewall/waf/overrides/{overridesId}",
1195
+ }));
1196
+ export const GetWafOverrideResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1197
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1198
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1199
+ groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1200
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1201
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1202
+ rewriteAction: Schema.optional(Schema.Union([
1203
+ Schema.Struct({
1204
+ block: Schema.optional(Schema.Union([
1205
+ Schema.Literals([
1206
+ "challenge",
1207
+ "block",
1208
+ "simulate",
1209
+ "disable",
1210
+ "default",
1211
+ ]),
1212
+ Schema.Null,
1213
+ ])),
1214
+ challenge: Schema.optional(Schema.Union([
1215
+ Schema.Literals([
1216
+ "challenge",
1217
+ "block",
1218
+ "simulate",
1219
+ "disable",
1220
+ "default",
1221
+ ]),
1222
+ Schema.Null,
1223
+ ])),
1224
+ default: Schema.optional(Schema.Union([
1225
+ Schema.Literals([
1226
+ "challenge",
1227
+ "block",
1228
+ "simulate",
1229
+ "disable",
1230
+ "default",
1231
+ ]),
1232
+ Schema.Null,
1233
+ ])),
1234
+ disable: Schema.optional(Schema.Union([
1235
+ Schema.Literals([
1236
+ "challenge",
1237
+ "block",
1238
+ "simulate",
1239
+ "disable",
1240
+ "default",
1241
+ ]),
1242
+ Schema.Null,
1243
+ ])),
1244
+ simulate: Schema.optional(Schema.Union([
1245
+ Schema.Literals([
1246
+ "challenge",
1247
+ "block",
1248
+ "simulate",
1249
+ "disable",
1250
+ "default",
1251
+ ]),
1252
+ Schema.Null,
1253
+ ])),
1254
+ }),
1255
+ Schema.Null,
1256
+ ])),
1257
+ rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1258
+ urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1259
+ }).pipe(Schema.encodeKeys({
1260
+ id: "id",
1261
+ description: "description",
1262
+ groups: "groups",
1263
+ paused: "paused",
1264
+ priority: "priority",
1265
+ rewriteAction: "rewrite_action",
1266
+ rules: "rules",
1267
+ urls: "urls",
1268
+ }));
1269
+ export const getWafOverride = API.make(() => ({
1270
+ input: GetWafOverrideRequest,
1271
+ output: GetWafOverrideResponse,
1272
+ errors: [],
1273
+ }));
1274
+ export const ListWafOverridesRequest =
1275
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1276
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1277
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/waf/overrides" }));
1278
+ export const ListWafOverridesResponse =
1279
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1280
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1281
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1282
+ groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1283
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1284
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1285
+ rewriteAction: Schema.optional(Schema.Union([
1286
+ Schema.Struct({
1287
+ block: Schema.optional(Schema.Union([
1288
+ Schema.Literals([
1289
+ "challenge",
1290
+ "block",
1291
+ "simulate",
1292
+ "disable",
1293
+ "default",
1294
+ ]),
1295
+ Schema.Null,
1296
+ ])),
1297
+ challenge: Schema.optional(Schema.Union([
1298
+ Schema.Literals([
1299
+ "challenge",
1300
+ "block",
1301
+ "simulate",
1302
+ "disable",
1303
+ "default",
1304
+ ]),
1305
+ Schema.Null,
1306
+ ])),
1307
+ default: Schema.optional(Schema.Union([
1308
+ Schema.Literals([
1309
+ "challenge",
1310
+ "block",
1311
+ "simulate",
1312
+ "disable",
1313
+ "default",
1314
+ ]),
1315
+ Schema.Null,
1316
+ ])),
1317
+ disable: Schema.optional(Schema.Union([
1318
+ Schema.Literals([
1319
+ "challenge",
1320
+ "block",
1321
+ "simulate",
1322
+ "disable",
1323
+ "default",
1324
+ ]),
1325
+ Schema.Null,
1326
+ ])),
1327
+ simulate: Schema.optional(Schema.Union([
1328
+ Schema.Literals([
1329
+ "challenge",
1330
+ "block",
1331
+ "simulate",
1332
+ "disable",
1333
+ "default",
1334
+ ]),
1335
+ Schema.Null,
1336
+ ])),
1337
+ }),
1338
+ Schema.Null,
1339
+ ])),
1340
+ rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1341
+ urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1342
+ }).pipe(Schema.encodeKeys({
1343
+ id: "id",
1344
+ description: "description",
1345
+ groups: "groups",
1346
+ paused: "paused",
1347
+ priority: "priority",
1348
+ rewriteAction: "rewrite_action",
1349
+ rules: "rules",
1350
+ urls: "urls",
1351
+ })));
1352
+ export const listWafOverrides = API.make(() => ({
1353
+ input: ListWafOverridesRequest,
1354
+ output: ListWafOverridesResponse,
1355
+ errors: [],
1356
+ }));
1357
+ export const CreateWafOverrideRequest =
1358
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1359
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1360
+ urls: Schema.Array(Schema.String),
1361
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/firewall/waf/overrides" }));
1362
+ export const CreateWafOverrideResponse =
1363
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1364
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1365
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1366
+ groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1367
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1368
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1369
+ rewriteAction: Schema.optional(Schema.Union([
1370
+ Schema.Struct({
1371
+ block: Schema.optional(Schema.Union([
1372
+ Schema.Literals([
1373
+ "challenge",
1374
+ "block",
1375
+ "simulate",
1376
+ "disable",
1377
+ "default",
1378
+ ]),
1379
+ Schema.Null,
1380
+ ])),
1381
+ challenge: Schema.optional(Schema.Union([
1382
+ Schema.Literals([
1383
+ "challenge",
1384
+ "block",
1385
+ "simulate",
1386
+ "disable",
1387
+ "default",
1388
+ ]),
1389
+ Schema.Null,
1390
+ ])),
1391
+ default: Schema.optional(Schema.Union([
1392
+ Schema.Literals([
1393
+ "challenge",
1394
+ "block",
1395
+ "simulate",
1396
+ "disable",
1397
+ "default",
1398
+ ]),
1399
+ Schema.Null,
1400
+ ])),
1401
+ disable: Schema.optional(Schema.Union([
1402
+ Schema.Literals([
1403
+ "challenge",
1404
+ "block",
1405
+ "simulate",
1406
+ "disable",
1407
+ "default",
1408
+ ]),
1409
+ Schema.Null,
1410
+ ])),
1411
+ simulate: Schema.optional(Schema.Union([
1412
+ Schema.Literals([
1413
+ "challenge",
1414
+ "block",
1415
+ "simulate",
1416
+ "disable",
1417
+ "default",
1418
+ ]),
1419
+ Schema.Null,
1420
+ ])),
1421
+ }),
1422
+ Schema.Null,
1423
+ ])),
1424
+ rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1425
+ urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1426
+ }).pipe(Schema.encodeKeys({
1427
+ id: "id",
1428
+ description: "description",
1429
+ groups: "groups",
1430
+ paused: "paused",
1431
+ priority: "priority",
1432
+ rewriteAction: "rewrite_action",
1433
+ rules: "rules",
1434
+ urls: "urls",
1435
+ }));
1436
+ export const createWafOverride = API.make(() => ({
1437
+ input: CreateWafOverrideRequest,
1438
+ output: CreateWafOverrideResponse,
1439
+ errors: [],
1440
+ }));
1441
+ export const UpdateWafOverrideRequest =
1442
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1443
+ overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
1444
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1445
+ id: Schema.String,
1446
+ rewriteAction: Schema.Struct({
1447
+ block: Schema.optional(Schema.Literals([
1448
+ "challenge",
1449
+ "block",
1450
+ "simulate",
1451
+ "disable",
1452
+ "default",
1453
+ ])),
1454
+ challenge: Schema.optional(Schema.Literals([
1455
+ "challenge",
1456
+ "block",
1457
+ "simulate",
1458
+ "disable",
1459
+ "default",
1460
+ ])),
1461
+ default: Schema.optional(Schema.Literals([
1462
+ "challenge",
1463
+ "block",
1464
+ "simulate",
1465
+ "disable",
1466
+ "default",
1467
+ ])),
1468
+ disable: Schema.optional(Schema.Literals([
1469
+ "challenge",
1470
+ "block",
1471
+ "simulate",
1472
+ "disable",
1473
+ "default",
1474
+ ])),
1475
+ simulate: Schema.optional(Schema.Literals([
1476
+ "challenge",
1477
+ "block",
1478
+ "simulate",
1479
+ "disable",
1480
+ "default",
1481
+ ])),
1482
+ }),
1483
+ rules: Schema.Unknown,
1484
+ urls: Schema.Array(Schema.String),
1485
+ }).pipe(Schema.encodeKeys({
1486
+ id: "id",
1487
+ rewriteAction: "rewrite_action",
1488
+ rules: "rules",
1489
+ urls: "urls",
1490
+ }), T.Http({
1491
+ method: "PUT",
1492
+ path: "/zones/{zone_id}/firewall/waf/overrides/{overridesId}",
1493
+ }));
1494
+ export const UpdateWafOverrideResponse =
1495
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1496
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1497
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1498
+ groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1499
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1500
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1501
+ rewriteAction: Schema.optional(Schema.Union([
1502
+ Schema.Struct({
1503
+ block: Schema.optional(Schema.Union([
1504
+ Schema.Literals([
1505
+ "challenge",
1506
+ "block",
1507
+ "simulate",
1508
+ "disable",
1509
+ "default",
1510
+ ]),
1511
+ Schema.Null,
1512
+ ])),
1513
+ challenge: Schema.optional(Schema.Union([
1514
+ Schema.Literals([
1515
+ "challenge",
1516
+ "block",
1517
+ "simulate",
1518
+ "disable",
1519
+ "default",
1520
+ ]),
1521
+ Schema.Null,
1522
+ ])),
1523
+ default: Schema.optional(Schema.Union([
1524
+ Schema.Literals([
1525
+ "challenge",
1526
+ "block",
1527
+ "simulate",
1528
+ "disable",
1529
+ "default",
1530
+ ]),
1531
+ Schema.Null,
1532
+ ])),
1533
+ disable: Schema.optional(Schema.Union([
1534
+ Schema.Literals([
1535
+ "challenge",
1536
+ "block",
1537
+ "simulate",
1538
+ "disable",
1539
+ "default",
1540
+ ]),
1541
+ Schema.Null,
1542
+ ])),
1543
+ simulate: Schema.optional(Schema.Union([
1544
+ Schema.Literals([
1545
+ "challenge",
1546
+ "block",
1547
+ "simulate",
1548
+ "disable",
1549
+ "default",
1550
+ ]),
1551
+ Schema.Null,
1552
+ ])),
1553
+ }),
1554
+ Schema.Null,
1555
+ ])),
1556
+ rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1557
+ urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1558
+ }).pipe(Schema.encodeKeys({
1559
+ id: "id",
1560
+ description: "description",
1561
+ groups: "groups",
1562
+ paused: "paused",
1563
+ priority: "priority",
1564
+ rewriteAction: "rewrite_action",
1565
+ rules: "rules",
1566
+ urls: "urls",
1567
+ }));
1568
+ export const updateWafOverride = API.make(() => ({
1569
+ input: UpdateWafOverrideRequest,
1570
+ output: UpdateWafOverrideResponse,
1571
+ errors: [],
1572
+ }));
1573
+ export const DeleteWafOverrideRequest =
1574
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1575
+ overridesId: Schema.String.pipe(T.HttpPath("overridesId")),
1576
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1577
+ }).pipe(T.Http({
1578
+ method: "DELETE",
1579
+ path: "/zones/{zone_id}/firewall/waf/overrides/{overridesId}",
1580
+ }));
1581
+ export const DeleteWafOverrideResponse =
1582
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1583
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1584
+ });
1585
+ export const deleteWafOverride = API.make(() => ({
1586
+ input: DeleteWafOverrideRequest,
1587
+ output: DeleteWafOverrideResponse,
1588
+ errors: [],
1589
+ }));
1590
+ export const GetWafPackageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1591
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1592
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1593
+ }).pipe(T.Http({
1594
+ method: "GET",
1595
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}",
1596
+ }));
1597
+ export const GetWafPackageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1598
+ Schema.Struct({
1599
+ errors: Schema.Array(Schema.Unknown),
1600
+ messages: Schema.Array(Schema.Unknown),
1601
+ result: Schema.Union([Schema.String, Schema.Null]),
1602
+ success: Schema.Literal(true),
1603
+ }),
1604
+ Schema.Struct({
1605
+ result: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1606
+ }),
1607
+ ]);
1608
+ export const getWafPackage = API.make(() => ({
1609
+ input: GetWafPackageRequest,
1610
+ output: GetWafPackageResponse,
1611
+ errors: [],
1612
+ }));
1613
+ export const ListWafPackagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1614
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1615
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1616
+ match: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("match")),
1617
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1618
+ order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
1619
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/waf/packages" }));
1620
+ export const ListWafPackagesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Unknown);
1621
+ export const listWafPackages = API.make(() => ({
1622
+ input: ListWafPackagesRequest,
1623
+ output: ListWafPackagesResponse,
1624
+ errors: [],
1625
+ }));
1626
+ export const GetWafPackageGroupRequest =
1627
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1628
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1629
+ groupId: Schema.String.pipe(T.HttpPath("groupId")),
1630
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1631
+ }).pipe(T.Http({
1632
+ method: "GET",
1633
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
1634
+ }));
1635
+ export const GetWafPackageGroupResponse =
1636
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1637
+ Schema.String,
1638
+ Schema.Null,
1639
+ ]);
1640
+ export const getWafPackageGroup = API.make(() => ({
1641
+ input: GetWafPackageGroupRequest,
1642
+ output: GetWafPackageGroupResponse,
1643
+ errors: [],
1644
+ }));
1645
+ export const ListWafPackageGroupsRequest =
1646
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1647
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1648
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1649
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1650
+ match: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("match")),
1651
+ mode: Schema.optional(Schema.Literals(["on", "off"])).pipe(T.HttpQuery("mode")),
1652
+ name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1653
+ order: Schema.optional(Schema.Literals(["mode", "rules_count"])).pipe(T.HttpQuery("order")),
1654
+ rulesCount: Schema.optional(Schema.Number).pipe(T.HttpQuery("rules_count")),
1655
+ }).pipe(T.Http({
1656
+ method: "GET",
1657
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups",
1658
+ }));
1659
+ export const ListWafPackageGroupsResponse =
1660
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1661
+ id: Schema.String,
1662
+ description: Schema.Union([Schema.String, Schema.Null]),
1663
+ mode: Schema.Literals(["on", "off"]),
1664
+ name: Schema.String,
1665
+ rulesCount: Schema.Number,
1666
+ allowedModes: Schema.optional(Schema.Union([
1667
+ Schema.Array(Schema.Literals(["on", "off"])),
1668
+ Schema.Null,
1669
+ ])),
1670
+ modifiedRulesCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1671
+ packageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1672
+ }).pipe(Schema.encodeKeys({
1673
+ id: "id",
1674
+ description: "description",
1675
+ mode: "mode",
1676
+ name: "name",
1677
+ rulesCount: "rules_count",
1678
+ allowedModes: "allowed_modes",
1679
+ modifiedRulesCount: "modified_rules_count",
1680
+ packageId: "package_id",
1681
+ })));
1682
+ export const listWafPackageGroups = API.make(() => ({
1683
+ input: ListWafPackageGroupsRequest,
1684
+ output: ListWafPackageGroupsResponse,
1685
+ errors: [],
1686
+ }));
1687
+ export const PatchWafPackageGroupRequest =
1688
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1689
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1690
+ groupId: Schema.String.pipe(T.HttpPath("groupId")),
1691
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1692
+ mode: Schema.optional(Schema.Literals(["on", "off"])),
1693
+ }).pipe(T.Http({
1694
+ method: "PATCH",
1695
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
1696
+ }));
1697
+ export const PatchWafPackageGroupResponse =
1698
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1699
+ Schema.String,
1700
+ Schema.Null,
1701
+ ]);
1702
+ export const patchWafPackageGroup = API.make(() => ({
1703
+ input: PatchWafPackageGroupRequest,
1704
+ output: PatchWafPackageGroupResponse,
1705
+ errors: [],
1706
+ }));
1707
+ export const GetWafPackageRuleRequest =
1708
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1709
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1710
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
1711
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1712
+ }).pipe(T.Http({
1713
+ method: "GET",
1714
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules/{ruleId}",
1715
+ }));
1716
+ export const GetWafPackageRuleResponse =
1717
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1718
+ Schema.String,
1719
+ Schema.Null,
1720
+ ]);
1721
+ export const getWafPackageRule = API.make(() => ({
1722
+ input: GetWafPackageRuleRequest,
1723
+ output: GetWafPackageRuleResponse,
1724
+ errors: [],
1725
+ }));
1726
+ export const ListWafPackageRulesRequest =
1727
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1728
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1729
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1730
+ description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
1731
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1732
+ groupId: Schema.optional(Schema.String).pipe(T.HttpQuery("group_id")),
1733
+ match: Schema.optional(Schema.Literals(["any", "all"])).pipe(T.HttpQuery("match")),
1734
+ mode: Schema.optional(Schema.Literals(["DIS", "CHL", "BLK", "SIM"])).pipe(T.HttpQuery("mode")),
1735
+ order: Schema.optional(Schema.Literals(["priority", "group_id", "description"])).pipe(T.HttpQuery("order")),
1736
+ priority: Schema.optional(Schema.String).pipe(T.HttpQuery("priority")),
1737
+ }).pipe(T.Http({
1738
+ method: "GET",
1739
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules",
1740
+ }));
1741
+ export const ListWafPackageRulesResponse =
1742
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
1743
+ Schema.Struct({
1744
+ id: Schema.String,
1745
+ allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
1746
+ description: Schema.String,
1747
+ group: Schema.Unknown,
1748
+ mode: Schema.Literals(["on", "off"]),
1749
+ packageId: Schema.String,
1750
+ priority: Schema.String,
1751
+ }).pipe(Schema.encodeKeys({
1752
+ id: "id",
1753
+ allowedModes: "allowed_modes",
1754
+ description: "description",
1755
+ group: "group",
1756
+ mode: "mode",
1757
+ packageId: "package_id",
1758
+ priority: "priority",
1759
+ })),
1760
+ Schema.Struct({
1761
+ id: Schema.String,
1762
+ allowedModes: Schema.Array(Schema.Literals([
1763
+ "default",
1764
+ "disable",
1765
+ "simulate",
1766
+ "block",
1767
+ "challenge",
1768
+ ])),
1769
+ defaultMode: Schema.Literals([
1770
+ "disable",
1771
+ "simulate",
1772
+ "block",
1773
+ "challenge",
1774
+ ]),
1775
+ description: Schema.String,
1776
+ group: Schema.Unknown,
1777
+ mode: Schema.Literals([
1778
+ "default",
1779
+ "disable",
1780
+ "simulate",
1781
+ "block",
1782
+ "challenge",
1783
+ ]),
1784
+ packageId: Schema.String,
1785
+ priority: Schema.String,
1786
+ }).pipe(Schema.encodeKeys({
1787
+ id: "id",
1788
+ allowedModes: "allowed_modes",
1789
+ defaultMode: "default_mode",
1790
+ description: "description",
1791
+ group: "group",
1792
+ mode: "mode",
1793
+ packageId: "package_id",
1794
+ priority: "priority",
1795
+ })),
1796
+ ]));
1797
+ export const listWafPackageRules = API.make(() => ({
1798
+ input: ListWafPackageRulesRequest,
1799
+ output: ListWafPackageRulesResponse,
1800
+ errors: [],
1801
+ }));
1802
+ export const PatchWafPackageRuleRequest =
1803
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1804
+ packageId: Schema.String.pipe(T.HttpPath("packageId")),
1805
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
1806
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1807
+ mode: Schema.optional(Schema.Literals([
1808
+ "default",
1809
+ "disable",
1810
+ "simulate",
1811
+ "block",
1812
+ "challenge",
1813
+ "on",
1814
+ "off",
1815
+ ])),
1816
+ }).pipe(T.Http({
1817
+ method: "PATCH",
1818
+ path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules/{ruleId}",
1819
+ }));
1820
+ export const PatchWafPackageRuleResponse =
1821
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1822
+ Schema.Struct({
1823
+ id: Schema.String,
1824
+ allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
1825
+ description: Schema.String,
1826
+ group: Schema.Unknown,
1827
+ mode: Schema.Literals(["on", "off"]),
1828
+ packageId: Schema.String,
1829
+ priority: Schema.String,
1830
+ }).pipe(Schema.encodeKeys({
1831
+ id: "id",
1832
+ allowedModes: "allowed_modes",
1833
+ description: "description",
1834
+ group: "group",
1835
+ mode: "mode",
1836
+ packageId: "package_id",
1837
+ priority: "priority",
1838
+ })),
1839
+ Schema.Struct({
1840
+ id: Schema.String,
1841
+ allowedModes: Schema.Array(Schema.Literals([
1842
+ "default",
1843
+ "disable",
1844
+ "simulate",
1845
+ "block",
1846
+ "challenge",
1847
+ ])),
1848
+ defaultMode: Schema.Literals([
1849
+ "disable",
1850
+ "simulate",
1851
+ "block",
1852
+ "challenge",
1853
+ ]),
1854
+ description: Schema.String,
1855
+ group: Schema.Unknown,
1856
+ mode: Schema.Literals([
1857
+ "default",
1858
+ "disable",
1859
+ "simulate",
1860
+ "block",
1861
+ "challenge",
1862
+ ]),
1863
+ packageId: Schema.String,
1864
+ priority: Schema.String,
1865
+ }).pipe(Schema.encodeKeys({
1866
+ id: "id",
1867
+ allowedModes: "allowed_modes",
1868
+ defaultMode: "default_mode",
1869
+ description: "description",
1870
+ group: "group",
1871
+ mode: "mode",
1872
+ packageId: "package_id",
1873
+ priority: "priority",
1874
+ })),
1875
+ ]);
1876
+ export const patchWafPackageRule = API.make(() => ({
1877
+ input: PatchWafPackageRuleRequest,
1878
+ output: PatchWafPackageRuleResponse,
1879
+ errors: [],
1880
+ }));
1881
+ //# sourceMappingURL=firewall.js.map