@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 magic-transit
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";
@@ -27,77 +28,111 @@ export const ListAppsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
27
28
  T.Http({ method: "GET", path: "/accounts/{account_id}/magic/apps" }),
28
29
  ) as unknown as Schema.Schema<ListAppsRequest>;
29
30
 
30
- export type ListAppsResponse = (
31
- | {
32
- accountAppId: string;
33
- hostnames?: string[] | null;
34
- ipSubnets?: string[] | null;
35
- name?: string | null;
36
- type?: string | null;
37
- }
38
- | {
39
- managedAppId: string;
40
- hostnames?: string[] | null;
41
- ipSubnets?: string[] | null;
42
- name?: string | null;
43
- type?: string | null;
44
- }
45
- )[];
31
+ export interface ListAppsResponse {
32
+ result: (
33
+ | {
34
+ accountAppId: string;
35
+ hostnames?: string[] | null;
36
+ ipSubnets?: string[] | null;
37
+ name?: string | null;
38
+ type?: string | null;
39
+ }
40
+ | {
41
+ managedAppId: string;
42
+ hostnames?: string[] | null;
43
+ ipSubnets?: string[] | null;
44
+ name?: string | null;
45
+ type?: string | null;
46
+ }
47
+ )[];
48
+ }
46
49
 
47
- export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
48
- Schema.Union([
49
- Schema.Struct({
50
- accountAppId: Schema.String,
51
- hostnames: Schema.optional(
52
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
53
- ),
54
- ipSubnets: Schema.optional(
55
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
56
- ),
57
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
58
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
59
- }).pipe(
60
- Schema.encodeKeys({
61
- accountAppId: "account_app_id",
62
- hostnames: "hostnames",
63
- ipSubnets: "ip_subnets",
64
- name: "name",
65
- type: "type",
66
- }),
67
- ),
68
- Schema.Struct({
69
- managedAppId: Schema.String,
70
- hostnames: Schema.optional(
71
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
50
+ export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51
+ result: Schema.Array(
52
+ Schema.Union([
53
+ Schema.Struct({
54
+ accountAppId: Schema.String,
55
+ hostnames: Schema.optional(
56
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
57
+ ),
58
+ ipSubnets: Schema.optional(
59
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
60
+ ),
61
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
62
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
63
+ }).pipe(
64
+ Schema.encodeKeys({
65
+ accountAppId: "account_app_id",
66
+ hostnames: "hostnames",
67
+ ipSubnets: "ip_subnets",
68
+ name: "name",
69
+ type: "type",
70
+ }),
72
71
  ),
73
- ipSubnets: Schema.optional(
74
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
72
+ Schema.Struct({
73
+ managedAppId: Schema.String,
74
+ hostnames: Schema.optional(
75
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
76
+ ),
77
+ ipSubnets: Schema.optional(
78
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
79
+ ),
80
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
81
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
82
+ }).pipe(
83
+ Schema.encodeKeys({
84
+ managedAppId: "managed_app_id",
85
+ hostnames: "hostnames",
86
+ ipSubnets: "ip_subnets",
87
+ name: "name",
88
+ type: "type",
89
+ }),
75
90
  ),
76
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
77
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
78
- }).pipe(
79
- Schema.encodeKeys({
80
- managedAppId: "managed_app_id",
81
- hostnames: "hostnames",
82
- ipSubnets: "ip_subnets",
83
- name: "name",
84
- type: "type",
85
- }),
86
- ),
87
- ]),
88
- ) as unknown as Schema.Schema<ListAppsResponse>;
91
+ ]),
92
+ ),
93
+ }) as unknown as Schema.Schema<ListAppsResponse>;
89
94
 
90
95
  export type ListAppsError = DefaultErrors;
91
96
 
92
- export const listApps: API.OperationMethod<
97
+ export const listApps: API.PaginatedOperationMethod<
93
98
  ListAppsRequest,
94
99
  ListAppsResponse,
95
100
  ListAppsError,
96
101
  Credentials | HttpClient.HttpClient
97
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
102
+ > & {
103
+ pages: (
104
+ input: ListAppsRequest,
105
+ ) => stream.Stream<
106
+ ListAppsResponse,
107
+ ListAppsError,
108
+ Credentials | HttpClient.HttpClient
109
+ >;
110
+ items: (input: ListAppsRequest) => stream.Stream<
111
+ | {
112
+ accountAppId: string;
113
+ hostnames?: string[] | null;
114
+ ipSubnets?: string[] | null;
115
+ name?: string | null;
116
+ type?: string | null;
117
+ }
118
+ | {
119
+ managedAppId: string;
120
+ hostnames?: string[] | null;
121
+ ipSubnets?: string[] | null;
122
+ name?: string | null;
123
+ type?: string | null;
124
+ },
125
+ ListAppsError,
126
+ Credentials | HttpClient.HttpClient
127
+ >;
128
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
98
129
  input: ListAppsRequest,
99
130
  output: ListAppsResponse,
100
131
  errors: [],
132
+ pagination: {
133
+ mode: "single",
134
+ items: "result",
135
+ } as const,
101
136
  }));
102
137
 
103
138
  export interface CreateAppRequest {
@@ -152,15 +187,19 @@ export const CreateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
152
187
  ),
153
188
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
154
189
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
155
- }).pipe(
156
- Schema.encodeKeys({
157
- accountAppId: "account_app_id",
158
- hostnames: "hostnames",
159
- ipSubnets: "ip_subnets",
160
- name: "name",
161
- type: "type",
162
- }),
163
- ) as unknown as Schema.Schema<CreateAppResponse>;
190
+ })
191
+ .pipe(
192
+ Schema.encodeKeys({
193
+ accountAppId: "account_app_id",
194
+ hostnames: "hostnames",
195
+ ipSubnets: "ip_subnets",
196
+ name: "name",
197
+ type: "type",
198
+ }),
199
+ )
200
+ .pipe(
201
+ T.ResponsePath("result"),
202
+ ) as unknown as Schema.Schema<CreateAppResponse>;
164
203
 
165
204
  export type CreateAppError = DefaultErrors;
166
205
 
@@ -232,15 +271,19 @@ export const UpdateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
232
271
  ),
233
272
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
234
273
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
235
- }).pipe(
236
- Schema.encodeKeys({
237
- accountAppId: "account_app_id",
238
- hostnames: "hostnames",
239
- ipSubnets: "ip_subnets",
240
- name: "name",
241
- type: "type",
242
- }),
243
- ) as unknown as Schema.Schema<UpdateAppResponse>;
274
+ })
275
+ .pipe(
276
+ Schema.encodeKeys({
277
+ accountAppId: "account_app_id",
278
+ hostnames: "hostnames",
279
+ ipSubnets: "ip_subnets",
280
+ name: "name",
281
+ type: "type",
282
+ }),
283
+ )
284
+ .pipe(
285
+ T.ResponsePath("result"),
286
+ ) as unknown as Schema.Schema<UpdateAppResponse>;
244
287
 
245
288
  export type UpdateAppError = DefaultErrors;
246
289
 
@@ -312,15 +355,17 @@ export const PatchAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
312
355
  ),
313
356
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
314
357
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
315
- }).pipe(
316
- Schema.encodeKeys({
317
- accountAppId: "account_app_id",
318
- hostnames: "hostnames",
319
- ipSubnets: "ip_subnets",
320
- name: "name",
321
- type: "type",
322
- }),
323
- ) as unknown as Schema.Schema<PatchAppResponse>;
358
+ })
359
+ .pipe(
360
+ Schema.encodeKeys({
361
+ accountAppId: "account_app_id",
362
+ hostnames: "hostnames",
363
+ ipSubnets: "ip_subnets",
364
+ name: "name",
365
+ type: "type",
366
+ }),
367
+ )
368
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<PatchAppResponse>;
324
369
 
325
370
  export type PatchAppError = DefaultErrors;
326
371
 
@@ -374,15 +419,19 @@ export const DeleteAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
374
419
  ),
375
420
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
376
421
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
377
- }).pipe(
378
- Schema.encodeKeys({
379
- accountAppId: "account_app_id",
380
- hostnames: "hostnames",
381
- ipSubnets: "ip_subnets",
382
- name: "name",
383
- type: "type",
384
- }),
385
- ) as unknown as Schema.Schema<DeleteAppResponse>;
422
+ })
423
+ .pipe(
424
+ Schema.encodeKeys({
425
+ accountAppId: "account_app_id",
426
+ hostnames: "hostnames",
427
+ ipSubnets: "ip_subnets",
428
+ name: "name",
429
+ type: "type",
430
+ }),
431
+ )
432
+ .pipe(
433
+ T.ResponsePath("result"),
434
+ ) as unknown as Schema.Schema<DeleteAppResponse>;
386
435
 
387
436
  export type DeleteAppError = DefaultErrors;
388
437
 
@@ -503,7 +552,9 @@ export const GetCfInterconnectResponse =
503
552
  Schema.Null,
504
553
  ]),
505
554
  ),
506
- }) as unknown as Schema.Schema<GetCfInterconnectResponse>;
555
+ }).pipe(
556
+ T.ResponsePath("result"),
557
+ ) as unknown as Schema.Schema<GetCfInterconnectResponse>;
507
558
 
508
559
  export type GetCfInterconnectError = DefaultErrors;
509
560
 
@@ -624,7 +675,9 @@ export const ListCfInterconnectsResponse =
624
675
  Schema.Null,
625
676
  ]),
626
677
  ),
627
- }) as unknown as Schema.Schema<ListCfInterconnectsResponse>;
678
+ }).pipe(
679
+ T.ResponsePath("result"),
680
+ ) as unknown as Schema.Schema<ListCfInterconnectsResponse>;
628
681
 
629
682
  export type ListCfInterconnectsError = DefaultErrors;
630
683
 
@@ -777,12 +830,16 @@ export const PutCfInterconnectResponse =
777
830
  Schema.Null,
778
831
  ]),
779
832
  ),
780
- }).pipe(
781
- Schema.encodeKeys({
782
- modified: "modified",
783
- modifiedInterconnect: "modified_interconnect",
784
- }),
785
- ) as unknown as Schema.Schema<PutCfInterconnectResponse>;
833
+ })
834
+ .pipe(
835
+ Schema.encodeKeys({
836
+ modified: "modified",
837
+ modifiedInterconnect: "modified_interconnect",
838
+ }),
839
+ )
840
+ .pipe(
841
+ T.ResponsePath("result"),
842
+ ) as unknown as Schema.Schema<PutCfInterconnectResponse>;
786
843
 
787
844
  export type PutCfInterconnectError = DefaultErrors;
788
845
 
@@ -853,21 +910,25 @@ export const GetConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
853
910
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
854
911
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
855
912
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
856
- }).pipe(
857
- Schema.encodeKeys({
858
- id: "id",
859
- activated: "activated",
860
- interruptWindowDurationHours: "interrupt_window_duration_hours",
861
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
862
- lastUpdated: "last_updated",
863
- notes: "notes",
864
- timezone: "timezone",
865
- device: "device",
866
- lastHeartbeat: "last_heartbeat",
867
- lastSeenVersion: "last_seen_version",
868
- licenseKey: "license_key",
869
- }),
870
- ) as unknown as Schema.Schema<GetConnectorResponse>;
913
+ })
914
+ .pipe(
915
+ Schema.encodeKeys({
916
+ id: "id",
917
+ activated: "activated",
918
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
919
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
920
+ lastUpdated: "last_updated",
921
+ notes: "notes",
922
+ timezone: "timezone",
923
+ device: "device",
924
+ lastHeartbeat: "last_heartbeat",
925
+ lastSeenVersion: "last_seen_version",
926
+ licenseKey: "license_key",
927
+ }),
928
+ )
929
+ .pipe(
930
+ T.ResponsePath("result"),
931
+ ) as unknown as Schema.Schema<GetConnectorResponse>;
871
932
 
872
933
  export type GetConnectorError = DefaultErrors;
873
934
 
@@ -893,73 +954,112 @@ export const ListConnectorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
893
954
  T.Http({ method: "GET", path: "/accounts/{account_id}/magic/connectors" }),
894
955
  ) as unknown as Schema.Schema<ListConnectorsRequest>;
895
956
 
896
- export type ListConnectorsResponse = {
897
- id: string;
898
- activated: boolean;
899
- interruptWindowDurationHours: number;
900
- interruptWindowHourOfDay: number;
901
- lastUpdated: string;
902
- notes: string;
903
- timezone: string;
904
- device?: { id: string; serialNumber?: string | null } | null;
905
- lastHeartbeat?: string | null;
906
- lastSeenVersion?: string | null;
907
- licenseKey?: string | null;
908
- }[];
957
+ export interface ListConnectorsResponse {
958
+ result: {
959
+ id: string;
960
+ activated: boolean;
961
+ interruptWindowDurationHours: number;
962
+ interruptWindowHourOfDay: number;
963
+ lastUpdated: string;
964
+ notes: string;
965
+ timezone: string;
966
+ device?: { id: string; serialNumber?: string | null } | null;
967
+ lastHeartbeat?: string | null;
968
+ lastSeenVersion?: string | null;
969
+ licenseKey?: string | null;
970
+ }[];
971
+ }
909
972
 
910
- export const ListConnectorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
911
- Schema.Struct({
912
- id: Schema.String,
913
- activated: Schema.Boolean,
914
- interruptWindowDurationHours: Schema.Number,
915
- interruptWindowHourOfDay: Schema.Number,
916
- lastUpdated: Schema.String,
917
- notes: Schema.String,
918
- timezone: Schema.String,
919
- device: Schema.optional(
920
- Schema.Union([
921
- Schema.Struct({
922
- id: Schema.String,
923
- serialNumber: Schema.optional(
924
- Schema.Union([Schema.String, Schema.Null]),
925
- ),
926
- }).pipe(Schema.encodeKeys({ id: "id", serialNumber: "serial_number" })),
927
- Schema.Null,
928
- ]),
929
- ),
930
- lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
931
- lastSeenVersion: Schema.optional(
932
- Schema.Union([Schema.String, Schema.Null]),
973
+ export const ListConnectorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
974
+ {
975
+ result: Schema.Array(
976
+ Schema.Struct({
977
+ id: Schema.String,
978
+ activated: Schema.Boolean,
979
+ interruptWindowDurationHours: Schema.Number,
980
+ interruptWindowHourOfDay: Schema.Number,
981
+ lastUpdated: Schema.String,
982
+ notes: Schema.String,
983
+ timezone: Schema.String,
984
+ device: Schema.optional(
985
+ Schema.Union([
986
+ Schema.Struct({
987
+ id: Schema.String,
988
+ serialNumber: Schema.optional(
989
+ Schema.Union([Schema.String, Schema.Null]),
990
+ ),
991
+ }).pipe(
992
+ Schema.encodeKeys({ id: "id", serialNumber: "serial_number" }),
993
+ ),
994
+ Schema.Null,
995
+ ]),
996
+ ),
997
+ lastHeartbeat: Schema.optional(
998
+ Schema.Union([Schema.String, Schema.Null]),
999
+ ),
1000
+ lastSeenVersion: Schema.optional(
1001
+ Schema.Union([Schema.String, Schema.Null]),
1002
+ ),
1003
+ licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1004
+ }).pipe(
1005
+ Schema.encodeKeys({
1006
+ id: "id",
1007
+ activated: "activated",
1008
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
1009
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1010
+ lastUpdated: "last_updated",
1011
+ notes: "notes",
1012
+ timezone: "timezone",
1013
+ device: "device",
1014
+ lastHeartbeat: "last_heartbeat",
1015
+ lastSeenVersion: "last_seen_version",
1016
+ licenseKey: "license_key",
1017
+ }),
1018
+ ),
933
1019
  ),
934
- licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
- }).pipe(
936
- Schema.encodeKeys({
937
- id: "id",
938
- activated: "activated",
939
- interruptWindowDurationHours: "interrupt_window_duration_hours",
940
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
941
- lastUpdated: "last_updated",
942
- notes: "notes",
943
- timezone: "timezone",
944
- device: "device",
945
- lastHeartbeat: "last_heartbeat",
946
- lastSeenVersion: "last_seen_version",
947
- licenseKey: "license_key",
948
- }),
949
- ),
1020
+ },
950
1021
  ) as unknown as Schema.Schema<ListConnectorsResponse>;
951
1022
 
952
1023
  export type ListConnectorsError = DefaultErrors;
953
1024
 
954
- export const listConnectors: API.OperationMethod<
1025
+ export const listConnectors: API.PaginatedOperationMethod<
955
1026
  ListConnectorsRequest,
956
1027
  ListConnectorsResponse,
957
1028
  ListConnectorsError,
958
1029
  Credentials | HttpClient.HttpClient
959
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1030
+ > & {
1031
+ pages: (
1032
+ input: ListConnectorsRequest,
1033
+ ) => stream.Stream<
1034
+ ListConnectorsResponse,
1035
+ ListConnectorsError,
1036
+ Credentials | HttpClient.HttpClient
1037
+ >;
1038
+ items: (input: ListConnectorsRequest) => stream.Stream<
1039
+ {
1040
+ id: string;
1041
+ activated: boolean;
1042
+ interruptWindowDurationHours: number;
1043
+ interruptWindowHourOfDay: number;
1044
+ lastUpdated: string;
1045
+ notes: string;
1046
+ timezone: string;
1047
+ device?: { id: string; serialNumber?: string | null } | null;
1048
+ lastHeartbeat?: string | null;
1049
+ lastSeenVersion?: string | null;
1050
+ licenseKey?: string | null;
1051
+ },
1052
+ ListConnectorsError,
1053
+ Credentials | HttpClient.HttpClient
1054
+ >;
1055
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
960
1056
  input: ListConnectorsRequest,
961
1057
  output: ListConnectorsResponse,
962
1058
  errors: [],
1059
+ pagination: {
1060
+ mode: "single",
1061
+ items: "result",
1062
+ } as const,
963
1063
  }));
964
1064
 
965
1065
  export interface CreateConnectorRequest {
@@ -1050,21 +1150,25 @@ export const CreateConnectorResponse =
1050
1150
  Schema.Union([Schema.String, Schema.Null]),
1051
1151
  ),
1052
1152
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1053
- }).pipe(
1054
- Schema.encodeKeys({
1055
- id: "id",
1056
- activated: "activated",
1057
- interruptWindowDurationHours: "interrupt_window_duration_hours",
1058
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1059
- lastUpdated: "last_updated",
1060
- notes: "notes",
1061
- timezone: "timezone",
1062
- device: "device",
1063
- lastHeartbeat: "last_heartbeat",
1064
- lastSeenVersion: "last_seen_version",
1065
- licenseKey: "license_key",
1066
- }),
1067
- ) as unknown as Schema.Schema<CreateConnectorResponse>;
1153
+ })
1154
+ .pipe(
1155
+ Schema.encodeKeys({
1156
+ id: "id",
1157
+ activated: "activated",
1158
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
1159
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1160
+ lastUpdated: "last_updated",
1161
+ notes: "notes",
1162
+ timezone: "timezone",
1163
+ device: "device",
1164
+ lastHeartbeat: "last_heartbeat",
1165
+ lastSeenVersion: "last_seen_version",
1166
+ licenseKey: "license_key",
1167
+ }),
1168
+ )
1169
+ .pipe(
1170
+ T.ResponsePath("result"),
1171
+ ) as unknown as Schema.Schema<CreateConnectorResponse>;
1068
1172
 
1069
1173
  export type CreateConnectorError = DefaultErrors;
1070
1174
 
@@ -1162,21 +1266,25 @@ export const UpdateConnectorResponse =
1162
1266
  Schema.Union([Schema.String, Schema.Null]),
1163
1267
  ),
1164
1268
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1165
- }).pipe(
1166
- Schema.encodeKeys({
1167
- id: "id",
1168
- activated: "activated",
1169
- interruptWindowDurationHours: "interrupt_window_duration_hours",
1170
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1171
- lastUpdated: "last_updated",
1172
- notes: "notes",
1173
- timezone: "timezone",
1174
- device: "device",
1175
- lastHeartbeat: "last_heartbeat",
1176
- lastSeenVersion: "last_seen_version",
1177
- licenseKey: "license_key",
1178
- }),
1179
- ) as unknown as Schema.Schema<UpdateConnectorResponse>;
1269
+ })
1270
+ .pipe(
1271
+ Schema.encodeKeys({
1272
+ id: "id",
1273
+ activated: "activated",
1274
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
1275
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1276
+ lastUpdated: "last_updated",
1277
+ notes: "notes",
1278
+ timezone: "timezone",
1279
+ device: "device",
1280
+ lastHeartbeat: "last_heartbeat",
1281
+ lastSeenVersion: "last_seen_version",
1282
+ licenseKey: "license_key",
1283
+ }),
1284
+ )
1285
+ .pipe(
1286
+ T.ResponsePath("result"),
1287
+ ) as unknown as Schema.Schema<UpdateConnectorResponse>;
1180
1288
 
1181
1289
  export type UpdateConnectorError = DefaultErrors;
1182
1290
 
@@ -1273,32 +1381,36 @@ export const PatchConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1273
1381
  ),
1274
1382
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1275
1383
  },
