@distilled.cloud/cloudflare 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service alerting
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -54,7 +55,7 @@ export const ListAvailableAlertsRequest =
54
55
  path: "/accounts/{account_id}/alerting/v3/available_alerts",
55
56
  }));
56
57
  export const ListAvailableAlertsResponse =
57
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
58
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
58
59
  export const listAvailableAlerts = API.make(() => ({
59
60
  input: ListAvailableAlertsRequest,
60
61
  output: ListAvailableAlertsResponse,
@@ -68,7 +69,7 @@ export const GetDestinationEligibleRequest =
68
69
  path: "/accounts/{account_id}/alerting/v3/destinations/eligible",
69
70
  }));
70
71
  export const GetDestinationEligibleResponse =
71
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
72
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
72
73
  export const getDestinationEligible = API.make(() => ({
73
74
  input: GetDestinationEligibleRequest,
74
75
  output: GetDestinationEligibleResponse,
@@ -82,14 +83,20 @@ export const GetDestinationPagerdutyRequest =
82
83
  path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty",
83
84
  }));
84
85
  export const GetDestinationPagerdutyResponse =
85
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
86
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
87
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
88
- }));
89
- export const getDestinationPagerduty = API.make(() => ({
86
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
87
+ result: Schema.Array(Schema.Struct({
88
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
89
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
90
+ })),
91
+ });
92
+ export const getDestinationPagerduty = API.makePaginated(() => ({
90
93
  input: GetDestinationPagerdutyRequest,
91
94
  output: GetDestinationPagerdutyResponse,
92
95
  errors: [],
96
+ pagination: {
97
+ mode: "single",
98
+ items: "result",
99
+ },
93
100
  }));
94
101
  export const CreateDestinationPagerdutyRequest =
95
102
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -101,7 +108,7 @@ export const CreateDestinationPagerdutyRequest =
101
108
  export const CreateDestinationPagerdutyResponse =
102
109
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
103
110
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
104
- });
111
+ }).pipe(T.ResponsePath("result"));
105
112
  export const createDestinationPagerduty = API.make(() => ({
106
113
  input: CreateDestinationPagerdutyRequest,
107
114
  output: CreateDestinationPagerdutyResponse,
@@ -142,7 +149,7 @@ export const LinkDestinationPagerdutyRequest =
142
149
  export const LinkDestinationPagerdutyResponse =
143
150
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
144
151
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
145
- });
152
+ }).pipe(T.ResponsePath("result"));
146
153
  export const linkDestinationPagerduty = API.make(() => ({
147
154
  input: LinkDestinationPagerdutyRequest,
148
155
  output: LinkDestinationPagerdutyResponse,
@@ -177,7 +184,8 @@ export const GetDestinationWebhookResponse =
177
184
  Schema.Null,
178
185
  ])),
179
186
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
180
- }).pipe(Schema.encodeKeys({
187
+ })
188
+ .pipe(Schema.encodeKeys({
181
189
  id: "id",
182
190
  createdAt: "created_at",
183
191
  lastFailure: "last_failure",
@@ -185,7 +193,8 @@ export const GetDestinationWebhookResponse =
185
193
  name: "name",
186
194
  type: "type",
187
195
  url: "url",
188
- }));
196
+ }))
197
+ .pipe(T.ResponsePath("result"));
189
198
  export const getDestinationWebhook = API.make(() => ({
190
199
  input: GetDestinationWebhookRequest,
191
200
  output: GetDestinationWebhookResponse,
@@ -199,39 +208,45 @@ export const ListDestinationWebhooksRequest =
199
208
  path: "/accounts/{account_id}/alerting/v3/destinations/webhooks",
200
209
  }));
201
210
  export const ListDestinationWebhooksResponse =
