@distilled.cloud/cloudflare 0.2.6 → 0.3.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 (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service firewall
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -66,7 +67,8 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
66
67
  }),
67
68
  Schema.Null,
68
69
  ])),
69
- }).pipe(Schema.encodeKeys({
70
+ })
71
+ .pipe(Schema.encodeKeys({
70
72
  id: "id",
71
73
  allowedModes: "allowed_modes",
72
74
  configuration: "configuration",
@@ -75,7 +77,8 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
75
77
  modifiedOn: "modified_on",
76
78
  notes: "notes",
77
79
  scope: "scope",
78
- }));
80
+ }))
81
+ .pipe(T.ResponsePath("result"));
79
82
  export const getAccessRule = API.make(() => ({
80
83
  input: GetAccessRuleRequest,
81
84
  output: GetAccessRuleResponse,
@@ -85,72 +88,93 @@ export const ListAccessRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
85
88
  method: "GET",
86
89
  path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules",
87
90
  }));
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(() => ({
91
+ export const ListAccessRulesResponse =
92
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
93
+ result: Schema.Array(Schema.Struct({
94
+ id: Schema.String,
95
+ allowedModes: Schema.Array(Schema.Literals([
96
+ "block",
97
+ "challenge",
98
+ "whitelist",
99
+ "js_challenge",
100
+ "managed_challenge",
101
+ ])),
102
+ configuration: Schema.Union([
103
+ Schema.Struct({
104
+ target: Schema.optional(Schema.Union([Schema.Literal("ip"), Schema.Null])),
105
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
106
+ }),
107
+ Schema.Struct({
108
+ target: Schema.optional(Schema.Union([Schema.Literal("ip6"), Schema.Null])),
109
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
110
+ }),
111
+ Schema.Struct({
112
+ target: Schema.optional(Schema.Union([Schema.Literal("ip_range"), Schema.Null])),
113
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
114
+ }),
115
+ Schema.Struct({
116
+ target: Schema.optional(Schema.Union([Schema.Literal("asn"), Schema.Null])),
117
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
118
+ }),
119
+ Schema.Struct({
120
+ target: Schema.optional(Schema.Union([Schema.Literal("country"), Schema.Null])),
121
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
122
+ }),
123
+ ]),
124
+ mode: Schema.Literals([
125
+ "block",
126
+ "challenge",
127
+ "whitelist",
128
+ "js_challenge",
129
+ "managed_challenge",
130
+ ]),
131
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
132
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
133
+ notes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
134
+ scope: Schema.optional(Schema.Union([
135
+ Schema.Struct({
136
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
137
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
138
+ type: Schema.optional(Schema.Union([
139
+ Schema.Literals(["user", "organization"]),
140
+ Schema.Null,
141
+ ])),
142
+ }),
143
+ Schema.Null,
144
+ ])),
145
+ }).pipe(Schema.encodeKeys({
146
+ id: "id",
147
+ allowedModes: "allowed_modes",
148
+ configuration: "configuration",
149
+ mode: "mode",
150
+ createdOn: "created_on",
151
+ modifiedOn: "modified_on",
152
+ notes: "notes",
153
+ scope: "scope",
154
+ }))),
155
+ resultInfo: Schema.Struct({
156
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
157
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
158
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
159
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
160
+ }).pipe(Schema.encodeKeys({
161
+ count: "count",
162
+ page: "page",
163
+ perPage: "per_page",
164
+ totalCount: "total_count",
165
+ })),
166
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
167
+ export const listAccessRules = API.makePaginated(() => ({
151
168
  input: ListAccessRulesRequest,
152
169
  output: ListAccessRulesResponse,
153
170
  errors: [],
171
+ pagination: {
172
+ mode: "page",
173
+ inputToken: "page",
174
+ outputToken: "resultInfo.page",
175
+ items: "result",
176
+ pageSize: "perPage",
177
+ },
154
178
  }));
155
179
  export const CreateAccessRuleRequest =
156
180
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -243,7 +267,8 @@ export const CreateAccessRuleResponse =
243
267
  }),
244
268
  Schema.Null,
245
269
  ])),
246
- }).pipe(Schema.encodeKeys({
270
+ })
271
+ .pipe(Schema.encodeKeys({
247
272
  id: "id",
248
273
  allowedModes: "allowed_modes",
249
274
  configuration: "configuration",
@@ -252,7 +277,8 @@ export const CreateAccessRuleResponse =
252
277
  modifiedOn: "modified_on",
253
278
  notes: "notes",
254
279
  scope: "scope",
255
- }));
280
+ }))
281
+ .pipe(T.ResponsePath("result"));
256
282
  export const createAccessRule = API.make(() => ({
257
283
  input: CreateAccessRuleRequest,
258
284
  output: CreateAccessRuleResponse,
@@ -349,7 +375,8 @@ export const PatchAccessRuleResponse =
349
375
  }),
350
376
  Schema.Null,
351
377
  ])),