1276
- ).pipe(
1277
- Schema.encodeKeys({
1278
- id: "id",
1279
- activated: "activated",
1280
- interruptWindowDurationHours: "interrupt_window_duration_hours",
1281
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1282
- lastUpdated: "last_updated",
1283
- notes: "notes",
1284
- timezone: "timezone",
1285
- device: "device",
1286
- lastHeartbeat: "last_heartbeat",
1287
- lastSeenVersion: "last_seen_version",
1288
- licenseKey: "license_key",
1289
- }),
1290
- ) as unknown as Schema.Schema<PatchConnectorResponse>;
1291
-
1292
- export type PatchConnectorError = DefaultErrors;
1293
-
1294
- export const patchConnector: API.OperationMethod<
1295
- PatchConnectorRequest,
1296
- PatchConnectorResponse,
1297
- PatchConnectorError,
1298
- Credentials | HttpClient.HttpClient
1299
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1300
- input: PatchConnectorRequest,
1301
- output: PatchConnectorResponse,
1384
+ )
1385
+ .pipe(
1386
+ Schema.encodeKeys({
1387
+ id: "id",
1388
+ activated: "activated",
1389
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
1390
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1391
+ lastUpdated: "last_updated",
1392
+ notes: "notes",
1393
+ timezone: "timezone",
1394
+ device: "device",
1395
+ lastHeartbeat: "last_heartbeat",
1396
+ lastSeenVersion: "last_seen_version",
1397
+ licenseKey: "license_key",
1398
+ }),
1399
+ )
1400
+ .pipe(
1401
+ T.ResponsePath("result"),
1402
+ ) as unknown as Schema.Schema<PatchConnectorResponse>;
1403
+
1404
+ export type PatchConnectorError = DefaultErrors;
1405
+
1406
+ export const patchConnector: API.OperationMethod<
1407
+ PatchConnectorRequest,
1408
+ PatchConnectorResponse,
1409
+ PatchConnectorError,
1410
+ Credentials | HttpClient.HttpClient
1411
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1412
+ input: PatchConnectorRequest,
1413
+ output: PatchConnectorResponse,
1302
1414
  errors: [],
1303
1415
  }));
1304
1416
 
@@ -1359,21 +1471,25 @@ export const DeleteConnectorResponse =
1359
1471
  Schema.Union([Schema.String, Schema.Null]),
1360
1472
  ),
1361
1473
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1362
- }).pipe(
1363
- Schema.encodeKeys({
1364
- id: "id",
1365
- activated: "activated",
1366
- interruptWindowDurationHours: "interrupt_window_duration_hours",
1367
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1368
- lastUpdated: "last_updated",
1369
- notes: "notes",
1370
- timezone: "timezone",
1371
- device: "device",
1372
- lastHeartbeat: "last_heartbeat",
1373
- lastSeenVersion: "last_seen_version",
1374
- licenseKey: "license_key",
1375
- }),
1376
- ) as unknown as Schema.Schema<DeleteConnectorResponse>;
1474
+ })
1475
+ .pipe(
1476
+ Schema.encodeKeys({
1477
+ id: "id",
1478
+ activated: "activated",
1479
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
1480
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
1481
+ lastUpdated: "last_updated",
1482
+ notes: "notes",
1483
+ timezone: "timezone",
1484
+ device: "device",
1485
+ lastHeartbeat: "last_heartbeat",
1486
+ lastSeenVersion: "last_seen_version",
1487
+ licenseKey: "license_key",
1488
+ }),
1489
+ )
1490
+ .pipe(
1491
+ T.ResponsePath("result"),
1492
+ ) as unknown as Schema.Schema<DeleteConnectorResponse>;
1377
1493
 
1378
1494
  export type DeleteConnectorError = DefaultErrors;
1379
1495
 
@@ -1492,7 +1608,9 @@ export const GetConnectorEventResponse =
1492
1608
  ]),
1493
1609
  n: Schema.Number,
1494
1610
  t: Schema.Number,
1495
- }) as unknown as Schema.Schema<GetConnectorEventResponse>;
1611
+ }).pipe(
1612
+ T.ResponsePath("result"),
1613
+ ) as unknown as Schema.Schema<GetConnectorEventResponse>;
1496
1614
 
1497
1615
  export type GetConnectorEventError = DefaultErrors;
1498
1616
 
@@ -1557,7 +1675,9 @@ export const ListConnectorEventsResponse =
1557
1675
  }),
1558
1676
  ),
1559
1677
  cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1560
- }) as unknown as Schema.Schema<ListConnectorEventsResponse>;
1678
+ }).pipe(
1679
+ T.ResponsePath("result"),
1680
+ ) as unknown as Schema.Schema<ListConnectorEventsResponse>;
1561
1681
 
1562
1682
  export type ListConnectorEventsError = DefaultErrors;
1563
1683
 
@@ -1678,7 +1798,9 @@ export const ListConnectorEventLatestsResponse =
1678
1798
  t: Schema.Number,
1679
1799
  }),
1680
1800
  ),
1681
- }) as unknown as Schema.Schema<ListConnectorEventLatestsResponse>;
1801
+ }).pipe(
1802
+ T.ResponsePath("result"),
1803
+ ) as unknown as Schema.Schema<ListConnectorEventLatestsResponse>;
1682
1804
 
1683
1805
  export type ListConnectorEventLatestsError = DefaultErrors;
1684
1806
 
@@ -2867,180 +2989,184 @@ export const GetConnectorSnapshotResponse =
2867
2989
  ),
2868
2990
  uptimeIdleMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2869
2991
  uptimeTotalMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2870
- }).pipe(
2871
- Schema.encodeKeys({
2872
- countReclaimFailures: "count_reclaim_failures",
2873
- countReclaimedPaths: "count_reclaimed_paths",
2874
- countRecordFailed: "count_record_failed",
2875
- countTransmitFailures: "count_transmit_failures",
2876
- t: "t",
2877
- v: "v",
2878
- bonds: "bonds",
2879
- cpuCount: "cpu_count",
2880
- cpuPressure_10s: "cpu_pressure_10s",
2881
- cpuPressure_300s: "cpu_pressure_300s",
2882
- cpuPressure_60s: "cpu_pressure_60s",
2883
- cpuPressureTotalUs: "cpu_pressure_total_us",
2884
- cpuTimeGuestMs: "cpu_time_guest_ms",
2885
- cpuTimeGuestNiceMs: "cpu_time_guest_nice_ms",
2886
- cpuTimeIdleMs: "cpu_time_idle_ms",
2887
- cpuTimeIowaitMs: "cpu_time_iowait_ms",
2888
- cpuTimeIrqMs: "cpu_time_irq_ms",
2889
- cpuTimeNiceMs: "cpu_time_nice_ms",
2890
- cpuTimeSoftirqMs: "cpu_time_softirq_ms",
2891
- cpuTimeStealMs: "cpu_time_steal_ms",
2892
- cpuTimeSystemMs: "cpu_time_system_ms",
2893
- cpuTimeUserMs: "cpu_time_user_ms",
2894
- dhcpLeases: "dhcp_leases",
2895
- disks: "disks",
2896
- haState: "ha_state",
2897
- haValue: "ha_value",
2898
- interfaces: "interfaces",
2899
- ioPressureFull_10s: "io_pressure_full_10s",
2900
- ioPressureFull_300s: "io_pressure_full_300s",
2901
- ioPressureFull_60s: "io_pressure_full_60s",
2902
- ioPressureFullTotalUs: "io_pressure_full_total_us",
2903
- ioPressureSome_10s: "io_pressure_some_10s",
2904
- ioPressureSome_300s: "io_pressure_some_300s",
2905
- ioPressureSome_60s: "io_pressure_some_60s",
2906
- ioPressureSomeTotalUs: "io_pressure_some_total_us",
2907
- kernelBtime: "kernel_btime",
2908
- kernelCtxt: "kernel_ctxt",
2909
- kernelProcesses: "kernel_processes",
2910
- kernelProcessesBlocked: "kernel_processes_blocked",
2911
- kernelProcessesRunning: "kernel_processes_running",
2912
- loadAverage_15m: "load_average_15m",
2913
- loadAverage_1m: "load_average_1m",
2914
- loadAverage_5m: "load_average_5m",
2915
- loadAverageCur: "load_average_cur",
2916
- loadAverageMax: "load_average_max",
2917
- memoryActiveBytes: "memory_active_bytes",
2918
- memoryAnonHugepagesBytes: "memory_anon_hugepages_bytes",
2919
- memoryAnonPagesBytes: "memory_anon_pages_bytes",
2920
- memoryAvailableBytes: "memory_available_bytes",
2921
- memoryBounceBytes: "memory_bounce_bytes",
2922
- memoryBuffersBytes: "memory_buffers_bytes",
2923
- memoryCachedBytes: "memory_cached_bytes",
2924
- memoryCmaFreeBytes: "memory_cma_free_bytes",
2925
- memoryCmaTotalBytes: "memory_cma_total_bytes",
2926
- memoryCommitLimitBytes: "memory_commit_limit_bytes",
2927
- memoryCommittedAsBytes: "memory_committed_as_bytes",
2928
- memoryDirtyBytes: "memory_dirty_bytes",
2929
- memoryFreeBytes: "memory_free_bytes",
2930
- memoryHighFreeBytes: "memory_high_free_bytes",
2931
- memoryHighTotalBytes: "memory_high_total_bytes",
2932
- memoryHugepagesFree: "memory_hugepages_free",
2933
- memoryHugepagesRsvd: "memory_hugepages_rsvd",
2934
- memoryHugepagesSurp: "memory_hugepages_surp",
2935
- memoryHugepagesTotal: "memory_hugepages_total",
2936
- memoryHugepagesizeBytes: "memory_hugepagesize_bytes",
2937
- memoryInactiveBytes: "memory_inactive_bytes",
2938
- memoryKReclaimableBytes: "memory_k_reclaimable_bytes",
2939
- memoryKernelStackBytes: "memory_kernel_stack_bytes",
2940
- memoryLowFreeBytes: "memory_low_free_bytes",
2941
- memoryLowTotalBytes: "memory_low_total_bytes",
2942
- memoryMappedBytes: "memory_mapped_bytes",
2943
- memoryPageTablesBytes: "memory_page_tables_bytes",
2944
- memoryPerCpuBytes: "memory_per_cpu_bytes",
2945
- memoryPressureFull_10s: "memory_pressure_full_10s",
2946
- memoryPressureFull_300s: "memory_pressure_full_300s",
2947
- memoryPressureFull_60s: "memory_pressure_full_60s",
2948
- memoryPressureFullTotalUs: "memory_pressure_full_total_us",
2949
- memoryPressureSome_10s: "memory_pressure_some_10s",
2950
- memoryPressureSome_300s: "memory_pressure_some_300s",
2951
- memoryPressureSome_60s: "memory_pressure_some_60s",
2952
- memoryPressureSomeTotalUs: "memory_pressure_some_total_us",
2953
- memorySReclaimableBytes: "memory_s_reclaimable_bytes",
2954
- memorySUnreclaimBytes: "memory_s_unreclaim_bytes",
2955
- memorySecondaryPageTablesBytes: "memory_secondary_page_tables_bytes",
2956
- memoryShmemBytes: "memory_shmem_bytes",
2957
- memoryShmemHugepagesBytes: "memory_shmem_hugepages_bytes",
2958
- memoryShmemPmdMappedBytes: "memory_shmem_pmd_mapped_bytes",
2959
- memorySlabBytes: "memory_slab_bytes",
2960
- memorySwapCachedBytes: "memory_swap_cached_bytes",
2961
- memorySwapFreeBytes: "memory_swap_free_bytes",
2962
- memorySwapTotalBytes: "memory_swap_total_bytes",
2963
- memoryTotalBytes: "memory_total_bytes",
2964
- memoryVmallocChunkBytes: "memory_vmalloc_chunk_bytes",
2965
- memoryVmallocTotalBytes: "memory_vmalloc_total_bytes",
2966
- memoryVmallocUsedBytes: "memory_vmalloc_used_bytes",
2967
- memoryWritebackBytes: "memory_writeback_bytes",
2968
- memoryWritebackTmpBytes: "memory_writeback_tmp_bytes",
2969
- memoryZSwapBytes: "memory_z_swap_bytes",
2970
- memoryZSwappedBytes: "memory_z_swapped_bytes",
2971
- mounts: "mounts",
2972
- netdevs: "netdevs",
2973
- snmpIcmpInAddrMaskReps: "snmp_icmp_in_addr_mask_reps",
2974
- snmpIcmpInAddrMasks: "snmp_icmp_in_addr_masks",
2975
- snmpIcmpInCsumErrors: "snmp_icmp_in_csum_errors",
2976
- snmpIcmpInDestUnreachs: "snmp_icmp_in_dest_unreachs",
2977
- snmpIcmpInEchoReps: "snmp_icmp_in_echo_reps",
2978
- snmpIcmpInEchos: "snmp_icmp_in_echos",
2979
- snmpIcmpInErrors: "snmp_icmp_in_errors",
2980
- snmpIcmpInMsgs: "snmp_icmp_in_msgs",
2981
- snmpIcmpInParmProbs: "snmp_icmp_in_parm_probs",
2982
- snmpIcmpInRedirects: "snmp_icmp_in_redirects",
2983
- snmpIcmpInSrcQuenchs: "snmp_icmp_in_src_quenchs",
2984
- snmpIcmpInTimeExcds: "snmp_icmp_in_time_excds",
2985
- snmpIcmpInTimestampReps: "snmp_icmp_in_timestamp_reps",
2986
- snmpIcmpInTimestamps: "snmp_icmp_in_timestamps",
2987
- snmpIcmpOutAddrMaskReps: "snmp_icmp_out_addr_mask_reps",
2988
- snmpIcmpOutAddrMasks: "snmp_icmp_out_addr_masks",
2989
- snmpIcmpOutDestUnreachs: "snmp_icmp_out_dest_unreachs",
2990
- snmpIcmpOutEchoReps: "snmp_icmp_out_echo_reps",
2991
- snmpIcmpOutEchos: "snmp_icmp_out_echos",
2992
- snmpIcmpOutErrors: "snmp_icmp_out_errors",
2993
- snmpIcmpOutMsgs: "snmp_icmp_out_msgs",
2994
- snmpIcmpOutParmProbs: "snmp_icmp_out_parm_probs",
2995
- snmpIcmpOutRedirects: "snmp_icmp_out_redirects",
2996
- snmpIcmpOutSrcQuenchs: "snmp_icmp_out_src_quenchs",
2997
- snmpIcmpOutTimeExcds: "snmp_icmp_out_time_excds",
2998
- snmpIcmpOutTimestampReps: "snmp_icmp_out_timestamp_reps",
2999
- snmpIcmpOutTimestamps: "snmp_icmp_out_timestamps",
3000
- snmpIpDefaultTtl: "snmp_ip_default_ttl",
3001
- snmpIpForwDatagrams: "snmp_ip_forw_datagrams",
3002
- snmpIpForwardingEnabled: "snmp_ip_forwarding_enabled",
3003
- snmpIpFragCreates: "snmp_ip_frag_creates",
3004
- snmpIpFragFails: "snmp_ip_frag_fails",
3005
- snmpIpFragOks: "snmp_ip_frag_oks",
3006
- snmpIpInAddrErrors: "snmp_ip_in_addr_errors",
3007
- snmpIpInDelivers: "snmp_ip_in_delivers",
3008
- snmpIpInDiscards: "snmp_ip_in_discards",
3009
- snmpIpInHdrErrors: "snmp_ip_in_hdr_errors",
3010
- snmpIpInReceives: "snmp_ip_in_receives",
3011
- snmpIpInUnknownProtos: "snmp_ip_in_unknown_protos",
3012
- snmpIpOutDiscards: "snmp_ip_out_discards",
3013
- snmpIpOutNoRoutes: "snmp_ip_out_no_routes",
3014
- snmpIpOutRequests: "snmp_ip_out_requests",
3015
- snmpIpReasmFails: "snmp_ip_reasm_fails",
3016
- snmpIpReasmOks: "snmp_ip_reasm_oks",
3017
- snmpIpReasmReqds: "snmp_ip_reasm_reqds",
3018
- snmpIpReasmTimeout: "snmp_ip_reasm_timeout",
3019
- snmpTcpActiveOpens: "snmp_tcp_active_opens",
3020
- snmpTcpAttemptFails: "snmp_tcp_attempt_fails",
3021
- snmpTcpCurrEstab: "snmp_tcp_curr_estab",
3022
- snmpTcpEstabResets: "snmp_tcp_estab_resets",
3023
- snmpTcpInCsumErrors: "snmp_tcp_in_csum_errors",
3024
- snmpTcpInErrs: "snmp_tcp_in_errs",
3025
- snmpTcpInSegs: "snmp_tcp_in_segs",
3026
- snmpTcpMaxConn: "snmp_tcp_max_conn",
3027
- snmpTcpOutRsts: "snmp_tcp_out_rsts",
3028
- snmpTcpOutSegs: "snmp_tcp_out_segs",
3029
- snmpTcpPassiveOpens: "snmp_tcp_passive_opens",
3030
- snmpTcpRetransSegs: "snmp_tcp_retrans_segs",
3031
- snmpTcpRtoMax: "snmp_tcp_rto_max",
3032
- snmpTcpRtoMin: "snmp_tcp_rto_min",
3033
- snmpUdpInDatagrams: "snmp_udp_in_datagrams",
3034
- snmpUdpInErrors: "snmp_udp_in_errors",
3035
- snmpUdpNoPorts: "snmp_udp_no_ports",
3036
- snmpUdpOutDatagrams: "snmp_udp_out_datagrams",
3037
- systemBootTimeS: "system_boot_time_s",
3038
- thermals: "thermals",
3039
- tunnels: "tunnels",
3040
- uptimeIdleMs: "uptime_idle_ms",
3041
- uptimeTotalMs: "uptime_total_ms",
3042
- }),
3043
- ) as unknown as Schema.Schema<GetConnectorSnapshotResponse>;
2992
+ })
2993
+ .pipe(
2994
+ Schema.encodeKeys({
2995
+ countReclaimFailures: "count_reclaim_failures",
2996
+ countReclaimedPaths: "count_reclaimed_paths",
2997
+ countRecordFailed: "count_record_failed",
2998
+ countTransmitFailures: "count_transmit_failures",
2999
+ t: "t",
3000
+ v: "v",
3001
+ bonds: "bonds",
3002
+ cpuCount: "cpu_count",
3003
+ cpuPressure_10s: "cpu_pressure_10s",
3004
+ cpuPressure_300s: "cpu_pressure_300s",
3005
+ cpuPressure_60s: "cpu_pressure_60s",
3006
+ cpuPressureTotalUs: "cpu_pressure_total_us",
3007
+ cpuTimeGuestMs: "cpu_time_guest_ms",
3008
+ cpuTimeGuestNiceMs: "cpu_time_guest_nice_ms",
3009
+ cpuTimeIdleMs: "cpu_time_idle_ms",
3010
+ cpuTimeIowaitMs: "cpu_time_iowait_ms",
3011
+ cpuTimeIrqMs: "cpu_time_irq_ms",
3012
+ cpuTimeNiceMs: "cpu_time_nice_ms",
3013
+ cpuTimeSoftirqMs: "cpu_time_softirq_ms",
3014
+ cpuTimeStealMs: "cpu_time_steal_ms",
3015
+ cpuTimeSystemMs: "cpu_time_system_ms",
3016
+ cpuTimeUserMs: "cpu_time_user_ms",
3017
+ dhcpLeases: "dhcp_leases",
3018
+ disks: "disks",
3019
+ haState: "ha_state",
3020
+ haValue: "ha_value",
3021
+ interfaces: "interfaces",
3022
+ ioPressureFull_10s: "io_pressure_full_10s",
3023
+ ioPressureFull_300s: "io_pressure_full_300s",
3024
+ ioPressureFull_60s: "io_pressure_full_60s",
3025
+ ioPressureFullTotalUs: "io_pressure_full_total_us",
3026
+ ioPressureSome_10s: "io_pressure_some_10s",
3027
+ ioPressureSome_300s: "io_pressure_some_300s",
3028
+ ioPressureSome_60s: "io_pressure_some_60s",
3029
+ ioPressureSomeTotalUs: "io_pressure_some_total_us",
3030
+ kernelBtime: "kernel_btime",
3031
+ kernelCtxt: "kernel_ctxt",
3032
+ kernelProcesses: "kernel_processes",
3033
+ kernelProcessesBlocked: "kernel_processes_blocked",
3034
+ kernelProcessesRunning: "kernel_processes_running",
3035
+ loadAverage_15m: "load_average_15m",
3036
+ loadAverage_1m: "load_average_1m",
3037
+ loadAverage_5m: "load_average_5m",
3038
+ loadAverageCur: "load_average_cur",
3039
+ loadAverageMax: "load_average_max",
3040
+ memoryActiveBytes: "memory_active_bytes",
3041
+ memoryAnonHugepagesBytes: "memory_anon_hugepages_bytes",
3042
+ memoryAnonPagesBytes: "memory_anon_pages_bytes",
3043
+ memoryAvailableBytes: "memory_available_bytes",
3044
+ memoryBounceBytes: "memory_bounce_bytes",
3045
+ memoryBuffersBytes: "memory_buffers_bytes",
3046
+ memoryCachedBytes: "memory_cached_bytes",
3047
+ memoryCmaFreeBytes: "memory_cma_free_bytes",
3048
+ memoryCmaTotalBytes: "memory_cma_total_bytes",
3049
+ memoryCommitLimitBytes: "memory_commit_limit_bytes",
3050
+ memoryCommittedAsBytes: "memory_committed_as_bytes",
3051
+ memoryDirtyBytes: "memory_dirty_bytes",
3052
+ memoryFreeBytes: "memory_free_bytes",
3053
+ memoryHighFreeBytes: "memory_high_free_bytes",
3054
+ memoryHighTotalBytes: "memory_high_total_bytes",
3055
+ memoryHugepagesFree: "memory_hugepages_free",
3056
+ memoryHugepagesRsvd: "memory_hugepages_rsvd",
3057
+ memoryHugepagesSurp: "memory_hugepages_surp",
3058
+ memoryHugepagesTotal: "memory_hugepages_total",
3059
+ memoryHugepagesizeBytes: "memory_hugepagesize_bytes",
3060
+ memoryInactiveBytes: "memory_inactive_bytes",
3061
+ memoryKReclaimableBytes: "memory_k_reclaimable_bytes",
3062
+ memoryKernelStackBytes: "memory_kernel_stack_bytes",
3063
+ memoryLowFreeBytes: "memory_low_free_bytes",
3064
+ memoryLowTotalBytes: "memory_low_total_bytes",
3065
+ memoryMappedBytes: "memory_mapped_bytes",
3066
+ memoryPageTablesBytes: "memory_page_tables_bytes",
3067
+ memoryPerCpuBytes: "memory_per_cpu_bytes",
3068
+ memoryPressureFull_10s: "memory_pressure_full_10s",
3069
+ memoryPressureFull_300s: "memory_pressure_full_300s",
3070
+ memoryPressureFull_60s: "memory_pressure_full_60s",
3071
+ memoryPressureFullTotalUs: "memory_pressure_full_total_us",
3072
+ memoryPressureSome_10s: "memory_pressure_some_10s",
3073
+ memoryPressureSome_300s: "memory_pressure_some_300s",
3074
+ memoryPressureSome_60s: "memory_pressure_some_60s",
3075
+ memoryPressureSomeTotalUs: "memory_pressure_some_total_us",
3076
+ memorySReclaimableBytes: "memory_s_reclaimable_bytes",
3077
+ memorySUnreclaimBytes: "memory_s_unreclaim_bytes",
3078
+ memorySecondaryPageTablesBytes: "memory_secondary_page_tables_bytes",
3079
+ memoryShmemBytes: "memory_shmem_bytes",
3080
+ memoryShmemHugepagesBytes: "memory_shmem_hugepages_bytes",
3081
+ memoryShmemPmdMappedBytes: "memory_shmem_pmd_mapped_bytes",
3082
+ memorySlabBytes: "memory_slab_bytes",
3083
+ memorySwapCachedBytes: "memory_swap_cached_bytes",
3084
+ memorySwapFreeBytes: "memory_swap_free_bytes",
3085
+ memorySwapTotalBytes: "memory_swap_total_bytes",
3086
+ memoryTotalBytes: "memory_total_bytes",
3087
+ memoryVmallocChunkBytes: "memory_vmalloc_chunk_bytes",
3088
+ memoryVmallocTotalBytes: "memory_vmalloc_total_bytes",
3089
+ memoryVmallocUsedBytes: "memory_vmalloc_used_bytes",
3090
+ memoryWritebackBytes: "memory_writeback_bytes",
3091
+ memoryWritebackTmpBytes: "memory_writeback_tmp_bytes",
3092
+ memoryZSwapBytes: "memory_z_swap_bytes",
3093
+ memoryZSwappedBytes: "memory_z_swapped_bytes",
3094
+ mounts: "mounts",
3095
+ netdevs: "netdevs",
3096
+ snmpIcmpInAddrMaskReps: "snmp_icmp_in_addr_mask_reps",
3097
+ snmpIcmpInAddrMasks: "snmp_icmp_in_addr_masks",
3098
+ snmpIcmpInCsumErrors: "snmp_icmp_in_csum_errors",
3099
+ snmpIcmpInDestUnreachs: "snmp_icmp_in_dest_unreachs",
3100
+ snmpIcmpInEchoReps: "snmp_icmp_in_echo_reps",
3101
+ snmpIcmpInEchos: "snmp_icmp_in_echos",
3102
+ snmpIcmpInErrors: "snmp_icmp_in_errors",
3103
+ snmpIcmpInMsgs: "snmp_icmp_in_msgs",
3104
+ snmpIcmpInParmProbs: "snmp_icmp_in_parm_probs",
3105
+ snmpIcmpInRedirects: "snmp_icmp_in_redirects",
3106
+ snmpIcmpInSrcQuenchs: "snmp_icmp_in_src_quenchs",
3107
+ snmpIcmpInTimeExcds: "snmp_icmp_in_time_excds",
3108
+ snmpIcmpInTimestampReps: "snmp_icmp_in_timestamp_reps",
3109
+ snmpIcmpInTimestamps: "snmp_icmp_in_timestamps",
3110
+ snmpIcmpOutAddrMaskReps: "snmp_icmp_out_addr_mask_reps",
3111
+ snmpIcmpOutAddrMasks: "snmp_icmp_out_addr_masks",
3112
+ snmpIcmpOutDestUnreachs: "snmp_icmp_out_dest_unreachs",
3113
+ snmpIcmpOutEchoReps: "snmp_icmp_out_echo_reps",
3114
+ snmpIcmpOutEchos: "snmp_icmp_out_echos",
3115
+ snmpIcmpOutErrors: "snmp_icmp_out_errors",
3116
+ snmpIcmpOutMsgs: "snmp_icmp_out_msgs",
3117
+ snmpIcmpOutParmProbs: "snmp_icmp_out_parm_probs",
3118
+ snmpIcmpOutRedirects: "snmp_icmp_out_redirects",
3119
+ snmpIcmpOutSrcQuenchs: "snmp_icmp_out_src_quenchs",
3120
+ snmpIcmpOutTimeExcds: "snmp_icmp_out_time_excds",
3121
+ snmpIcmpOutTimestampReps: "snmp_icmp_out_timestamp_reps",
3122
+ snmpIcmpOutTimestamps: "snmp_icmp_out_timestamps",
3123
+ snmpIpDefaultTtl: "snmp_ip_default_ttl",
3124
+ snmpIpForwDatagrams: "snmp_ip_forw_datagrams",
3125
+ snmpIpForwardingEnabled: "snmp_ip_forwarding_enabled",
3126
+ snmpIpFragCreates: "snmp_ip_frag_creates",
3127
+ snmpIpFragFails: "snmp_ip_frag_fails",
3128
+ snmpIpFragOks: "snmp_ip_frag_oks",
3129
+ snmpIpInAddrErrors: "snmp_ip_in_addr_errors",
3130
+ snmpIpInDelivers: "snmp_ip_in_delivers",
3131
+ snmpIpInDiscards: "snmp_ip_in_discards",
3132
+ snmpIpInHdrErrors: "snmp_ip_in_hdr_errors",
3133
+ snmpIpInReceives: "snmp_ip_in_receives",
3134
+ snmpIpInUnknownProtos: "snmp_ip_in_unknown_protos",
3135
+ snmpIpOutDiscards: "snmp_ip_out_discards",
3136
+ snmpIpOutNoRoutes: "snmp_ip_out_no_routes",
3137
+ snmpIpOutRequests: "snmp_ip_out_requests",
3138
+ snmpIpReasmFails: "snmp_ip_reasm_fails",
3139
+ snmpIpReasmOks: "snmp_ip_reasm_oks",
3140
+ snmpIpReasmReqds: "snmp_ip_reasm_reqds",
3141
+ snmpIpReasmTimeout: "snmp_ip_reasm_timeout",
3142
+ snmpTcpActiveOpens: "snmp_tcp_active_opens",
3143
+ snmpTcpAttemptFails: "snmp_tcp_attempt_fails",
3144
+ snmpTcpCurrEstab: "snmp_tcp_curr_estab",
3145
+ snmpTcpEstabResets: "snmp_tcp_estab_resets",
3146
+ snmpTcpInCsumErrors: "snmp_tcp_in_csum_errors",
3147
+ snmpTcpInErrs: "snmp_tcp_in_errs",
3148
+ snmpTcpInSegs: "snmp_tcp_in_segs",
3149
+ snmpTcpMaxConn: "snmp_tcp_max_conn",
3150
+ snmpTcpOutRsts: "snmp_tcp_out_rsts",
3151
+ snmpTcpOutSegs: "snmp_tcp_out_segs",
3152
+ snmpTcpPassiveOpens: "snmp_tcp_passive_opens",
3153
+ snmpTcpRetransSegs: "snmp_tcp_retrans_segs",
3154
+ snmpTcpRtoMax: "snmp_tcp_rto_max",
3155
+ snmpTcpRtoMin: "snmp_tcp_rto_min",
3156
+ snmpUdpInDatagrams: "snmp_udp_in_datagrams",
3157
+ snmpUdpInErrors: "snmp_udp_in_errors",
3158
+ snmpUdpNoPorts: "snmp_udp_no_ports",
3159
+ snmpUdpOutDatagrams: "snmp_udp_out_datagrams",
3160
+ systemBootTimeS: "system_boot_time_s",
3161
+ thermals: "thermals",
3162
+ tunnels: "tunnels",
3163
+ uptimeIdleMs: "uptime_idle_ms",
3164
+ uptimeTotalMs: "uptime_total_ms",
3165
+ }),
3166
+ )
3167
+ .pipe(
3168
+ T.ResponsePath("result"),
3169
+ ) as unknown as Schema.Schema<GetConnectorSnapshotResponse>;
3044
3170
 
