@distilled.cloud/cloudflare 0.2.5-alpha2 → 0.3.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service load-balancers
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -190,7 +191,8 @@ export const GetLoadBalancerResponse =
190
191
  ])),
191
192
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
192
193
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
193
- }).pipe(Schema.encodeKeys({
194
+ })
195
+ .pipe(Schema.encodeKeys({
194
196
  id: "id",
195
197
  adaptiveRouting: "adaptive_routing",
196
198
  countryPools: "country_pools",
@@ -214,7 +216,8 @@ export const GetLoadBalancerResponse =
214
216
  steeringPolicy: "steering_policy",
215
217
  ttl: "ttl",
216
218
  zoneName: "zone_name",
217
- }));
219
+ }))
220
+ .pipe(T.ResponsePath("result"));
218
221
  export const getLoadBalancer = API.make(() => ({
219
222
  input: GetLoadBalancerRequest,
220
223
  output: GetLoadBalancerResponse,
@@ -225,209 +228,220 @@ export const ListLoadBalancersRequest =
225
228
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
226
229
  }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/load_balancers" }));
227
230
  export const ListLoadBalancersResponse =
228
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
229
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
230
- adaptiveRouting: Schema.optional(Schema.Union([
231
- Schema.Struct({
232
- failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
233
- }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
234
- Schema.Null,
235
- ])),
236
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
237
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
238
- defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
239
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
240
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
241
- fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
242
- locationStrategy: Schema.optional(Schema.Union([
243
- Schema.Struct({
244
- mode: Schema.optional(Schema.Union([
245
- Schema.Literals(["pop", "resolver_ip"]),
246
- Schema.Null,
247
- ])),
248
- preferEcs: Schema.optional(Schema.Union([
249
- Schema.Literals(["always", "never", "proximity", "geo"]),
250
- Schema.Null,
251
- ])),
252
- }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
253
- Schema.Null,
254
- ])),
255
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
256
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
257
- networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
258
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
259
- proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
260
- randomSteering: Schema.optional(Schema.Union([
261
- Schema.Struct({
262
- defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
263
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
264
- }).pipe(Schema.encodeKeys({
265
- defaultWeight: "default_weight",
266
- poolWeights: "pool_weights",
267
- })),
268
- Schema.Null,
269
- ])),
270
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
271
- rules: Schema.optional(Schema.Union([
272
- Schema.Array(Schema.Struct({
273
- condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
274
- disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
275
- fixedResponse: Schema.optional(Schema.Union([
276
- Schema.Struct({
277
- contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
278
- location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
279
- messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
- statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
281
- }).pipe(Schema.encodeKeys({
282
- contentType: "content_type",
283
- location: "location",
284
- messageBody: "message_body",
285
- statusCode: "status_code",
286
- })),
287
- Schema.Null,
288
- ])),
289
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
290
- overrides: Schema.optional(Schema.Union([
291
- Schema.Struct({
292
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
293
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
294
- defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
295
- fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
296
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
297
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
298
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
299
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
300
- sessionAffinity: Schema.optional(Schema.Union([
301
- Schema.Literals([
302
- "none",
303
- "cookie",
304
- "ip_cookie",
305
- "header",
306
- ]),
307
- Schema.Null,
308
- ])),
309
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
310
- sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
311
- steeringPolicy: Schema.optional(Schema.Union([
312
- Schema.Literals([
313
- "",
314
- "off",
315
- "geo",
316
- "random",
317
- "dynamic_latency",
318
- "proximity",
319
- "least_outstanding_requests",
320
- "least_connections",
321
- ]),
322
- Schema.Null,
323
- ])),
324
- ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
325
- }).pipe(Schema.encodeKeys({
326
- adaptiveRouting: "adaptive_routing",
327
- countryPools: "country_pools",
328
- defaultPools: "default_pools",
329
- fallbackPool: "fallback_pool",
330
- locationStrategy: "location_strategy",
331
- popPools: "pop_pools",
332
- randomSteering: "random_steering",
333
- regionPools: "region_pools",
334
- sessionAffinity: "session_affinity",
335
- sessionAffinityAttributes: "session_affinity_attributes",
336
- sessionAffinityTtl: "session_affinity_ttl",
337
- steeringPolicy: "steering_policy",
338
- ttl: "ttl",
339
- })),
340
- Schema.Null,
341
- ])),
342
- priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
343
- terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
344
- }).pipe(Schema.encodeKeys({
345
- condition: "condition",
346
- disabled: "disabled",
347
- fixedResponse: "fixed_response",
348
- name: "name",
349
- overrides: "overrides",
350
- priority: "priority",
351
- terminates: "terminates",
352
- }))),
353
- Schema.Null,
354
- ])),
355
- sessionAffinity: Schema.optional(Schema.Union([
356
- Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
357
- Schema.Null,
358
- ])),
359
- sessionAffinityAttributes: Schema.optional(Schema.Union([
360
- Schema.Struct({
361
- drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
362
- headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
363
- requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
364
- samesite: Schema.optional(Schema.Union([
365
- Schema.Literals(["Auto", "Lax", "None", "Strict"]),
366
- Schema.Null,
367
- ])),
368
- secure: Schema.optional(Schema.Union([
369
- Schema.Literals(["Auto", "Always", "Never"]),
370
- Schema.Null,
371
- ])),
372
- zeroDowntimeFailover: Schema.optional(Schema.Union([
373
- Schema.Literals(["none", "temporary", "sticky"]),
374
- Schema.Null,
375
- ])),
376
- }).pipe(Schema.encodeKeys({
377
- drainDuration: "drain_duration",
378
- headers: "headers",
379
- requireAllHeaders: "require_all_headers",
380
- samesite: "samesite",
381
- secure: "secure",
382
- zeroDowntimeFailover: "zero_downtime_failover",
383
- })),
384
- Schema.Null,
385
- ])),
386
- sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
387
- steeringPolicy: Schema.optional(Schema.Union([
388
- Schema.Literals([
389
- "",
390
- "off",
391
- "geo",
392
- "random",
393
- "dynamic_latency",
394
- "proximity",
395
- "least_outstanding_requests",
396
- "least_connections",
397
- ]),
398
- Schema.Null,
399
- ])),
400
- ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
- zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
402
- }).pipe(Schema.encodeKeys({
403
- id: "id",
404
- adaptiveRouting: "adaptive_routing",
405
- countryPools: "country_pools",
406
- createdOn: "created_on",
407
- defaultPools: "default_pools",
408
- description: "description",
409
- enabled: "enabled",
410
- fallbackPool: "fallback_pool",
411
- locationStrategy: "location_strategy",
412
- modifiedOn: "modified_on",
413
- name: "name",
414
- networks: "networks",
415
- popPools: "pop_pools",
416
- proxied: "proxied",
417
- randomSteering: "random_steering",
418
- regionPools: "region_pools",
419
- rules: "rules",
420
- sessionAffinity: "session_affinity",
421
- sessionAffinityAttributes: "session_affinity_attributes",
422
- sessionAffinityTtl: "session_affinity_ttl",
423
- steeringPolicy: "steering_policy",
424
- ttl: "ttl",
425
- zoneName: "zone_name",
426
- })));
427
- export const listLoadBalancers = API.make(() => ({
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(() => ({
428
438
  input: ListLoadBalancersRequest,
429
439
  output: ListLoadBalancersResponse,
430
440
  errors: [],
441
+ pagination: {
442
+ mode: "single",
443
+ items: "result",
444
+ },
431
445
  }));
432
446
  export const CreateLoadBalancerRequest =
433
447
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -742,7 +756,8 @@ export const CreateLoadBalancerResponse =
742
756
  ])),
743
757
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
744
758
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
745
- }).pipe(Schema.encodeKeys({
759
+ })
760
+ .pipe(Schema.encodeKeys({
746
761
  id: "id",
747
762
  adaptiveRouting: "adaptive_routing",
748
763
  countryPools: "country_pools",
@@ -766,7 +781,8 @@ export const CreateLoadBalancerResponse =
766
781
  steeringPolicy: "steering_policy",
767
782
  ttl: "ttl",
768
783
  zoneName: "zone_name",
769
- }));
784
+ }))
785
+ .pipe(T.ResponsePath("result"));
770
786
  export const createLoadBalancer = API.make(() => ({
771
787
  input: CreateLoadBalancerRequest,
772
788
  output: CreateLoadBalancerResponse,
@@ -1091,7 +1107,8 @@ export const UpdateLoadBalancerResponse =
1091
1107
  ])),
