@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
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service load-balancers
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -419,33 +420,37 @@ export const GetLoadBalancerResponse =
419
420
  ),
420
421
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
421
422
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
422
- }).pipe(
423
- Schema.encodeKeys({
424
- id: "id",
425
- adaptiveRouting: "adaptive_routing",
426
- countryPools: "country_pools",
427
- createdOn: "created_on",
428
- defaultPools: "default_pools",
429
- description: "description",
430
- enabled: "enabled",
431
- fallbackPool: "fallback_pool",
432
- locationStrategy: "location_strategy",
433
- modifiedOn: "modified_on",
434
- name: "name",
435
- networks: "networks",
436
- popPools: "pop_pools",
437
- proxied: "proxied",
438
- randomSteering: "random_steering",
439
- regionPools: "region_pools",
440
- rules: "rules",
441
- sessionAffinity: "session_affinity",
442
- sessionAffinityAttributes: "session_affinity_attributes",
443
- sessionAffinityTtl: "session_affinity_ttl",
444
- steeringPolicy: "steering_policy",
445
- ttl: "ttl",
446
- zoneName: "zone_name",
447
- }),
448
- ) as unknown as Schema.Schema<GetLoadBalancerResponse>;
423
+ })
424
+ .pipe(
425
+ Schema.encodeKeys({
426
+ id: "id",
427
+ adaptiveRouting: "adaptive_routing",
428
+ countryPools: "country_pools",
429
+ createdOn: "created_on",
430
+ defaultPools: "default_pools",
431
+ description: "description",
432
+ enabled: "enabled",
433
+ fallbackPool: "fallback_pool",
434
+ locationStrategy: "location_strategy",
435
+ modifiedOn: "modified_on",
436
+ name: "name",
437
+ networks: "networks",
438
+ popPools: "pop_pools",
439
+ proxied: "proxied",
440
+ randomSteering: "random_steering",
441
+ regionPools: "region_pools",
442
+ rules: "rules",
443
+ sessionAffinity: "session_affinity",
444
+ sessionAffinityAttributes: "session_affinity_attributes",
445
+ sessionAffinityTtl: "session_affinity_ttl",
446
+ steeringPolicy: "steering_policy",
447
+ ttl: "ttl",
448
+ zoneName: "zone_name",
449
+ }),
450
+ )
451
+ .pipe(
452
+ T.ResponsePath("result"),
453
+ ) as unknown as Schema.Schema<GetLoadBalancerResponse>;
449
454
 
450
455
  export type GetLoadBalancerError = DefaultErrors;
451
456
 
@@ -471,414 +476,540 @@ export const ListLoadBalancersRequest =
471
476
  T.Http({ method: "GET", path: "/zones/{zone_id}/load_balancers" }),
472
477
  ) as unknown as Schema.Schema<ListLoadBalancersRequest>;
473
478
 
474
- export type ListLoadBalancersResponse = {
475
- id?: string | null;
476
- adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
477
- countryPools?: Record<string, unknown> | null;
478
- createdOn?: string | null;
479
- defaultPools?: string[] | null;
480
- description?: string | null;
481
- enabled?: boolean | null;
482
- fallbackPool?: string | null;
483
- locationStrategy?: {
484
- mode?: "pop" | "resolver_ip" | null;
485
- preferEcs?: "always" | "never" | "proximity" | "geo" | null;
486
- } | null;
487
- modifiedOn?: string | null;
488
- name?: string | null;
489
- networks?: string[] | null;
490
- popPools?: Record<string, unknown> | null;
491
- proxied?: boolean | null;
492
- randomSteering?: {
493
- defaultWeight?: number | null;
494
- poolWeights?: Record<string, unknown> | null;
495
- } | null;
496
- regionPools?: Record<string, unknown> | null;
497
- rules?:
498
- | {
499
- condition?: string | null;
500
- disabled?: boolean | null;
501
- fixedResponse?: {
502
- contentType?: string | null;
503
- location?: string | null;
504
- messageBody?: string | null;
505
- statusCode?: number | null;
506
- } | null;
507
- name?: string | null;
508
- overrides?: {
509
- adaptiveRouting?: unknown | null;
510
- countryPools?: Record<string, unknown> | null;
511
- defaultPools?: string[] | null;
512
- fallbackPool?: string | null;
513
- locationStrategy?: unknown | null;
514
- popPools?: Record<string, unknown> | null;
515
- randomSteering?: unknown | null;
516
- regionPools?: Record<string, unknown> | null;
517
- sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
518
- sessionAffinityAttributes?: unknown | null;
519
- sessionAffinityTtl?: number | null;
520
- steeringPolicy?:
521
- | ""
522
- | "off"
523
- | "geo"
524
- | "random"
525
- | "dynamic_latency"
526
- | "proximity"
527
- | "least_outstanding_requests"
528
- | "least_connections"
529
- | null;
530
- ttl?: number | null;
531
- } | null;
532
- priority?: number | null;
533
- terminates?: boolean | null;
534
- }[]
535
- | null;
536
- sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
537
- sessionAffinityAttributes?: {
538
- drainDuration?: number | null;
539
- headers?: string[] | null;
540
- requireAllHeaders?: boolean | null;
541
- samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
542
- secure?: "Auto" | "Always" | "Never" | null;
543
- zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
544
- } | null;
545
- sessionAffinityTtl?: number | null;
546
- steeringPolicy?:
547
- | ""
548
- | "off"
549
- | "geo"
550
- | "random"
551
- | "dynamic_latency"
552
- | "proximity"
553
- | "least_outstanding_requests"
554
- | "least_connections"
555
- | null;
556
- ttl?: number | null;
557
- zoneName?: string | null;
558
- }[];
479
+ export interface ListLoadBalancersResponse {
480
+ result: {
481
+ id?: string | null;
482
+ adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
483
+ countryPools?: Record<string, unknown> | null;
484
+ createdOn?: string | null;
485
+ defaultPools?: string[] | null;
486
+ description?: string | null;
487
+ enabled?: boolean | null;
488
+ fallbackPool?: string | null;
489
+ locationStrategy?: {
490
+ mode?: "pop" | "resolver_ip" | null;
491
+ preferEcs?: "always" | "never" | "proximity" | "geo" | null;
492
+ } | null;
493
+ modifiedOn?: string | null;
494
+ name?: string | null;
495
+ networks?: string[] | null;
496
+ popPools?: Record<string, unknown> | null;
497
+ proxied?: boolean | null;
498
+ randomSteering?: {
499
+ defaultWeight?: number | null;
500
+ poolWeights?: Record<string, unknown> | null;
501
+ } | null;
502
+ regionPools?: Record<string, unknown> | null;
503
+ rules?:
504
+ | {
505
+ condition?: string | null;
506
+ disabled?: boolean | null;
507
+ fixedResponse?: {
508
+ contentType?: string | null;
509
+ location?: string | null;
510
+ messageBody?: string | null;
511
+ statusCode?: number | null;
512
+ } | null;
513
+ name?: string | null;
514
+ overrides?: {
515
+ adaptiveRouting?: unknown | null;
516
+ countryPools?: Record<string, unknown> | null;
517
+ defaultPools?: string[] | null;
518
+ fallbackPool?: string | null;
519
+ locationStrategy?: unknown | null;
520
+ popPools?: Record<string, unknown> | null;
521
+ randomSteering?: unknown | null;
522
+ regionPools?: Record<string, unknown> | null;
523
+ sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
524
+ sessionAffinityAttributes?: unknown | null;
525
+ sessionAffinityTtl?: number | null;
526
+ steeringPolicy?:
527
+ | ""
528
+ | "off"
529
+ | "geo"
530
+ | "random"
531
+ | "dynamic_latency"
532
+ | "proximity"
533
+ | "least_outstanding_requests"
534
+ | "least_connections"
535
+ | null;
536
+ ttl?: number | null;
537
+ } | null;
538
+ priority?: number | null;
539
+ terminates?: boolean | null;
540
+ }[]
541
+ | null;
542
+ sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
543
+ sessionAffinityAttributes?: {
544
+ drainDuration?: number | null;
545
+ headers?: string[] | null;
546
+ requireAllHeaders?: boolean | null;
547
+ samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
548
+ secure?: "Auto" | "Always" | "Never" | null;
549
+ zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
550
+ } | null;
551
+ sessionAffinityTtl?: number | null;
552
+ steeringPolicy?:
553
+ | ""
554
+ | "off"
555
+ | "geo"
556
+ | "random"
557
+ | "dynamic_latency"
558
+ | "proximity"
559
+ | "least_outstanding_requests"
560
+ | "least_connections"
561
+ | null;
562
+ ttl?: number | null;
563
+ zoneName?: string | null;
564
+ }[];
565
+ }
559
566
 
560
567
  export const ListLoadBalancersResponse =