3045
3171
  export type GetConnectorSnapshotError = DefaultErrors;
3046
3172
 
@@ -3100,7 +3226,9 @@ export const ListConnectorSnapshotsResponse =
3100
3226
  }),
3101
3227
  ),
3102
3228
  cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3103
- }) as unknown as Schema.Schema<ListConnectorSnapshotsResponse>;
3229
+ }).pipe(
3230
+ T.ResponsePath("result"),
3231
+ ) as unknown as Schema.Schema<ListConnectorSnapshotsResponse>;
3104
3232
 
3105
3233
  export type ListConnectorSnapshotsError = DefaultErrors;
3106
3234
 
@@ -4356,7 +4484,9 @@ export const ListConnectorSnapshotLatestsResponse =
4356
4484
  }),
4357
4485
  ),
4358
4486
  ),
4359
- }) as unknown as Schema.Schema<ListConnectorSnapshotLatestsResponse>;
4487
+ }).pipe(
4488
+ T.ResponsePath("result"),
4489
+ ) as unknown as Schema.Schema<ListConnectorSnapshotLatestsResponse>;
4360
4490
 
4361
4491
  export type ListConnectorSnapshotLatestsError = DefaultErrors;
4362
4492
 
@@ -4418,13 +4548,17 @@ export const PskGenerateIpsecTunnelResponse =
4418
4548
  Schema.Null,
4419
4549
  ]),
4420
4550
  ),
4421
- }).pipe(
4422
- Schema.encodeKeys({
4423
- ipsecTunnelId: "ipsec_tunnel_id",
4424
- psk: "psk",
4425
- pskMetadata: "psk_metadata",
4426
- }),
4427
- ) as unknown as Schema.Schema<PskGenerateIpsecTunnelResponse>;
4551
+ })
4552
+ .pipe(
4553
+ Schema.encodeKeys({
4554
+ ipsecTunnelId: "ipsec_tunnel_id",
4555
+ psk: "psk",
4556
+ pskMetadata: "psk_metadata",
4557
+ }),
4558
+ )
4559
+ .pipe(
4560
+ T.ResponsePath("result"),
4561
+ ) as unknown as Schema.Schema<PskGenerateIpsecTunnelResponse>;
4428
4562
 
4429
4563
  export type PskGenerateIpsecTunnelError = DefaultErrors;
4430
4564
 
@@ -4648,9 +4782,11 @@ export const GetGreTunnelResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4648
4782
  Schema.Null,
4649
4783
  ]),
4650
4784
  ),
4651
- }).pipe(
4652
- Schema.encodeKeys({ greTunnel: "gre_tunnel" }),
4653
- ) as unknown as Schema.Schema<GetGreTunnelResponse>;
4785
+ })
4786
+ .pipe(Schema.encodeKeys({ greTunnel: "gre_tunnel" }))
4787
+ .pipe(
4788
+ T.ResponsePath("result"),
4789
+ ) as unknown as Schema.Schema<GetGreTunnelResponse>;
4654
4790
 
4655
4791
  export type GetGreTunnelError = DefaultErrors;
4656
4792
 
@@ -4875,9 +5011,11 @@ export const ListGreTunnelsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4875
5011
  ]),
4876
5012
  ),
4877
5013
  },
4878
- ).pipe(
4879
- Schema.encodeKeys({ greTunnels: "gre_tunnels" }),
4880
- ) as unknown as Schema.Schema<ListGreTunnelsResponse>;
5014
+ )
5015
+ .pipe(Schema.encodeKeys({ greTunnels: "gre_tunnels" }))
5016
+ .pipe(
5017
+ T.ResponsePath("result"),
5018
+ ) as unknown as Schema.Schema<ListGreTunnelsResponse>;
4881
5019
 
4882
5020
  export type ListGreTunnelsError = DefaultErrors;
4883
5021
 
@@ -5146,25 +5284,29 @@ export const CreateGreTunnelResponse =
5146
5284
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5147
5285
  mtu: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5148
5286
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5149
- }).pipe(
5150
- Schema.encodeKeys({
5151
- id: "id",
5152
- cloudflareGreEndpoint: "cloudflare_gre_endpoint",
5153
- customerGreEndpoint: "customer_gre_endpoint",
5154
- interfaceAddress: "interface_address",
5155
- name: "name",
5156
- automaticReturnRouting: "automatic_return_routing",
5157
- bgp: "bgp",
5158
- bgpStatus: "bgp_status",
5159
- createdOn: "created_on",
5160
- description: "description",
5161
- healthCheck: "health_check",
5162
- interfaceAddress6: "interface_address6",
5163
- modifiedOn: "modified_on",
5164
- mtu: "mtu",
5165
- ttl: "ttl",
5166
- }),
5167
- ) as unknown as Schema.Schema<CreateGreTunnelResponse>;
5287
+ })
5288
+ .pipe(
5289
+ Schema.encodeKeys({
5290
+ id: "id",
5291
+ cloudflareGreEndpoint: "cloudflare_gre_endpoint",
5292
+ customerGreEndpoint: "customer_gre_endpoint",
5293
+ interfaceAddress: "interface_address",
5294
+ name: "name",
5295
+ automaticReturnRouting: "automatic_return_routing",
5296
+ bgp: "bgp",
5297
+ bgpStatus: "bgp_status",
5298
+ createdOn: "created_on",
5299
+ description: "description",
5300
+ healthCheck: "health_check",
5301
+ interfaceAddress6: "interface_address6",
5302
+ modifiedOn: "modified_on",
5303
+ mtu: "mtu",
5304
+ ttl: "ttl",
5305
+ }),
5306
+ )
5307
+ .pipe(
5308
+ T.ResponsePath("result"),
5309
+ ) as unknown as Schema.Schema<CreateGreTunnelResponse>;
5168
5310
 
5169
5311
  export type CreateGreTunnelError = DefaultErrors;
5170
5312
 
@@ -5458,12 +5600,16 @@ export const UpdateGreTunnelResponse =
5458
5600
  Schema.Null,
5459
5601
  ]),
5460
5602
  ),
5461
- }).pipe(
5462
- Schema.encodeKeys({
5463
- modified: "modified",
5464
- modifiedGreTunnel: "modified_gre_tunnel",
5465
- }),
5466
- ) as unknown as Schema.Schema<UpdateGreTunnelResponse>;
5603
+ })
5604
+ .pipe(
5605
+ Schema.encodeKeys({
5606
+ modified: "modified",
5607
+ modifiedGreTunnel: "modified_gre_tunnel",
5608
+ }),
5609
+ )
5610
+ .pipe(
5611
+ T.ResponsePath("result"),
5612
+ ) as unknown as Schema.Schema<UpdateGreTunnelResponse>;
5467
5613
 
5468
5614
  export type UpdateGreTunnelError = DefaultErrors;
5469
5615
 
@@ -5692,12 +5838,16 @@ export const DeleteGreTunnelResponse =
5692
5838
  Schema.Null,
5693
5839
  ]),
5694
5840
  ),
5695
- }).pipe(
5696
- Schema.encodeKeys({
5697
- deleted: "deleted",
5698
- deletedGreTunnel: "deleted_gre_tunnel",
5699
- }),
5700
- ) as unknown as Schema.Schema<DeleteGreTunnelResponse>;
5841
+ })
5842
+ .pipe(
5843
+ Schema.encodeKeys({
5844
+ deleted: "deleted",
5845
+ deletedGreTunnel: "deleted_gre_tunnel",
5846
+ }),
5847
+ )
5848
+ .pipe(
5849
+ T.ResponsePath("result"),
5850
+ ) as unknown as Schema.Schema<DeleteGreTunnelResponse>;
5701
5851
 
5702
5852
  export type DeleteGreTunnelError = DefaultErrors;
5703
5853
 
@@ -5950,9 +6100,11 @@ export const GetIpsecTunnelResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
5950
6100
  ]),
5951
6101
  ),
5952
6102
  },
5953
- ).pipe(
5954
- Schema.encodeKeys({ ipsecTunnel: "ipsec_tunnel" }),
5955
- ) as unknown as Schema.Schema<GetIpsecTunnelResponse>;
6103
+ )
6104
+ .pipe(Schema.encodeKeys({ ipsecTunnel: "ipsec_tunnel" }))
6105
+ .pipe(
6106
+ T.ResponsePath("result"),
6107
+ ) as unknown as Schema.Schema<GetIpsecTunnelResponse>;
5956
6108
 
5957
6109
  export type GetIpsecTunnelError = DefaultErrors;
5958
6110
 
@@ -6203,9 +6355,11 @@ export const ListIpsecTunnelsResponse =
6203
6355
  Schema.Null,
6204
6356
  ]),
6205
6357
  ),
6206
- }).pipe(
6207
- Schema.encodeKeys({ ipsecTunnels: "ipsec_tunnels" }),
6208
- ) as unknown as Schema.Schema<ListIpsecTunnelsResponse>;
6358
+ })
6359
+ .pipe(Schema.encodeKeys({ ipsecTunnels: "ipsec_tunnels" }))
6360
+ .pipe(
6361
+ T.ResponsePath("result"),
6362
+ ) as unknown as Schema.Schema<ListIpsecTunnelsResponse>;
6209
6363
 
6210
6364
  export type ListIpsecTunnelsError = DefaultErrors;
6211
6365
 
@@ -6511,27 +6665,31 @@ export const CreateIpsecTunnelResponse =
6511
6665
  replayProtection: Schema.optional(
6512
6666
  Schema.Union([Schema.Boolean, Schema.Null]),
6513
6667
  ),
6514
- }).pipe(
6515
- Schema.encodeKeys({
6516
- id: "id",
6517
- cloudflareEndpoint: "cloudflare_endpoint",
6518
- interfaceAddress: "interface_address",
6519
- name: "name",
6520
- allowNullCipher: "allow_null_cipher",
6521
- automaticReturnRouting: "automatic_return_routing",
6522
- bgp: "bgp",
6523
- bgpStatus: "bgp_status",
6524
- createdOn: "created_on",
6525
- customRemoteIdentities: "custom_remote_identities",
6526
- customerEndpoint: "customer_endpoint",
6527
- description: "description",
6528
- healthCheck: "health_check",
6529
- interfaceAddress6: "interface_address6",
6530
- modifiedOn: "modified_on",
6531
- pskMetadata: "psk_metadata",
6532
- replayProtection: "replay_protection",
6533
- }),
6534
- ) as unknown as Schema.Schema<CreateIpsecTunnelResponse>;
6668
+ })
6669
+ .pipe(
6670
+ Schema.encodeKeys({
6671
+ id: "id",
6672
+ cloudflareEndpoint: "cloudflare_endpoint",
6673
+ interfaceAddress: "interface_address",
6674
+ name: "name",
6675
+ allowNullCipher: "allow_null_cipher",
6676
+ automaticReturnRouting: "automatic_return_routing",
6677
+ bgp: "bgp",
6678
+ bgpStatus: "bgp_status",
6679
+ createdOn: "created_on",
6680
+ customRemoteIdentities: "custom_remote_identities",
6681
+ customerEndpoint: "customer_endpoint",
6682
+ description: "description",
6683
+ healthCheck: "health_check",
6684
+ interfaceAddress6: "interface_address6",
6685
+ modifiedOn: "modified_on",
6686
+ pskMetadata: "psk_metadata",
6687
+ replayProtection: "replay_protection",
6688
+ }),
6689
+ )
6690
+ .pipe(
6691
+ T.ResponsePath("result"),
6692
+ ) as unknown as Schema.Schema<CreateIpsecTunnelResponse>;
6535
6693
 
6536
6694
  export type CreateIpsecTunnelError = DefaultErrors;
6537
6695
 