1092
1108
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1093
1109
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1094
- }).pipe(Schema.encodeKeys({
1110
+ })
1111
+ .pipe(Schema.encodeKeys({
1095
1112
  id: "id",
1096
1113
  adaptiveRouting: "adaptive_routing",
1097
1114
  countryPools: "country_pools",
@@ -1115,7 +1132,8 @@ export const UpdateLoadBalancerResponse =
1115
1132
  steeringPolicy: "steering_policy",
1116
1133
  ttl: "ttl",
1117
1134
  zoneName: "zone_name",
1118
- }));
1135
+ }))
1136
+ .pipe(T.ResponsePath("result"));
1119
1137
  export const updateLoadBalancer = API.make(() => ({
1120
1138
  input: UpdateLoadBalancerRequest,
1121
1139
  output: UpdateLoadBalancerResponse,
@@ -1438,7 +1456,8 @@ export const PatchLoadBalancerResponse =
1438
1456
  ])),
1439
1457
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1440
1458
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1441
- }).pipe(Schema.encodeKeys({
1459
+ })
1460
+ .pipe(Schema.encodeKeys({
1442
1461
  id: "id",
1443
1462
  adaptiveRouting: "adaptive_routing",
1444
1463
  countryPools: "country_pools",
@@ -1462,7 +1481,8 @@ export const PatchLoadBalancerResponse =
1462
1481
  steeringPolicy: "steering_policy",
1463
1482
  ttl: "ttl",
1464
1483
  zoneName: "zone_name",
1465
- }));
1484
+ }))
1485
+ .pipe(T.ResponsePath("result"));
1466
1486
  export const patchLoadBalancer = API.make(() => ({
1467
1487
  input: PatchLoadBalancerRequest,
1468
1488
  output: PatchLoadBalancerResponse,
@@ -1479,7 +1499,7 @@ export const DeleteLoadBalancerRequest =
1479
1499
  export const DeleteLoadBalancerResponse =
1480
1500
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1481
1501
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1482
- });
1502
+ }).pipe(T.ResponsePath("result"));
1483
1503
  export const deleteLoadBalancer = API.make(() => ({
1484
1504
  input: DeleteLoadBalancerRequest,
1485
1505
  output: DeleteLoadBalancerResponse,
@@ -1522,7 +1542,8 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1522
1542
  ]),
1523
1543
  Schema.Null,
1524
1544
  ])),