352
- }).pipe(Schema.encodeKeys({
378
+ })
379
+ .pipe(Schema.encodeKeys({
353
380
  id: "id",
354
381
  allowedModes: "allowed_modes",
355
382
  configuration: "configuration",
@@ -358,7 +385,8 @@ export const PatchAccessRuleResponse =
358
385
  modifiedOn: "modified_on",
359
386
  notes: "notes",
360
387
  scope: "scope",
361
- }));
388
+ }))
389
+ .pipe(T.ResponsePath("result"));
362
390
  export const patchAccessRule = API.make(() => ({
363
391
  input: PatchAccessRuleRequest,
364
392
  output: PatchAccessRuleResponse,
@@ -374,7 +402,7 @@ export const DeleteAccessRuleRequest =
374
402
  export const DeleteAccessRuleResponse =
375
403
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
376
404
  id: Schema.String,
377
- });
405
+ }).pipe(T.ResponsePath("result"));
378
406
  export const deleteAccessRule = API.make(() => ({
379
407
  input: DeleteAccessRuleRequest,
380
408
  output: DeleteAccessRuleResponse,
@@ -395,7 +423,8 @@ export const GetLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
395
423
  modifiedOn: Schema.String,
396
424
  paused: Schema.Boolean,
397
425
  urls: Schema.Array(Schema.String),
398
- }).pipe(Schema.encodeKeys({
426
+ })
427
+ .pipe(Schema.encodeKeys({
399
428
  id: "id",
400
429
  configurations: "configurations",
401
430
  createdOn: "created_on",
@@ -403,7 +432,8 @@ export const GetLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
403
432
  modifiedOn: "modified_on",
404
433
  paused: "paused",
405
434
  urls: "urls",
406
- }));
435
+ }))
436
+ .pipe(T.ResponsePath("result"));
407
437
  export const getLockdown = API.make(() => ({
408
438
  input: GetLockdownRequest,
409
439
  output: GetLockdownResponse,
@@ -421,27 +451,47 @@ export const ListLockdownsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
421
451
  priority: Schema.optional(Schema.Number).pipe(T.HttpQuery("priority")),
422
452
  uriSearch: Schema.optional(Schema.String).pipe(T.HttpQuery("uri_search")),
423
453
  }).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(() => ({
454
+ export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
455
+ result: Schema.Array(Schema.Struct({
456
+ id: Schema.String,
457
+ configurations: Schema.Unknown,
458
+ createdOn: Schema.String,
459
+ description: Schema.String,
460
+ modifiedOn: Schema.String,
461
+ paused: Schema.Boolean,
462
+ urls: Schema.Array(Schema.String),
463
+ }).pipe(Schema.encodeKeys({
464
+ id: "id",
465
+ configurations: "configurations",
466
+ createdOn: "created_on",
467
+ description: "description",
468
+ modifiedOn: "modified_on",
469
+ paused: "paused",
470
+ urls: "urls",
471
+ }))),
472
+ resultInfo: Schema.Struct({
473
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
474
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
475
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
476
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
477
+ }).pipe(Schema.encodeKeys({
478
+ count: "count",
479
+ page: "page",
480
+ perPage: "per_page",
481
+ totalCount: "total_count",
482
+ })),
483
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
484
+ export const listLockdowns = API.makePaginated(() => ({
442
485
  input: ListLockdownsRequest,
443
486
  output: ListLockdownsResponse,
444
487
  errors: [],
488
+ pagination: {
489
+ mode: "page",
490
+ inputToken: "page",
491
+ outputToken: "resultInfo.page",
492
+ items: "result",
493
+ pageSize: "perPage",
494
+ },
445
495
  }));
446
496
  export const CreateLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
447
497
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
@@ -459,7 +509,8 @@ export const CreateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
459
509
  modifiedOn: Schema.String,
460
510
  paused: Schema.Boolean,
461
511
  urls: Schema.Array(Schema.String),
462
- }).pipe(Schema.encodeKeys({
512
+ })
513
+ .pipe(Schema.encodeKeys({
463
514
  id: "id",
464
515
  configurations: "configurations",
465
516
  createdOn: "created_on",
@@ -467,7 +518,8 @@ export const CreateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
467
518
  modifiedOn: "modified_on",
468
519
  paused: "paused",
469
520
  urls: "urls",
470
- }));
521
+ }))
522
+ .pipe(T.ResponsePath("result"));
471
523
  export const createLockdown = API.make(() => ({
472
524
  input: CreateLockdownRequest,
473
525
  output: CreateLockdownResponse,
@@ -490,7 +542,8 @@ export const UpdateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
490
542
  modifiedOn: Schema.String,
491
543
  paused: Schema.Boolean,
492
544
  urls: Schema.Array(Schema.String),
493
- }).pipe(Schema.encodeKeys({
545
+ })
546
+ .pipe(Schema.encodeKeys({
494
547
  id: "id",
495
548
  configurations: "configurations",
496
549
  createdOn: "created_on",
@@ -498,7 +551,8 @@ export const UpdateLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
498
551
  modifiedOn: "modified_on",
499
552
  paused: "paused",
500
553
  urls: "urls",
501
- }));
554
+ }))
555
+ .pipe(T.ResponsePath("result"));
502
556
  export const updateLockdown = API.make(() => ({
503
557
  input: UpdateLockdownRequest,
504
558
  output: UpdateLockdownResponse,
@@ -513,7 +567,7 @@ export const DeleteLockdownRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
513
567
  }));
