@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
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service alerting
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -100,8 +101,8 @@ export const ListAvailableAlertsRequest =
100
101
  export type ListAvailableAlertsResponse = Record<string, unknown>;
101
102
 
102
103
  export const ListAvailableAlertsResponse =
103
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
104
- {},
104
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
105
+ T.ResponsePath("result"),
105
106
  ) as unknown as Schema.Schema<ListAvailableAlertsResponse>;
106
107
 
107
108
  export type ListAvailableAlertsError = DefaultErrors | InvalidRoute;
@@ -139,8 +140,8 @@ export const GetDestinationEligibleRequest =
139
140
  export type GetDestinationEligibleResponse = Record<string, unknown>;
140
141
 
141
142
  export const GetDestinationEligibleResponse =
142
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
143
- {},
143
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
144
+ T.ResponsePath("result"),
144
145
  ) as unknown as Schema.Schema<GetDestinationEligibleResponse>;
145
146
 
146
147
  export type GetDestinationEligibleError = DefaultErrors | InvalidRoute;
@@ -175,30 +176,50 @@ export const GetDestinationPagerdutyRequest =
175
176
  }),
176
177
  ) as unknown as Schema.Schema<GetDestinationPagerdutyRequest>;
177
178
 
178
- export type GetDestinationPagerdutyResponse = {
179
- id?: string | null;
180
- name?: string | null;
181
- }[];
179
+ export interface GetDestinationPagerdutyResponse {
180
+ result: { id?: string | null; name?: string | null }[];
181
+ }
182
182
 
183
183
  export const GetDestinationPagerdutyResponse =
184
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
185
- Schema.Struct({
186
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
187
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
188
- }),
189
- ) as unknown as Schema.Schema<GetDestinationPagerdutyResponse>;
184
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
185
+ result: Schema.Array(
186
+ Schema.Struct({
187
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
188
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
189
+ }),
190
+ ),
191
+ }) as unknown as Schema.Schema<GetDestinationPagerdutyResponse>;
190
192
 
191
193
  export type GetDestinationPagerdutyError = DefaultErrors;
192
194
 
193
- export const getDestinationPagerduty: API.OperationMethod<
195
+ export const getDestinationPagerduty: API.PaginatedOperationMethod<
194
196
  GetDestinationPagerdutyRequest,
195
197
  GetDestinationPagerdutyResponse,
196
198
  GetDestinationPagerdutyError,
197
199
  Credentials | HttpClient.HttpClient
198
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
200
+ > & {
201
+ pages: (
202
+ input: GetDestinationPagerdutyRequest,
203
+ ) => stream.Stream<
204
+ GetDestinationPagerdutyResponse,
205
+ GetDestinationPagerdutyError,
206
+ Credentials | HttpClient.HttpClient
207
+ >;
208
+ items: (
209
+ input: GetDestinationPagerdutyRequest,
210
+ ) => stream.Stream<
211
+ { id?: string | null; name?: string | null },
212
+ GetDestinationPagerdutyError,
213
+ Credentials | HttpClient.HttpClient
214
+ >;
215
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
199
216
  input: GetDestinationPagerdutyRequest,
200
217
  output: GetDestinationPagerdutyResponse,
201
218
  errors: [],
219
+ pagination: {
220
+ mode: "single",
221
+ items: "result",
222
+ } as const,
202
223
  }));
203
224
 
204
225
  export interface CreateDestinationPagerdutyRequest {
@@ -224,7 +245,9 @@ export interface CreateDestinationPagerdutyResponse {
224
245
  export const CreateDestinationPagerdutyResponse =
225
246
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
226
247
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
227
- }) as unknown as Schema.Schema<CreateDestinationPagerdutyResponse>;
248
+ }).pipe(
249
+ T.ResponsePath("result"),
250
+ ) as unknown as Schema.Schema<CreateDestinationPagerdutyResponse>;
228
251
 
229
252
  export type CreateDestinationPagerdutyError = DefaultErrors | InvalidRoute;
230
253
 
@@ -316,7 +339,9 @@ export interface LinkDestinationPagerdutyResponse {
316
339
  export const LinkDestinationPagerdutyResponse =
317
340
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
318
341
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
319
- }) as unknown as Schema.Schema<LinkDestinationPagerdutyResponse>;
342
+ }).pipe(
343
+ T.ResponsePath("result"),
344
+ ) as unknown as Schema.Schema<LinkDestinationPagerdutyResponse>;
320
345
 
321
346
  export type LinkDestinationPagerdutyError = DefaultErrors | InvalidRoute;
322
347
 
@@ -401,17 +426,21 @@ export const GetDestinationWebhookResponse =
401
426
  ]),
402
427
  ),
403
428
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
404
- }).pipe(
405
- Schema.encodeKeys({
406
- id: "id",
407
- createdAt: "created_at",
408
- lastFailure: "last_failure",
409
- lastSuccess: "last_success",
410
- name: "name",
411
- type: "type",
412
- url: "url",
413
- }),
414
- ) as unknown as Schema.Schema<GetDestinationWebhookResponse>;
429
+ })
430
+ .pipe(
431
+ Schema.encodeKeys({
432
+ id: "id",
433
+ createdAt: "created_at",
434
+ lastFailure: "last_failure",
435
+ lastSuccess: "last_success",
436
+ name: "name",
437
+ type: "type",
438
+ url: "url",
439
+ }),
440
+ )
441
+ .pipe(
442
+ T.ResponsePath("result"),
443
+ ) as unknown as Schema.Schema<GetDestinationWebhookResponse>;
415
444
 
416
445
  export type GetDestinationWebhookError =
417
446
  | DefaultErrors
@@ -444,73 +473,115 @@ export const ListDestinationWebhooksRequest =
444
473
  }),
445
474
  ) as unknown as Schema.Schema<ListDestinationWebhooksRequest>;
446
475
 
447
- export type ListDestinationWebhooksResponse = {
448
- id?: string | null;
449
- createdAt?: string | null;
450
- lastFailure?: string | null;
451
- lastSuccess?: string | null;
452
- name?: string | null;
453
- type?:
454
- | "datadog"
455
- | "discord"
456
- | "feishu"
457
- | "gchat"
458
- | "generic"
459
- | "opsgenie"
460
- | "slack"
461
- | "splunk"
462
- | null;
463
- url?: string | null;
464
- }[];
476
+ export interface ListDestinationWebhooksResponse {
477
+ result: {
478
+ id?: string | null;
479
+ createdAt?: string | null;
480
+ lastFailure?: string | null;
481
+ lastSuccess?: string | null;
482
+ name?: string | null;
483
+ type?:
484
+ | "datadog"
485
+ | "discord"
486
+ | "feishu"
487
+ | "gchat"
488
+ | "generic"
489
+ | "opsgenie"
490
+ | "slack"
491
+ | "splunk"
492
+ | null;
493
+ url?: string | null;
494
+ }[];
495
+ }
465
496
 
466
497
  export const ListDestinationWebhooksResponse =
