@distilled.cloud/cloudflare 0.0.0-john

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