514
568
  export const DeleteLockdownResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
515
569
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
516
- });
570
+ }).pipe(T.ResponsePath("result"));
517
571
  export const deleteLockdown = API.make(() => ({
518
572
  input: DeleteLockdownRequest,
519
573
  output: DeleteLockdownResponse,
@@ -523,51 +577,57 @@ export const BulkPutRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
523
577
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
524
578
  body: Schema.Unknown.pipe(T.HttpBody()),
525
579
  }).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",
580
+ export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
581
+ result: Schema.Array(Schema.Struct({
582
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
583
+ action: Schema.optional(Schema.Union([
584
+ Schema.Literals([
585
+ "block",
586
+ "challenge",
587
+ "js_challenge",
588
+ "managed_challenge",
589
+ "allow",
590
+ "log",
591
+ "bypass",
592
+ ]),
593
+ Schema.Null,
562
594
  ])),
563
- Schema.Null,
564
- ])),
565
- ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
566
- }));
567
- export const bulkPutRules = API.make(() => ({
595
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
596
+ filter: Schema.optional(Schema.Union([
597
+ Schema.Union([
598
+ Schema.Unknown,
599
+ Schema.Struct({
600
+ id: Schema.String,
601
+ deleted: Schema.Boolean,
602
+ }),
603
+ ]),
604
+ Schema.Null,
605
+ ])),
606
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
607
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
608
+ products: Schema.optional(Schema.Union([
609
+ Schema.Array(Schema.Literals([
610
+ "zoneLockdown",
611
+ "uaBlock",
612
+ "bic",
613
+ "hot",
614
+ "securityLevel",
615
+ "rateLimit",
616
+ "waf",
617
+ ])),
618
+ Schema.Null,
619
+ ])),
620
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
621
+ })),
622
+ });
623
+ export const bulkPutRules = API.makePaginated(() => ({
568
624
  input: BulkPutRulesRequest,
569
625
  output: BulkPutRulesResponse,
570
626
  errors: [],
627
+ pagination: {
628
+ mode: "single",
629
+ items: "result",
630
+ },
571
631
  }));
572
632
  export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
573
633
  ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
@@ -613,7 +673,7 @@ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
613
673
  Schema.Null,
614
674
  ])),
615
675
  ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
616
- });
676
+ }).pipe(T.ResponsePath("result"));
617
677
  export const getRule = API.make(() => ({
618
678
  input: GetRuleRequest,
619
679
  output: GetRuleResponse,
@@ -626,51 +686,71 @@ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
626
686
  description: Schema.optional(Schema.String).pipe(T.HttpQuery("description")),
627
687
  paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
628
688
  }).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",
689
+ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
690
+ result: Schema.Array(Schema.Struct({
691
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
692
+ action: Schema.optional(Schema.Union([
693
+ Schema.Literals([
694
+ "block",
695
+ "challenge",
696
+ "js_challenge",
697
+ "managed_challenge",
698
+ "allow",
699
+ "log",
700
+ "bypass",
701
+ ]),
702
+ Schema.Null,
665
703
  ])),
666
- Schema.Null,
667
- ])),
668
- ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
669
- }));
670
- export const listRules = API.make(() => ({
704
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
705
+ filter: Schema.optional(Schema.Union([
706
+ Schema.Union([
707
+ Schema.Unknown,
708
+ Schema.Struct({
709
+ id: Schema.String,
710
+ deleted: Schema.Boolean,
711
+ }),
712
+ ]),
713
+ Schema.Null,
714
+ ])),
715
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
716
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
717
+ products: Schema.optional(Schema.Union([
718
+ Schema.Array(Schema.Literals([
719
+ "zoneLockdown",
720
+ "uaBlock",
721
+ "bic",
722
+ "hot",
723
+ "securityLevel",
724
+ "rateLimit",
725
+ "waf",
726
+ ])),
727
+ Schema.Null,
728
+ ])),
729
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
730
+ })),
731
+ resultInfo: Schema.Struct({
732
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
733
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
734
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
735
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
736
+ }).pipe(Schema.encodeKeys({
737
+ count: "count",
738
+ page: "page",
739
+ perPage: "per_page",
740
+ totalCount: "total_count",
741
+ })),
742
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
743
+ export const listRules = API.makePaginated(() => ({
671
744
  input: ListRulesRequest,
672
745
  output: ListRulesResponse,
673
746
  errors: [],
747
+ pagination: {
748
+ mode: "page",
749
+ inputToken: "page",
750
+ outputToken: "resultInfo.page",
751
+ items: "result",
752
+ pageSize: "perPage",
753
+ },
674
754
  }));
675
755
  export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
676
756
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
@@ -690,51 +770,57 @@ export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
690
770
  }),
691
771
  filter: Schema.Unknown,
692
772
  }).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",