@@ -6871,12 +7029,16 @@ export const UpdateIpsecTunnelResponse =
6871
7029
  Schema.Null,
6872
7030
  ]),
6873
7031
  ),
6874
- }).pipe(
6875
- Schema.encodeKeys({
6876
- modified: "modified",
6877
- modifiedIpsecTunnel: "modified_ipsec_tunnel",
6878
- }),
6879
- ) as unknown as Schema.Schema<UpdateIpsecTunnelResponse>;
7032
+ })
7033
+ .pipe(
7034
+ Schema.encodeKeys({
7035
+ modified: "modified",
7036
+ modifiedIpsecTunnel: "modified_ipsec_tunnel",
7037
+ }),
7038
+ )
7039
+ .pipe(
7040
+ T.ResponsePath("result"),
7041
+ ) as unknown as Schema.Schema<UpdateIpsecTunnelResponse>;
6880
7042
 
6881
7043
  export type UpdateIpsecTunnelError = DefaultErrors;
6882
7044
 
@@ -7127,12 +7289,16 @@ export const DeleteIpsecTunnelResponse =
7127
7289
  Schema.Null,
7128
7290
  ]),
7129
7291
  ),
7130
- }).pipe(
7131
- Schema.encodeKeys({
7132
- deleted: "deleted",
7133
- deletedIpsecTunnel: "deleted_ipsec_tunnel",
7134
- }),
7135
- ) as unknown as Schema.Schema<DeleteIpsecTunnelResponse>;
7292
+ })
7293
+ .pipe(
7294
+ Schema.encodeKeys({
7295
+ deleted: "deleted",
7296
+ deletedIpsecTunnel: "deleted_ipsec_tunnel",
7297
+ }),
7298
+ )
7299
+ .pipe(
7300
+ T.ResponsePath("result"),
7301
+ ) as unknown as Schema.Schema<DeleteIpsecTunnelResponse>;
7136
7302
 
7137
7303
  export type DeleteIpsecTunnelError = DefaultErrors;
7138
7304
 
@@ -7335,7 +7501,7 @@ export const GetPcapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
7335
7501
  type: "type",
7336
7502
  }),
7337
7503
  ),
7338
- ]) as unknown as Schema.Schema<GetPcapResponse>;
7504
+ ]).pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetPcapResponse>;
7339
7505
 
7340
7506
  export type GetPcapError = DefaultErrors;
7341
7507
 
@@ -7361,197 +7527,268 @@ export const ListPcapsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7361
7527
  T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps" }),
7362
7528
  ) as unknown as Schema.Schema<ListPcapsRequest>;
7363
7529
 
7364
- export type ListPcapsResponse = (
7365
- | {
7366
- id?: string | null;
7367
- filterV1?: {
7368
- destinationAddress?: string | null;
7369
- destinationPort?: number | null;
7370
- protocol?: number | null;
7371
- sourceAddress?: string | null;
7372
- sourcePort?: number | null;
7373
- } | null;
7374
- offsetTime?: string | null;
7375
- status?:
7376
- | "unknown"
7377
- | "success"
7378
- | "pending"
7379
- | "running"
7380
- | "conversion_pending"
7381
- | "conversion_running"
7382
- | "complete"
7383
- | "failed"
7384
- | null;
7385
- submitted?: string | null;
7386
- system?: "magic-transit" | null;
7387
- timeLimit?: number | null;
7388
- type?: "simple" | "full" | null;
7389
- }
7390
- | {
7391
- id?: string | null;
7392
- byteLimit?: number | null;
7393
- coloName?: string | null;
7394
- destinationConf?: string | null;
7395
- errorMessage?: string | null;
7396
- filterV1?: unknown | null;
7397
- packetsCaptured?: number | null;
7398
- status?:
7399
- | "unknown"
7400
- | "success"
7401
- | "pending"
7402
- | "running"
7403
- | "conversion_pending"
7404
- | "conversion_running"
7405
- | "complete"
7406
- | "failed"
7407
- | null;
7408
- stopRequested?: string | null;
7409
- submitted?: string | null;
7410
- system?: "magic-transit" | null;
7411
- timeLimit?: number | null;
7412
- type?: "simple" | "full" | null;
7413
- }
7414
- )[];
7530
+ export interface ListPcapsResponse {
7531
+ result: (
7532
+ | {
7533
+ id?: string | null;
7534
+ filterV1?: {
7535
+ destinationAddress?: string | null;
7536
+ destinationPort?: number | null;
7537
+ protocol?: number | null;
7538
+ sourceAddress?: string | null;
7539
+ sourcePort?: number | null;
7540
+ } | null;
7541
+ offsetTime?: string | null;
7542
+ status?:
7543
+ | "unknown"
7544
+ | "success"
7545
+ | "pending"
7546
+ | "running"
7547
+ | "conversion_pending"
7548
+ | "conversion_running"
7549
+ | "complete"
7550
+ | "failed"
7551
+ | null;
7552
+ submitted?: string | null;
7553
+ system?: "magic-transit" | null;
7554
+ timeLimit?: number | null;
7555
+ type?: "simple" | "full" | null;
7556
+ }
7557
+ | {
7558
+ id?: string | null;
7559
+ byteLimit?: number | null;
7560
+ coloName?: string | null;
7561
+ destinationConf?: string | null;
7562
+ errorMessage?: string | null;
7563
+ filterV1?: unknown | null;
7564
+ packetsCaptured?: number | null;
7565
+ status?:
7566
+ | "unknown"
7567
+ | "success"
7568
+ | "pending"
7569
+ | "running"
7570
+ | "conversion_pending"
7571
+ | "conversion_running"
7572
+ | "complete"
7573
+ | "failed"
7574
+ | null;
7575
+ stopRequested?: string | null;
7576
+ submitted?: string | null;
7577
+ system?: "magic-transit" | null;
7578
+ timeLimit?: number | null;
7579
+ type?: "simple" | "full" | null;
7580
+ }
7581
+ )[];
7582
+ }
7415
7583
 
7416
- export const ListPcapsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
7417
- Schema.Union([
7418
- Schema.Struct({
7419
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7420
- filterV1: Schema.optional(
7421
- Schema.Union([
7422
- Schema.Struct({
7423
- destinationAddress: Schema.optional(
7424
- Schema.Union([Schema.String, Schema.Null]),
7425
- ),
7426
- destinationPort: Schema.optional(
7427
- Schema.Union([Schema.Number, Schema.Null]),
7428
- ),
7429
- protocol: Schema.optional(
7430
- Schema.Union([Schema.Number, Schema.Null]),
7431
- ),
7432
- sourceAddress: Schema.optional(
7433
- Schema.Union([Schema.String, Schema.Null]),
7434
- ),
7435
- sourcePort: Schema.optional(
7436
- Schema.Union([Schema.Number, Schema.Null]),
7584
+ export const ListPcapsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7585
+ result: Schema.Array(
7586
+ Schema.Union([
7587
+ Schema.Struct({
7588
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7589
+ filterV1: Schema.optional(
7590
+ Schema.Union([
7591
+ Schema.Struct({
7592
+ destinationAddress: Schema.optional(
7593
+ Schema.Union([Schema.String, Schema.Null]),
7594
+ ),
7595
+ destinationPort: Schema.optional(
7596
+ Schema.Union([Schema.Number, Schema.Null]),
7597
+ ),
7598
+ protocol: Schema.optional(
7599
+ Schema.Union([Schema.Number, Schema.Null]),
7600
+ ),
7601
+ sourceAddress: Schema.optional(
7602
+ Schema.Union([Schema.String, Schema.Null]),
7603
+ ),
7604
+ sourcePort: Schema.optional(
7605
+ Schema.Union([Schema.Number, Schema.Null]),
7606
+ ),
7607
+ }).pipe(
7608
+ Schema.encodeKeys({
7609
+ destinationAddress: "destination_address",
7610
+ destinationPort: "destination_port",
7611
+ protocol: "protocol",
7612
+ sourceAddress: "source_address",
7613
+ sourcePort: "source_port",
7614
+ }),
7437
7615
  ),
7438
- }).pipe(
7439
- Schema.encodeKeys({
7440
- destinationAddress: "destination_address",
7441
- destinationPort: "destination_port",
7442
- protocol: "protocol",
7443
- sourceAddress: "source_address",
7444
- sourcePort: "source_port",
7445
- }),
7446
- ),
7447
- Schema.Null,
7448
- ]),
7449
- ),
7450
- offsetTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7451
- status: Schema.optional(
7452
- Schema.Union([
7453
- Schema.Literals([
7454
- "unknown",
7455
- "success",
7456
- "pending",
7457
- "running",
7458
- "conversion_pending",
7459
- "conversion_running",
7460
- "complete",
7461
- "failed",
7616
+ Schema.Null,
7462
7617
  ]),
7463
- Schema.Null,
7464
- ]),
7465
- ),
7466
- submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7467
- system: Schema.optional(
7468
- Schema.Union([Schema.Literal("magic-transit"), Schema.Null]),
7469
- ),
7470
- timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7471
- type: Schema.optional(
7472
- Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null]),
7473
- ),
7474
- }).pipe(
7475
- Schema.encodeKeys({
7476
- id: "id",
7477
- filterV1: "filter_v1",
7478
- offsetTime: "offset_time",
7479
- status: "status",
7480
- submitted: "submitted",
7481
- system: "system",
7482
- timeLimit: "time_limit",
7483
- type: "type",
7484
- }),
7485
- ),
7486
- Schema.Struct({
7487
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7488
- byteLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7489
- coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7490
- destinationConf: Schema.optional(
7491
- Schema.Union([Schema.String, Schema.Null]),
7492
- ),
7493
- errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7494
- filterV1: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
7495
- packetsCaptured: Schema.optional(
7496
- Schema.Union([Schema.Number, Schema.Null]),
7497
- ),
7498
- status: Schema.optional(
7499
- Schema.Union([
7500
- Schema.Literals([
7501
- "unknown",
7502
- "success",
7503
- "pending",
7504
- "running",
7505
- "conversion_pending",
7506
- "conversion_running",
7507
- "complete",
7508
- "failed",
7618
+ ),
7619
+ offsetTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7620
+ status: Schema.optional(
7621
+ Schema.Union([
7622
+ Schema.Literals([
7623
+ "unknown",
7624
+ "success",
7625
+ "pending",
7626
+ "running",
7627
+ "conversion_pending",
7628
+ "conversion_running",
7629
+ "complete",
7630
+ "failed",
7631
+ ]),
7632
+ Schema.Null,
7509
7633
  ]),
7510
- Schema.Null,
7511
- ]),
7512
- ),
7513
- stopRequested: Schema.optional(
7514
- Schema.Union([Schema.String, Schema.Null]),
7515
- ),
7516
- submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7517
- system: Schema.optional(
7518
- Schema.Union([Schema.Literal("magic-transit"), Schema.Null]),
7519
- ),
7520
- timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7521
- type: Schema.optional(
7522
- Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null]),
7634
+ ),
7635
+ submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7636
+ system: Schema.optional(
7637
+ Schema.Union([Schema.Literal("magic-transit"), Schema.Null]),
7638
+ ),
7639
+ timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7640
+ type: Schema.optional(
7641
+ Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null]),
7642
+ ),
7643
+ }).pipe(
7644
+ Schema.encodeKeys({
7645
+ id: "id",
7646
+ filterV1: "filter_v1",
7647
+ offsetTime: "offset_time",
7648
+ status: "status",
7649
+ submitted: "submitted",
7650
+ system: "system",
7651
+ timeLimit: "time_limit",
7652
+ type: "type",
7653
+ }),
7523
7654
  ),
7524
- }).pipe(
7525
- Schema.encodeKeys({
7526
- id: "id",
7527
- byteLimit: "byte_limit",
7528
- coloName: "colo_name",
7529
- destinationConf: "destination_conf",
7530
- errorMessage: "error_message",
7531
- filterV1: "filter_v1",
7532
- packetsCaptured: "packets_captured",
7533
- status: "status",
7534
- stopRequested: "stop_requested",
7535
- submitted: "submitted",
7536
- system: "system",
7537
- timeLimit: "time_limit",
7538
- type: "type",
7539
- }),
7540
- ),
7541
- ]),
7542
- ) as unknown as Schema.Schema<ListPcapsResponse>;
7655
+ Schema.Struct({
7656
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7657
+ byteLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7658
+ coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7659
+ destinationConf: Schema.optional(
7660
+ Schema.Union([Schema.String, Schema.Null]),
7661
+ ),
7662
+ errorMessage: Schema.optional(
7663
+ Schema.Union([Schema.String, Schema.Null]),
7664
+ ),
7665
+ filterV1: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
7666
+ packetsCaptured: Schema.optional(
7667
+ Schema.Union([Schema.Number, Schema.Null]),
7668
+ ),
7669
+ status: Schema.optional(
7670
+ Schema.Union([
7671
+ Schema.Literals([
7672
+ "unknown",
7673
+ "success",
7674
+ "pending",
7675
+ "running",
7676
+ "conversion_pending",
7677
+ "conversion_running",
7678
+ "complete",
7679
+ "failed",
7680
+ ]),
7681
+ Schema.Null,
7682
+ ]),
7683
+ ),
7684
+ stopRequested: Schema.optional(
7685
+ Schema.Union([Schema.String, Schema.Null]),
7686
+ ),
7687
+ submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7688
+ system: Schema.optional(
7689
+ Schema.Union([Schema.Literal("magic-transit"), Schema.Null]),
7690
+ ),
7691
+ timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
7692
+ type: Schema.optional(
7693
+ Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null]),
7694
+ ),
7695
+ }).pipe(
7696
+ Schema.encodeKeys({
7697
+ id: "id",
7698
+ byteLimit: "byte_limit",
7699
+ coloName: "colo_name",
7700
+ destinationConf: "destination_conf",
7701
+ errorMessage: "error_message",
7702
+ filterV1: "filter_v1",
7703
+ packetsCaptured: "packets_captured",
7704
+ status: "status",
7705
+ stopRequested: "stop_requested",
7706
+ submitted: "submitted",
7707
+ system: "system",
7708
+ timeLimit: "time_limit",
7709
+ type: "type",
7710
+ }),
7711
+ ),
7712
+ ]),
7713
+ ),
7714
+ }) as unknown as Schema.Schema<ListPcapsResponse>;
7543
7715
 
7544
7716
  export type ListPcapsError = DefaultErrors;
7545
7717
 
7546
- export const listPcaps: API.OperationMethod<
7718
+ export const listPcaps: API.PaginatedOperationMethod<
7547
7719
  ListPcapsRequest,
7548
7720
  ListPcapsResponse,
7549
7721
  ListPcapsError,
7550
7722
  Credentials | HttpClient.HttpClient
7551
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
7723
+ > & {
7724
+ pages: (
7725
+ input: ListPcapsRequest,
7726
+ ) => stream.Stream<
7727
+ ListPcapsResponse,
7728
+ ListPcapsError,
7729
+ Credentials | HttpClient.HttpClient
7730
+ >;
7731
+ items: (input: ListPcapsRequest) => stream.Stream<
7732
+ | {
7733
+ id?: string | null;
7734
+ filterV1?: {
7735
+ destinationAddress?: string | null;
7736
+ destinationPort?: number | null;
7737
+ protocol?: number | null;
7738
+ sourceAddress?: string | null;
7739
+ sourcePort?: number | null;
7740
+ } | null;
7741
+ offsetTime?: string | null;
7742
+ status?:
7743
+ | "unknown"
7744
+ | "success"
7745
+ | "pending"
7746
+ | "running"
7747
+ | "conversion_pending"
7748
+ | "conversion_running"
7749
+ | "complete"
7750
+ | "failed"
7751
+ | null;
7752
+ submitted?: string | null;
7753
+ system?: "magic-transit" | null;
7754
+ timeLimit?: number | null;
7755
+ type?: "simple" | "full" | null;
7756
+ }
7757
+ | {
7758
+ id?: string | null;
7759
+ byteLimit?: number | null;
7760
+ coloName?: string | null;
7761
+ destinationConf?: string | null;
7762
+ errorMessage?: string | null;
7763
+ filterV1?: unknown | null;
7764
+ packetsCaptured?: number | null;
7765
+ status?:
7766
+ | "unknown"
7767
+ | "success"
7768
+ | "pending"
7769
+ | "running"
7770
+ | "conversion_pending"
7771
+ | "conversion_running"
7772
+ | "complete"
7773
+ | "failed"
7774
+ | null;
7775
+ stopRequested?: string | null;
7776
+ submitted?: string | null;
7777
+ system?: "magic-transit" | null;
7778
+ timeLimit?: number | null;
7779
+ type?: "simple" | "full" | null;
7780
+ },
7781
+ ListPcapsError,
7782
+ Credentials | HttpClient.HttpClient
7783
+ >;
7784
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
7552
7785
  input: ListPcapsRequest,
7553
7786
  output: ListPcapsResponse,
7554
7787
  errors: [],
7788
+ pagination: {
7789
+ mode: "single",
7790
+ items: "result",
7791
+ } as const,
7555
7792
  }));
7556
7793
 
7557
7794
  export interface CreatePcapRequest {
@@ -7784,7 +8021,9 @@ export const CreatePcapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
7784
8021
  type: "type",
7785
8022
  }),
7786
8023
  ),
7787
- ]) as unknown as Schema.Schema<CreatePcapResponse>;
8024
+ ]).pipe(
8025
+ T.ResponsePath("result"),
8026
+ ) as unknown as Schema.Schema<CreatePcapResponse>;
7788
8027
 
7789
8028
  export type CreatePcapError = DefaultErrors;
7790
8029
 
@@ -7886,47 +8125,75 @@ export const GetPcapOwnershipRequest =
7886
8125
  T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps/ownership" }),
7887
8126
  ) as unknown as Schema.Schema<GetPcapOwnershipRequest>;
7888
8127
 
7889
- export type GetPcapOwnershipResponse = {
7890
- id: string;
7891
- destinationConf: string;
7892
- filename: string;
7893
- status: "pending" | "success" | "failed";
7894
- submitted: string;
7895
- validated?: string | null;
7896
- }[];
8128
+ export interface GetPcapOwnershipResponse {
8129
+ result: {
8130
+ id: string;
8131
+ destinationConf: string;
8132
+ filename: string;
8133
+ status: "pending" | "success" | "failed";
8134
+ submitted: string;
8135
+ validated?: string | null;
8136
+ }[];
8137
+ }
7897
8138
 
7898
8139
  export const GetPcapOwnershipResponse =
7899
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
7900
- Schema.Struct({
7901
- id: Schema.String,
7902
- destinationConf: Schema.String,
7903
- filename: Schema.String,
7904
- status: Schema.Literals(["pending", "success", "failed"]),
7905
- submitted: Schema.String,
7906
- validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7907
- }).pipe(
7908
- Schema.encodeKeys({
7909
- id: "id",
7910
- destinationConf: "destination_conf",
7911
- filename: "filename",
7912
- status: "status",
7913
- submitted: "submitted",
7914
- validated: "validated",
7915
- }),
8140
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8141
+ result: Schema.Array(
8142
+ Schema.Struct({
8143
+ id: Schema.String,
8144
+ destinationConf: Schema.String,
8145
+ filename: Schema.String,
8146
+ status: Schema.Literals(["pending", "success", "failed"]),
8147
+ submitted: Schema.String,
8148
+ validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8149
+ }).pipe(
8150
+ Schema.encodeKeys({
8151
+ id: "id",
8152
+ destinationConf: "destination_conf",
8153
+ filename: "filename",
8154
+ status: "status",
8155
+ submitted: "submitted",
8156
+ validated: "validated",
8157
+ }),
8158
+ ),
7916
8159
  ),
7917
- ) as unknown as Schema.Schema<GetPcapOwnershipResponse>;
8160
+ }) as unknown as Schema.Schema<GetPcapOwnershipResponse>;
7918
8161
 
7919
8162
  export type GetPcapOwnershipError = DefaultErrors;
7920
8163
 
7921
- export const getPcapOwnership: API.OperationMethod<
8164
+ export const getPcapOwnership: API.PaginatedOperationMethod<
7922
8165
  GetPcapOwnershipRequest,
7923
8166
  GetPcapOwnershipResponse,
7924
8167
  GetPcapOwnershipError,
7925
8168
  Credentials | HttpClient.HttpClient
7926
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
8169
+ > & {
8170
+ pages: (
8171
+ input: GetPcapOwnershipRequest,
8172
+ ) => stream.Stream<
8173
+ GetPcapOwnershipResponse,
8174
+ GetPcapOwnershipError,
8175
+ Credentials | HttpClient.HttpClient
8176
+ >;
8177
+ items: (input: GetPcapOwnershipRequest) => stream.Stream<
8178
+ {
8179
+ id: string;
8180
+ destinationConf: string;
8181
+ filename: string;
8182
+ status: "pending" | "success" | "failed";
8183
+ submitted: string;
8184
+ validated?: string | null;
8185
+ },
8186
+ GetPcapOwnershipError,
8187
+ Credentials | HttpClient.HttpClient
8188
+ >;
8189
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
7927
8190
  input: GetPcapOwnershipRequest,
7928
8191
  output: GetPcapOwnershipResponse,
7929
8192
  errors: [],
8193
+ pagination: {
8194
+ mode: "single",
8195
+ items: "result",
8196
+ } as const,
7930
8197
  }));