467
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
468
- Schema.Struct({
469
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
470
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
471
- lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
472
- lastSuccess: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
473
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
474
- type: Schema.optional(
475
- Schema.Union([
476
- Schema.Literals([
477
- "datadog",
478
- "discord",
479
- "feishu",
480
- "gchat",
481
- "generic",
482
- "opsgenie",
483
- "slack",
484
- "splunk",
498
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
499
+ result: Schema.Array(
500
+ Schema.Struct({
501
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
502
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
503
+ lastFailure: Schema.optional(
504
+ Schema.Union([Schema.String, Schema.Null]),
505
+ ),
506
+ lastSuccess: Schema.optional(
507
+ Schema.Union([Schema.String, Schema.Null]),
508
+ ),
509
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
510
+ type: Schema.optional(
511
+ Schema.Union([
512
+ Schema.Literals([
513
+ "datadog",
514
+ "discord",
515
+ "feishu",
516
+ "gchat",
517
+ "generic",
518
+ "opsgenie",
519
+ "slack",
520
+ "splunk",
521
+ ]),
522
+ Schema.Null,
485
523
  ]),
486
- Schema.Null,
487
- ]),
524
+ ),
525
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
526
+ }).pipe(
527
+ Schema.encodeKeys({
528
+ id: "id",
529
+ createdAt: "created_at",
530
+ lastFailure: "last_failure",
531
+ lastSuccess: "last_success",
532
+ name: "name",
533
+ type: "type",
534
+ url: "url",
535
+ }),
488
536
  ),
489
- url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
490
- }).pipe(
491
- Schema.encodeKeys({
492
- id: "id",
493
- createdAt: "created_at",
494
- lastFailure: "last_failure",
495
- lastSuccess: "last_success",
496
- name: "name",
497
- type: "type",
498
- url: "url",
499
- }),
500
537
  ),
501
- ) as unknown as Schema.Schema<ListDestinationWebhooksResponse>;
538
+ }) as unknown as Schema.Schema<ListDestinationWebhooksResponse>;
502
539
 
503
540
  export type ListDestinationWebhooksError = DefaultErrors;
504
541
 
505
- export const listDestinationWebhooks: API.OperationMethod<
542
+ export const listDestinationWebhooks: API.PaginatedOperationMethod<
506
543
  ListDestinationWebhooksRequest,
507
544
  ListDestinationWebhooksResponse,
508
545
  ListDestinationWebhooksError,
509
546
  Credentials | HttpClient.HttpClient
510
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
547
+ > & {
548
+ pages: (
549
+ input: ListDestinationWebhooksRequest,
550
+ ) => stream.Stream<
551
+ ListDestinationWebhooksResponse,
552
+ ListDestinationWebhooksError,
553
+ Credentials | HttpClient.HttpClient
554
+ >;
555
+ items: (input: ListDestinationWebhooksRequest) => stream.Stream<
556
+ {
557
+ id?: string | null;
558
+ createdAt?: string | null;
559
+ lastFailure?: string | null;
560
+ lastSuccess?: string | null;
561
+ name?: string | null;
562
+ type?:
563
+ | "datadog"
564
+ | "discord"
565
+ | "feishu"
566
+ | "gchat"
567
+ | "generic"
568
+ | "opsgenie"
569
+ | "slack"
570
+ | "splunk"
571
+ | null;
572
+ url?: string | null;
573
+ },
574
+ ListDestinationWebhooksError,
575
+ Credentials | HttpClient.HttpClient
576
+ >;
577
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
511
578
  input: ListDestinationWebhooksRequest,
512
579
  output: ListDestinationWebhooksResponse,
513
580
  errors: [],
581
+ pagination: {
582
+ mode: "single",
583
+ items: "result",
584
+ } as const,
514
585
  }));
515
586
 
516
587
  export interface CreateDestinationWebhookRequest {
@@ -545,7 +616,9 @@ export interface CreateDestinationWebhookResponse {
545
616
  export const CreateDestinationWebhookResponse =
546
617
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
547
618
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
548
- }) as unknown as Schema.Schema<CreateDestinationWebhookResponse>;
619
+ }).pipe(
620
+ T.ResponsePath("result"),
621
+ ) as unknown as Schema.Schema<CreateDestinationWebhookResponse>;
549
622
 
550
623
  export type CreateDestinationWebhookError =
551
624
  | DefaultErrors
@@ -597,7 +670,9 @@ export interface UpdateDestinationWebhookResponse {
597
670
  export const UpdateDestinationWebhookResponse =
598
671
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
599
672
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
600
- }) as unknown as Schema.Schema<UpdateDestinationWebhookResponse>;
673
+ }).pipe(
674
+ T.ResponsePath("result"),
675
+ ) as unknown as Schema.Schema<UpdateDestinationWebhookResponse>;
601
676
 
602
677
  export type UpdateDestinationWebhookError =
603
678
  | DefaultErrors
@@ -693,60 +768,115 @@ export const ListHistoriesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
693
768
  T.Http({ method: "GET", path: "/accounts/{account_id}/alerting/v3/history" }),
694
769
  ) as unknown as Schema.Schema<ListHistoriesRequest>;
695
770
 
696
- export type ListHistoriesResponse = {
697
- id?: string | null;
698
- alertBody?: string | null;
699
- alertType?: string | null;
700
- description?: string | null;
701
- mechanism?: string | null;
702
- mechanismType?: "email" | "pagerduty" | "webhook" | null;
703
- name?: string | null;
704
- policyId?: string | null;
705
- sent?: string | null;
706
- }[];
771
+ export interface ListHistoriesResponse {
772
+ result: {
773
+ id?: string | null;
774
+ alertBody?: string | null;
775
+ alertType?: string | null;
776
+ description?: string | null;
777
+ mechanism?: string | null;
778
+ mechanismType?: "email" | "pagerduty" | "webhook" | null;
779
+ name?: string | null;
780
+ policyId?: string | null;
781
+ sent?: string | null;
782
+ }[];
783
+ resultInfo: {
784
+ count?: number | null;
785
+ page?: number | null;
786
+ perPage?: number | null;
787
+ totalCount?: number | null;
788
+ };
789
+ }
707
790
 
708
- export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
709
- Schema.Struct({
710
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
711
- alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
712
- alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
713
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
714
- mechanism: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
715
- mechanismType: Schema.optional(
716
- Schema.Union([
717
- Schema.Literals(["email", "pagerduty", "webhook"]),
718
- Schema.Null,
719
- ]),
791
+ export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
792
+ result: Schema.Array(
793
+ Schema.Struct({
794
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
795
+ alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
796
+ alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
797
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
798
+ mechanism: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
799
+ mechanismType: Schema.optional(
800
+ Schema.Union([
801
+ Schema.Literals(["email", "pagerduty", "webhook"]),
802
+ Schema.Null,
803
+ ]),
804
+ ),
805
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
806
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
807
+ sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
808
+ }).pipe(
809
+ Schema.encodeKeys({
810
+ id: "id",
811
+ alertBody: "alert_body",
812
+ alertType: "alert_type",
813
+ description: "description",
814
+ mechanism: "mechanism",
815
+ mechanismType: "mechanism_type",
816
+ name: "name",
817
+ policyId: "policy_id",
818
+ sent: "sent",
819
+ }),
720
820
  ),
721
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
722
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
723
- sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
821
+ ),
822
+ resultInfo: Schema.Struct({
823
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
824
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
825
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
826
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
724
827
  }).pipe(
725
828
  Schema.encodeKeys({
726
- id: "id",
727
- alertBody: "alert_body",
728
- alertType: "alert_type",
729
- description: "description",
730
- mechanism: "mechanism",
731
- mechanismType: "mechanism_type",
732
- name: "name",
733
- policyId: "policy_id",
734
- sent: "sent",
829
+ count: "count",
830
+ page: "page",
831
+ perPage: "per_page",
832
+ totalCount: "total_count",
735
833
  }),
736
834
  ),
835
+ }).pipe(
836
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
737
837
  ) as unknown as Schema.Schema<ListHistoriesResponse>;
738
838
 
739
839
  export type ListHistoriesError = DefaultErrors;
740
840
 
741
- export const listHistories: API.OperationMethod<
841
+ export const listHistories: API.PaginatedOperationMethod<
742
842
  ListHistoriesRequest,
743
843
  ListHistoriesResponse,
744
844
  ListHistoriesError,
745
845
  Credentials | HttpClient.HttpClient
746
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
846
+ > & {
847
+ pages: (
848
+ input: ListHistoriesRequest,
849
+ ) => stream.Stream<
850
+ ListHistoriesResponse,
851
+ ListHistoriesError,
852
+ Credentials | HttpClient.HttpClient
853
+ >;
854
+ items: (input: ListHistoriesRequest) => stream.Stream<
855
+ {
856
+ id?: string | null;
857
+ alertBody?: string | null;
858
+ alertType?: string | null;
859
+ description?: string | null;
860
+ mechanism?: string | null;
861
+ mechanismType?: "email" | "pagerduty" | "webhook" | null;
862
+ name?: string | null;
863
+ policyId?: string | null;
864
+ sent?: string | null;
865
+ },
866
+ ListHistoriesError,
867
+ Credentials | HttpClient.HttpClient
868
+ >;
869
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
747
870
  input: ListHistoriesRequest,
748
871
  output: ListHistoriesResponse,
749
872
  errors: [],
873
+ pagination: {
874
+ mode: "page",
875
+ inputToken: "page",
876
+ outputToken: "resultInfo.page",
877
+ items: "result",
878
+ pageSize: "perPage",
879
+ } as const,
750
880
  }));
751
881
 
752
882
  // =============================================================================
@@ -1229,20 +1359,24 @@ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1229
1359
  ),
1230
1360
  modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1231
1361
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1232
- }).pipe(
1233
- Schema.encodeKeys({
1234
- id: "id",
1235
- alertInterval: "alert_interval",
1236
- alertType: "alert_type",
1237
- created: "created",
1238
- description: "description",
1239
- enabled: "enabled",
1240
- filters: "filters",
1241
- mechanisms: "mechanisms",
1242
- modified: "modified",
1243
- name: "name",
1244
- }),
1245
- ) as unknown as Schema.Schema<GetPolicyResponse>;
1362
+ })
1363
+ .pipe(
1364
+ Schema.encodeKeys({
1365
+ id: "id",
1366
+ alertInterval: "alert_interval",
1367
+ alertType: "alert_type",
1368
+ created: "created",
1369
+ description: "description",
1370
+ enabled: "enabled",
1371
+ filters: "filters",
1372
+ mechanisms: "mechanisms",
1373
+ modified: "modified",
1374
+ name: "name",
1375
+ }),
1376
+ )
1377
+ .pipe(
1378
+ T.ResponsePath("result"),
1379
+ ) as unknown as Schema.Schema<GetPolicyResponse>;
1246
1380
 