773
+ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
774
+ result: Schema.Array(Schema.Struct({
775
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
776
+ action: Schema.optional(Schema.Union([
777
+ Schema.Literals([
778
+ "block",
779
+ "challenge",
780
+ "js_challenge",
781
+ "managed_challenge",
782
+ "allow",
783
+ "log",
784
+ "bypass",
785
+ ]),
786
+ Schema.Null,
729
787
  ])),
730
- Schema.Null,
731
- ])),
732
- ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
733
- }));
734
- export const createRule = API.make(() => ({
788
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
789
+ filter: Schema.optional(Schema.Union([
790
+ Schema.Union([
791
+ Schema.Unknown,
792
+ Schema.Struct({
793
+ id: Schema.String,
794
+ deleted: Schema.Boolean,
795
+ }),
796
+ ]),
797
+ Schema.Null,
798
+ ])),
799
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
800
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
801
+ products: Schema.optional(Schema.Union([
802
+ Schema.Array(Schema.Literals([
803
+ "zoneLockdown",
804
+ "uaBlock",
805
+ "bic",
806
+ "hot",
807
+ "securityLevel",
808
+ "rateLimit",
809
+ "waf",
810
+ ])),
811
+ Schema.Null,
812
+ ])),
813
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
814
+ })),
815
+ });
816
+ export const createRule = API.makePaginated(() => ({
735
817
  input: CreateRuleRequest,
736
818
  output: CreateRuleResponse,
737
819
  errors: [],
820
+ pagination: {
821
+ mode: "single",
822
+ items: "result",
823
+ },
738
824
  }));
739
825
  export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
740
826
  ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
@@ -795,169 +881,76 @@ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
795
881
  Schema.Null,
796
882
  ])),
797
883
  ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
798
- });
884
+ }).pipe(T.ResponsePath("result"));
799
885
  export const updateRule = API.make(() => ({
800
886
  input: UpdateRuleRequest,
801
887
  output: UpdateRuleResponse,
802
888
  errors: [],
803
889
  }));
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,
890
+ export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
891
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
892
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
893
+ }).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules/{ruleId}" }));
894
+ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
895
+ result: Schema.Array(Schema.Struct({
896
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
897
+ action: Schema.optional(Schema.Union([
898
+ Schema.Literals([
899
+ "block",
900
+ "challenge",
901
+ "js_challenge",
902
+ "managed_challenge",
903
+ "allow",
904
+ "log",
905
+ "bypass",
906
+ ]),
907
+ Schema.Null,
908
+ ])),
909
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
910
+ filter: Schema.optional(Schema.Union([
911
+ Schema.Union([
912
+ Schema.Unknown,
913
+ Schema.Struct({
914
+ id: Schema.String,
915
+ deleted: Schema.Boolean,
916
+ }),
917
+ ]),
918
+ Schema.Null,
919
+ ])),
920
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
921
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
922
+ products: Schema.optional(Schema.Union([
923
+ Schema.Array(Schema.Literals([
924
+ "zoneLockdown",
925
+ "uaBlock",
926
+ "bic",
927
+ "hot",
928
+ "securityLevel",
929
+ "rateLimit",
930
+ "waf",
931
+ ])),
932
+ Schema.Null,
933
+ ])),
934
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
+ })),
936
+ });
937
+ export const patchRule = API.makePaginated(() => ({
938
+ input: PatchRuleRequest,
939
+ output: PatchRuleResponse,
955
940
  errors: [],
941
+ pagination: {
942
+ mode: "single",
943
+ items: "result",
944
+ },
956
945
  }));
957
- export const BulkDeleteRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
946
+ export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
947
+ ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
958
948
  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({
949
+ }).pipe(T.Http({
950
+ method: "DELETE",
951
+ path: "/zones/{zone_id}/firewall/rules/{ruleId}",
952
+ }));
953
+ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
961
954
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
962
955
  action: Schema.optional(Schema.Union([
963
956
  Schema.Literals([
@@ -997,11 +990,123 @@ export const BulkDeleteRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
997
990
  Schema.Null,
998
991
  ])),
999
992
  ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
993
+ }).pipe(T.ResponsePath("result"));
994
+ export const deleteRule = API.make(() => ({
995
+ input: DeleteRuleRequest,
996
+ output: DeleteRuleResponse,
997
+ errors: [],
998
+ }));
999
+ export const BulkPatchRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1000
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1001
+ body: Schema.Unknown.pipe(T.HttpBody()),
1002
+ }).pipe(T.Http({ method: "PATCH", path: "/zones/{zone_id}/firewall/rules" }));
1003
+ export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1004
+ result: Schema.Array(Schema.Struct({
1005
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1006
+ action: Schema.optional(Schema.Union([
1007
+ Schema.Literals([
1008
+ "block",
1009
+ "challenge",
1010
+ "js_challenge",
1011
+ "managed_challenge",
1012
+ "allow",
1013
+ "log",
1014
+ "bypass",
1015
+ ]),
1016
+ Schema.Null,
1017
+ ])),
1018
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1019
+ filter: Schema.optional(Schema.Union([
1020
+ Schema.Union([
1021
+ Schema.Unknown,
1022
+ Schema.Struct({
1023
+ id: Schema.String,
1024
+ deleted: Schema.Boolean,
1025
+ }),
1026
+ ]),
1027
+ Schema.Null,
1028
+ ])),
1029
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1030
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1031
+ products: Schema.optional(Schema.Union([
1032
+ Schema.Array(Schema.Literals([
1033
+ "zoneLockdown",
1034
+ "uaBlock",
1035
+ "bic",
1036
+ "hot",
1037
+ "securityLevel",
1038
+ "rateLimit",
1039
+ "waf",
1040
+ ])),
1041
+ Schema.Null,
1042
+ ])),
1043
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1044
+ })),
1045
+ });
1046
+ export const bulkPatchRules = API.makePaginated(() => ({
1047
+ input: BulkPatchRulesRequest,
1048
+ output: BulkPatchRulesResponse,
1049
+ errors: [],
1050
+ pagination: {
1051
+ mode: "single",
1052
+ items: "result",
1053
+ },
1000
1054
  }));