561
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
562
- Schema.Struct({
563
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
564
- adaptiveRouting: Schema.optional(
565
- Schema.Union([
566
- Schema.Struct({
567
- failoverAcrossPools: Schema.optional(
568
- Schema.Union([Schema.Boolean, Schema.Null]),
569
- ),
570
- }).pipe(
571
- Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }),
572
- ),
573
- Schema.Null,
574
- ]),
575
- ),
576
- countryPools: Schema.optional(
577
- Schema.Union([Schema.Struct({}), Schema.Null]),
578
- ),
579
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
580
- defaultPools: Schema.optional(
581
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
582
- ),
583
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
584
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
585
- fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
586
- locationStrategy: Schema.optional(
587
- Schema.Union([
588
- Schema.Struct({
589
- mode: Schema.optional(
590
- Schema.Union([
591
- Schema.Literals(["pop", "resolver_ip"]),
592
- Schema.Null,
593
- ]),
594
- ),
595
- preferEcs: Schema.optional(
596
- Schema.Union([
597
- Schema.Literals(["always", "never", "proximity", "geo"]),
598
- Schema.Null,
599
- ]),
600
- ),
601
- }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
602
- Schema.Null,
603
- ]),
604
- ),
605
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
606
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
607
- networks: Schema.optional(
608
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
609
- ),
610
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
611
- proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
612
- randomSteering: Schema.optional(
613
- Schema.Union([
614
- Schema.Struct({
615
- defaultWeight: Schema.optional(
616
- Schema.Union([Schema.Number, Schema.Null]),
617
- ),
618
- poolWeights: Schema.optional(
619
- Schema.Union([Schema.Struct({}), Schema.Null]),
620
- ),
621
- }).pipe(
622
- Schema.encodeKeys({
623
- defaultWeight: "default_weight",
624
- poolWeights: "pool_weights",
625
- }),
626
- ),
627
- Schema.Null,
628
- ]),
629
- ),
630
- regionPools: Schema.optional(
631
- Schema.Union([Schema.Struct({}), Schema.Null]),
632
- ),
633
- rules: Schema.optional(
634
- Schema.Union([
635
- Schema.Array(
568
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
569
+ result: Schema.Array(
570
+ Schema.Struct({
571
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
572
+ adaptiveRouting: Schema.optional(
573
+ Schema.Union([
636
574
  Schema.Struct({
637
- condition: Schema.optional(
638
- Schema.Union([Schema.String, Schema.Null]),
639
- ),
640
- disabled: Schema.optional(
575
+ failoverAcrossPools: Schema.optional(
641
576
  Schema.Union([Schema.Boolean, Schema.Null]),
642
577
  ),
643
- fixedResponse: Schema.optional(
578
+ }).pipe(
579
+ Schema.encodeKeys({
580
+ failoverAcrossPools: "failover_across_pools",
581
+ }),
582
+ ),
583
+ Schema.Null,
584
+ ]),
585
+ ),
586
+ countryPools: Schema.optional(
587
+ Schema.Union([Schema.Struct({}), Schema.Null]),
588
+ ),
589
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
590
+ defaultPools: Schema.optional(
591
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
592
+ ),
593
+ description: Schema.optional(
594
+ Schema.Union([Schema.String, Schema.Null]),
595
+ ),
596
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
597
+ fallbackPool: Schema.optional(
598
+ Schema.Union([Schema.String, Schema.Null]),
599
+ ),
600
+ locationStrategy: Schema.optional(
601
+ Schema.Union([
602
+ Schema.Struct({
603
+ mode: Schema.optional(
644
604
  Schema.Union([
645
- Schema.Struct({
646
- contentType: Schema.optional(
647
- Schema.Union([Schema.String, Schema.Null]),
648
- ),
649
- location: Schema.optional(
650
- Schema.Union([Schema.String, Schema.Null]),
651
- ),
652
- messageBody: Schema.optional(
653
- Schema.Union([Schema.String, Schema.Null]),
654
- ),
655
- statusCode: Schema.optional(
656
- Schema.Union([Schema.Number, Schema.Null]),
657
- ),
658
- }).pipe(
659
- Schema.encodeKeys({
660
- contentType: "content_type",
661
- location: "location",
662
- messageBody: "message_body",
663
- statusCode: "status_code",
664
- }),
665
- ),
605
+ Schema.Literals(["pop", "resolver_ip"]),
666
606
  Schema.Null,
667
607
  ]),
668
608
  ),
669
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
670
- overrides: Schema.optional(
609
+ preferEcs: Schema.optional(
671
610
  Schema.Union([
672
- Schema.Struct({
673
- adaptiveRouting: Schema.optional(
674
- Schema.Union([Schema.Unknown, Schema.Null]),
675
- ),
676
- countryPools: Schema.optional(
677
- Schema.Union([Schema.Struct({}), Schema.Null]),
678
- ),
679
- defaultPools: Schema.optional(
680
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
681
- ),
682
- fallbackPool: Schema.optional(
683
- Schema.Union([Schema.String, Schema.Null]),
684
- ),
685
- locationStrategy: Schema.optional(
686
- Schema.Union([Schema.Unknown, Schema.Null]),
687
- ),
688
- popPools: Schema.optional(
689
- Schema.Union([Schema.Struct({}), Schema.Null]),
690
- ),
691
- randomSteering: Schema.optional(
692
- Schema.Union([Schema.Unknown, Schema.Null]),
693
- ),
694
- regionPools: Schema.optional(
695
- Schema.Union([Schema.Struct({}), Schema.Null]),
611
+ Schema.Literals(["always", "never", "proximity", "geo"]),
612
+ Schema.Null,
613
+ ]),
614
+ ),
615
+ }).pipe(
616
+ Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }),
617
+ ),
618
+ Schema.Null,
619
+ ]),
620
+ ),
621
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
622
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
623
+ networks: Schema.optional(
624
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
625
+ ),
626
+ popPools: Schema.optional(
627
+ Schema.Union([Schema.Struct({}), Schema.Null]),
628
+ ),
629
+ proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
630
+ randomSteering: Schema.optional(
631
+ Schema.Union([
632
+ Schema.Struct({
633
+ defaultWeight: Schema.optional(
634
+ Schema.Union([Schema.Number, Schema.Null]),
635
+ ),
636
+ poolWeights: Schema.optional(
637
+ Schema.Union([Schema.Struct({}), Schema.Null]),
638
+ ),
639
+ }).pipe(
640
+ Schema.encodeKeys({
641
+ defaultWeight: "default_weight",
642
+ poolWeights: "pool_weights",
643
+ }),
644
+ ),
645
+ Schema.Null,
646
+ ]),
647
+ ),
648
+ regionPools: Schema.optional(
649
+ Schema.Union([Schema.Struct({}), Schema.Null]),
650
+ ),
651
+ rules: Schema.optional(
652
+ Schema.Union([
653
+ Schema.Array(
654
+ Schema.Struct({
655
+ condition: Schema.optional(
656
+ Schema.Union([Schema.String, Schema.Null]),
657
+ ),
658
+ disabled: Schema.optional(
659
+ Schema.Union([Schema.Boolean, Schema.Null]),
660
+ ),
661
+ fixedResponse: Schema.optional(
662
+ Schema.Union([
663
+ Schema.Struct({
664
+ contentType: Schema.optional(
665
+ Schema.Union([Schema.String, Schema.Null]),
666
+ ),
667
+ location: Schema.optional(
668
+ Schema.Union([Schema.String, Schema.Null]),
669
+ ),
670
+ messageBody: Schema.optional(
671
+ Schema.Union([Schema.String, Schema.Null]),
672
+ ),
673
+ statusCode: Schema.optional(
674
+ Schema.Union([Schema.Number, Schema.Null]),
675
+ ),
676
+ }).pipe(
677
+ Schema.encodeKeys({
678
+ contentType: "content_type",
679
+ location: "location",
680
+ messageBody: "message_body",
681
+ statusCode: "status_code",
682
+ }),
696
683
  ),
697
- sessionAffinity: Schema.optional(
698
- Schema.Union([
699
- Schema.Literals([
700
- "none",
701
- "cookie",
702
- "ip_cookie",
703
- "header",
684
+ Schema.Null,
685
+ ]),
686
+ ),
687
+ name: Schema.optional(
688
+ Schema.Union([Schema.String, Schema.Null]),
689
+ ),
690
+ overrides: Schema.optional(
691
+ Schema.Union([
692
+ Schema.Struct({
693
+ adaptiveRouting: Schema.optional(
694
+ Schema.Union([Schema.Unknown, Schema.Null]),
695
+ ),
696
+ countryPools: Schema.optional(
697
+ Schema.Union([Schema.Struct({}), Schema.Null]),
698
+ ),
699
+ defaultPools: Schema.optional(
700
+ Schema.Union([
701
+ Schema.Array(Schema.String),
702
+ Schema.Null,
704
703
  ]),
705
- Schema.Null,
706
- ]),
707
- ),
708
- sessionAffinityAttributes: Schema.optional(
709
- Schema.Union([Schema.Unknown, Schema.Null]),
710
- ),
711
- sessionAffinityTtl: Schema.optional(
712
- Schema.Union([Schema.Number, Schema.Null]),
713
- ),
714
- steeringPolicy: Schema.optional(
715
- Schema.Union([
716
- Schema.Literals([
717
- "",
718
- "off",
719
- "geo",
720
- "random",
721
- "dynamic_latency",
722
- "proximity",
723
- "least_outstanding_requests",
724
- "least_connections",
704
+ ),
705
+ fallbackPool: Schema.optional(
706
+ Schema.Union([Schema.String, Schema.Null]),
707
+ ),
708
+ locationStrategy: Schema.optional(
709
+ Schema.Union([Schema.Unknown, Schema.Null]),
710
+ ),
711
+ popPools: Schema.optional(
712
+ Schema.Union([Schema.Struct({}), Schema.Null]),
713
+ ),
714
+ randomSteering: Schema.optional(
715
+ Schema.Union([Schema.Unknown, Schema.Null]),
716
+ ),
717
+ regionPools: Schema.optional(
718
+ Schema.Union([Schema.Struct({}), Schema.Null]),
719
+ ),
720
+ sessionAffinity: Schema.optional(
721
+ Schema.Union([
722
+ Schema.Literals([
723
+ "none",
724
+ "cookie",
725
+ "ip_cookie",
726
+ "header",
727
+ ]),
728
+ Schema.Null,
725
729
  ]),
726
- Schema.Null,
727
- ]),
728
- ),
729
- ttl: Schema.optional(
730
- Schema.Union([Schema.Number, Schema.Null]),
730
+ ),
731
+ sessionAffinityAttributes: Schema.optional(
732
+ Schema.Union([Schema.Unknown, Schema.Null]),
733
+ ),
734
+ sessionAffinityTtl: Schema.optional(
735
+ Schema.Union([Schema.Number, Schema.Null]),
736
+ ),
737
+ steeringPolicy: Schema.optional(
738
+ Schema.Union([
739
+ Schema.Literals([
740
+ "",
741
+ "off",
742
+ "geo",
743
+ "random",
744
+ "dynamic_latency",
745
+ "proximity",
746
+ "least_outstanding_requests",
747
+ "least_connections",
748
+ ]),
749
+ Schema.Null,
750
+ ]),
751
+ ),
752
+ ttl: Schema.optional(
753
+ Schema.Union([Schema.Number, Schema.Null]),
754
+ ),
755
+ }).pipe(
756
+ Schema.encodeKeys({
757
+ adaptiveRouting: "adaptive_routing",
758
+ countryPools: "country_pools",
759
+ defaultPools: "default_pools",
760
+ fallbackPool: "fallback_pool",
761
+ locationStrategy: "location_strategy",
762
+ popPools: "pop_pools",
763
+ randomSteering: "random_steering",
764
+ regionPools: "region_pools",
765
+ sessionAffinity: "session_affinity",
766
+ sessionAffinityAttributes:
767
+ "session_affinity_attributes",
768
+ sessionAffinityTtl: "session_affinity_ttl",
769
+ steeringPolicy: "steering_policy",
770
+ ttl: "ttl",
771
+ }),
731
772
  ),
732
- }).pipe(
733
- Schema.encodeKeys({
734
- adaptiveRouting: "adaptive_routing",
735
- countryPools: "country_pools",
736
- defaultPools: "default_pools",
737
- fallbackPool: "fallback_pool",
738
- locationStrategy: "location_strategy",
739
- popPools: "pop_pools",
740
- randomSteering: "random_steering",
741
- regionPools: "region_pools",
742
- sessionAffinity: "session_affinity",
743
- sessionAffinityAttributes: "session_affinity_attributes",
744
- sessionAffinityTtl: "session_affinity_ttl",
745
- steeringPolicy: "steering_policy",
746
- ttl: "ttl",
747
- }),
748
- ),
749
- Schema.Null,
750
- ]),
773
+ Schema.Null,
774
+ ]),
775
+ ),
776
+ priority: Schema.optional(
777
+ Schema.Union([Schema.Number, Schema.Null]),
778
+ ),
779
+ terminates: Schema.optional(
780
+ Schema.Union([Schema.Boolean, Schema.Null]),
781
+ ),
782
+ }).pipe(
783
+ Schema.encodeKeys({
784
+ condition: "condition",
785
+ disabled: "disabled",
786
+ fixedResponse: "fixed_response",
787
+ name: "name",
788
+ overrides: "overrides",
789
+ priority: "priority",
790
+ terminates: "terminates",
791
+ }),
751
792
  ),
752
- priority: Schema.optional(
793
+ ),
794
+ Schema.Null,
795
+ ]),
796
+ ),
797
+ sessionAffinity: Schema.optional(
798
+ Schema.Union([
799
+ Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
800
+ Schema.Null,
801
+ ]),
802
+ ),
803
+ sessionAffinityAttributes: Schema.optional(
804
+ Schema.Union([
805
+ Schema.Struct({
806
+ drainDuration: Schema.optional(
753
807
  Schema.Union([Schema.Number, Schema.Null]),
754
808
  ),
755
- terminates: Schema.optional(
809
+ headers: Schema.optional(
810
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
811
+ ),
812
+ requireAllHeaders: Schema.optional(
756
813
  Schema.Union([Schema.Boolean, Schema.Null]),
757
814
  ),
815
+ samesite: Schema.optional(
816
+ Schema.Union([
817
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
818
+ Schema.Null,
819
+ ]),
820
+ ),
821
+ secure: Schema.optional(
822
+ Schema.Union([
823
+ Schema.Literals(["Auto", "Always", "Never"]),
824
+ Schema.Null,
825
+ ]),
826
+ ),
827
+ zeroDowntimeFailover: Schema.optional(
828
+ Schema.Union([
829
+ Schema.Literals(["none", "temporary", "sticky"]),
830
+ Schema.Null,
831
+ ]),
832
+ ),
758
833
  }).pipe(
759
834
  Schema.encodeKeys({
760
- condition: "condition",
761
- disabled: "disabled",
762
- fixedResponse: "fixed_response",
763
- name: "name",
764
- overrides: "overrides",
765
- priority: "priority",
766
- terminates: "terminates",
835
+ drainDuration: "drain_duration",
836
+ headers: "headers",
837
+ requireAllHeaders: "require_all_headers",
838
+ samesite: "samesite",
839
+ secure: "secure",
840
+ zeroDowntimeFailover: "zero_downtime_failover",
767
841
  }),
768
842
  ),
769
- ),
770
- Schema.Null,
771
- ]),
772
- ),
773
- sessionAffinity: Schema.optional(
774
- Schema.Union([
775
- Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
776
- Schema.Null,
777
- ]),
778
- ),
779
- sessionAffinityAttributes: Schema.optional(
780
- Schema.Union([
781
- Schema.Struct({
782
- drainDuration: Schema.optional(
783
- Schema.Union([Schema.Number, Schema.Null]),
784
- ),
785
- headers: Schema.optional(
786
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
787
- ),
788
- requireAllHeaders: Schema.optional(
789
- Schema.Union([Schema.Boolean, Schema.Null]),
790
- ),
791
- samesite: Schema.optional(
792
- Schema.Union([
793
- Schema.Literals(["Auto", "Lax", "None", "Strict"]),
794
- Schema.Null,
795
- ]),
796
- ),
797
- secure: Schema.optional(
798
- Schema.Union([
799
- Schema.Literals(["Auto", "Always", "Never"]),
800
- Schema.Null,
801
- ]),
802
- ),
803
- zeroDowntimeFailover: Schema.optional(
804
- Schema.Union([
805
- Schema.Literals(["none", "temporary", "sticky"]),
806
- Schema.Null,
807
- ]),
808
- ),
809
- }).pipe(
810
- Schema.encodeKeys({
811
- drainDuration: "drain_duration",
812
- headers: "headers",
813
- requireAllHeaders: "require_all_headers",
814
- samesite: "samesite",
815
- secure: "secure",
816
- zeroDowntimeFailover: "zero_downtime_failover",
817
- }),
818
- ),
819
- Schema.Null,
820
- ]),
821
- ),
822
- sessionAffinityTtl: Schema.optional(
823
- Schema.Union([Schema.Number, Schema.Null]),
824
- ),
825
- steeringPolicy: Schema.optional(
826
- Schema.Union([
827
- Schema.Literals([
828
- "",
829
- "off",
830
- "geo",
831
- "random",
832
- "dynamic_latency",
833
- "proximity",
834
- "least_outstanding_requests",
835
- "least_connections",
843
+ Schema.Null,
836
844
  ]),
837
- Schema.Null,
838
- ]),
845
+ ),
846
+ sessionAffinityTtl: Schema.optional(
847
+ Schema.Union([Schema.Number, Schema.Null]),
848
+ ),
849
+ steeringPolicy: Schema.optional(
850
+ Schema.Union([
851
+ Schema.Literals([
852
+ "",
853
+ "off",
854
+ "geo",
855
+ "random",
856
+ "dynamic_latency",
857
+ "proximity",
858
+ "least_outstanding_requests",
859
+ "least_connections",
860
+ ]),
861
+ Schema.Null,
862
+ ]),
863
+ ),
864
+ ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
865
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
866
+ }).pipe(
867
+ Schema.encodeKeys({
868
+ id: "id",
869
+ adaptiveRouting: "adaptive_routing",
870
+ countryPools: "country_pools",
871
+ createdOn: "created_on",
872
+ defaultPools: "default_pools",
873
+ description: "description",
874
+ enabled: "enabled",
875
+ fallbackPool: "fallback_pool",
876
+ locationStrategy: "location_strategy",
877
+ modifiedOn: "modified_on",
878
+ name: "name",
879
+ networks: "networks",
880
+ popPools: "pop_pools",
881
+ proxied: "proxied",
882
+ randomSteering: "random_steering",
883
+ regionPools: "region_pools",
884
+ rules: "rules",
885
+ sessionAffinity: "session_affinity",
886
+ sessionAffinityAttributes: "session_affinity_attributes",
887
+ sessionAffinityTtl: "session_affinity_ttl",
888
+ steeringPolicy: "steering_policy",
889
+ ttl: "ttl",
890
+ zoneName: "zone_name",
891
+ }),
839
892
  ),
840
- ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
841
- zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
842
- }).pipe(
843
- Schema.encodeKeys({
844
- id: "id",
845
- adaptiveRouting: "adaptive_routing",
846
- countryPools: "country_pools",
847
- createdOn: "created_on",
848
- defaultPools: "default_pools",
849
- description: "description",
850
- enabled: "enabled",
851
- fallbackPool: "fallback_pool",
852
- locationStrategy: "location_strategy",
853
- modifiedOn: "modified_on",
854
- name: "name",
855
- networks: "networks",
856
- popPools: "pop_pools",
857
- proxied: "proxied",
858
- randomSteering: "random_steering",
859
- regionPools: "region_pools",
860
- rules: "rules",
861
- sessionAffinity: "session_affinity",
862
- sessionAffinityAttributes: "session_affinity_attributes",
863
- sessionAffinityTtl: "session_affinity_ttl",
864
- steeringPolicy: "steering_policy",
865
- ttl: "ttl",
866
- zoneName: "zone_name",
867
- }),
868
893
  ),
869
- ) as unknown as Schema.Schema<ListLoadBalancersResponse>;
894
+ }) as unknown as Schema.Schema<ListLoadBalancersResponse>;
870
895
 
871
896
  export type ListLoadBalancersError = DefaultErrors;
872
897
 
873
- export const listLoadBalancers: API.OperationMethod<
898
+ export const listLoadBalancers: API.PaginatedOperationMethod<
874
899
  ListLoadBalancersRequest,
875
900
  ListLoadBalancersResponse,
876
901
  ListLoadBalancersError,
877
902
  Credentials | HttpClient.HttpClient
878
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
903
+ > & {
904
+ pages: (
905
+ input: ListLoadBalancersRequest,
906
+ ) => stream.Stream<
907
+ ListLoadBalancersResponse,
908
+ ListLoadBalancersError,
909
+ Credentials | HttpClient.HttpClient
910
+ >;
911
+ items: (input: ListLoadBalancersRequest) => stream.Stream<
912
+ {
913
+ id?: string | null;
914
+ adaptiveRouting?: { failoverAcrossPools?: boolean | null } | null;
915
+ countryPools?: Record<string, unknown> | null;
916
+ createdOn?: string | null;
917
+ defaultPools?: string[] | null;
918
+ description?: string | null;
919
+ enabled?: boolean | null;
920
+ fallbackPool?: string | null;
921
+ locationStrategy?: {
922
+ mode?: "pop" | "resolver_ip" | null;
923
+ preferEcs?: "always" | "never" | "proximity" | "geo" | null;
924
+ } | null;
925
+ modifiedOn?: string | null;
926
+ name?: string | null;
927
+ networks?: string[] | null;
928
+ popPools?: Record<string, unknown> | null;
929
+ proxied?: boolean | null;
930
+ randomSteering?: {
931
+ defaultWeight?: number | null;
932
+ poolWeights?: Record<string, unknown> | null;
933
+ } | null;
934
+ regionPools?: Record<string, unknown> | null;
935
+ rules?:
936
+ | {
937
+ condition?: string | null;
938
+ disabled?: boolean | null;
939
+ fixedResponse?: {
940
+ contentType?: string | null;
941
+ location?: string | null;
942
+ messageBody?: string | null;
943
+ statusCode?: number | null;
944
+ } | null;
945
+ name?: string | null;
946
+ overrides?: {
947
+ adaptiveRouting?: unknown | null;
948
+ countryPools?: Record<string, unknown> | null;
949
+ defaultPools?: string[] | null;
950
+ fallbackPool?: string | null;
951
+ locationStrategy?: unknown | null;
952
+ popPools?: Record<string, unknown> | null;
953
+ randomSteering?: unknown | null;
954
+ regionPools?: Record<string, unknown> | null;
955
+ sessionAffinity?:
956
+ | "none"
957
+ | "cookie"
958
+ | "ip_cookie"
959
+ | "header"
960
+ | null;
961
+ sessionAffinityAttributes?: unknown | null;
962
+ sessionAffinityTtl?: number | null;
963
+ steeringPolicy?:
964
+ | ""
965
+ | "off"
966
+ | "geo"
967
+ | "random"
968
+ | "dynamic_latency"
969
+ | "proximity"
970
+ | "least_outstanding_requests"
971
+ | "least_connections"
972
+ | null;
973
+ ttl?: number | null;
974
+ } | null;
975
+ priority?: number | null;
976
+ terminates?: boolean | null;
977
+ }[]
978
+ | null;
979
+ sessionAffinity?: "none" | "cookie" | "ip_cookie" | "header" | null;
980
+ sessionAffinityAttributes?: {
981
+ drainDuration?: number | null;
982
+ headers?: string[] | null;
983
+ requireAllHeaders?: boolean | null;
984
+ samesite?: "Auto" | "Lax" | "None" | "Strict" | null;
985
+ secure?: "Auto" | "Always" | "Never" | null;
986
+ zeroDowntimeFailover?: "none" | "temporary" | "sticky" | null;
987
+ } | null;
988
+ sessionAffinityTtl?: number | null;
989
+ steeringPolicy?:
990
+ | ""
991
+ | "off"
992
+ | "geo"
993
+ | "random"
994
+ | "dynamic_latency"
995
+ | "proximity"
996
+ | "least_outstanding_requests"
997
+ | "least_connections"
998
+ | null;
999
+ ttl?: number | null;
1000
+ zoneName?: string | null;
1001
+ },
1002
+ ListLoadBalancersError,
1003
+ Credentials | HttpClient.HttpClient
1004
+ >;
1005
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
879
1006
  input: ListLoadBalancersRequest,
880
1007
  output: ListLoadBalancersResponse,
881
1008
  errors: [],
1009
+ pagination: {
1010
+ mode: "single",
1011
+ items: "result",
1012
+ } as const,
882
1013
  }));
883
1014
 
884
1015
  export interface CreateLoadBalancerRequest {
@@ -1548,33 +1679,37 @@ export const CreateLoadBalancerResponse =
1548
1679
  ),
1549
1680
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1550
1681
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1551
- }).pipe(
1552
- Schema.encodeKeys({
1553
- id: "id",
1554
- adaptiveRouting: "adaptive_routing",
1555
- countryPools: "country_pools",
1556
- createdOn: "created_on",
1557
- defaultPools: "default_pools",
1558
- description: "description",
1559
- enabled: "enabled",
1560
- fallbackPool: "fallback_pool",
1561
- locationStrategy: "location_strategy",
1562
- modifiedOn: "modified_on",
1563
- name: "name",
1564
- networks: "networks",
1565
- popPools: "pop_pools",
1566
- proxied: "proxied",
1567
- randomSteering: "random_steering",
1568
- regionPools: "region_pools",
1569
- rules: "rules",
1570
- sessionAffinity: "session_affinity",
1571
- sessionAffinityAttributes: "session_affinity_attributes",
1572
- sessionAffinityTtl: "session_affinity_ttl",
1573
- steeringPolicy: "steering_policy",
1574
- ttl: "ttl",
1575
- zoneName: "zone_name",
1576
- }),
1577
- ) as unknown as Schema.Schema<CreateLoadBalancerResponse>;
1682
+ })
1683
+ .pipe(
1684
+ Schema.encodeKeys({
1685
+ id: "id",
1686
+ adaptiveRouting: "adaptive_routing",
1687
+ countryPools: "country_pools",
1688
+ createdOn: "created_on",
1689
+ defaultPools: "default_pools",
1690
+ description: "description",
1691
+ enabled: "enabled",
1692
+ fallbackPool: "fallback_pool",
1693
+ locationStrategy: "location_strategy",
1694
+ modifiedOn: "modified_on",
1695
+ name: "name",
1696
+ networks: "networks",
1697
+ popPools: "pop_pools",
1698
+ proxied: "proxied",
1699
+ randomSteering: "random_steering",
1700
+ regionPools: "region_pools",
1701
+ rules: "rules",
1702
+ sessionAffinity: "session_affinity",
1703
+ sessionAffinityAttributes: "session_affinity_attributes",
1704
+ sessionAffinityTtl: "session_affinity_ttl",
1705
+ steeringPolicy: "steering_policy",
1706
+ ttl: "ttl",
1707
+ zoneName: "zone_name",
1708
+ }),
1709
+ )
1710
+ .pipe(
1711
+ T.ResponsePath("result"),
1712
+ ) as unknown as Schema.Schema<CreateLoadBalancerResponse>;
1578
1713
 
1579
1714
  export type CreateLoadBalancerError = DefaultErrors;
1580
1715
 
@@ -2265,33 +2400,37 @@ export const UpdateLoadBalancerResponse =
2265
2400
  ),