1247
1381
  export type GetPolicyError = DefaultErrors | InvalidRoute | PolicyNotFound;
1248
1382
 
@@ -1271,492 +1405,650 @@ export const ListPoliciesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1271
1405
  }),
1272
1406
  ) as unknown as Schema.Schema<ListPoliciesRequest>;
1273
1407
 
1274
- export type ListPoliciesResponse = {
1275
- id?: string | null;
1276
- alertInterval?: string | null;
1277
- alertType?:
1278
- | "abuse_report_alert"
1279
- | "access_custom_certificate_expiration_type"
1280
- | "advanced_ddos_attack_l4_alert"
1281
- | "advanced_ddos_attack_l7_alert"
1282
- | "advanced_http_alert_error"
1283
- | "bgp_hijack_notification"
1284
- | "billing_usage_alert"
1285
- | "block_notification_block_removed"
1286
- | "block_notification_new_block"
1287
- | "block_notification_review_rejected"
1288
- | "bot_traffic_basic_alert"
1289
- | "brand_protection_alert"
1290
- | "brand_protection_digest"
1291
- | "clickhouse_alert_fw_anomaly"
1292
- | "clickhouse_alert_fw_ent_anomaly"
1293
- | "cloudforce_one_request_notification"
1294
- | "custom_analytics"
1295
- | "custom_bot_detection_alert"
1296
- | "custom_ssl_certificate_event_type"
1297
- | "dedicated_ssl_certificate_event_type"
1298
- | "device_connectivity_anomaly_alert"
1299
- | "dos_attack_l4"
1300
- | "dos_attack_l7"
1301
- | "expiring_service_token_alert"
1302
- | "failing_logpush_job_disabled_alert"
1303
- | "fbm_auto_advertisement"
1304
- | "fbm_dosd_attack"
1305
- | "fbm_volumetric_attack"
1306
- | "health_check_status_notification"
1307
- | "hostname_aop_custom_certificate_expiration_type"
1308
- | "http_alert_edge_error"
1309
- | "http_alert_origin_error"
1310
- | "image_notification"
1311
- | "image_resizing_notification"
1312
- | "incident_alert"
1313
- | "load_balancing_health_alert"
1314
- | "load_balancing_pool_enablement_alert"
1315
- | "logo_match_alert"
1316
- | "magic_tunnel_health_check_event"
1317
- | "magic_wan_tunnel_health"
1318
- | "maintenance_event_notification"
1319
- | "mtls_certificate_store_certificate_expiration_type"
1320
- | "pages_event_alert"
1321
- | "radar_notification"
1322
- | "real_origin_monitoring"
1323
- | "scriptmonitor_alert_new_code_change_detections"
1324
- | "scriptmonitor_alert_new_hosts"
1325
- | "scriptmonitor_alert_new_malicious_hosts"
1326
- | "scriptmonitor_alert_new_malicious_scripts"
1327
- | "scriptmonitor_alert_new_malicious_url"
1328
- | "scriptmonitor_alert_new_max_length_resource_url"
1329
- | "scriptmonitor_alert_new_resources"
1330
- | "secondary_dns_all_primaries_failing"
1331
- | "secondary_dns_primaries_failing"
1332
- | "secondary_dns_warning"
1333
- | "secondary_dns_zone_successfully_updated"
1334
- | "secondary_dns_zone_validation_warning"
1335
- | "security_insights_alert"
1336
- | "sentinel_alert"
1337
- | "stream_live_notifications"
1338
- | "synthetic_test_latency_alert"
1339
- | "synthetic_test_low_availability_alert"
1340
- | "traffic_anomalies_alert"
1341
- | "tunnel_health_event"
1342
- | "tunnel_update_event"
1343
- | "universal_ssl_event_type"
1344
- | "web_analytics_metrics_update"
1345
- | "zone_aop_custom_certificate_expiration_type"
1346
- | null;
1347
- created?: string | null;
1348
- description?: string | null;
1349
- enabled?: boolean | null;
1350
- filters?: {
1351
- actions?: string[] | null;
1352
- affectedAsns?: string[] | null;
1353
- affectedComponents?: string[] | null;
1354
- affectedLocations?: string[] | null;
1355
- airportCode?: string[] | null;
1356
- alertTriggerPreferences?: string[] | null;
1357
- alertTriggerPreferencesValue?: string[] | null;
1358
- enabled?: string[] | null;
1359
- environment?: string[] | null;
1360
- event?: string[] | null;
1361
- eventSource?: string[] | null;
1362
- eventType?: string[] | null;
1363
- groupBy?: string[] | null;
1364
- healthCheckId?: string[] | null;
1365
- incidentImpact?:
1366
- | (
1367
- | "INCIDENT_IMPACT_NONE"
1368
- | "INCIDENT_IMPACT_MINOR"
1369
- | "INCIDENT_IMPACT_MAJOR"
1370
- | "INCIDENT_IMPACT_CRITICAL"
1371
- )[]
1408
+ export interface ListPoliciesResponse {
1409
+ result: {
1410
+ id?: string | null;
1411
+ alertInterval?: string | null;
1412
+ alertType?:
1413
+ | "abuse_report_alert"
1414
+ | "access_custom_certificate_expiration_type"
1415
+ | "advanced_ddos_attack_l4_alert"
1416
+ | "advanced_ddos_attack_l7_alert"
1417
+ | "advanced_http_alert_error"
1418
+ | "bgp_hijack_notification"
1419
+ | "billing_usage_alert"
1420
+ | "block_notification_block_removed"
1421
+ | "block_notification_new_block"
1422
+ | "block_notification_review_rejected"
1423
+ | "bot_traffic_basic_alert"
1424
+ | "brand_protection_alert"
1425
+ | "brand_protection_digest"
1426
+ | "clickhouse_alert_fw_anomaly"
1427
+ | "clickhouse_alert_fw_ent_anomaly"
1428
+ | "cloudforce_one_request_notification"
1429
+ | "custom_analytics"
1430
+ | "custom_bot_detection_alert"
1431
+ | "custom_ssl_certificate_event_type"
1432
+ | "dedicated_ssl_certificate_event_type"
1433
+ | "device_connectivity_anomaly_alert"
1434
+ | "dos_attack_l4"
1435
+ | "dos_attack_l7"
1436
+ | "expiring_service_token_alert"
1437
+ | "failing_logpush_job_disabled_alert"
1438
+ | "fbm_auto_advertisement"
1439
+ | "fbm_dosd_attack"
1440
+ | "fbm_volumetric_attack"
1441
+ | "health_check_status_notification"
1442
+ | "hostname_aop_custom_certificate_expiration_type"
1443
+ | "http_alert_edge_error"
1444
+ | "http_alert_origin_error"
1445
+ | "image_notification"
1446
+ | "image_resizing_notification"
1447
+ | "incident_alert"
1448
+ | "load_balancing_health_alert"
1449
+ | "load_balancing_pool_enablement_alert"
1450
+ | "logo_match_alert"
1451
+ | "magic_tunnel_health_check_event"
1452
+ | "magic_wan_tunnel_health"
1453
+ | "maintenance_event_notification"
1454
+ | "mtls_certificate_store_certificate_expiration_type"
1455
+ | "pages_event_alert"
1456
+ | "radar_notification"
1457
+ | "real_origin_monitoring"
1458
+ | "scriptmonitor_alert_new_code_change_detections"
1459
+ | "scriptmonitor_alert_new_hosts"
1460
+ | "scriptmonitor_alert_new_malicious_hosts"
1461
+ | "scriptmonitor_alert_new_malicious_scripts"
1462
+ | "scriptmonitor_alert_new_malicious_url"
1463
+ | "scriptmonitor_alert_new_max_length_resource_url"
1464
+ | "scriptmonitor_alert_new_resources"
1465
+ | "secondary_dns_all_primaries_failing"
1466
+ | "secondary_dns_primaries_failing"
1467
+ | "secondary_dns_warning"
1468
+ | "secondary_dns_zone_successfully_updated"
1469
+ | "secondary_dns_zone_validation_warning"
1470
+ | "security_insights_alert"
1471
+ | "sentinel_alert"
1472
+ | "stream_live_notifications"
1473
+ | "synthetic_test_latency_alert"
1474
+ | "synthetic_test_low_availability_alert"
1475
+ | "traffic_anomalies_alert"
1476
+ | "tunnel_health_event"
1477
+ | "tunnel_update_event"
1478
+ | "universal_ssl_event_type"
1479
+ | "web_analytics_metrics_update"
1480
+ | "zone_aop_custom_certificate_expiration_type"
1372
1481
  | null;
1373
- inputId?: string[] | null;
1374
- insightClass?: string[] | null;
1375
- limit?: string[] | null;
1376
- logoTag?: string[] | null;
1377
- megabitsPerSecond?: string[] | null;
1378
- newHealth?: string[] | null;
1379
- newStatus?: string[] | null;
1380
- packetsPerSecond?: string[] | null;
1381
- poolId?: string[] | null;
1382
- popNames?: string[] | null;
1383
- product?: string[] | null;
1384
- projectId?: string[] | null;
1385
- protocol?: string[] | null;
1386
- queryTag?: string[] | null;
1387
- requestsPerSecond?: string[] | null;
1388
- selectors?: string[] | null;
1389
- services?: string[] | null;
1390
- slo?: string[] | null;
1391
- status?: string[] | null;
1392
- targetHostname?: string[] | null;
1393
- targetIp?: string[] | null;
1394
- targetZoneName?: string[] | null;
1395
- trafficExclusions?: "security_events"[] | null;
1396
- tunnelId?: string[] | null;
1397
- tunnelName?: string[] | null;
1398
- type?: string[] | null;
1399
- where?: string[] | null;
1400
- zones?: string[] | null;
1401
- } | null;
1402
- mechanisms?: {
1403
- email?: { id?: string | null }[] | null;
1404
- pagerduty?: { id?: string | null }[] | null;
1405
- webhooks?: { id?: string | null }[] | null;
1406
- } | null;
1407
- modified?: string | null;
1408
- name?: string | null;
1409
- }[];
1482
+ created?: string | null;
1483
+ description?: string | null;
1484
+ enabled?: boolean | null;
1485
+ filters?: {
1486
+ actions?: string[] | null;
1487
+ affectedAsns?: string[] | null;
1488
+ affectedComponents?: string[] | null;
1489
+ affectedLocations?: string[] | null;
1490
+ airportCode?: string[] | null;
1491
+ alertTriggerPreferences?: string[] | null;
1492
+ alertTriggerPreferencesValue?: string[] | null;
1493
+ enabled?: string[] | null;
1494
+ environment?: string[] | null;
1495
+ event?: string[] | null;
1496
+ eventSource?: string[] | null;
1497
+ eventType?: string[] | null;
1498
+ groupBy?: string[] | null;
1499
+ healthCheckId?: string[] | null;
1500
+ incidentImpact?:
1501
+ | (
1502
+ | "INCIDENT_IMPACT_NONE"
1503
+ | "INCIDENT_IMPACT_MINOR"
1504
+ | "INCIDENT_IMPACT_MAJOR"
1505
+ | "INCIDENT_IMPACT_CRITICAL"
1506
+ )[]
1507
+ | null;
1508
+ inputId?: string[] | null;
1509
+ insightClass?: string[] | null;
1510
+ limit?: string[] | null;
1511
+ logoTag?: string[] | null;
1512
+ megabitsPerSecond?: string[] | null;
1513
+ newHealth?: string[] | null;
1514
+ newStatus?: string[] | null;
1515
+ packetsPerSecond?: string[] | null;
1516
+ poolId?: string[] | null;
1517
+ popNames?: string[] | null;
1518
+ product?: string[] | null;
1519
+ projectId?: string[] | null;
1520
+ protocol?: string[] | null;
1521
+ queryTag?: string[] | null;
1522
+ requestsPerSecond?: string[] | null;
1523
+ selectors?: string[] | null;
1524
+ services?: string[] | null;
1525
+ slo?: string[] | null;
1526
+ status?: string[] | null;
1527
+ targetHostname?: string[] | null;
1528
+ targetIp?: string[] | null;
1529
+ targetZoneName?: string[] | null;
1530
+ trafficExclusions?: "security_events"[] | null;
1531
+ tunnelId?: string[] | null;
1532
+ tunnelName?: string[] | null;
1533
+ type?: string[] | null;
1534
+ where?: string[] | null;
1535
+ zones?: string[] | null;
1536
+ } | null;
1537
+ mechanisms?: {
1538
+ email?: { id?: string | null }[] | null;
1539
+ pagerduty?: { id?: string | null }[] | null;
1540
+ webhooks?: { id?: string | null }[] | null;
1541
+ } | null;
1542
+ modified?: string | null;
1543
+ name?: string | null;
1544
+ }[];
1545
+ }
1410
1546
 
