@distilled.cloud/cloudflare 0.0.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1388 @@
1
+ /**
2
+ * Cloudflare ALERTING API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service alerting
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ // =============================================================================
12
+ // Errors
13
+ // =============================================================================
14
+ export class FiltersRequired extends Schema.TaggedErrorClass()("FiltersRequired", { code: Schema.Number, message: Schema.String }) {
15
+ }
16
+ T.applyErrorMatchers(FiltersRequired, [{ code: 17103 }]);
17
+ export class InternalServerError extends Schema.TaggedErrorClass()("InternalServerError", { code: Schema.Number, message: Schema.String }) {
18
+ }
19
+ T.applyErrorMatchers(InternalServerError, [{ code: 15000 }]);
20
+ export class InvalidAlertType extends Schema.TaggedErrorClass()("InvalidAlertType", { code: Schema.Number, message: Schema.String }) {
21
+ }
22
+ T.applyErrorMatchers(InvalidAlertType, [{ code: 17004 }]);
23
+ export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
24
+ }
25
+ T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
26
+ export class InvalidWebhookId extends Schema.TaggedErrorClass()("InvalidWebhookId", { code: Schema.Number, message: Schema.String }) {
27
+ }
28
+ T.applyErrorMatchers(InvalidWebhookId, [
29
+ { code: 0, message: { includes: "invalid Webhook ID" } },
30
+ ]);
31
+ export class MechanismRequired extends Schema.TaggedErrorClass()("MechanismRequired", { code: Schema.Number, message: Schema.String }) {
32
+ }
33
+ T.applyErrorMatchers(MechanismRequired, [{ code: 17102 }]);
34
+ export class PolicyNotFound extends Schema.TaggedErrorClass()("PolicyNotFound", { code: Schema.Number, message: Schema.String }) {
35
+ }
36
+ T.applyErrorMatchers(PolicyNotFound, [
37
+ { code: 0, message: { includes: "Policy not found" } },
38
+ ]);
39
+ export class WebhookNotFound extends Schema.TaggedErrorClass()("WebhookNotFound", { code: Schema.Number, message: Schema.String }) {
40
+ }
41
+ T.applyErrorMatchers(WebhookNotFound, [
42
+ { code: 0, message: { includes: "Webhook not found" } },
43
+ ]);
44
+ export class WebhookTestFailed extends Schema.TaggedErrorClass()("WebhookTestFailed", { code: Schema.Number, message: Schema.String }) {
45
+ }
46
+ T.applyErrorMatchers(WebhookTestFailed, [
47
+ { code: 0, message: { includes: "Webhook test failed" } },
48
+ ]);
49
+ export const ListAvailableAlertsRequest =
50
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
52
+ }).pipe(T.Http({
53
+ method: "GET",
54
+ path: "/accounts/{account_id}/alerting/v3/available_alerts",
55
+ }));
56
+ export const ListAvailableAlertsResponse =
57
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
58
+ export const listAvailableAlerts = API.make(() => ({
59
+ input: ListAvailableAlertsRequest,
60
+ output: ListAvailableAlertsResponse,
61
+ errors: [InvalidRoute],
62
+ }));
63
+ export const GetDestinationEligibleRequest =
64
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
65
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
66
+ }).pipe(T.Http({
67
+ method: "GET",
68
+ path: "/accounts/{account_id}/alerting/v3/destinations/eligible",
69
+ }));
70
+ export const GetDestinationEligibleResponse =
71
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
72
+ export const getDestinationEligible = API.make(() => ({
73
+ input: GetDestinationEligibleRequest,
74
+ output: GetDestinationEligibleResponse,
75
+ errors: [InvalidRoute],
76
+ }));
77
+ export const GetDestinationPagerdutyRequest =
78
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
79
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
80
+ }).pipe(T.Http({
81
+ method: "GET",
82
+ path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty",
83
+ }));
84
+ 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(() => ({
90
+ input: GetDestinationPagerdutyRequest,
91
+ output: GetDestinationPagerdutyResponse,
92
+ errors: [],
93
+ }));
94
+ export const CreateDestinationPagerdutyRequest =
95
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
96
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
97
+ }).pipe(T.Http({
98
+ method: "POST",
99
+ path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect",
100
+ }));
101
+ export const CreateDestinationPagerdutyResponse =
102
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
103
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
104
+ });
105
+ export const createDestinationPagerduty = API.make(() => ({
106
+ input: CreateDestinationPagerdutyRequest,
107
+ output: CreateDestinationPagerdutyResponse,
108
+ errors: [InvalidRoute],
109
+ }));
110
+ export const DeleteDestinationPagerdutyRequest =
111
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
112
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
113
+ }).pipe(T.Http({
114
+ method: "DELETE",
115
+ path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty",
116
+ }));
117
+ export const DeleteDestinationPagerdutyResponse =
118
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
119
+ errors: Schema.Array(Schema.Struct({
120
+ message: Schema.String,
121
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
122
+ })),
123
+ messages: Schema.Array(Schema.Struct({
124
+ message: Schema.String,
125
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
126
+ })),
127
+ success: Schema.Literal(true),
128
+ });
129
+ export const deleteDestinationPagerduty = API.make(() => ({
130
+ input: DeleteDestinationPagerdutyRequest,
131
+ output: DeleteDestinationPagerdutyResponse,
132
+ errors: [InvalidRoute],
133
+ }));
134
+ export const LinkDestinationPagerdutyRequest =
135
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
136
+ tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
137
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
138
+ }).pipe(T.Http({
139
+ method: "GET",
140
+ path: "/accounts/{account_id}/alerting/v3/destinations/pagerduty/connect/{tokenId}",
141
+ }));
142
+ export const LinkDestinationPagerdutyResponse =
143
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
144
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
145
+ });
146
+ export const linkDestinationPagerduty = API.make(() => ({
147
+ input: LinkDestinationPagerdutyRequest,
148
+ output: LinkDestinationPagerdutyResponse,
149
+ errors: [InvalidRoute],
150
+ }));
151
+ export const GetDestinationWebhookRequest =
152
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
153
+ webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
154
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
155
+ }).pipe(T.Http({
156
+ method: "GET",
157
+ path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
158
+ }));
159
+ export const GetDestinationWebhookResponse =
160
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
161
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
162
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
163
+ lastFailure: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
164
+ lastSuccess: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
165
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
166
+ type: Schema.optional(Schema.Union([
167
+ Schema.Literals([
168
+ "datadog",
169
+ "discord",
170
+ "feishu",
171
+ "gchat",
172
+ "generic",
173
+ "opsgenie",
174
+ "slack",
175
+ "splunk",
176
+ ]),
177
+ Schema.Null,
178
+ ])),
179
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
180
+ }).pipe(Schema.encodeKeys({
181
+ id: "id",
182
+ createdAt: "created_at",
183
+ lastFailure: "last_failure",
184
+ lastSuccess: "last_success",
185
+ name: "name",
186
+ type: "type",
187
+ url: "url",
188
+ }));
189
+ export const getDestinationWebhook = API.make(() => ({
190
+ input: GetDestinationWebhookRequest,
191
+ output: GetDestinationWebhookResponse,
192
+ errors: [InvalidRoute, WebhookNotFound],
193
+ }));
194
+ export const ListDestinationWebhooksRequest =
195
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
196
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
197
+ }).pipe(T.Http({
198
+ method: "GET",
199
+ path: "/accounts/{account_id}/alerting/v3/destinations/webhooks",
200
+ }));
201
+ 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(() => ({
232
+ input: ListDestinationWebhooksRequest,
233
+ output: ListDestinationWebhooksResponse,
234
+ errors: [],
235
+ }));
236
+ export const CreateDestinationWebhookRequest =
237
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
238
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
239
+ name: Schema.String,
240
+ url: Schema.String,
241
+ secret: Schema.optional(Schema.String),
242
+ }).pipe(T.Http({
243
+ method: "POST",
244
+ path: "/accounts/{account_id}/alerting/v3/destinations/webhooks",
245
+ }));
246
+ export const CreateDestinationWebhookResponse =
247
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
248
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
249
+ });
250
+ export const createDestinationWebhook = API.make(() => ({
251
+ input: CreateDestinationWebhookRequest,
252
+ output: CreateDestinationWebhookResponse,
253
+ errors: [InvalidRoute, WebhookTestFailed],
254
+ }));
255
+ export const UpdateDestinationWebhookRequest =
256
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
257
+ webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
258
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
259
+ name: Schema.String,
260
+ url: Schema.String,
261
+ secret: Schema.optional(Schema.String),
262
+ }).pipe(T.Http({
263
+ method: "PUT",
264
+ path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
265
+ }));
266
+ export const UpdateDestinationWebhookResponse =
267
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
268
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
269
+ });
270
+ export const updateDestinationWebhook = API.make(() => ({
271
+ input: UpdateDestinationWebhookRequest,
272
+ output: UpdateDestinationWebhookResponse,
273
+ errors: [InvalidRoute, InvalidWebhookId],
274
+ }));
275
+ export const DeleteDestinationWebhookRequest =
276
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
277
+ webhookId: Schema.String.pipe(T.HttpPath("webhookId")),
278
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
279
+ }).pipe(T.Http({
280
+ method: "DELETE",
281
+ path: "/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhookId}",
282
+ }));
283
+ export const DeleteDestinationWebhookResponse =
284
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
285
+ errors: Schema.Array(Schema.Struct({
286
+ message: Schema.String,
287
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
288
+ })),
289
+ messages: Schema.Array(Schema.Struct({
290
+ message: Schema.String,
291
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
292
+ })),
293
+ success: Schema.Literal(true),
294
+ });
295
+ export const deleteDestinationWebhook = API.make(() => ({
296
+ input: DeleteDestinationWebhookRequest,
297
+ output: DeleteDestinationWebhookResponse,
298
+ errors: [InvalidRoute, InternalServerError],
299
+ }));
300
+ export const ListHistoriesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
301
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
302
+ before: Schema.optional(Schema.String).pipe(T.HttpQuery("before")),
303
+ since: Schema.optional(Schema.String).pipe(T.HttpQuery("since")),
304
+ }).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(() => ({
330
+ input: ListHistoriesRequest,
331
+ output: ListHistoriesResponse,
332
+ errors: [],
333
+ }));
334
+ export const GetPolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
335
+ policyId: Schema.String.pipe(T.HttpPath("policyId")),
336
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
337
+ }).pipe(T.Http({
338
+ method: "GET",
339
+ path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
340
+ }));
341
+ export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
342
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
343
+ alertInterval: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ alertType: Schema.optional(Schema.Union([
345
+ Schema.Literals([
346
+ "abuse_report_alert",
347
+ "access_custom_certificate_expiration_type",
348
+ "advanced_ddos_attack_l4_alert",
349
+ "advanced_ddos_attack_l7_alert",
350
+ "advanced_http_alert_error",
351
+ "bgp_hijack_notification",
352
+ "billing_usage_alert",
353
+ "block_notification_block_removed",
354
+ "block_notification_new_block",
355
+ "block_notification_review_rejected",
356
+ "bot_traffic_basic_alert",
357
+ "brand_protection_alert",
358
+ "brand_protection_digest",
359
+ "clickhouse_alert_fw_anomaly",
360
+ "clickhouse_alert_fw_ent_anomaly",
361
+ "cloudforce_one_request_notification",
362
+ "custom_analytics",
363
+ "custom_bot_detection_alert",
364
+ "custom_ssl_certificate_event_type",
365
+ "dedicated_ssl_certificate_event_type",
366
+ "device_connectivity_anomaly_alert",
367
+ "dos_attack_l4",
368
+ "dos_attack_l7",
369
+ "expiring_service_token_alert",
370
+ "failing_logpush_job_disabled_alert",
371
+ "fbm_auto_advertisement",
372
+ "fbm_dosd_attack",
373
+ "fbm_volumetric_attack",
374
+ "health_check_status_notification",
375
+ "hostname_aop_custom_certificate_expiration_type",
376
+ "http_alert_edge_error",
377
+ "http_alert_origin_error",
378
+ "image_notification",
379
+ "image_resizing_notification",
380
+ "incident_alert",
381
+ "load_balancing_health_alert",
382
+ "load_balancing_pool_enablement_alert",
383
+ "logo_match_alert",
384
+ "magic_tunnel_health_check_event",
385
+ "magic_wan_tunnel_health",
386
+ "maintenance_event_notification",
387
+ "mtls_certificate_store_certificate_expiration_type",
388
+ "pages_event_alert",
389
+ "radar_notification",
390
+ "real_origin_monitoring",
391
+ "scriptmonitor_alert_new_code_change_detections",
392
+ "scriptmonitor_alert_new_hosts",
393
+ "scriptmonitor_alert_new_malicious_hosts",
394
+ "scriptmonitor_alert_new_malicious_scripts",
395
+ "scriptmonitor_alert_new_malicious_url",
396
+ "scriptmonitor_alert_new_max_length_resource_url",
397
+ "scriptmonitor_alert_new_resources",
398
+ "secondary_dns_all_primaries_failing",
399
+ "secondary_dns_primaries_failing",
400
+ "secondary_dns_warning",
401
+ "secondary_dns_zone_successfully_updated",
402
+ "secondary_dns_zone_validation_warning",
403
+ "security_insights_alert",
404
+ "sentinel_alert",
405
+ "stream_live_notifications",
406
+ "synthetic_test_latency_alert",
407
+ "synthetic_test_low_availability_alert",
408
+ "traffic_anomalies_alert",
409
+ "tunnel_health_event",
410
+ "tunnel_update_event",
411
+ "universal_ssl_event_type",
412
+ "web_analytics_metrics_update",
413
+ "zone_aop_custom_certificate_expiration_type",
414
+ ]),
415
+ Schema.Null,
416
+ ])),
417
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
418
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
419
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
420
+ filters: Schema.optional(Schema.Union([
421
+ Schema.Struct({
422
+ actions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
423
+ affectedAsns: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
424
+ affectedComponents: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
425
+ affectedLocations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
426
+ airportCode: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
427
+ alertTriggerPreferences: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
428
+ alertTriggerPreferencesValue: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
429
+ enabled: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
430
+ environment: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
431
+ event: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
432
+ eventSource: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
433
+ eventType: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
434
+ groupBy: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
435
+ healthCheckId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
436
+ incidentImpact: Schema.optional(Schema.Union([
437
+ Schema.Array(Schema.Literals([
438
+ "INCIDENT_IMPACT_NONE",
439
+ "INCIDENT_IMPACT_MINOR",
440
+ "INCIDENT_IMPACT_MAJOR",
441
+ "INCIDENT_IMPACT_CRITICAL",
442
+ ])),
443
+ Schema.Null,
444
+ ])),
445
+ inputId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
446
+ insightClass: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
447
+ limit: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
448
+ logoTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
449
+ megabitsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
450
+ newHealth: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
451
+ newStatus: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
452
+ packetsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
453
+ poolId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
454
+ popNames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
455
+ product: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
456
+ projectId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
457
+ protocol: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
458
+ queryTag: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
459
+ requestsPerSecond: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
460
+ selectors: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
461
+ services: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
462
+ slo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
463
+ status: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
464
+ targetHostname: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
465
+ targetIp: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
466
+ targetZoneName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
467
+ trafficExclusions: Schema.optional(Schema.Union([
468
+ Schema.Array(Schema.Literal("security_events")),
469
+ Schema.Null,
470
+ ])),
471
+ tunnelId: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
472
+ tunnelName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
473
+ type: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
474
+ where: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
475
+ zones: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
476
+ }).pipe(Schema.encodeKeys({
477
+ actions: "actions",
478
+ affectedAsns: "affected_asns",
479
+ affectedComponents: "affected_components",
480
+ affectedLocations: "affected_locations",
481
+ airportCode: "airport_code",
482
+ alertTriggerPreferences: "alert_trigger_preferences",
483
+ alertTriggerPreferencesValue: "alert_trigger_preferences_value",
484
+ enabled: "enabled",
485
+ environment: "environment",
486
+ event: "event",
487
+ eventSource: "event_source",
488
+ eventType: "event_type",
489
+ groupBy: "group_by",
490
+ healthCheckId: "health_check_id",
491
+ incidentImpact: "incident_impact",
492
+ inputId: "input_id",
493
+ insightClass: "insight_class",
494
+ limit: "limit",
495
+ logoTag: "logo_tag",
496
+ megabitsPerSecond: "megabits_per_second",
497
+ newHealth: "new_health",
498
+ newStatus: "new_status",
499
+ packetsPerSecond: "packets_per_second",
500
+ poolId: "pool_id",
501
+ popNames: "pop_names",
502
+ product: "product",
503
+ projectId: "project_id",
504
+ protocol: "protocol",
505
+ queryTag: "query_tag",
506
+ requestsPerSecond: "requests_per_second",
507
+ selectors: "selectors",
508
+ services: "services",
509
+ slo: "slo",
510
+ status: "status",
511
+ targetHostname: "target_hostname",
512
+ targetIp: "target_ip",
513
+ targetZoneName: "target_zone_name",
514
+ trafficExclusions: "traffic_exclusions",
515
+ tunnelId: "tunnel_id",
516
+ tunnelName: "tunnel_name",
517
+ type: "type",
518
+ where: "where",
519
+ zones: "zones",
520
+ })),
521
+ Schema.Null,
522
+ ])),
523
+ mechanisms: Schema.optional(Schema.Union([
524
+ Schema.Struct({
525
+ email: Schema.optional(Schema.Union([
526
+ Schema.Array(Schema.Struct({
527
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
528
+ })),
529
+ Schema.Null,
530
+ ])),
531
+ pagerduty: Schema.optional(Schema.Union([
532
+ Schema.Array(Schema.Struct({
533
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
534
+ })),
535
+ Schema.Null,
536
+ ])),
537
+ webhooks: Schema.optional(Schema.Union([
538
+ Schema.Array(Schema.Struct({
539
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
540
+ })),
541
+ Schema.Null,
542
+ ])),
543
+ }),
544
+ Schema.Null,
545
+ ])),
546
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
547
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
548
+ }).pipe(Schema.encodeKeys({
549
+ id: "id",
550
+ alertInterval: "alert_interval",
551
+ alertType: "alert_type",
552
+ created: "created",
553
+ description: "description",
554
+ enabled: "enabled",
555
+ filters: "filters",
556
+ mechanisms: "mechanisms",
557
+ modified: "modified",
558
+ name: "name",
559
+ }));
560
+ export const getPolicy = API.make(() => ({
561
+ input: GetPolicyRequest,
562
+ output: GetPolicyResponse,
563
+ errors: [InvalidRoute, PolicyNotFound],
564
+ }));
565
+ export const ListPoliciesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
566
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
567
+ }).pipe(T.Http({
568
+ method: "GET",
569
+ path: "/accounts/{account_id}/alerting/v3/policies",
570
+ }));
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",
672
+ ])),
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(() => ({
791
+ input: ListPoliciesRequest,
792
+ output: ListPoliciesResponse,
793
+ errors: [],
794
+ }));
795
+ export const CreatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
796
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
797
+ alertType: Schema.Literals([
798
+ "abuse_report_alert",
799
+ "access_custom_certificate_expiration_type",
800
+ "advanced_ddos_attack_l4_alert",
801
+ "advanced_ddos_attack_l7_alert",
802
+ "advanced_http_alert_error",
803
+ "bgp_hijack_notification",
804
+ "billing_usage_alert",
805
+ "block_notification_block_removed",
806
+ "block_notification_new_block",
807
+ "block_notification_review_rejected",
808
+ "bot_traffic_basic_alert",
809
+ "brand_protection_alert",
810
+ "brand_protection_digest",
811
+ "clickhouse_alert_fw_anomaly",
812
+ "clickhouse_alert_fw_ent_anomaly",
813
+ "cloudforce_one_request_notification",
814
+ "custom_analytics",
815
+ "custom_bot_detection_alert",
816
+ "custom_ssl_certificate_event_type",
817
+ "dedicated_ssl_certificate_event_type",
818
+ "device_connectivity_anomaly_alert",
819
+ "dos_attack_l4",
820
+ "dos_attack_l7",
821
+ "expiring_service_token_alert",
822
+ "failing_logpush_job_disabled_alert",
823
+ "fbm_auto_advertisement",
824
+ "fbm_dosd_attack",
825
+ "fbm_volumetric_attack",
826
+ "health_check_status_notification",
827
+ "hostname_aop_custom_certificate_expiration_type",
828
+ "http_alert_edge_error",
829
+ "http_alert_origin_error",
830
+ "image_notification",
831
+ "image_resizing_notification",
832
+ "incident_alert",
833
+ "load_balancing_health_alert",
834
+ "load_balancing_pool_enablement_alert",
835
+ "logo_match_alert",
836
+ "magic_tunnel_health_check_event",
837
+ "magic_wan_tunnel_health",
838
+ "maintenance_event_notification",
839
+ "mtls_certificate_store_certificate_expiration_type",
840
+ "pages_event_alert",
841
+ "radar_notification",
842
+ "real_origin_monitoring",
843
+ "scriptmonitor_alert_new_code_change_detections",
844
+ "scriptmonitor_alert_new_hosts",
845
+ "scriptmonitor_alert_new_malicious_hosts",
846
+ "scriptmonitor_alert_new_malicious_scripts",
847
+ "scriptmonitor_alert_new_malicious_url",
848
+ "scriptmonitor_alert_new_max_length_resource_url",
849
+ "scriptmonitor_alert_new_resources",
850
+ "secondary_dns_all_primaries_failing",
851
+ "secondary_dns_primaries_failing",
852
+ "secondary_dns_warning",
853
+ "secondary_dns_zone_successfully_updated",
854
+ "secondary_dns_zone_validation_warning",
855
+ "security_insights_alert",
856
+ "sentinel_alert",
857
+ "stream_live_notifications",
858
+ "synthetic_test_latency_alert",
859
+ "synthetic_test_low_availability_alert",
860
+ "traffic_anomalies_alert",
861
+ "tunnel_health_event",
862
+ "tunnel_update_event",
863
+ "universal_ssl_event_type",
864
+ "web_analytics_metrics_update",
865
+ "zone_aop_custom_certificate_expiration_type",
866
+ ]),
867
+ enabled: Schema.Boolean,
868
+ mechanisms: Schema.Struct({
869
+ email: Schema.optional(Schema.Array(Schema.Struct({
870
+ id: Schema.optional(Schema.String),
871
+ }))),
872
+ pagerduty: Schema.optional(Schema.Array(Schema.Struct({
873
+ id: Schema.optional(Schema.String),
874
+ }))),
875
+ webhooks: Schema.optional(Schema.Array(Schema.Struct({
876
+ id: Schema.optional(Schema.String),
877
+ }))),
878
+ }),
879
+ name: Schema.String,
880
+ alertInterval: Schema.optional(Schema.String),
881
+ description: Schema.optional(Schema.String),
882
+ filters: Schema.optional(Schema.Struct({
883
+ actions: Schema.optional(Schema.Array(Schema.String)),
884
+ affectedAsns: Schema.optional(Schema.Array(Schema.String)),
885
+ affectedComponents: Schema.optional(Schema.Array(Schema.String)),
886
+ affectedLocations: Schema.optional(Schema.Array(Schema.String)),
887
+ airportCode: Schema.optional(Schema.Array(Schema.String)),
888
+ alertTriggerPreferences: Schema.optional(Schema.Array(Schema.String)),
889
+ alertTriggerPreferencesValue: Schema.optional(Schema.Array(Schema.String)),
890
+ enabled: Schema.optional(Schema.Array(Schema.String)),
891
+ environment: Schema.optional(Schema.Array(Schema.String)),
892
+ event: Schema.optional(Schema.Array(Schema.String)),
893
+ eventSource: Schema.optional(Schema.Array(Schema.String)),
894
+ eventType: Schema.optional(Schema.Array(Schema.String)),
895
+ groupBy: Schema.optional(Schema.Array(Schema.String)),
896
+ healthCheckId: Schema.optional(Schema.Array(Schema.String)),
897
+ incidentImpact: Schema.optional(Schema.Array(Schema.Literals([
898
+ "INCIDENT_IMPACT_NONE",
899
+ "INCIDENT_IMPACT_MINOR",
900
+ "INCIDENT_IMPACT_MAJOR",
901
+ "INCIDENT_IMPACT_CRITICAL",
902
+ ]))),
903
+ inputId: Schema.optional(Schema.Array(Schema.String)),
904
+ insightClass: Schema.optional(Schema.Array(Schema.String)),
905
+ limit: Schema.optional(Schema.Array(Schema.String)),
906
+ logoTag: Schema.optional(Schema.Array(Schema.String)),
907
+ megabitsPerSecond: Schema.optional(Schema.Array(Schema.String)),
908
+ newHealth: Schema.optional(Schema.Array(Schema.String)),
909
+ newStatus: Schema.optional(Schema.Array(Schema.String)),
910
+ packetsPerSecond: Schema.optional(Schema.Array(Schema.String)),
911
+ poolId: Schema.optional(Schema.Array(Schema.String)),
912
+ popNames: Schema.optional(Schema.Array(Schema.String)),
913
+ product: Schema.optional(Schema.Array(Schema.String)),
914
+ projectId: Schema.optional(Schema.Array(Schema.String)),
915
+ protocol: Schema.optional(Schema.Array(Schema.String)),
916
+ queryTag: Schema.optional(Schema.Array(Schema.String)),
917
+ requestsPerSecond: Schema.optional(Schema.Array(Schema.String)),
918
+ selectors: Schema.optional(Schema.Array(Schema.String)),
919
+ services: Schema.optional(Schema.Array(Schema.String)),
920
+ slo: Schema.optional(Schema.Array(Schema.String)),
921
+ status: Schema.optional(Schema.Array(Schema.String)),
922
+ targetHostname: Schema.optional(Schema.Array(Schema.String)),
923
+ targetIp: Schema.optional(Schema.Array(Schema.String)),
924
+ targetZoneName: Schema.optional(Schema.Array(Schema.String)),
925
+ trafficExclusions: Schema.optional(Schema.Array(Schema.Literal("security_events"))),
926
+ tunnelId: Schema.optional(Schema.Array(Schema.String)),
927
+ tunnelName: Schema.optional(Schema.Array(Schema.String)),
928
+ type: Schema.optional(Schema.Array(Schema.String)),
929
+ where: Schema.optional(Schema.Array(Schema.String)),
930
+ zones: Schema.optional(Schema.Array(Schema.String)),
931
+ }).pipe(Schema.encodeKeys({
932
+ actions: "actions",
933
+ affectedAsns: "affected_asns",
934
+ affectedComponents: "affected_components",
935
+ affectedLocations: "affected_locations",
936
+ airportCode: "airport_code",
937
+ alertTriggerPreferences: "alert_trigger_preferences",
938
+ alertTriggerPreferencesValue: "alert_trigger_preferences_value",
939
+ enabled: "enabled",
940
+ environment: "environment",
941
+ event: "event",
942
+ eventSource: "event_source",
943
+ eventType: "event_type",
944
+ groupBy: "group_by",
945
+ healthCheckId: "health_check_id",
946
+ incidentImpact: "incident_impact",
947
+ inputId: "input_id",
948
+ insightClass: "insight_class",
949
+ limit: "limit",
950
+ logoTag: "logo_tag",
951
+ megabitsPerSecond: "megabits_per_second",
952
+ newHealth: "new_health",
953
+ newStatus: "new_status",
954
+ packetsPerSecond: "packets_per_second",
955
+ poolId: "pool_id",
956
+ popNames: "pop_names",
957
+ product: "product",
958
+ projectId: "project_id",
959
+ protocol: "protocol",
960
+ queryTag: "query_tag",
961
+ requestsPerSecond: "requests_per_second",
962
+ selectors: "selectors",
963
+ services: "services",
964
+ slo: "slo",
965
+ status: "status",
966
+ targetHostname: "target_hostname",
967
+ targetIp: "target_ip",
968
+ targetZoneName: "target_zone_name",
969
+ trafficExclusions: "traffic_exclusions",
970
+ tunnelId: "tunnel_id",
971
+ tunnelName: "tunnel_name",
972
+ type: "type",
973
+ where: "where",
974
+ zones: "zones",
975
+ }))),
976
+ }).pipe(Schema.encodeKeys({
977
+ alertType: "alert_type",
978
+ enabled: "enabled",
979
+ mechanisms: "mechanisms",
980
+ name: "name",
981
+ alertInterval: "alert_interval",
982
+ description: "description",
983
+ filters: "filters",
984
+ }), T.Http({
985
+ method: "POST",
986
+ path: "/accounts/{account_id}/alerting/v3/policies",
987
+ }));
988
+ export const CreatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
989
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
990
+ });
991
+ export const createPolicy = API.make(() => ({
992
+ input: CreatePolicyRequest,
993
+ output: CreatePolicyResponse,
994
+ errors: [InvalidRoute, FiltersRequired, MechanismRequired],
995
+ }));
996
+ export const UpdatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
997
+ policyId: Schema.String.pipe(T.HttpPath("policyId")),
998
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
999
+ alertInterval: Schema.optional(Schema.String),
1000
+ alertType: Schema.optional(Schema.Literals([
1001
+ "abuse_report_alert",
1002
+ "access_custom_certificate_expiration_type",
1003
+ "advanced_ddos_attack_l4_alert",
1004
+ "advanced_ddos_attack_l7_alert",
1005
+ "advanced_http_alert_error",
1006
+ "bgp_hijack_notification",
1007
+ "billing_usage_alert",
1008
+ "block_notification_block_removed",
1009
+ "block_notification_new_block",
1010
+ "block_notification_review_rejected",
1011
+ "bot_traffic_basic_alert",
1012
+ "brand_protection_alert",
1013
+ "brand_protection_digest",
1014
+ "clickhouse_alert_fw_anomaly",
1015
+ "clickhouse_alert_fw_ent_anomaly",
1016
+ "cloudforce_one_request_notification",
1017
+ "custom_analytics",
1018
+ "custom_bot_detection_alert",
1019
+ "custom_ssl_certificate_event_type",
1020
+ "dedicated_ssl_certificate_event_type",
1021
+ "device_connectivity_anomaly_alert",
1022
+ "dos_attack_l4",
1023
+ "dos_attack_l7",
1024
+ "expiring_service_token_alert",
1025
+ "failing_logpush_job_disabled_alert",
1026
+ "fbm_auto_advertisement",
1027
+ "fbm_dosd_attack",
1028
+ "fbm_volumetric_attack",
1029
+ "health_check_status_notification",
1030
+ "hostname_aop_custom_certificate_expiration_type",
1031
+ "http_alert_edge_error",
1032
+ "http_alert_origin_error",
1033
+ "image_notification",
1034
+ "image_resizing_notification",
1035
+ "incident_alert",
1036
+ "load_balancing_health_alert",
1037
+ "load_balancing_pool_enablement_alert",
1038
+ "logo_match_alert",
1039
+ "magic_tunnel_health_check_event",
1040
+ "magic_wan_tunnel_health",
1041
+ "maintenance_event_notification",
1042
+ "mtls_certificate_store_certificate_expiration_type",
1043
+ "pages_event_alert",
1044
+ "radar_notification",
1045
+ "real_origin_monitoring",
1046
+ "scriptmonitor_alert_new_code_change_detections",
1047
+ "scriptmonitor_alert_new_hosts",
1048
+ "scriptmonitor_alert_new_malicious_hosts",
1049
+ "scriptmonitor_alert_new_malicious_scripts",
1050
+ "scriptmonitor_alert_new_malicious_url",
1051
+ "scriptmonitor_alert_new_max_length_resource_url",
1052
+ "scriptmonitor_alert_new_resources",
1053
+ "secondary_dns_all_primaries_failing",
1054
+ "secondary_dns_primaries_failing",
1055
+ "secondary_dns_warning",
1056
+ "secondary_dns_zone_successfully_updated",
1057
+ "secondary_dns_zone_validation_warning",
1058
+ "security_insights_alert",
1059
+ "sentinel_alert",
1060
+ "stream_live_notifications",
1061
+ "synthetic_test_latency_alert",
1062
+ "synthetic_test_low_availability_alert",
1063
+ "traffic_anomalies_alert",
1064
+ "tunnel_health_event",
1065
+ "tunnel_update_event",
1066
+ "universal_ssl_event_type",
1067
+ "web_analytics_metrics_update",
1068
+ "zone_aop_custom_certificate_expiration_type",
1069
+ ])),
1070
+ description: Schema.optional(Schema.String),
1071
+ enabled: Schema.optional(Schema.Boolean),
1072
+ filters: Schema.optional(Schema.Struct({
1073
+ actions: Schema.optional(Schema.Array(Schema.String)),
1074
+ affectedAsns: Schema.optional(Schema.Array(Schema.String)),
1075
+ affectedComponents: Schema.optional(Schema.Array(Schema.String)),
1076
+ affectedLocations: Schema.optional(Schema.Array(Schema.String)),
1077
+ airportCode: Schema.optional(Schema.Array(Schema.String)),
1078
+ alertTriggerPreferences: Schema.optional(Schema.Array(Schema.String)),
1079
+ alertTriggerPreferencesValue: Schema.optional(Schema.Array(Schema.String)),
1080
+ enabled: Schema.optional(Schema.Array(Schema.String)),
1081
+ environment: Schema.optional(Schema.Array(Schema.String)),
1082
+ event: Schema.optional(Schema.Array(Schema.String)),
1083
+ eventSource: Schema.optional(Schema.Array(Schema.String)),
1084
+ eventType: Schema.optional(Schema.Array(Schema.String)),
1085
+ groupBy: Schema.optional(Schema.Array(Schema.String)),
1086
+ healthCheckId: Schema.optional(Schema.Array(Schema.String)),
1087
+ incidentImpact: Schema.optional(Schema.Array(Schema.Literals([
1088
+ "INCIDENT_IMPACT_NONE",
1089
+ "INCIDENT_IMPACT_MINOR",
1090
+ "INCIDENT_IMPACT_MAJOR",
1091
+ "INCIDENT_IMPACT_CRITICAL",
1092
+ ]))),
1093
+ inputId: Schema.optional(Schema.Array(Schema.String)),
1094
+ insightClass: Schema.optional(Schema.Array(Schema.String)),
1095
+ limit: Schema.optional(Schema.Array(Schema.String)),
1096
+ logoTag: Schema.optional(Schema.Array(Schema.String)),
1097
+ megabitsPerSecond: Schema.optional(Schema.Array(Schema.String)),
1098
+ newHealth: Schema.optional(Schema.Array(Schema.String)),
1099
+ newStatus: Schema.optional(Schema.Array(Schema.String)),
1100
+ packetsPerSecond: Schema.optional(Schema.Array(Schema.String)),
1101
+ poolId: Schema.optional(Schema.Array(Schema.String)),
1102
+ popNames: Schema.optional(Schema.Array(Schema.String)),
1103
+ product: Schema.optional(Schema.Array(Schema.String)),
1104
+ projectId: Schema.optional(Schema.Array(Schema.String)),
1105
+ protocol: Schema.optional(Schema.Array(Schema.String)),
1106
+ queryTag: Schema.optional(Schema.Array(Schema.String)),
1107
+ requestsPerSecond: Schema.optional(Schema.Array(Schema.String)),
1108
+ selectors: Schema.optional(Schema.Array(Schema.String)),
1109
+ services: Schema.optional(Schema.Array(Schema.String)),
1110
+ slo: Schema.optional(Schema.Array(Schema.String)),
1111
+ status: Schema.optional(Schema.Array(Schema.String)),
1112
+ targetHostname: Schema.optional(Schema.Array(Schema.String)),
1113
+ targetIp: Schema.optional(Schema.Array(Schema.String)),
1114
+ targetZoneName: Schema.optional(Schema.Array(Schema.String)),
1115
+ trafficExclusions: Schema.optional(Schema.Array(Schema.Literal("security_events"))),
1116
+ tunnelId: Schema.optional(Schema.Array(Schema.String)),
1117
+ tunnelName: Schema.optional(Schema.Array(Schema.String)),
1118
+ type: Schema.optional(Schema.Array(Schema.String)),
1119
+ where: Schema.optional(Schema.Array(Schema.String)),
1120
+ zones: Schema.optional(Schema.Array(Schema.String)),
1121
+ }).pipe(Schema.encodeKeys({
1122
+ actions: "actions",
1123
+ affectedAsns: "affected_asns",
1124
+ affectedComponents: "affected_components",
1125
+ affectedLocations: "affected_locations",
1126
+ airportCode: "airport_code",
1127
+ alertTriggerPreferences: "alert_trigger_preferences",
1128
+ alertTriggerPreferencesValue: "alert_trigger_preferences_value",
1129
+ enabled: "enabled",
1130
+ environment: "environment",
1131
+ event: "event",
1132
+ eventSource: "event_source",
1133
+ eventType: "event_type",
1134
+ groupBy: "group_by",
1135
+ healthCheckId: "health_check_id",
1136
+ incidentImpact: "incident_impact",
1137
+ inputId: "input_id",
1138
+ insightClass: "insight_class",
1139
+ limit: "limit",
1140
+ logoTag: "logo_tag",
1141
+ megabitsPerSecond: "megabits_per_second",
1142
+ newHealth: "new_health",
1143
+ newStatus: "new_status",
1144
+ packetsPerSecond: "packets_per_second",
1145
+ poolId: "pool_id",
1146
+ popNames: "pop_names",
1147
+ product: "product",
1148
+ projectId: "project_id",
1149
+ protocol: "protocol",
1150
+ queryTag: "query_tag",
1151
+ requestsPerSecond: "requests_per_second",
1152
+ selectors: "selectors",
1153
+ services: "services",
1154
+ slo: "slo",
1155
+ status: "status",
1156
+ targetHostname: "target_hostname",
1157
+ targetIp: "target_ip",
1158
+ targetZoneName: "target_zone_name",
1159
+ trafficExclusions: "traffic_exclusions",
1160
+ tunnelId: "tunnel_id",
1161
+ tunnelName: "tunnel_name",
1162
+ type: "type",
1163
+ where: "where",
1164
+ zones: "zones",
1165
+ }))),
1166
+ mechanisms: Schema.optional(Schema.Struct({
1167
+ email: Schema.optional(Schema.Array(Schema.Struct({
1168
+ id: Schema.optional(Schema.String),
1169
+ }))),
1170
+ pagerduty: Schema.optional(Schema.Array(Schema.Struct({
1171
+ id: Schema.optional(Schema.String),
1172
+ }))),
1173
+ webhooks: Schema.optional(Schema.Array(Schema.Struct({
1174
+ id: Schema.optional(Schema.String),
1175
+ }))),
1176
+ })),
1177
+ name: Schema.optional(Schema.String),
1178
+ }).pipe(Schema.encodeKeys({
1179
+ alertInterval: "alert_interval",
1180
+ alertType: "alert_type",
1181
+ description: "description",
1182
+ enabled: "enabled",
1183
+ filters: "filters",
1184
+ mechanisms: "mechanisms",
1185
+ name: "name",
1186
+ }), T.Http({
1187
+ method: "PUT",
1188
+ path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
1189
+ }));
1190
+ export const UpdatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1191
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1192
+ });
1193
+ export const updatePolicy = API.make(() => ({
1194
+ input: UpdatePolicyRequest,
1195
+ output: UpdatePolicyResponse,
1196
+ errors: [InvalidRoute, PolicyNotFound, InvalidAlertType, MechanismRequired],
1197
+ }));
1198
+ export const DeletePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1199
+ policyId: Schema.String.pipe(T.HttpPath("policyId")),
1200
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1201
+ }).pipe(T.Http({
1202
+ method: "DELETE",
1203
+ path: "/accounts/{account_id}/alerting/v3/policies/{policyId}",
1204
+ }));
1205
+ export const DeletePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1206
+ errors: Schema.optional(Schema.Union([
1207
+ Schema.Array(Schema.Struct({
1208
+ message: Schema.String,
1209
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1210
+ })),
1211
+ Schema.Null,
1212
+ ])),
1213
+ messages: Schema.optional(Schema.Union([
1214
+ Schema.Array(Schema.Struct({
1215
+ message: Schema.String,
1216
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1217
+ })),
1218
+ Schema.Null,
1219
+ ])),
1220
+ success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
1221
+ resultInfo: Schema.optional(Schema.Union([
1222
+ Schema.Struct({
1223
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1224
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1225
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1226
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1227
+ }).pipe(Schema.encodeKeys({
1228
+ count: "count",
1229
+ page: "page",
1230
+ perPage: "per_page",
1231
+ totalCount: "total_count",
1232
+ })),
1233
+ Schema.Null,
1234
+ ])),
1235
+ }).pipe(Schema.encodeKeys({
1236
+ errors: "errors",
1237
+ messages: "messages",
1238
+ success: "success",
1239
+ resultInfo: "result_info",
1240
+ }));
1241
+ export const deletePolicy = API.make(() => ({
1242
+ input: DeletePolicyRequest,
1243
+ output: DeletePolicyResponse,
1244
+ errors: [InvalidRoute, PolicyNotFound],
1245
+ }));
1246
+ export const GetSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1247
+ silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
1248
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1249
+ }).pipe(T.Http({
1250
+ method: "GET",
1251
+ path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
1252
+ }));
1253
+ export const GetSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1254
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1255
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1256
+ endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1257
+ policyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1258
+ startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1259
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1260
+ }).pipe(Schema.encodeKeys({
1261
+ id: "id",
1262
+ createdAt: "created_at",
1263
+ endTime: "end_time",
1264
+ policyId: "policy_id",
1265
+ startTime: "start_time",
1266
+ updatedAt: "updated_at",
1267
+ }));
1268
+ export const getSilence = API.make(() => ({
1269
+ input: GetSilenceRequest,
1270
+ output: GetSilenceResponse,
1271
+ errors: [InvalidRoute, InternalServerError],
1272
+ }));
1273
+ export const ListSilencesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1274
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1275
+ }).pipe(T.Http({
1276
+ method: "GET",
1277
+ path: "/accounts/{account_id}/alerting/v3/silences",
1278
+ }));
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(() => ({
1295
+ input: ListSilencesRequest,
1296
+ output: ListSilencesResponse,
1297
+ errors: [],
1298
+ }));
1299
+ export const CreateSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1300
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1301
+ body: Schema.Array(Schema.Struct({
1302
+ endTime: Schema.optional(Schema.String),
1303
+ policyId: Schema.optional(Schema.String),
1304
+ startTime: Schema.optional(Schema.String),
1305
+ }).pipe(Schema.encodeKeys({
1306
+ endTime: "end_time",
1307
+ policyId: "policy_id",
1308
+ startTime: "start_time",
1309
+ }))).pipe(T.HttpBody()),
1310
+ }).pipe(T.Http({
1311
+ method: "POST",
1312
+ path: "/accounts/{account_id}/alerting/v3/silences",
1313
+ }));
1314
+ export const CreateSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1315
+ errors: Schema.Array(Schema.Struct({
1316
+ message: Schema.String,
1317
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1318
+ })),
1319
+ messages: Schema.Array(Schema.Struct({
1320
+ message: Schema.String,
1321
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1322
+ })),
1323
+ success: Schema.Literal(true),
1324
+ });
1325
+ export const createSilence = API.make(() => ({
1326
+ input: CreateSilenceRequest,
1327
+ output: CreateSilenceResponse,
1328
+ errors: [InvalidRoute],
1329
+ }));
1330
+ export const UpdateSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1331
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1332
+ body: Schema.Array(Schema.Struct({
1333
+ id: Schema.optional(Schema.String),
1334
+ endTime: Schema.optional(Schema.String),
1335
+ startTime: Schema.optional(Schema.String),
1336
+ }).pipe(Schema.encodeKeys({
1337
+ id: "id",
1338
+ endTime: "end_time",
1339
+ startTime: "start_time",
1340
+ }))).pipe(T.HttpBody()),
1341
+ }).pipe(T.Http({
1342
+ method: "PUT",
1343
+ path: "/accounts/{account_id}/alerting/v3/silences",
1344
+ }));
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(() => ({
1361
+ input: UpdateSilenceRequest,
1362
+ output: UpdateSilenceResponse,
1363
+ errors: [],
1364
+ }));
1365
+ export const DeleteSilenceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1366
+ silenceId: Schema.String.pipe(T.HttpPath("silenceId")),
1367
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1368
+ }).pipe(T.Http({
1369
+ method: "DELETE",
1370
+ path: "/accounts/{account_id}/alerting/v3/silences/{silenceId}",
1371
+ }));
1372
+ export const DeleteSilenceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1373
+ errors: Schema.Array(Schema.Struct({
1374
+ message: Schema.String,
1375
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1376
+ })),
1377
+ messages: Schema.Array(Schema.Struct({
1378
+ message: Schema.String,
1379
+ code: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1380
+ })),
1381
+ success: Schema.Literal(true),
1382
+ });
1383
+ export const deleteSilence = API.make(() => ({
1384
+ input: DeleteSilenceRequest,
1385
+ output: DeleteSilenceResponse,
1386
+ errors: [InvalidRoute],
1387
+ }));
1388
+ //# sourceMappingURL=alerting.js.map