2266
2401
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2267
2402
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2268
- }).pipe(
2269
- Schema.encodeKeys({
2270
- id: "id",
2271
- adaptiveRouting: "adaptive_routing",
2272
- countryPools: "country_pools",
2273
- createdOn: "created_on",
2274
- defaultPools: "default_pools",
2275
- description: "description",
2276
- enabled: "enabled",
2277
- fallbackPool: "fallback_pool",
2278
- locationStrategy: "location_strategy",
2279
- modifiedOn: "modified_on",
2280
- name: "name",
2281
- networks: "networks",
2282
- popPools: "pop_pools",
2283
- proxied: "proxied",
2284
- randomSteering: "random_steering",
2285
- regionPools: "region_pools",
2286
- rules: "rules",
2287
- sessionAffinity: "session_affinity",
2288
- sessionAffinityAttributes: "session_affinity_attributes",
2289
- sessionAffinityTtl: "session_affinity_ttl",
2290
- steeringPolicy: "steering_policy",
2291
- ttl: "ttl",
2292
- zoneName: "zone_name",
2293
- }),
2294
- ) as unknown as Schema.Schema<UpdateLoadBalancerResponse>;
2403
+ })
2404
+ .pipe(
2405
+ Schema.encodeKeys({
2406
+ id: "id",
2407
+ adaptiveRouting: "adaptive_routing",
2408
+ countryPools: "country_pools",
2409
+ createdOn: "created_on",
2410
+ defaultPools: "default_pools",
2411
+ description: "description",
2412
+ enabled: "enabled",
2413
+ fallbackPool: "fallback_pool",
2414
+ locationStrategy: "location_strategy",
2415
+ modifiedOn: "modified_on",
2416
+ name: "name",
2417
+ networks: "networks",
2418
+ popPools: "pop_pools",
2419
+ proxied: "proxied",
2420
+ randomSteering: "random_steering",
2421
+ regionPools: "region_pools",
2422
+ rules: "rules",
2423
+ sessionAffinity: "session_affinity",
2424
+ sessionAffinityAttributes: "session_affinity_attributes",
2425
+ sessionAffinityTtl: "session_affinity_ttl",
2426
+ steeringPolicy: "steering_policy",
2427
+ ttl: "ttl",
2428
+ zoneName: "zone_name",
2429
+ }),
2430
+ )
2431
+ .pipe(
2432
+ T.ResponsePath("result"),
2433
+ ) as unknown as Schema.Schema<UpdateLoadBalancerResponse>;
2295
2434
 
2296
2435
  export type UpdateLoadBalancerError = DefaultErrors;
2297
2436
 
@@ -2978,33 +3117,37 @@ export const PatchLoadBalancerResponse =
2978
3117
  ),
2979
3118
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2980
3119
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2981
- }).pipe(
2982
- Schema.encodeKeys({
2983
- id: "id",
2984
- adaptiveRouting: "adaptive_routing",
2985
- countryPools: "country_pools",
2986
- createdOn: "created_on",
2987
- defaultPools: "default_pools",
2988
- description: "description",
2989
- enabled: "enabled",
2990
- fallbackPool: "fallback_pool",
2991
- locationStrategy: "location_strategy",
2992
- modifiedOn: "modified_on",
2993
- name: "name",
2994
- networks: "networks",
2995
- popPools: "pop_pools",
2996
- proxied: "proxied",
2997
- randomSteering: "random_steering",
2998
- regionPools: "region_pools",
2999
- rules: "rules",
3000
- sessionAffinity: "session_affinity",
3001
- sessionAffinityAttributes: "session_affinity_attributes",
3002
- sessionAffinityTtl: "session_affinity_ttl",
3003
- steeringPolicy: "steering_policy",
3004
- ttl: "ttl",
3005
- zoneName: "zone_name",
3006
- }),
3007
- ) as unknown as Schema.Schema<PatchLoadBalancerResponse>;
3120
+ })
3121
+ .pipe(
3122
+ Schema.encodeKeys({
3123
+ id: "id",
3124
+ adaptiveRouting: "adaptive_routing",
3125
+ countryPools: "country_pools",
3126
+ createdOn: "created_on",
3127
+ defaultPools: "default_pools",
3128
+ description: "description",
3129
+ enabled: "enabled",
3130
+ fallbackPool: "fallback_pool",
3131
+ locationStrategy: "location_strategy",
3132
+ modifiedOn: "modified_on",
3133
+ name: "name",
3134
+ networks: "networks",
3135
+ popPools: "pop_pools",
3136
+ proxied: "proxied",
3137
+ randomSteering: "random_steering",
3138
+ regionPools: "region_pools",
3139
+ rules: "rules",
3140
+ sessionAffinity: "session_affinity",
3141
+ sessionAffinityAttributes: "session_affinity_attributes",
3142
+ sessionAffinityTtl: "session_affinity_ttl",
3143
+ steeringPolicy: "steering_policy",
3144
+ ttl: "ttl",
3145
+ zoneName: "zone_name",
3146
+ }),
3147
+ )
3148
+ .pipe(
3149
+ T.ResponsePath("result"),
3150
+ ) as unknown as Schema.Schema<PatchLoadBalancerResponse>;
3008
3151
 
3009
3152
  export type PatchLoadBalancerError = DefaultErrors;
3010
3153
 
@@ -3042,7 +3185,9 @@ export interface DeleteLoadBalancerResponse {
3042
3185
  export const DeleteLoadBalancerResponse =
3043
3186
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3044
3187
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3045
- }) as unknown as Schema.Schema<DeleteLoadBalancerResponse>;
3188
+ }).pipe(
3189
+ T.ResponsePath("result"),
3190
+ ) as unknown as Schema.Schema<DeleteLoadBalancerResponse>;
3046
3191
 
3047
3192
  export type DeleteLoadBalancerError = DefaultErrors;
3048
3193
 
@@ -3131,133 +3276,24 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3131
3276
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3132
3277
  path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3133
3278
  port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3134
- probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3135
- retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3136
- timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3137
- type: Schema.optional(
3138
- Schema.Union([
3139
- Schema.Literals([
3140
- "http",
3141
- "https",
3142
- "tcp",
3143
- "udp_icmp",
3144
- "icmp_ping",
3145
- "smtp",
3146
- ]),
3147
- Schema.Null,
3148
- ]),
3149
- ),
3150
- }).pipe(
3151
- Schema.encodeKeys({
3152
- id: "id",
3153
- allowInsecure: "allow_insecure",
3154
- consecutiveDown: "consecutive_down",
3155
- consecutiveUp: "consecutive_up",
3156
- createdOn: "created_on",
3157
- description: "description",
3158
- expectedBody: "expected_body",
3159
- expectedCodes: "expected_codes",
3160
- followRedirects: "follow_redirects",
3161
- header: "header",
3162
- interval: "interval",
3163
- method: "method",
3164
- modifiedOn: "modified_on",
3165
- path: "path",
3166
- port: "port",
3167
- probeZone: "probe_zone",
3168
- retries: "retries",
3169
- timeout: "timeout",
3170
- type: "type",
3171
- }),
3172
- ) as unknown as Schema.Schema<GetMonitorResponse>;
3173
-
3174
- export type GetMonitorError = DefaultErrors;
3175
-
3176
- export const getMonitor: API.OperationMethod<
3177
- GetMonitorRequest,
3178
- GetMonitorResponse,
3179
- GetMonitorError,
3180
- Credentials | HttpClient.HttpClient
3181
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3182
- input: GetMonitorRequest,
3183
- output: GetMonitorResponse,
3184
- errors: [],
3185
- }));
3186
-
3187
- export interface ListMonitorsRequest {
3188
- /** Identifier. */
3189
- accountId: string;
3190
- }
3191
-
3192
- export const ListMonitorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3193
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
3194
- }).pipe(
3195
- T.Http({
3196
- method: "GET",
3197
- path: "/accounts/{account_id}/load_balancers/monitors",
3198
- }),
3199
- ) as unknown as Schema.Schema<ListMonitorsRequest>;
3200
-
3201
- export type ListMonitorsResponse = {
3202
- id?: string | null;
3203
- allowInsecure?: boolean | null;
3204
- consecutiveDown?: number | null;
3205
- consecutiveUp?: number | null;
3206
- createdOn?: string | null;
3207
- description?: string | null;
3208
- expectedBody?: string | null;
3209
- expectedCodes?: string | null;
3210
- followRedirects?: boolean | null;
3211
- header?: Record<string, unknown> | null;
3212
- interval?: number | null;
3213
- method?: string | null;
3214
- modifiedOn?: string | null;
3215
- path?: string | null;
3216
- port?: number | null;
3217
- probeZone?: string | null;
3218
- retries?: number | null;
3219
- timeout?: number | null;
3220
- type?: "http" | "https" | "tcp" | "udp_icmp" | "icmp_ping" | "smtp" | null;
3221
- }[];
3222
-
3223
- export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3224
- Schema.Struct({
3225
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3226
- allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3227
- consecutiveDown: Schema.optional(
3228
- Schema.Union([Schema.Number, Schema.Null]),
3229
- ),
3230
- consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3231
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3232
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3233
- expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3234
- expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3235
- followRedirects: Schema.optional(
3236
- Schema.Union([Schema.Boolean, Schema.Null]),
3237
- ),
3238
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3239
- interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3240
- method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3241
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3242
- path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3243
- port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3244
- probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3245
- retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3246
- timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3247
- type: Schema.optional(
3248
- Schema.Union([
3249
- Schema.Literals([
3250
- "http",
3251
- "https",
3252
- "tcp",
3253
- "udp_icmp",
3254
- "icmp_ping",
3255
- "smtp",
3256
- ]),
3257
- Schema.Null,
3279
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3280
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3281
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3282
+ type: Schema.optional(
3283
+ Schema.Union([
3284
+ Schema.Literals([
3285
+ "http",
3286
+ "https",
3287
+ "tcp",
3288
+ "udp_icmp",
3289
+ "icmp_ping",
3290
+ "smtp",
3258
3291
  ]),
3259
- ),
3260
- }).pipe(
3292
+ Schema.Null,
3293
+ ]),
3294
+ ),
3295
+ })
3296
+ .pipe(
3261
3297
  Schema.encodeKeys({
3262
3298
  id: "id",
3263
3299
  allowInsecure: "allow_insecure",
@@ -3279,20 +3315,187 @@ export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3279
3315
  timeout: "timeout",
3280
3316
  type: "type",
3281
3317
  }),
3318
+ )
3319
+ .pipe(
3320
+ T.ResponsePath("result"),
3321
+ ) as unknown as Schema.Schema<GetMonitorResponse>;
3322
+
3323
+ export type GetMonitorError = DefaultErrors;
3324
+
3325
+ export const getMonitor: API.OperationMethod<
3326
+ GetMonitorRequest,
3327
+ GetMonitorResponse,
3328
+ GetMonitorError,
3329
+ Credentials | HttpClient.HttpClient
3330
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3331
+ input: GetMonitorRequest,
3332
+ output: GetMonitorResponse,
3333
+ errors: [],
3334
+ }));
3335
+
3336
+ export interface ListMonitorsRequest {
3337
+ /** Identifier. */
3338
+ accountId: string;
3339
+ }
3340
+
3341
+ export const ListMonitorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3342
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
3343
+ }).pipe(
3344
+ T.Http({
3345
+ method: "GET",
3346
+ path: "/accounts/{account_id}/load_balancers/monitors",
3347
+ }),
3348
+ ) as unknown as Schema.Schema<ListMonitorsRequest>;
3349
+
3350
+ export interface ListMonitorsResponse {
3351
+ result: {
3352
+ id?: string | null;
3353
+ allowInsecure?: boolean | null;
3354
+ consecutiveDown?: number | null;
3355
+ consecutiveUp?: number | null;
3356
+ createdOn?: string | null;
3357
+ description?: string | null;
3358
+ expectedBody?: string | null;
3359
+ expectedCodes?: string | null;
3360
+ followRedirects?: boolean | null;
3361
+ header?: Record<string, unknown> | null;
3362
+ interval?: number | null;
3363
+ method?: string | null;
3364
+ modifiedOn?: string | null;
3365
+ path?: string | null;
3366
+ port?: number | null;
3367
+ probeZone?: string | null;
3368
+ retries?: number | null;
3369
+ timeout?: number | null;
3370
+ type?: "http" | "https" | "tcp" | "udp_icmp" | "icmp_ping" | "smtp" | null;
3371
+ }[];
3372
+ }
3373
+
3374
+ export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3375
+ result: Schema.Array(
3376
+ Schema.Struct({
3377
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3378
+ allowInsecure: Schema.optional(
3379
+ Schema.Union([Schema.Boolean, Schema.Null]),
3380
+ ),
3381
+ consecutiveDown: Schema.optional(
3382
+ Schema.Union([Schema.Number, Schema.Null]),
3383
+ ),
3384
+ consecutiveUp: Schema.optional(
3385
+ Schema.Union([Schema.Number, Schema.Null]),
3386
+ ),
3387
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3388
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3389
+ expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3390
+ expectedCodes: Schema.optional(
3391
+ Schema.Union([Schema.String, Schema.Null]),
3392
+ ),
3393
+ followRedirects: Schema.optional(
3394
+ Schema.Union([Schema.Boolean, Schema.Null]),
3395
+ ),
3396
+ header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3397
+ interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3398
+ method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3399
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3400
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3401
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3402
+ probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3403
+ retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3404
+ timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3405
+ type: Schema.optional(
3406
+ Schema.Union([
3407
+ Schema.Literals([
3408
+ "http",
3409
+ "https",
3410
+ "tcp",
3411
+ "udp_icmp",
3412
+ "icmp_ping",
3413
+ "smtp",
3414
+ ]),
3415
+ Schema.Null,
3416
+ ]),
3417
+ ),
3418
+ }).pipe(
3419
+ Schema.encodeKeys({
3420
+ id: "id",
3421
+ allowInsecure: "allow_insecure",
3422
+ consecutiveDown: "consecutive_down",
3423
+ consecutiveUp: "consecutive_up",
3424
+ createdOn: "created_on",
3425
+ description: "description",
3426
+ expectedBody: "expected_body",
3427
+ expectedCodes: "expected_codes",
3428
+ followRedirects: "follow_redirects",
3429
+ header: "header",
3430
+ interval: "interval",
3431
+ method: "method",
3432
+ modifiedOn: "modified_on",
3433
+ path: "path",
3434
+ port: "port",
3435
+ probeZone: "probe_zone",
3436
+ retries: "retries",
3437
+ timeout: "timeout",
3438
+ type: "type",
3439
+ }),
3440
+ ),
3282
3441
  ),
3283
- ) as unknown as Schema.Schema<ListMonitorsResponse>;
3442
+ }) as unknown as Schema.Schema<ListMonitorsResponse>;
3284
3443
 
3285
3444
  export type ListMonitorsError = DefaultErrors;
3286
3445
 
3287
- export const listMonitors: API.OperationMethod<
3446
+ export const listMonitors: API.PaginatedOperationMethod<
3288
3447
  ListMonitorsRequest,
3289
3448
  ListMonitorsResponse,
3290
3449
  ListMonitorsError,
3291
3450
  Credentials | HttpClient.HttpClient
3292
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3451
+ > & {
3452
+ pages: (
3453
+ input: ListMonitorsRequest,
3454
+ ) => stream.Stream<
3455
+ ListMonitorsResponse,
3456
+ ListMonitorsError,
3457
+ Credentials | HttpClient.HttpClient
3458
+ >;
3459
+ items: (input: ListMonitorsRequest) => stream.Stream<
3460
+ {
3461
+ id?: string | null;
3462
+ allowInsecure?: boolean | null;
3463
+ consecutiveDown?: number | null;
3464
+ consecutiveUp?: number | null;
3465
+ createdOn?: string | null;
3466
+ description?: string | null;
3467
+ expectedBody?: string | null;
3468
+ expectedCodes?: string | null;
3469
+ followRedirects?: boolean | null;
3470
+ header?: Record<string, unknown> | null;
3471
+ interval?: number | null;
3472
+ method?: string | null;
3473
+ modifiedOn?: string | null;
3474
+ path?: string | null;
3475
+ port?: number | null;
3476
+ probeZone?: string | null;
3477
+ retries?: number | null;
3478
+ timeout?: number | null;
3479
+ type?:
3480
+ | "http"
3481
+ | "https"
3482
+ | "tcp"
3483
+ | "udp_icmp"
3484
+ | "icmp_ping"
3485
+ | "smtp"
3486
+ | null;
3487
+ },
3488
+ ListMonitorsError,
3489
+ Credentials | HttpClient.HttpClient
3490
+ >;
3491
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3293
3492
  input: ListMonitorsRequest,
3294
3493
  output: ListMonitorsResponse,
3295
3494
  errors: [],
3495
+ pagination: {
3496
+ mode: "single",
3497
+ items: "result",
3498
+ } as const,
3296
3499
  }));
3297
3500
 
3298
3501
  export interface CreateMonitorRequest {
@@ -3447,29 +3650,33 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3447
3650
  Schema.Null,
3448
3651
  ]),
3449
3652
  ),
3450
- }).pipe(
3451
- Schema.encodeKeys({
3452
- id: "id",
3453
- allowInsecure: "allow_insecure",
3454
- consecutiveDown: "consecutive_down",
3455
- consecutiveUp: "consecutive_up",
3456
- createdOn: "created_on",
3457
- description: "description",
3458
- expectedBody: "expected_body",
3459
- expectedCodes: "expected_codes",
3460
- followRedirects: "follow_redirects",
3461
- header: "header",
3462
- interval: "interval",
3463
- method: "method",
3464
- modifiedOn: "modified_on",
3465
- path: "path",
3466
- port: "port",
3467
- probeZone: "probe_zone",
3468
- retries: "retries",
3469
- timeout: "timeout",
3470
- type: "type",
3471
- }),
3472
- ) as unknown as Schema.Schema<CreateMonitorResponse>;
3653
+ })
3654
+ .pipe(
3655
+ Schema.encodeKeys({
3656
+ id: "id",
3657
+ allowInsecure: "allow_insecure",
3658
+ consecutiveDown: "consecutive_down",
3659
+ consecutiveUp: "consecutive_up",
3660
+ createdOn: "created_on",
3661
+ description: "description",
3662
+ expectedBody: "expected_body",
3663
+ expectedCodes: "expected_codes",
3664
+ followRedirects: "follow_redirects",
3665
+ header: "header",
3666
+ interval: "interval",
3667
+ method: "method",
3668
+ modifiedOn: "modified_on",
3669
+ path: "path",
3670
+ port: "port",
3671
+ probeZone: "probe_zone",
3672
+ retries: "retries",
3673
+ timeout: "timeout",
3674
+ type: "type",
3675
+ }),
3676
+ )
3677
+ .pipe(
3678
+ T.ResponsePath("result"),
3679
+ ) as unknown as Schema.Schema<CreateMonitorResponse>;
3473
3680
 
3474
3681
  export type CreateMonitorError = DefaultErrors;
3475
3682
 
@@ -3638,29 +3845,33 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3638
3845
  Schema.Null,
3639
3846
  ]),
3640
3847
  ),
3641
- }).pipe(
3642
- Schema.encodeKeys({
3643
- id: "id",
3644
- allowInsecure: "allow_insecure",
3645
- consecutiveDown: "consecutive_down",
3646
- consecutiveUp: "consecutive_up",
3647
- createdOn: "created_on",
3648
- description: "description",
3649
- expectedBody: "expected_body",
3650
- expectedCodes: "expected_codes",
3651
- followRedirects: "follow_redirects",
3652
- header: "header",
3653
- interval: "interval",
3654
- method: "method",
3655
- modifiedOn: "modified_on",
3656
- path: "path",
3657
- port: "port",
3658
- probeZone: "probe_zone",
3659
- retries: "retries",
3660
- timeout: "timeout",
3661
- type: "type",
3662
- }),
3663
- ) as unknown as Schema.Schema<UpdateMonitorResponse>;
3848
+ })
3849
+ .pipe(
3850
+ Schema.encodeKeys({
3851
+ id: "id",
3852
+ allowInsecure: "allow_insecure",
3853
+ consecutiveDown: "consecutive_down",
3854
+ consecutiveUp: "consecutive_up",
3855
+ createdOn: "created_on",
3856
+ description: "description",
3857
+ expectedBody: "expected_body",
3858
+ expectedCodes: "expected_codes",
3859
+ followRedirects: "follow_redirects",
3860
+ header: "header",
3861
+ interval: "interval",
3862
+ method: "method",
3863
+ modifiedOn: "modified_on",
3864
+ path: "path",
3865
+ port: "port",
3866
+ probeZone: "probe_zone",
3867
+ retries: "retries",
3868
+ timeout: "timeout",
3869
+ type: "type",
3870
+ }),
3871
+ )
3872
+ .pipe(
3873
+ T.ResponsePath("result"),
3874
+ ) as unknown as Schema.Schema<UpdateMonitorResponse>;
3664
3875
 
3665
3876
  export type UpdateMonitorError = DefaultErrors;
3666
3877
 
@@ -3829,29 +4040,33 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3829
4040
  Schema.Null,
3830
4041
  ]),
3831
4042
  ),
3832
- }).pipe(
3833
- Schema.encodeKeys({
3834
- id: "id",
3835
- allowInsecure: "allow_insecure",
3836
- consecutiveDown: "consecutive_down",
3837
- consecutiveUp: "consecutive_up",
3838
- createdOn: "created_on",
3839
- description: "description",
3840
- expectedBody: "expected_body",
3841
- expectedCodes: "expected_codes",
3842
- followRedirects: "follow_redirects",
3843
- header: "header",
3844
- interval: "interval",
3845
- method: "method",
3846
- modifiedOn: "modified_on",
3847
- path: "path",
3848
- port: "port",
3849
- probeZone: "probe_zone",
3850
- retries: "retries",
3851
- timeout: "timeout",
3852
- type: "type",
3853
- }),
3854
- ) as unknown as Schema.Schema<PatchMonitorResponse>;
4043
+ })
4044
+ .pipe(
4045
+ Schema.encodeKeys({
4046
+ id: "id",
4047
+ allowInsecure: "allow_insecure",
4048
+ consecutiveDown: "consecutive_down",
4049
+ consecutiveUp: "consecutive_up",
4050
+ createdOn: "created_on",
4051
+ description: "description",
4052
+ expectedBody: "expected_body",
4053
+ expectedCodes: "expected_codes",
4054
+ followRedirects: "follow_redirects",
4055
+ header: "header",
4056
+ interval: "interval",
4057
+ method: "method",
4058
+ modifiedOn: "modified_on",
4059
+ path: "path",
4060
+ port: "port",
4061
+ probeZone: "probe_zone",
4062
+ retries: "retries",
4063
+ timeout: "timeout",
4064
+ type: "type",
4065
+ }),
4066
+ )
4067
+ .pipe(
4068
+ T.ResponsePath("result"),
4069
+ ) as unknown as Schema.Schema<PatchMonitorResponse>;
3855
4070
 