1411
- export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1412
- Schema.Struct({
1413
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1414
- alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1415
- alertType: Schema.optional(
1416
- Schema.Union([
1417
- Schema.Literals([
1418
- "abuse_report_alert",
1419
- "access_custom_certificate_expiration_type",
1420
- "advanced_ddos_attack_l4_alert",
1421
- "advanced_ddos_attack_l7_alert",
1422
- "advanced_http_alert_error",
1423
- "bgp_hijack_notification",
1424
- "billing_usage_alert",
1425
- "block_notification_block_removed",
1426
- "block_notification_new_block",
1427
- "block_notification_review_rejected",
1428
- "bot_traffic_basic_alert",
1429
- "brand_protection_alert",
1430
- "brand_protection_digest",
1431
- "clickhouse_alert_fw_anomaly",
1432
- "clickhouse_alert_fw_ent_anomaly",
1433
- "cloudforce_one_request_notification",
1434
- "custom_analytics",
1435
- "custom_bot_detection_alert",
1436
- "custom_ssl_certificate_event_type",
1437
- "dedicated_ssl_certificate_event_type",
1438
- "device_connectivity_anomaly_alert",
1439
- "dos_attack_l4",
1440
- "dos_attack_l7",
1441
- "expiring_service_token_alert",
1442
- "failing_logpush_job_disabled_alert",
1443
- "fbm_auto_advertisement",
1444
- "fbm_dosd_attack",
1445
- "fbm_volumetric_attack",
1446
- "health_check_status_notification",
1447
- "hostname_aop_custom_certificate_expiration_type",
1448
- "http_alert_edge_error",
1449
- "http_alert_origin_error",
1450
- "image_notification",
1451
- "image_resizing_notification",
1452
- "incident_alert",
1453
- "load_balancing_health_alert",
1454
- "load_balancing_pool_enablement_alert",
1455
- "logo_match_alert",
1456
- "magic_tunnel_health_check_event",
1457
- "magic_wan_tunnel_health",
1458
- "maintenance_event_notification",
1459
- "mtls_certificate_store_certificate_expiration_type",
1460
- "pages_event_alert",
1461
- "radar_notification",
1462
- "real_origin_monitoring",
1463
- "scriptmonitor_alert_new_code_change_detections",
1464
- "scriptmonitor_alert_new_hosts",
1465
- "scriptmonitor_alert_new_malicious_hosts",
1466
- "scriptmonitor_alert_new_malicious_scripts",
1467
- "scriptmonitor_alert_new_malicious_url",
1468
- "scriptmonitor_alert_new_max_length_resource_url",
1469
- "scriptmonitor_alert_new_resources",
1470
- "secondary_dns_all_primaries_failing",
1471
- "secondary_dns_primaries_failing",
1472
- "secondary_dns_warning",
1473
- "secondary_dns_zone_successfully_updated",
1474
- "secondary_dns_zone_validation_warning",
1475
- "security_insights_alert",
1476
- "sentinel_alert",
1477
- "stream_live_notifications",
1478
- "synthetic_test_latency_alert",
1479
- "synthetic_test_low_availability_alert",
1480
- "traffic_anomalies_alert",
1481
- "tunnel_health_event",
1482
- "tunnel_update_event",
1483
- "universal_ssl_event_type",
1484
- "web_analytics_metrics_update",
1485
- "zone_aop_custom_certificate_expiration_type",
1547
+ export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1548
+ result: Schema.Array(
1549
+ Schema.Struct({
1550
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1551
+ alertInterval: Schema.optional(
1552
+ Schema.Union([Schema.String, Schema.Null]),
1553
+ ),
1554
+ alertType: Schema.optional(
1555
+ Schema.Union([
1556
+ Schema.Literals([
1557
+ "abuse_report_alert",
1558
+ "access_custom_certificate_expiration_type",
1559
+ "advanced_ddos_attack_l4_alert",
1560
+ "advanced_ddos_attack_l7_alert",
1561
+ "advanced_http_alert_error",
1562
+ "bgp_hijack_notification",
1563
+ "billing_usage_alert",
1564
+ "block_notification_block_removed",
1565
+ "block_notification_new_block",
1566
+ "block_notification_review_rejected",
1567
+ "bot_traffic_basic_alert",
1568
+ "brand_protection_alert",
1569
+ "brand_protection_digest",
1570
+ "clickhouse_alert_fw_anomaly",
1571
+ "clickhouse_alert_fw_ent_anomaly",
1572
+ "cloudforce_one_request_notification",
1573
+ "custom_analytics",
1574
+ "custom_bot_detection_alert",
1575
+ "custom_ssl_certificate_event_type",
1576
+ "dedicated_ssl_certificate_event_type",
1577
+ "device_connectivity_anomaly_alert",
1578
+ "dos_attack_l4",
1579
+ "dos_attack_l7",
1580
+ "expiring_service_token_alert",
1581
+ "failing_logpush_job_disabled_alert",
1582
+ "fbm_auto_advertisement",
1583
+ "fbm_dosd_attack",
1584
+ "fbm_volumetric_attack",
1585
+ "health_check_status_notification",
1586
+ "hostname_aop_custom_certificate_expiration_type",
1587
+ "http_alert_edge_error",
1588
+ "http_alert_origin_error",
1589
+ "image_notification",
1590
+ "image_resizing_notification",
1591
+ "incident_alert",
1592
+ "load_balancing_health_alert",
1593
+ "load_balancing_pool_enablement_alert",
1594
+ "logo_match_alert",
1595
+ "magic_tunnel_health_check_event",
1596
+ "magic_wan_tunnel_health",
1597
+ "maintenance_event_notification",
1598
+ "mtls_certificate_store_certificate_expiration_type",
1599
+ "pages_event_alert",
1600
+ "radar_notification",
1601
+ "real_origin_monitoring",
1602
+ "scriptmonitor_alert_new_code_change_detections",
1603
+ "scriptmonitor_alert_new_hosts",
1604
+ "scriptmonitor_alert_new_malicious_hosts",
1605
+ "scriptmonitor_alert_new_malicious_scripts",
1606
+ "scriptmonitor_alert_new_malicious_url",
1607
+ "scriptmonitor_alert_new_max_length_resource_url",
1608
+ "scriptmonitor_alert_new_resources",
1609
+ "secondary_dns_all_primaries_failing",
1610
+ "secondary_dns_primaries_failing",
1611
+ "secondary_dns_warning",
1612
+ "secondary_dns_zone_successfully_updated",
1613
+ "secondary_dns_zone_validation_warning",
1614
+ "security_insights_alert",
1615
+ "sentinel_alert",
1616
+ "stream_live_notifications",
1617
+ "synthetic_test_latency_alert",
1618
+ "synthetic_test_low_availability_alert",
1619
+ "traffic_anomalies_alert",
1620
+ "tunnel_health_event",
1621
+ "tunnel_update_event",
1622
+ "universal_ssl_event_type",
1623
+ "web_analytics_metrics_update",
1624
+ "zone_aop_custom_certificate_expiration_type",
1625
+ ]),
1626
+ Schema.Null,
1486
1627
  ]),
1487
- Schema.Null,
1488
- ]),
1489
- ),
1490
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1491
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1492
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1493
- filters: Schema.optional(
1494
- Schema.Union([
1495
- Schema.Struct({
1496
- actions: Schema.optional(
1497
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1498
- ),
1499
- affectedAsns: Schema.optional(
1500
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1501
- ),
1502
- affectedComponents: Schema.optional(
1503
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1504
- ),
1505
- affectedLocations: Schema.optional(
1506
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1507
- ),
1508
- airportCode: Schema.optional(
1509
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1510
- ),
1511
- alertTriggerPreferences: Schema.optional(
1512
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1513
- ),
1514
- alertTriggerPreferencesValue: Schema.optional(
1515
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1516
- ),
1517
- enabled: Schema.optional(
1518
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1519
- ),
1520
- environment: Schema.optional(
1521
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1522
- ),
1523
- event: Schema.optional(
1524
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1525
- ),
1526
- eventSource: Schema.optional(
1527
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1528
- ),
1529
- eventType: Schema.optional(
1530
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1531
- ),
1532
- groupBy: Schema.optional(
1533
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1534
- ),
1535
- healthCheckId: Schema.optional(
1536
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1537
- ),
1538
- incidentImpact: Schema.optional(
1539
- Schema.Union([
1540
- Schema.Array(
1541
- Schema.Literals([
1542
- "INCIDENT_IMPACT_NONE",
1543
- "INCIDENT_IMPACT_MINOR",
1544
- "INCIDENT_IMPACT_MAJOR",
1545
- "INCIDENT_IMPACT_CRITICAL",
1546
- ]),
1547
- ),
1548
- Schema.Null,
1549
- ]),
1550
- ),
1551
- inputId: Schema.optional(
1552
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1553
- ),
1554
- insightClass: Schema.optional(
1555
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1556
- ),
1557
- limit: Schema.optional(
1558
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1559
- ),
1560
- logoTag: Schema.optional(
1561
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1562
- ),
1563
- megabitsPerSecond: Schema.optional(
1564
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1565
- ),
1566
- newHealth: Schema.optional(
1567
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1568
- ),
1569
- newStatus: Schema.optional(
1570
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1571
- ),
1572
- packetsPerSecond: Schema.optional(
1573
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1574
- ),
1575
- poolId: Schema.optional(
1576
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1577
- ),
1578
- popNames: Schema.optional(
1579
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1580
- ),
1581
- product: Schema.optional(
1582
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1583
- ),
1584
- projectId: Schema.optional(
1585
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1586
- ),
1587
- protocol: Schema.optional(
1588
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1589
- ),
1590
- queryTag: Schema.optional(
1591
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1592
- ),
1593
- requestsPerSecond: Schema.optional(
1594
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1595
- ),
1596
- selectors: Schema.optional(
1597
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1598
- ),
1599
- services: Schema.optional(
1600
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1601
- ),
1602
- slo: Schema.optional(
1603
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1604
- ),
1605
- status: Schema.optional(
1606
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1607
- ),
1608
- targetHostname: Schema.optional(
1609
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1610
- ),
1611
- targetIp: Schema.optional(
1612
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1613
- ),
1614
- targetZoneName: Schema.optional(
1615
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1616
- ),
1617
- trafficExclusions: Schema.optional(
1618
- Schema.Union([
1619
- Schema.Array(Schema.Literal("security_events")),
1620
- Schema.Null,
1621
- ]),
1622
- ),
1623
- tunnelId: Schema.optional(
1624
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1625
- ),
1626
- tunnelName: Schema.optional(
1627
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1628
- ),
1629
- type: Schema.optional(
1630
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1631
- ),
1632
- where: Schema.optional(
1633
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1634
- ),
1635
- zones: Schema.optional(
1636
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1628
+ ),
1629
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1630
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1631
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1632
+ filters: Schema.optional(
1633
+ Schema.Union([
1634
+ Schema.Struct({
1635
+ actions: Schema.optional(
1636
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1637
+ ),
1638
+ affectedAsns: Schema.optional(
1639
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1640
+ ),
1641
+ affectedComponents: Schema.optional(
1642
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1643
+ ),
1644
+ affectedLocations: Schema.optional(
1645
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1646
+ ),
1647
+ airportCode: Schema.optional(
1648
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1649
+ ),
1650
+ alertTriggerPreferences: Schema.optional(
1651
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1652
+ ),
1653
+ alertTriggerPreferencesValue: Schema.optional(
1654
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1655
+ ),
1656
+ enabled: Schema.optional(
1657
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1658
+ ),
1659
+ environment: Schema.optional(
1660
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1661
+ ),
1662
+ event: Schema.optional(
1663
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1664
+ ),
1665
+ eventSource: Schema.optional(
1666
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1667
+ ),
1668
+ eventType: Schema.optional(
1669
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1670
+ ),
1671
+ groupBy: Schema.optional(
1672
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1673
+ ),
1674
+ healthCheckId: Schema.optional(
1675
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1676
+ ),
1677
+ incidentImpact: Schema.optional(
1678
+ Schema.Union([
1679
+ Schema.Array(
1680
+ Schema.Literals([
1681
+ "INCIDENT_IMPACT_NONE",
1682
+ "INCIDENT_IMPACT_MINOR",
1683
+ "INCIDENT_IMPACT_MAJOR",
1684
+ "INCIDENT_IMPACT_CRITICAL",
1685
+ ]),
1686
+ ),
1687
+ Schema.Null,
1688
+ ]),
1689
+ ),
1690
+ inputId: Schema.optional(
1691
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1692
+ ),
1693
+ insightClass: Schema.optional(
1694
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1695
+ ),
1696
+ limit: Schema.optional(
1697
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1698
+ ),
1699
+ logoTag: Schema.optional(
1700
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1701
+ ),
1702
+ megabitsPerSecond: Schema.optional(
1703
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1704
+ ),
1705
+ newHealth: Schema.optional(
1706
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1707
+ ),
1708
+ newStatus: Schema.optional(
1709
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1710
+ ),
1711
+ packetsPerSecond: Schema.optional(
1712
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1713
+ ),
1714
+ poolId: Schema.optional(
1715
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1716
+ ),
1717
+ popNames: Schema.optional(
1718
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1719
+ ),
1720
+ product: Schema.optional(
1721
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1722
+ ),
1723
+ projectId: Schema.optional(
1724
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1725
+ ),
1726
+ protocol: Schema.optional(
1727
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1728
+ ),
1729
+ queryTag: Schema.optional(
1730
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1731
+ ),
1732
+ requestsPerSecond: Schema.optional(
1733
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1734
+ ),
1735
+ selectors: Schema.optional(
1736
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1737
+ ),
1738
+ services: Schema.optional(
1739
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1740
+ ),
1741
+ slo: Schema.optional(
1742
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1743
+ ),
1744
+ status: Schema.optional(
1745
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1746
+ ),
1747
+ targetHostname: Schema.optional(
1748
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1749
+ ),
1750
+ targetIp: Schema.optional(
1751
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1752
+ ),
1753
+ targetZoneName: Schema.optional(
1754
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1755
+ ),
1756
+ trafficExclusions: Schema.optional(
1757
+ Schema.Union([
1758
+ Schema.Array(Schema.Literal("security_events")),
1759
+ Schema.Null,
1760
+ ]),
1761
+ ),
1762
+ tunnelId: Schema.optional(
1763
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1764
+ ),
1765
+ tunnelName: Schema.optional(
1766
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1767
+ ),
1768
+ type: Schema.optional(
1769
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1770
+ ),
1771
+ where: Schema.optional(
1772
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1773
+ ),
1774
+ zones: Schema.optional(
1775
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1776
+ ),
1777
+ }).pipe(
1778
+ Schema.encodeKeys({
1779
+ actions: "actions",
1780
+ affectedAsns: "affected_asns",
1781
+ affectedComponents: "affected_components",
1782
+ affectedLocations: "affected_locations",
1783
+ airportCode: "airport_code",
1784
+ alertTriggerPreferences: "alert_trigger_preferences",
1785
+ alertTriggerPreferencesValue: "alert_trigger_preferences_value",
1786
+ enabled: "enabled",
1787
+ environment: "environment",
1788
+ event: "event",
1789
+ eventSource: "event_source",
1790
+ eventType: "event_type",
1791
+ groupBy: "group_by",
1792
+ healthCheckId: "health_check_id",
1793
+ incidentImpact: "incident_impact",
1794
+ inputId: "input_id",
1795
+ insightClass: "insight_class",
1796
+ limit: "limit",
1797
+ logoTag: "logo_tag",
1798
+ megabitsPerSecond: "megabits_per_second",
1799
+ newHealth: "new_health",
1800
+ newStatus: "new_status",
1801
+ packetsPerSecond: "packets_per_second",
1802
+ poolId: "pool_id",
1803
+ popNames: "pop_names",
1804
+ product: "product",
1805
+ projectId: "project_id",
1806
+ protocol: "protocol",
1807
+ queryTag: "query_tag",
1808
+ requestsPerSecond: "requests_per_second",
1809
+ selectors: "selectors",
1810
+ services: "services",
1811
+ slo: "slo",
1812
+ status: "status",
1813
+ targetHostname: "target_hostname",
1814
+ targetIp: "target_ip",
1815
+ targetZoneName: "target_zone_name",
1816
+ trafficExclusions: "traffic_exclusions",
1817
+ tunnelId: "tunnel_id",
1818
+ tunnelName: "tunnel_name",
1819
+ type: "type",
1820
+ where: "where",
1821
+ zones: "zones",
1822
+ }),
1637
1823
  ),
1638
- }).pipe(
1639
- Schema.encodeKeys({
1640
- actions: "actions",
1641
- affectedAsns: "affected_asns",
1642
- affectedComponents: "affected_components",
1643
- affectedLocations: "affected_locations",
1644
- airportCode: "airport_code",
1645
- alertTriggerPreferences: "alert_trigger_preferences",
1646
- alertTriggerPreferencesValue: "alert_trigger_preferences_value",
1647
- enabled: "enabled",
1648
- environment: "environment",
1649
- event: "event",
1650
- eventSource: "event_source",
1651
- eventType: "event_type",
1652
- groupBy: "group_by",
1653
- healthCheckId: "health_check_id",
1654
- incidentImpact: "incident_impact",
1655
- inputId: "input_id",
1656
- insightClass: "insight_class",
1657
- limit: "limit",
1658
- logoTag: "logo_tag",
1659
- megabitsPerSecond: "megabits_per_second",
1660
- newHealth: "new_health",
1661
- newStatus: "new_status",
1662
- packetsPerSecond: "packets_per_second",
1663
- poolId: "pool_id",
1664
- popNames: "pop_names",
1665
- product: "product",
1666
- projectId: "project_id",
1667
- protocol: "protocol",
1668
- queryTag: "query_tag",
1669
- requestsPerSecond: "requests_per_second",
1670
- selectors: "selectors",
1671
- services: "services",
1672
- slo: "slo",
1673
- status: "status",
1674
- targetHostname: "target_hostname",
1675
- targetIp: "target_ip",
1676
- targetZoneName: "target_zone_name",
1677
- trafficExclusions: "traffic_exclusions",
1678
- tunnelId: "tunnel_id",
1679
- tunnelName: "tunnel_name",
1680
- type: "type",
1681
- where: "where",
1682
- zones: "zones",
1824
+ Schema.Null,
1825
+ ]),
1826
+ ),
1827
+ mechanisms: Schema.optional(
1828
+ Schema.Union([
1829
+ Schema.Struct({
1830
+ email: Schema.optional(
1831
+ Schema.Union([
1832
+ Schema.Array(
1833
+ Schema.Struct({
1834
+ id: Schema.optional(
1835
+ Schema.Union([Schema.String, Schema.Null]),
1836
+ ),
1837
+ }),
1838
+ ),
1839
+ Schema.Null,
1840
+ ]),
1841
+ ),
1842
+ pagerduty: Schema.optional(
1843
+ Schema.Union([
1844
+ Schema.Array(
1845
+ Schema.Struct({
1846
+ id: Schema.optional(
1847
+ Schema.Union([Schema.String, Schema.Null]),
1848
+ ),
1849
+ }),
1850
+ ),
1851
+ Schema.Null,
1852
+ ]),
1853
+ ),
1854
+ webhooks: Schema.optional(
1855
+ Schema.Union([
1856
+ Schema.Array(
1857
+ Schema.Struct({
1858
+ id: Schema.optional(
1859
+ Schema.Union([Schema.String, Schema.Null]),
1860
+ ),
1861
+ }),
1862
+ ),
1863
+ Schema.Null,
1864
+ ]),
1865
+ ),
1683
1866
  }),
1684
- ),
1685
- Schema.Null,
1686
- ]),
1687
- ),
1688
- mechanisms: Schema.optional(
1689
- Schema.Union([
1690
- Schema.Struct({
1691
- email: Schema.optional(
1692
- Schema.Union([
1693
- Schema.Array(
1694
- Schema.Struct({
1695
- id: Schema.optional(
1696
- Schema.Union([Schema.String, Schema.Null]),
1697
- ),
1698
- }),
1699
- ),
1700
- Schema.Null,
1701
- ]),
1702
- ),
1703
- pagerduty: Schema.optional(
1704
- Schema.Union([
1705
- Schema.Array(
1706
- Schema.Struct({
1707
- id: Schema.optional(
1708
- Schema.Union([Schema.String, Schema.Null]),
1709
- ),
1710
- }),
1711
- ),
1712
- Schema.Null,
1713
- ]),
1714
- ),
1715
- webhooks: Schema.optional(
1716
- Schema.Union([
1717
- Schema.Array(
1718
- Schema.Struct({
1719
- id: Schema.optional(
1720
- Schema.Union([Schema.String, Schema.Null]),
1721
- ),
1722
- }),
1723
- ),
1724
- Schema.Null,
1725
- ]),
1726
- ),
1727
- }),
1728
- Schema.Null,
1729
- ]),
1867
+ Schema.Null,
1868
+ ]),
1869
+ ),
1870
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1871
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1872
+ }).pipe(
1873
+ Schema.encodeKeys({
1874
+ id: "id",
1875
+ alertInterval: "alert_interval",
1876
+ alertType: "alert_type",
1877
+ created: "created",
1878
+ description: "description",
1879
+ enabled: "enabled",
1880
+ filters: "filters",
1881
+ mechanisms: "mechanisms",
1882
+ modified: "modified",
1883
+ name: "name",
1884
+ }),
1730
1885
  ),
1731
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1732
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1733
- }).pipe(
1734
- Schema.encodeKeys({
1735
- id: "id",
1736
- alertInterval: "alert_interval",
1737
- alertType: "alert_type",
1738
- created: "created",
1739
- description: "description",
1740
- enabled: "enabled",
1741
- filters: "filters",
1742
- mechanisms: "mechanisms",
1743
- modified: "modified",
1744
- name: "name",
1745
- }),
1746
1886
  ),
1747
- ) as unknown as Schema.Schema<ListPoliciesResponse>;
1887
+ }) as unknown as Schema.Schema<ListPoliciesResponse>;
1748
1888
 
1749
1889
  export type ListPoliciesError = DefaultErrors;
1750
1890
 
1751
- export const listPolicies: API.OperationMethod<
1891
+ export const listPolicies: API.PaginatedOperationMethod<
1752
1892
  ListPoliciesRequest,
1753
1893
  ListPoliciesResponse,
1754
1894
  ListPoliciesError,
1755
1895
  Credentials | HttpClient.HttpClient
1756
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1896
+ > & {
1897
+ pages: (
1898
+ input: ListPoliciesRequest,
1899
+ ) => stream.Stream<
1900
+ ListPoliciesResponse,
1901
+ ListPoliciesError,
1902
+ Credentials | HttpClient.HttpClient
1903
+ >;
1904
+ items: (input: ListPoliciesRequest) => stream.Stream<
1905
+ {
1906
+ id?: string | null;
1907
+ alertInterval?: string | null;
1908
+ alertType?:
1909
+ | "abuse_report_alert"
1910
+ | "access_custom_certificate_expiration_type"
1911
+ | "advanced_ddos_attack_l4_alert"
1912
+ | "advanced_ddos_attack_l7_alert"
1913
+ | "advanced_http_alert_error"
1914
+ | "bgp_hijack_notification"
1915
+ | "billing_usage_alert"
1916
+ | "block_notification_block_removed"
1917
+ | "block_notification_new_block"
1918
+ | "block_notification_review_rejected"
1919
+ | "bot_traffic_basic_alert"
1920
+ | "brand_protection_alert"
1921
+ | "brand_protection_digest"
1922
+ | "clickhouse_alert_fw_anomaly"
1923
+ | "clickhouse_alert_fw_ent_anomaly"
1924
+ | "cloudforce_one_request_notification"
1925
+ | "custom_analytics"
1926
+ | "custom_bot_detection_alert"
1927
+ | "custom_ssl_certificate_event_type"
1928
+ | "dedicated_ssl_certificate_event_type"
1929
+ | "device_connectivity_anomaly_alert"
1930
+ | "dos_attack_l4"
1931
+ | "dos_attack_l7"
1932
+ | "expiring_service_token_alert"
1933
+ | "failing_logpush_job_disabled_alert"
1934
+ | "fbm_auto_advertisement"
1935
+ | "fbm_dosd_attack"
1936
+ | "fbm_volumetric_attack"
1937
+ | "health_check_status_notification"
1938
+ | "hostname_aop_custom_certificate_expiration_type"
1939
+ | "http_alert_edge_error"
1940
+ | "http_alert_origin_error"
1941
+ | "image_notification"
1942
+ | "image_resizing_notification"
1943
+ | "incident_alert"
1944
+ | "load_balancing_health_alert"
1945
+ | "load_balancing_pool_enablement_alert"
1946
+ | "logo_match_alert"
1947
+ | "magic_tunnel_health_check_event"
1948
+ | "magic_wan_tunnel_health"
1949
+ | "maintenance_event_notification"
1950
+ | "mtls_certificate_store_certificate_expiration_type"
1951
+ | "pages_event_alert"
1952
+ | "radar_notification"
1953
+ | "real_origin_monitoring"
1954
+ | "scriptmonitor_alert_new_code_change_detections"
1955
+ | "scriptmonitor_alert_new_hosts"
1956
+ | "scriptmonitor_alert_new_malicious_hosts"
1957
+ | "scriptmonitor_alert_new_malicious_scripts"
1958
+ | "scriptmonitor_alert_new_malicious_url"
1959
+ | "scriptmonitor_alert_new_max_length_resource_url"
1960
+ | "scriptmonitor_alert_new_resources"
1961
+ | "secondary_dns_all_primaries_failing"
1962
+ | "secondary_dns_primaries_failing"
1963
+ | "secondary_dns_warning"
1964
+ | "secondary_dns_zone_successfully_updated"
1965
+ | "secondary_dns_zone_validation_warning"
1966
+ | "security_insights_alert"
1967
+ | "sentinel_alert"
1968
+ | "stream_live_notifications"
1969
+ | "synthetic_test_latency_alert"
1970
+ | "synthetic_test_low_availability_alert"
1971
+ | "traffic_anomalies_alert"
1972
+ | "tunnel_health_event"
1973
+ | "tunnel_update_event"
1974
+ | "universal_ssl_event_type"
1975
+ | "web_analytics_metrics_update"
1976
+ | "zone_aop_custom_certificate_expiration_type"
1977
+ | null;
1978
+ created?: string | null;
1979
+ description?: string | null;
1980
+ enabled?: boolean | null;
1981
+ filters?: {
1982
+ actions?: string[] | null;
1983
+ affectedAsns?: string[] | null;
1984
+ affectedComponents?: string[] | null;
1985
+ affectedLocations?: string[] | null;
1986
+ airportCode?: string[] | null;
1987
+ alertTriggerPreferences?: string[] | null;
1988
+ alertTriggerPreferencesValue?: string[] | null;
1989
+ enabled?: string[] | null;
1990
+ environment?: string[] | null;
1991
+ event?: string[] | null;
1992
+ eventSource?: string[] | null;
1993
+ eventType?: string[] | null;
1994
+ groupBy?: string[] | null;
1995
+ healthCheckId?: string[] | null;
1996
+ incidentImpact?:
1997
+ | (
1998
+ | "INCIDENT_IMPACT_NONE"
1999
+ | "INCIDENT_IMPACT_MINOR"
2000
+ | "INCIDENT_IMPACT_MAJOR"
2001
+ | "INCIDENT_IMPACT_CRITICAL"
2002
+ )[]
2003
+ | null;
2004
+ inputId?: string[] | null;
2005
+ insightClass?: string[] | null;
2006
+ limit?: string[] | null;
2007
+ logoTag?: string[] | null;
2008
+ megabitsPerSecond?: string[] | null;
2009
+ newHealth?: string[] | null;
2010
+ newStatus?: string[] | null;
2011
+ packetsPerSecond?: string[] | null;
2012
+ poolId?: string[] | null;
2013
+ popNames?: string[] | null;
2014
+ product?: string[] | null;
2015
+ projectId?: string[] | null;
2016
+ protocol?: string[] | null;
2017
+ queryTag?: string[] | null;
2018
+ requestsPerSecond?: string[] | null;
2019
+ selectors?: string[] | null;
2020
+ services?: string[] | null;
2021
+ slo?: string[] | null;
2022
+ status?: string[] | null;
2023
+ targetHostname?: string[] | null;
2024
+ targetIp?: string[] | null;
2025
+ targetZoneName?: string[] | null;
2026
+ trafficExclusions?: "security_events"[] | null;
2027
+ tunnelId?: string[] | null;
2028
+ tunnelName?: string[] | null;
2029
+ type?: string[] | null;
2030
+ where?: string[] | null;
2031
+ zones?: string[] | null;
2032
+ } | null;
2033
+ mechanisms?: {
2034
+ email?: { id?: string | null }[] | null;
2035
+ pagerduty?: { id?: string | null }[] | null;
2036
+ webhooks?: { id?: string | null }[] | null;
2037
+ } | null;
2038
+ modified?: string | null;
2039
+ name?: string | null;
2040
+ },
2041
+ ListPoliciesError,
2042
+ Credentials | HttpClient.HttpClient
2043
+ >;
2044
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1757
2045
  input: ListPoliciesRequest,
1758
2046
  output: ListPoliciesResponse,
1759
2047
  errors: [],
2048
+ pagination: {
2049
+ mode: "single",
2050
+ items: "result",
2051
+ } as const,
1760
2052
  }));
1761
2053
 
1762
2054
  export interface CreatePolicyRequest {
@@ -2127,7 +2419,9 @@ export interface CreatePolicyResponse {
2127
2419
 
2128
2420
  export const CreatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2129
2421
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2130
- }) as unknown as Schema.Schema<CreatePolicyResponse>;
2422
+ }).pipe(
2423
+ T.ResponsePath("result"),
2424
+ ) as unknown as Schema.Schema<CreatePolicyResponse>;
2131
2425
 
