@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,3068 @@
1
+ /**
2
+ * Cloudflare LOAD-BALANCERS API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service load-balancers
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ export const GetLoadBalancerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ loadBalancerId: Schema.String.pipe(T.HttpPath("loadBalancerId")),
13
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
14
+ }).pipe(T.Http({
15
+ method: "GET",
16
+ path: "/zones/{zone_id}/load_balancers/{loadBalancerId}",
17
+ }));
18
+ export const GetLoadBalancerResponse =
19
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21
+ adaptiveRouting: Schema.optional(Schema.Union([
22
+ Schema.Struct({
23
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
24
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
25
+ Schema.Null,
26
+ ])),
27
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
28
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
29
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
30
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
31
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
32
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
33
+ locationStrategy: Schema.optional(Schema.Union([
34
+ Schema.Struct({
35
+ mode: Schema.optional(Schema.Union([
36
+ Schema.Literals(["pop", "resolver_ip"]),
37
+ Schema.Null,
38
+ ])),
39
+ preferEcs: Schema.optional(Schema.Union([
40
+ Schema.Literals(["always", "never", "proximity", "geo"]),
41
+ Schema.Null,
42
+ ])),
43
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
44
+ Schema.Null,
45
+ ])),
46
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
47
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
48
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
49
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
50
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
51
+ randomSteering: Schema.optional(Schema.Union([
52
+ Schema.Struct({
53
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54
+ poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
55
+ }).pipe(Schema.encodeKeys({
56
+ defaultWeight: "default_weight",
57
+ poolWeights: "pool_weights",
58
+ })),
59
+ Schema.Null,
60
+ ])),
61
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
62
+ rules: Schema.optional(Schema.Union([
63
+ Schema.Array(Schema.Struct({
64
+ condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
65
+ disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
66
+ fixedResponse: Schema.optional(Schema.Union([
67
+ Schema.Struct({
68
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
69
+ location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
70
+ messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
71
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
72
+ }).pipe(Schema.encodeKeys({
73
+ contentType: "content_type",
74
+ location: "location",
75
+ messageBody: "message_body",
76
+ statusCode: "status_code",
77
+ })),
78
+ Schema.Null,
79
+ ])),
80
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
81
+ overrides: Schema.optional(Schema.Union([
82
+ Schema.Struct({
83
+ adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
84
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
85
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
86
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
87
+ locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
88
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
89
+ randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
90
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
91
+ sessionAffinity: Schema.optional(Schema.Union([
92
+ Schema.Literals([
93
+ "none",
94
+ "cookie",
95
+ "ip_cookie",
96
+ "header",
97
+ ]),
98
+ Schema.Null,
99
+ ])),
100
+ sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
101
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
102
+ steeringPolicy: Schema.optional(Schema.Union([
103
+ Schema.Literals([
104
+ "",
105
+ "off",
106
+ "geo",
107
+ "random",
108
+ "dynamic_latency",
109
+ "proximity",
110
+ "least_outstanding_requests",
111
+ "least_connections",
112
+ ]),
113
+ Schema.Null,
114
+ ])),
115
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
116
+ }).pipe(Schema.encodeKeys({
117
+ adaptiveRouting: "adaptive_routing",
118
+ countryPools: "country_pools",
119
+ defaultPools: "default_pools",
120
+ fallbackPool: "fallback_pool",
121
+ locationStrategy: "location_strategy",
122
+ popPools: "pop_pools",
123
+ randomSteering: "random_steering",
124
+ regionPools: "region_pools",
125
+ sessionAffinity: "session_affinity",
126
+ sessionAffinityAttributes: "session_affinity_attributes",
127
+ sessionAffinityTtl: "session_affinity_ttl",
128
+ steeringPolicy: "steering_policy",
129
+ ttl: "ttl",
130
+ })),
131
+ Schema.Null,
132
+ ])),
133
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
134
+ terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
135
+ }).pipe(Schema.encodeKeys({
136
+ condition: "condition",
137
+ disabled: "disabled",
138
+ fixedResponse: "fixed_response",
139
+ name: "name",
140
+ overrides: "overrides",
141
+ priority: "priority",
142
+ terminates: "terminates",
143
+ }))),
144
+ Schema.Null,
145
+ ])),
146
+ sessionAffinity: Schema.optional(Schema.Union([
147
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
148
+ Schema.Null,
149
+ ])),
150
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
151
+ Schema.Struct({
152
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
153
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
154
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
155
+ samesite: Schema.optional(Schema.Union([
156
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
157
+ Schema.Null,
158
+ ])),
159
+ secure: Schema.optional(Schema.Union([
160
+ Schema.Literals(["Auto", "Always", "Never"]),
161
+ Schema.Null,
162
+ ])),
163
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
164
+ Schema.Literals(["none", "temporary", "sticky"]),
165
+ Schema.Null,
166
+ ])),
167
+ }).pipe(Schema.encodeKeys({
168
+ drainDuration: "drain_duration",
169
+ headers: "headers",
170
+ requireAllHeaders: "require_all_headers",
171
+ samesite: "samesite",
172
+ secure: "secure",
173
+ zeroDowntimeFailover: "zero_downtime_failover",
174
+ })),
175
+ Schema.Null,
176
+ ])),
177
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
178
+ steeringPolicy: Schema.optional(Schema.Union([
179
+ Schema.Literals([
180
+ "",
181
+ "off",
182
+ "geo",
183
+ "random",
184
+ "dynamic_latency",
185
+ "proximity",
186
+ "least_outstanding_requests",
187
+ "least_connections",
188
+ ]),
189
+ Schema.Null,
190
+ ])),
191
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
192
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
193
+ }).pipe(Schema.encodeKeys({
194
+ id: "id",
195
+ adaptiveRouting: "adaptive_routing",
196
+ countryPools: "country_pools",
197
+ createdOn: "created_on",
198
+ defaultPools: "default_pools",
199
+ description: "description",
200
+ enabled: "enabled",
201
+ fallbackPool: "fallback_pool",
202
+ locationStrategy: "location_strategy",
203
+ modifiedOn: "modified_on",
204
+ name: "name",
205
+ networks: "networks",
206
+ popPools: "pop_pools",
207
+ proxied: "proxied",
208
+ randomSteering: "random_steering",
209
+ regionPools: "region_pools",
210
+ rules: "rules",
211
+ sessionAffinity: "session_affinity",
212
+ sessionAffinityAttributes: "session_affinity_attributes",
213
+ sessionAffinityTtl: "session_affinity_ttl",
214
+ steeringPolicy: "steering_policy",
215
+ ttl: "ttl",
216
+ zoneName: "zone_name",
217
+ }));
218
+ export const getLoadBalancer = API.make(() => ({
219
+ input: GetLoadBalancerRequest,
220
+ output: GetLoadBalancerResponse,
221
+ errors: [],
222
+ }));
223
+ export const ListLoadBalancersRequest =
224
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
225
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
226
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/load_balancers" }));
227
+ export const ListLoadBalancersResponse =
228
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
229
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
230
+ adaptiveRouting: Schema.optional(Schema.Union([
231
+ Schema.Struct({
232
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
233
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
234
+ Schema.Null,
235
+ ])),
236
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
237
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
238
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
239
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
240
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
241
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
242
+ locationStrategy: Schema.optional(Schema.Union([
243
+ Schema.Struct({
244
+ mode: Schema.optional(Schema.Union([
245
+ Schema.Literals(["pop", "resolver_ip"]),
246
+ Schema.Null,
247
+ ])),
248
+ preferEcs: Schema.optional(Schema.Union([
249
+ Schema.Literals(["always", "never", "proximity", "geo"]),
250
+ Schema.Null,
251
+ ])),
252
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
253
+ Schema.Null,
254
+ ])),
255
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
256
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
257
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
258
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
259
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
260
+ randomSteering: Schema.optional(Schema.Union([
261
+ Schema.Struct({
262
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
263
+ poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
264
+ }).pipe(Schema.encodeKeys({
265
+ defaultWeight: "default_weight",
266
+ poolWeights: "pool_weights",
267
+ })),
268
+ Schema.Null,
269
+ ])),
270
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
271
+ rules: Schema.optional(Schema.Union([
272
+ Schema.Array(Schema.Struct({
273
+ condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
274
+ disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
275
+ fixedResponse: Schema.optional(Schema.Union([
276
+ Schema.Struct({
277
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
278
+ location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
279
+ messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
281
+ }).pipe(Schema.encodeKeys({
282
+ contentType: "content_type",
283
+ location: "location",
284
+ messageBody: "message_body",
285
+ statusCode: "status_code",
286
+ })),
287
+ Schema.Null,
288
+ ])),
289
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
290
+ overrides: Schema.optional(Schema.Union([
291
+ Schema.Struct({
292
+ adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
293
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
294
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
295
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
296
+ locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
297
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
298
+ randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
299
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
300
+ sessionAffinity: Schema.optional(Schema.Union([
301
+ Schema.Literals([
302
+ "none",
303
+ "cookie",
304
+ "ip_cookie",
305
+ "header",
306
+ ]),
307
+ Schema.Null,
308
+ ])),
309
+ sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
310
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
311
+ steeringPolicy: Schema.optional(Schema.Union([
312
+ Schema.Literals([
313
+ "",
314
+ "off",
315
+ "geo",
316
+ "random",
317
+ "dynamic_latency",
318
+ "proximity",
319
+ "least_outstanding_requests",
320
+ "least_connections",
321
+ ]),
322
+ Schema.Null,
323
+ ])),
324
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
325
+ }).pipe(Schema.encodeKeys({
326
+ adaptiveRouting: "adaptive_routing",
327
+ countryPools: "country_pools",
328
+ defaultPools: "default_pools",
329
+ fallbackPool: "fallback_pool",
330
+ locationStrategy: "location_strategy",
331
+ popPools: "pop_pools",
332
+ randomSteering: "random_steering",
333
+ regionPools: "region_pools",
334
+ sessionAffinity: "session_affinity",
335
+ sessionAffinityAttributes: "session_affinity_attributes",
336
+ sessionAffinityTtl: "session_affinity_ttl",
337
+ steeringPolicy: "steering_policy",
338
+ ttl: "ttl",
339
+ })),
340
+ Schema.Null,
341
+ ])),
342
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
343
+ terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
344
+ }).pipe(Schema.encodeKeys({
345
+ condition: "condition",
346
+ disabled: "disabled",
347
+ fixedResponse: "fixed_response",
348
+ name: "name",
349
+ overrides: "overrides",
350
+ priority: "priority",
351
+ terminates: "terminates",
352
+ }))),
353
+ Schema.Null,
354
+ ])),
355
+ sessionAffinity: Schema.optional(Schema.Union([
356
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
357
+ Schema.Null,
358
+ ])),
359
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
360
+ Schema.Struct({
361
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
362
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
363
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
364
+ samesite: Schema.optional(Schema.Union([
365
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
366
+ Schema.Null,
367
+ ])),
368
+ secure: Schema.optional(Schema.Union([
369
+ Schema.Literals(["Auto", "Always", "Never"]),
370
+ Schema.Null,
371
+ ])),
372
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
373
+ Schema.Literals(["none", "temporary", "sticky"]),
374
+ Schema.Null,
375
+ ])),
376
+ }).pipe(Schema.encodeKeys({
377
+ drainDuration: "drain_duration",
378
+ headers: "headers",
379
+ requireAllHeaders: "require_all_headers",
380
+ samesite: "samesite",
381
+ secure: "secure",
382
+ zeroDowntimeFailover: "zero_downtime_failover",
383
+ })),
384
+ Schema.Null,
385
+ ])),
386
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
387
+ steeringPolicy: Schema.optional(Schema.Union([
388
+ Schema.Literals([
389
+ "",
390
+ "off",
391
+ "geo",
392
+ "random",
393
+ "dynamic_latency",
394
+ "proximity",
395
+ "least_outstanding_requests",
396
+ "least_connections",
397
+ ]),
398
+ Schema.Null,
399
+ ])),
400
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
402
+ }).pipe(Schema.encodeKeys({
403
+ id: "id",
404
+ adaptiveRouting: "adaptive_routing",
405
+ countryPools: "country_pools",
406
+ createdOn: "created_on",
407
+ defaultPools: "default_pools",
408
+ description: "description",
409
+ enabled: "enabled",
410
+ fallbackPool: "fallback_pool",
411
+ locationStrategy: "location_strategy",
412
+ modifiedOn: "modified_on",
413
+ name: "name",
414
+ networks: "networks",
415
+ popPools: "pop_pools",
416
+ proxied: "proxied",
417
+ randomSteering: "random_steering",
418
+ regionPools: "region_pools",
419
+ rules: "rules",
420
+ sessionAffinity: "session_affinity",
421
+ sessionAffinityAttributes: "session_affinity_attributes",
422
+ sessionAffinityTtl: "session_affinity_ttl",
423
+ steeringPolicy: "steering_policy",
424
+ ttl: "ttl",
425
+ zoneName: "zone_name",
426
+ })));
427
+ export const listLoadBalancers = API.make(() => ({
428
+ input: ListLoadBalancersRequest,
429
+ output: ListLoadBalancersResponse,
430
+ errors: [],
431
+ }));
432
+ export const CreateLoadBalancerRequest =
433
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
434
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
435
+ defaultPools: Schema.Array(Schema.String),
436
+ fallbackPool: Schema.String,
437
+ name: Schema.String,
438
+ adaptiveRouting: Schema.optional(Schema.Struct({
439
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
440
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
441
+ countryPools: Schema.optional(Schema.Struct({})),
442
+ description: Schema.optional(Schema.String),
443
+ locationStrategy: Schema.optional(Schema.Struct({
444
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
445
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
446
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
447
+ networks: Schema.optional(Schema.Array(Schema.String)),
448
+ popPools: Schema.optional(Schema.Struct({})),
449
+ proxied: Schema.optional(Schema.Boolean),
450
+ randomSteering: Schema.optional(Schema.Struct({
451
+ defaultWeight: Schema.optional(Schema.Number),
452
+ poolWeights: Schema.optional(Schema.Struct({})),
453
+ }).pipe(Schema.encodeKeys({
454
+ defaultWeight: "default_weight",
455
+ poolWeights: "pool_weights",
456
+ }))),
457
+ regionPools: Schema.optional(Schema.Struct({})),
458
+ rules: Schema.optional(Schema.Array(Schema.Struct({
459
+ condition: Schema.optional(Schema.String),
460
+ disabled: Schema.optional(Schema.Boolean),
461
+ fixedResponse: Schema.optional(Schema.Struct({
462
+ contentType: Schema.optional(Schema.String),
463
+ location: Schema.optional(Schema.String),
464
+ messageBody: Schema.optional(Schema.String),
465
+ statusCode: Schema.optional(Schema.Number),
466
+ }).pipe(Schema.encodeKeys({
467
+ contentType: "content_type",
468
+ location: "location",
469
+ messageBody: "message_body",
470
+ statusCode: "status_code",
471
+ }))),
472
+ name: Schema.optional(Schema.String),
473
+ overrides: Schema.optional(Schema.Struct({
474
+ adaptiveRouting: Schema.optional(Schema.Unknown),
475
+ countryPools: Schema.optional(Schema.Struct({})),
476
+ defaultPools: Schema.optional(Schema.Array(Schema.String)),
477
+ fallbackPool: Schema.optional(Schema.String),
478
+ locationStrategy: Schema.optional(Schema.Unknown),
479
+ popPools: Schema.optional(Schema.Struct({})),
480
+ randomSteering: Schema.optional(Schema.Unknown),
481
+ regionPools: Schema.optional(Schema.Struct({})),
482
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
483
+ sessionAffinityAttributes: Schema.optional(Schema.Unknown),
484
+ sessionAffinityTtl: Schema.optional(Schema.Number),
485
+ steeringPolicy: Schema.optional(Schema.Literals([
486
+ "",
487
+ "off",
488
+ "geo",
489
+ "random",
490
+ "dynamic_latency",
491
+ "proximity",
492
+ "least_outstanding_requests",
493
+ "least_connections",
494
+ ])),
495
+ ttl: Schema.optional(Schema.Number),
496
+ }).pipe(Schema.encodeKeys({
497
+ adaptiveRouting: "adaptive_routing",
498
+ countryPools: "country_pools",
499
+ defaultPools: "default_pools",
500
+ fallbackPool: "fallback_pool",
501
+ locationStrategy: "location_strategy",
502
+ popPools: "pop_pools",
503
+ randomSteering: "random_steering",
504
+ regionPools: "region_pools",
505
+ sessionAffinity: "session_affinity",
506
+ sessionAffinityAttributes: "session_affinity_attributes",
507
+ sessionAffinityTtl: "session_affinity_ttl",
508
+ steeringPolicy: "steering_policy",
509
+ ttl: "ttl",
510
+ }))),
511
+ priority: Schema.optional(Schema.Number),
512
+ terminates: Schema.optional(Schema.Boolean),
513
+ }).pipe(Schema.encodeKeys({
514
+ condition: "condition",
515
+ disabled: "disabled",
516
+ fixedResponse: "fixed_response",
517
+ name: "name",
518
+ overrides: "overrides",
519
+ priority: "priority",
520
+ terminates: "terminates",
521
+ })))),
522
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
523
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
524
+ drainDuration: Schema.optional(Schema.Number),
525
+ headers: Schema.optional(Schema.Array(Schema.String)),
526
+ requireAllHeaders: Schema.optional(Schema.Boolean),
527
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
528
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
529
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
530
+ }).pipe(Schema.encodeKeys({
531
+ drainDuration: "drain_duration",
532
+ headers: "headers",
533
+ requireAllHeaders: "require_all_headers",
534
+ samesite: "samesite",
535
+ secure: "secure",
536
+ zeroDowntimeFailover: "zero_downtime_failover",
537
+ }))),
538
+ sessionAffinityTtl: Schema.optional(Schema.Number),
539
+ steeringPolicy: Schema.optional(Schema.Literals([
540
+ "",
541
+ "off",
542
+ "geo",
543
+ "random",
544
+ "dynamic_latency",
545
+ "proximity",
546
+ "least_outstanding_requests",
547
+ "least_connections",
548
+ ])),
549
+ ttl: Schema.optional(Schema.Number),
550
+ }).pipe(Schema.encodeKeys({
551
+ defaultPools: "default_pools",
552
+ fallbackPool: "fallback_pool",
553
+ name: "name",
554
+ adaptiveRouting: "adaptive_routing",
555
+ countryPools: "country_pools",
556
+ description: "description",
557
+ locationStrategy: "location_strategy",
558
+ networks: "networks",
559
+ popPools: "pop_pools",
560
+ proxied: "proxied",
561
+ randomSteering: "random_steering",
562
+ regionPools: "region_pools",
563
+ rules: "rules",
564
+ sessionAffinity: "session_affinity",
565
+ sessionAffinityAttributes: "session_affinity_attributes",
566
+ sessionAffinityTtl: "session_affinity_ttl",
567
+ steeringPolicy: "steering_policy",
568
+ ttl: "ttl",
569
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/load_balancers" }));
570
+ export const CreateLoadBalancerResponse =
571
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
572
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
573
+ adaptiveRouting: Schema.optional(Schema.Union([
574
+ Schema.Struct({
575
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
576
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
577
+ Schema.Null,
578
+ ])),
579
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
580
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
581
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
582
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
583
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
584
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
585
+ locationStrategy: Schema.optional(Schema.Union([
586
+ Schema.Struct({
587
+ mode: Schema.optional(Schema.Union([
588
+ Schema.Literals(["pop", "resolver_ip"]),
589
+ Schema.Null,
590
+ ])),
591
+ preferEcs: Schema.optional(Schema.Union([
592
+ Schema.Literals(["always", "never", "proximity", "geo"]),
593
+ Schema.Null,
594
+ ])),
595
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
596
+ Schema.Null,
597
+ ])),
598
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
599
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
600
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
601
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
602
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
603
+ randomSteering: Schema.optional(Schema.Union([
604
+ Schema.Struct({
605
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
606
+ poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
607
+ }).pipe(Schema.encodeKeys({
608
+ defaultWeight: "default_weight",
609
+ poolWeights: "pool_weights",
610
+ })),
611
+ Schema.Null,
612
+ ])),
613
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
614
+ rules: Schema.optional(Schema.Union([
615
+ Schema.Array(Schema.Struct({
616
+ condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
617
+ disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
618
+ fixedResponse: Schema.optional(Schema.Union([
619
+ Schema.Struct({
620
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
621
+ location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
622
+ messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
623
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
624
+ }).pipe(Schema.encodeKeys({
625
+ contentType: "content_type",
626
+ location: "location",
627
+ messageBody: "message_body",
628
+ statusCode: "status_code",
629
+ })),
630
+ Schema.Null,
631
+ ])),
632
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
633
+ overrides: Schema.optional(Schema.Union([
634
+ Schema.Struct({
635
+ adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
636
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
637
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
638
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
639
+ locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
640
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
641
+ randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
642
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
643
+ sessionAffinity: Schema.optional(Schema.Union([
644
+ Schema.Literals([
645
+ "none",
646
+ "cookie",
647
+ "ip_cookie",
648
+ "header",
649
+ ]),
650
+ Schema.Null,
651
+ ])),
652
+ sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
653
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
654
+ steeringPolicy: Schema.optional(Schema.Union([
655
+ Schema.Literals([
656
+ "",
657
+ "off",
658
+ "geo",
659
+ "random",
660
+ "dynamic_latency",
661
+ "proximity",
662
+ "least_outstanding_requests",
663
+ "least_connections",
664
+ ]),
665
+ Schema.Null,
666
+ ])),
667
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
668
+ }).pipe(Schema.encodeKeys({
669
+ adaptiveRouting: "adaptive_routing",
670
+ countryPools: "country_pools",
671
+ defaultPools: "default_pools",
672
+ fallbackPool: "fallback_pool",
673
+ locationStrategy: "location_strategy",
674
+ popPools: "pop_pools",
675
+ randomSteering: "random_steering",
676
+ regionPools: "region_pools",
677
+ sessionAffinity: "session_affinity",
678
+ sessionAffinityAttributes: "session_affinity_attributes",
679
+ sessionAffinityTtl: "session_affinity_ttl",
680
+ steeringPolicy: "steering_policy",
681
+ ttl: "ttl",
682
+ })),
683
+ Schema.Null,
684
+ ])),
685
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
686
+ terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
687
+ }).pipe(Schema.encodeKeys({
688
+ condition: "condition",
689
+ disabled: "disabled",
690
+ fixedResponse: "fixed_response",
691
+ name: "name",
692
+ overrides: "overrides",
693
+ priority: "priority",
694
+ terminates: "terminates",
695
+ }))),
696
+ Schema.Null,
697
+ ])),
698
+ sessionAffinity: Schema.optional(Schema.Union([
699
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
700
+ Schema.Null,
701
+ ])),
702
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
703
+ Schema.Struct({
704
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
705
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
706
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
707
+ samesite: Schema.optional(Schema.Union([
708
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
709
+ Schema.Null,
710
+ ])),
711
+ secure: Schema.optional(Schema.Union([
712
+ Schema.Literals(["Auto", "Always", "Never"]),
713
+ Schema.Null,
714
+ ])),
715
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
716
+ Schema.Literals(["none", "temporary", "sticky"]),
717
+ Schema.Null,
718
+ ])),
719
+ }).pipe(Schema.encodeKeys({
720
+ drainDuration: "drain_duration",
721
+ headers: "headers",
722
+ requireAllHeaders: "require_all_headers",
723
+ samesite: "samesite",
724
+ secure: "secure",
725
+ zeroDowntimeFailover: "zero_downtime_failover",
726
+ })),
727
+ Schema.Null,
728
+ ])),
729
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
730
+ steeringPolicy: Schema.optional(Schema.Union([
731
+ Schema.Literals([
732
+ "",
733
+ "off",
734
+ "geo",
735
+ "random",
736
+ "dynamic_latency",
737
+ "proximity",
738
+ "least_outstanding_requests",
739
+ "least_connections",
740
+ ]),
741
+ Schema.Null,
742
+ ])),
743
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
744
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
745
+ }).pipe(Schema.encodeKeys({
746
+ id: "id",
747
+ adaptiveRouting: "adaptive_routing",
748
+ countryPools: "country_pools",
749
+ createdOn: "created_on",
750
+ defaultPools: "default_pools",
751
+ description: "description",
752
+ enabled: "enabled",
753
+ fallbackPool: "fallback_pool",
754
+ locationStrategy: "location_strategy",
755
+ modifiedOn: "modified_on",
756
+ name: "name",
757
+ networks: "networks",
758
+ popPools: "pop_pools",
759
+ proxied: "proxied",
760
+ randomSteering: "random_steering",
761
+ regionPools: "region_pools",
762
+ rules: "rules",
763
+ sessionAffinity: "session_affinity",
764
+ sessionAffinityAttributes: "session_affinity_attributes",
765
+ sessionAffinityTtl: "session_affinity_ttl",
766
+ steeringPolicy: "steering_policy",
767
+ ttl: "ttl",
768
+ zoneName: "zone_name",
769
+ }));
770
+ export const createLoadBalancer = API.make(() => ({
771
+ input: CreateLoadBalancerRequest,
772
+ output: CreateLoadBalancerResponse,
773
+ errors: [],
774
+ }));
775
+ export const UpdateLoadBalancerRequest =
776
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
777
+ loadBalancerId: Schema.String.pipe(T.HttpPath("loadBalancerId")),
778
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
779
+ defaultPools: Schema.Array(Schema.String),
780
+ fallbackPool: Schema.String,
781
+ name: Schema.String,
782
+ adaptiveRouting: Schema.optional(Schema.Struct({
783
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
784
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
785
+ countryPools: Schema.optional(Schema.Struct({})),
786
+ description: Schema.optional(Schema.String),
787
+ enabled: Schema.optional(Schema.Boolean),
788
+ locationStrategy: Schema.optional(Schema.Struct({
789
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
790
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
791
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
792
+ networks: Schema.optional(Schema.Array(Schema.String)),
793
+ popPools: Schema.optional(Schema.Struct({})),
794
+ proxied: Schema.optional(Schema.Boolean),
795
+ randomSteering: Schema.optional(Schema.Struct({
796
+ defaultWeight: Schema.optional(Schema.Number),
797
+ poolWeights: Schema.optional(Schema.Struct({})),
798
+ }).pipe(Schema.encodeKeys({
799
+ defaultWeight: "default_weight",
800
+ poolWeights: "pool_weights",
801
+ }))),
802
+ regionPools: Schema.optional(Schema.Struct({})),
803
+ rules: Schema.optional(Schema.Array(Schema.Struct({
804
+ condition: Schema.optional(Schema.String),
805
+ disabled: Schema.optional(Schema.Boolean),
806
+ fixedResponse: Schema.optional(Schema.Struct({
807
+ contentType: Schema.optional(Schema.String),
808
+ location: Schema.optional(Schema.String),
809
+ messageBody: Schema.optional(Schema.String),
810
+ statusCode: Schema.optional(Schema.Number),
811
+ }).pipe(Schema.encodeKeys({
812
+ contentType: "content_type",
813
+ location: "location",
814
+ messageBody: "message_body",
815
+ statusCode: "status_code",
816
+ }))),
817
+ name: Schema.optional(Schema.String),
818
+ overrides: Schema.optional(Schema.Struct({
819
+ adaptiveRouting: Schema.optional(Schema.Unknown),
820
+ countryPools: Schema.optional(Schema.Struct({})),
821
+ defaultPools: Schema.optional(Schema.Array(Schema.String)),
822
+ fallbackPool: Schema.optional(Schema.String),
823
+ locationStrategy: Schema.optional(Schema.Unknown),
824
+ popPools: Schema.optional(Schema.Struct({})),
825
+ randomSteering: Schema.optional(Schema.Unknown),
826
+ regionPools: Schema.optional(Schema.Struct({})),
827
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
828
+ sessionAffinityAttributes: Schema.optional(Schema.Unknown),
829
+ sessionAffinityTtl: Schema.optional(Schema.Number),
830
+ steeringPolicy: Schema.optional(Schema.Literals([
831
+ "",
832
+ "off",
833
+ "geo",
834
+ "random",
835
+ "dynamic_latency",
836
+ "proximity",
837
+ "least_outstanding_requests",
838
+ "least_connections",
839
+ ])),
840
+ ttl: Schema.optional(Schema.Number),
841
+ }).pipe(Schema.encodeKeys({
842
+ adaptiveRouting: "adaptive_routing",
843
+ countryPools: "country_pools",
844
+ defaultPools: "default_pools",
845
+ fallbackPool: "fallback_pool",
846
+ locationStrategy: "location_strategy",
847
+ popPools: "pop_pools",
848
+ randomSteering: "random_steering",
849
+ regionPools: "region_pools",
850
+ sessionAffinity: "session_affinity",
851
+ sessionAffinityAttributes: "session_affinity_attributes",
852
+ sessionAffinityTtl: "session_affinity_ttl",
853
+ steeringPolicy: "steering_policy",
854
+ ttl: "ttl",
855
+ }))),
856
+ priority: Schema.optional(Schema.Number),
857
+ terminates: Schema.optional(Schema.Boolean),
858
+ }).pipe(Schema.encodeKeys({
859
+ condition: "condition",
860
+ disabled: "disabled",
861
+ fixedResponse: "fixed_response",
862
+ name: "name",
863
+ overrides: "overrides",
864
+ priority: "priority",
865
+ terminates: "terminates",
866
+ })))),
867
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
868
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
869
+ drainDuration: Schema.optional(Schema.Number),
870
+ headers: Schema.optional(Schema.Array(Schema.String)),
871
+ requireAllHeaders: Schema.optional(Schema.Boolean),
872
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
873
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
874
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
875
+ }).pipe(Schema.encodeKeys({
876
+ drainDuration: "drain_duration",
877
+ headers: "headers",
878
+ requireAllHeaders: "require_all_headers",
879
+ samesite: "samesite",
880
+ secure: "secure",
881
+ zeroDowntimeFailover: "zero_downtime_failover",
882
+ }))),
883
+ sessionAffinityTtl: Schema.optional(Schema.Number),
884
+ steeringPolicy: Schema.optional(Schema.Literals([
885
+ "",
886
+ "off",
887
+ "geo",
888
+ "random",
889
+ "dynamic_latency",
890
+ "proximity",
891
+ "least_outstanding_requests",
892
+ "least_connections",
893
+ ])),
894
+ ttl: Schema.optional(Schema.Number),
895
+ }).pipe(Schema.encodeKeys({
896
+ defaultPools: "default_pools",
897
+ fallbackPool: "fallback_pool",
898
+ name: "name",
899
+ adaptiveRouting: "adaptive_routing",
900
+ countryPools: "country_pools",
901
+ description: "description",
902
+ enabled: "enabled",
903
+ locationStrategy: "location_strategy",
904
+ networks: "networks",
905
+ popPools: "pop_pools",
906
+ proxied: "proxied",
907
+ randomSteering: "random_steering",
908
+ regionPools: "region_pools",
909
+ rules: "rules",
910
+ sessionAffinity: "session_affinity",
911
+ sessionAffinityAttributes: "session_affinity_attributes",
912
+ sessionAffinityTtl: "session_affinity_ttl",
913
+ steeringPolicy: "steering_policy",
914
+ ttl: "ttl",
915
+ }), T.Http({
916
+ method: "PUT",
917
+ path: "/zones/{zone_id}/load_balancers/{loadBalancerId}",
918
+ }));
919
+ export const UpdateLoadBalancerResponse =
920
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
921
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
922
+ adaptiveRouting: Schema.optional(Schema.Union([
923
+ Schema.Struct({
924
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
925
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
926
+ Schema.Null,
927
+ ])),
928
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
929
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
930
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
931
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
932
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
933
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
934
+ locationStrategy: Schema.optional(Schema.Union([
935
+ Schema.Struct({
936
+ mode: Schema.optional(Schema.Union([
937
+ Schema.Literals(["pop", "resolver_ip"]),
938
+ Schema.Null,
939
+ ])),
940
+ preferEcs: Schema.optional(Schema.Union([
941
+ Schema.Literals(["always", "never", "proximity", "geo"]),
942
+ Schema.Null,
943
+ ])),
944
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
945
+ Schema.Null,
946
+ ])),
947
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
948
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
949
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
950
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
951
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
952
+ randomSteering: Schema.optional(Schema.Union([
953
+ Schema.Struct({
954
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
955
+ poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
956
+ }).pipe(Schema.encodeKeys({
957
+ defaultWeight: "default_weight",
958
+ poolWeights: "pool_weights",
959
+ })),
960
+ Schema.Null,
961
+ ])),
962
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
963
+ rules: Schema.optional(Schema.Union([
964
+ Schema.Array(Schema.Struct({
965
+ condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
966
+ disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
967
+ fixedResponse: Schema.optional(Schema.Union([
968
+ Schema.Struct({
969
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
970
+ location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
971
+ messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
972
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
973
+ }).pipe(Schema.encodeKeys({
974
+ contentType: "content_type",
975
+ location: "location",
976
+ messageBody: "message_body",
977
+ statusCode: "status_code",
978
+ })),
979
+ Schema.Null,
980
+ ])),
981
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
982
+ overrides: Schema.optional(Schema.Union([
983
+ Schema.Struct({
984
+ adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
985
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
986
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
987
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
+ locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
989
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
990
+ randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
991
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
992
+ sessionAffinity: Schema.optional(Schema.Union([
993
+ Schema.Literals([
994
+ "none",
995
+ "cookie",
996
+ "ip_cookie",
997
+ "header",
998
+ ]),
999
+ Schema.Null,
1000
+ ])),
1001
+ sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1002
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1003
+ steeringPolicy: Schema.optional(Schema.Union([
1004
+ Schema.Literals([
1005
+ "",
1006
+ "off",
1007
+ "geo",
1008
+ "random",
1009
+ "dynamic_latency",
1010
+ "proximity",
1011
+ "least_outstanding_requests",
1012
+ "least_connections",
1013
+ ]),
1014
+ Schema.Null,
1015
+ ])),
1016
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1017
+ }).pipe(Schema.encodeKeys({
1018
+ adaptiveRouting: "adaptive_routing",
1019
+ countryPools: "country_pools",
1020
+ defaultPools: "default_pools",
1021
+ fallbackPool: "fallback_pool",
1022
+ locationStrategy: "location_strategy",
1023
+ popPools: "pop_pools",
1024
+ randomSteering: "random_steering",
1025
+ regionPools: "region_pools",
1026
+ sessionAffinity: "session_affinity",
1027
+ sessionAffinityAttributes: "session_affinity_attributes",
1028
+ sessionAffinityTtl: "session_affinity_ttl",
1029
+ steeringPolicy: "steering_policy",
1030
+ ttl: "ttl",
1031
+ })),
1032
+ Schema.Null,
1033
+ ])),
1034
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1035
+ terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1036
+ }).pipe(Schema.encodeKeys({
1037
+ condition: "condition",
1038
+ disabled: "disabled",
1039
+ fixedResponse: "fixed_response",
1040
+ name: "name",
1041
+ overrides: "overrides",
1042
+ priority: "priority",
1043
+ terminates: "terminates",
1044
+ }))),
1045
+ Schema.Null,
1046
+ ])),
1047
+ sessionAffinity: Schema.optional(Schema.Union([
1048
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
1049
+ Schema.Null,
1050
+ ])),
1051
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
1052
+ Schema.Struct({
1053
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1054
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1055
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1056
+ samesite: Schema.optional(Schema.Union([
1057
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
1058
+ Schema.Null,
1059
+ ])),
1060
+ secure: Schema.optional(Schema.Union([
1061
+ Schema.Literals(["Auto", "Always", "Never"]),
1062
+ Schema.Null,
1063
+ ])),
1064
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
1065
+ Schema.Literals(["none", "temporary", "sticky"]),
1066
+ Schema.Null,
1067
+ ])),
1068
+ }).pipe(Schema.encodeKeys({
1069
+ drainDuration: "drain_duration",
1070
+ headers: "headers",
1071
+ requireAllHeaders: "require_all_headers",
1072
+ samesite: "samesite",
1073
+ secure: "secure",
1074
+ zeroDowntimeFailover: "zero_downtime_failover",
1075
+ })),
1076
+ Schema.Null,
1077
+ ])),
1078
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1079
+ steeringPolicy: Schema.optional(Schema.Union([
1080
+ Schema.Literals([
1081
+ "",
1082
+ "off",
1083
+ "geo",
1084
+ "random",
1085
+ "dynamic_latency",
1086
+ "proximity",
1087
+ "least_outstanding_requests",
1088
+ "least_connections",
1089
+ ]),
1090
+ Schema.Null,
1091
+ ])),
1092
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1093
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1094
+ }).pipe(Schema.encodeKeys({
1095
+ id: "id",
1096
+ adaptiveRouting: "adaptive_routing",
1097
+ countryPools: "country_pools",
1098
+ createdOn: "created_on",
1099
+ defaultPools: "default_pools",
1100
+ description: "description",
1101
+ enabled: "enabled",
1102
+ fallbackPool: "fallback_pool",
1103
+ locationStrategy: "location_strategy",
1104
+ modifiedOn: "modified_on",
1105
+ name: "name",
1106
+ networks: "networks",
1107
+ popPools: "pop_pools",
1108
+ proxied: "proxied",
1109
+ randomSteering: "random_steering",
1110
+ regionPools: "region_pools",
1111
+ rules: "rules",
1112
+ sessionAffinity: "session_affinity",
1113
+ sessionAffinityAttributes: "session_affinity_attributes",
1114
+ sessionAffinityTtl: "session_affinity_ttl",
1115
+ steeringPolicy: "steering_policy",
1116
+ ttl: "ttl",
1117
+ zoneName: "zone_name",
1118
+ }));
1119
+ export const updateLoadBalancer = API.make(() => ({
1120
+ input: UpdateLoadBalancerRequest,
1121
+ output: UpdateLoadBalancerResponse,
1122
+ errors: [],
1123
+ }));
1124
+ export const PatchLoadBalancerRequest =
1125
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1126
+ loadBalancerId: Schema.String.pipe(T.HttpPath("loadBalancerId")),
1127
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1128
+ adaptiveRouting: Schema.optional(Schema.Struct({
1129
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
1130
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
1131
+ countryPools: Schema.optional(Schema.Struct({})),
1132
+ defaultPools: Schema.optional(Schema.Array(Schema.String)),
1133
+ description: Schema.optional(Schema.String),
1134
+ enabled: Schema.optional(Schema.Boolean),
1135
+ fallbackPool: Schema.optional(Schema.String),
1136
+ locationStrategy: Schema.optional(Schema.Struct({
1137
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
1138
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
1139
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
1140
+ name: Schema.optional(Schema.String),
1141
+ popPools: Schema.optional(Schema.Struct({})),
1142
+ proxied: Schema.optional(Schema.Boolean),
1143
+ randomSteering: Schema.optional(Schema.Struct({
1144
+ defaultWeight: Schema.optional(Schema.Number),
1145
+ poolWeights: Schema.optional(Schema.Struct({})),
1146
+ }).pipe(Schema.encodeKeys({
1147
+ defaultWeight: "default_weight",
1148
+ poolWeights: "pool_weights",
1149
+ }))),
1150
+ regionPools: Schema.optional(Schema.Struct({})),
1151
+ rules: Schema.optional(Schema.Array(Schema.Struct({
1152
+ condition: Schema.optional(Schema.String),
1153
+ disabled: Schema.optional(Schema.Boolean),
1154
+ fixedResponse: Schema.optional(Schema.Struct({
1155
+ contentType: Schema.optional(Schema.String),
1156
+ location: Schema.optional(Schema.String),
1157
+ messageBody: Schema.optional(Schema.String),
1158
+ statusCode: Schema.optional(Schema.Number),
1159
+ }).pipe(Schema.encodeKeys({
1160
+ contentType: "content_type",
1161
+ location: "location",
1162
+ messageBody: "message_body",
1163
+ statusCode: "status_code",
1164
+ }))),
1165
+ name: Schema.optional(Schema.String),
1166
+ overrides: Schema.optional(Schema.Struct({
1167
+ adaptiveRouting: Schema.optional(Schema.Unknown),
1168
+ countryPools: Schema.optional(Schema.Struct({})),
1169
+ defaultPools: Schema.optional(Schema.Array(Schema.String)),
1170
+ fallbackPool: Schema.optional(Schema.String),
1171
+ locationStrategy: Schema.optional(Schema.Unknown),
1172
+ popPools: Schema.optional(Schema.Struct({})),
1173
+ randomSteering: Schema.optional(Schema.Unknown),
1174
+ regionPools: Schema.optional(Schema.Struct({})),
1175
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
1176
+ sessionAffinityAttributes: Schema.optional(Schema.Unknown),
1177
+ sessionAffinityTtl: Schema.optional(Schema.Number),
1178
+ steeringPolicy: Schema.optional(Schema.Literals([
1179
+ "",
1180
+ "off",
1181
+ "geo",
1182
+ "random",
1183
+ "dynamic_latency",
1184
+ "proximity",
1185
+ "least_outstanding_requests",
1186
+ "least_connections",
1187
+ ])),
1188
+ ttl: Schema.optional(Schema.Number),
1189
+ }).pipe(Schema.encodeKeys({
1190
+ adaptiveRouting: "adaptive_routing",
1191
+ countryPools: "country_pools",
1192
+ defaultPools: "default_pools",
1193
+ fallbackPool: "fallback_pool",
1194
+ locationStrategy: "location_strategy",
1195
+ popPools: "pop_pools",
1196
+ randomSteering: "random_steering",
1197
+ regionPools: "region_pools",
1198
+ sessionAffinity: "session_affinity",
1199
+ sessionAffinityAttributes: "session_affinity_attributes",
1200
+ sessionAffinityTtl: "session_affinity_ttl",
1201
+ steeringPolicy: "steering_policy",
1202
+ ttl: "ttl",
1203
+ }))),
1204
+ priority: Schema.optional(Schema.Number),
1205
+ terminates: Schema.optional(Schema.Boolean),
1206
+ }).pipe(Schema.encodeKeys({
1207
+ condition: "condition",
1208
+ disabled: "disabled",
1209
+ fixedResponse: "fixed_response",
1210
+ name: "name",
1211
+ overrides: "overrides",
1212
+ priority: "priority",
1213
+ terminates: "terminates",
1214
+ })))),
1215
+ sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
1216
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
1217
+ drainDuration: Schema.optional(Schema.Number),
1218
+ headers: Schema.optional(Schema.Array(Schema.String)),
1219
+ requireAllHeaders: Schema.optional(Schema.Boolean),
1220
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
1221
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
1222
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
1223
+ }).pipe(Schema.encodeKeys({
1224
+ drainDuration: "drain_duration",
1225
+ headers: "headers",
1226
+ requireAllHeaders: "require_all_headers",
1227
+ samesite: "samesite",
1228
+ secure: "secure",
1229
+ zeroDowntimeFailover: "zero_downtime_failover",
1230
+ }))),
1231
+ sessionAffinityTtl: Schema.optional(Schema.Number),
1232
+ steeringPolicy: Schema.optional(Schema.Literals([
1233
+ "",
1234
+ "off",
1235
+ "geo",
1236
+ "random",
1237
+ "dynamic_latency",
1238
+ "proximity",
1239
+ "least_outstanding_requests",
1240
+ "least_connections",
1241
+ ])),
1242
+ ttl: Schema.optional(Schema.Number),
1243
+ }).pipe(Schema.encodeKeys({
1244
+ adaptiveRouting: "adaptive_routing",
1245
+ countryPools: "country_pools",
1246
+ defaultPools: "default_pools",
1247
+ description: "description",
1248
+ enabled: "enabled",
1249
+ fallbackPool: "fallback_pool",
1250
+ locationStrategy: "location_strategy",
1251
+ name: "name",
1252
+ popPools: "pop_pools",
1253
+ proxied: "proxied",
1254
+ randomSteering: "random_steering",
1255
+ regionPools: "region_pools",
1256
+ rules: "rules",
1257
+ sessionAffinity: "session_affinity",
1258
+ sessionAffinityAttributes: "session_affinity_attributes",
1259
+ sessionAffinityTtl: "session_affinity_ttl",
1260
+ steeringPolicy: "steering_policy",
1261
+ ttl: "ttl",
1262
+ }), T.Http({
1263
+ method: "PATCH",
1264
+ path: "/zones/{zone_id}/load_balancers/{loadBalancerId}",
1265
+ }));
1266
+ export const PatchLoadBalancerResponse =
1267
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1268
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1269
+ adaptiveRouting: Schema.optional(Schema.Union([
1270
+ Schema.Struct({
1271
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1272
+ }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
1273
+ Schema.Null,
1274
+ ])),
1275
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1276
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1277
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1278
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1279
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1280
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1281
+ locationStrategy: Schema.optional(Schema.Union([
1282
+ Schema.Struct({
1283
+ mode: Schema.optional(Schema.Union([
1284
+ Schema.Literals(["pop", "resolver_ip"]),
1285
+ Schema.Null,
1286
+ ])),
1287
+ preferEcs: Schema.optional(Schema.Union([
1288
+ Schema.Literals(["always", "never", "proximity", "geo"]),
1289
+ Schema.Null,
1290
+ ])),
1291
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
1292
+ Schema.Null,
1293
+ ])),
1294
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1295
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1296
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1297
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1298
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1299
+ randomSteering: Schema.optional(Schema.Union([
1300
+ Schema.Struct({
1301
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1302
+ poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1303
+ }).pipe(Schema.encodeKeys({
1304
+ defaultWeight: "default_weight",
1305
+ poolWeights: "pool_weights",
1306
+ })),
1307
+ Schema.Null,
1308
+ ])),
1309
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1310
+ rules: Schema.optional(Schema.Union([
1311
+ Schema.Array(Schema.Struct({
1312
+ condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1313
+ disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1314
+ fixedResponse: Schema.optional(Schema.Union([
1315
+ Schema.Struct({
1316
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1317
+ location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1318
+ messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1319
+ statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1320
+ }).pipe(Schema.encodeKeys({
1321
+ contentType: "content_type",
1322
+ location: "location",
1323
+ messageBody: "message_body",
1324
+ statusCode: "status_code",
1325
+ })),
1326
+ Schema.Null,
1327
+ ])),
1328
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1329
+ overrides: Schema.optional(Schema.Union([
1330
+ Schema.Struct({
1331
+ adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1332
+ countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1333
+ defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1334
+ fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1335
+ locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1336
+ popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1337
+ randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1338
+ regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1339
+ sessionAffinity: Schema.optional(Schema.Union([
1340
+ Schema.Literals([
1341
+ "none",
1342
+ "cookie",
1343
+ "ip_cookie",
1344
+ "header",
1345
+ ]),
1346
+ Schema.Null,
1347
+ ])),
1348
+ sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1349
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1350
+ steeringPolicy: Schema.optional(Schema.Union([
1351
+ Schema.Literals([
1352
+ "",
1353
+ "off",
1354
+ "geo",
1355
+ "random",
1356
+ "dynamic_latency",
1357
+ "proximity",
1358
+ "least_outstanding_requests",
1359
+ "least_connections",
1360
+ ]),
1361
+ Schema.Null,
1362
+ ])),
1363
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1364
+ }).pipe(Schema.encodeKeys({
1365
+ adaptiveRouting: "adaptive_routing",
1366
+ countryPools: "country_pools",
1367
+ defaultPools: "default_pools",
1368
+ fallbackPool: "fallback_pool",
1369
+ locationStrategy: "location_strategy",
1370
+ popPools: "pop_pools",
1371
+ randomSteering: "random_steering",
1372
+ regionPools: "region_pools",
1373
+ sessionAffinity: "session_affinity",
1374
+ sessionAffinityAttributes: "session_affinity_attributes",
1375
+ sessionAffinityTtl: "session_affinity_ttl",
1376
+ steeringPolicy: "steering_policy",
1377
+ ttl: "ttl",
1378
+ })),
1379
+ Schema.Null,
1380
+ ])),
1381
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1382
+ terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1383
+ }).pipe(Schema.encodeKeys({
1384
+ condition: "condition",
1385
+ disabled: "disabled",
1386
+ fixedResponse: "fixed_response",
1387
+ name: "name",
1388
+ overrides: "overrides",
1389
+ priority: "priority",
1390
+ terminates: "terminates",
1391
+ }))),
1392
+ Schema.Null,
1393
+ ])),
1394
+ sessionAffinity: Schema.optional(Schema.Union([
1395
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
1396
+ Schema.Null,
1397
+ ])),
1398
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
1399
+ Schema.Struct({
1400
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1401
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1402
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1403
+ samesite: Schema.optional(Schema.Union([
1404
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
1405
+ Schema.Null,
1406
+ ])),
1407
+ secure: Schema.optional(Schema.Union([
1408
+ Schema.Literals(["Auto", "Always", "Never"]),
1409
+ Schema.Null,
1410
+ ])),
1411
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
1412
+ Schema.Literals(["none", "temporary", "sticky"]),
1413
+ Schema.Null,
1414
+ ])),
1415
+ }).pipe(Schema.encodeKeys({
1416
+ drainDuration: "drain_duration",
1417
+ headers: "headers",
1418
+ requireAllHeaders: "require_all_headers",
1419
+ samesite: "samesite",
1420
+ secure: "secure",
1421
+ zeroDowntimeFailover: "zero_downtime_failover",
1422
+ })),
1423
+ Schema.Null,
1424
+ ])),
1425
+ sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1426
+ steeringPolicy: Schema.optional(Schema.Union([
1427
+ Schema.Literals([
1428
+ "",
1429
+ "off",
1430
+ "geo",
1431
+ "random",
1432
+ "dynamic_latency",
1433
+ "proximity",
1434
+ "least_outstanding_requests",
1435
+ "least_connections",
1436
+ ]),
1437
+ Schema.Null,
1438
+ ])),
1439
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1440
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1441
+ }).pipe(Schema.encodeKeys({
1442
+ id: "id",
1443
+ adaptiveRouting: "adaptive_routing",
1444
+ countryPools: "country_pools",
1445
+ createdOn: "created_on",
1446
+ defaultPools: "default_pools",
1447
+ description: "description",
1448
+ enabled: "enabled",
1449
+ fallbackPool: "fallback_pool",
1450
+ locationStrategy: "location_strategy",
1451
+ modifiedOn: "modified_on",
1452
+ name: "name",
1453
+ networks: "networks",
1454
+ popPools: "pop_pools",
1455
+ proxied: "proxied",
1456
+ randomSteering: "random_steering",
1457
+ regionPools: "region_pools",
1458
+ rules: "rules",
1459
+ sessionAffinity: "session_affinity",
1460
+ sessionAffinityAttributes: "session_affinity_attributes",
1461
+ sessionAffinityTtl: "session_affinity_ttl",
1462
+ steeringPolicy: "steering_policy",
1463
+ ttl: "ttl",
1464
+ zoneName: "zone_name",
1465
+ }));
1466
+ export const patchLoadBalancer = API.make(() => ({
1467
+ input: PatchLoadBalancerRequest,
1468
+ output: PatchLoadBalancerResponse,
1469
+ errors: [],
1470
+ }));
1471
+ export const DeleteLoadBalancerRequest =
1472
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1473
+ loadBalancerId: Schema.String.pipe(T.HttpPath("loadBalancerId")),
1474
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1475
+ }).pipe(T.Http({
1476
+ method: "DELETE",
1477
+ path: "/zones/{zone_id}/load_balancers/{loadBalancerId}",
1478
+ }));
1479
+ export const DeleteLoadBalancerResponse =
1480
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1481
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1482
+ });
1483
+ export const deleteLoadBalancer = API.make(() => ({
1484
+ input: DeleteLoadBalancerRequest,
1485
+ output: DeleteLoadBalancerResponse,
1486
+ errors: [],
1487
+ }));
1488
+ export const GetMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1489
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
1490
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1491
+ }).pipe(T.Http({
1492
+ method: "GET",
1493
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}",
1494
+ }));
1495
+ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1496
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1497
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1498
+ consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1499
+ consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1500
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1501
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1502
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1503
+ expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1504
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1505
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1506
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1507
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1508
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1509
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1510
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1511
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1512
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1513
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1514
+ type: Schema.optional(Schema.Union([
1515
+ Schema.Literals([
1516
+ "http",
1517
+ "https",
1518
+ "tcp",
1519
+ "udp_icmp",
1520
+ "icmp_ping",
1521
+ "smtp",
1522
+ ]),
1523
+ Schema.Null,
1524
+ ])),
1525
+ }).pipe(Schema.encodeKeys({
1526
+ id: "id",
1527
+ allowInsecure: "allow_insecure",
1528
+ consecutiveDown: "consecutive_down",
1529
+ consecutiveUp: "consecutive_up",
1530
+ createdOn: "created_on",
1531
+ description: "description",
1532
+ expectedBody: "expected_body",
1533
+ expectedCodes: "expected_codes",
1534
+ followRedirects: "follow_redirects",
1535
+ header: "header",
1536
+ interval: "interval",
1537
+ method: "method",
1538
+ modifiedOn: "modified_on",
1539
+ path: "path",
1540
+ port: "port",
1541
+ probeZone: "probe_zone",
1542
+ retries: "retries",
1543
+ timeout: "timeout",
1544
+ type: "type",
1545
+ }));
1546
+ export const getMonitor = API.make(() => ({
1547
+ input: GetMonitorRequest,
1548
+ output: GetMonitorResponse,
1549
+ errors: [],
1550
+ }));
1551
+ export const ListMonitorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1552
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1553
+ }).pipe(T.Http({
1554
+ method: "GET",
1555
+ path: "/accounts/{account_id}/load_balancers/monitors",
1556
+ }));
1557
+ export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1558
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1559
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1560
+ consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1561
+ consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1562
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1563
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1564
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1565
+ expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1566
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1567
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1568
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1569
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1570
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1571
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1572
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1573
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1574
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1575
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1576
+ type: Schema.optional(Schema.Union([
1577
+ Schema.Literals([
1578
+ "http",
1579
+ "https",
1580
+ "tcp",
1581
+ "udp_icmp",
1582
+ "icmp_ping",
1583
+ "smtp",
1584
+ ]),
1585
+ Schema.Null,
1586
+ ])),
1587
+ }).pipe(Schema.encodeKeys({
1588
+ id: "id",
1589
+ allowInsecure: "allow_insecure",
1590
+ consecutiveDown: "consecutive_down",
1591
+ consecutiveUp: "consecutive_up",
1592
+ createdOn: "created_on",
1593
+ description: "description",
1594
+ expectedBody: "expected_body",
1595
+ expectedCodes: "expected_codes",
1596
+ followRedirects: "follow_redirects",
1597
+ header: "header",
1598
+ interval: "interval",
1599
+ method: "method",
1600
+ modifiedOn: "modified_on",
1601
+ path: "path",
1602
+ port: "port",
1603
+ probeZone: "probe_zone",
1604
+ retries: "retries",
1605
+ timeout: "timeout",
1606
+ type: "type",
1607
+ })));
1608
+ export const listMonitors = API.make(() => ({
1609
+ input: ListMonitorsRequest,
1610
+ output: ListMonitorsResponse,
1611
+ errors: [],
1612
+ }));
1613
+ export const CreateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1614
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1615
+ allowInsecure: Schema.optional(Schema.Boolean),
1616
+ consecutiveDown: Schema.optional(Schema.Number),
1617
+ consecutiveUp: Schema.optional(Schema.Number),
1618
+ description: Schema.optional(Schema.String),
1619
+ expectedBody: Schema.optional(Schema.String),
1620
+ expectedCodes: Schema.optional(Schema.String),
1621
+ followRedirects: Schema.optional(Schema.Boolean),
1622
+ header: Schema.optional(Schema.Struct({})),
1623
+ interval: Schema.optional(Schema.Number),
1624
+ method: Schema.optional(Schema.String),
1625
+ path: Schema.optional(Schema.String),
1626
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1627
+ probeZone: Schema.optional(Schema.String),
1628
+ retries: Schema.optional(Schema.Number),
1629
+ timeout: Schema.optional(Schema.Number),
1630
+ type: Schema.optional(Schema.Literals(["http", "https", "tcp", "udp_icmp", "icmp_ping", "smtp"])),
1631
+ }).pipe(Schema.encodeKeys({
1632
+ allowInsecure: "allow_insecure",
1633
+ consecutiveDown: "consecutive_down",
1634
+ consecutiveUp: "consecutive_up",
1635
+ description: "description",
1636
+ expectedBody: "expected_body",
1637
+ expectedCodes: "expected_codes",
1638
+ followRedirects: "follow_redirects",
1639
+ header: "header",
1640
+ interval: "interval",
1641
+ method: "method",
1642
+ path: "path",
1643
+ port: "port",
1644
+ probeZone: "probe_zone",
1645
+ retries: "retries",
1646
+ timeout: "timeout",
1647
+ type: "type",
1648
+ }), T.Http({
1649
+ method: "POST",
1650
+ path: "/accounts/{account_id}/load_balancers/monitors",
1651
+ }));
1652
+ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1653
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1654
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1655
+ consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1656
+ consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1657
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1658
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1659
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1660
+ expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1661
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1662
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1663
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1664
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1665
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1666
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1667
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1668
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1669
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1670
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1671
+ type: Schema.optional(Schema.Union([
1672
+ Schema.Literals([
1673
+ "http",
1674
+ "https",
1675
+ "tcp",
1676
+ "udp_icmp",
1677
+ "icmp_ping",
1678
+ "smtp",
1679
+ ]),
1680
+ Schema.Null,
1681
+ ])),
1682
+ }).pipe(Schema.encodeKeys({
1683
+ id: "id",
1684
+ allowInsecure: "allow_insecure",
1685
+ consecutiveDown: "consecutive_down",
1686
+ consecutiveUp: "consecutive_up",
1687
+ createdOn: "created_on",
1688
+ description: "description",
1689
+ expectedBody: "expected_body",
1690
+ expectedCodes: "expected_codes",
1691
+ followRedirects: "follow_redirects",
1692
+ header: "header",
1693
+ interval: "interval",
1694
+ method: "method",
1695
+ modifiedOn: "modified_on",
1696
+ path: "path",
1697
+ port: "port",
1698
+ probeZone: "probe_zone",
1699
+ retries: "retries",
1700
+ timeout: "timeout",
1701
+ type: "type",
1702
+ }));
1703
+ export const createMonitor = API.make(() => ({
1704
+ input: CreateMonitorRequest,
1705
+ output: CreateMonitorResponse,
1706
+ errors: [],
1707
+ }));
1708
+ export const UpdateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1709
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
1710
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1711
+ allowInsecure: Schema.optional(Schema.Boolean),
1712
+ consecutiveDown: Schema.optional(Schema.Number),
1713
+ consecutiveUp: Schema.optional(Schema.Number),
1714
+ description: Schema.optional(Schema.String),
1715
+ expectedBody: Schema.optional(Schema.String),
1716
+ expectedCodes: Schema.optional(Schema.String),
1717
+ followRedirects: Schema.optional(Schema.Boolean),
1718
+ header: Schema.optional(Schema.Struct({})),
1719
+ interval: Schema.optional(Schema.Number),
1720
+ method: Schema.optional(Schema.String),
1721
+ path: Schema.optional(Schema.String),
1722
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1723
+ probeZone: Schema.optional(Schema.String),
1724
+ retries: Schema.optional(Schema.Number),
1725
+ timeout: Schema.optional(Schema.Number),
1726
+ type: Schema.optional(Schema.Literals(["http", "https", "tcp", "udp_icmp", "icmp_ping", "smtp"])),
1727
+ }).pipe(Schema.encodeKeys({
1728
+ allowInsecure: "allow_insecure",
1729
+ consecutiveDown: "consecutive_down",
1730
+ consecutiveUp: "consecutive_up",
1731
+ description: "description",
1732
+ expectedBody: "expected_body",
1733
+ expectedCodes: "expected_codes",
1734
+ followRedirects: "follow_redirects",
1735
+ header: "header",
1736
+ interval: "interval",
1737
+ method: "method",
1738
+ path: "path",
1739
+ port: "port",
1740
+ probeZone: "probe_zone",
1741
+ retries: "retries",
1742
+ timeout: "timeout",
1743
+ type: "type",
1744
+ }), T.Http({
1745
+ method: "PUT",
1746
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}",
1747
+ }));
1748
+ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1749
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1750
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1751
+ consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1752
+ consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1753
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1754
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1755
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1756
+ expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1757
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1758
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1759
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1760
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1761
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1762
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1763
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1764
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1765
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1766
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1767
+ type: Schema.optional(Schema.Union([
1768
+ Schema.Literals([
1769
+ "http",
1770
+ "https",
1771
+ "tcp",
1772
+ "udp_icmp",
1773
+ "icmp_ping",
1774
+ "smtp",
1775
+ ]),
1776
+ Schema.Null,
1777
+ ])),
1778
+ }).pipe(Schema.encodeKeys({
1779
+ id: "id",
1780
+ allowInsecure: "allow_insecure",
1781
+ consecutiveDown: "consecutive_down",
1782
+ consecutiveUp: "consecutive_up",
1783
+ createdOn: "created_on",
1784
+ description: "description",
1785
+ expectedBody: "expected_body",
1786
+ expectedCodes: "expected_codes",
1787
+ followRedirects: "follow_redirects",
1788
+ header: "header",
1789
+ interval: "interval",
1790
+ method: "method",
1791
+ modifiedOn: "modified_on",
1792
+ path: "path",
1793
+ port: "port",
1794
+ probeZone: "probe_zone",
1795
+ retries: "retries",
1796
+ timeout: "timeout",
1797
+ type: "type",
1798
+ }));
1799
+ export const updateMonitor = API.make(() => ({
1800
+ input: UpdateMonitorRequest,
1801
+ output: UpdateMonitorResponse,
1802
+ errors: [],
1803
+ }));
1804
+ export const PatchMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1805
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
1806
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1807
+ allowInsecure: Schema.optional(Schema.Boolean),
1808
+ consecutiveDown: Schema.optional(Schema.Number),
1809
+ consecutiveUp: Schema.optional(Schema.Number),
1810
+ description: Schema.optional(Schema.String),
1811
+ expectedBody: Schema.optional(Schema.String),
1812
+ expectedCodes: Schema.optional(Schema.String),
1813
+ followRedirects: Schema.optional(Schema.Boolean),
1814
+ header: Schema.optional(Schema.Struct({})),
1815
+ interval: Schema.optional(Schema.Number),
1816
+ method: Schema.optional(Schema.String),
1817
+ path: Schema.optional(Schema.String),
1818
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1819
+ probeZone: Schema.optional(Schema.String),
1820
+ retries: Schema.optional(Schema.Number),
1821
+ timeout: Schema.optional(Schema.Number),
1822
+ type: Schema.optional(Schema.Literals(["http", "https", "tcp", "udp_icmp", "icmp_ping", "smtp"])),
1823
+ }).pipe(Schema.encodeKeys({
1824
+ allowInsecure: "allow_insecure",
1825
+ consecutiveDown: "consecutive_down",
1826
+ consecutiveUp: "consecutive_up",
1827
+ description: "description",
1828
+ expectedBody: "expected_body",
1829
+ expectedCodes: "expected_codes",
1830
+ followRedirects: "follow_redirects",
1831
+ header: "header",
1832
+ interval: "interval",
1833
+ method: "method",
1834
+ path: "path",
1835
+ port: "port",
1836
+ probeZone: "probe_zone",
1837
+ retries: "retries",
1838
+ timeout: "timeout",
1839
+ type: "type",
1840
+ }), T.Http({
1841
+ method: "PATCH",
1842
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}",
1843
+ }));
1844
+ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1845
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1846
+ allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1847
+ consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1848
+ consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1849
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1850
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1851
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1852
+ expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1853
+ followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1854
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1855
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1856
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1857
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1858
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1859
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1860
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1861
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1862
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1863
+ type: Schema.optional(Schema.Union([
1864
+ Schema.Literals([
1865
+ "http",
1866
+ "https",
1867
+ "tcp",
1868
+ "udp_icmp",
1869
+ "icmp_ping",
1870
+ "smtp",
1871
+ ]),
1872
+ Schema.Null,
1873
+ ])),
1874
+ }).pipe(Schema.encodeKeys({
1875
+ id: "id",
1876
+ allowInsecure: "allow_insecure",
1877
+ consecutiveDown: "consecutive_down",
1878
+ consecutiveUp: "consecutive_up",
1879
+ createdOn: "created_on",
1880
+ description: "description",
1881
+ expectedBody: "expected_body",
1882
+ expectedCodes: "expected_codes",
1883
+ followRedirects: "follow_redirects",
1884
+ header: "header",
1885
+ interval: "interval",
1886
+ method: "method",
1887
+ modifiedOn: "modified_on",
1888
+ path: "path",
1889
+ port: "port",
1890
+ probeZone: "probe_zone",
1891
+ retries: "retries",
1892
+ timeout: "timeout",
1893
+ type: "type",
1894
+ }));
1895
+ export const patchMonitor = API.make(() => ({
1896
+ input: PatchMonitorRequest,
1897
+ output: PatchMonitorResponse,
1898
+ errors: [],
1899
+ }));
1900
+ export const DeleteMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1901
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
1902
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1903
+ }).pipe(T.Http({
1904
+ method: "DELETE",
1905
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}",
1906
+ }));
1907
+ export const DeleteMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1908
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1909
+ });
1910
+ export const deleteMonitor = API.make(() => ({
1911
+ input: DeleteMonitorRequest,
1912
+ output: DeleteMonitorResponse,
1913
+ errors: [],
1914
+ }));
1915
+ export const GetMonitorGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1916
+ monitorGroupId: Schema.String.pipe(T.HttpPath("monitorGroupId")),
1917
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1918
+ }).pipe(T.Http({
1919
+ method: "GET",
1920
+ path: "/accounts/{account_id}/load_balancers/monitor_groups/{monitorGroupId}",
1921
+ }));
1922
+ export const GetMonitorGroupResponse =
1923
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1924
+ id: Schema.String,
1925
+ description: Schema.String,
1926
+ members: Schema.Array(Schema.Struct({
1927
+ enabled: Schema.Boolean,
1928
+ monitorId: Schema.String,
1929
+ monitoringOnly: Schema.Boolean,
1930
+ mustBeHealthy: Schema.Boolean,
1931
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1932
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1933
+ }).pipe(Schema.encodeKeys({
1934
+ enabled: "enabled",
1935
+ monitorId: "monitor_id",
1936
+ monitoringOnly: "monitoring_only",
1937
+ mustBeHealthy: "must_be_healthy",
1938
+ createdAt: "created_at",
1939
+ updatedAt: "updated_at",
1940
+ }))),
1941
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1942
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1943
+ }).pipe(Schema.encodeKeys({
1944
+ id: "id",
1945
+ description: "description",
1946
+ members: "members",
1947
+ createdAt: "created_at",
1948
+ updatedAt: "updated_at",
1949
+ }));
1950
+ export const getMonitorGroup = API.make(() => ({
1951
+ input: GetMonitorGroupRequest,
1952
+ output: GetMonitorGroupResponse,
1953
+ errors: [],
1954
+ }));
1955
+ export const ListMonitorGroupsRequest =
1956
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1957
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1958
+ }).pipe(T.Http({
1959
+ method: "GET",
1960
+ path: "/accounts/{account_id}/load_balancers/monitor_groups",
1961
+ }));
1962
+ export const ListMonitorGroupsResponse =
1963
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1964
+ id: Schema.String,
1965
+ description: Schema.String,
1966
+ members: Schema.Array(Schema.Struct({
1967
+ enabled: Schema.Boolean,
1968
+ monitorId: Schema.String,
1969
+ monitoringOnly: Schema.Boolean,
1970
+ mustBeHealthy: Schema.Boolean,
1971
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1972
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1973
+ }).pipe(Schema.encodeKeys({
1974
+ enabled: "enabled",
1975
+ monitorId: "monitor_id",
1976
+ monitoringOnly: "monitoring_only",
1977
+ mustBeHealthy: "must_be_healthy",
1978
+ createdAt: "created_at",
1979
+ updatedAt: "updated_at",
1980
+ }))),
1981
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1982
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1983
+ }).pipe(Schema.encodeKeys({
1984
+ id: "id",
1985
+ description: "description",
1986
+ members: "members",
1987
+ createdAt: "created_at",
1988
+ updatedAt: "updated_at",
1989
+ })));
1990
+ export const listMonitorGroups = API.make(() => ({
1991
+ input: ListMonitorGroupsRequest,
1992
+ output: ListMonitorGroupsResponse,
1993
+ errors: [],
1994
+ }));
1995
+ export const CreateMonitorGroupRequest =
1996
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1997
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1998
+ id: Schema.String,
1999
+ description: Schema.String,
2000
+ members: Schema.Array(Schema.Struct({
2001
+ enabled: Schema.Boolean,
2002
+ monitorId: Schema.String,
2003
+ monitoringOnly: Schema.Boolean,
2004
+ mustBeHealthy: Schema.Boolean,
2005
+ }).pipe(Schema.encodeKeys({
2006
+ enabled: "enabled",
2007
+ monitorId: "monitor_id",
2008
+ monitoringOnly: "monitoring_only",
2009
+ mustBeHealthy: "must_be_healthy",
2010
+ }))),
2011
+ }).pipe(T.Http({
2012
+ method: "POST",
2013
+ path: "/accounts/{account_id}/load_balancers/monitor_groups",
2014
+ }));
2015
+ export const CreateMonitorGroupResponse =
2016
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2017
+ id: Schema.String,
2018
+ description: Schema.String,
2019
+ members: Schema.Array(Schema.Struct({
2020
+ enabled: Schema.Boolean,
2021
+ monitorId: Schema.String,
2022
+ monitoringOnly: Schema.Boolean,
2023
+ mustBeHealthy: Schema.Boolean,
2024
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2025
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2026
+ }).pipe(Schema.encodeKeys({
2027
+ enabled: "enabled",
2028
+ monitorId: "monitor_id",
2029
+ monitoringOnly: "monitoring_only",
2030
+ mustBeHealthy: "must_be_healthy",
2031
+ createdAt: "created_at",
2032
+ updatedAt: "updated_at",
2033
+ }))),
2034
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2035
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2036
+ }).pipe(Schema.encodeKeys({
2037
+ id: "id",
2038
+ description: "description",
2039
+ members: "members",
2040
+ createdAt: "created_at",
2041
+ updatedAt: "updated_at",
2042
+ }));
2043
+ export const createMonitorGroup = API.make(() => ({
2044
+ input: CreateMonitorGroupRequest,
2045
+ output: CreateMonitorGroupResponse,
2046
+ errors: [],
2047
+ }));
2048
+ export const UpdateMonitorGroupRequest =
2049
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2050
+ monitorGroupId: Schema.String.pipe(T.HttpPath("monitorGroupId")),
2051
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2052
+ id: Schema.String,
2053
+ description: Schema.String,
2054
+ members: Schema.Array(Schema.Struct({
2055
+ enabled: Schema.Boolean,
2056
+ monitorId: Schema.String,
2057
+ monitoringOnly: Schema.Boolean,
2058
+ mustBeHealthy: Schema.Boolean,
2059
+ }).pipe(Schema.encodeKeys({
2060
+ enabled: "enabled",
2061
+ monitorId: "monitor_id",
2062
+ monitoringOnly: "monitoring_only",
2063
+ mustBeHealthy: "must_be_healthy",
2064
+ }))),
2065
+ }).pipe(T.Http({
2066
+ method: "PUT",
2067
+ path: "/accounts/{account_id}/load_balancers/monitor_groups/{monitorGroupId}",
2068
+ }));
2069
+ export const UpdateMonitorGroupResponse =
2070
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2071
+ id: Schema.String,
2072
+ description: Schema.String,
2073
+ members: Schema.Array(Schema.Struct({
2074
+ enabled: Schema.Boolean,
2075
+ monitorId: Schema.String,
2076
+ monitoringOnly: Schema.Boolean,
2077
+ mustBeHealthy: Schema.Boolean,
2078
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2079
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2080
+ }).pipe(Schema.encodeKeys({
2081
+ enabled: "enabled",
2082
+ monitorId: "monitor_id",
2083
+ monitoringOnly: "monitoring_only",
2084
+ mustBeHealthy: "must_be_healthy",
2085
+ createdAt: "created_at",
2086
+ updatedAt: "updated_at",
2087
+ }))),
2088
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2089
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2090
+ }).pipe(Schema.encodeKeys({
2091
+ id: "id",
2092
+ description: "description",
2093
+ members: "members",
2094
+ createdAt: "created_at",
2095
+ updatedAt: "updated_at",
2096
+ }));
2097
+ export const updateMonitorGroup = API.make(() => ({
2098
+ input: UpdateMonitorGroupRequest,
2099
+ output: UpdateMonitorGroupResponse,
2100
+ errors: [],
2101
+ }));
2102
+ export const PatchMonitorGroupRequest =
2103
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2104
+ monitorGroupId: Schema.String.pipe(T.HttpPath("monitorGroupId")),
2105
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2106
+ id: Schema.String,
2107
+ description: Schema.String,
2108
+ members: Schema.Array(Schema.Struct({
2109
+ enabled: Schema.Boolean,
2110
+ monitorId: Schema.String,
2111
+ monitoringOnly: Schema.Boolean,
2112
+ mustBeHealthy: Schema.Boolean,
2113
+ }).pipe(Schema.encodeKeys({
2114
+ enabled: "enabled",
2115
+ monitorId: "monitor_id",
2116
+ monitoringOnly: "monitoring_only",
2117
+ mustBeHealthy: "must_be_healthy",
2118
+ }))),
2119
+ }).pipe(T.Http({
2120
+ method: "PATCH",
2121
+ path: "/accounts/{account_id}/load_balancers/monitor_groups/{monitorGroupId}",
2122
+ }));
2123
+ export const PatchMonitorGroupResponse =
2124
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2125
+ id: Schema.String,
2126
+ description: Schema.String,
2127
+ members: Schema.Array(Schema.Struct({
2128
+ enabled: Schema.Boolean,
2129
+ monitorId: Schema.String,
2130
+ monitoringOnly: Schema.Boolean,
2131
+ mustBeHealthy: Schema.Boolean,
2132
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2133
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2134
+ }).pipe(Schema.encodeKeys({
2135
+ enabled: "enabled",
2136
+ monitorId: "monitor_id",
2137
+ monitoringOnly: "monitoring_only",
2138
+ mustBeHealthy: "must_be_healthy",
2139
+ createdAt: "created_at",
2140
+ updatedAt: "updated_at",
2141
+ }))),
2142
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2143
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2144
+ }).pipe(Schema.encodeKeys({
2145
+ id: "id",
2146
+ description: "description",
2147
+ members: "members",
2148
+ createdAt: "created_at",
2149
+ updatedAt: "updated_at",
2150
+ }));
2151
+ export const patchMonitorGroup = API.make(() => ({
2152
+ input: PatchMonitorGroupRequest,
2153
+ output: PatchMonitorGroupResponse,
2154
+ errors: [],
2155
+ }));
2156
+ export const DeleteMonitorGroupRequest =
2157
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2158
+ monitorGroupId: Schema.String.pipe(T.HttpPath("monitorGroupId")),
2159
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2160
+ }).pipe(T.Http({
2161
+ method: "DELETE",
2162
+ path: "/accounts/{account_id}/load_balancers/monitor_groups/{monitorGroupId}",
2163
+ }));
2164
+ export const DeleteMonitorGroupResponse =
2165
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2166
+ id: Schema.String,
2167
+ description: Schema.String,
2168
+ members: Schema.Array(Schema.Struct({
2169
+ enabled: Schema.Boolean,
2170
+ monitorId: Schema.String,
2171
+ monitoringOnly: Schema.Boolean,
2172
+ mustBeHealthy: Schema.Boolean,
2173
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2174
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2175
+ }).pipe(Schema.encodeKeys({
2176
+ enabled: "enabled",
2177
+ monitorId: "monitor_id",
2178
+ monitoringOnly: "monitoring_only",
2179
+ mustBeHealthy: "must_be_healthy",
2180
+ createdAt: "created_at",
2181
+ updatedAt: "updated_at",
2182
+ }))),
2183
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2184
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2185
+ }).pipe(Schema.encodeKeys({
2186
+ id: "id",
2187
+ description: "description",
2188
+ members: "members",
2189
+ createdAt: "created_at",
2190
+ updatedAt: "updated_at",
2191
+ }));
2192
+ export const deleteMonitorGroup = API.make(() => ({
2193
+ input: DeleteMonitorGroupRequest,
2194
+ output: DeleteMonitorGroupResponse,
2195
+ errors: [],
2196
+ }));
2197
+ export const CreateMonitorPreviewRequest =
2198
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2199
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
2200
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2201
+ allowInsecure: Schema.optional(Schema.Boolean),
2202
+ consecutiveDown: Schema.optional(Schema.Number),
2203
+ consecutiveUp: Schema.optional(Schema.Number),
2204
+ description: Schema.optional(Schema.String),
2205
+ expectedBody: Schema.optional(Schema.String),
2206
+ expectedCodes: Schema.optional(Schema.String),
2207
+ followRedirects: Schema.optional(Schema.Boolean),
2208
+ header: Schema.optional(Schema.Struct({})),
2209
+ interval: Schema.optional(Schema.Number),
2210
+ method: Schema.optional(Schema.String),
2211
+ path: Schema.optional(Schema.String),
2212
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2213
+ probeZone: Schema.optional(Schema.String),
2214
+ retries: Schema.optional(Schema.Number),
2215
+ timeout: Schema.optional(Schema.Number),
2216
+ type: Schema.optional(Schema.Literals([
2217
+ "http",
2218
+ "https",
2219
+ "tcp",
2220
+ "udp_icmp",
2221
+ "icmp_ping",
2222
+ "smtp",
2223
+ ])),
2224
+ }).pipe(Schema.encodeKeys({
2225
+ allowInsecure: "allow_insecure",
2226
+ consecutiveDown: "consecutive_down",
2227
+ consecutiveUp: "consecutive_up",
2228
+ description: "description",
2229
+ expectedBody: "expected_body",
2230
+ expectedCodes: "expected_codes",
2231
+ followRedirects: "follow_redirects",
2232
+ header: "header",
2233
+ interval: "interval",
2234
+ method: "method",
2235
+ path: "path",
2236
+ port: "port",
2237
+ probeZone: "probe_zone",
2238
+ retries: "retries",
2239
+ timeout: "timeout",
2240
+ type: "type",
2241
+ }), T.Http({
2242
+ method: "POST",
2243
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}/preview",
2244
+ }));
2245
+ export const CreateMonitorPreviewResponse =
2246
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2247
+ pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2248
+ previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2249
+ }).pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }));
2250
+ export const createMonitorPreview = API.make(() => ({
2251
+ input: CreateMonitorPreviewRequest,
2252
+ output: CreateMonitorPreviewResponse,
2253
+ errors: [],
2254
+ }));
2255
+ export const GetMonitorReferenceRequest =
2256
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2257
+ monitorId: Schema.String.pipe(T.HttpPath("monitorId")),
2258
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2259
+ }).pipe(T.Http({
2260
+ method: "GET",
2261
+ path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}/references",
2262
+ }));
2263
+ export const GetMonitorReferenceResponse =
2264
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2265
+ referenceType: Schema.optional(Schema.Union([
2266
+ Schema.Literals(["*", "referral", "referrer"]),
2267
+ Schema.Null,
2268
+ ])),
2269
+ resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2270
+ resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
+ resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2272
+ }).pipe(Schema.encodeKeys({
2273
+ referenceType: "reference_type",
2274
+ resourceId: "resource_id",
2275
+ resourceName: "resource_name",
2276
+ resourceType: "resource_type",
2277
+ })));
2278
+ export const getMonitorReference = API.make(() => ({
2279
+ input: GetMonitorReferenceRequest,
2280
+ output: GetMonitorReferenceResponse,
2281
+ errors: [],
2282
+ }));
2283
+ export const GetPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2284
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2285
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2286
+ }).pipe(T.Http({
2287
+ method: "GET",
2288
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}",
2289
+ }));
2290
+ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2291
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2292
+ checkRegions: Schema.optional(Schema.Union([
2293
+ Schema.Array(Schema.Literals([
2294
+ "WNAM",
2295
+ "ENAM",
2296
+ "WEU",
2297
+ "EEU",
2298
+ "NSAM",
2299
+ "SSAM",
2300
+ "OC",
2301
+ "ME",
2302
+ "NAF",
2303
+ "SAF",
2304
+ "SEAS",
2305
+ "NEAS",
2306
+ "ALL_REGIONS",
2307
+ "SAS",
2308
+ ])),
2309
+ Schema.Null,
2310
+ ])),
2311
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2312
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2313
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2314
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2315
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2316
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2317
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2318
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2319
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2320
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2321
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2322
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2323
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2324
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2325
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2326
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2327
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2328
+ }).pipe(Schema.encodeKeys({
2329
+ id: "id",
2330
+ checkRegions: "check_regions",
2331
+ createdOn: "created_on",
2332
+ description: "description",
2333
+ disabledAt: "disabled_at",
2334
+ enabled: "enabled",
2335
+ latitude: "latitude",
2336
+ loadShedding: "load_shedding",
2337
+ longitude: "longitude",
2338
+ minimumOrigins: "minimum_origins",
2339
+ modifiedOn: "modified_on",
2340
+ monitor: "monitor",
2341
+ monitorGroup: "monitor_group",
2342
+ name: "name",
2343
+ networks: "networks",
2344
+ notificationEmail: "notification_email",
2345
+ notificationFilter: "notification_filter",
2346
+ originSteering: "origin_steering",
2347
+ origins: "origins",
2348
+ }));
2349
+ export const getPool = API.make(() => ({
2350
+ input: GetPoolRequest,
2351
+ output: GetPoolResponse,
2352
+ errors: [],
2353
+ }));
2354
+ export const ListPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2355
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2356
+ monitor: Schema.optional(Schema.String).pipe(T.HttpQuery("monitor")),
2357
+ }).pipe(T.Http({
2358
+ method: "GET",
2359
+ path: "/accounts/{account_id}/load_balancers/pools",
2360
+ }));
2361
+ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2362
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2363
+ checkRegions: Schema.optional(Schema.Union([
2364
+ Schema.Array(Schema.Literals([
2365
+ "WNAM",
2366
+ "ENAM",
2367
+ "WEU",
2368
+ "EEU",
2369
+ "NSAM",
2370
+ "SSAM",
2371
+ "OC",
2372
+ "ME",
2373
+ "NAF",
2374
+ "SAF",
2375
+ "SEAS",
2376
+ "NEAS",
2377
+ "ALL_REGIONS",
2378
+ "SAS",
2379
+ ])),
2380
+ Schema.Null,
2381
+ ])),
2382
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2383
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2384
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2385
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2386
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2387
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2388
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2389
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2390
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2391
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2392
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2393
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2394
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2395
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2396
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2397
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2398
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2399
+ }).pipe(Schema.encodeKeys({
2400
+ id: "id",
2401
+ checkRegions: "check_regions",
2402
+ createdOn: "created_on",
2403
+ description: "description",
2404
+ disabledAt: "disabled_at",
2405
+ enabled: "enabled",
2406
+ latitude: "latitude",
2407
+ loadShedding: "load_shedding",
2408
+ longitude: "longitude",
2409
+ minimumOrigins: "minimum_origins",
2410
+ modifiedOn: "modified_on",
2411
+ monitor: "monitor",
2412
+ monitorGroup: "monitor_group",
2413
+ name: "name",
2414
+ networks: "networks",
2415
+ notificationEmail: "notification_email",
2416
+ notificationFilter: "notification_filter",
2417
+ originSteering: "origin_steering",
2418
+ origins: "origins",
2419
+ })));
2420
+ export const listPools = API.make(() => ({
2421
+ input: ListPoolsRequest,
2422
+ output: ListPoolsResponse,
2423
+ errors: [],
2424
+ }));
2425
+ export const CreatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2426
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2427
+ name: Schema.String,
2428
+ origins: Schema.Array(Schema.Unknown),
2429
+ description: Schema.optional(Schema.String),
2430
+ enabled: Schema.optional(Schema.Boolean),
2431
+ latitude: Schema.optional(Schema.Number),
2432
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2433
+ longitude: Schema.optional(Schema.Number),
2434
+ minimumOrigins: Schema.optional(Schema.Number),
2435
+ monitor: Schema.optional(Schema.String),
2436
+ monitorGroup: Schema.optional(Schema.String),
2437
+ notificationEmail: Schema.optional(Schema.String),
2438
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2439
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2440
+ }).pipe(Schema.encodeKeys({
2441
+ name: "name",
2442
+ origins: "origins",
2443
+ description: "description",
2444
+ enabled: "enabled",
2445
+ latitude: "latitude",
2446
+ loadShedding: "load_shedding",
2447
+ longitude: "longitude",
2448
+ minimumOrigins: "minimum_origins",
2449
+ monitor: "monitor",
2450
+ monitorGroup: "monitor_group",
2451
+ notificationEmail: "notification_email",
2452
+ notificationFilter: "notification_filter",
2453
+ originSteering: "origin_steering",
2454
+ }), T.Http({
2455
+ method: "POST",
2456
+ path: "/accounts/{account_id}/load_balancers/pools",
2457
+ }));
2458
+ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2459
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2460
+ checkRegions: Schema.optional(Schema.Union([
2461
+ Schema.Array(Schema.Literals([
2462
+ "WNAM",
2463
+ "ENAM",
2464
+ "WEU",
2465
+ "EEU",
2466
+ "NSAM",
2467
+ "SSAM",
2468
+ "OC",
2469
+ "ME",
2470
+ "NAF",
2471
+ "SAF",
2472
+ "SEAS",
2473
+ "NEAS",
2474
+ "ALL_REGIONS",
2475
+ "SAS",
2476
+ ])),
2477
+ Schema.Null,
2478
+ ])),
2479
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2480
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2481
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2482
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2483
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2484
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2485
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2486
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2487
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2488
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2489
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2490
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2491
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2492
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2493
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2494
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2495
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2496
+ }).pipe(Schema.encodeKeys({
2497
+ id: "id",
2498
+ checkRegions: "check_regions",
2499
+ createdOn: "created_on",
2500
+ description: "description",
2501
+ disabledAt: "disabled_at",
2502
+ enabled: "enabled",
2503
+ latitude: "latitude",
2504
+ loadShedding: "load_shedding",
2505
+ longitude: "longitude",
2506
+ minimumOrigins: "minimum_origins",
2507
+ modifiedOn: "modified_on",
2508
+ monitor: "monitor",
2509
+ monitorGroup: "monitor_group",
2510
+ name: "name",
2511
+ networks: "networks",
2512
+ notificationEmail: "notification_email",
2513
+ notificationFilter: "notification_filter",
2514
+ originSteering: "origin_steering",
2515
+ origins: "origins",
2516
+ }));
2517
+ export const createPool = API.make(() => ({
2518
+ input: CreatePoolRequest,
2519
+ output: CreatePoolResponse,
2520
+ errors: [],
2521
+ }));
2522
+ export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2523
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2524
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2525
+ name: Schema.String,
2526
+ origins: Schema.Array(Schema.Unknown),
2527
+ checkRegions: Schema.optional(Schema.Union([
2528
+ Schema.Array(Schema.Literals([
2529
+ "WNAM",
2530
+ "ENAM",
2531
+ "WEU",
2532
+ "EEU",
2533
+ "NSAM",
2534
+ "SSAM",
2535
+ "OC",
2536
+ "ME",
2537
+ "NAF",
2538
+ "SAF",
2539
+ "SEAS",
2540
+ "NEAS",
2541
+ "ALL_REGIONS",
2542
+ "SAS",
2543
+ ])),
2544
+ Schema.Null,
2545
+ ])),
2546
+ description: Schema.optional(Schema.String),
2547
+ enabled: Schema.optional(Schema.Boolean),
2548
+ latitude: Schema.optional(Schema.Number),
2549
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2550
+ longitude: Schema.optional(Schema.Number),
2551
+ minimumOrigins: Schema.optional(Schema.Number),
2552
+ monitor: Schema.optional(Schema.String),
2553
+ monitorGroup: Schema.optional(Schema.String),
2554
+ notificationEmail: Schema.optional(Schema.String),
2555
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2556
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2557
+ }).pipe(Schema.encodeKeys({
2558
+ name: "name",
2559
+ origins: "origins",
2560
+ checkRegions: "check_regions",
2561
+ description: "description",
2562
+ enabled: "enabled",
2563
+ latitude: "latitude",
2564
+ loadShedding: "load_shedding",
2565
+ longitude: "longitude",
2566
+ minimumOrigins: "minimum_origins",
2567
+ monitor: "monitor",
2568
+ monitorGroup: "monitor_group",
2569
+ notificationEmail: "notification_email",
2570
+ notificationFilter: "notification_filter",
2571
+ originSteering: "origin_steering",
2572
+ }), T.Http({
2573
+ method: "PUT",
2574
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}",
2575
+ }));
2576
+ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2577
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2578
+ checkRegions: Schema.optional(Schema.Union([
2579
+ Schema.Array(Schema.Literals([
2580
+ "WNAM",
2581
+ "ENAM",
2582
+ "WEU",
2583
+ "EEU",
2584
+ "NSAM",
2585
+ "SSAM",
2586
+ "OC",
2587
+ "ME",
2588
+ "NAF",
2589
+ "SAF",
2590
+ "SEAS",
2591
+ "NEAS",
2592
+ "ALL_REGIONS",
2593
+ "SAS",
2594
+ ])),
2595
+ Schema.Null,
2596
+ ])),
2597
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2598
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2599
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2600
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2601
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2602
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2603
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2604
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2605
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2606
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2607
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2608
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2609
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2610
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2611
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2612
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2613
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2614
+ }).pipe(Schema.encodeKeys({
2615
+ id: "id",
2616
+ checkRegions: "check_regions",
2617
+ createdOn: "created_on",
2618
+ description: "description",
2619
+ disabledAt: "disabled_at",
2620
+ enabled: "enabled",
2621
+ latitude: "latitude",
2622
+ loadShedding: "load_shedding",
2623
+ longitude: "longitude",
2624
+ minimumOrigins: "minimum_origins",
2625
+ modifiedOn: "modified_on",
2626
+ monitor: "monitor",
2627
+ monitorGroup: "monitor_group",
2628
+ name: "name",
2629
+ networks: "networks",
2630
+ notificationEmail: "notification_email",
2631
+ notificationFilter: "notification_filter",
2632
+ originSteering: "origin_steering",
2633
+ origins: "origins",
2634
+ }));
2635
+ export const updatePool = API.make(() => ({
2636
+ input: UpdatePoolRequest,
2637
+ output: UpdatePoolResponse,
2638
+ errors: [],
2639
+ }));
2640
+ export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2641
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2642
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2643
+ checkRegions: Schema.optional(Schema.Union([
2644
+ Schema.Array(Schema.Literals([
2645
+ "WNAM",
2646
+ "ENAM",
2647
+ "WEU",
2648
+ "EEU",
2649
+ "NSAM",
2650
+ "SSAM",
2651
+ "OC",
2652
+ "ME",
2653
+ "NAF",
2654
+ "SAF",
2655
+ "SEAS",
2656
+ "NEAS",
2657
+ "ALL_REGIONS",
2658
+ "SAS",
2659
+ ])),
2660
+ Schema.Null,
2661
+ ])),
2662
+ description: Schema.optional(Schema.String),
2663
+ enabled: Schema.optional(Schema.Boolean),
2664
+ latitude: Schema.optional(Schema.Number),
2665
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2666
+ longitude: Schema.optional(Schema.Number),
2667
+ minimumOrigins: Schema.optional(Schema.Number),
2668
+ monitor: Schema.optional(Schema.String),
2669
+ monitorGroup: Schema.optional(Schema.String),
2670
+ name: Schema.optional(Schema.String),
2671
+ notificationEmail: Schema.optional(Schema.String),
2672
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2673
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2674
+ origins: Schema.optional(Schema.Array(Schema.Unknown)),
2675
+ }).pipe(Schema.encodeKeys({
2676
+ checkRegions: "check_regions",
2677
+ description: "description",
2678
+ enabled: "enabled",
2679
+ latitude: "latitude",
2680
+ loadShedding: "load_shedding",
2681
+ longitude: "longitude",
2682
+ minimumOrigins: "minimum_origins",
2683
+ monitor: "monitor",
2684
+ monitorGroup: "monitor_group",
2685
+ name: "name",
2686
+ notificationEmail: "notification_email",
2687
+ notificationFilter: "notification_filter",
2688
+ originSteering: "origin_steering",
2689
+ origins: "origins",
2690
+ }), T.Http({
2691
+ method: "PATCH",
2692
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}",
2693
+ }));
2694
+ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2695
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2696
+ checkRegions: Schema.optional(Schema.Union([
2697
+ Schema.Array(Schema.Literals([
2698
+ "WNAM",
2699
+ "ENAM",
2700
+ "WEU",
2701
+ "EEU",
2702
+ "NSAM",
2703
+ "SSAM",
2704
+ "OC",
2705
+ "ME",
2706
+ "NAF",
2707
+ "SAF",
2708
+ "SEAS",
2709
+ "NEAS",
2710
+ "ALL_REGIONS",
2711
+ "SAS",
2712
+ ])),
2713
+ Schema.Null,
2714
+ ])),
2715
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2716
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2717
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2718
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2719
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2720
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2721
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2722
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2723
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2724
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2725
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2726
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2727
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2728
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2729
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2730
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2731
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2732
+ }).pipe(Schema.encodeKeys({
2733
+ id: "id",
2734
+ checkRegions: "check_regions",
2735
+ createdOn: "created_on",
2736
+ description: "description",
2737
+ disabledAt: "disabled_at",
2738
+ enabled: "enabled",
2739
+ latitude: "latitude",
2740
+ loadShedding: "load_shedding",
2741
+ longitude: "longitude",
2742
+ minimumOrigins: "minimum_origins",
2743
+ modifiedOn: "modified_on",
2744
+ monitor: "monitor",
2745
+ monitorGroup: "monitor_group",
2746
+ name: "name",
2747
+ networks: "networks",
2748
+ notificationEmail: "notification_email",
2749
+ notificationFilter: "notification_filter",
2750
+ originSteering: "origin_steering",
2751
+ origins: "origins",
2752
+ }));
2753
+ export const patchPool = API.make(() => ({
2754
+ input: PatchPoolRequest,
2755
+ output: PatchPoolResponse,
2756
+ errors: [],
2757
+ }));
2758
+ export const DeletePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2759
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2760
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2761
+ }).pipe(T.Http({
2762
+ method: "DELETE",
2763
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}",
2764
+ }));
2765
+ export const DeletePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2766
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2767
+ });
2768
+ export const deletePool = API.make(() => ({
2769
+ input: DeletePoolRequest,
2770
+ output: DeletePoolResponse,
2771
+ errors: [],
2772
+ }));
2773
+ export const BulkPatchPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2774
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2775
+ notificationEmail: Schema.optional(Schema.Literal("")),
2776
+ }).pipe(Schema.encodeKeys({ notificationEmail: "notification_email" }), T.Http({
2777
+ method: "PATCH",
2778
+ path: "/accounts/{account_id}/load_balancers/pools",
2779
+ }));
2780
+ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2781
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2782
+ checkRegions: Schema.optional(Schema.Union([
2783
+ Schema.Array(Schema.Literals([
2784
+ "WNAM",
2785
+ "ENAM",
2786
+ "WEU",
2787
+ "EEU",
2788
+ "NSAM",
2789
+ "SSAM",
2790
+ "OC",
2791
+ "ME",
2792
+ "NAF",
2793
+ "SAF",
2794
+ "SEAS",
2795
+ "NEAS",
2796
+ "ALL_REGIONS",
2797
+ "SAS",
2798
+ ])),
2799
+ Schema.Null,
2800
+ ])),
2801
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2802
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2803
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2804
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2805
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2806
+ loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2807
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2808
+ minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2809
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2810
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2811
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2812
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2813
+ networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2814
+ notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2815
+ notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2816
+ originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2817
+ origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2818
+ }).pipe(Schema.encodeKeys({
2819
+ id: "id",
2820
+ checkRegions: "check_regions",
2821
+ createdOn: "created_on",
2822
+ description: "description",
2823
+ disabledAt: "disabled_at",
2824
+ enabled: "enabled",
2825
+ latitude: "latitude",
2826
+ loadShedding: "load_shedding",
2827
+ longitude: "longitude",
2828
+ minimumOrigins: "minimum_origins",
2829
+ modifiedOn: "modified_on",
2830
+ monitor: "monitor",
2831
+ monitorGroup: "monitor_group",
2832
+ name: "name",
2833
+ networks: "networks",
2834
+ notificationEmail: "notification_email",
2835
+ notificationFilter: "notification_filter",
2836
+ originSteering: "origin_steering",
2837
+ origins: "origins",
2838
+ })));
2839
+ export const bulkPatchPools = API.make(() => ({
2840
+ input: BulkPatchPoolsRequest,
2841
+ output: BulkPatchPoolsResponse,
2842
+ errors: [],
2843
+ }));
2844
+ export const GetPoolHealthRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2845
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2846
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2847
+ }).pipe(T.Http({
2848
+ method: "GET",
2849
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}/health",
2850
+ }));
2851
+ export const GetPoolHealthResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2852
+ poolId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2853
+ popHealth: Schema.optional(Schema.Union([
2854
+ Schema.Struct({
2855
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2856
+ origins: Schema.optional(Schema.Union([
2857
+ Schema.Array(Schema.Struct({
2858
+ ip: Schema.optional(Schema.Union([
2859
+ Schema.Struct({
2860
+ failureReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2861
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2862
+ responseCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2863
+ rtt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2864
+ }).pipe(Schema.encodeKeys({
2865
+ failureReason: "failure_reason",
2866
+ healthy: "healthy",
2867
+ responseCode: "response_code",
2868
+ rtt: "rtt",
2869
+ })),
2870
+ Schema.Null,
2871
+ ])),
2872
+ })),
2873
+ Schema.Null,
2874
+ ])),
2875
+ }),
2876
+ Schema.Null,
2877
+ ])),
2878
+ }).pipe(Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }));
2879
+ export const getPoolHealth = API.make(() => ({
2880
+ input: GetPoolHealthRequest,
2881
+ output: GetPoolHealthResponse,
2882
+ errors: [],
2883
+ }));
2884
+ export const CreatePoolHealthRequest =
2885
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2886
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2887
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2888
+ allowInsecure: Schema.optional(Schema.Boolean),
2889
+ consecutiveDown: Schema.optional(Schema.Number),
2890
+ consecutiveUp: Schema.optional(Schema.Number),
2891
+ description: Schema.optional(Schema.String),
2892
+ expectedBody: Schema.optional(Schema.String),
2893
+ expectedCodes: Schema.optional(Schema.String),
2894
+ followRedirects: Schema.optional(Schema.Boolean),
2895
+ header: Schema.optional(Schema.Struct({})),
2896
+ interval: Schema.optional(Schema.Number),
2897
+ method: Schema.optional(Schema.String),
2898
+ path: Schema.optional(Schema.String),
2899
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2900
+ probeZone: Schema.optional(Schema.String),
2901
+ retries: Schema.optional(Schema.Number),
2902
+ timeout: Schema.optional(Schema.Number),
2903
+ type: Schema.optional(Schema.Literals([
2904
+ "http",
2905
+ "https",
2906
+ "tcp",
2907
+ "udp_icmp",
2908
+ "icmp_ping",
2909
+ "smtp",
2910
+ ])),
2911
+ }).pipe(Schema.encodeKeys({
2912
+ allowInsecure: "allow_insecure",
2913
+ consecutiveDown: "consecutive_down",
2914
+ consecutiveUp: "consecutive_up",
2915
+ description: "description",
2916
+ expectedBody: "expected_body",
2917
+ expectedCodes: "expected_codes",
2918
+ followRedirects: "follow_redirects",
2919
+ header: "header",
2920
+ interval: "interval",
2921
+ method: "method",
2922
+ path: "path",
2923
+ port: "port",
2924
+ probeZone: "probe_zone",
2925
+ retries: "retries",
2926
+ timeout: "timeout",
2927
+ type: "type",
2928
+ }), T.Http({
2929
+ method: "POST",
2930
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}/preview",
2931
+ }));
2932
+ export const CreatePoolHealthResponse =
2933
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2934
+ pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2935
+ previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2936
+ }).pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }));
2937
+ export const createPoolHealth = API.make(() => ({
2938
+ input: CreatePoolHealthRequest,
2939
+ output: CreatePoolHealthResponse,
2940
+ errors: [],
2941
+ }));
2942
+ export const GetPoolReferenceRequest =
2943
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2944
+ poolId: Schema.String.pipe(T.HttpPath("poolId")),
2945
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2946
+ }).pipe(T.Http({
2947
+ method: "GET",
2948
+ path: "/accounts/{account_id}/load_balancers/pools/{poolId}/references",
2949
+ }));
2950
+ export const GetPoolReferenceResponse =
2951
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2952
+ referenceType: Schema.optional(Schema.Union([
2953
+ Schema.Literals(["*", "referral", "referrer"]),
2954
+ Schema.Null,
2955
+ ])),
2956
+ resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2957
+ resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2958
+ resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2959
+ }).pipe(Schema.encodeKeys({
2960
+ referenceType: "reference_type",
2961
+ resourceId: "resource_id",
2962
+ resourceName: "resource_name",
2963
+ resourceType: "resource_type",
2964
+ })));
2965
+ export const getPoolReference = API.make(() => ({
2966
+ input: GetPoolReferenceRequest,
2967
+ output: GetPoolReferenceResponse,
2968
+ errors: [],
2969
+ }));
2970
+ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2971
+ previewId: Schema.String.pipe(T.HttpPath("previewId")),
2972
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2973
+ }).pipe(T.Http({
2974
+ method: "GET",
2975
+ path: "/accounts/{account_id}/load_balancers/preview/{previewId}",
2976
+ }));
2977
+ export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
2978
+ export const getPreview = API.make(() => ({
2979
+ input: GetPreviewRequest,
2980
+ output: GetPreviewResponse,
2981
+ errors: [],
2982
+ }));
2983
+ export const GetRegionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2984
+ regionId: Schema.Literals([
2985
+ "WNAM",
2986
+ "ENAM",
2987
+ "WEU",
2988
+ "EEU",
2989
+ "NSAM",
2990
+ "SSAM",
2991
+ "OC",
2992
+ "ME",
2993
+ "NAF",
2994
+ "SAF",
2995
+ "SAS",
2996
+ "SEAS",
2997
+ "NEAS",
2998
+ ]).pipe(T.HttpPath("regionId")),
2999
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3000
+ }).pipe(T.Http({
3001
+ method: "GET",
3002
+ path: "/accounts/{account_id}/load_balancers/regions/{regionId}",
3003
+ }));
3004
+ export const GetRegionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3005
+ Schema.String,
3006
+ Schema.Null,
3007
+ ]);
3008
+ export const getRegion = API.make(() => ({
3009
+ input: GetRegionRequest,
3010
+ output: GetRegionResponse,
3011
+ errors: [],
3012
+ }));
3013
+ export const ListRegionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3014
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3015
+ countryCodeA2: Schema.optional(Schema.String).pipe(T.HttpQuery("country_code_a2")),
3016
+ subdivisionCode: Schema.optional(Schema.String).pipe(T.HttpQuery("subdivision_code")),
3017
+ subdivisionCodeA2: Schema.optional(Schema.String).pipe(T.HttpQuery("subdivision_code_a2")),
3018
+ }).pipe(T.Http({
3019
+ method: "GET",
3020
+ path: "/accounts/{account_id}/load_balancers/regions",
3021
+ }));
3022
+ export const ListRegionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3023
+ Schema.String,
3024
+ Schema.Null,
3025
+ ]);
3026
+ export const listRegions = API.make(() => ({
3027
+ input: ListRegionsRequest,
3028
+ output: ListRegionsResponse,
3029
+ errors: [],
3030
+ }));
3031
+ export const ListSearchesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3032
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3033
+ query: Schema.optional(Schema.String).pipe(T.HttpQuery("query")),
3034
+ references: Schema.optional(Schema.Literals(["", "*", "referral", "referrer"])).pipe(T.HttpQuery("references")),
3035
+ }).pipe(T.Http({
3036
+ method: "GET",
3037
+ path: "/accounts/{account_id}/load_balancers/search",
3038
+ }));
3039
+ export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
3040
+ resources: Schema.optional(Schema.Union([
3041
+ Schema.Array(Schema.Struct({
3042
+ referenceType: Schema.optional(Schema.Union([
3043
+ Schema.Literals(["referral", "referrer"]),
3044
+ Schema.Null,
3045
+ ])),
3046
+ references: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3047
+ resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3048
+ resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3049
+ resourceType: Schema.optional(Schema.Union([
3050
+ Schema.Literals(["load_balancer", "monitor", "pool"]),
3051
+ Schema.Null,
3052
+ ])),
3053
+ }).pipe(Schema.encodeKeys({
3054
+ referenceType: "reference_type",
3055
+ references: "references",
3056
+ resourceId: "resource_id",
3057
+ resourceName: "resource_name",
3058
+ resourceType: "resource_type",
3059
+ }))),
3060
+ Schema.Null,
3061
+ ])),
3062
+ }));
3063
+ export const listSearches = API.make(() => ({
3064
+ input: ListSearchesRequest,
3065
+ output: ListSearchesResponse,
3066
+ errors: [],
3067
+ }));
3068
+ //# sourceMappingURL=load-balancers.js.map