1525
- }).pipe(Schema.encodeKeys({
1545
+ })
1546
+ .pipe(Schema.encodeKeys({
1526
1547
  id: "id",
1527
1548
  allowInsecure: "allow_insecure",
1528
1549
  consecutiveDown: "consecutive_down",
@@ -1542,7 +1563,8 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1542
1563
  retries: "retries",
1543
1564
  timeout: "timeout",
1544
1565
  type: "type",
1545
- }));
1566
+ }))
1567
+ .pipe(T.ResponsePath("result"));
1546
1568
  export const getMonitor = API.make(() => ({
1547
1569
  input: GetMonitorRequest,
1548
1570
  output: GetMonitorResponse,
@@ -1554,61 +1576,67 @@ export const ListMonitorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1554
1576
  method: "GET",
1555
1577
  path: "/accounts/{account_id}/load_balancers/monitors",
1556
1578
  }));
1557
- export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1558
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1559
- allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1560
- consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1561
- consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1562
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1563
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1564
- expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1565
- expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1566
- followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1567
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1568
- interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1569
- method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1570
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1571
- path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1572
- port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1573
- probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1574
- retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1575
- timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1576
- type: Schema.optional(Schema.Union([
1577
- Schema.Literals([
1578
- "http",
1579
- "https",
1580
- "tcp",
1581
- "udp_icmp",
1582
- "icmp_ping",
1583
- "smtp",
1584
- ]),
1585
- Schema.Null,
1586
- ])),
1587
- }).pipe(Schema.encodeKeys({
1588
- id: "id",
1589
- allowInsecure: "allow_insecure",
1590
- consecutiveDown: "consecutive_down",
1591
- consecutiveUp: "consecutive_up",
1592
- createdOn: "created_on",
1593
- description: "description",
1594
- expectedBody: "expected_body",
1595
- expectedCodes: "expected_codes",
1596
- followRedirects: "follow_redirects",
1597
- header: "header",
1598
- interval: "interval",
1599
- method: "method",
1600
- modifiedOn: "modified_on",
1601
- path: "path",
1602
- port: "port",
1603
- probeZone: "probe_zone",
1604
- retries: "retries",
1605
- timeout: "timeout",
1606
- type: "type",
1607
- })));
1608
- export const listMonitors = API.make(() => ({
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(() => ({
1609
1633
  input: ListMonitorsRequest,
1610
1634
  output: ListMonitorsResponse,
1611
1635
  errors: [],
1636
+ pagination: {
1637
+ mode: "single",
1638
+ items: "result",
1639
+ },
1612
1640
  }));
1613
1641
  export const CreateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1614
1642
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -1679,7 +1707,8 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1679
1707
  ]),
1680
1708
  Schema.Null,
1681
1709
  ])),