3856
4071
  export type PatchMonitorError = DefaultErrors;
3857
4072
 
@@ -3888,7 +4103,9 @@ export interface DeleteMonitorResponse {
3888
4103
 
3889
4104
  export const DeleteMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3890
4105
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3891
- }) as unknown as Schema.Schema<DeleteMonitorResponse>;
4106
+ }).pipe(
4107
+ T.ResponsePath("result"),
4108
+ ) as unknown as Schema.Schema<DeleteMonitorResponse>;
3892
4109
 
3893
4110
  export type DeleteMonitorError = DefaultErrors;
3894
4111
 
@@ -3970,15 +4187,19 @@ export const GetMonitorGroupResponse =
3970
4187
  ),
3971
4188
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3972
4189
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3973
- }).pipe(
3974
- Schema.encodeKeys({
3975
- id: "id",
3976
- description: "description",
3977
- members: "members",
3978
- createdAt: "created_at",
3979
- updatedAt: "updated_at",
3980
- }),
3981
- ) as unknown as Schema.Schema<GetMonitorGroupResponse>;
4190
+ })
4191
+ .pipe(
4192
+ Schema.encodeKeys({
4193
+ id: "id",
4194
+ description: "description",
4195
+ members: "members",
4196
+ createdAt: "created_at",
4197
+ updatedAt: "updated_at",
4198
+ }),
4199
+ )
4200
+ .pipe(
4201
+ T.ResponsePath("result"),
4202
+ ) as unknown as Schema.Schema<GetMonitorGroupResponse>;
3982
4203
 
3983
4204
  export type GetMonitorGroupError = DefaultErrors;
3984
4205
 
@@ -4008,73 +4229,107 @@ export const ListMonitorGroupsRequest =
4008
4229
  }),
4009
4230
  ) as unknown as Schema.Schema<ListMonitorGroupsRequest>;
4010
4231
 
4011
- export type ListMonitorGroupsResponse = {
4012
- id: string;
4013
- description: string;
4014
- members: {
4015
- enabled: boolean;
4016
- monitorId: string;
4017
- monitoringOnly: boolean;
4018
- mustBeHealthy: boolean;
4232
+ export interface ListMonitorGroupsResponse {
4233
+ result: {
4234
+ id: string;
4235
+ description: string;
4236
+ members: {
4237
+ enabled: boolean;
4238
+ monitorId: string;
4239
+ monitoringOnly: boolean;
4240
+ mustBeHealthy: boolean;
4241
+ createdAt?: string | null;
4242
+ updatedAt?: string | null;
4243
+ }[];
4019
4244
  createdAt?: string | null;
4020
4245
  updatedAt?: string | null;
4021
4246
  }[];
4022
- createdAt?: string | null;
4023
- updatedAt?: string | null;
4024
- }[];
4247
+ }
4025
4248
 
4026
4249
  export const ListMonitorGroupsResponse =
4027
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4028
- Schema.Struct({
4029
- id: Schema.String,
4030
- description: Schema.String,
4031
- members: Schema.Array(
4032
- Schema.Struct({
4033
- enabled: Schema.Boolean,
4034
- monitorId: Schema.String,
4035
- monitoringOnly: Schema.Boolean,
4036
- mustBeHealthy: Schema.Boolean,
4037
- createdAt: Schema.optional(
4038
- Schema.Union([Schema.String, Schema.Null]),
4039
- ),
4040
- updatedAt: Schema.optional(
4041
- Schema.Union([Schema.String, Schema.Null]),
4250
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4251
+ result: Schema.Array(
4252
+ Schema.Struct({
4253
+ id: Schema.String,
4254
+ description: Schema.String,
4255
+ members: Schema.Array(
4256
+ Schema.Struct({
4257
+ enabled: Schema.Boolean,
4258
+ monitorId: Schema.String,
4259
+ monitoringOnly: Schema.Boolean,
4260
+ mustBeHealthy: Schema.Boolean,
4261
+ createdAt: Schema.optional(
4262
+ Schema.Union([Schema.String, Schema.Null]),
4263
+ ),
4264
+ updatedAt: Schema.optional(
4265
+ Schema.Union([Schema.String, Schema.Null]),
4266
+ ),
4267
+ }).pipe(
4268
+ Schema.encodeKeys({
4269
+ enabled: "enabled",
4270
+ monitorId: "monitor_id",
4271
+ monitoringOnly: "monitoring_only",
4272
+ mustBeHealthy: "must_be_healthy",
4273
+ createdAt: "created_at",
4274
+ updatedAt: "updated_at",
4275
+ }),
4042
4276
  ),
4043
- }).pipe(
4044
- Schema.encodeKeys({
4045
- enabled: "enabled",
4046
- monitorId: "monitor_id",
4047
- monitoringOnly: "monitoring_only",
4048
- mustBeHealthy: "must_be_healthy",
4049
- createdAt: "created_at",
4050
- updatedAt: "updated_at",
4051
- }),
4052
4277
  ),
4278
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4279
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4280
+ }).pipe(
4281
+ Schema.encodeKeys({
4282
+ id: "id",
4283
+ description: "description",
4284
+ members: "members",
4285
+ createdAt: "created_at",
4286
+ updatedAt: "updated_at",
4287
+ }),
4053
4288
  ),
4054
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4055
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4056
- }).pipe(
4057
- Schema.encodeKeys({
4058
- id: "id",
4059
- description: "description",
4060
- members: "members",
4061
- createdAt: "created_at",
4062
- updatedAt: "updated_at",
4063
- }),
4064
4289
  ),
4065
- ) as unknown as Schema.Schema<ListMonitorGroupsResponse>;
4290
+ }) as unknown as Schema.Schema<ListMonitorGroupsResponse>;
4066
4291
 
4067
4292
  export type ListMonitorGroupsError = DefaultErrors;
4068
4293
 
4069
- export const listMonitorGroups: API.OperationMethod<
4294
+ export const listMonitorGroups: API.PaginatedOperationMethod<
4070
4295
  ListMonitorGroupsRequest,
4071
4296
  ListMonitorGroupsResponse,
4072
4297
  ListMonitorGroupsError,
4073
4298
  Credentials | HttpClient.HttpClient
4074
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4299
+ > & {
4300
+ pages: (
4301
+ input: ListMonitorGroupsRequest,
4302
+ ) => stream.Stream<
4303
+ ListMonitorGroupsResponse,
4304
+ ListMonitorGroupsError,
4305
+ Credentials | HttpClient.HttpClient
4306
+ >;
4307
+ items: (input: ListMonitorGroupsRequest) => stream.Stream<
4308
+ {
4309
+ id: string;
4310
+ description: string;
4311
+ members: {
4312
+ enabled: boolean;
4313
+ monitorId: string;
4314
+ monitoringOnly: boolean;
4315
+ mustBeHealthy: boolean;
4316
+ createdAt?: string | null;
4317
+ updatedAt?: string | null;
4318
+ }[];
4319
+ createdAt?: string | null;
4320
+ updatedAt?: string | null;
4321
+ },
4322
+ ListMonitorGroupsError,
4323
+ Credentials | HttpClient.HttpClient
4324
+ >;
4325
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4075
4326
  input: ListMonitorGroupsRequest,
4076
4327
  output: ListMonitorGroupsResponse,
4077
4328
  errors: [],
4329
+ pagination: {
4330
+ mode: "single",
4331
+ items: "result",
4332
+ } as const,
4078
4333
  }));
4079
4334
 
4080
4335
  export interface CreateMonitorGroupRequest {
@@ -4164,16 +4419,20 @@ export const CreateMonitorGroupResponse =
4164
4419
  ),
4165
4420
  ),
4166
4421
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4167
- updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4168
- }).pipe(
4169
- Schema.encodeKeys({
4170
- id: "id",
4171
- description: "description",
4172
- members: "members",
4173
- createdAt: "created_at",
4174
- updatedAt: "updated_at",
4175
- }),
4176
- ) as unknown as Schema.Schema<CreateMonitorGroupResponse>;
4422
+ updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4423
+ })
4424
+ .pipe(
4425
+ Schema.encodeKeys({
4426
+ id: "id",
4427
+ description: "description",
4428
+ members: "members",
4429
+ createdAt: "created_at",
4430
+ updatedAt: "updated_at",
4431
+ }),
4432
+ )
4433
+ .pipe(
4434
+ T.ResponsePath("result"),
4435
+ ) as unknown as Schema.Schema<CreateMonitorGroupResponse>;
4177
4436
 
4178
4437
  export type CreateMonitorGroupError = DefaultErrors;
4179
4438
 
@@ -4278,15 +4537,19 @@ export const UpdateMonitorGroupResponse =
4278
4537
  ),
4279
4538
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4280
4539
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4281
- }).pipe(
4282
- Schema.encodeKeys({
4283
- id: "id",
4284
- description: "description",
4285
- members: "members",
4286
- createdAt: "created_at",
4287
- updatedAt: "updated_at",
4288
- }),
4289
- ) as unknown as Schema.Schema<UpdateMonitorGroupResponse>;
4540
+ })
4541
+ .pipe(
4542
+ Schema.encodeKeys({
4543
+ id: "id",
4544
+ description: "description",
4545
+ members: "members",
4546
+ createdAt: "created_at",
4547
+ updatedAt: "updated_at",
4548
+ }),
4549
+ )
4550
+ .pipe(
4551
+ T.ResponsePath("result"),
4552
+ ) as unknown as Schema.Schema<UpdateMonitorGroupResponse>;
4290
4553
 
4291
4554
  export type UpdateMonitorGroupError = DefaultErrors;
4292
4555
 
@@ -4391,15 +4654,19 @@ export const PatchMonitorGroupResponse =
4391
4654
  ),
4392
4655
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4393
4656
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4394
- }).pipe(
4395
- Schema.encodeKeys({
4396
- id: "id",
4397
- description: "description",
4398
- members: "members",
4399
- createdAt: "created_at",
4400
- updatedAt: "updated_at",
4401
- }),
4402
- ) as unknown as Schema.Schema<PatchMonitorGroupResponse>;
4657
+ })
4658
+ .pipe(
4659
+ Schema.encodeKeys({
4660
+ id: "id",
4661
+ description: "description",
4662
+ members: "members",
4663
+ createdAt: "created_at",
4664
+ updatedAt: "updated_at",
4665
+ }),
4666
+ )
4667
+ .pipe(
4668
+ T.ResponsePath("result"),
4669
+ ) as unknown as Schema.Schema<PatchMonitorGroupResponse>;
4403
4670
 
4404
4671
  export type PatchMonitorGroupError = DefaultErrors;
4405
4672
 
@@ -4476,15 +4743,19 @@ export const DeleteMonitorGroupResponse =
4476
4743
  ),
4477
4744
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4478
4745
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4479
- }).pipe(
4480
- Schema.encodeKeys({
4481
- id: "id",
4482
- description: "description",
4483
- members: "members",
4484
- createdAt: "created_at",
4485
- updatedAt: "updated_at",
4486
- }),
4487
- ) as unknown as Schema.Schema<DeleteMonitorGroupResponse>;
4746
+ })
4747
+ .pipe(
4748
+ Schema.encodeKeys({
4749
+ id: "id",
4750
+ description: "description",
4751
+ members: "members",
4752
+ createdAt: "created_at",
4753
+ updatedAt: "updated_at",
4754
+ }),
4755
+ )
4756
+ .pipe(
4757
+ T.ResponsePath("result"),
4758
+ ) as unknown as Schema.Schema<DeleteMonitorGroupResponse>;
4488
4759
 
4489
4760
  export type DeleteMonitorGroupError = DefaultErrors;
4490
4761
 
@@ -4605,9 +4876,11 @@ export const CreateMonitorPreviewResponse =
4605
4876
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4606
4877
  pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4607
4878
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4608
- }).pipe(
4609
- Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }),
4610
- ) as unknown as Schema.Schema<CreateMonitorPreviewResponse>;
4879
+ })
4880
+ .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
4881
+ .pipe(
4882
+ T.ResponsePath("result"),
4883
+ ) as unknown as Schema.Schema<CreateMonitorPreviewResponse>;
4611
4884
 
4612
4885
  export type CreateMonitorPreviewError = DefaultErrors;
4613
4886
 
@@ -4643,46 +4916,76 @@ export const GetMonitorReferenceRequest =
4643
4916
  }),
4644
4917
  ) as unknown as Schema.Schema<GetMonitorReferenceRequest>;
4645
4918
 
4646
- export type GetMonitorReferenceResponse = {
4647
- referenceType?: "*" | "referral" | "referrer" | null;
4648
- resourceId?: string | null;
4649
- resourceName?: string | null;
4650
- resourceType?: string | null;
4651
- }[];
4919
+ export interface GetMonitorReferenceResponse {
4920
+ result: {
4921
+ referenceType?: "*" | "referral" | "referrer" | null;
4922
+ resourceId?: string | null;
4923
+ resourceName?: string | null;
4924
+ resourceType?: string | null;
4925
+ }[];
4926
+ }
4652
4927
 
4653
4928
  export const GetMonitorReferenceResponse =
4654
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4655
- Schema.Struct({
4656
- referenceType: Schema.optional(
4657
- Schema.Union([
4658
- Schema.Literals(["*", "referral", "referrer"]),
4659
- Schema.Null,
4660
- ]),
4929
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4930
+ result: Schema.Array(
4931
+ Schema.Struct({
4932
+ referenceType: Schema.optional(
4933
+ Schema.Union([
4934
+ Schema.Literals(["*", "referral", "referrer"]),
4935
+ Schema.Null,
4936
+ ]),
4937
+ ),
4938
+ resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4939
+ resourceName: Schema.optional(
4940
+ Schema.Union([Schema.String, Schema.Null]),
4941
+ ),
4942
+ resourceType: Schema.optional(
4943
+ Schema.Union([Schema.String, Schema.Null]),
4944
+ ),
4945
+ }).pipe(
4946
+ Schema.encodeKeys({
4947
+ referenceType: "reference_type",
4948
+ resourceId: "resource_id",
4949
+ resourceName: "resource_name",
4950
+ resourceType: "resource_type",
4951
+ }),
4661
4952
  ),
4662
- resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4663
- resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4664
- resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4665
- }).pipe(
4666
- Schema.encodeKeys({
4667
- referenceType: "reference_type",
4668
- resourceId: "resource_id",
4669
- resourceName: "resource_name",
4670
- resourceType: "resource_type",
4671
- }),
4672
4953
  ),
4673
- ) as unknown as Schema.Schema<GetMonitorReferenceResponse>;
4954
+ }) as unknown as Schema.Schema<GetMonitorReferenceResponse>;
4674
4955
 