202
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
203
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
204
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
205
- lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
206
- lastSuccess: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
207
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
208
- type: Schema.optional(Schema.Union([
209
- Schema.Literals([
210
- "datadog",
211
- "discord",
212
- "feishu",
213
- "gchat",
214
- "generic",
215
- "opsgenie",
216
- "slack",
217
- "splunk",
218
- ]),
219
- Schema.Null,
220
- ])),
221
- url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
222
- }).pipe(Schema.encodeKeys({
223
- id: "id",
224
- createdAt: "created_at",
225
- lastFailure: "last_failure",
226
- lastSuccess: "last_success",
227
- name: "name",
228
- type: "type",
229
- url: "url",
230
- })));
231
- export const listDestinationWebhooks = API.make(() => ({
211
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
212
+ result: Schema.Array(Schema.Struct({
213
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
214
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
215
+ lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
216
+ lastSuccess: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
217
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
218
+ type: Schema.optional(Schema.Union([
219
+ Schema.Literals([
220
+ "datadog",
221
+ "discord",
222
+ "feishu",
223
+ "gchat",
224
+ "generic",
225
+ "opsgenie",
226
+ "slack",
227
+ "splunk",
228
+ ]),
229
+ Schema.Null,
230
+ ])),
231
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
232
+ }).pipe(Schema.encodeKeys({
233
+ id: "id",
234
+ createdAt: "created_at",
235
+ lastFailure: "last_failure",
236
+ lastSuccess: "last_success",
237
+ name: "name",
238
+ type: "type",
239
+ url: "url",
240
+ }))),
241
+ });
242
+ export const listDestinationWebhooks = API.makePaginated(() => ({
232
243
  input: ListDestinationWebhooksRequest,
233
244
  output: ListDestinationWebhooksResponse,
234
245
  errors: [],
246
+ pagination: {
247
+ mode: "single",
248
+ items: "result",
249
+ },
235
250
  }));
236
251
  export const CreateDestinationWebhookRequest =
237
252
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -246,7 +261,7 @@ export const CreateDestinationWebhookRequest =
246
261
  export const CreateDestinationWebhookResponse =
247
262
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
248
263
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
249
- });
264
+ }).pipe(T.ResponsePath("result"));
250
265
  export const createDestinationWebhook = API.make(() => ({
251
266
  input: CreateDestinationWebhookRequest,
252
267
  output: CreateDestinationWebhookResponse,
@@ -266,7 +281,7 @@ export const UpdateDestinationWebhookRequest =
266
281
  export const UpdateDestinationWebhookResponse =
267
282
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
268
283
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
269
- });
284
+ }).pipe(T.ResponsePath("result"));
270
285
  export const updateDestinationWebhook = API.make(() => ({
271
286
  input: UpdateDestinationWebhookRequest,
272
287
  output: UpdateDestinationWebhookResponse,
@@ -302,34 +317,54 @@ export const ListHistoriesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
302
317
  before: Schema.optional(Schema.String).pipe(T.HttpQuery("before")),
303
318
  since: Schema.optional(Schema.String).pipe(T.HttpQuery("since")),
304
319
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/alerting/v3/history" }));
305
- export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
306
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
307
- alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
308
- alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
309
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
310
- mechanism: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
311
- mechanismType: Schema.optional(Schema.Union([
312
- Schema.Literals(["email", "pagerduty", "webhook"]),
313
- Schema.Null,
314
- ])),
315
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
316
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
317
- sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
318
- }).pipe(Schema.encodeKeys({
319
- id: "id",
320
- alertBody: "alert_body",
321
- alertType: "alert_type",
322
- description: "description",
323
- mechanism: "mechanism",
324
- mechanismType: "mechanism_type",
325
- name: "name",
326
- policyId: "policy_id",
327
- sent: "sent",
328
- })));
329
- export const listHistories = API.make(() => ({
320
+ export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
321
+ result: Schema.Array(Schema.Struct({
322
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ alertBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
324
+ alertType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
325
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
326
+ mechanism: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
327
+ mechanismType: Schema.optional(Schema.Union([
328
+ Schema.Literals(["email", "pagerduty", "webhook"]),
329
+ Schema.Null,
330
+ ])),
331
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
332
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
333
+ sent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
334
+ }).pipe(Schema.encodeKeys({
335
+ id: "id",
336
+ alertBody: "alert_body",
337
+ alertType: "alert_type",
338
+ description: "description",
339
+ mechanism: "mechanism",
340
+ mechanismType: "mechanism_type",
341
+ name: "name",
342
+ policyId: "policy_id",
343
+ sent: "sent",
344
+ }))),
345
+ resultInfo: Schema.Struct({
346
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
347
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
348
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
349
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
350
+ }).pipe(Schema.encodeKeys({
351
+ count: "count",
352
+ page: "page",
353
+ perPage: "per_page",
354
+ totalCount: "total_count",
355
+ })),
356
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
357
+ export const listHistories = API.makePaginated(() => ({
330
358
  input: ListHistoriesRequest,
331
359
  output: ListHistoriesResponse,
332
360
  errors: [],
361
+ pagination: {
362
+ mode: "page",
363
+ inputToken: "page",
364
+ outputToken: "resultInfo.page",
365
+ items: "result",
366
+ pageSize: "perPage",
367
+ },
333
368
  }));
334
369
  export const GetPolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
335
370
  policyId: Schema.String.pipe(T.HttpPath("policyId")),
@@ -545,7 +580,8 @@ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
545
580
  ])),