1001
- export const bulkDeleteRules = API.make(() => ({
1055
+ export const BulkDeleteRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1056
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1057
+ }).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/firewall/rules" }));
1058
+ export const BulkDeleteRulesResponse =
1059
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1060
+ result: Schema.Array(Schema.Struct({
1061
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1062
+ action: Schema.optional(Schema.Union([
1063
+ Schema.Literals([
1064
+ "block",
1065
+ "challenge",
1066
+ "js_challenge",
1067
+ "managed_challenge",
1068
+ "allow",
1069
+ "log",
1070
+ "bypass",
1071
+ ]),
1072
+ Schema.Null,
1073
+ ])),
1074
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1075
+ filter: Schema.optional(Schema.Union([
1076
+ Schema.Union([
1077
+ Schema.Unknown,
1078
+ Schema.Struct({
1079
+ id: Schema.String,
1080
+ deleted: Schema.Boolean,
1081
+ }),
1082
+ ]),
1083
+ Schema.Null,
1084
+ ])),
1085
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1086
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1087
+ products: Schema.optional(Schema.Union([
1088
+ Schema.Array(Schema.Literals([
1089
+ "zoneLockdown",
1090
+ "uaBlock",
1091
+ "bic",
1092
+ "hot",
1093
+ "securityLevel",
1094
+ "rateLimit",
1095
+ "waf",
1096
+ ])),
1097
+ Schema.Null,
1098
+ ])),
1099
+ ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1100
+ })),
1101
+ });
1102
+ export const bulkDeleteRules = API.makePaginated(() => ({
1002
1103
  input: BulkDeleteRulesRequest,
1003
1104
  output: BulkDeleteRulesResponse,
1004
1105
  errors: [],
1106
+ pagination: {
1107
+ mode: "single",
1108
+ items: "result",
1109
+ },
1005
1110
  }));
1006
1111
  export const GetUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1007
1112
  uaRuleId: Schema.String.pipe(T.HttpPath("uaRuleId")),
@@ -1030,7 +1135,7 @@ export const GetUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1030
1135
  Schema.Null,
1031
1136
  ])),
1032
1137
  paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1033
- });
1138
+ }).pipe(T.ResponsePath("result"));
1034
1139
  export const getUaRule = API.make(() => ({
1035
1140
  input: GetUaRuleRequest,
1036
1141
  output: GetUaRuleResponse,
@@ -1042,31 +1147,51 @@ export const ListUaRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1042
1147
  paused: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("paused")),
1043
1148
  userAgent: Schema.optional(Schema.String).pipe(T.HttpQuery("user_agent")),
1044
1149
  }).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(() => ({
1150
+ export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1151
+ result: Schema.Array(Schema.Struct({
1152
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1153
+ configuration: Schema.optional(Schema.Union([
1154
+ Schema.Struct({
1155
+ target: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1156
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1157
+ }),
1158
+ Schema.Null,
1159
+ ])),
1160
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1161
+ mode: Schema.optional(Schema.Union([
1162
+ Schema.Literals([
1163
+ "block",
1164
+ "challenge",
1165
+ "js_challenge",
1166
+ "managed_challenge",
1167
+ ]),
1168
+ Schema.Null,
1169
+ ])),
1170
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1171
+ })),
1172
+ resultInfo: Schema.Struct({
1173
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1174
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1175
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1176
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1177
+ }).pipe(Schema.encodeKeys({
1178
+ count: "count",
1179
+ page: "page",
1180
+ perPage: "per_page",
1181
+ totalCount: "total_count",
1182
+ })),
1183
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1184
+ export const listUaRules = API.makePaginated(() => ({
1067
1185
  input: ListUaRulesRequest,
1068
1186
  output: ListUaRulesResponse,
1069
1187
  errors: [],
1188
+ pagination: {
1189
+ mode: "page",
1190
+ inputToken: "page",
1191
+ outputToken: "resultInfo.page",
1192
+ items: "result",
1193
+ pageSize: "perPage",
1194
+ },
1070
1195
  }));
1071
1196
  export const CreateUaRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1072
1197
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
@@ -1104,7 +1229,7 @@ export const CreateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1104
1229
  Schema.Null,
1105
1230
  ])),
1106
1231
  paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1107
- });
1232
+ }).pipe(T.ResponsePath("result"));
1108
1233
  export const createUaRule = API.make(() => ({
1109
1234
  input: CreateUaRuleRequest,
1110
1235
  output: CreateUaRuleResponse,
@@ -1147,7 +1272,7 @@ export const UpdateUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1147
1272
  Schema.Null,
1148
1273
  ])),