4675
4956
  export type GetMonitorReferenceError = DefaultErrors;
4676
4957
 
4677
- export const getMonitorReference: API.OperationMethod<
4958
+ export const getMonitorReference: API.PaginatedOperationMethod<
4678
4959
  GetMonitorReferenceRequest,
4679
4960
  GetMonitorReferenceResponse,
4680
4961
  GetMonitorReferenceError,
4681
4962
  Credentials | HttpClient.HttpClient
4682
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4963
+ > & {
4964
+ pages: (
4965
+ input: GetMonitorReferenceRequest,
4966
+ ) => stream.Stream<
4967
+ GetMonitorReferenceResponse,
4968
+ GetMonitorReferenceError,
4969
+ Credentials | HttpClient.HttpClient
4970
+ >;
4971
+ items: (input: GetMonitorReferenceRequest) => stream.Stream<
4972
+ {
4973
+ referenceType?: "*" | "referral" | "referrer" | null;
4974
+ resourceId?: string | null;
4975
+ resourceName?: string | null;
4976
+ resourceType?: string | null;
4977
+ },
4978
+ GetMonitorReferenceError,
4979
+ Credentials | HttpClient.HttpClient
4980
+ >;
4981
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4683
4982
  input: GetMonitorReferenceRequest,
4684
4983
  output: GetMonitorReferenceResponse,
4685
4984
  errors: [],
4985
+ pagination: {
4986
+ mode: "single",
4987
+ items: "result",
4988
+ } as const,
4686
4989
  }));
4687
4990
 
4688
4991
  // =============================================================================
@@ -4810,29 +5113,31 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4810
5113
  origins: Schema.optional(
4811
5114
  Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
4812
5115
  ),
4813
- }).pipe(
4814
- Schema.encodeKeys({
4815
- id: "id",
4816
- checkRegions: "check_regions",
4817
- createdOn: "created_on",
4818
- description: "description",
4819
- disabledAt: "disabled_at",
4820
- enabled: "enabled",
4821
- latitude: "latitude",
4822
- loadShedding: "load_shedding",
4823
- longitude: "longitude",
4824
- minimumOrigins: "minimum_origins",
4825
- modifiedOn: "modified_on",
4826
- monitor: "monitor",
4827
- monitorGroup: "monitor_group",
4828
- name: "name",
4829
- networks: "networks",
4830
- notificationEmail: "notification_email",
4831
- notificationFilter: "notification_filter",
4832
- originSteering: "origin_steering",
4833
- origins: "origins",
4834
- }),
4835
- ) as unknown as Schema.Schema<GetPoolResponse>;
5116
+ })
5117
+ .pipe(
5118
+ Schema.encodeKeys({
5119
+ id: "id",
5120
+ checkRegions: "check_regions",
5121
+ createdOn: "created_on",
5122
+ description: "description",
5123
+ disabledAt: "disabled_at",
5124
+ enabled: "enabled",
5125
+ latitude: "latitude",
5126
+ loadShedding: "load_shedding",
5127
+ longitude: "longitude",
5128
+ minimumOrigins: "minimum_origins",
5129
+ modifiedOn: "modified_on",
5130
+ monitor: "monitor",
5131
+ monitorGroup: "monitor_group",
5132
+ name: "name",
5133
+ networks: "networks",
5134
+ notificationEmail: "notification_email",
5135
+ notificationFilter: "notification_filter",
5136
+ originSteering: "origin_steering",
5137
+ origins: "origins",
5138
+ }),
5139
+ )
5140
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetPoolResponse>;
4836
5141
 
4837
5142
  export type GetPoolError = DefaultErrors;
4838
5143
 
@@ -4864,134 +5169,196 @@ export const ListPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4864
5169
  }),
4865
5170
  ) as unknown as Schema.Schema<ListPoolsRequest>;
4866
5171
 
4867
- export type ListPoolsResponse = {
4868
- id?: string | null;
4869
- checkRegions?:
4870
- | (
4871
- | "WNAM"
4872
- | "ENAM"
4873
- | "WEU"
4874
- | "EEU"
4875
- | "NSAM"
4876
- | "SSAM"
4877
- | "OC"
4878
- | "ME"
4879
- | "NAF"
4880
- | "SAF"
4881
- | "SEAS"
4882
- | "NEAS"
4883
- | "ALL_REGIONS"
4884
- | "SAS"
4885
- )[]
4886
- | null;
4887
- createdOn?: string | null;
4888
- description?: string | null;
4889
- disabledAt?: string | null;
4890
- enabled?: boolean | null;
4891
- latitude?: number | null;
4892
- loadShedding?: unknown | null;
4893
- longitude?: number | null;
4894
- minimumOrigins?: number | null;
4895
- modifiedOn?: string | null;
4896
- monitor?: string | null;
4897
- monitorGroup?: string | null;
4898
- name?: string | null;
4899
- networks?: string[] | null;
4900
- notificationEmail?: string | null;
4901
- notificationFilter?: unknown | null;
4902
- originSteering?: unknown | null;
4903
- origins?: unknown[] | null;
4904
- }[];
5172
+ export interface ListPoolsResponse {
5173
+ result: {
5174
+ id?: string | null;
5175
+ checkRegions?:
5176
+ | (
5177
+ | "WNAM"
5178
+ | "ENAM"
5179
+ | "WEU"
5180
+ | "EEU"
5181
+ | "NSAM"
5182
+ | "SSAM"
5183
+ | "OC"
5184
+ | "ME"
5185
+ | "NAF"
5186
+ | "SAF"
5187
+ | "SEAS"
5188
+ | "NEAS"
5189
+ | "ALL_REGIONS"
5190
+ | "SAS"
5191
+ )[]
5192
+ | null;
5193
+ createdOn?: string | null;
5194
+ description?: string | null;
5195
+ disabledAt?: string | null;
5196
+ enabled?: boolean | null;
5197
+ latitude?: number | null;
5198
+ loadShedding?: unknown | null;
5199
+ longitude?: number | null;
5200
+ minimumOrigins?: number | null;
5201
+ modifiedOn?: string | null;
5202
+ monitor?: string | null;
5203
+ monitorGroup?: string | null;
5204
+ name?: string | null;
5205
+ networks?: string[] | null;
5206
+ notificationEmail?: string | null;
5207
+ notificationFilter?: unknown | null;
5208
+ originSteering?: unknown | null;
5209
+ origins?: unknown[] | null;
5210
+ }[];
5211
+ }
4905
5212
 
4906
- export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4907
- Schema.Struct({
4908
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4909
- checkRegions: Schema.optional(
4910
- Schema.Union([
4911
- Schema.Array(
4912
- Schema.Literals([
4913
- "WNAM",
4914
- "ENAM",
4915
- "WEU",
4916
- "EEU",
4917
- "NSAM",
4918
- "SSAM",
4919
- "OC",
4920
- "ME",
4921
- "NAF",
4922
- "SAF",
4923
- "SEAS",
4924
- "NEAS",
4925
- "ALL_REGIONS",
4926
- "SAS",
4927
- ]),
4928
- ),
4929
- Schema.Null,
4930
- ]),
4931
- ),
4932
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4933
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4934
- disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4935
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4936
- latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4937
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
4938
- longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4939
- minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4940
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4941
- monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4942
- monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4943
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4944
- networks: Schema.optional(
4945
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4946
- ),
4947
- notificationEmail: Schema.optional(
4948
- Schema.Union([Schema.String, Schema.Null]),
4949
- ),
4950
- notificationFilter: Schema.optional(
4951
- Schema.Union([Schema.Unknown, Schema.Null]),
4952
- ),
4953
- originSteering: Schema.optional(
4954
- Schema.Union([Schema.Unknown, Schema.Null]),
4955
- ),
4956
- origins: Schema.optional(
4957
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5213
+ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5214
+ result: Schema.Array(
5215
+ Schema.Struct({
5216
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5217
+ checkRegions: Schema.optional(
5218
+ Schema.Union([
5219
+ Schema.Array(
5220
+ Schema.Literals([
5221
+ "WNAM",
5222
+ "ENAM",
5223
+ "WEU",
5224
+ "EEU",
5225
+ "NSAM",
5226
+ "SSAM",
5227
+ "OC",
5228
+ "ME",
5229
+ "NAF",
5230
+ "SAF",
5231
+ "SEAS",
5232
+ "NEAS",
5233
+ "ALL_REGIONS",
5234
+ "SAS",
5235
+ ]),
5236
+ ),
5237
+ Schema.Null,
5238
+ ]),
5239
+ ),
5240
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5241
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5242
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5243
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5244
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5245
+ loadShedding: Schema.optional(
5246
+ Schema.Union([Schema.Unknown, Schema.Null]),
5247
+ ),
5248
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5249
+ minimumOrigins: Schema.optional(
5250
+ Schema.Union([Schema.Number, Schema.Null]),
5251
+ ),
5252
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5253
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5254
+ monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5255
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5256
+ networks: Schema.optional(
5257
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5258
+ ),
5259
+ notificationEmail: Schema.optional(
5260
+ Schema.Union([Schema.String, Schema.Null]),
5261
+ ),
5262
+ notificationFilter: Schema.optional(
5263
+ Schema.Union([Schema.Unknown, Schema.Null]),
5264
+ ),
5265
+ originSteering: Schema.optional(
5266
+ Schema.Union([Schema.Unknown, Schema.Null]),
5267
+ ),
5268
+ origins: Schema.optional(
5269
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5270
+ ),
5271
+ }).pipe(
5272
+ Schema.encodeKeys({
5273
+ id: "id",
5274
+ checkRegions: "check_regions",
5275
+ createdOn: "created_on",
5276
+ description: "description",
5277
+ disabledAt: "disabled_at",
5278
+ enabled: "enabled",
5279
+ latitude: "latitude",
5280
+ loadShedding: "load_shedding",
5281
+ longitude: "longitude",
5282
+ minimumOrigins: "minimum_origins",
5283
+ modifiedOn: "modified_on",
5284
+ monitor: "monitor",
5285
+ monitorGroup: "monitor_group",
5286
+ name: "name",
5287
+ networks: "networks",
5288
+ notificationEmail: "notification_email",
5289
+ notificationFilter: "notification_filter",
5290
+ originSteering: "origin_steering",
5291
+ origins: "origins",
5292
+ }),
4958
5293
  ),
4959
- }).pipe(
4960
- Schema.encodeKeys({
4961
- id: "id",
4962
- checkRegions: "check_regions",
4963
- createdOn: "created_on",
4964
- description: "description",
4965
- disabledAt: "disabled_at",
4966
- enabled: "enabled",
4967
- latitude: "latitude",
4968
- loadShedding: "load_shedding",
4969
- longitude: "longitude",
4970
- minimumOrigins: "minimum_origins",
4971
- modifiedOn: "modified_on",
4972
- monitor: "monitor",
4973
- monitorGroup: "monitor_group",
4974
- name: "name",
4975
- networks: "networks",
4976
- notificationEmail: "notification_email",
4977
- notificationFilter: "notification_filter",
4978
- originSteering: "origin_steering",
4979
- origins: "origins",
4980
- }),
4981
5294
  ),
4982
- ) as unknown as Schema.Schema<ListPoolsResponse>;
5295
+ }) as unknown as Schema.Schema<ListPoolsResponse>;
4983
5296
 
4984
5297
  export type ListPoolsError = DefaultErrors;
4985
5298
 
4986
- export const listPools: API.OperationMethod<
5299
+ export const listPools: API.PaginatedOperationMethod<
4987
5300
  ListPoolsRequest,
4988
5301
  ListPoolsResponse,
4989
5302
  ListPoolsError,
4990
5303
  Credentials | HttpClient.HttpClient
4991
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5304
+ > & {
5305
+ pages: (
5306
+ input: ListPoolsRequest,
5307
+ ) => stream.Stream<
5308
+ ListPoolsResponse,
5309
+ ListPoolsError,
5310
+ Credentials | HttpClient.HttpClient
5311
+ >;
5312
+ items: (input: ListPoolsRequest) => stream.Stream<
5313
+ {
5314
+ id?: string | null;
5315
+ checkRegions?:
5316
+ | (
5317
+ | "WNAM"
5318
+ | "ENAM"
5319
+ | "WEU"
5320
+ | "EEU"
5321
+ | "NSAM"
5322
+ | "SSAM"
5323
+ | "OC"
5324
+ | "ME"
5325
+ | "NAF"
5326
+ | "SAF"
5327
+ | "SEAS"
5328
+ | "NEAS"
5329
+ | "ALL_REGIONS"
5330
+ | "SAS"
5331
+ )[]
5332
+ | null;
5333
+ createdOn?: string | null;
5334
+ description?: string | null;
5335
+ disabledAt?: string | null;
5336
+ enabled?: boolean | null;
5337
+ latitude?: number | null;
5338
+ loadShedding?: unknown | null;
5339
+ longitude?: number | null;
5340
+ minimumOrigins?: number | null;
5341
+ modifiedOn?: string | null;
5342
+ monitor?: string | null;
5343
+ monitorGroup?: string | null;
5344
+ name?: string | null;
5345
+ networks?: string[] | null;
5346
+ notificationEmail?: string | null;
5347
+ notificationFilter?: unknown | null;
5348
+ originSteering?: unknown | null;
5349
+ origins?: unknown[] | null;
5350
+ },
5351
+ ListPoolsError,
5352
+ Credentials | HttpClient.HttpClient
5353
+ >;
5354
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4992
5355
  input: ListPoolsRequest,
4993
5356
  output: ListPoolsResponse,
4994
5357
  errors: [],
5358
+ pagination: {
5359
+ mode: "single",
5360
+ items: "result",
5361
+ } as const,
4995
5362
  }));
4996
5363
 