1682
- }).pipe(Schema.encodeKeys({
1710
+ })
1711
+ .pipe(Schema.encodeKeys({
1683
1712
  id: "id",
1684
1713
  allowInsecure: "allow_insecure",
1685
1714
  consecutiveDown: "consecutive_down",
@@ -1699,7 +1728,8 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1699
1728
  retries: "retries",
1700
1729
  timeout: "timeout",
1701
1730
  type: "type",
1702
- }));
1731
+ }))
1732
+ .pipe(T.ResponsePath("result"));
1703
1733
  export const createMonitor = API.make(() => ({
1704
1734
  input: CreateMonitorRequest,
1705
1735
  output: CreateMonitorResponse,
@@ -1775,7 +1805,8 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1775
1805
  ]),
1776
1806
  Schema.Null,
1777
1807
  ])),
1778
- }).pipe(Schema.encodeKeys({
1808
+ })
1809
+ .pipe(Schema.encodeKeys({
1779
1810
  id: "id",
1780
1811
  allowInsecure: "allow_insecure",
1781
1812
  consecutiveDown: "consecutive_down",
@@ -1795,7 +1826,8 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1795
1826
  retries: "retries",
1796
1827
  timeout: "timeout",
1797
1828
  type: "type",
1798
- }));
1829
+ }))
1830
+ .pipe(T.ResponsePath("result"));
1799
1831
  export const updateMonitor = API.make(() => ({
1800
1832
  input: UpdateMonitorRequest,
1801
1833
  output: UpdateMonitorResponse,
@@ -1871,7 +1903,8 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1871
1903
  ]),
1872
1904
  Schema.Null,
1873
1905
  ])),
1874
- }).pipe(Schema.encodeKeys({
1906
+ })
1907
+ .pipe(Schema.encodeKeys({
1875
1908
  id: "id",
1876
1909
  allowInsecure: "allow_insecure",
1877
1910
  consecutiveDown: "consecutive_down",
@@ -1891,7 +1924,8 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1891
1924
  retries: "retries",
1892
1925
  timeout: "timeout",
1893
1926
  type: "type",
1894
- }));
1927
+ }))
1928
+ .pipe(T.ResponsePath("result"));
1895
1929
  export const patchMonitor = API.make(() => ({
1896
1930
  input: PatchMonitorRequest,
1897
1931
  output: PatchMonitorResponse,
@@ -1906,7 +1940,7 @@ export const DeleteMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1906
1940
  }));
1907
1941
  export const DeleteMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1908
1942
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1909
- });
1943
+ }).pipe(T.ResponsePath("result"));
1910
1944
  export const deleteMonitor = API.make(() => ({
1911
1945
  input: DeleteMonitorRequest,
1912
1946
  output: DeleteMonitorResponse,
@@ -1940,13 +1974,15 @@ export const GetMonitorGroupResponse =
1940
1974
  }))),
1941
1975
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1942
1976
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1943
- }).pipe(Schema.encodeKeys({
1977
+ })
1978
+ .pipe(Schema.encodeKeys({
1944
1979
  id: "id",
1945
1980
  description: "description",
1946
1981
  members: "members",
1947
1982
  createdAt: "created_at",
1948
1983
  updatedAt: "updated_at",
1949
- }));
1984
+ }))
1985
+ .pipe(T.ResponsePath("result"));
1950
1986
  export const getMonitorGroup = API.make(() => ({
1951
1987
  input: GetMonitorGroupRequest,
1952
1988
  output: GetMonitorGroupResponse,
@@ -1960,37 +1996,43 @@ export const ListMonitorGroupsRequest =
1960
1996
  path: "/accounts/{account_id}/load_balancers/monitor_groups",
1961
1997
  }));
1962
1998
  export const ListMonitorGroupsResponse =
1963
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1964
- id: Schema.String,
1965
- description: Schema.String,
1966
- members: Schema.Array(Schema.Struct({
1967
- enabled: Schema.Boolean,
1968
- monitorId: Schema.String,
1969
- monitoringOnly: Schema.Boolean,
1970
- mustBeHealthy: Schema.Boolean,
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
+ }))),
1971
2018
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1972
2019
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1973
2020
  }).pipe(Schema.encodeKeys({
1974
- enabled: "enabled",
1975
- monitorId: "monitor_id",
1976
- monitoringOnly: "monitoring_only",
1977
- mustBeHealthy: "must_be_healthy",
2021
+ id: "id",
2022
+ description: "description",
2023
+ members: "members",
1978
2024
  createdAt: "created_at",
1979
2025
  updatedAt: "updated_at",
1980
2026
  }))),