7931
8198
 
7932
8199
  export interface CreatePcapOwnershipRequest {
@@ -7968,16 +8235,20 @@ export const CreatePcapOwnershipResponse =
7968
8235
  status: Schema.Literals(["pending", "success", "failed"]),
7969
8236
  submitted: Schema.String,
7970
8237
  validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7971
- }).pipe(
7972
- Schema.encodeKeys({
7973
- id: "id",
7974
- destinationConf: "destination_conf",
7975
- filename: "filename",
7976
- status: "status",
7977
- submitted: "submitted",
7978
- validated: "validated",
7979
- }),
7980
- ) as unknown as Schema.Schema<CreatePcapOwnershipResponse>;
8238
+ })
8239
+ .pipe(
8240
+ Schema.encodeKeys({
8241
+ id: "id",
8242
+ destinationConf: "destination_conf",
8243
+ filename: "filename",
8244
+ status: "status",
8245
+ submitted: "submitted",
8246
+ validated: "validated",
8247
+ }),
8248
+ )
8249
+ .pipe(
8250
+ T.ResponsePath("result"),
8251
+ ) as unknown as Schema.Schema<CreatePcapOwnershipResponse>;
7981
8252
 
7982
8253
  export type CreatePcapOwnershipError = DefaultErrors;
7983
8254
 
@@ -8075,16 +8346,20 @@ export const ValidatePcapOwnershipResponse =
8075
8346
  status: Schema.Literals(["pending", "success", "failed"]),
8076
8347
  submitted: Schema.String,
8077
8348
  validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8078
- }).pipe(
8079
- Schema.encodeKeys({
8080
- id: "id",
8081
- destinationConf: "destination_conf",
8082
- filename: "filename",
8083
- status: "status",
8084
- submitted: "submitted",
8085
- validated: "validated",
8086
- }),
8087
- ) as unknown as Schema.Schema<ValidatePcapOwnershipResponse>;
8349
+ })
8350
+ .pipe(
8351
+ Schema.encodeKeys({
8352
+ id: "id",
8353
+ destinationConf: "destination_conf",
8354
+ filename: "filename",
8355
+ status: "status",
8356
+ submitted: "submitted",
8357
+ validated: "validated",
8358
+ }),
8359
+ )
8360
+ .pipe(
8361
+ T.ResponsePath("result"),
8362
+ ) as unknown as Schema.Schema<ValidatePcapOwnershipResponse>;
8088
8363
 
8089
8364
  export type ValidatePcapOwnershipError = DefaultErrors;
8090
8365
 
@@ -8214,12 +8489,16 @@ export const BulkPutCfInterconnectsResponse =
8214
8489
  Schema.Null,
8215
8490
  ]),
8216
8491
  ),
8217
- }).pipe(
8218
- Schema.encodeKeys({
8219
- modified: "modified",
8220
- modifiedInterconnects: "modified_interconnects",
8221
- }),
8222
- ) as unknown as Schema.Schema<BulkPutCfInterconnectsResponse>;
8492
+ })
8493
+ .pipe(
8494
+ Schema.encodeKeys({
8495
+ modified: "modified",
8496
+ modifiedInterconnects: "modified_interconnects",
8497
+ }),
8498
+ )
8499
+ .pipe(
8500
+ T.ResponsePath("result"),
8501
+ ) as unknown as Schema.Schema<BulkPutCfInterconnectsResponse>;
8223
8502
 
8224
8503
  export type BulkPutCfInterconnectsError = DefaultErrors;
8225
8504
 
@@ -8453,12 +8732,16 @@ export const BulkPutGreTunnelsResponse =
8453
8732
  Schema.Null,
8454
8733
  ]),
8455
8734
  ),
8456
- }).pipe(
8457
- Schema.encodeKeys({
8458
- modified: "modified",
8459
- modifiedGreTunnels: "modified_gre_tunnels",
8460
- }),
8461
- ) as unknown as Schema.Schema<BulkPutGreTunnelsResponse>;
8735
+ })
8736
+ .pipe(
8737
+ Schema.encodeKeys({
8738
+ modified: "modified",
8739
+ modifiedGreTunnels: "modified_gre_tunnels",
8740
+ }),
8741
+ )
8742
+ .pipe(
8743
+ T.ResponsePath("result"),
8744
+ ) as unknown as Schema.Schema<BulkPutGreTunnelsResponse>;
8462
8745
 
8463
8746
  export type BulkPutGreTunnelsError = DefaultErrors;
8464
8747
 
@@ -8718,12 +9001,16 @@ export const BulkPutIpsecTunnelsResponse =
8718
9001
  Schema.Null,
8719
9002
  ]),
8720
9003
  ),
8721
- }).pipe(
8722
- Schema.encodeKeys({
8723
- modified: "modified",
8724
- modifiedIpsecTunnels: "modified_ipsec_tunnels",
8725
- }),
8726
- ) as unknown as Schema.Schema<BulkPutIpsecTunnelsResponse>;
9004
+ })
9005
+ .pipe(
9006
+ Schema.encodeKeys({
9007
+ modified: "modified",
9008
+ modifiedIpsecTunnels: "modified_ipsec_tunnels",
9009
+ }),
9010
+ )
9011
+ .pipe(
9012
+ T.ResponsePath("result"),
9013
+ ) as unknown as Schema.Schema<BulkPutIpsecTunnelsResponse>;
8727
9014
 
8728
9015
  export type BulkPutIpsecTunnelsError = DefaultErrors;
8729
9016
 
@@ -8829,12 +9116,16 @@ export const BulkPutRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8829
9116
  Schema.Null,
8830
9117
  ]),
8831
9118
  ),
8832
- }).pipe(
8833
- Schema.encodeKeys({
8834
- modified: "modified",
8835
- modifiedRoutes: "modified_routes",
8836
- }),
8837
- ) as unknown as Schema.Schema<BulkPutRoutesResponse>;
9119
+ })
9120
+ .pipe(
9121
+ Schema.encodeKeys({
9122
+ modified: "modified",
9123
+ modifiedRoutes: "modified_routes",
9124
+ }),
9125
+ )
9126
+ .pipe(
9127
+ T.ResponsePath("result"),
9128
+ ) as unknown as Schema.Schema<BulkPutRoutesResponse>;
8838
9129
 
8839
9130
  export type BulkPutRoutesError = DefaultErrors;
8840
9131
 
@@ -8914,7 +9205,7 @@ export const GetRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8914
9205
  Schema.Null,
8915
9206
  ]),
8916
9207
  ),
8917
- }) as unknown as Schema.Schema<GetRouteResponse>;
9208
+ }).pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetRouteResponse>;
8918
9209
 
8919
9210
  export type GetRouteError = DefaultErrors;
8920
9211
 
@@ -8993,7 +9284,9 @@ export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8993
9284
  Schema.Null,
8994
9285
  ]),
8995
9286
  ),
8996
- }) as unknown as Schema.Schema<ListRoutesResponse>;
9287
+ }).pipe(
9288
+ T.ResponsePath("result"),
9289
+ ) as unknown as Schema.Schema<ListRoutesResponse>;
8997
9290
 
8998
9291
  export type ListRoutesError = DefaultErrors;
8999
9292
 
@@ -9095,19 +9388,23 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9095
9388
  ]),
9096
9389
  ),
9097
9390
  weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9098
- }).pipe(
9099
- Schema.encodeKeys({
9100
- id: "id",
9101
- nexthop: "nexthop",
9102
- prefix: "prefix",
9103
- priority: "priority",
9104
- createdOn: "created_on",
9105
- description: "description",
9106
- modifiedOn: "modified_on",
9107
- scope: "scope",
9108
- weight: "weight",
9109
- }),
9110
- ) as unknown as Schema.Schema<CreateRouteResponse>;
9391
+ })
9392
+ .pipe(
9393
+ Schema.encodeKeys({
9394
+ id: "id",
9395
+ nexthop: "nexthop",
9396
+ prefix: "prefix",
9397
+ priority: "priority",
9398
+ createdOn: "created_on",
9399
+ description: "description",
9400
+ modifiedOn: "modified_on",
9401
+ scope: "scope",
9402
+ weight: "weight",
9403
+ }),
9404
+ )
9405
+ .pipe(
9406
+ T.ResponsePath("result"),
9407
+ ) as unknown as Schema.Schema<CreateRouteResponse>;
9111
9408
 
9112
9409
  export type CreateRouteError = DefaultErrors;
9113
9410
 
@@ -9213,9 +9510,16 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9213
9510
  Schema.Null,
9214
9511
  ]),
9215
9512
  ),
9216
- }).pipe(
9217
- Schema.encodeKeys({ modified: "modified", modifiedRoute: "modified_route" }),
9218
- ) as unknown as Schema.Schema<UpdateRouteResponse>;
9513
+ })
9514
+ .pipe(
9515
+ Schema.encodeKeys({
9516
+ modified: "modified",
9517
+ modifiedRoute: "modified_route",
9518
+ }),
9519
+ )
9520
+ .pipe(
9521
+ T.ResponsePath("result"),
9522
+ ) as unknown as Schema.Schema<UpdateRouteResponse>;
9219
9523
 
9220
9524
  export type UpdateRouteError = DefaultErrors;
9221
9525
 
@@ -9293,9 +9597,13 @@ export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9293
9597
  Schema.Null,
9294
9598
  ]),
9295
9599
  ),
9296
- }).pipe(
9297
- Schema.encodeKeys({ deleted: "deleted", deletedRoute: "deleted_route" }),
9298
- ) as unknown as Schema.Schema<DeleteRouteResponse>;
9600
+ })
9601
+ .pipe(
9602
+ Schema.encodeKeys({ deleted: "deleted", deletedRoute: "deleted_route" }),
9603
+ )
9604
+ .pipe(
9605
+ T.ResponsePath("result"),
9606
+ ) as unknown as Schema.Schema<DeleteRouteResponse>;
9299
9607
 
9300
9608
  export type DeleteRouteError = DefaultErrors;
9301
9609
 
@@ -9376,9 +9684,13 @@ export const EmptyRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9376
9684
  Schema.Null,
9377
9685
  ]),
9378
9686
  ),
9379
- }).pipe(
9380
- Schema.encodeKeys({ deleted: "deleted", deletedRoutes: "deleted_routes" }),
9381
- ) as unknown as Schema.Schema<EmptyRouteResponse>;
9687
+ })
9688
+ .pipe(
9689
+ Schema.encodeKeys({ deleted: "deleted", deletedRoutes: "deleted_routes" }),
9690
+ )
9691
+ .pipe(
9692
+ T.ResponsePath("result"),
9693
+ ) as unknown as Schema.Schema<EmptyRouteResponse>;
9382
9694
 
9383
9695
  export type EmptyRouteError = DefaultErrors;
9384
9696
 
@@ -9452,17 +9764,19 @@ export const GetSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9452
9764
  secondaryConnectorId: Schema.optional(
9453
9765
  Schema.Union([Schema.String, Schema.Null]),
9454
9766
  ),
9455
- }).pipe(
9456
- Schema.encodeKeys({
9457
- id: "id",
9458
- connectorId: "connector_id",
9459
- description: "description",
9460
- haMode: "ha_mode",
9461
- location: "location",
9462
- name: "name",
9463
- secondaryConnectorId: "secondary_connector_id",
9464
- }),
9465
- ) as unknown as Schema.Schema<GetSiteResponse>;
9767
+ })
9768
+ .pipe(
9769
+ Schema.encodeKeys({
9770
+ id: "id",
9771
+ connectorId: "connector_id",
9772
+ description: "description",
9773
+ haMode: "ha_mode",
9774
+ location: "location",
9775
+ name: "name",
9776
+ secondaryConnectorId: "secondary_connector_id",
9777
+ }),
9778
+ )
9779
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetSiteResponse>;
9466
9780
 
9467
9781
  export type GetSiteError = DefaultErrors;
9468
9782
 
@@ -9491,59 +9805,88 @@ export const ListSitesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9491
9805
  T.Http({ method: "GET", path: "/accounts/{account_id}/magic/sites" }),
9492
9806
  ) as unknown as Schema.Schema<ListSitesRequest>;
9493
9807
 
9494
- export type ListSitesResponse = {
9495
- id?: string | null;
9496
- connectorId?: string | null;
9497
- description?: string | null;
9498
- haMode?: boolean | null;
9499
- location?: { lat?: string | null; lon?: string | null } | null;
9500
- name?: string | null;
9501
- secondaryConnectorId?: string | null;
9502
- }[];
9808
+ export interface ListSitesResponse {
9809
+ result: {
9810
+ id?: string | null;
9811
+ connectorId?: string | null;
9812
+ description?: string | null;
9813
+ haMode?: boolean | null;
9814
+ location?: { lat?: string | null; lon?: string | null } | null;
9815
+ name?: string | null;
9816
+ secondaryConnectorId?: string | null;
9817
+ }[];
9818
+ }
9503
9819
 
9504
- export const ListSitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
9505
- Schema.Struct({
9506
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9507
- connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9508
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9509
- haMode: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
9510
- location: Schema.optional(
9511
- Schema.Union([
9512
- Schema.Struct({
9513
- lat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9514
- lon: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9515
- }),
9516
- Schema.Null,
9517
- ]),
9518
- ),
9519
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9520
- secondaryConnectorId: Schema.optional(
9521
- Schema.Union([Schema.String, Schema.Null]),
9820
+ export const ListSitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9821
+ result: Schema.Array(
9822
+ Schema.Struct({
9823
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9824
+ connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9825
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9826
+ haMode: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
9827
+ location: Schema.optional(
9828
+ Schema.Union([
9829
+ Schema.Struct({
9830
+ lat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9831
+ lon: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9832
+ }),
9833
+ Schema.Null,
9834
+ ]),
9835
+ ),
9836
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9837
+ secondaryConnectorId: Schema.optional(
9838
+ Schema.Union([Schema.String, Schema.Null]),
9839
+ ),
9840
+ }).pipe(
9841
+ Schema.encodeKeys({
9842
+ id: "id",
9843
+ connectorId: "connector_id",
9844
+ description: "description",
9845
+ haMode: "ha_mode",
9846
+ location: "location",
9847
+ name: "name",
9848
+ secondaryConnectorId: "secondary_connector_id",
9849
+ }),
9522
9850
  ),
9523
- }).pipe(
9524
- Schema.encodeKeys({
9525
- id: "id",
9526
- connectorId: "connector_id",
9527
- description: "description",
9528
- haMode: "ha_mode",
9529
- location: "location",
9530
- name: "name",
9531
- secondaryConnectorId: "secondary_connector_id",
9532
- }),
9533
9851
  ),
9534
- ) as unknown as Schema.Schema<ListSitesResponse>;
9852
+ }) as unknown as Schema.Schema<ListSitesResponse>;
9535
9853
 
9536
9854
  export type ListSitesError = DefaultErrors;
9537
9855
 
9538
- export const listSites: API.OperationMethod<
9856
+ export const listSites: API.PaginatedOperationMethod<
9539
9857
  ListSitesRequest,
9540
9858
  ListSitesResponse,
9541
9859
  ListSitesError,
9542
9860
  Credentials | HttpClient.HttpClient
9543
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
9861
+ > & {
9862
+ pages: (
9863
+ input: ListSitesRequest,
9864
+ ) => stream.Stream<
9865
+ ListSitesResponse,
9866
+ ListSitesError,
9867
+ Credentials | HttpClient.HttpClient
9868
+ >;
9869
+ items: (input: ListSitesRequest) => stream.Stream<
9870
+ {
9871
+ id?: string | null;
9872
+ connectorId?: string | null;
9873
+ description?: string | null;
9874
+ haMode?: boolean | null;
9875
+ location?: { lat?: string | null; lon?: string | null } | null;
9876
+ name?: string | null;
9877
+ secondaryConnectorId?: string | null;
9878
+ },
9879
+ ListSitesError,
9880
+ Credentials | HttpClient.HttpClient
9881
+ >;
9882
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9544
9883
  input: ListSitesRequest,
9545
9884
  output: ListSitesResponse,
9546
9885
  errors: [],
9886
+ pagination: {
9887
+ mode: "single",
9888
+ items: "result",
9889
+ } as const,
9547
9890
  }));
9548
9891
 
9549
9892
  export interface CreateSiteRequest {
@@ -9622,17 +9965,21 @@ export const CreateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9622
9965
  secondaryConnectorId: Schema.optional(
9623
9966
  Schema.Union([Schema.String, Schema.Null]),
9624
9967
  ),
9625
- }).pipe(
9626
- Schema.encodeKeys({
9627
- id: "id",
9628
- connectorId: "connector_id",
9629
- description: "description",
9630
- haMode: "ha_mode",
9631
- location: "location",
9632
- name: "name",
9633
- secondaryConnectorId: "secondary_connector_id",
9634
- }),
9635
- ) as unknown as Schema.Schema<CreateSiteResponse>;
9968
+ })
9969
+ .pipe(
9970
+ Schema.encodeKeys({
9971
+ id: "id",
9972
+ connectorId: "connector_id",
9973
+ description: "description",
9974
+ haMode: "ha_mode",
9975
+ location: "location",
9976
+ name: "name",
9977
+ secondaryConnectorId: "secondary_connector_id",
9978
+ }),
9979
+ )
9980
+ .pipe(
9981
+ T.ResponsePath("result"),
9982
+ ) as unknown as Schema.Schema<CreateSiteResponse>;
9636
9983
 
9637
9984
  export type CreateSiteError = DefaultErrors;
9638
9985
 
@@ -9724,17 +10071,21 @@ export const UpdateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9724
10071
  secondaryConnectorId: Schema.optional(
9725
10072
  Schema.Union([Schema.String, Schema.Null]),
9726
10073
  ),
9727
- }).pipe(
9728
- Schema.encodeKeys({
9729
- id: "id",
9730
- connectorId: "connector_id",
9731
- description: "description",
9732
- haMode: "ha_mode",
9733
- location: "location",
9734
- name: "name",
9735
- secondaryConnectorId: "secondary_connector_id",
9736
- }),
9737
- ) as unknown as Schema.Schema<UpdateSiteResponse>;
10074
+ })
10075
+ .pipe(
10076
+ Schema.encodeKeys({
10077
+ id: "id",
10078
+ connectorId: "connector_id",
10079
+ description: "description",
10080
+ haMode: "ha_mode",
10081
+ location: "location",
10082
+ name: "name",
10083
+ secondaryConnectorId: "secondary_connector_id",
10084
+ }),
10085
+ )
10086
+ .pipe(
10087
+ T.ResponsePath("result"),
10088
+ ) as unknown as Schema.Schema<UpdateSiteResponse>;
9738
10089
 
9739
10090
  export type UpdateSiteError = DefaultErrors;
9740
10091
 
@@ -9826,19 +10177,23 @@ export const PatchSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9826
10177
  secondaryConnectorId: Schema.optional(
9827
10178
  Schema.Union([Schema.String, Schema.Null]),
9828
10179
  ),
9829
- }).pipe(
9830
- Schema.encodeKeys({
9831
- id: "id",
9832
- connectorId: "connector_id",
9833
- description: "description",
9834
- haMode: "ha_mode",
9835
- location: "location",
9836
- name: "name",
9837
- secondaryConnectorId: "secondary_connector_id",
9838
- }),
9839
- ) as unknown as Schema.Schema<PatchSiteResponse>;
9840
-
9841
- export type PatchSiteError = DefaultErrors;
10180
+ })
10181
+ .pipe(
10182
+ Schema.encodeKeys({
10183
+ id: "id",
10184
+ connectorId: "connector_id",
10185
+ description: "description",
10186
+ haMode: "ha_mode",
10187
+ location: "location",
10188
+ name: "name",
10189
+ secondaryConnectorId: "secondary_connector_id",
10190
+ }),
10191
+ )
10192
+ .pipe(
10193
+ T.ResponsePath("result"),
10194
+ ) as unknown as Schema.Schema<PatchSiteResponse>;
10195
+
10196
+ export type PatchSiteError = DefaultErrors;
9842
10197
 
9843
10198
  export const patchSite: API.OperationMethod<
9844
10199
  PatchSiteRequest,
@@ -9901,17 +10256,21 @@ export const DeleteSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9901
10256
  secondaryConnectorId: Schema.optional(
9902
10257
  Schema.Union([Schema.String, Schema.Null]),
9903
10258
  ),
9904
- }).pipe(
9905
- Schema.encodeKeys({
9906
- id: "id",
9907
- connectorId: "connector_id",
9908
- description: "description",
9909
- haMode: "ha_mode",
9910
- location: "location",
9911
- name: "name",
9912
- secondaryConnectorId: "secondary_connector_id",
9913
- }),
9914
- ) as unknown as Schema.Schema<DeleteSiteResponse>;
10259
+ })
10260
+ .pipe(
10261
+ Schema.encodeKeys({
10262
+ id: "id",
10263
+ connectorId: "connector_id",
10264
+ description: "description",
10265
+ haMode: "ha_mode",
10266
+ location: "location",
10267
+ name: "name",
10268
+ secondaryConnectorId: "secondary_connector_id",
10269
+ }),
10270
+ )
10271
+ .pipe(
10272
+ T.ResponsePath("result"),
10273
+ ) as unknown as Schema.Schema<DeleteSiteResponse>;
9915
10274
 