4997
5364
  export interface CreatePoolRequest {
@@ -5169,29 +5536,33 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5169
5536
  origins: Schema.optional(
5170
5537
  Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5171
5538
  ),
5172
- }).pipe(
5173
- Schema.encodeKeys({
5174
- id: "id",
5175
- checkRegions: "check_regions",
5176
- createdOn: "created_on",
5177
- description: "description",
5178
- disabledAt: "disabled_at",
5179
- enabled: "enabled",
5180
- latitude: "latitude",
5181
- loadShedding: "load_shedding",
5182
- longitude: "longitude",
5183
- minimumOrigins: "minimum_origins",
5184
- modifiedOn: "modified_on",
5185
- monitor: "monitor",
5186
- monitorGroup: "monitor_group",
5187
- name: "name",
5188
- networks: "networks",
5189
- notificationEmail: "notification_email",
5190
- notificationFilter: "notification_filter",
5191
- originSteering: "origin_steering",
5192
- origins: "origins",
5193
- }),
5194
- ) as unknown as Schema.Schema<CreatePoolResponse>;
5539
+ })
5540
+ .pipe(
5541
+ Schema.encodeKeys({
5542
+ id: "id",
5543
+ checkRegions: "check_regions",
5544
+ createdOn: "created_on",
5545
+ description: "description",
5546
+ disabledAt: "disabled_at",
5547
+ enabled: "enabled",
5548
+ latitude: "latitude",
5549
+ loadShedding: "load_shedding",
5550
+ longitude: "longitude",
5551
+ minimumOrigins: "minimum_origins",
5552
+ modifiedOn: "modified_on",
5553
+ monitor: "monitor",
5554
+ monitorGroup: "monitor_group",
5555
+ name: "name",
5556
+ networks: "networks",
5557
+ notificationEmail: "notification_email",
5558
+ notificationFilter: "notification_filter",
5559
+ originSteering: "origin_steering",
5560
+ origins: "origins",
5561
+ }),
5562
+ )
5563
+ .pipe(
5564
+ T.ResponsePath("result"),
5565
+ ) as unknown as Schema.Schema<CreatePoolResponse>;
5195
5566
 
5196
5567
  export type CreatePoolError = DefaultErrors;
5197
5568
 
@@ -5426,29 +5797,33 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5426
5797
  origins: Schema.optional(
5427
5798
  Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5428
5799
  ),
5429
- }).pipe(
5430
- Schema.encodeKeys({
5431
- id: "id",
5432
- checkRegions: "check_regions",
5433
- createdOn: "created_on",
5434
- description: "description",
5435
- disabledAt: "disabled_at",
5436
- enabled: "enabled",
5437
- latitude: "latitude",
5438
- loadShedding: "load_shedding",
5439
- longitude: "longitude",
5440
- minimumOrigins: "minimum_origins",
5441
- modifiedOn: "modified_on",
5442
- monitor: "monitor",
5443
- monitorGroup: "monitor_group",
5444
- name: "name",
5445
- networks: "networks",
5446
- notificationEmail: "notification_email",
5447
- notificationFilter: "notification_filter",
5448
- originSteering: "origin_steering",
5449
- origins: "origins",
5450
- }),
5451
- ) as unknown as Schema.Schema<UpdatePoolResponse>;
5800
+ })
5801
+ .pipe(
5802
+ Schema.encodeKeys({
5803
+ id: "id",
5804
+ checkRegions: "check_regions",
5805
+ createdOn: "created_on",
5806
+ description: "description",
5807
+ disabledAt: "disabled_at",
5808
+ enabled: "enabled",
5809
+ latitude: "latitude",
5810
+ loadShedding: "load_shedding",
5811
+ longitude: "longitude",
5812
+ minimumOrigins: "minimum_origins",
5813
+ modifiedOn: "modified_on",
5814
+ monitor: "monitor",
5815
+ monitorGroup: "monitor_group",
5816
+ name: "name",
5817
+ networks: "networks",
5818
+ notificationEmail: "notification_email",
5819
+ notificationFilter: "notification_filter",
5820
+ originSteering: "origin_steering",
5821
+ origins: "origins",
5822
+ }),
5823
+ )
5824
+ .pipe(
5825
+ T.ResponsePath("result"),
5826
+ ) as unknown as Schema.Schema<UpdatePoolResponse>;
5452
5827
 
5453
5828
  export type UpdatePoolError = DefaultErrors;
5454
5829
 
@@ -5683,29 +6058,33 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5683
6058
  origins: Schema.optional(
5684
6059
  Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5685
6060
  ),
5686
- }).pipe(
5687
- Schema.encodeKeys({
5688
- id: "id",
5689
- checkRegions: "check_regions",
5690
- createdOn: "created_on",
5691
- description: "description",
5692
- disabledAt: "disabled_at",
5693
- enabled: "enabled",
5694
- latitude: "latitude",
5695
- loadShedding: "load_shedding",
5696
- longitude: "longitude",
5697
- minimumOrigins: "minimum_origins",
5698
- modifiedOn: "modified_on",
5699
- monitor: "monitor",
5700
- monitorGroup: "monitor_group",
5701
- name: "name",
5702
- networks: "networks",
5703
- notificationEmail: "notification_email",
5704
- notificationFilter: "notification_filter",
5705
- originSteering: "origin_steering",
5706
- origins: "origins",
5707
- }),
5708
- ) as unknown as Schema.Schema<PatchPoolResponse>;
6061
+ })
6062
+ .pipe(
6063
+ Schema.encodeKeys({
6064
+ id: "id",
6065
+ checkRegions: "check_regions",
6066
+ createdOn: "created_on",
6067
+ description: "description",
6068
+ disabledAt: "disabled_at",
6069
+ enabled: "enabled",
6070
+ latitude: "latitude",
6071
+ loadShedding: "load_shedding",
6072
+ longitude: "longitude",
6073
+ minimumOrigins: "minimum_origins",
6074
+ modifiedOn: "modified_on",
6075
+ monitor: "monitor",
6076
+ monitorGroup: "monitor_group",
6077
+ name: "name",
6078
+ networks: "networks",
6079
+ notificationEmail: "notification_email",
6080
+ notificationFilter: "notification_filter",
6081
+ originSteering: "origin_steering",
6082
+ origins: "origins",
6083
+ }),
6084
+ )
6085
+ .pipe(
6086
+ T.ResponsePath("result"),
6087
+ ) as unknown as Schema.Schema<PatchPoolResponse>;
5709
6088
 
5710
6089
  export type PatchPoolError = DefaultErrors;
5711
6090
 
@@ -5742,7 +6121,9 @@ export interface DeletePoolResponse {
5742
6121
 
5743
6122
  export const DeletePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5744
6123
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5745
- }) as unknown as Schema.Schema<DeletePoolResponse>;
6124
+ }).pipe(
6125
+ T.ResponsePath("result"),
6126
+ ) as unknown as Schema.Schema<DeletePoolResponse>;
5746
6127
 
5747
6128
  export type DeletePoolError = DefaultErrors;
5748
6129
 
@@ -5775,134 +6156,202 @@ export const BulkPatchPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5775
6156
  }),
5776
6157
  ) as unknown as Schema.Schema<BulkPatchPoolsRequest>;
5777
6158
 
5778
- export type BulkPatchPoolsResponse = {
5779
- id?: string | null;
5780
- checkRegions?:
5781
- | (
5782
- | "WNAM"
5783
- | "ENAM"
5784
- | "WEU"
5785
- | "EEU"
5786
- | "NSAM"
5787
- | "SSAM"
5788
- | "OC"
5789
- | "ME"
5790
- | "NAF"
5791
- | "SAF"
5792
- | "SEAS"
5793
- | "NEAS"
5794
- | "ALL_REGIONS"
5795
- | "SAS"
5796
- )[]
5797
- | null;
5798
- createdOn?: string | null;
5799
- description?: string | null;
5800
- disabledAt?: string | null;
5801
- enabled?: boolean | null;
5802
- latitude?: number | null;
5803
- loadShedding?: unknown | null;
5804
- longitude?: number | null;
5805
- minimumOrigins?: number | null;
5806
- modifiedOn?: string | null;
5807
- monitor?: string | null;
5808
- monitorGroup?: string | null;
5809
- name?: string | null;
5810
- networks?: string[] | null;
5811
- notificationEmail?: string | null;
5812
- notificationFilter?: unknown | null;
5813
- originSteering?: unknown | null;
5814
- origins?: unknown[] | null;
5815
- }[];
6159
+ export interface BulkPatchPoolsResponse {
6160
+ result: {
6161
+ id?: string | null;
6162
+ checkRegions?:
6163
+ | (
6164
+ | "WNAM"
6165
+ | "ENAM"
6166
+ | "WEU"
6167
+ | "EEU"
6168
+ | "NSAM"
6169
+ | "SSAM"
6170
+ | "OC"
6171
+ | "ME"
6172
+ | "NAF"
6173
+ | "SAF"
6174
+ | "SEAS"
6175
+ | "NEAS"
6176
+ | "ALL_REGIONS"
6177
+ | "SAS"
6178
+ )[]
6179
+ | null;
6180
+ createdOn?: string | null;
6181
+ description?: string | null;
6182
+ disabledAt?: string | null;
6183
+ enabled?: boolean | null;
6184
+ latitude?: number | null;
6185
+ loadShedding?: unknown | null;
6186
+ longitude?: number | null;
6187
+ minimumOrigins?: number | null;
6188
+ modifiedOn?: string | null;
6189
+ monitor?: string | null;
6190
+ monitorGroup?: string | null;
6191
+ name?: string | null;
6192
+ networks?: string[] | null;
6193
+ notificationEmail?: string | null;
6194
+ notificationFilter?: unknown | null;
6195
+ originSteering?: unknown | null;
6196
+ origins?: unknown[] | null;
6197
+ }[];
6198
+ }
5816
6199
 
5817
- export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5818
- Schema.Struct({
5819
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5820
- checkRegions: Schema.optional(
5821
- Schema.Union([
5822
- Schema.Array(
5823
- Schema.Literals([
5824
- "WNAM",
5825
- "ENAM",
5826
- "WEU",
5827
- "EEU",
5828
- "NSAM",
5829
- "SSAM",
5830
- "OC",
5831
- "ME",
5832
- "NAF",
5833
- "SAF",
5834
- "SEAS",
5835
- "NEAS",
5836
- "ALL_REGIONS",
5837
- "SAS",
6200
+ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
6201
+ {
6202
+ result: Schema.Array(
6203
+ Schema.Struct({
6204
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6205
+ checkRegions: Schema.optional(
6206
+ Schema.Union([
6207
+ Schema.Array(
6208
+ Schema.Literals([
6209
+ "WNAM",
6210
+ "ENAM",
6211
+ "WEU",
6212
+ "EEU",
6213
+ "NSAM",
6214
+ "SSAM",
6215
+ "OC",
6216
+ "ME",
6217
+ "NAF",
6218
+ "SAF",
6219
+ "SEAS",
6220
+ "NEAS",
6221
+ "ALL_REGIONS",
6222
+ "SAS",
6223
+ ]),
6224
+ ),
6225
+ Schema.Null,
5838
6226
  ]),
5839
6227
  ),
5840
- Schema.Null,
5841
- ]),
5842
- ),
5843
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5844
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5845
- disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5846
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5847
- latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5848
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
5849
- longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5850
- minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5851
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5852
- monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5853
- monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5854
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5855
- networks: Schema.optional(
5856
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5857
- ),
5858
- notificationEmail: Schema.optional(
5859
- Schema.Union([Schema.String, Schema.Null]),
5860
- ),
5861
- notificationFilter: Schema.optional(
5862
- Schema.Union([Schema.Unknown, Schema.Null]),
5863
- ),
5864
- originSteering: Schema.optional(
5865
- Schema.Union([Schema.Unknown, Schema.Null]),
5866
- ),
5867
- origins: Schema.optional(
5868
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
6228
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6229
+ description: Schema.optional(
6230
+ Schema.Union([Schema.String, Schema.Null]),
6231
+ ),
6232
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6233
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
6234
+ latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6235
+ loadShedding: Schema.optional(
6236
+ Schema.Union([Schema.Unknown, Schema.Null]),
6237
+ ),
6238
+ longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6239
+ minimumOrigins: Schema.optional(
6240
+ Schema.Union([Schema.Number, Schema.Null]),
6241
+ ),
6242
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6243
+ monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6244
+ monitorGroup: Schema.optional(
6245
+ Schema.Union([Schema.String, Schema.Null]),
6246
+ ),
6247
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6248
+ networks: Schema.optional(
6249
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
6250
+ ),
6251
+ notificationEmail: Schema.optional(
6252
+ Schema.Union([Schema.String, Schema.Null]),
6253
+ ),
6254
+ notificationFilter: Schema.optional(
6255
+ Schema.Union([Schema.Unknown, Schema.Null]),
6256
+ ),
6257
+ originSteering: Schema.optional(
6258
+ Schema.Union([Schema.Unknown, Schema.Null]),
6259
+ ),
6260
+ origins: Schema.optional(
6261
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
6262
+ ),
6263
+ }).pipe(
6264
+ Schema.encodeKeys({
6265
+ id: "id",
6266
+ checkRegions: "check_regions",
6267
+ createdOn: "created_on",
6268
+ description: "description",
6269
+ disabledAt: "disabled_at",
6270
+ enabled: "enabled",
6271
+ latitude: "latitude",
6272
+ loadShedding: "load_shedding",
6273
+ longitude: "longitude",
6274
+ minimumOrigins: "minimum_origins",
6275
+ modifiedOn: "modified_on",
6276
+ monitor: "monitor",
6277
+ monitorGroup: "monitor_group",
6278
+ name: "name",
6279
+ networks: "networks",
6280
+ notificationEmail: "notification_email",
6281
+ notificationFilter: "notification_filter",
6282
+ originSteering: "origin_steering",
6283
+ origins: "origins",
6284
+ }),
6285
+ ),
5869
6286
  ),
5870
- }).pipe(
5871
- Schema.encodeKeys({
5872
- id: "id",
5873
- checkRegions: "check_regions",
5874
- createdOn: "created_on",
5875
- description: "description",
5876
- disabledAt: "disabled_at",
5877
- enabled: "enabled",
5878
- latitude: "latitude",
5879
- loadShedding: "load_shedding",
5880
- longitude: "longitude",
5881
- minimumOrigins: "minimum_origins",
5882
- modifiedOn: "modified_on",
5883
- monitor: "monitor",
5884
- monitorGroup: "monitor_group",
5885
- name: "name",
5886
- networks: "networks",
5887
- notificationEmail: "notification_email",
5888
- notificationFilter: "notification_filter",
5889
- originSteering: "origin_steering",
5890
- origins: "origins",
5891
- }),
5892
- ),
6287
+ },
5893
6288
  ) as unknown as Schema.Schema<BulkPatchPoolsResponse>;
5894
6289
 
5895
6290
  export type BulkPatchPoolsError = DefaultErrors;
5896
6291
 
5897
- export const bulkPatchPools: API.OperationMethod<
6292
+ export const bulkPatchPools: API.PaginatedOperationMethod<
5898
6293
  BulkPatchPoolsRequest,
5899
6294
  BulkPatchPoolsResponse,
5900
6295
  BulkPatchPoolsError,
5901
6296
  Credentials | HttpClient.HttpClient
5902
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
6297
+ > & {
6298
+ pages: (
6299
+ input: BulkPatchPoolsRequest,
6300
+ ) => stream.Stream<
6301
+ BulkPatchPoolsResponse,
6302
+ BulkPatchPoolsError,
6303
+ Credentials | HttpClient.HttpClient
6304
+ >;
6305
+ items: (input: BulkPatchPoolsRequest) => stream.Stream<
6306
+ {
6307
+ id?: string | null;
6308
+ checkRegions?:
6309
+ | (
6310
+ | "WNAM"
6311
+ | "ENAM"
6312
+ | "WEU"
6313
+ | "EEU"
6314
+ | "NSAM"
6315
+ | "SSAM"
6316
+ | "OC"
6317
+ | "ME"
6318
+ | "NAF"
6319
+ | "SAF"
6320
+ | "SEAS"
6321
+ | "NEAS"
6322
+ | "ALL_REGIONS"
6323
+ | "SAS"
6324
+ )[]
6325
+ | null;
6326
+ createdOn?: string | null;
6327
+ description?: string | null;
6328
+ disabledAt?: string | null;
6329
+ enabled?: boolean | null;
6330
+ latitude?: number | null;
6331
+ loadShedding?: unknown | null;
6332
+ longitude?: number | null;
6333
+ minimumOrigins?: number | null;
6334
+ modifiedOn?: string | null;
6335
+ monitor?: string | null;
6336
+ monitorGroup?: string | null;
6337
+ name?: string | null;
6338
+ networks?: string[] | null;
6339
+ notificationEmail?: string | null;
6340
+ notificationFilter?: unknown | null;
6341
+ originSteering?: unknown | null;
6342
+ origins?: unknown[] | null;
6343
+ },
6344
+ BulkPatchPoolsError,
6345
+ Credentials | HttpClient.HttpClient
6346
+ >;
6347
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5903
6348
  input: BulkPatchPoolsRequest,
5904
6349
  output: BulkPatchPoolsResponse,
5905
6350
  errors: [],
6351
+ pagination: {
6352
+ mode: "single",
6353
+ items: "result",
6354
+ } as const,
5906
6355
  }));
5907
6356
 
5908
6357
  // =============================================================================
@@ -5989,9 +6438,11 @@ export const GetPoolHealthResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5989
6438
  Schema.Null,
5990
6439
  ]),