1981
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1982
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1983
- }).pipe(Schema.encodeKeys({
1984
- id: "id",
1985
- description: "description",
1986
- members: "members",
1987
- createdAt: "created_at",
1988
- updatedAt: "updated_at",
1989
- })));
1990
- export const listMonitorGroups = API.make(() => ({
2027
+ });
2028
+ export const listMonitorGroups = API.makePaginated(() => ({
1991
2029
  input: ListMonitorGroupsRequest,
1992
2030
  output: ListMonitorGroupsResponse,
1993
2031
  errors: [],
2032
+ pagination: {
2033
+ mode: "single",
2034
+ items: "result",
2035
+ },
1994
2036
  }));
1995
2037
  export const CreateMonitorGroupRequest =
1996
2038
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -2033,13 +2075,15 @@ export const CreateMonitorGroupResponse =
2033
2075
  }))),
2034
2076
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2035
2077
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2036
- }).pipe(Schema.encodeKeys({
2078
+ })
2079
+ .pipe(Schema.encodeKeys({
2037
2080
  id: "id",
2038
2081
  description: "description",
2039
2082
  members: "members",
2040
2083
  createdAt: "created_at",
2041
2084
  updatedAt: "updated_at",
2042
- }));
2085
+ }))
2086
+ .pipe(T.ResponsePath("result"));
2043
2087
  export const createMonitorGroup = API.make(() => ({
2044
2088
  input: CreateMonitorGroupRequest,
2045
2089
  output: CreateMonitorGroupResponse,
@@ -2087,13 +2131,15 @@ export const UpdateMonitorGroupResponse =
2087
2131
  }))),
2088
2132
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2089
2133
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2090
- }).pipe(Schema.encodeKeys({
2134
+ })
2135
+ .pipe(Schema.encodeKeys({
2091
2136
  id: "id",
2092
2137
  description: "description",
2093
2138
  members: "members",
2094
2139
  createdAt: "created_at",
2095
2140
  updatedAt: "updated_at",
2096
- }));
2141
+ }))
2142
+ .pipe(T.ResponsePath("result"));
2097
2143
  export const updateMonitorGroup = API.make(() => ({
2098
2144
  input: UpdateMonitorGroupRequest,
2099
2145
  output: UpdateMonitorGroupResponse,
@@ -2141,13 +2187,15 @@ export const PatchMonitorGroupResponse =
2141
2187
  }))),
2142
2188
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2143
2189
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2144
- }).pipe(Schema.encodeKeys({
2190
+ })
2191
+ .pipe(Schema.encodeKeys({
2145
2192
  id: "id",
2146
2193
  description: "description",
2147
2194
  members: "members",
2148
2195
  createdAt: "created_at",
2149
2196
  updatedAt: "updated_at",
2150
- }));
2197
+ }))
2198
+ .pipe(T.ResponsePath("result"));
2151
2199
  export const patchMonitorGroup = API.make(() => ({
2152
2200
  input: PatchMonitorGroupRequest,
2153
2201
  output: PatchMonitorGroupResponse,
@@ -2182,13 +2230,15 @@ export const DeleteMonitorGroupResponse =
2182
2230
  }))),
2183
2231
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2184
2232
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2185
- }).pipe(Schema.encodeKeys({
2233
+ })
2234
+ .pipe(Schema.encodeKeys({
2186
2235
  id: "id",
2187
2236
  description: "description",
2188
2237
  members: "members",
2189
2238
  createdAt: "created_at",
2190
2239
  updatedAt: "updated_at",
2191
- }));
2240
+ }))
2241
+ .pipe(T.ResponsePath("result"));
2192
2242
  export const deleteMonitorGroup = API.make(() => ({
2193
2243
  input: DeleteMonitorGroupRequest,
2194
2244
  output: DeleteMonitorGroupResponse,
@@ -2246,7 +2296,9 @@ export const CreateMonitorPreviewResponse =
2246
2296
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2247
2297
  pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2248
2298
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2249
- }).pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }));
2299
+ })
2300
+ .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
2301
+ .pipe(T.ResponsePath("result"));
2250
2302
  export const createMonitorPreview = API.make(() => ({
2251
2303
  input: CreateMonitorPreviewRequest,
2252
2304
  output: CreateMonitorPreviewResponse,
@@ -2261,24 +2313,30 @@ export const GetMonitorReferenceRequest =
2261
2313
  path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}/references",
2262
2314
  }));
2263
2315
  export const GetMonitorReferenceResponse =