2132
2426
  export type CreatePolicyError =
2133
2427
  | DefaultErrors
@@ -2520,7 +2814,9 @@ export interface UpdatePolicyResponse {
2520
2814
 
2521
2815
  export const UpdatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2522
2816
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2523
- }) as unknown as Schema.Schema<UpdatePolicyResponse>;
2817
+ }).pipe(
2818
+ T.ResponsePath("result"),
2819
+ ) as unknown as Schema.Schema<UpdatePolicyResponse>;
2524
2820
 
2525
2821
  export type UpdatePolicyError =
2526
2822
  | DefaultErrors
@@ -2675,16 +2971,20 @@ export const GetSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2675
2971
  policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2676
2972
  startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2677
2973
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2678
- }).pipe(
2679
- Schema.encodeKeys({
2680
- id: "id",
2681
- createdAt: "created_at",
2682
- endTime: "end_time",
2683
- policyId: "policy_id",
2684
- startTime: "start_time",
2685
- updatedAt: "updated_at",
2686
- }),
2687
- ) as unknown as Schema.Schema<GetSilenceResponse>;
2974
+ })
2975
+ .pipe(
2976
+ Schema.encodeKeys({
2977
+ id: "id",
2978
+ createdAt: "created_at",
2979
+ endTime: "end_time",
2980
+ policyId: "policy_id",
2981
+ startTime: "start_time",
2982
+ updatedAt: "updated_at",
2983
+ }),
2984
+ )
2985
+ .pipe(
2986
+ T.ResponsePath("result"),
2987
+ ) as unknown as Schema.Schema<GetSilenceResponse>;
2688
2988
 