1149
1274
  paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1150
- });
1275
+ }).pipe(T.ResponsePath("result"));
1151
1276
  export const updateUaRule = API.make(() => ({
1152
1277
  input: UpdateUaRuleRequest,
1153
1278
  output: UpdateUaRuleResponse,
@@ -1180,7 +1305,7 @@ export const DeleteUaRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1180
1305
  Schema.Null,
1181
1306
  ])),
1182
1307
  paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1183
- });
1308
+ }).pipe(T.ResponsePath("result"));
1184
1309
  export const deleteUaRule = API.make(() => ({
1185
1310
  input: DeleteUaRuleRequest,
1186
1311
  output: DeleteUaRuleResponse,
@@ -1256,7 +1381,8 @@ export const GetWafOverrideResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1256
1381
  ])),
1257
1382
  rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1258
1383
  urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1259
- }).pipe(Schema.encodeKeys({
1384
+ })
1385
+ .pipe(Schema.encodeKeys({
1260
1386
  id: "id",
1261
1387
  description: "description",
1262
1388
  groups: "groups",
@@ -1265,7 +1391,8 @@ export const GetWafOverrideResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1265
1391
  rewriteAction: "rewrite_action",
1266
1392
  rules: "rules",
1267
1393
  urls: "urls",
1268
- }));
1394
+ }))
1395
+ .pipe(T.ResponsePath("result"));
1269
1396
  export const getWafOverride = API.make(() => ({
1270
1397
  input: GetWafOverrideRequest,
1271
1398
  output: GetWafOverrideResponse,
@@ -1276,83 +1403,103 @@ export const ListWafOverridesRequest =
1276
1403
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1277
1404
  }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/firewall/waf/overrides" }));
1278
1405
  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(() => ({
1406
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1407
+ result: Schema.Array(Schema.Struct({
1408
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1409
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1410
+ groups: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1411
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1412
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1413
+ rewriteAction: Schema.optional(Schema.Union([
1414
+ Schema.Struct({
1415
+ block: Schema.optional(Schema.Union([
1416
+ Schema.Literals([
1417
+ "challenge",
1418
+ "block",
1419
+ "simulate",
1420
+ "disable",
1421
+ "default",
1422
+ ]),
1423
+ Schema.Null,
1424
+ ])),
1425
+ challenge: Schema.optional(Schema.Union([
1426
+ Schema.Literals([
1427
+ "challenge",
1428
+ "block",
1429
+ "simulate",
1430
+ "disable",
1431
+ "default",
1432
+ ]),
1433
+ Schema.Null,
1434
+ ])),
1435
+ default: Schema.optional(Schema.Union([
1436
+ Schema.Literals([
1437
+ "challenge",
1438
+ "block",
1439
+ "simulate",
1440
+ "disable",
1441
+ "default",
1442
+ ]),
1443
+ Schema.Null,
1444
+ ])),
1445
+ disable: Schema.optional(Schema.Union([
1446
+ Schema.Literals([
1447
+ "challenge",
1448
+ "block",
1449
+ "simulate",
1450
+ "disable",
1451
+ "default",
1452
+ ]),
1453
+ Schema.Null,
1454
+ ])),
1455
+ simulate: Schema.optional(Schema.Union([
1456
+ Schema.Literals([
1457
+ "challenge",
1458
+ "block",
1459
+ "simulate",
1460
+ "disable",
1461
+ "default",
1462
+ ]),
1463
+ Schema.Null,
1464
+ ])),
1465
+ }),
1466
+ Schema.Null,
1467
+ ])),
1468
+ rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1469
+ urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1470
+ }).pipe(Schema.encodeKeys({
1471
+ id: "id",
1472
+ description: "description",
1473
+ groups: "groups",
1474
+ paused: "paused",
1475
+ priority: "priority",
1476
+ rewriteAction: "rewrite_action",
1477
+ rules: "rules",
1478
+ urls: "urls",
1479
+ }))),
1480
+ resultInfo: Schema.Struct({
1481
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1482
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1483
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1484
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1485
+ }).pipe(Schema.encodeKeys({
1486
+ count: "count",
1487
+ page: "page",
1488
+ perPage: "per_page",
1489
+ totalCount: "total_count",
1490
+ })),
1491
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1492
+ export const listWafOverrides = API.makePaginated(() => ({
1353
1493
  input: ListWafOverridesRequest,
1354
1494
  output: ListWafOverridesResponse,
1355
1495
  errors: [],
1496
+ pagination: {
1497
+ mode: "page",
1498
+ inputToken: "page",
1499
+ outputToken: "resultInfo.page",
1500
+ items: "result",
1501
+ pageSize: "perPage",
1502
+ },
1356
1503
  }));
1357
1504
  export const CreateWafOverrideRequest =
1358
1505
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1423,7 +1570,8 @@ export const CreateWafOverrideResponse =
1423
1570
  ])),
1424
1571
  rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1425
1572
  urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1426
- }).pipe(Schema.encodeKeys({
1573
+ })
1574
+ .pipe(Schema.encodeKeys({
1427
1575
  id: "id",
1428
1576
  description: "description",
1429
1577
  groups: "groups",
@@ -1432,7 +1580,8 @@ export const CreateWafOverrideResponse =
1432
1580
  rewriteAction: "rewrite_action",
1433
1581
  rules: "rules",
1434
1582
  urls: "urls",
1435
- }));
1583
+ }))
1584
+ .pipe(T.ResponsePath("result"));
1436
1585
  export const createWafOverride = API.make(() => ({
1437
1586
  input: CreateWafOverrideRequest,
1438
1587
  output: CreateWafOverrideResponse,
@@ -1555,7 +1704,8 @@ export const UpdateWafOverrideResponse =
1555
1704
  ])),