2264
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2265
- referenceType: Schema.optional(Schema.Union([
2266
- Schema.Literals(["*", "referral", "referrer"]),
2267
- Schema.Null,
2268
- ])),
2269
- resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2270
- resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
- resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2272
- }).pipe(Schema.encodeKeys({
2273
- referenceType: "reference_type",
2274
- resourceId: "resource_id",
2275
- resourceName: "resource_name",
2276
- resourceType: "resource_type",
2277
- })));
2278
- export const getMonitorReference = API.make(() => ({
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(() => ({
2279
2333
  input: GetMonitorReferenceRequest,
2280
2334
  output: GetMonitorReferenceResponse,
2281
2335
  errors: [],
2336
+ pagination: {
2337
+ mode: "single",
2338
+ items: "result",
2339
+ },
2282
2340
  }));
2283
2341
  export const GetPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2284
2342
  poolId: Schema.String.pipe(T.HttpPath("poolId")),
@@ -2325,7 +2383,8 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2325
2383
  notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2326
2384
  originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2327
2385
  origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2328
- }).pipe(Schema.encodeKeys({
2386
+ })
2387
+ .pipe(Schema.encodeKeys({
2329
2388
  id: "id",
2330
2389
  checkRegions: "check_regions",
2331
2390
  createdOn: "created_on",
@@ -2345,7 +2404,8 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2345
2404
  notificationFilter: "notification_filter",
2346
2405
  originSteering: "origin_steering",
2347
2406
  origins: "origins",
2348
- }));
2407
+ }))
2408
+ .pipe(T.ResponsePath("result"));
2349
2409
  export const getPool = API.make(() => ({
2350
2410
  input: GetPoolRequest,
2351
2411
  output: GetPoolResponse,
@@ -2358,69 +2418,75 @@ export const ListPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2358
2418
  method: "GET",
2359
2419
  path: "/accounts/{account_id}/load_balancers/pools",
2360
2420
  }));
2361
- export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2362
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2363
- checkRegions: Schema.optional(Schema.Union([
2364
- Schema.Array(Schema.Literals([
2365
- "WNAM",
2366
- "ENAM",
2367
- "WEU",
2368
- "EEU",
2369
- "NSAM",
2370
- "SSAM",
2371
- "OC",
2372
- "ME",
2373
- "NAF",
2374
- "SAF",
2375
- "SEAS",
2376
- "NEAS",
2377
- "ALL_REGIONS",
2378
- "SAS",
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,
2379
2442
  ])),
2380
- Schema.Null,
2381
- ])),
2382
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2383
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2384
- disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2385
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2386
- latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2387
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2388
- longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2389
- minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2390
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2391
- monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2392
- monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2393
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2394
- networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2395
- notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2396
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2397
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2398
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2399
- }).pipe(Schema.encodeKeys({
2400
- id: "id",
2401
- checkRegions: "check_regions",
2402
- createdOn: "created_on",
2403
- description: "description",
2404
- disabledAt: "disabled_at",
2405
- enabled: "enabled",
2406
- latitude: "latitude",
2407
- loadShedding: "load_shedding",
2408
- longitude: "longitude",
2409
- minimumOrigins: "minimum_origins",
2410
- modifiedOn: "modified_on",
2411
- monitor: "monitor",
2412
- monitorGroup: "monitor_group",
2413
- name: "name",
2414
- networks: "networks",
2415
- notificationEmail: "notification_email",
2416
- notificationFilter: "notification_filter",
2417
- originSteering: "origin_steering",
2418
- origins: "origins",
2419
- })));
2420
- export const listPools = API.make(() => ({
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(() => ({
2421
2483
  input: ListPoolsRequest,
2422
2484
  output: ListPoolsResponse,
2423
2485
  errors: [],
2486
+ pagination: {
2487
+ mode: "single",
2488
+ items: "result",
2489
+ },
2424
2490
  }));
2425
2491
  export const CreatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2426
2492
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2493,7 +2559,8 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2493
2559
  notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2494
2560
  originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2495
2561
  origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2496
- }).pipe(Schema.encodeKeys({
2562
+ })
2563
+ .pipe(Schema.encodeKeys({
2497
2564
  id: "id",
2498
2565
  checkRegions: "check_regions",
2499
2566
  createdOn: "created_on",
@@ -2513,7 +2580,8 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2513
2580
  notificationFilter: "notification_filter",
2514
2581
  originSteering: "origin_steering",
2515
2582
  origins: "origins",
2516
- }));
2583
+ }))
2584
+ .pipe(T.ResponsePath("result"));
2517
2585
  export const createPool = API.make(() => ({
2518
2586
  input: CreatePoolRequest,
2519
2587
  output: CreatePoolResponse,
@@ -2611,7 +2679,8 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2611
2679
  notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2612
2680
  originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2613
2681
  origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2614
- }).pipe(Schema.encodeKeys({
2682
+ })
2683
+ .pipe(Schema.encodeKeys({
2615
2684
  id: "id",
2616
2685
  checkRegions: "check_regions",
2617
2686
  createdOn: "created_on",
@@ -2631,7 +2700,8 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2631
2700
  notificationFilter: "notification_filter",
2632
2701
  originSteering: "origin_steering",
2633
2702
  origins: "origins",
2634
- }));
2703
+ }))
2704
+ .pipe(T.ResponsePath("result"));
2635
2705
  export const updatePool = API.make(() => ({
2636
2706
  input: UpdatePoolRequest,
2637
2707
  output: UpdatePoolResponse,
@@ -2729,7 +2799,8 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2729
2799
  notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2730
2800
  originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2731
2801
  origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2732
- }).pipe(Schema.encodeKeys({
2802
+ })
2803
+ .pipe(Schema.encodeKeys({
2733
2804
  id: "id",
2734
2805
  checkRegions: "check_regions",
2735
2806
  createdOn: "created_on",
@@ -2749,7 +2820,8 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2749
2820
  notificationFilter: "notification_filter",
2750
2821
  originSteering: "origin_steering",
2751
2822
  origins: "origins",
2752
- }));
2823
+ }))
2824
+ .pipe(T.ResponsePath("result"));
2753
2825
  export const patchPool = API.make(() => ({
2754
2826
  input: PatchPoolRequest,
2755
2827
  output: PatchPoolResponse,
@@ -2764,7 +2836,7 @@ export const DeletePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2764
2836
  }));