9916
10275
  export type DeleteSiteError = DefaultErrors;
9917
10276
 
@@ -10040,18 +10399,22 @@ export const GetSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10040
10399
  ]),
10041
10400
  ),
10042
10401
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
10043
- }).pipe(
10044
- Schema.encodeKeys({
10045
- id: "id",
10046
- description: "description",
10047
- forwardLocally: "forward_locally",
10048
- lan_1: "lan_1",
10049
- lan_2: "lan_2",
10050
- name: "name",
10051
- protocols: "protocols",
10052
- unidirectional: "unidirectional",
10053
- }),
10054
- ) as unknown as Schema.Schema<GetSiteAclResponse>;
10402
+ })
10403
+ .pipe(
10404
+ Schema.encodeKeys({
10405
+ id: "id",
10406
+ description: "description",
10407
+ forwardLocally: "forward_locally",
10408
+ lan_1: "lan_1",
10409
+ lan_2: "lan_2",
10410
+ name: "name",
10411
+ protocols: "protocols",
10412
+ unidirectional: "unidirectional",
10413
+ }),
10414
+ )
10415
+ .pipe(
10416
+ T.ResponsePath("result"),
10417
+ ) as unknown as Schema.Schema<GetSiteAclResponse>;
10055
10418
 
10056
10419
  export type GetSiteAclError = DefaultErrors;
10057
10420
 
@@ -10082,123 +10445,169 @@ export const ListSiteAclsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10082
10445
  }),
10083
10446
  ) as unknown as Schema.Schema<ListSiteAclsRequest>;
10084
10447
 
10085
- export type ListSiteAclsResponse = {
10086
- id?: string | null;
10087
- description?: string | null;
10088
- forwardLocally?: boolean | null;
10089
- lan_1?: {
10090
- lanId: string;
10091
- lanName?: string | null;
10092
- portRanges?: string[] | null;
10093
- ports?: number[] | null;
10094
- subnets?: string[] | null;
10095
- } | null;
10096
- lan_2?: {
10097
- lanId: string;
10098
- lanName?: string | null;
10099
- portRanges?: string[] | null;
10100
- ports?: number[] | null;
10101
- subnets?: string[] | null;
10102
- } | null;
10103
- name?: string | null;
10104
- protocols?: ("tcp" | "udp" | "icmp")[] | null;
10105
- unidirectional?: boolean | null;
10106
- }[];
10448
+ export interface ListSiteAclsResponse {
10449
+ result: {
10450
+ id?: string | null;
10451
+ description?: string | null;
10452
+ forwardLocally?: boolean | null;
10453
+ lan_1?: {
10454
+ lanId: string;
10455
+ lanName?: string | null;
10456
+ portRanges?: string[] | null;
10457
+ ports?: number[] | null;
10458
+ subnets?: string[] | null;
10459
+ } | null;
10460
+ lan_2?: {
10461
+ lanId: string;
10462
+ lanName?: string | null;
10463
+ portRanges?: string[] | null;
10464
+ ports?: number[] | null;
10465
+ subnets?: string[] | null;
10466
+ } | null;
10467
+ name?: string | null;
10468
+ protocols?: ("tcp" | "udp" | "icmp")[] | null;
10469
+ unidirectional?: boolean | null;
10470
+ }[];
10471
+ }
10107
10472
 
10108
- export const ListSiteAclsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
10109
- Schema.Struct({
10110
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10111
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10112
- forwardLocally: Schema.optional(
10113
- Schema.Union([Schema.Boolean, Schema.Null]),
10114
- ),
10115
- lan_1: Schema.optional(
10116
- Schema.Union([
10117
- Schema.Struct({
10118
- lanId: Schema.String,
10119
- lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10120
- portRanges: Schema.optional(
10121
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10122
- ),
10123
- ports: Schema.optional(
10124
- Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
10125
- ),
10126
- subnets: Schema.optional(
10127
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10128
- ),
10129
- }).pipe(
10130
- Schema.encodeKeys({
10131
- lanId: "lan_id",
10132
- lanName: "lan_name",
10133
- portRanges: "port_ranges",
10134
- ports: "ports",
10135
- subnets: "subnets",
10136
- }),
10137
- ),
10138
- Schema.Null,
10139
- ]),
10140
- ),
10141
- lan_2: Schema.optional(
10142
- Schema.Union([
10143
- Schema.Struct({
10144
- lanId: Schema.String,
10145
- lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10146
- portRanges: Schema.optional(
10147
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10148
- ),
10149
- ports: Schema.optional(
10150
- Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
10473
+ export const ListSiteAclsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10474
+ result: Schema.Array(
10475
+ Schema.Struct({
10476
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10477
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10478
+ forwardLocally: Schema.optional(
10479
+ Schema.Union([Schema.Boolean, Schema.Null]),
10480
+ ),
10481
+ lan_1: Schema.optional(
10482
+ Schema.Union([
10483
+ Schema.Struct({
10484
+ lanId: Schema.String,
10485
+ lanName: Schema.optional(
10486
+ Schema.Union([Schema.String, Schema.Null]),
10487
+ ),
10488
+ portRanges: Schema.optional(
10489
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10490
+ ),
10491
+ ports: Schema.optional(
10492
+ Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
10493
+ ),
10494
+ subnets: Schema.optional(
10495
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10496
+ ),
10497
+ }).pipe(
10498
+ Schema.encodeKeys({
10499
+ lanId: "lan_id",
10500
+ lanName: "lan_name",
10501
+ portRanges: "port_ranges",
10502
+ ports: "ports",
10503
+ subnets: "subnets",
10504
+ }),
10151
10505
  ),
10152
- subnets: Schema.optional(
10153
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10506
+ Schema.Null,
10507
+ ]),
10508
+ ),
10509
+ lan_2: Schema.optional(
10510
+ Schema.Union([
10511
+ Schema.Struct({
10512
+ lanId: Schema.String,
10513
+ lanName: Schema.optional(
10514
+ Schema.Union([Schema.String, Schema.Null]),
10515
+ ),
10516
+ portRanges: Schema.optional(
10517
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10518
+ ),
10519
+ ports: Schema.optional(
10520
+ Schema.Union([Schema.Array(Schema.Number), Schema.Null]),
10521
+ ),
10522
+ subnets: Schema.optional(
10523
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10524
+ ),
10525
+ }).pipe(
10526
+ Schema.encodeKeys({
10527
+ lanId: "lan_id",
10528
+ lanName: "lan_name",
10529
+ portRanges: "port_ranges",
10530
+ ports: "ports",
10531
+ subnets: "subnets",
10532
+ }),
10154
10533
  ),
10155
- }).pipe(
10156
- Schema.encodeKeys({
10157
- lanId: "lan_id",
10158
- lanName: "lan_name",
10159
- portRanges: "port_ranges",
10160
- ports: "ports",
10161
- subnets: "subnets",
10162
- }),
10163
- ),
10164
- Schema.Null,
10165
- ]),
10166
- ),
10167
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10168
- protocols: Schema.optional(
10169
- Schema.Union([
10170
- Schema.Array(Schema.Literals(["tcp", "udp", "icmp"])),
10171
- Schema.Null,
10172
- ]),
10173
- ),
10174
- unidirectional: Schema.optional(
10175
- Schema.Union([Schema.Boolean, Schema.Null]),
10534
+ Schema.Null,
10535
+ ]),
10536
+ ),
10537
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10538
+ protocols: Schema.optional(
10539
+ Schema.Union([
10540
+ Schema.Array(Schema.Literals(["tcp", "udp", "icmp"])),
10541
+ Schema.Null,
10542
+ ]),
10543
+ ),
10544
+ unidirectional: Schema.optional(
10545
+ Schema.Union([Schema.Boolean, Schema.Null]),
10546
+ ),
10547
+ }).pipe(
10548
+ Schema.encodeKeys({
10549
+ id: "id",
10550
+ description: "description",
10551
+ forwardLocally: "forward_locally",
10552
+ lan_1: "lan_1",
10553
+ lan_2: "lan_2",
10554
+ name: "name",
10555
+ protocols: "protocols",
10556
+ unidirectional: "unidirectional",
10557
+ }),
10176
10558
  ),
10177
- }).pipe(
10178
- Schema.encodeKeys({
10179
- id: "id",
10180
- description: "description",
10181
- forwardLocally: "forward_locally",
10182
- lan_1: "lan_1",
10183
- lan_2: "lan_2",
10184
- name: "name",
10185
- protocols: "protocols",
10186
- unidirectional: "unidirectional",
10187
- }),
10188
10559
  ),
10189
- ) as unknown as Schema.Schema<ListSiteAclsResponse>;
10560
+ }) as unknown as Schema.Schema<ListSiteAclsResponse>;
10190
10561
 
10191
10562
  export type ListSiteAclsError = DefaultErrors;
10192
10563
 
10193
- export const listSiteAcls: API.OperationMethod<
10564
+ export const listSiteAcls: API.PaginatedOperationMethod<
10194
10565
  ListSiteAclsRequest,
10195
10566
  ListSiteAclsResponse,
10196
10567
  ListSiteAclsError,
10197
10568
  Credentials | HttpClient.HttpClient
10198
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
10569
+ > & {
10570
+ pages: (
10571
+ input: ListSiteAclsRequest,
10572
+ ) => stream.Stream<
10573
+ ListSiteAclsResponse,
10574
+ ListSiteAclsError,
10575
+ Credentials | HttpClient.HttpClient
10576
+ >;
10577
+ items: (input: ListSiteAclsRequest) => stream.Stream<
10578
+ {
10579
+ id?: string | null;
10580
+ description?: string | null;
10581
+ forwardLocally?: boolean | null;
10582
+ lan_1?: {
10583
+ lanId: string;
10584
+ lanName?: string | null;
10585
+ portRanges?: string[] | null;
10586
+ ports?: number[] | null;
10587
+ subnets?: string[] | null;
10588
+ } | null;
10589
+ lan_2?: {
10590
+ lanId: string;
10591
+ lanName?: string | null;
10592
+ portRanges?: string[] | null;
10593
+ ports?: number[] | null;
10594
+ subnets?: string[] | null;
10595
+ } | null;
10596
+ name?: string | null;
10597
+ protocols?: ("tcp" | "udp" | "icmp")[] | null;
10598
+ unidirectional?: boolean | null;
10599
+ },
10600
+ ListSiteAclsError,
10601
+ Credentials | HttpClient.HttpClient
10602
+ >;
10603
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
10199
10604
  input: ListSiteAclsRequest,
10200
10605
  output: ListSiteAclsResponse,
10201
10606
  errors: [],
10607
+ pagination: {
10608
+ mode: "single",
10609
+ items: "result",
10610
+ } as const,
10202
10611
  }));
10203
10612
 
10204
10613
  export interface CreateSiteAclRequest {
@@ -10381,18 +10790,22 @@ export const CreateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10381
10790
  ]),
10382
10791
  ),
10383
10792
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
10384
- }).pipe(
10385
- Schema.encodeKeys({
10386
- id: "id",
10387
- description: "description",
10388
- forwardLocally: "forward_locally",
10389
- lan_1: "lan_1",
10390
- lan_2: "lan_2",
10391
- name: "name",
10392
- protocols: "protocols",
10393
- unidirectional: "unidirectional",
10394
- }),
10395
- ) as unknown as Schema.Schema<CreateSiteAclResponse>;
10793
+ })
10794
+ .pipe(
10795
+ Schema.encodeKeys({
10796
+ id: "id",
10797
+ description: "description",
10798
+ forwardLocally: "forward_locally",
10799
+ lan_1: "lan_1",
10800
+ lan_2: "lan_2",
10801
+ name: "name",
10802
+ protocols: "protocols",
10803
+ unidirectional: "unidirectional",
10804
+ }),
10805
+ )
10806
+ .pipe(
10807
+ T.ResponsePath("result"),
10808
+ ) as unknown as Schema.Schema<CreateSiteAclResponse>;
10396
10809
 
10397
10810
  export type CreateSiteAclError = DefaultErrors;
10398
10811
 
@@ -10593,18 +11006,22 @@ export const UpdateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10593
11006
  ]),
10594
11007
  ),
10595
11008
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
10596
- }).pipe(
10597
- Schema.encodeKeys({
10598
- id: "id",
10599
- description: "description",
10600
- forwardLocally: "forward_locally",
10601
- lan_1: "lan_1",
10602
- lan_2: "lan_2",
10603
- name: "name",
10604
- protocols: "protocols",
10605
- unidirectional: "unidirectional",
10606
- }),
10607
- ) as unknown as Schema.Schema<UpdateSiteAclResponse>;
11009
+ })
11010
+ .pipe(
11011
+ Schema.encodeKeys({
11012
+ id: "id",
11013
+ description: "description",
11014
+ forwardLocally: "forward_locally",
11015
+ lan_1: "lan_1",
11016
+ lan_2: "lan_2",
11017
+ name: "name",
11018
+ protocols: "protocols",
11019
+ unidirectional: "unidirectional",
11020
+ }),
11021
+ )
11022
+ .pipe(
11023
+ T.ResponsePath("result"),
11024
+ ) as unknown as Schema.Schema<UpdateSiteAclResponse>;
10608
11025
 
10609
11026
  export type UpdateSiteAclError = DefaultErrors;
10610
11027
 
@@ -10805,18 +11222,22 @@ export const PatchSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10805
11222
  ]),
10806
11223
  ),
10807
11224
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
10808
- }).pipe(
10809
- Schema.encodeKeys({
10810
- id: "id",
10811
- description: "description",
10812
- forwardLocally: "forward_locally",
10813
- lan_1: "lan_1",
10814
- lan_2: "lan_2",
10815
- name: "name",
10816
- protocols: "protocols",
10817
- unidirectional: "unidirectional",
10818
- }),
10819
- ) as unknown as Schema.Schema<PatchSiteAclResponse>;
11225
+ })
11226
+ .pipe(
11227
+ Schema.encodeKeys({
11228
+ id: "id",
11229
+ description: "description",
11230
+ forwardLocally: "forward_locally",
11231
+ lan_1: "lan_1",
11232
+ lan_2: "lan_2",
11233
+ name: "name",
11234
+ protocols: "protocols",
11235
+ unidirectional: "unidirectional",
11236
+ }),
11237
+ )
11238
+ .pipe(
11239
+ T.ResponsePath("result"),
11240
+ ) as unknown as Schema.Schema<PatchSiteAclResponse>;
10820
11241
 
10821
11242
  export type PatchSiteAclError = DefaultErrors;
10822
11243
 
@@ -10941,18 +11362,22 @@ export const DeleteSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10941
11362
  ]),
10942
11363
  ),
10943
11364
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
10944
- }).pipe(
10945
- Schema.encodeKeys({
10946
- id: "id",
10947
- description: "description",
10948
- forwardLocally: "forward_locally",
10949
- lan_1: "lan_1",
10950
- lan_2: "lan_2",
10951
- name: "name",
10952
- protocols: "protocols",
10953
- unidirectional: "unidirectional",
10954
- }),
10955
- ) as unknown as Schema.Schema<DeleteSiteAclResponse>;
11365
+ })
11366
+ .pipe(
11367
+ Schema.encodeKeys({
11368
+ id: "id",
11369
+ description: "description",
11370
+ forwardLocally: "forward_locally",
11371
+ lan_1: "lan_1",
11372
+ lan_2: "lan_2",
11373
+ name: "name",
11374
+ protocols: "protocols",
11375
+ unidirectional: "unidirectional",
11376
+ }),
11377
+ )
11378
+ .pipe(
11379
+ T.ResponsePath("result"),
11380
+ ) as unknown as Schema.Schema<DeleteSiteAclResponse>;
10956
11381
 
10957
11382
  export type DeleteSiteAclError = DefaultErrors;
10958
11383
 
@@ -11130,19 +11555,23 @@ export const GetSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11130
11555
  ]),
11131
11556
  ),
11132
11557
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11133
- }).pipe(
11134
- Schema.encodeKeys({
11135
- id: "id",
11136
- haLink: "ha_link",
11137
- name: "name",
11138
- nat: "nat",
11139
- physport: "physport",
11140
- routedSubnets: "routed_subnets",
11141
- siteId: "site_id",
11142
- staticAddressing: "static_addressing",
11143
- vlanTag: "vlan_tag",
11144
- }),
11145
- ) as unknown as Schema.Schema<GetSiteLanResponse>;
11558
+ })
11559
+ .pipe(
11560
+ Schema.encodeKeys({
11561
+ id: "id",
11562
+ haLink: "ha_link",
11563
+ name: "name",
11564
+ nat: "nat",
11565
+ physport: "physport",
11566
+ routedSubnets: "routed_subnets",
11567
+ siteId: "site_id",
11568
+ staticAddressing: "static_addressing",
11569
+ vlanTag: "vlan_tag",
11570
+ }),
11571
+ )
11572
+ .pipe(
11573
+ T.ResponsePath("result"),
11574
+ ) as unknown as Schema.Schema<GetSiteLanResponse>;
11146
11575
 
11147
11576
  export type GetSiteLanError = DefaultErrors;
11148
11577
 
@@ -11173,171 +11602,220 @@ export const ListSiteLansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11173
11602
  }),
11174
11603
  ) as unknown as Schema.Schema<ListSiteLansRequest>;
11175
11604
 