1556
1705
  rules: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1557
1706
  urls: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1558
- }).pipe(Schema.encodeKeys({
1707
+ })
1708
+ .pipe(Schema.encodeKeys({
1559
1709
  id: "id",
1560
1710
  description: "description",
1561
1711
  groups: "groups",
@@ -1564,7 +1714,8 @@ export const UpdateWafOverrideResponse =
1564
1714
  rewriteAction: "rewrite_action",
1565
1715
  rules: "rules",
1566
1716
  urls: "urls",
1567
- }));
1717
+ }))
1718
+ .pipe(T.ResponsePath("result"));
1568
1719
  export const updateWafOverride = API.make(() => ({
1569
1720
  input: UpdateWafOverrideRequest,
1570
1721
  output: UpdateWafOverrideResponse,
@@ -1581,7 +1732,7 @@ export const DeleteWafOverrideRequest =
1581
1732
  export const DeleteWafOverrideResponse =
1582
1733
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1583
1734
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1584
- });
1735
+ }).pipe(T.ResponsePath("result"));
1585
1736
  export const deleteWafOverride = API.make(() => ({
1586
1737
  input: DeleteWafOverrideRequest,
1587
1738
  output: DeleteWafOverrideResponse,
@@ -1617,11 +1768,32 @@ export const ListWafPackagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1617
1768
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1618
1769
  order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
1619
1770
  }).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(() => ({
1771
+ export const ListWafPackagesResponse =
1772
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1773
+ result: Schema.Array(Schema.Unknown),
1774
+ resultInfo: Schema.Struct({
1775
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1776
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1777
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1778
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1779
+ }).pipe(Schema.encodeKeys({
1780
+ count: "count",
1781
+ page: "page",
1782
+ perPage: "per_page",
1783
+ totalCount: "total_count",
1784
+ })),
1785
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1786
+ export const listWafPackages = API.makePaginated(() => ({
1622
1787
  input: ListWafPackagesRequest,
1623
1788
  output: ListWafPackagesResponse,
1624
1789
  errors: [],
1790
+ pagination: {
1791
+ mode: "page",
1792
+ inputToken: "page",
1793
+ outputToken: "resultInfo.page",
1794
+ items: "result",
1795
+ pageSize: "perPage",
1796
+ },
1625
1797
  }));
1626
1798
  export const GetWafPackageGroupRequest =
1627
1799
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1633,10 +1805,7 @@ export const GetWafPackageGroupRequest =
1633
1805
  path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
1634
1806
  }));
1635
1807
  export const GetWafPackageGroupResponse =
1636
- /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1637
- Schema.String,
1638
- Schema.Null,
1639
- ]);
1808
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
1640
1809
  export const getWafPackageGroup = API.make(() => ({
1641
1810
  input: GetWafPackageGroupRequest,
1642
1811
  output: GetWafPackageGroupResponse,
@@ -1657,32 +1826,52 @@ export const ListWafPackageGroupsRequest =
1657
1826
  path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups",
1658
1827
  }));
1659
1828
  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(() => ({
1829
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1830
+ result: Schema.Array(Schema.Struct({
1831
+ id: Schema.String,
1832
+ description: Schema.Union([Schema.String, Schema.Null]),
1833
+ mode: Schema.Literals(["on", "off"]),
1834
+ name: Schema.String,
1835
+ rulesCount: Schema.Number,
1836
+ allowedModes: Schema.optional(Schema.Union([
1837
+ Schema.Array(Schema.Literals(["on", "off"])),
1838
+ Schema.Null,
1839
+ ])),
1840
+ modifiedRulesCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1841
+ packageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1842
+ }).pipe(Schema.encodeKeys({
1843
+ id: "id",
1844
+ description: "description",
1845
+ mode: "mode",
1846
+ name: "name",
1847
+ rulesCount: "rules_count",
1848
+ allowedModes: "allowed_modes",
1849
+ modifiedRulesCount: "modified_rules_count",
1850
+ packageId: "package_id",
1851
+ }))),
1852
+ resultInfo: Schema.Struct({
1853
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1854
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1855
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1856
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1857
+ }).pipe(Schema.encodeKeys({
1858
+ count: "count",
1859
+ page: "page",
1860
+ perPage: "per_page",
1861
+ totalCount: "total_count",
1862
+ })),
1863
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1864
+ export const listWafPackageGroups = API.makePaginated(() => ({
1683
1865
  input: ListWafPackageGroupsRequest,
1684
1866
  output: ListWafPackageGroupsResponse,
1685
1867
  errors: [],
1868
+ pagination: {
1869
+ mode: "page",
1870
+ inputToken: "page",
1871
+ outputToken: "resultInfo.page",
1872
+ items: "result",
1873
+ pageSize: "perPage",
1874
+ },
1686
1875
  }));
1687
1876
  export const PatchWafPackageGroupRequest =
1688
1877
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1695,10 +1884,7 @@ export const PatchWafPackageGroupRequest =
1695
1884
  path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/groups/{groupId}",
1696
1885
  }));