2765
2837
  export const DeletePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2766
2838
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2767
- });
2839
+ }).pipe(T.ResponsePath("result"));
2768
2840
  export const deletePool = API.make(() => ({
2769
2841
  input: DeletePoolRequest,
2770
2842
  output: DeletePoolResponse,
@@ -2777,69 +2849,75 @@ export const BulkPatchPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2777
2849
  method: "PATCH",
2778
2850
  path: "/accounts/{account_id}/load_balancers/pools",
2779
2851
  }));
2780
- export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2781
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2782
- checkRegions: Schema.optional(Schema.Union([
2783
- Schema.Array(Schema.Literals([
2784
- "WNAM",
2785
- "ENAM",
2786
- "WEU",
2787
- "EEU",
2788
- "NSAM",
2789
- "SSAM",
2790
- "OC",
2791
- "ME",
2792
- "NAF",
2793
- "SAF",
2794
- "SEAS",
2795
- "NEAS",
2796
- "ALL_REGIONS",
2797
- "SAS",
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,
2798
2873
  ])),
2799
- Schema.Null,
2800
- ])),
2801
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2802
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2803
- disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2804
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2805
- latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2806
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2807
- longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2808
- minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2809
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2810
- monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2811
- monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2812
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2813
- networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2814
- notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2815
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2816
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2817
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2818
- }).pipe(Schema.encodeKeys({
2819
- id: "id",
2820
- checkRegions: "check_regions",
2821
- createdOn: "created_on",
2822
- description: "description",
2823
- disabledAt: "disabled_at",
2824
- enabled: "enabled",
2825
- latitude: "latitude",
2826
- loadShedding: "load_shedding",
2827
- longitude: "longitude",
2828
- minimumOrigins: "minimum_origins",
2829
- modifiedOn: "modified_on",
2830
- monitor: "monitor",
2831
- monitorGroup: "monitor_group",
2832
- name: "name",
2833
- networks: "networks",
2834
- notificationEmail: "notification_email",
2835
- notificationFilter: "notification_filter",
2836
- originSteering: "origin_steering",
2837
- origins: "origins",
2838
- })));
2839
- export const bulkPatchPools = API.make(() => ({
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(() => ({
2840
2914
  input: BulkPatchPoolsRequest,
2841
2915
  output: BulkPatchPoolsResponse,
2842
2916
  errors: [],
2917
+ pagination: {
2918
+ mode: "single",
2919
+ items: "result",
2920
+ },
2843
2921
  }));
2844
2922
  export const GetPoolHealthRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2845
2923
  poolId: Schema.String.pipe(T.HttpPath("poolId")),
@@ -2875,7 +2953,9 @@ export const GetPoolHealthResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2875
2953
  }),
2876
2954
  Schema.Null,
2877
2955
  ])),