2689
2989
  export type GetSilenceError =
2690
2990
  | DefaultErrors
@@ -2716,46 +3016,74 @@ export const ListSilencesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2716
3016
  }),
2717
3017
  ) as unknown as Schema.Schema<ListSilencesRequest>;
2718
3018
 
2719
- export type ListSilencesResponse = {
2720
- id?: string | null;
2721
- createdAt?: string | null;
2722
- endTime?: string | null;
2723
- policyId?: string | null;
2724
- startTime?: string | null;
2725
- updatedAt?: string | null;
2726
- }[];
3019
+ export interface ListSilencesResponse {
3020
+ result: {
3021
+ id?: string | null;
3022
+ createdAt?: string | null;
3023
+ endTime?: string | null;
3024
+ policyId?: string | null;
3025
+ startTime?: string | null;
3026
+ updatedAt?: string | null;
3027
+ }[];
3028
+ }
2727
3029
 
2728
- export const ListSilencesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2729
- Schema.Struct({
2730
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2731
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2732
- endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2733
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2734
- startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2735
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2736
- }).pipe(
2737
- Schema.encodeKeys({
2738
- id: "id",
2739
- createdAt: "created_at",
2740
- endTime: "end_time",
2741
- policyId: "policy_id",
2742
- startTime: "start_time",
2743
- updatedAt: "updated_at",
2744
- }),
3030
+ export const ListSilencesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3031
+ result: Schema.Array(
3032
+ Schema.Struct({
3033
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3034
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3035
+ endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3036
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3037
+ startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3038
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3039
+ }).pipe(
3040
+ Schema.encodeKeys({
3041
+ id: "id",
3042
+ createdAt: "created_at",
3043
+ endTime: "end_time",
3044
+ policyId: "policy_id",
3045
+ startTime: "start_time",
3046
+ updatedAt: "updated_at",
3047
+ }),
3048
+ ),
2745
3049
  ),
2746
- ) as unknown as Schema.Schema<ListSilencesResponse>;
3050
+ }) as unknown as Schema.Schema<ListSilencesResponse>;
2747
3051
 