546
581
  modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
547
582
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
548
- }).pipe(Schema.encodeKeys({
583
+ })
584
+ .pipe(Schema.encodeKeys({
549
585
  id: "id",
550
586
  alertInterval: "alert_interval",
551
587
  alertType: "alert_type",
@@ -556,7 +592,8 @@ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
556
592
  mechanisms: "mechanisms",
557
593
  modified: "modified",
558
594
  name: "name",
559
- }));
595
+ }))
596
+ .pipe(T.ResponsePath("result"));
560
597
  export const getPolicy = API.make(() => ({
561
598
  input: GetPolicyRequest,
562
599
  output: GetPolicyResponse,
@@ -568,229 +605,235 @@ export const ListPoliciesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
568
605
  method: "GET",
569
606
  path: "/accounts/{account_id}/alerting/v3/policies",
570
607
  }));
571
- export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
572
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
573
- alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
574
- alertType: Schema.optional(Schema.Union([
575
- Schema.Literals([
576
- "abuse_report_alert",
577
- "access_custom_certificate_expiration_type",
578
- "advanced_ddos_attack_l4_alert",
579
- "advanced_ddos_attack_l7_alert",
580
- "advanced_http_alert_error",
581
- "bgp_hijack_notification",
582
- "billing_usage_alert",
583
- "block_notification_block_removed",
584
- "block_notification_new_block",
585
- "block_notification_review_rejected",
586
- "bot_traffic_basic_alert",
587
- "brand_protection_alert",
588
- "brand_protection_digest",
589
- "clickhouse_alert_fw_anomaly",
590
- "clickhouse_alert_fw_ent_anomaly",
591
- "cloudforce_one_request_notification",
592
- "custom_analytics",
593
- "custom_bot_detection_alert",
594
- "custom_ssl_certificate_event_type",
595
- "dedicated_ssl_certificate_event_type",
596
- "device_connectivity_anomaly_alert",
597
- "dos_attack_l4",
598
- "dos_attack_l7",
599
- "expiring_service_token_alert",
600
- "failing_logpush_job_disabled_alert",
601
- "fbm_auto_advertisement",
602
- "fbm_dosd_attack",
603
- "fbm_volumetric_attack",
604
- "health_check_status_notification",
605
- "hostname_aop_custom_certificate_expiration_type",
606
- "http_alert_edge_error",
607
- "http_alert_origin_error",
608
- "image_notification",
609
- "image_resizing_notification",
610
- "incident_alert",
611
- "load_balancing_health_alert",
612
- "load_balancing_pool_enablement_alert",
613
- "logo_match_alert",
614
- "magic_tunnel_health_check_event",
615
- "magic_wan_tunnel_health",
616
- "maintenance_event_notification",
617
- "mtls_certificate_store_certificate_expiration_type",
618
- "pages_event_alert",
619
- "radar_notification",
620
- "real_origin_monitoring",
621
- "scriptmonitor_alert_new_code_change_detections",
622
- "scriptmonitor_alert_new_hosts",
623
- "scriptmonitor_alert_new_malicious_hosts",
624
- "scriptmonitor_alert_new_malicious_scripts",
625
- "scriptmonitor_alert_new_malicious_url",
626
- "scriptmonitor_alert_new_max_length_resource_url",
627
- "scriptmonitor_alert_new_resources",
628
- "secondary_dns_all_primaries_failing",
629
- "secondary_dns_primaries_failing",
630
- "secondary_dns_warning",
631
- "secondary_dns_zone_successfully_updated",
632
- "secondary_dns_zone_validation_warning",
633
- "security_insights_alert",
634
- "sentinel_alert",
635
- "stream_live_notifications",
636
- "synthetic_test_latency_alert",
637
- "synthetic_test_low_availability_alert",
638
- "traffic_anomalies_alert",
639
- "tunnel_health_event",
640
- "tunnel_update_event",
641
- "universal_ssl_event_type",
642
- "web_analytics_metrics_update",
643
- "zone_aop_custom_certificate_expiration_type",
644
- ]),
645
- Schema.Null,
646
- ])),
647
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
649
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
650
- filters: Schema.optional(Schema.Union([
651
- Schema.Struct({
652
- actions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
653
- affectedAsns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
654
- affectedComponents: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
655
- affectedLocations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
656
- airportCode: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
657
- alertTriggerPreferences: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
658
- alertTriggerPreferencesValue: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
659
- enabled: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
660
- environment: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
661
- event: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
662
- eventSource: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
663
- eventType: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
664
- groupBy: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
665
- healthCheckId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
666
- incidentImpact: Schema.optional(Schema.Union([
667
- Schema.Array(Schema.Literals([
668
- "INCIDENT_IMPACT_NONE",
669
- "INCIDENT_IMPACT_MINOR",
670
- "INCIDENT_IMPACT_MAJOR",
671
- "INCIDENT_IMPACT_CRITICAL",
608
+ export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
609
+ result: Schema.Array(Schema.Struct({
610
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
611
+ alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
612
+ alertType: Schema.optional(Schema.Union([
613
+ Schema.Literals([
614
+ "abuse_report_alert",
615
+ "access_custom_certificate_expiration_type",
616
+ "advanced_ddos_attack_l4_alert",
617
+ "advanced_ddos_attack_l7_alert",
618
+ "advanced_http_alert_error",
619
+ "bgp_hijack_notification",
620
+ "billing_usage_alert",
621
+ "block_notification_block_removed",
622
+ "block_notification_new_block",
623
+ "block_notification_review_rejected",
624
+ "bot_traffic_basic_alert",
625
+ "brand_protection_alert",
626
+ "brand_protection_digest",
627
+ "clickhouse_alert_fw_anomaly",
628
+ "clickhouse_alert_fw_ent_anomaly",
629
+ "cloudforce_one_request_notification",
630
+ "custom_analytics",
631
+ "custom_bot_detection_alert",
632
+ "custom_ssl_certificate_event_type",
633
+ "dedicated_ssl_certificate_event_type",
634
+ "device_connectivity_anomaly_alert",
635
+ "dos_attack_l4",
636
+ "dos_attack_l7",
637
+ "expiring_service_token_alert",
638
+ "failing_logpush_job_disabled_alert",
639
+ "fbm_auto_advertisement",
640
+ "fbm_dosd_attack",
641
+ "fbm_volumetric_attack",
642
+ "health_check_status_notification",
643
+ "hostname_aop_custom_certificate_expiration_type",
644
+ "http_alert_edge_error",
645
+ "http_alert_origin_error",
646
+ "image_notification",
647
+ "image_resizing_notification",
648
+ "incident_alert",
649
+ "load_balancing_health_alert",
650
+ "load_balancing_pool_enablement_alert",
651
+ "logo_match_alert",
652
+ "magic_tunnel_health_check_event",
653
+ "magic_wan_tunnel_health",
654
+ "maintenance_event_notification",
655
+ "mtls_certificate_store_certificate_expiration_type",
656
+ "pages_event_alert",
657
+ "radar_notification",
658
+ "real_origin_monitoring",
659
+ "scriptmonitor_alert_new_code_change_detections",
660
+ "scriptmonitor_alert_new_hosts",
661
+ "scriptmonitor_alert_new_malicious_hosts",
662
+ "scriptmonitor_alert_new_malicious_scripts",
663
+ "scriptmonitor_alert_new_malicious_url",
664
+ "scriptmonitor_alert_new_max_length_resource_url",
665
+ "scriptmonitor_alert_new_resources",
666
+ "secondary_dns_all_primaries_failing",
667
+ "secondary_dns_primaries_failing",
668
+ "secondary_dns_warning",
669
+ "secondary_dns_zone_successfully_updated",
670
+ "secondary_dns_zone_validation_warning",
671
+ "security_insights_alert",
672
+ "sentinel_alert",
673
+ "stream_live_notifications",
674
+ "synthetic_test_latency_alert",
675
+ "synthetic_test_low_availability_alert",
676
+ "traffic_anomalies_alert",
677
+ "tunnel_health_event",
678
+ "tunnel_update_event",
679
+ "universal_ssl_event_type",
680
+ "web_analytics_metrics_update",
681
+ "zone_aop_custom_certificate_expiration_type",
682
+ ]),
683
+ Schema.Null,
684
+ ])),
685
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
686
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
687
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
688
+ filters: Schema.optional(Schema.Union([
689
+ Schema.Struct({
690
+ actions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
691
+ affectedAsns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
692
+ affectedComponents: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
693
+ affectedLocations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
694
+ airportCode: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
695
+ alertTriggerPreferences: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
696
+ alertTriggerPreferencesValue: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
697
+ enabled: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
698
+ environment: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
699
+ event: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
700
+ eventSource: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
701
+ eventType: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
702
+ groupBy: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
703
+ healthCheckId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
704
+ incidentImpact: Schema.optional(Schema.Union([
705
+ Schema.Array(Schema.Literals([
706
+ "INCIDENT_IMPACT_NONE",
707
+ "INCIDENT_IMPACT_MINOR",
708
+ "INCIDENT_IMPACT_MAJOR",
709
+ "INCIDENT_IMPACT_CRITICAL",
710
+ ])),
711
+ Schema.Null,
672
712
  ])),
673
- Schema.Null,
674
- ])),
675
- inputId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
676
- insightClass: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
677
- limit: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
678
- logoTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
679
- megabitsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
680
- newHealth: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
681
- newStatus: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
682
- packetsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
683
- poolId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
684
- popNames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
685
- product: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
686
- projectId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
687
- protocol: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
688
- queryTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
689
- requestsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
690
- selectors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
691
- services: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
692
- slo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
693
- status: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
694
- targetHostname: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
695
- targetIp: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
696
- targetZoneName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
697
- trafficExclusions: Schema.optional(Schema.Union([
698
- Schema.Array(Schema.Literal("security_events")),
699
- Schema.Null,
700
- ])),
701
- tunnelId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
702
- tunnelName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
703
- type: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
704
- where: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
705
- zones: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
706
- }).pipe(Schema.encodeKeys({
707
- actions: "actions",
708
- affectedAsns: "affected_asns",
709
- affectedComponents: "affected_components",
710
- affectedLocations: "affected_locations",
711
- airportCode: "airport_code",
712
- alertTriggerPreferences: "alert_trigger_preferences",
713
- alertTriggerPreferencesValue: "alert_trigger_preferences_value",
714
- enabled: "enabled",
715
- environment: "environment",
716
- event: "event",
717
- eventSource: "event_source",
718
- eventType: "event_type",
719
- groupBy: "group_by",
720
- healthCheckId: "health_check_id",
721
- incidentImpact: "incident_impact",
722
- inputId: "input_id",
723
- insightClass: "insight_class",
724
- limit: "limit",
725
- logoTag: "logo_tag",
726
- megabitsPerSecond: "megabits_per_second",
727
- newHealth: "new_health",
728
- newStatus: "new_status",
729
- packetsPerSecond: "packets_per_second",
730
- poolId: "pool_id",
731
- popNames: "pop_names",
732
- product: "product",
733
- projectId: "project_id",
734
- protocol: "protocol",
735
- queryTag: "query_tag",
736
- requestsPerSecond: "requests_per_second",
737
- selectors: "selectors",
738
- services: "services",
739
- slo: "slo",
740
- status: "status",
741
- targetHostname: "target_hostname",
742
- targetIp: "target_ip",
743
- targetZoneName: "target_zone_name",
744
- trafficExclusions: "traffic_exclusions",
745
- tunnelId: "tunnel_id",
746
- tunnelName: "tunnel_name",
747
- type: "type",
748
- where: "where",
749
- zones: "zones",
750
- })),
751
- Schema.Null,
752
- ])),
753
- mechanisms: Schema.optional(Schema.Union([
754
- Schema.Struct({
755
- email: Schema.optional(Schema.Union([
756
- Schema.Array(Schema.Struct({
757
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
758
- })),
759
- Schema.Null,
760
- ])),
761
- pagerduty: Schema.optional(Schema.Union([
762
- Schema.Array(Schema.Struct({
763
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
764
- })),
765
- Schema.Null,
766
- ])),
767
- webhooks: Schema.optional(Schema.Union([
768
- Schema.Array(Schema.Struct({
769
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
770
- })),
771
- Schema.Null,
772
- ])),
773
- }),
774
- Schema.Null,
775
- ])),
776
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
777
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
778
- }).pipe(Schema.encodeKeys({
779
- id: "id",
780
- alertInterval: "alert_interval",
781
- alertType: "alert_type",
782
- created: "created",
783
- description: "description",
784
- enabled: "enabled",
785
- filters: "filters",
786
- mechanisms: "mechanisms",
787
- modified: "modified",
788
- name: "name",
789
- })));
790
- export const listPolicies = API.make(() => ({
713
+ inputId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
714
+ insightClass: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
715
+ limit: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
716
+ logoTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
717
+ megabitsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
718
+ newHealth: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
719
+ newStatus: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
720
+ packetsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
721
+ poolId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
722
+ popNames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
723
+ product: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
724
+ projectId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
725
+ protocol: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
726
+ queryTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
727
+ requestsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
728
+ selectors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
729
+ services: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
730
+ slo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
731
+ status: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
732
+ targetHostname: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
733
+ targetIp: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
734
+ targetZoneName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
735
+ trafficExclusions: Schema.optional(Schema.Union([
736
+ Schema.Array(Schema.Literal("security_events")),
737
+ Schema.Null,
738
+ ])),
739
+ tunnelId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
740
+ tunnelName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
741
+ type: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
742
+ where: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
743
+ zones: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
744
+ }).pipe(Schema.encodeKeys({
745
+ actions: "actions",
746
+ affectedAsns: "affected_asns",
747
+ affectedComponents: "affected_components",
748
+ affectedLocations: "affected_locations",
749
+ airportCode: "airport_code",
750
+ alertTriggerPreferences: "alert_trigger_preferences",
751
+ alertTriggerPreferencesValue: "alert_trigger_preferences_value",
752
+ enabled: "enabled",
753
+ environment: "environment",
754
+ event: "event",
755
+ eventSource: "event_source",
756
+ eventType: "event_type",
757
+ groupBy: "group_by",
758
+ healthCheckId: "health_check_id",
759
+ incidentImpact: "incident_impact",
760
+ inputId: "input_id",
761
+ insightClass: "insight_class",
762
+ limit: "limit",
763
+ logoTag: "logo_tag",
764
+ megabitsPerSecond: "megabits_per_second",
765
+ newHealth: "new_health",
766
+ newStatus: "new_status",
767
+ packetsPerSecond: "packets_per_second",
768
+ poolId: "pool_id",
769
+ popNames: "pop_names",
770
+ product: "product",
771
+ projectId: "project_id",
772
+ protocol: "protocol",
773
+ queryTag: "query_tag",
774
+ requestsPerSecond: "requests_per_second",
775
+ selectors: "selectors",
776
+ services: "services",
777
+ slo: "slo",
778
+ status: "status",
779
+ targetHostname: "target_hostname",
780
+ targetIp: "target_ip",
781
+ targetZoneName: "target_zone_name",
782
+ trafficExclusions: "traffic_exclusions",
783
+ tunnelId: "tunnel_id",
784
+ tunnelName: "tunnel_name",
785
+ type: "type",
786
+ where: "where",
787
+ zones: "zones",
788
+ })),
789
+ Schema.Null,
790
+ ])),
791
+ mechanisms: Schema.optional(Schema.Union([
792
+ Schema.Struct({
793
+ email: Schema.optional(Schema.Union([
794
+ Schema.Array(Schema.Struct({
795
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
796
+ })),
797
+ Schema.Null,
798
+ ])),
799
+ pagerduty: Schema.optional(Schema.Union([
800
+ Schema.Array(Schema.Struct({
801
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
802
+ })),
803
+ Schema.Null,
804
+ ])),
805
+ webhooks: Schema.optional(Schema.Union([
806
+ Schema.Array(Schema.Struct({
807
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
808
+ })),
809
+ Schema.Null,
810
+ ])),
811
+ }),
812
+ Schema.Null,
813
+ ])),
814
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
815
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
816
+ }).pipe(Schema.encodeKeys({
817
+ id: "id",
818
+ alertInterval: "alert_interval",
819
+ alertType: "alert_type",
820
+ created: "created",
821
+ description: "description",
822
+ enabled: "enabled",
823
+ filters: "filters",
824
+ mechanisms: "mechanisms",
825
+ modified: "modified",
826
+ name: "name",
827
+ }))),
828
+ });
829
+ export const listPolicies = API.makePaginated(() => ({
791
830
  input: ListPoliciesRequest,
792
831
  output: ListPoliciesResponse,
793
832
  errors: [],
833
+ pagination: {
834
+ mode: "single",
835
+ items: "result",
836
+ },
794
837
  }));
795
838
  export const CreatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
796
839
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -987,7 +1030,7 @@ export const CreatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
987
1030
  }));