11176
- export type ListSiteLansResponse = {
11177
- id?: string | null;
11178
- haLink?: boolean | null;
11179
- name?: string | null;
11180
- nat?: { staticPrefix?: string | null } | null;
11181
- physport?: number | null;
11182
- routedSubnets?:
11183
- | {
11184
- nextHop: string;
11185
- prefix: string;
11186
- nat?: { staticPrefix?: string | null } | null;
11187
- }[]
11188
- | null;
11189
- siteId?: string | null;
11190
- staticAddressing?: {
11191
- address: string;
11192
- dhcpRelay?: { serverAddresses?: string[] | null } | null;
11193
- dhcpServer?: {
11194
- dhcpPoolEnd?: string | null;
11195
- dhcpPoolStart?: string | null;
11196
- dnsServer?: string | null;
11197
- dnsServers?: string[] | null;
11198
- reservations?: Record<string, unknown> | null;
11605
+ export interface ListSiteLansResponse {
11606
+ result: {
11607
+ id?: string | null;
11608
+ haLink?: boolean | null;
11609
+ name?: string | null;
11610
+ nat?: { staticPrefix?: string | null } | null;
11611
+ physport?: number | null;
11612
+ routedSubnets?:
11613
+ | {
11614
+ nextHop: string;
11615
+ prefix: string;
11616
+ nat?: { staticPrefix?: string | null } | null;
11617
+ }[]
11618
+ | null;
11619
+ siteId?: string | null;
11620
+ staticAddressing?: {
11621
+ address: string;
11622
+ dhcpRelay?: { serverAddresses?: string[] | null } | null;
11623
+ dhcpServer?: {
11624
+ dhcpPoolEnd?: string | null;
11625
+ dhcpPoolStart?: string | null;
11626
+ dnsServer?: string | null;
11627
+ dnsServers?: string[] | null;
11628
+ reservations?: Record<string, unknown> | null;
11629
+ } | null;
11630
+ secondaryAddress?: string | null;
11631
+ virtualAddress?: string | null;
11199
11632
  } | null;
11200
- secondaryAddress?: string | null;
11201
- virtualAddress?: string | null;
11202
- } | null;
11203
- vlanTag?: number | null;
11204
- }[];
11633
+ vlanTag?: number | null;
11634
+ }[];
11635
+ }
11205
11636
 
11206
- export const ListSiteLansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
11207
- Schema.Struct({
11208
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11209
- haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
11210
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11211
- nat: Schema.optional(
11212
- Schema.Union([
11213
- Schema.Struct({
11214
- staticPrefix: Schema.optional(
11215
- Schema.Union([Schema.String, Schema.Null]),
11637
+ export const ListSiteLansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11638
+ result: Schema.Array(
11639
+ Schema.Struct({
11640
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11641
+ haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
11642
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11643
+ nat: Schema.optional(
11644
+ Schema.Union([
11645
+ Schema.Struct({
11646
+ staticPrefix: Schema.optional(
11647
+ Schema.Union([Schema.String, Schema.Null]),
11648
+ ),
11649
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11650
+ Schema.Null,
11651
+ ]),
11652
+ ),
11653
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11654
+ routedSubnets: Schema.optional(
11655
+ Schema.Union([
11656
+ Schema.Array(
11657
+ Schema.Struct({
11658
+ nextHop: Schema.String,
11659
+ prefix: Schema.String,
11660
+ nat: Schema.optional(
11661
+ Schema.Union([
11662
+ Schema.Struct({
11663
+ staticPrefix: Schema.optional(
11664
+ Schema.Union([Schema.String, Schema.Null]),
11665
+ ),
11666
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11667
+ Schema.Null,
11668
+ ]),
11669
+ ),
11670
+ }).pipe(
11671
+ Schema.encodeKeys({
11672
+ nextHop: "next_hop",
11673
+ prefix: "prefix",
11674
+ nat: "nat",
11675
+ }),
11676
+ ),
11216
11677
  ),
11217
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11218
- Schema.Null,
11219
- ]),
11220
- ),
11221
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11222
- routedSubnets: Schema.optional(
11223
- Schema.Union([
11224
- Schema.Array(
11678
+ Schema.Null,
11679
+ ]),
11680
+ ),
11681
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11682
+ staticAddressing: Schema.optional(
11683
+ Schema.Union([
11225
11684
  Schema.Struct({
11226
- nextHop: Schema.String,
11227
- prefix: Schema.String,
11228
- nat: Schema.optional(
11685
+ address: Schema.String,
11686
+ dhcpRelay: Schema.optional(
11687
+ Schema.Union([
11688
+ Schema.Struct({
11689
+ serverAddresses: Schema.optional(
11690
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11691
+ ),
11692
+ }).pipe(
11693
+ Schema.encodeKeys({ serverAddresses: "server_addresses" }),
11694
+ ),
11695
+ Schema.Null,
11696
+ ]),
11697
+ ),
11698
+ dhcpServer: Schema.optional(
11229
11699
  Schema.Union([
11230
11700
  Schema.Struct({
11231
- staticPrefix: Schema.optional(
11701
+ dhcpPoolEnd: Schema.optional(
11702
+ Schema.Union([Schema.String, Schema.Null]),
11703
+ ),
11704
+ dhcpPoolStart: Schema.optional(
11232
11705
  Schema.Union([Schema.String, Schema.Null]),
11233
11706
  ),
11234
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11707
+ dnsServer: Schema.optional(
11708
+ Schema.Union([Schema.String, Schema.Null]),
11709
+ ),
11710
+ dnsServers: Schema.optional(
11711
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11712
+ ),
11713
+ reservations: Schema.optional(
11714
+ Schema.Union([Schema.Struct({}), Schema.Null]),
11715
+ ),
11716
+ }).pipe(
11717
+ Schema.encodeKeys({
11718
+ dhcpPoolEnd: "dhcp_pool_end",
11719
+ dhcpPoolStart: "dhcp_pool_start",
11720
+ dnsServer: "dns_server",
11721
+ dnsServers: "dns_servers",
11722
+ reservations: "reservations",
11723
+ }),
11724
+ ),
11235
11725
  Schema.Null,
11236
11726
  ]),
11237
11727
  ),
11728
+ secondaryAddress: Schema.optional(
11729
+ Schema.Union([Schema.String, Schema.Null]),
11730
+ ),
11731
+ virtualAddress: Schema.optional(
11732
+ Schema.Union([Schema.String, Schema.Null]),
11733
+ ),
11238
11734
  }).pipe(
11239
11735
  Schema.encodeKeys({
11240
- nextHop: "next_hop",
11241
- prefix: "prefix",
11242
- nat: "nat",
11736
+ address: "address",
11737
+ dhcpRelay: "dhcp_relay",
11738
+ dhcpServer: "dhcp_server",
11739
+ secondaryAddress: "secondary_address",
11740
+ virtualAddress: "virtual_address",
11243
11741
  }),
11244
11742
  ),
11245
- ),
11246
- Schema.Null,
11247
- ]),
11248
- ),
11249
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11250
- staticAddressing: Schema.optional(
11251
- Schema.Union([
11252
- Schema.Struct({
11253
- address: Schema.String,
11254
- dhcpRelay: Schema.optional(
11255
- Schema.Union([
11256
- Schema.Struct({
11257
- serverAddresses: Schema.optional(
11258
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11259
- ),
11260
- }).pipe(
11261
- Schema.encodeKeys({ serverAddresses: "server_addresses" }),
11262
- ),
11263
- Schema.Null,
11264
- ]),
11265
- ),
11266
- dhcpServer: Schema.optional(
11267
- Schema.Union([
11268
- Schema.Struct({
11269
- dhcpPoolEnd: Schema.optional(
11270
- Schema.Union([Schema.String, Schema.Null]),
11271
- ),
11272
- dhcpPoolStart: Schema.optional(
11273
- Schema.Union([Schema.String, Schema.Null]),
11274
- ),
11275
- dnsServer: Schema.optional(
11276
- Schema.Union([Schema.String, Schema.Null]),
11277
- ),
11278
- dnsServers: Schema.optional(
11279
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11280
- ),
11281
- reservations: Schema.optional(
11282
- Schema.Union([Schema.Struct({}), Schema.Null]),
11283
- ),
11284
- }).pipe(
11285
- Schema.encodeKeys({
11286
- dhcpPoolEnd: "dhcp_pool_end",
11287
- dhcpPoolStart: "dhcp_pool_start",
11288
- dnsServer: "dns_server",
11289
- dnsServers: "dns_servers",
11290
- reservations: "reservations",
11291
- }),
11292
- ),
11293
- Schema.Null,
11294
- ]),
11295
- ),
11296
- secondaryAddress: Schema.optional(
11297
- Schema.Union([Schema.String, Schema.Null]),
11298
- ),
11299
- virtualAddress: Schema.optional(
11300
- Schema.Union([Schema.String, Schema.Null]),
11301
- ),
11302
- }).pipe(
11303
- Schema.encodeKeys({
11304
- address: "address",
11305
- dhcpRelay: "dhcp_relay",
11306
- dhcpServer: "dhcp_server",
11307
- secondaryAddress: "secondary_address",
11308
- virtualAddress: "virtual_address",
11309
- }),
11310
- ),
11311
- Schema.Null,
11312
- ]),
11743
+ Schema.Null,
11744
+ ]),
11745
+ ),
11746
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11747
+ }).pipe(
11748
+ Schema.encodeKeys({
11749
+ id: "id",
11750
+ haLink: "ha_link",
11751
+ name: "name",
11752
+ nat: "nat",
11753
+ physport: "physport",
11754
+ routedSubnets: "routed_subnets",
11755
+ siteId: "site_id",
11756
+ staticAddressing: "static_addressing",
11757
+ vlanTag: "vlan_tag",
11758
+ }),
11313
11759
  ),
11314
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11315
- }).pipe(
11316
- Schema.encodeKeys({
11317
- id: "id",
11318
- haLink: "ha_link",
11319
- name: "name",
11320
- nat: "nat",
11321
- physport: "physport",
11322
- routedSubnets: "routed_subnets",
11323
- siteId: "site_id",
11324
- staticAddressing: "static_addressing",
11325
- vlanTag: "vlan_tag",
11326
- }),
11327
11760
  ),
11328
- ) as unknown as Schema.Schema<ListSiteLansResponse>;
11761
+ }) as unknown as Schema.Schema<ListSiteLansResponse>;
11329
11762
 
11330
11763
  export type ListSiteLansError = DefaultErrors;
11331
11764
 
11332
- export const listSiteLans: API.OperationMethod<
11765
+ export const listSiteLans: API.PaginatedOperationMethod<
11333
11766
  ListSiteLansRequest,
11334
11767
  ListSiteLansResponse,
11335
11768
  ListSiteLansError,
11336
11769
  Credentials | HttpClient.HttpClient
11337
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
11770
+ > & {
11771
+ pages: (
11772
+ input: ListSiteLansRequest,
11773
+ ) => stream.Stream<
11774
+ ListSiteLansResponse,
11775
+ ListSiteLansError,
11776
+ Credentials | HttpClient.HttpClient
11777
+ >;
11778
+ items: (input: ListSiteLansRequest) => stream.Stream<
11779
+ {
11780
+ id?: string | null;
11781
+ haLink?: boolean | null;
11782
+ name?: string | null;
11783
+ nat?: { staticPrefix?: string | null } | null;
11784
+ physport?: number | null;
11785
+ routedSubnets?:
11786
+ | {
11787
+ nextHop: string;
11788
+ prefix: string;
11789
+ nat?: { staticPrefix?: string | null } | null;
11790
+ }[]
11791
+ | null;
11792
+ siteId?: string | null;
11793
+ staticAddressing?: {
11794
+ address: string;
11795
+ dhcpRelay?: { serverAddresses?: string[] | null } | null;
11796
+ dhcpServer?: {
11797
+ dhcpPoolEnd?: string | null;
11798
+ dhcpPoolStart?: string | null;
11799
+ dnsServer?: string | null;
11800
+ dnsServers?: string[] | null;
11801
+ reservations?: Record<string, unknown> | null;
11802
+ } | null;
11803
+ secondaryAddress?: string | null;
11804
+ virtualAddress?: string | null;
11805
+ } | null;
11806
+ vlanTag?: number | null;
11807
+ },
11808
+ ListSiteLansError,
11809
+ Credentials | HttpClient.HttpClient
11810
+ >;
11811
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
11338
11812
  input: ListSiteLansRequest,
11339
11813
  output: ListSiteLansResponse,
11340
11814
  errors: [],
11815
+ pagination: {
11816
+ mode: "single",
11817
+ items: "result",
11818
+ } as const,
11341
11819
  }));
11342
11820
 
11343
11821
  export interface CreateSiteLanRequest {
@@ -11460,171 +11938,220 @@ export const CreateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11460
11938
  }),
11461
11939
  ) as unknown as Schema.Schema<CreateSiteLanRequest>;
11462
11940
 
11463
- export type CreateSiteLanResponse = {
11464
- id?: string | null;
11465
- haLink?: boolean | null;
11466
- name?: string | null;
11467
- nat?: { staticPrefix?: string | null } | null;
11468
- physport?: number | null;
11469
- routedSubnets?:
11470
- | {
11471
- nextHop: string;
11472
- prefix: string;
11473
- nat?: { staticPrefix?: string | null } | null;
11474
- }[]
11475
- | null;
11476
- siteId?: string | null;
11477
- staticAddressing?: {
11478
- address: string;
11479
- dhcpRelay?: { serverAddresses?: string[] | null } | null;
11480
- dhcpServer?: {
11481
- dhcpPoolEnd?: string | null;
11482
- dhcpPoolStart?: string | null;
11483
- dnsServer?: string | null;
11484
- dnsServers?: string[] | null;
11485
- reservations?: Record<string, unknown> | null;
11941
+ export interface CreateSiteLanResponse {
11942
+ result: {
11943
+ id?: string | null;
11944
+ haLink?: boolean | null;
11945
+ name?: string | null;
11946
+ nat?: { staticPrefix?: string | null } | null;
11947
+ physport?: number | null;
11948
+ routedSubnets?:
11949
+ | {
11950
+ nextHop: string;
11951
+ prefix: string;
11952
+ nat?: { staticPrefix?: string | null } | null;
11953
+ }[]
11954
+ | null;
11955
+ siteId?: string | null;
11956
+ staticAddressing?: {
11957
+ address: string;
11958
+ dhcpRelay?: { serverAddresses?: string[] | null } | null;
11959
+ dhcpServer?: {
11960
+ dhcpPoolEnd?: string | null;
11961
+ dhcpPoolStart?: string | null;
11962
+ dnsServer?: string | null;
11963
+ dnsServers?: string[] | null;
11964
+ reservations?: Record<string, unknown> | null;
11965
+ } | null;
11966
+ secondaryAddress?: string | null;
11967
+ virtualAddress?: string | null;
11486
11968
  } | null;
11487
- secondaryAddress?: string | null;
11488
- virtualAddress?: string | null;
11489
- } | null;
11490
- vlanTag?: number | null;
11491
- }[];
11969
+ vlanTag?: number | null;
11970
+ }[];
11971
+ }
11492
11972
 
11493
- export const CreateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
11494
- Schema.Struct({
11495
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11496
- haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
11497
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11498
- nat: Schema.optional(
11499
- Schema.Union([
11500
- Schema.Struct({
11501
- staticPrefix: Schema.optional(
11502
- Schema.Union([Schema.String, Schema.Null]),
11973
+ export const CreateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11974
+ result: Schema.Array(
11975
+ Schema.Struct({
11976
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11977
+ haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
11978
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11979
+ nat: Schema.optional(
11980
+ Schema.Union([
11981
+ Schema.Struct({
11982
+ staticPrefix: Schema.optional(
11983
+ Schema.Union([Schema.String, Schema.Null]),
11984
+ ),
11985
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11986
+ Schema.Null,
11987
+ ]),
11988
+ ),
11989
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11990
+ routedSubnets: Schema.optional(
11991
+ Schema.Union([
11992
+ Schema.Array(
11993
+ Schema.Struct({
11994
+ nextHop: Schema.String,
11995
+ prefix: Schema.String,
11996
+ nat: Schema.optional(
11997
+ Schema.Union([
11998
+ Schema.Struct({
11999
+ staticPrefix: Schema.optional(
12000
+ Schema.Union([Schema.String, Schema.Null]),
12001
+ ),
12002
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
12003
+ Schema.Null,
12004
+ ]),
12005
+ ),
12006
+ }).pipe(
12007
+ Schema.encodeKeys({
12008
+ nextHop: "next_hop",
12009
+ prefix: "prefix",
12010
+ nat: "nat",
12011
+ }),
12012
+ ),
11503
12013
  ),
11504
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
11505
- Schema.Null,
11506
- ]),
11507
- ),
11508
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11509
- routedSubnets: Schema.optional(
11510
- Schema.Union([
11511
- Schema.Array(
12014
+ Schema.Null,
12015
+ ]),
12016
+ ),
12017
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12018
+ staticAddressing: Schema.optional(
12019
+ Schema.Union([
11512
12020
  Schema.Struct({
11513
- nextHop: Schema.String,
11514
- prefix: Schema.String,
11515
- nat: Schema.optional(
12021
+ address: Schema.String,
12022
+ dhcpRelay: Schema.optional(
12023
+ Schema.Union([
12024
+ Schema.Struct({
12025
+ serverAddresses: Schema.optional(
12026
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
12027
+ ),
12028
+ }).pipe(
12029
+ Schema.encodeKeys({ serverAddresses: "server_addresses" }),
12030
+ ),
12031
+ Schema.Null,
12032
+ ]),
12033
+ ),
12034
+ dhcpServer: Schema.optional(
11516
12035
  Schema.Union([
11517
12036
  Schema.Struct({
11518
- staticPrefix: Schema.optional(
12037
+ dhcpPoolEnd: Schema.optional(
11519
12038
  Schema.Union([Schema.String, Schema.Null]),
11520
12039
  ),
11521
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
12040
+ dhcpPoolStart: Schema.optional(
12041
+ Schema.Union([Schema.String, Schema.Null]),
12042
+ ),
12043
+ dnsServer: Schema.optional(
12044
+ Schema.Union([Schema.String, Schema.Null]),
12045
+ ),
12046
+ dnsServers: Schema.optional(
12047
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
12048
+ ),
12049
+ reservations: Schema.optional(
12050
+ Schema.Union([Schema.Struct({}), Schema.Null]),
12051
+ ),
12052
+ }).pipe(
12053
+ Schema.encodeKeys({
12054
+ dhcpPoolEnd: "dhcp_pool_end",
12055
+ dhcpPoolStart: "dhcp_pool_start",
12056
+ dnsServer: "dns_server",
12057
+ dnsServers: "dns_servers",
12058
+ reservations: "reservations",
12059
+ }),
12060
+ ),
11522
12061
  Schema.Null,
11523
12062
  ]),
11524
12063
  ),
12064
+ secondaryAddress: Schema.optional(
12065
+ Schema.Union([Schema.String, Schema.Null]),
12066
+ ),
12067
+ virtualAddress: Schema.optional(
12068
+ Schema.Union([Schema.String, Schema.Null]),
12069
+ ),
11525
12070
  }).pipe(
11526
12071
  Schema.encodeKeys({
11527
- nextHop: "next_hop",
11528
- prefix: "prefix",
11529
- nat: "nat",
12072
+ address: "address",
12073
+ dhcpRelay: "dhcp_relay",
12074
+ dhcpServer: "dhcp_server",
12075
+ secondaryAddress: "secondary_address",
12076
+ virtualAddress: "virtual_address",
11530
12077
  }),
11531
12078
  ),
11532
- ),
11533
- Schema.Null,
11534
- ]),
11535
- ),
11536
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11537
- staticAddressing: Schema.optional(
11538
- Schema.Union([
11539
- Schema.Struct({
11540
- address: Schema.String,
11541
- dhcpRelay: Schema.optional(
11542
- Schema.Union([
11543
- Schema.Struct({
11544
- serverAddresses: Schema.optional(
11545
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11546
- ),
11547
- }).pipe(
11548
- Schema.encodeKeys({ serverAddresses: "server_addresses" }),
11549
- ),
11550
- Schema.Null,
11551
- ]),
11552
- ),
11553
- dhcpServer: Schema.optional(
11554
- Schema.Union([
11555
- Schema.Struct({
11556
- dhcpPoolEnd: Schema.optional(
11557
- Schema.Union([Schema.String, Schema.Null]),
11558
- ),
11559
- dhcpPoolStart: Schema.optional(
11560
- Schema.Union([Schema.String, Schema.Null]),
11561
- ),
11562
- dnsServer: Schema.optional(
11563
- Schema.Union([Schema.String, Schema.Null]),
11564
- ),
11565
- dnsServers: Schema.optional(
11566
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
11567
- ),
11568
- reservations: Schema.optional(
11569
- Schema.Union([Schema.Struct({}), Schema.Null]),
11570
- ),
11571
- }).pipe(
11572
- Schema.encodeKeys({
11573
- dhcpPoolEnd: "dhcp_pool_end",
11574
- dhcpPoolStart: "dhcp_pool_start",
11575
- dnsServer: "dns_server",
11576
- dnsServers: "dns_servers",
11577
- reservations: "reservations",
11578
- }),
11579
- ),
11580
- Schema.Null,
11581
- ]),
11582
- ),
11583
- secondaryAddress: Schema.optional(
11584
- Schema.Union([Schema.String, Schema.Null]),
11585
- ),
11586
- virtualAddress: Schema.optional(
11587
- Schema.Union([Schema.String, Schema.Null]),
11588
- ),
11589
- }).pipe(
11590
- Schema.encodeKeys({
11591
- address: "address",
11592
- dhcpRelay: "dhcp_relay",
11593
- dhcpServer: "dhcp_server",
11594
- secondaryAddress: "secondary_address",
11595
- virtualAddress: "virtual_address",
11596
- }),
11597
- ),
11598
- Schema.Null,
11599
- ]),
12079
+ Schema.Null,
12080
+ ]),
12081
+ ),
12082
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12083
+ }).pipe(
12084
+ Schema.encodeKeys({
12085
+ id: "id",
12086
+ haLink: "ha_link",
12087
+ name: "name",
12088
+ nat: "nat",
12089
+ physport: "physport",
12090
+ routedSubnets: "routed_subnets",
12091
+ siteId: "site_id",
12092
+ staticAddressing: "static_addressing",
12093
+ vlanTag: "vlan_tag",
12094
+ }),
11600
12095
  ),
11601
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11602
- }).pipe(
11603
- Schema.encodeKeys({
11604
- id: "id",
11605
- haLink: "ha_link",
11606
- name: "name",
11607
- nat: "nat",
11608
- physport: "physport",
11609
- routedSubnets: "routed_subnets",
11610
- siteId: "site_id",
11611
- staticAddressing: "static_addressing",
11612
- vlanTag: "vlan_tag",
11613
- }),
11614
12096
  ),
11615
- ) as unknown as Schema.Schema<CreateSiteLanResponse>;
12097
+ }) as unknown as Schema.Schema<CreateSiteLanResponse>;
11616
12098
 
11617
12099
  export type CreateSiteLanError = DefaultErrors;
11618
12100
 
11619
- export const createSiteLan: API.OperationMethod<
12101
+ export const createSiteLan: API.PaginatedOperationMethod<
11620
12102
  CreateSiteLanRequest,
11621
12103
  CreateSiteLanResponse,
11622
12104
  CreateSiteLanError,
11623
12105
  Credentials | HttpClient.HttpClient
11624
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
12106
+ > & {
12107
+ pages: (
12108
+ input: CreateSiteLanRequest,
12109
+ ) => stream.Stream<
12110
+ CreateSiteLanResponse,
12111
+ CreateSiteLanError,
12112
+ Credentials | HttpClient.HttpClient
12113
+ >;
12114
+ items: (input: CreateSiteLanRequest) => stream.Stream<
12115
+ {
12116
+ id?: string | null;
12117
+ haLink?: boolean | null;
12118
+ name?: string | null;
12119
+ nat?: { staticPrefix?: string | null } | null;
12120
+ physport?: number | null;
12121
+ routedSubnets?:
12122
+ | {
12123
+ nextHop: string;
12124
+ prefix: string;
12125
+ nat?: { staticPrefix?: string | null } | null;
12126
+ }[]
12127
+ | null;
12128
+ siteId?: string | null;
12129
+ staticAddressing?: {
12130
+ address: string;
12131
+ dhcpRelay?: { serverAddresses?: string[] | null } | null;
12132
+ dhcpServer?: {
12133
+ dhcpPoolEnd?: string | null;
12134
+ dhcpPoolStart?: string | null;
12135
+ dnsServer?: string | null;
12136
+ dnsServers?: string[] | null;
12137
+ reservations?: Record<string, unknown> | null;
12138
+ } | null;
12139
+ secondaryAddress?: string | null;
12140
+ virtualAddress?: string | null;
12141
+ } | null;
12142
+ vlanTag?: number | null;
12143
+ },
12144
+ CreateSiteLanError,
12145
+ Credentials | HttpClient.HttpClient
12146
+ >;
12147
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
11625
12148
  input: CreateSiteLanRequest,
11626
12149
  output: CreateSiteLanResponse,
11627
12150
  errors: [],
12151
+ pagination: {
12152
+ mode: "single",
12153
+ items: "result",
12154
+ } as const,
11628
12155
  }));
11629
12156
 
11630
12157
  export interface UpdateSiteLanRequest {
@@ -11879,26 +12406,30 @@ export const UpdateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11879
12406
  dhcpRelay: "dhcp_relay",
11880
12407
  dhcpServer: "dhcp_server",
11881
12408
  secondaryAddress: "secondary_address",
11882
- virtualAddress: "virtual_address",
11883
- }),
11884
- ),
11885
- Schema.Null,
11886
- ]),
11887
- ),
11888
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11889
- }).pipe(
11890
- Schema.encodeKeys({
11891
- id: "id",
11892
- haLink: "ha_link",
11893
- name: "name",
11894
- nat: "nat",
11895
- physport: "physport",
11896
- routedSubnets: "routed_subnets",
11897
- siteId: "site_id",
11898
- staticAddressing: "static_addressing",
11899
- vlanTag: "vlan_tag",
11900
- }),
11901
- ) as unknown as Schema.Schema<UpdateSiteLanResponse>;
12409
+ virtualAddress: "virtual_address",
12410
+ }),
12411
+ ),
12412
+ Schema.Null,
12413
+ ]),
12414
+ ),
12415
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12416
+ })
12417
+ .pipe(
12418
+ Schema.encodeKeys({
12419
+ id: "id",
12420
+ haLink: "ha_link",
12421
+ name: "name",
12422
+ nat: "nat",
12423
+ physport: "physport",
12424
+ routedSubnets: "routed_subnets",
12425
+ siteId: "site_id",
12426
+ staticAddressing: "static_addressing",
12427
+ vlanTag: "vlan_tag",
12428
+ }),
12429
+ )
12430
+ .pipe(
12431
+ T.ResponsePath("result"),
12432
+ ) as unknown as Schema.Schema<UpdateSiteLanResponse>;
11902
12433
 