2748
3052
  export type ListSilencesError = DefaultErrors;
2749
3053
 
2750
- export const listSilences: API.OperationMethod<
3054
+ export const listSilences: API.PaginatedOperationMethod<
2751
3055
  ListSilencesRequest,
2752
3056
  ListSilencesResponse,
2753
3057
  ListSilencesError,
2754
3058
  Credentials | HttpClient.HttpClient
2755
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3059
+ > & {
3060
+ pages: (
3061
+ input: ListSilencesRequest,
3062
+ ) => stream.Stream<
3063
+ ListSilencesResponse,
3064
+ ListSilencesError,
3065
+ Credentials | HttpClient.HttpClient
3066
+ >;
3067
+ items: (input: ListSilencesRequest) => stream.Stream<
3068
+ {
3069
+ id?: string | null;
3070
+ createdAt?: string | null;
3071
+ endTime?: string | null;
3072
+ policyId?: string | null;
3073
+ startTime?: string | null;
3074
+ updatedAt?: string | null;
3075
+ },
3076
+ ListSilencesError,
3077
+ Credentials | HttpClient.HttpClient
3078
+ >;
3079
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2756
3080
  input: ListSilencesRequest,
2757
3081
  output: ListSilencesResponse,
2758
3082
  errors: [],
3083
+ pagination: {
3084
+ mode: "single",
3085
+ items: "result",
3086
+ } as const,
2759
3087
  }));