1697
1886
  export const PatchWafPackageGroupResponse =
1698
- /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1699
- Schema.String,
1700
- Schema.Null,
1701
- ]);
1887
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
1702
1888
  export const patchWafPackageGroup = API.make(() => ({
1703
1889
  input: PatchWafPackageGroupRequest,
1704
1890
  output: PatchWafPackageGroupResponse,
@@ -1714,10 +1900,7 @@ export const GetWafPackageRuleRequest =
1714
1900
  path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules/{ruleId}",
1715
1901
  }));
1716
1902
  export const GetWafPackageRuleResponse =
1717
- /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1718
- Schema.String,
1719
- Schema.Null,
1720
- ]);
1903
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([Schema.String, Schema.Null]).pipe(T.ResponsePath("result"));
1721
1904
  export const getWafPackageRule = API.make(() => ({
1722
1905
  input: GetWafPackageRuleRequest,
1723
1906
  output: GetWafPackageRuleResponse,
@@ -1739,65 +1922,85 @@ export const ListWafPackageRulesRequest =
1739
1922
  path: "/zones/{zone_id}/firewall/waf/packages/{packageId}/rules",
1740
1923
  }));
1741
1924
  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,
1925
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1926
+ result: Schema.Array(Schema.Union([
1927
+ Schema.Struct({
1928
+ id: Schema.String,
1929
+ allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
1930
+ description: Schema.String,
1931
+ group: Schema.Unknown,
1932
+ mode: Schema.Literals(["on", "off"]),
1933
+ packageId: Schema.String,
1934
+ priority: Schema.String,
1935
+ }).pipe(Schema.encodeKeys({
1936
+ id: "id",
1937
+ allowedModes: "allowed_modes",
1938
+ description: "description",
1939
+ group: "group",
1940
+ mode: "mode",
1941
+ packageId: "package_id",
1942
+ priority: "priority",
1943
+ })),
1944
+ Schema.Struct({
1945
+ id: Schema.String,
1946
+ allowedModes: Schema.Array(Schema.Literals([
1947
+ "default",
1948
+ "disable",
1949
+ "simulate",
1950
+ "block",
1951
+ "challenge",
1952
+ ])),
1953
+ defaultMode: Schema.Literals([
1954
+ "disable",
1955
+ "simulate",
1956
+ "block",
1957
+ "challenge",
1958
+ ]),
1959
+ description: Schema.String,
1960
+ group: Schema.Unknown,
1961
+ mode: Schema.Literals([
1962
+ "default",
1963
+ "disable",
1964
+ "simulate",
1965
+ "block",
1966
+ "challenge",
1967
+ ]),
1968
+ packageId: Schema.String,
1969
+ priority: Schema.String,
1970
+ }).pipe(Schema.encodeKeys({
1971
+ id: "id",
1972
+ allowedModes: "allowed_modes",
1973
+ defaultMode: "default_mode",
1974
+ description: "description",
1975
+ group: "group",
1976
+ mode: "mode",
1977
+ packageId: "package_id",
1978
+ priority: "priority",
1979
+ })),
1980
+ ])),
1981
+ resultInfo: Schema.Struct({
1982
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1983
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1984
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1985
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1786
1986
  }).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",
1987
+ count: "count",
1988
+ page: "page",
1989
+ perPage: "per_page",
1990
+ totalCount: "total_count",
1795
1991
  })),
1796
- ]));
1797
- export const listWafPackageRules = API.make(() => ({
1992
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
1993
+ export const listWafPackageRules = API.makePaginated(() => ({
1798
1994
  input: ListWafPackageRulesRequest,
1799
1995
  output: ListWafPackageRulesResponse,
1800
1996
  errors: [],
1997
+ pagination: {
1998
+ mode: "page",
1999
+ inputToken: "page",
2000
+ outputToken: "resultInfo.page",
2001
+ items: "result",
2002
+ pageSize: "perPage",
2003
+ },
1801
2004
  }));
1802
2005
  export const PatchWafPackageRuleRequest =
1803
2006
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1872,7 +2075,7 @@ export const PatchWafPackageRuleResponse =
1872
2075
  packageId: "package_id",
1873
2076
  priority: "priority",
1874
2077
  })),
1875
- ]);
2078
+ ]).pipe(T.ResponsePath("result"));
1876
2079
  export const patchWafPackageRule = API.make(() => ({
1877
2080
  input: PatchWafPackageRuleRequest,
1878
2081
  output: PatchWafPackageRuleResponse,