5991
6440
  ),
5992
- }).pipe(
5993
- Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }),
5994
- ) as unknown as Schema.Schema<GetPoolHealthResponse>;
6441
+ })
6442
+ .pipe(Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }))
6443
+ .pipe(
6444
+ T.ResponsePath("result"),
6445
+ ) as unknown as Schema.Schema<GetPoolHealthResponse>;
5995
6446
 
5996
6447
  export type GetPoolHealthError = DefaultErrors;
5997
6448
 
@@ -6108,9 +6559,11 @@ export const CreatePoolHealthResponse =
6108
6559
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6109
6560
  pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
6110
6561
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6111
- }).pipe(
6112
- Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }),
6113
- ) as unknown as Schema.Schema<CreatePoolHealthResponse>;
6562
+ })
6563
+ .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
6564
+ .pipe(
6565
+ T.ResponsePath("result"),
6566
+ ) as unknown as Schema.Schema<CreatePoolHealthResponse>;
6114
6567
 
6115
6568
  export type CreatePoolHealthError = DefaultErrors;
6116
6569
 
@@ -6146,46 +6599,76 @@ export const GetPoolReferenceRequest =
6146
6599
  }),
6147
6600
  ) as unknown as Schema.Schema<GetPoolReferenceRequest>;
6148
6601
 
6149
- export type GetPoolReferenceResponse = {
6150
- referenceType?: "*" | "referral" | "referrer" | null;
6151
- resourceId?: string | null;
6152
- resourceName?: string | null;
6153
- resourceType?: string | null;
6154
- }[];
6602
+ export interface GetPoolReferenceResponse {
6603
+ result: {
6604
+ referenceType?: "*" | "referral" | "referrer" | null;
6605
+ resourceId?: string | null;
6606
+ resourceName?: string | null;
6607
+ resourceType?: string | null;
6608
+ }[];
6609
+ }
6155
6610
 
6156
6611
  export const GetPoolReferenceResponse =
6157
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
6158
- Schema.Struct({
6159
- referenceType: Schema.optional(
6160
- Schema.Union([
6161
- Schema.Literals(["*", "referral", "referrer"]),
6162
- Schema.Null,
6163
- ]),
6612
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6613
+ result: Schema.Array(
6614
+ Schema.Struct({
6615
+ referenceType: Schema.optional(
6616
+ Schema.Union([
6617
+ Schema.Literals(["*", "referral", "referrer"]),
6618
+ Schema.Null,
6619
+ ]),
6620
+ ),
6621
+ resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6622
+ resourceName: Schema.optional(
6623
+ Schema.Union([Schema.String, Schema.Null]),
6624
+ ),
6625
+ resourceType: Schema.optional(
6626
+ Schema.Union([Schema.String, Schema.Null]),
6627
+ ),
6628
+ }).pipe(
6629
+ Schema.encodeKeys({
6630
+ referenceType: "reference_type",
6631
+ resourceId: "resource_id",
6632
+ resourceName: "resource_name",
6633
+ resourceType: "resource_type",
6634
+ }),
6164
6635
  ),
6165
- resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6166
- resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6167
- resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6168
- }).pipe(
6169
- Schema.encodeKeys({
6170
- referenceType: "reference_type",
6171
- resourceId: "resource_id",
6172
- resourceName: "resource_name",
6173
- resourceType: "resource_type",
6174
- }),
6175
6636
  ),
6176
- ) as unknown as Schema.Schema<GetPoolReferenceResponse>;
6637
+ }) as unknown as Schema.Schema<GetPoolReferenceResponse>;
6177
6638
 
6178
6639
  export type GetPoolReferenceError = DefaultErrors;
6179
6640
 
6180
- export const getPoolReference: API.OperationMethod<
6641
+ export const getPoolReference: API.PaginatedOperationMethod<
6181
6642
  GetPoolReferenceRequest,
6182
6643
  GetPoolReferenceResponse,
6183
6644
  GetPoolReferenceError,
6184
6645
  Credentials | HttpClient.HttpClient
6185
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
6646
+ > & {
6647
+ pages: (
6648
+ input: GetPoolReferenceRequest,
6649
+ ) => stream.Stream<
6650
+ GetPoolReferenceResponse,
6651
+ GetPoolReferenceError,
6652
+ Credentials | HttpClient.HttpClient
6653
+ >;
6654
+ items: (input: GetPoolReferenceRequest) => stream.Stream<
6655
+ {
6656
+ referenceType?: "*" | "referral" | "referrer" | null;
6657
+ resourceId?: string | null;
6658
+ resourceName?: string | null;
6659
+ resourceType?: string | null;
6660
+ },
6661
+ GetPoolReferenceError,
6662
+ Credentials | HttpClient.HttpClient
6663
+ >;
6664
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
6186
6665
  input: GetPoolReferenceRequest,
6187
6666
  output: GetPoolReferenceResponse,
6188
6667
  errors: [],
6668
+ pagination: {
6669
+ mode: "single",
6670
+ items: "result",
6671
+ } as const,
6189
6672
  }));
6190
6673
 
6191
6674
  // =============================================================================
@@ -6212,6 +6695,8 @@ export type GetPreviewResponse = Record<string, unknown>;
6212
6695
 
6213
6696
  export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
6214
6697
  {},
6698
+ ).pipe(
6699
+ T.ResponsePath("result"),
6215
6700
  ) as unknown as Schema.Schema<GetPreviewResponse>;
6216
6701
 
6217
6702
  export type GetPreviewError = DefaultErrors;
@@ -6279,7 +6764,9 @@ export type GetRegionResponse = string | null;
6279
6764
  export const GetRegionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
6280
6765
  Schema.String,
6281
6766
  Schema.Null,
6282
- ]) as unknown as Schema.Schema<GetRegionResponse>;
6767
+ ]).pipe(
6768
+ T.ResponsePath("result"),
6769
+ ) as unknown as Schema.Schema<GetRegionResponse>;
6283
6770
 
6284
6771
  export type GetRegionError = DefaultErrors;
6285
6772
 
@@ -6328,7 +6815,9 @@ export type ListRegionsResponse = string | null;
6328
6815
  export const ListRegionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
6329
6816
  Schema.String,
6330
6817
  Schema.Null,
6331
- ]) as unknown as Schema.Schema<ListRegionsResponse>;
6818
+ ]).pipe(
6819
+ T.ResponsePath("result"),
6820
+ ) as unknown as Schema.Schema<ListRegionsResponse>;
6332
6821
 
6333
6822
  export type ListRegionsError = DefaultErrors;
6334
6823
 
@@ -6369,70 +6858,136 @@ export const ListSearchesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6369
6858
  }),
6370
6859
  ) as unknown as Schema.Schema<ListSearchesRequest>;
6371
6860
 
6372
- export type ListSearchesResponse = {
6373
- resources?:
6374
- | {
6375
- referenceType?: "referral" | "referrer" | null;
6376
- references?: unknown[] | null;
6377
- resourceId?: string | null;
6378
- resourceName?: string | null;
6379
- resourceType?: "load_balancer" | "monitor" | "pool" | null;
6380
- }[]
6381
- | null;
6382
- }[];
6861
+ export interface ListSearchesResponse {
6862
+ result: {
6863
+ items?:
6864
+ | {
6865
+ resources?:
6866
+ | {
6867
+ referenceType?: "referral" | "referrer" | null;
6868
+ references?: unknown[] | null;
6869
+ resourceId?: string | null;
6870
+ resourceName?: string | null;
6871
+ resourceType?: "load_balancer" | "monitor" | "pool" | null;
6872
+ }[]
6873
+ | null;
6874
+ }[]
6875
+ | null;
6876
+ };
6877
+ resultInfo: {
6878
+ count?: number | null;
6879
+ page?: number | null;
6880
+ perPage?: number | null;
6881
+ totalCount?: number | null;
6882
+ };
6883
+ }
6383
6884
 
6384
- export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
6385
- Schema.Struct({
6386
- resources: Schema.optional(
6885
+ export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6886
+ result: Schema.Struct({
6887
+ items: Schema.optional(
6387
6888
  Schema.Union([
6388
6889
  Schema.Array(
6389
6890
  Schema.Struct({
6390
- referenceType: Schema.optional(
6391
- Schema.Union([
6392
- Schema.Literals(["referral", "referrer"]),
6393
- Schema.Null,
6394
- ]),
6395
- ),
6396
- references: Schema.optional(
6397
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
6398
- ),
6399
- resourceId: Schema.optional(
6400
- Schema.Union([Schema.String, Schema.Null]),
6401
- ),
6402
- resourceName: Schema.optional(
6403
- Schema.Union([Schema.String, Schema.Null]),
6404
- ),
6405
- resourceType: Schema.optional(
6891
+ resources: Schema.optional(
6406
6892
  Schema.Union([
6407
- Schema.Literals(["load_balancer", "monitor", "pool"]),
6893
+ Schema.Array(
6894
+ Schema.Struct({
6895
+ referenceType: Schema.optional(
6896
+ Schema.Union([
6897
+ Schema.Literals(["referral", "referrer"]),
6898
+ Schema.Null,
6899
+ ]),
6900
+ ),
6901
+ references: Schema.optional(
6902
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
6903
+ ),
6904
+ resourceId: Schema.optional(
6905
+ Schema.Union([Schema.String, Schema.Null]),
6906
+ ),
6907
+ resourceName: Schema.optional(
6908
+ Schema.Union([Schema.String, Schema.Null]),
6909
+ ),
6910
+ resourceType: Schema.optional(
6911
+ Schema.Union([
6912
+ Schema.Literals(["load_balancer", "monitor", "pool"]),
6913
+ Schema.Null,
6914
+ ]),
6915
+ ),
6916
+ }).pipe(
6917
+ Schema.encodeKeys({
6918
+ referenceType: "reference_type",
6919
+ references: "references",
6920
+ resourceId: "resource_id",
6921
+ resourceName: "resource_name",
6922
+ resourceType: "resource_type",
6923
+ }),
6924
+ ),
6925
+ ),
6408
6926
  Schema.Null,
6409
6927
  ]),
6410
6928
  ),
6411
- }).pipe(
6412
- Schema.encodeKeys({
6413
- referenceType: "reference_type",
6414
- references: "references",
6415
- resourceId: "resource_id",
6416
- resourceName: "resource_name",
6417
- resourceType: "resource_type",
6418
- }),
6419
- ),
6929
+ }),
6420
6930
  ),
6421
6931
  Schema.Null,
6422
6932
  ]),
6423
6933
  ),
6424
6934
  }),
6935
+ resultInfo: Schema.Struct({
6936
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6937
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6938
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6939
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6940
+ }).pipe(
6941
+ Schema.encodeKeys({
6942
+ count: "count",
6943
+ page: "page",
6944
+ perPage: "per_page",
6945
+ totalCount: "total_count",
6946
+ }),
6947
+ ),
6948
+ }).pipe(
6949
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
6425
6950
  ) as unknown as Schema.Schema<ListSearchesResponse>;
6426
6951
 
6427
6952
  export type ListSearchesError = DefaultErrors;
6428
6953
 
6429
- export const listSearches: API.OperationMethod<
6954
+ export const listSearches: API.PaginatedOperationMethod<
6430
6955
  ListSearchesRequest,
6431
6956
  ListSearchesResponse,
6432
6957
  ListSearchesError,
6433
6958
  Credentials | HttpClient.HttpClient
6434
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
6959
+ > & {
6960
+ pages: (
6961
+ input: ListSearchesRequest,
6962
+ ) => stream.Stream<
6963
+ ListSearchesResponse,
6964
+ ListSearchesError,
6965
+ Credentials | HttpClient.HttpClient
6966
+ >;
6967
+ items: (input: ListSearchesRequest) => stream.Stream<
6968
+ {
6969
+ resources?:
6970
+ | {
6971
+ referenceType?: "referral" | "referrer" | null;
6972
+ references?: unknown[] | null;
6973
+ resourceId?: string | null;
6974
+ resourceName?: string | null;
6975
+ resourceType?: "load_balancer" | "monitor" | "pool" | null;
6976
+ }[]
6977
+ | null;
6978
+ },
6979
+ ListSearchesError,
6980
+ Credentials | HttpClient.HttpClient
6981
+ >;
6982
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
6435
6983
  input: ListSearchesRequest,
6436
6984
  output: ListSearchesResponse,
6437
6985
  errors: [],
6986
+ pagination: {
6987
+ mode: "page",
6988
+ inputToken: "page",
6989
+ outputToken: "resultInfo.page",
6990
+ items: "result.items",
6991
+ pageSize: "perPage",
6992
+ } as const,
6438
6993
  }));