11903
12434
  export type UpdateSiteLanError = DefaultErrors;
11904
12435
 
@@ -12172,19 +12703,23 @@ export const PatchSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12172
12703
  ]),
12173
12704
  ),
12174
12705
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12175
- }).pipe(
12176
- Schema.encodeKeys({
12177
- id: "id",
12178
- haLink: "ha_link",
12179
- name: "name",
12180
- nat: "nat",
12181
- physport: "physport",
12182
- routedSubnets: "routed_subnets",
12183
- siteId: "site_id",
12184
- staticAddressing: "static_addressing",
12185
- vlanTag: "vlan_tag",
12186
- }),
12187
- ) as unknown as Schema.Schema<PatchSiteLanResponse>;
12706
+ })
12707
+ .pipe(
12708
+ Schema.encodeKeys({
12709
+ id: "id",
12710
+ haLink: "ha_link",
12711
+ name: "name",
12712
+ nat: "nat",
12713
+ physport: "physport",
12714
+ routedSubnets: "routed_subnets",
12715
+ siteId: "site_id",
12716
+ staticAddressing: "static_addressing",
12717
+ vlanTag: "vlan_tag",
12718
+ }),
12719
+ )
12720
+ .pipe(
12721
+ T.ResponsePath("result"),
12722
+ ) as unknown as Schema.Schema<PatchSiteLanResponse>;
12188
12723
 
12189
12724
  export type PatchSiteLanError = DefaultErrors;
12190
12725
 
@@ -12358,19 +12893,23 @@ export const DeleteSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12358
12893
  ]),
12359
12894
  ),
12360
12895
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12361
- }).pipe(
12362
- Schema.encodeKeys({
12363
- id: "id",
12364
- haLink: "ha_link",
12365
- name: "name",
12366
- nat: "nat",
12367
- physport: "physport",
12368
- routedSubnets: "routed_subnets",
12369
- siteId: "site_id",
12370
- staticAddressing: "static_addressing",
12371
- vlanTag: "vlan_tag",
12372
- }),
12373
- ) as unknown as Schema.Schema<DeleteSiteLanResponse>;
12896
+ })
12897
+ .pipe(
12898
+ Schema.encodeKeys({
12899
+ id: "id",
12900
+ haLink: "ha_link",
12901
+ name: "name",
12902
+ nat: "nat",
12903
+ physport: "physport",
12904
+ routedSubnets: "routed_subnets",
12905
+ siteId: "site_id",
12906
+ staticAddressing: "static_addressing",
12907
+ vlanTag: "vlan_tag",
12908
+ }),
12909
+ )
12910
+ .pipe(
12911
+ T.ResponsePath("result"),
12912
+ ) as unknown as Schema.Schema<DeleteSiteLanResponse>;
12374
12913
 
12375
12914
  export type DeleteSiteLanError = DefaultErrors;
12376
12915
 
@@ -12456,18 +12995,22 @@ export const GetSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12456
12995
  ]),
12457
12996
  ),
12458
12997
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12459
- }).pipe(
12460
- Schema.encodeKeys({
12461
- id: "id",
12462
- healthCheckRate: "health_check_rate",
12463
- name: "name",
12464
- physport: "physport",
12465
- priority: "priority",
12466
- siteId: "site_id",
12467
- staticAddressing: "static_addressing",
12468
- vlanTag: "vlan_tag",
12469
- }),
12470
- ) as unknown as Schema.Schema<GetSiteWanResponse>;
12998
+ })
12999
+ .pipe(
13000
+ Schema.encodeKeys({
13001
+ id: "id",
13002
+ healthCheckRate: "health_check_rate",
13003
+ name: "name",
13004
+ physport: "physport",
13005
+ priority: "priority",
13006
+ siteId: "site_id",
13007
+ staticAddressing: "static_addressing",
13008
+ vlanTag: "vlan_tag",
13009
+ }),
13010
+ )
13011
+ .pipe(
13012
+ T.ResponsePath("result"),
13013
+ ) as unknown as Schema.Schema<GetSiteWanResponse>;
12471
13014
 
12472
13015
  export type GetSiteWanError = DefaultErrors;
12473
13016
 
@@ -12498,75 +13041,109 @@ export const ListSiteWansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12498
13041
  }),
12499
13042
  ) as unknown as Schema.Schema<ListSiteWansRequest>;
12500
13043
 
12501
- export type ListSiteWansResponse = {
12502
- id?: string | null;
12503
- healthCheckRate?: "low" | "mid" | "high" | null;
12504
- name?: string | null;
12505
- physport?: number | null;
12506
- priority?: number | null;
12507
- siteId?: string | null;
12508
- staticAddressing?: {
12509
- address: string;
12510
- gatewayAddress: string;
12511
- secondaryAddress?: string | null;
12512
- } | null;
12513
- vlanTag?: number | null;
12514
- }[];
13044
+ export interface ListSiteWansResponse {
13045
+ result: {
13046
+ id?: string | null;
13047
+ healthCheckRate?: "low" | "mid" | "high" | null;
13048
+ name?: string | null;
13049
+ physport?: number | null;
13050
+ priority?: number | null;
13051
+ siteId?: string | null;
13052
+ staticAddressing?: {
13053
+ address: string;
13054
+ gatewayAddress: string;
13055
+ secondaryAddress?: string | null;
13056
+ } | null;
13057
+ vlanTag?: number | null;
13058
+ }[];
13059
+ }
12515
13060
 
12516
- export const ListSiteWansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
12517
- Schema.Struct({
12518
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12519
- healthCheckRate: Schema.optional(
12520
- Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null]),
12521
- ),
12522
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12523
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12524
- priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12525
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12526
- staticAddressing: Schema.optional(
12527
- Schema.Union([
12528
- Schema.Struct({
12529
- address: Schema.String,
12530
- gatewayAddress: Schema.String,
12531
- secondaryAddress: Schema.optional(
12532
- Schema.Union([Schema.String, Schema.Null]),
13061
+ export const ListSiteWansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13062
+ result: Schema.Array(
13063
+ Schema.Struct({
13064
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13065
+ healthCheckRate: Schema.optional(
13066
+ Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null]),
13067
+ ),
13068
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13069
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13070
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13071
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13072
+ staticAddressing: Schema.optional(
13073
+ Schema.Union([
13074
+ Schema.Struct({
13075
+ address: Schema.String,
13076
+ gatewayAddress: Schema.String,
13077
+ secondaryAddress: Schema.optional(
13078
+ Schema.Union([Schema.String, Schema.Null]),
13079
+ ),
13080
+ }).pipe(
13081
+ Schema.encodeKeys({
13082
+ address: "address",
13083
+ gatewayAddress: "gateway_address",
13084
+ secondaryAddress: "secondary_address",
13085
+ }),
12533
13086
  ),
12534
- }).pipe(
12535
- Schema.encodeKeys({
12536
- address: "address",
12537
- gatewayAddress: "gateway_address",
12538
- secondaryAddress: "secondary_address",
12539
- }),
12540
- ),
12541
- Schema.Null,
12542
- ]),
13087
+ Schema.Null,
13088
+ ]),
13089
+ ),
13090
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13091
+ }).pipe(
13092
+ Schema.encodeKeys({
13093
+ id: "id",
13094
+ healthCheckRate: "health_check_rate",
13095
+ name: "name",
13096
+ physport: "physport",
13097
+ priority: "priority",
13098
+ siteId: "site_id",
13099
+ staticAddressing: "static_addressing",
13100
+ vlanTag: "vlan_tag",
13101
+ }),
12543
13102
  ),
12544
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12545
- }).pipe(
12546
- Schema.encodeKeys({
12547
- id: "id",
12548
- healthCheckRate: "health_check_rate",
12549
- name: "name",
12550
- physport: "physport",
12551
- priority: "priority",
12552
- siteId: "site_id",
12553
- staticAddressing: "static_addressing",
12554
- vlanTag: "vlan_tag",
12555
- }),
12556
13103
  ),
12557
- ) as unknown as Schema.Schema<ListSiteWansResponse>;
13104
+ }) as unknown as Schema.Schema<ListSiteWansResponse>;
12558
13105
 
12559
13106
  export type ListSiteWansError = DefaultErrors;
12560
13107
 
12561
- export const listSiteWans: API.OperationMethod<
13108
+ export const listSiteWans: API.PaginatedOperationMethod<
12562
13109
  ListSiteWansRequest,
12563
13110
  ListSiteWansResponse,
12564
13111
  ListSiteWansError,
12565
13112
  Credentials | HttpClient.HttpClient
12566
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
13113
+ > & {
13114
+ pages: (
13115
+ input: ListSiteWansRequest,
13116
+ ) => stream.Stream<
13117
+ ListSiteWansResponse,
13118
+ ListSiteWansError,
13119
+ Credentials | HttpClient.HttpClient
13120
+ >;
13121
+ items: (input: ListSiteWansRequest) => stream.Stream<
13122
+ {
13123
+ id?: string | null;
13124
+ healthCheckRate?: "low" | "mid" | "high" | null;
13125
+ name?: string | null;
13126
+ physport?: number | null;
13127
+ priority?: number | null;
13128
+ siteId?: string | null;
13129
+ staticAddressing?: {
13130
+ address: string;
13131
+ gatewayAddress: string;
13132
+ secondaryAddress?: string | null;
13133
+ } | null;
13134
+ vlanTag?: number | null;
13135
+ },
13136
+ ListSiteWansError,
13137
+ Credentials | HttpClient.HttpClient
13138
+ >;
13139
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
12567
13140
  input: ListSiteWansRequest,
12568
13141
  output: ListSiteWansResponse,
12569
13142
  errors: [],
13143
+ pagination: {
13144
+ mode: "single",
13145
+ items: "result",
13146
+ } as const,
12570
13147
  }));
12571
13148
 
12572
13149
  export interface CreateSiteWanRequest {
@@ -12623,75 +13200,109 @@ export const CreateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12623
13200
  }),
12624
13201
  ) as unknown as Schema.Schema<CreateSiteWanRequest>;
12625
13202
 
12626
- export type CreateSiteWanResponse = {
12627
- id?: string | null;
12628
- healthCheckRate?: "low" | "mid" | "high" | null;
12629
- name?: string | null;
12630
- physport?: number | null;
12631
- priority?: number | null;
12632
- siteId?: string | null;
12633
- staticAddressing?: {
12634
- address: string;
12635
- gatewayAddress: string;
12636
- secondaryAddress?: string | null;
12637
- } | null;
12638
- vlanTag?: number | null;
12639
- }[];
13203
+ export interface CreateSiteWanResponse {
13204
+ result: {
13205
+ id?: string | null;
13206
+ healthCheckRate?: "low" | "mid" | "high" | null;
13207
+ name?: string | null;
13208
+ physport?: number | null;
13209
+ priority?: number | null;
13210
+ siteId?: string | null;
13211
+ staticAddressing?: {
13212
+ address: string;
13213
+ gatewayAddress: string;
13214
+ secondaryAddress?: string | null;
13215
+ } | null;
13216
+ vlanTag?: number | null;
13217
+ }[];
13218
+ }
12640
13219
 
12641
- export const CreateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
12642
- Schema.Struct({
12643
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12644
- healthCheckRate: Schema.optional(
12645
- Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null]),
12646
- ),
12647
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12648
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12649
- priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12650
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
12651
- staticAddressing: Schema.optional(
12652
- Schema.Union([
12653
- Schema.Struct({
12654
- address: Schema.String,
12655
- gatewayAddress: Schema.String,
12656
- secondaryAddress: Schema.optional(
12657
- Schema.Union([Schema.String, Schema.Null]),
13220
+ export const CreateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13221
+ result: Schema.Array(
13222
+ Schema.Struct({
13223
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13224
+ healthCheckRate: Schema.optional(
13225
+ Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null]),
13226
+ ),
13227
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13228
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13229
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13230
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
13231
+ staticAddressing: Schema.optional(
13232
+ Schema.Union([
13233
+ Schema.Struct({
13234
+ address: Schema.String,
13235
+ gatewayAddress: Schema.String,
13236
+ secondaryAddress: Schema.optional(
13237
+ Schema.Union([Schema.String, Schema.Null]),
13238
+ ),
13239
+ }).pipe(
13240
+ Schema.encodeKeys({
13241
+ address: "address",
13242
+ gatewayAddress: "gateway_address",
13243
+ secondaryAddress: "secondary_address",
13244
+ }),
12658
13245
  ),
12659
- }).pipe(
12660
- Schema.encodeKeys({
12661
- address: "address",
12662
- gatewayAddress: "gateway_address",
12663
- secondaryAddress: "secondary_address",
12664
- }),
12665
- ),
12666
- Schema.Null,
12667
- ]),
13246
+ Schema.Null,
13247
+ ]),
13248
+ ),
13249
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13250
+ }).pipe(
13251
+ Schema.encodeKeys({
13252
+ id: "id",
13253
+ healthCheckRate: "health_check_rate",
13254
+ name: "name",
13255
+ physport: "physport",
13256
+ priority: "priority",
13257
+ siteId: "site_id",
13258
+ staticAddressing: "static_addressing",
13259
+ vlanTag: "vlan_tag",
13260
+ }),
12668
13261
  ),
12669
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12670
- }).pipe(
12671
- Schema.encodeKeys({
12672
- id: "id",
12673
- healthCheckRate: "health_check_rate",
12674
- name: "name",
12675
- physport: "physport",
12676
- priority: "priority",
12677
- siteId: "site_id",
12678
- staticAddressing: "static_addressing",
12679
- vlanTag: "vlan_tag",
12680
- }),
12681
13262
  ),
12682
- ) as unknown as Schema.Schema<CreateSiteWanResponse>;
13263
+ }) as unknown as Schema.Schema<CreateSiteWanResponse>;
12683
13264
 
12684
13265
  export type CreateSiteWanError = DefaultErrors;
12685
13266
 
12686
- export const createSiteWan: API.OperationMethod<
13267
+ export const createSiteWan: API.PaginatedOperationMethod<
12687
13268
  CreateSiteWanRequest,
12688
13269
  CreateSiteWanResponse,
12689
13270
  CreateSiteWanError,
12690
13271
  Credentials | HttpClient.HttpClient
12691
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
13272
+ > & {
13273
+ pages: (
13274
+ input: CreateSiteWanRequest,
13275
+ ) => stream.Stream<
13276
+ CreateSiteWanResponse,
13277
+ CreateSiteWanError,
13278
+ Credentials | HttpClient.HttpClient
13279
+ >;
13280
+ items: (input: CreateSiteWanRequest) => stream.Stream<
13281
+ {
13282
+ id?: string | null;
13283
+ healthCheckRate?: "low" | "mid" | "high" | null;
13284
+ name?: string | null;
13285
+ physport?: number | null;
13286
+ priority?: number | null;
13287
+ siteId?: string | null;
13288
+ staticAddressing?: {
13289
+ address: string;
13290
+ gatewayAddress: string;
13291
+ secondaryAddress?: string | null;
13292
+ } | null;
13293
+ vlanTag?: number | null;
13294
+ },
13295
+ CreateSiteWanError,
13296
+ Credentials | HttpClient.HttpClient
13297
+ >;
13298
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
12692
13299
  input: CreateSiteWanRequest,
12693
13300
  output: CreateSiteWanResponse,
12694
13301
  errors: [],
13302
+ pagination: {
13303
+ mode: "single",
13304
+ items: "result",
13305
+ } as const,
12695
13306
  }));
12696
13307
 
12697
13308
  export interface UpdateSiteWanRequest {
@@ -12799,18 +13410,22 @@ export const UpdateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12799
13410
  ]),
12800
13411
  ),
12801
13412
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12802
- }).pipe(
12803
- Schema.encodeKeys({
12804
- id: "id",
12805
- healthCheckRate: "health_check_rate",
12806
- name: "name",
12807
- physport: "physport",
12808
- priority: "priority",
12809
- siteId: "site_id",
12810
- staticAddressing: "static_addressing",
12811
- vlanTag: "vlan_tag",
12812
- }),
12813
- ) as unknown as Schema.Schema<UpdateSiteWanResponse>;
13413
+ })
13414
+ .pipe(
13415
+ Schema.encodeKeys({
13416
+ id: "id",
13417
+ healthCheckRate: "health_check_rate",
13418
+ name: "name",
13419
+ physport: "physport",
13420
+ priority: "priority",
13421
+ siteId: "site_id",
13422
+ staticAddressing: "static_addressing",
13423
+ vlanTag: "vlan_tag",
13424
+ }),
13425
+ )
13426
+ .pipe(
13427
+ T.ResponsePath("result"),
13428
+ ) as unknown as Schema.Schema<UpdateSiteWanResponse>;
12814
13429
 
12815
13430
  export type UpdateSiteWanError = DefaultErrors;
12816
13431
 
@@ -12930,18 +13545,22 @@ export const PatchSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12930
13545
  ]),
12931
13546
  ),
12932
13547
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
12933
- }).pipe(
12934
- Schema.encodeKeys({
12935
- id: "id",
12936
- healthCheckRate: "health_check_rate",
12937
- name: "name",
12938
- physport: "physport",
12939
- priority: "priority",
12940
- siteId: "site_id",
12941
- staticAddressing: "static_addressing",
12942
- vlanTag: "vlan_tag",
12943
- }),
12944
- ) as unknown as Schema.Schema<PatchSiteWanResponse>;
13548
+ })
13549
+ .pipe(
13550
+ Schema.encodeKeys({
13551
+ id: "id",
13552
+ healthCheckRate: "health_check_rate",
13553
+ name: "name",
13554
+ physport: "physport",
13555
+ priority: "priority",
13556
+ siteId: "site_id",
13557
+ staticAddressing: "static_addressing",
13558
+ vlanTag: "vlan_tag",
13559
+ }),
13560
+ )
13561
+ .pipe(
13562
+ T.ResponsePath("result"),
13563
+ ) as unknown as Schema.Schema<PatchSiteWanResponse>;
12945
13564
 
12946
13565
  export type PatchSiteWanError = DefaultErrors;
12947
13566
 
@@ -13023,18 +13642,22 @@ export const DeleteSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13023
13642
  ]),
13024
13643
  ),
13025
13644
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13026
- }).pipe(
13027
- Schema.encodeKeys({
13028
- id: "id",
13029
- healthCheckRate: "health_check_rate",
13030
- name: "name",
13031
- physport: "physport",
13032
- priority: "priority",
13033
- siteId: "site_id",
13034
- staticAddressing: "static_addressing",
13035
- vlanTag: "vlan_tag",
13036
- }),
13037
- ) as unknown as Schema.Schema<DeleteSiteWanResponse>;
13645
+ })
13646
+ .pipe(
13647
+ Schema.encodeKeys({
13648
+ id: "id",
13649
+ healthCheckRate: "health_check_rate",
13650
+ name: "name",
13651
+ physport: "physport",
13652
+ priority: "priority",
13653
+ siteId: "site_id",
13654
+ staticAddressing: "static_addressing",
13655
+ vlanTag: "vlan_tag",
13656
+ }),
13657
+ )
13658
+ .pipe(
13659
+ T.ResponsePath("result"),
13660
+ ) as unknown as Schema.Schema<DeleteSiteWanResponse>;
13038
13661
 
13039
13662
  export type DeleteSiteWanError = DefaultErrors;
13040
13663