2760
3088
 
2761
3089
  export interface CreateSilenceRequest {
@@ -2852,46 +3180,74 @@ export const UpdateSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2852
3180
  }),
2853
3181
  ) as unknown as Schema.Schema<UpdateSilenceRequest>;
2854
3182
 
2855
- export type UpdateSilenceResponse = {
2856
- id?: string | null;
2857
- createdAt?: string | null;
2858
- endTime?: string | null;
2859
- policyId?: string | null;
2860
- startTime?: string | null;
2861
- updatedAt?: string | null;
2862
- }[];
3183
+ export interface UpdateSilenceResponse {
3184
+ result: {
3185
+ id?: string | null;
3186
+ createdAt?: string | null;
3187
+ endTime?: string | null;
3188
+ policyId?: string | null;
3189
+ startTime?: string | null;
3190
+ updatedAt?: string | null;
3191
+ }[];
3192
+ }
2863
3193
 
2864
- export const UpdateSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2865
- Schema.Struct({
2866
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2867
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2868
- endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2869
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2870
- startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2871
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2872
- }).pipe(
2873
- Schema.encodeKeys({
2874
- id: "id",
2875
- createdAt: "created_at",
2876
- endTime: "end_time",
2877
- policyId: "policy_id",
2878
- startTime: "start_time",
2879
- updatedAt: "updated_at",
2880
- }),
3194
+ export const UpdateSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3195
+ result: Schema.Array(
3196
+ Schema.Struct({
3197
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3198
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3199
+ endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3200
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3201
+ startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3202
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3203
+ }).pipe(
3204
+ Schema.encodeKeys({
3205
+ id: "id",
3206
+ createdAt: "created_at",
3207
+ endTime: "end_time",
3208
+ policyId: "policy_id",
3209
+ startTime: "start_time",
3210
+ updatedAt: "updated_at",
3211
+ }),
3212
+ ),
2881
3213
  ),
2882
- ) as unknown as Schema.Schema<UpdateSilenceResponse>;
3214
+ }) as unknown as Schema.Schema<UpdateSilenceResponse>;
2883
3215
 
2884
3216
  export type UpdateSilenceError = DefaultErrors;
2885
3217
 
2886
- export const updateSilence: API.OperationMethod<
3218
+ export const updateSilence: API.PaginatedOperationMethod<
2887
3219
  UpdateSilenceRequest,
2888
3220
  UpdateSilenceResponse,
2889
3221
  UpdateSilenceError,
2890
3222
  Credentials | HttpClient.HttpClient
2891
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3223
+ > & {
3224
+ pages: (
3225
+ input: UpdateSilenceRequest,
3226
+ ) => stream.Stream<
3227
+ UpdateSilenceResponse,
3228
+ UpdateSilenceError,
3229
+ Credentials | HttpClient.HttpClient
3230
+ >;
3231
+ items: (input: UpdateSilenceRequest) => stream.Stream<
3232
+ {
3233
+ id?: string | null;
3234
+ createdAt?: string | null;
3235
+ endTime?: string | null;
3236
+ policyId?: string | null;
3237
+ startTime?: string | null;
3238
+ updatedAt?: string | null;
3239
+ },
3240
+ UpdateSilenceError,
3241
+ Credentials | HttpClient.HttpClient
3242
+ >;
3243
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2892
3244
  input: UpdateSilenceRequest,
2893
3245
  output: UpdateSilenceResponse,
2894
3246
  errors: [],
3247
+ pagination: {
3248
+ mode: "single",
3249
+ items: "result",
3250
+ } as const,
2895
3251
  }));
2896
3252
 
2897
3253
  export interface DeleteSilenceRequest {