2878
- }).pipe(Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }));
2956
+ })
2957
+ .pipe(Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }))
2958
+ .pipe(T.ResponsePath("result"));
2879
2959
  export const getPoolHealth = API.make(() => ({
2880
2960
  input: GetPoolHealthRequest,
2881
2961
  output: GetPoolHealthResponse,
@@ -2933,7 +3013,9 @@ export const CreatePoolHealthResponse =
2933
3013
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2934
3014
  pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2935
3015
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2936
- }).pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }));
3016
+ })
3017
+ .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
3018
+ .pipe(T.ResponsePath("result"));
2937
3019
  export const createPoolHealth = API.make(() => ({
2938
3020
  input: CreatePoolHealthRequest,
2939
3021
  output: CreatePoolHealthResponse,
@@ -2948,24 +3030,30 @@ export const GetPoolReferenceRequest =
2948
3030
  path: "/accounts/{account_id}/load_balancers/pools/{poolId}/references",
2949
3031
  }));
2950
3032
  export const GetPoolReferenceResponse =
2951
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2952
- referenceType: Schema.optional(Schema.Union([
2953
- Schema.Literals(["*", "referral", "referrer"]),
2954
- Schema.Null,
2955
- ])),
2956
- resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2957
- resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2958
- resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2959
- }).pipe(Schema.encodeKeys({
2960
- referenceType: "reference_type",
2961
- resourceId: "resource_id",
2962
- resourceName: "resource_name",
2963
- resourceType: "resource_type",
2964
- })));
2965
- export const getPoolReference = API.make(() => ({
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(() => ({
2966
3050
  input: GetPoolReferenceRequest,
2967
3051
  output: GetPoolReferenceResponse,
2968
3052
  errors: [],
3053
+ pagination: {
3054
+ mode: "single",
3055
+ items: "result",
3056
+ },
2969
3057
  }));
2970
3058
  export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2971
3059
  previewId: Schema.String.pipe(T.HttpPath("previewId")),
@@ -2974,7 +3062,7 @@ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2974
3062
  method: "GET",
2975
3063
  path: "/accounts/{account_id}/load_balancers/preview/{previewId}",
2976
3064
  }));
2977
- export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
3065
+ export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
2978
3066
  export const getPreview = API.make(() => ({
2979
3067
  input: GetPreviewRequest,
2980
3068
  output: GetPreviewResponse,
@@ -3004,7 +3092,7 @@ export const GetRegionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3004
3092
  export const GetRegionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3005
3093
  Schema.String,
3006
3094
  Schema.Null,
3007
- ]);
3095
+ ]).pipe(T.ResponsePath("result"));
3008
3096
  export const getRegion = API.make(() => ({
3009
3097
  input: GetRegionRequest,
3010
3098
  output: GetRegionResponse,
@@ -3022,7 +3110,7 @@ export const ListRegionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3022
3110
  export const ListRegionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3023
3111
  Schema.String,
3024
3112
  Schema.Null,
3025
- ]);
3113
+ ]).pipe(T.ResponsePath("result"));
3026
3114
  export const listRegions = API.make(() => ({
3027
3115
  input: ListRegionsRequest,
3028
3116
  output: ListRegionsResponse,
@@ -3036,33 +3124,58 @@ export const ListSearchesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3036
3124
  method: "GET",
3037
3125
  path: "/accounts/{account_id}/load_balancers/search",
3038
3126
  }));
3039
- export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
3040
- resources: Schema.optional(Schema.Union([
3041
- Schema.Array(Schema.Struct({
3042
- referenceType: Schema.optional(Schema.Union([
3043
- Schema.Literals(["referral", "referrer"]),
3044
- Schema.Null,
3045
- ])),
3046
- references: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3047
- resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3048
- resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3049
- resourceType: Schema.optional(Schema.Union([
3050
- Schema.Literals(["load_balancer", "monitor", "pool"]),
3051
- Schema.Null,
3052
- ])),
3053
- }).pipe(Schema.encodeKeys({
3054
- referenceType: "reference_type",
3055
- references: "references",
3056
- resourceId: "resource_id",
3057
- resourceName: "resource_name",
3058
- resourceType: "resource_type",
3059
- }))),
3060
- Schema.Null,
3061
- ])),
3062
- }));
3063
- export const listSearches = API.make(() => ({
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(() => ({
3064
3170
  input: ListSearchesRequest,
3065
3171
  output: ListSearchesResponse,
3066
3172
  errors: [],
3173
+ pagination: {
3174
+ mode: "page",
3175
+ inputToken: "page",
3176
+ outputToken: "resultInfo.page",
3177
+ items: "result.items",
3178
+ pageSize: "perPage",
3179
+ },
3067
3180
  }));
3068
3181
  //# sourceMappingURL=load-balancers.js.map