988
1031
  export const CreatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
989
1032
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
990
- });
1033
+ }).pipe(T.ResponsePath("result"));
991
1034
  export const createPolicy = API.make(() => ({
992
1035
  input: CreatePolicyRequest,
993
1036
  output: CreatePolicyResponse,
@@ -1189,7 +1232,7 @@ export const UpdatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1189
1232
  }));
1190
1233
  export const UpdatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1191
1234
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1192
- });
1235
+ }).pipe(T.ResponsePath("result"));
1193
1236
  export const updatePolicy = API.make(() => ({
1194
1237
  input: UpdatePolicyRequest,
1195
1238
  output: UpdatePolicyResponse,
@@ -1257,14 +1300,16 @@ export const GetSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1257
1300
  policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1258
1301
  startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1259
1302
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1260
- }).pipe(Schema.encodeKeys({
1303
+ })
1304
+ .pipe(Schema.encodeKeys({
1261
1305
  id: "id",
1262
1306
  createdAt: "created_at",
1263
1307
  endTime: "end_time",
1264
1308
  policyId: "policy_id",
1265
1309
  startTime: "start_time",
1266
1310
  updatedAt: "updated_at",
1267
- }));
1311
+ }))
1312
+ .pipe(T.ResponsePath("result"));
1268
1313
  export const getSilence = API.make(() => ({
1269
1314
  input: GetSilenceRequest,
1270
1315
  output: GetSilenceResponse,
@@ -1276,25 +1321,31 @@ export const ListSilencesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1276
1321
  method: "GET",
1277
1322
  path: "/accounts/{account_id}/alerting/v3/silences",
1278
1323
  }));
1279
- export const ListSilencesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1280
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1281
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1282
- endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1283
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1284
- startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1285
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1286
- }).pipe(Schema.encodeKeys({
1287
- id: "id",
1288
- createdAt: "created_at",
1289
- endTime: "end_time",
1290
- policyId: "policy_id",
1291
- startTime: "start_time",
1292
- updatedAt: "updated_at",
1293
- })));
1294
- export const listSilences = API.make(() => ({
1324
+ export const ListSilencesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1325
+ result: Schema.Array(Schema.Struct({
1326
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1327
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1328
+ endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1329
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1330
+ startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1331
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1332
+ }).pipe(Schema.encodeKeys({
1333
+ id: "id",
1334
+ createdAt: "created_at",
1335
+ endTime: "end_time",
1336
+ policyId: "policy_id",
1337
+ startTime: "start_time",
1338
+ updatedAt: "updated_at",
1339
+ }))),
1340
+ });
1341
+ export const listSilences = API.makePaginated(() => ({
1295
1342
  input: ListSilencesRequest,
1296
1343
  output: ListSilencesResponse,
1297
1344
  errors: [],
1345
+ pagination: {
1346
+ mode: "single",
1347
+ items: "result",
1348
+ },
1298
1349
  }));
1299
1350
  export const CreateSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1300
1351
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -1342,25 +1393,31 @@ export const UpdateSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1342
1393
  method: "PUT",
1343
1394
  path: "/accounts/{account_id}/alerting/v3/silences",
1344
1395
  }));
1345
- export const UpdateSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1346
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1347
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1348
- endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1349
- policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1350
- startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1351
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1352
- }).pipe(Schema.encodeKeys({
1353
- id: "id",
1354
- createdAt: "created_at",
1355
- endTime: "end_time",
1356
- policyId: "policy_id",
1357
- startTime: "start_time",
1358
- updatedAt: "updated_at",
1359
- })));
1360
- export const updateSilence = API.make(() => ({
1396
+ export const UpdateSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1397
+ result: Schema.Array(Schema.Struct({
1398
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1399
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1400
+ endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1401
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1402
+ startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1403
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1404
+ }).pipe(Schema.encodeKeys({
1405
+ id: "id",
1406
+ createdAt: "created_at",
1407
+ endTime: "end_time",
1408
+ policyId: "policy_id",
1409
+ startTime: "start_time",
1410
+ updatedAt: "updated_at",
1411
+ }))),
1412
+ });
1413
+ export const updateSilence = API.makePaginated(() => ({
1361
1414
  input: UpdateSilenceRequest,
1362
1415
  output: UpdateSilenceResponse,
1363
1416
  errors: [],
1417
+ pagination: {
1418
+ mode: "single",
1419
+ items: "result",
1420
+ },
1364
1421
  }));
1365
1422
  export const DeleteSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1366
1423
  silenceId: Schema.String.pipe(T.HttpPath("silenceId")),