@distilled.cloud/cloudflare 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service magic-transit
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -11,38 +12,44 @@ import {} from "../errors.js";
11
12
  export const ListAppsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
13
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
13
14
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/apps" }));
14
- export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
15
- Schema.Struct({
16
- accountAppId: Schema.String,
17
- hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
18
- ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
19
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
20
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21
- }).pipe(Schema.encodeKeys({
22
- accountAppId: "account_app_id",
23
- hostnames: "hostnames",
24
- ipSubnets: "ip_subnets",
25
- name: "name",
26
- type: "type",
27
- })),
28
- Schema.Struct({
29
- managedAppId: Schema.String,
30
- hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31
- ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
32
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
33
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
34
- }).pipe(Schema.encodeKeys({
35
- managedAppId: "managed_app_id",
36
- hostnames: "hostnames",
37
- ipSubnets: "ip_subnets",
38
- name: "name",
39
- type: "type",
40
- })),
41
- ]));
42
- export const listApps = API.make(() => ({
15
+ export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
+ result: Schema.Array(Schema.Union([
17
+ Schema.Struct({
18
+ accountAppId: Schema.String,
19
+ hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
20
+ ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
21
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
23
+ }).pipe(Schema.encodeKeys({
24
+ accountAppId: "account_app_id",
25
+ hostnames: "hostnames",
26
+ ipSubnets: "ip_subnets",
27
+ name: "name",
28
+ type: "type",
29
+ })),
30
+ Schema.Struct({
31
+ managedAppId: Schema.String,
32
+ hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
33
+ ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
34
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
35
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
36
+ }).pipe(Schema.encodeKeys({
37
+ managedAppId: "managed_app_id",
38
+ hostnames: "hostnames",
39
+ ipSubnets: "ip_subnets",
40
+ name: "name",
41
+ type: "type",
42
+ })),
43
+ ])),
44
+ });
45
+ export const listApps = API.makePaginated(() => ({
43
46
  input: ListAppsRequest,
44
47
  output: ListAppsResponse,
45
48
  errors: [],
49
+ pagination: {
50
+ mode: "single",
51
+ items: "result",
52
+ },
46
53
  }));
47
54
  export const CreateAppRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
48
55
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -62,13 +69,15 @@ export const CreateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
62
69
  ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
63
70
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
64
71
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
65
- }).pipe(Schema.encodeKeys({
72
+ })
73
+ .pipe(Schema.encodeKeys({
66
74
  accountAppId: "account_app_id",
67
75
  hostnames: "hostnames",
68
76
  ipSubnets: "ip_subnets",
69
77
  name: "name",
70
78
  type: "type",
71
- }));
79
+ }))
80
+ .pipe(T.ResponsePath("result"));
72
81
  export const createApp = API.make(() => ({
73
82
  input: CreateAppRequest,
74
83
  output: CreateAppResponse,
@@ -96,13 +105,15 @@ export const UpdateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
96
105
  ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
97
106
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
98
107
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
99
- }).pipe(Schema.encodeKeys({
108
+ })
109
+ .pipe(Schema.encodeKeys({
100
110
  accountAppId: "account_app_id",
101
111
  hostnames: "hostnames",
102
112
  ipSubnets: "ip_subnets",
103
113
  name: "name",
104
114
  type: "type",
105
- }));
115
+ }))
116
+ .pipe(T.ResponsePath("result"));
106
117
  export const updateApp = API.make(() => ({
107
118
  input: UpdateAppRequest,
108
119
  output: UpdateAppResponse,
@@ -130,13 +141,15 @@ export const PatchAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
130
141
  ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
131
142
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
132
143
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
133
- }).pipe(Schema.encodeKeys({
144
+ })
145
+ .pipe(Schema.encodeKeys({
134
146
  accountAppId: "account_app_id",
135
147
  hostnames: "hostnames",
136
148
  ipSubnets: "ip_subnets",
137
149
  name: "name",
138
150
  type: "type",
139
- }));
151
+ }))
152
+ .pipe(T.ResponsePath("result"));
140
153
  export const patchApp = API.make(() => ({
141
154
  input: PatchAppRequest,
142
155
  output: PatchAppResponse,
@@ -155,13 +168,15 @@ export const DeleteAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
155
168
  ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
156
169
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
157
170
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
158
- }).pipe(Schema.encodeKeys({
171
+ })
172
+ .pipe(Schema.encodeKeys({
159
173
  accountAppId: "account_app_id",
160
174
  hostnames: "hostnames",
161
175
  ipSubnets: "ip_subnets",
162
176
  name: "name",
163
177
  type: "type",
164
- }));
178
+ }))
179
+ .pipe(T.ResponsePath("result"));
165
180
  export const deleteApp = API.make(() => ({
166
181
  input: DeleteAppRequest,
167
182
  output: DeleteAppResponse,
@@ -215,7 +230,7 @@ export const GetCfInterconnectResponse =
215
230
  })),
216
231
  Schema.Null,
217
232
  ])),
218
- });
233
+ }).pipe(T.ResponsePath("result"));
219
234
  export const getCfInterconnect = API.make(() => ({
220
235
  input: GetCfInterconnectRequest,
221
236
  output: GetCfInterconnectResponse,
@@ -268,7 +283,7 @@ export const ListCfInterconnectsResponse =
268
283
  }))),
269
284
  Schema.Null,
270
285
  ])),
271
- });
286
+ }).pipe(T.ResponsePath("result"));
272
287
  export const listCfInterconnects = API.make(() => ({
273
288
  input: ListCfInterconnectsRequest,
274
289
  output: ListCfInterconnectsResponse,
@@ -340,10 +355,12 @@ export const PutCfInterconnectResponse =
340
355
  })),
341
356
  Schema.Null,
342
357
  ])),
343
- }).pipe(Schema.encodeKeys({
358
+ })
359
+ .pipe(Schema.encodeKeys({
344
360
  modified: "modified",
345
361
  modifiedInterconnect: "modified_interconnect",
346
- }));
362
+ }))
363
+ .pipe(T.ResponsePath("result"));
347
364
  export const putCfInterconnect = API.make(() => ({
348
365
  input: PutCfInterconnectRequest,
349
366
  output: PutCfInterconnectResponse,
@@ -374,7 +391,8 @@ export const GetConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
374
391
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
375
392
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
376
393
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
377
- }).pipe(Schema.encodeKeys({
394
+ })
395
+ .pipe(Schema.encodeKeys({
378
396
  id: "id",
379
397
  activated: "activated",
380
398
  interruptWindowDurationHours: "interrupt_window_duration_hours",
@@ -386,7 +404,8 @@ export const GetConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
386
404
  lastHeartbeat: "last_heartbeat",
387
405
  lastSeenVersion: "last_seen_version",
388
406
  licenseKey: "license_key",
389
- }));
407
+ }))
408
+ .pipe(T.ResponsePath("result"));
390
409
  export const getConnector = API.make(() => ({
391
410
  input: GetConnectorRequest,
392
411
  output: GetConnectorResponse,
@@ -395,41 +414,47 @@ export const getConnector = API.make(() => ({
395
414
  export const ListConnectorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
396
415
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
397
416
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/connectors" }));
398
- export const ListConnectorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
399
- id: Schema.String,
400
- activated: Schema.Boolean,
401
- interruptWindowDurationHours: Schema.Number,
402
- interruptWindowHourOfDay: Schema.Number,
403
- lastUpdated: Schema.String,
404
- notes: Schema.String,
405
- timezone: Schema.String,
406
- device: Schema.optional(Schema.Union([
407
- Schema.Struct({
408
- id: Schema.String,
409
- serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
410
- }).pipe(Schema.encodeKeys({ id: "id", serialNumber: "serial_number" })),
411
- Schema.Null,
412
- ])),
413
- lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
414
- lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
415
- licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
416
- }).pipe(Schema.encodeKeys({
417
- id: "id",
418
- activated: "activated",
419
- interruptWindowDurationHours: "interrupt_window_duration_hours",
420
- interruptWindowHourOfDay: "interrupt_window_hour_of_day",
421
- lastUpdated: "last_updated",
422
- notes: "notes",
423
- timezone: "timezone",
424
- device: "device",
425
- lastHeartbeat: "last_heartbeat",
426
- lastSeenVersion: "last_seen_version",
427
- licenseKey: "license_key",
428
- })));
429
- export const listConnectors = API.make(() => ({
417
+ export const ListConnectorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
418
+ result: Schema.Array(Schema.Struct({
419
+ id: Schema.String,
420
+ activated: Schema.Boolean,
421
+ interruptWindowDurationHours: Schema.Number,
422
+ interruptWindowHourOfDay: Schema.Number,
423
+ lastUpdated: Schema.String,
424
+ notes: Schema.String,
425
+ timezone: Schema.String,
426
+ device: Schema.optional(Schema.Union([
427
+ Schema.Struct({
428
+ id: Schema.String,
429
+ serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
430
+ }).pipe(Schema.encodeKeys({ id: "id", serialNumber: "serial_number" })),
431
+ Schema.Null,
432
+ ])),
433
+ lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
434
+ lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
435
+ licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
436
+ }).pipe(Schema.encodeKeys({
437
+ id: "id",
438
+ activated: "activated",
439
+ interruptWindowDurationHours: "interrupt_window_duration_hours",
440
+ interruptWindowHourOfDay: "interrupt_window_hour_of_day",
441
+ lastUpdated: "last_updated",
442
+ notes: "notes",
443
+ timezone: "timezone",
444
+ device: "device",
445
+ lastHeartbeat: "last_heartbeat",
446
+ lastSeenVersion: "last_seen_version",
447
+ licenseKey: "license_key",
448
+ }))),
449
+ });
450
+ export const listConnectors = API.makePaginated(() => ({
430
451
  input: ListConnectorsRequest,
431
452
  output: ListConnectorsResponse,
432
453
  errors: [],
454
+ pagination: {
455
+ mode: "single",
456
+ items: "result",
457
+ },
433
458
  }));
434
459
  export const CreateConnectorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
435
460
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -474,7 +499,8 @@ export const CreateConnectorResponse =
474
499
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
475
500
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
476
501
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
477
- }).pipe(Schema.encodeKeys({
502
+ })
503
+ .pipe(Schema.encodeKeys({
478
504
  id: "id",
479
505
  activated: "activated",
480
506
  interruptWindowDurationHours: "interrupt_window_duration_hours",
@@ -486,7 +512,8 @@ export const CreateConnectorResponse =
486
512
  lastHeartbeat: "last_heartbeat",
487
513
  lastSeenVersion: "last_seen_version",
488
514
  licenseKey: "license_key",
489
- }));
515
+ }))
516
+ .pipe(T.ResponsePath("result"));
490
517
  export const createConnector = API.make(() => ({
491
518
  input: CreateConnectorRequest,
492
519
  output: CreateConnectorResponse,
@@ -531,7 +558,8 @@ export const UpdateConnectorResponse =
531
558
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
532
559
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
533
560
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
534
- }).pipe(Schema.encodeKeys({
561
+ })
562
+ .pipe(Schema.encodeKeys({
535
563
  id: "id",
536
564
  activated: "activated",
537
565
  interruptWindowDurationHours: "interrupt_window_duration_hours",
@@ -543,7 +571,8 @@ export const UpdateConnectorResponse =
543
571
  lastHeartbeat: "last_heartbeat",
544
572
  lastSeenVersion: "last_seen_version",
545
573
  licenseKey: "license_key",
546
- }));
574
+ }))
575
+ .pipe(T.ResponsePath("result"));
547
576
  export const updateConnector = API.make(() => ({
548
577
  input: UpdateConnectorRequest,
549
578
  output: UpdateConnectorResponse,
@@ -587,7 +616,8 @@ export const PatchConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
587
616
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
588
617
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
589
618
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
590
- }).pipe(Schema.encodeKeys({
619
+ })
620
+ .pipe(Schema.encodeKeys({
591
621
  id: "id",
592
622
  activated: "activated",
593
623
  interruptWindowDurationHours: "interrupt_window_duration_hours",
@@ -599,7 +629,8 @@ export const PatchConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
599
629
  lastHeartbeat: "last_heartbeat",
600
630
  lastSeenVersion: "last_seen_version",
601
631
  licenseKey: "license_key",
602
- }));
632
+ }))
633
+ .pipe(T.ResponsePath("result"));
603
634
  export const patchConnector = API.make(() => ({
604
635
  input: PatchConnectorRequest,
605
636
  output: PatchConnectorResponse,
@@ -631,7 +662,8 @@ export const DeleteConnectorResponse =
631
662
  lastHeartbeat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
632
663
  lastSeenVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
633
664
  licenseKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
634
- }).pipe(Schema.encodeKeys({
665
+ })
666
+ .pipe(Schema.encodeKeys({
635
667
  id: "id",
636
668
  activated: "activated",
637
669
  interruptWindowDurationHours: "interrupt_window_duration_hours",
@@ -643,7 +675,8 @@ export const DeleteConnectorResponse =
643
675
  lastHeartbeat: "last_heartbeat",
644
676
  lastSeenVersion: "last_seen_version",
645
677
  licenseKey: "license_key",
646
- }));
678
+ }))
679
+ .pipe(T.ResponsePath("result"));
647
680
  export const deleteConnector = API.make(() => ({
648
681
  input: DeleteConnectorRequest,
649
682
  output: DeleteConnectorResponse,
@@ -714,7 +747,7 @@ export const GetConnectorEventResponse =
714
747
  ]),
715
748
  n: Schema.Number,
716
749
  t: Schema.Number,
717
- });
750
+ }).pipe(T.ResponsePath("result"));
718
751
  export const getConnectorEvent = API.make(() => ({
719
752
  input: GetConnectorEventRequest,
720
753
  output: GetConnectorEventResponse,
@@ -743,7 +776,7 @@ export const ListConnectorEventsResponse =
743
776
  t: Schema.Number,
744
777
  })),
745
778
  cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
746
- });
779
+ }).pipe(T.ResponsePath("result"));
747
780
  export const listConnectorEvents = API.make(() => ({
748
781
  input: ListConnectorEventsRequest,
749
782
  output: ListConnectorEventsResponse,
@@ -815,7 +848,7 @@ export const ListConnectorEventLatestsResponse =
815
848
  n: Schema.Number,
816
849
  t: Schema.Number,
817
850
  })),
818
- });
851
+ }).pipe(T.ResponsePath("result"));
819
852
  export const listConnectorEventLatests = API.make(() => ({
820
853
  input: ListConnectorEventLatestsRequest,
821
854
  output: ListConnectorEventLatestsResponse,
@@ -1196,7 +1229,8 @@ export const GetConnectorSnapshotResponse =
1196
1229
  ])),
1197
1230
  uptimeIdleMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1198
1231
  uptimeTotalMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1199
- }).pipe(Schema.encodeKeys({
1232
+ })
1233
+ .pipe(Schema.encodeKeys({
1200
1234
  countReclaimFailures: "count_reclaim_failures",
1201
1235
  countReclaimedPaths: "count_reclaimed_paths",
1202
1236
  countRecordFailed: "count_record_failed",
@@ -1367,7 +1401,8 @@ export const GetConnectorSnapshotResponse =
1367
1401
  tunnels: "tunnels",
1368
1402
  uptimeIdleMs: "uptime_idle_ms",
1369
1403
  uptimeTotalMs: "uptime_total_ms",
1370
- }));
1404
+ }))
1405
+ .pipe(T.ResponsePath("result"));
1371
1406
  export const getConnectorSnapshot = API.make(() => ({
1372
1407
  input: GetConnectorSnapshotRequest,
1373
1408
  output: GetConnectorSnapshotResponse,
@@ -1393,7 +1428,7 @@ export const ListConnectorSnapshotsResponse =
1393
1428
  t: Schema.Number,
1394
1429
  })),
1395
1430
  cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1396
- });
1431
+ }).pipe(T.ResponsePath("result"));
1397
1432
  export const listConnectorSnapshots = API.make(() => ({
1398
1433
  input: ListConnectorSnapshotsRequest,
1399
1434
  output: ListConnectorSnapshotsResponse,
@@ -1947,7 +1982,7 @@ export const ListConnectorSnapshotLatestsResponse =
1947
1982
  uptimeIdleMs: "uptime_idle_ms",
1948
1983
  uptimeTotalMs: "uptime_total_ms",
1949
1984
  }))),
1950
- });
1985
+ }).pipe(T.ResponsePath("result"));
1951
1986
  export const listConnectorSnapshotLatests = API.make(() => ({
1952
1987
  input: ListConnectorSnapshotLatestsRequest,
1953
1988
  output: ListConnectorSnapshotLatestsResponse,
@@ -1972,11 +2007,13 @@ export const PskGenerateIpsecTunnelResponse =
1972
2007
  }).pipe(Schema.encodeKeys({ lastGeneratedOn: "last_generated_on" })),
1973
2008
  Schema.Null,
1974
2009
  ])),
1975
- }).pipe(Schema.encodeKeys({
2010
+ })
2011
+ .pipe(Schema.encodeKeys({
1976
2012
  ipsecTunnelId: "ipsec_tunnel_id",
1977
2013
  psk: "psk",
1978
2014
  pskMetadata: "psk_metadata",
1979
- }));
2015
+ }))
2016
+ .pipe(T.ResponsePath("result"));
1980
2017
  export const pskGenerateIpsecTunnel = API.make(() => ({
1981
2018
  input: PskGenerateIpsecTunnelRequest,
1982
2019
  output: PskGenerateIpsecTunnelResponse,
@@ -2089,7 +2126,9 @@ export const GetGreTunnelResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2089
2126
  })),
2090
2127
  Schema.Null,
2091
2128
  ])),
2092
- }).pipe(Schema.encodeKeys({ greTunnel: "gre_tunnel" }));
2129
+ })
2130
+ .pipe(Schema.encodeKeys({ greTunnel: "gre_tunnel" }))
2131
+ .pipe(T.ResponsePath("result"));
2093
2132
  export const getGreTunnel = API.make(() => ({
2094
2133
  input: GetGreTunnelRequest,
2095
2134
  output: GetGreTunnelResponse,
@@ -2198,7 +2237,9 @@ export const ListGreTunnelsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2198
2237
  }))),
2199
2238
  Schema.Null,
2200
2239
  ])),
2201
- }).pipe(Schema.encodeKeys({ greTunnels: "gre_tunnels" }));
2240
+ })
2241
+ .pipe(Schema.encodeKeys({ greTunnels: "gre_tunnels" }))
2242
+ .pipe(T.ResponsePath("result"));
2202
2243
  export const listGreTunnels = API.make(() => ({
2203
2244
  input: ListGreTunnelsRequest,
2204
2245
  output: ListGreTunnelsResponse,
@@ -2322,7 +2363,8 @@ export const CreateGreTunnelResponse =
2322
2363
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2323
2364
  mtu: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2324
2365
  ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2325
- }).pipe(Schema.encodeKeys({
2366
+ })
2367
+ .pipe(Schema.encodeKeys({
2326
2368
  id: "id",
2327
2369
  cloudflareGreEndpoint: "cloudflare_gre_endpoint",
2328
2370
  customerGreEndpoint: "customer_gre_endpoint",
@@ -2338,7 +2380,8 @@ export const CreateGreTunnelResponse =
2338
2380
  modifiedOn: "modified_on",
2339
2381
  mtu: "mtu",
2340
2382
  ttl: "ttl",
2341
- }));
2383
+ }))
2384
+ .pipe(T.ResponsePath("result"));
2342
2385
  export const createGreTunnel = API.make(() => ({
2343
2386
  input: CreateGreTunnelRequest,
2344
2387
  output: CreateGreTunnelResponse,
@@ -2485,10 +2528,12 @@ export const UpdateGreTunnelResponse =
2485
2528
  })),
2486
2529
  Schema.Null,
2487
2530
  ])),
2488
- }).pipe(Schema.encodeKeys({
2531
+ })
2532
+ .pipe(Schema.encodeKeys({
2489
2533
  modified: "modified",
2490
2534
  modifiedGreTunnel: "modified_gre_tunnel",
2491
- }));
2535
+ }))
2536
+ .pipe(T.ResponsePath("result"));
2492
2537
  export const updateGreTunnel = API.make(() => ({
2493
2538
  input: UpdateGreTunnelRequest,
2494
2539
  output: UpdateGreTunnelResponse,
@@ -2603,10 +2648,12 @@ export const DeleteGreTunnelResponse =
2603
2648
  })),
2604
2649
  Schema.Null,
2605
2650
  ])),
2606
- }).pipe(Schema.encodeKeys({
2651
+ })
2652
+ .pipe(Schema.encodeKeys({
2607
2653
  deleted: "deleted",
2608
2654
  deletedGreTunnel: "deleted_gre_tunnel",
2609
- }));
2655
+ }))
2656
+ .pipe(T.ResponsePath("result"));
2610
2657
  export const deleteGreTunnel = API.make(() => ({
2611
2658
  input: DeleteGreTunnelRequest,
2612
2659
  output: DeleteGreTunnelResponse,
@@ -2728,7 +2775,9 @@ export const GetIpsecTunnelResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2728
2775
  })),
2729
2776
  Schema.Null,
2730
2777
  ])),
2731
- }).pipe(Schema.encodeKeys({ ipsecTunnel: "ipsec_tunnel" }));
2778
+ })
2779
+ .pipe(Schema.encodeKeys({ ipsecTunnel: "ipsec_tunnel" }))
2780
+ .pipe(T.ResponsePath("result"));
2732
2781
  export const getIpsecTunnel = API.make(() => ({
2733
2782
  input: GetIpsecTunnelRequest,
2734
2783
  output: GetIpsecTunnelResponse,
@@ -2851,7 +2900,9 @@ export const ListIpsecTunnelsResponse =
2851
2900
  }))),
2852
2901
  Schema.Null,
2853
2902
  ])),
2854
- }).pipe(Schema.encodeKeys({ ipsecTunnels: "ipsec_tunnels" }));
2903
+ })
2904
+ .pipe(Schema.encodeKeys({ ipsecTunnels: "ipsec_tunnels" }))
2905
+ .pipe(T.ResponsePath("result"));
2855
2906
  export const listIpsecTunnels = API.make(() => ({
2856
2907
  input: ListIpsecTunnelsRequest,
2857
2908
  output: ListIpsecTunnelsResponse,
@@ -2995,7 +3046,8 @@ export const CreateIpsecTunnelResponse =
2995
3046
  Schema.Null,
2996
3047
  ])),
2997
3048
  replayProtection: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2998
- }).pipe(Schema.encodeKeys({
3049
+ })
3050
+ .pipe(Schema.encodeKeys({
2999
3051
  id: "id",
3000
3052
  cloudflareEndpoint: "cloudflare_endpoint",
3001
3053
  interfaceAddress: "interface_address",
@@ -3013,7 +3065,8 @@ export const CreateIpsecTunnelResponse =
3013
3065
  modifiedOn: "modified_on",
3014
3066
  pskMetadata: "psk_metadata",
3015
3067
  replayProtection: "replay_protection",
3016
- }));
3068
+ }))
3069
+ .pipe(T.ResponsePath("result"));
3017
3070
  export const createIpsecTunnel = API.make(() => ({
3018
3071
  input: CreateIpsecTunnelRequest,
3019
3072
  output: CreateIpsecTunnelResponse,
@@ -3184,10 +3237,12 @@ export const UpdateIpsecTunnelResponse =
3184
3237
  })),
3185
3238
  Schema.Null,
3186
3239
  ])),
3187
- }).pipe(Schema.encodeKeys({
3240
+ })
3241
+ .pipe(Schema.encodeKeys({
3188
3242
  modified: "modified",
3189
3243
  modifiedIpsecTunnel: "modified_ipsec_tunnel",
3190
- }));
3244
+ }))
3245
+ .pipe(T.ResponsePath("result"));
3191
3246
  export const updateIpsecTunnel = API.make(() => ({
3192
3247
  input: UpdateIpsecTunnelRequest,
3193
3248
  output: UpdateIpsecTunnelResponse,
@@ -3312,10 +3367,12 @@ export const DeleteIpsecTunnelResponse =
3312
3367
  })),
3313
3368
  Schema.Null,
3314
3369
  ])),
3315
- }).pipe(Schema.encodeKeys({
3370
+ })
3371
+ .pipe(Schema.encodeKeys({
3316
3372
  deleted: "deleted",
3317
3373
  deletedIpsecTunnel: "deleted_ipsec_tunnel",
3318
- }));
3374
+ }))
3375
+ .pipe(T.ResponsePath("result"));
3319
3376
  export const deleteIpsecTunnel = API.make(() => ({
3320
3377
  input: DeleteIpsecTunnelRequest,
3321
3378
  output: DeleteIpsecTunnelResponse,
@@ -3413,7 +3470,7 @@ export const GetPcapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3413
3470
  timeLimit: "time_limit",
3414
3471
  type: "type",
3415
3472
  })),
3416
- ]);
3473
+ ]).pipe(T.ResponsePath("result"));
3417
3474
  export const getPcap = API.make(() => ({
3418
3475
  input: GetPcapRequest,
3419
3476
  output: GetPcapResponse,
@@ -3422,99 +3479,105 @@ export const getPcap = API.make(() => ({
3422
3479
  export const ListPcapsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3423
3480
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3424
3481
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps" }));
3425
- export const ListPcapsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
3426
- Schema.Struct({
3427
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3428
- filterV1: Schema.optional(Schema.Union([
3429
- Schema.Struct({
3430
- destinationAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3431
- destinationPort: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3432
- protocol: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3433
- sourceAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3434
- sourcePort: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3435
- }).pipe(Schema.encodeKeys({
3436
- destinationAddress: "destination_address",
3437
- destinationPort: "destination_port",
3438
- protocol: "protocol",
3439
- sourceAddress: "source_address",
3440
- sourcePort: "source_port",
3441
- })),
3442
- Schema.Null,
3443
- ])),
3444
- offsetTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3445
- status: Schema.optional(Schema.Union([
3446
- Schema.Literals([
3447
- "unknown",
3448
- "success",
3449
- "pending",
3450
- "running",
3451
- "conversion_pending",
3452
- "conversion_running",
3453
- "complete",
3454
- "failed",
3455
- ]),
3456
- Schema.Null,
3457
- ])),
3458
- submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3459
- system: Schema.optional(Schema.Union([Schema.Literal("magic-transit"), Schema.Null])),
3460
- timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3461
- type: Schema.optional(Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null])),
3462
- }).pipe(Schema.encodeKeys({
3463
- id: "id",
3464
- filterV1: "filter_v1",
3465
- offsetTime: "offset_time",
3466
- status: "status",
3467
- submitted: "submitted",
3468
- system: "system",
3469
- timeLimit: "time_limit",
3470
- type: "type",
3471
- })),
3472
- Schema.Struct({
3473
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3474
- byteLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3475
- coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3476
- destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3477
- errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3478
- filterV1: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3479
- packetsCaptured: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3480
- status: Schema.optional(Schema.Union([
3481
- Schema.Literals([
3482
- "unknown",
3483
- "success",
3484
- "pending",
3485
- "running",
3486
- "conversion_pending",
3487
- "conversion_running",
3488
- "complete",
3489
- "failed",
3490
- ]),
3491
- Schema.Null,
3492
- ])),
3493
- stopRequested: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3494
- submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3495
- system: Schema.optional(Schema.Union([Schema.Literal("magic-transit"), Schema.Null])),
3496
- timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3497
- type: Schema.optional(Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null])),
3498
- }).pipe(Schema.encodeKeys({
3499
- id: "id",
3500
- byteLimit: "byte_limit",
3501
- coloName: "colo_name",
3502
- destinationConf: "destination_conf",
3503
- errorMessage: "error_message",
3504
- filterV1: "filter_v1",
3505
- packetsCaptured: "packets_captured",
3506
- status: "status",
3507
- stopRequested: "stop_requested",
3508
- submitted: "submitted",
3509
- system: "system",
3510
- timeLimit: "time_limit",
3511
- type: "type",
3512
- })),
3513
- ]));
3514
- export const listPcaps = API.make(() => ({
3482
+ export const ListPcapsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3483
+ result: Schema.Array(Schema.Union([
3484
+ Schema.Struct({
3485
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3486
+ filterV1: Schema.optional(Schema.Union([
3487
+ Schema.Struct({
3488
+ destinationAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3489
+ destinationPort: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3490
+ protocol: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3491
+ sourceAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3492
+ sourcePort: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3493
+ }).pipe(Schema.encodeKeys({
3494
+ destinationAddress: "destination_address",
3495
+ destinationPort: "destination_port",
3496
+ protocol: "protocol",
3497
+ sourceAddress: "source_address",
3498
+ sourcePort: "source_port",
3499
+ })),
3500
+ Schema.Null,
3501
+ ])),
3502
+ offsetTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3503
+ status: Schema.optional(Schema.Union([
3504
+ Schema.Literals([
3505
+ "unknown",
3506
+ "success",
3507
+ "pending",
3508
+ "running",
3509
+ "conversion_pending",
3510
+ "conversion_running",
3511
+ "complete",
3512
+ "failed",
3513
+ ]),
3514
+ Schema.Null,
3515
+ ])),
3516
+ submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3517
+ system: Schema.optional(Schema.Union([Schema.Literal("magic-transit"), Schema.Null])),
3518
+ timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3519
+ type: Schema.optional(Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null])),
3520
+ }).pipe(Schema.encodeKeys({
3521
+ id: "id",
3522
+ filterV1: "filter_v1",
3523
+ offsetTime: "offset_time",
3524
+ status: "status",
3525
+ submitted: "submitted",
3526
+ system: "system",
3527
+ timeLimit: "time_limit",
3528
+ type: "type",
3529
+ })),
3530
+ Schema.Struct({
3531
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3532
+ byteLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3533
+ coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3534
+ destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3535
+ errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3536
+ filterV1: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3537
+ packetsCaptured: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3538
+ status: Schema.optional(Schema.Union([
3539
+ Schema.Literals([
3540
+ "unknown",
3541
+ "success",
3542
+ "pending",
3543
+ "running",
3544
+ "conversion_pending",
3545
+ "conversion_running",
3546
+ "complete",
3547
+ "failed",
3548
+ ]),
3549
+ Schema.Null,
3550
+ ])),
3551
+ stopRequested: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3552
+ submitted: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3553
+ system: Schema.optional(Schema.Union([Schema.Literal("magic-transit"), Schema.Null])),
3554
+ timeLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3555
+ type: Schema.optional(Schema.Union([Schema.Literals(["simple", "full"]), Schema.Null])),
3556
+ }).pipe(Schema.encodeKeys({
3557
+ id: "id",
3558
+ byteLimit: "byte_limit",
3559
+ coloName: "colo_name",
3560
+ destinationConf: "destination_conf",
3561
+ errorMessage: "error_message",
3562
+ filterV1: "filter_v1",
3563
+ packetsCaptured: "packets_captured",
3564
+ status: "status",
3565
+ stopRequested: "stop_requested",
3566
+ submitted: "submitted",
3567
+ system: "system",
3568
+ timeLimit: "time_limit",
3569
+ type: "type",
3570
+ })),
3571
+ ])),
3572
+ });
3573
+ export const listPcaps = API.makePaginated(() => ({
3515
3574
  input: ListPcapsRequest,
3516
3575
  output: ListPcapsResponse,
3517
3576
  errors: [],
3577
+ pagination: {
3578
+ mode: "single",
3579
+ items: "result",
3580
+ },
3518
3581
  }));
3519
3582
  export const CreatePcapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3520
3583
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3632,7 +3695,7 @@ export const CreatePcapResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3632
3695
  timeLimit: "time_limit",
3633
3696
  type: "type",
3634
3697
  })),
3635
- ]);
3698
+ ]).pipe(T.ResponsePath("result"));
3636
3699
  export const createPcap = API.make(() => ({
3637
3700
  input: CreatePcapRequest,
3638
3701
  output: CreatePcapResponse,
@@ -3668,25 +3731,31 @@ export const GetPcapOwnershipRequest =
3668
3731
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3669
3732
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps/ownership" }));
3670
3733
  export const GetPcapOwnershipResponse =
3671
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
3672
- id: Schema.String,
3673
- destinationConf: Schema.String,
3674
- filename: Schema.String,
3675
- status: Schema.Literals(["pending", "success", "failed"]),
3676
- submitted: Schema.String,
3677
- validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3678
- }).pipe(Schema.encodeKeys({
3679
- id: "id",
3680
- destinationConf: "destination_conf",
3681
- filename: "filename",
3682
- status: "status",
3683
- submitted: "submitted",
3684
- validated: "validated",
3685
- })));
3686
- export const getPcapOwnership = API.make(() => ({
3734
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3735
+ result: Schema.Array(Schema.Struct({
3736
+ id: Schema.String,
3737
+ destinationConf: Schema.String,
3738
+ filename: Schema.String,
3739
+ status: Schema.Literals(["pending", "success", "failed"]),
3740
+ submitted: Schema.String,
3741
+ validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3742
+ }).pipe(Schema.encodeKeys({
3743
+ id: "id",
3744
+ destinationConf: "destination_conf",
3745
+ filename: "filename",
3746
+ status: "status",
3747
+ submitted: "submitted",
3748
+ validated: "validated",
3749
+ }))),
3750
+ });
3751
+ export const getPcapOwnership = API.makePaginated(() => ({
3687
3752
  input: GetPcapOwnershipRequest,
3688
3753
  output: GetPcapOwnershipResponse,
3689
3754
  errors: [],
3755
+ pagination: {
3756
+ mode: "single",
3757
+ items: "result",
3758
+ },
3690
3759
  }));
3691
3760
  export const CreatePcapOwnershipRequest =
3692
3761
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -3701,14 +3770,16 @@ export const CreatePcapOwnershipResponse =
3701
3770
  status: Schema.Literals(["pending", "success", "failed"]),
3702
3771
  submitted: Schema.String,
3703
3772
  validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3704
- }).pipe(Schema.encodeKeys({
3773
+ })
3774
+ .pipe(Schema.encodeKeys({
3705
3775
  id: "id",
3706
3776
  destinationConf: "destination_conf",
3707
3777
  filename: "filename",
3708
3778
  status: "status",
3709
3779
  submitted: "submitted",
3710
3780
  validated: "validated",
3711
- }));
3781
+ }))
3782
+ .pipe(T.ResponsePath("result"));
3712
3783
  export const createPcapOwnership = API.make(() => ({
3713
3784
  input: CreatePcapOwnershipRequest,
3714
3785
  output: CreatePcapOwnershipResponse,
@@ -3749,14 +3820,16 @@ export const ValidatePcapOwnershipResponse =
3749
3820
  status: Schema.Literals(["pending", "success", "failed"]),
3750
3821
  submitted: Schema.String,
3751
3822
  validated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3752
- }).pipe(Schema.encodeKeys({
3823
+ })
3824
+ .pipe(Schema.encodeKeys({
3753
3825
  id: "id",
3754
3826
  destinationConf: "destination_conf",
3755
3827
  filename: "filename",
3756
3828
  status: "status",
3757
3829
  submitted: "submitted",
3758
3830
  validated: "validated",
3759
- }));
3831
+ }))
3832
+ .pipe(T.ResponsePath("result"));
3760
3833
  export const validatePcapOwnership = API.make(() => ({
3761
3834
  input: ValidatePcapOwnershipRequest,
3762
3835
  output: ValidatePcapOwnershipResponse,
@@ -3811,10 +3884,12 @@ export const BulkPutCfInterconnectsResponse =
3811
3884
  }))),
3812
3885
  Schema.Null,
3813
3886
  ])),
3814
- }).pipe(Schema.encodeKeys({
3887
+ })
3888
+ .pipe(Schema.encodeKeys({
3815
3889
  modified: "modified",
3816
3890
  modifiedInterconnects: "modified_interconnects",
3817
- }));
3891
+ }))
3892
+ .pipe(T.ResponsePath("result"));
3818
3893
  export const bulkPutCfInterconnects = API.make(() => ({
3819
3894
  input: BulkPutCfInterconnectsRequest,
3820
3895
  output: BulkPutCfInterconnectsResponse,
@@ -3927,10 +4002,12 @@ export const BulkPutGreTunnelsResponse =
3927
4002
  }))),
3928
4003
  Schema.Null,
3929
4004
  ])),
3930
- }).pipe(Schema.encodeKeys({
4005
+ })
4006
+ .pipe(Schema.encodeKeys({
3931
4007
  modified: "modified",
3932
4008
  modifiedGreTunnels: "modified_gre_tunnels",
3933
- }));
4009
+ }))
4010
+ .pipe(T.ResponsePath("result"));
3934
4011
  export const bulkPutGreTunnels = API.make(() => ({
3935
4012
  input: BulkPutGreTunnelsRequest,
3936
4013
  output: BulkPutGreTunnelsResponse,
@@ -4055,10 +4132,12 @@ export const BulkPutIpsecTunnelsResponse =
4055
4132
  }))),
4056
4133
  Schema.Null,
4057
4134
  ])),
4058
- }).pipe(Schema.encodeKeys({
4135
+ })
4136
+ .pipe(Schema.encodeKeys({
4059
4137
  modified: "modified",
4060
4138
  modifiedIpsecTunnels: "modified_ipsec_tunnels",
4061
- }));
4139
+ }))
4140
+ .pipe(T.ResponsePath("result"));
4062
4141
  export const bulkPutIpsecTunnels = API.make(() => ({
4063
4142
  input: BulkPutIpsecTunnelsRequest,
4064
4143
  output: BulkPutIpsecTunnelsResponse,
@@ -4102,10 +4181,12 @@ export const BulkPutRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4102
4181
  }))),
4103
4182
  Schema.Null,
4104
4183
  ])),
4105
- }).pipe(Schema.encodeKeys({
4184
+ })
4185
+ .pipe(Schema.encodeKeys({
4106
4186
  modified: "modified",
4107
4187
  modifiedRoutes: "modified_routes",
4108
- }));
4188
+ }))
4189
+ .pipe(T.ResponsePath("result"));
4109
4190
  export const bulkPutRoutes = API.make(() => ({
4110
4191
  input: BulkPutRoutesRequest,
4111
4192
  output: BulkPutRoutesResponse,
@@ -4143,7 +4224,7 @@ export const GetRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4143
4224
  })),
4144
4225
  Schema.Null,
4145
4226
  ])),
4146
- });
4227
+ }).pipe(T.ResponsePath("result"));
4147
4228
  export const getRoute = API.make(() => ({
4148
4229
  input: GetRouteRequest,
4149
4230
  output: GetRouteResponse,
@@ -4177,7 +4258,7 @@ export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4177
4258
  }))),
4178
4259
  Schema.Null,
4179
4260
  ])),
4180
- });
4261
+ }).pipe(T.ResponsePath("result"));
4181
4262
  export const listRoutes = API.make(() => ({
4182
4263
  input: ListRoutesRequest,
4183
4264
  output: ListRoutesResponse,
@@ -4217,7 +4298,8 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4217
4298
  Schema.Null,
4218
4299
  ])),
4219
4300
  weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4220
- }).pipe(Schema.encodeKeys({
4301
+ })
4302
+ .pipe(Schema.encodeKeys({
4221
4303
  id: "id",
4222
4304
  nexthop: "nexthop",
4223
4305
  prefix: "prefix",
@@ -4227,7 +4309,8 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4227
4309
  modifiedOn: "modified_on",
4228
4310
  scope: "scope",
4229
4311
  weight: "weight",
4230
- }));
4312
+ }))
4313
+ .pipe(T.ResponsePath("result"));
4231
4314
  export const createRoute = API.make(() => ({
4232
4315
  input: CreateRouteRequest,
4233
4316
  output: CreateRouteResponse,
@@ -4278,7 +4361,12 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4278
4361
  })),
4279
4362
  Schema.Null,
4280
4363
  ])),
4281
- }).pipe(Schema.encodeKeys({ modified: "modified", modifiedRoute: "modified_route" }));
4364
+ })
4365
+ .pipe(Schema.encodeKeys({
4366
+ modified: "modified",
4367
+ modifiedRoute: "modified_route",
4368
+ }))
4369
+ .pipe(T.ResponsePath("result"));
4282
4370
  export const updateRoute = API.make(() => ({
4283
4371
  input: UpdateRouteRequest,
4284
4372
  output: UpdateRouteResponse,
@@ -4317,7 +4405,9 @@ export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4317
4405
  })),
4318
4406
  Schema.Null,
4319
4407
  ])),
4320
- }).pipe(Schema.encodeKeys({ deleted: "deleted", deletedRoute: "deleted_route" }));
4408
+ })
4409
+ .pipe(Schema.encodeKeys({ deleted: "deleted", deletedRoute: "deleted_route" }))
4410
+ .pipe(T.ResponsePath("result"));
4321
4411
  export const deleteRoute = API.make(() => ({
4322
4412
  input: DeleteRouteRequest,
4323
4413
  output: DeleteRouteResponse,
@@ -4352,7 +4442,9 @@ export const EmptyRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4352
4442
  }))),
4353
4443
  Schema.Null,
4354
4444
  ])),
4355
- }).pipe(Schema.encodeKeys({ deleted: "deleted", deletedRoutes: "deleted_routes" }));
4445
+ })
4446
+ .pipe(Schema.encodeKeys({ deleted: "deleted", deletedRoutes: "deleted_routes" }))
4447
+ .pipe(T.ResponsePath("result"));
4356
4448
  export const emptyRoute = API.make(() => ({
4357
4449
  input: EmptyRouteRequest,
4358
4450
  output: EmptyRouteResponse,
@@ -4380,7 +4472,8 @@ export const GetSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4380
4472
  ])),
4381
4473
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4382
4474
  secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4383
- }).pipe(Schema.encodeKeys({
4475
+ })
4476
+ .pipe(Schema.encodeKeys({
4384
4477
  id: "id",
4385
4478
  connectorId: "connector_id",
4386
4479
  description: "description",
@@ -4388,7 +4481,8 @@ export const GetSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4388
4481
  location: "location",
4389
4482
  name: "name",
4390
4483
  secondaryConnectorId: "secondary_connector_id",
4391
- }));
4484
+ }))
4485
+ .pipe(T.ResponsePath("result"));
4392
4486
  export const getSite = API.make(() => ({
4393
4487
  input: GetSiteRequest,
4394
4488
  output: GetSiteResponse,
@@ -4398,33 +4492,39 @@ export const ListSitesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4398
4492
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4399
4493
  connectorid: Schema.optional(Schema.String).pipe(T.HttpQuery("connectorid")),
4400
4494
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/sites" }));
4401
- export const ListSitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
4402
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4403
- connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4404
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4405
- haMode: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4406
- location: Schema.optional(Schema.Union([
4407
- Schema.Struct({
4408
- lat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4409
- lon: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4410
- }),
4411
- Schema.Null,
4412
- ])),
4413
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4414
- secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4415
- }).pipe(Schema.encodeKeys({
4416
- id: "id",
4417
- connectorId: "connector_id",
4418
- description: "description",
4419
- haMode: "ha_mode",
4420
- location: "location",
4421
- name: "name",
4422
- secondaryConnectorId: "secondary_connector_id",
4423
- })));
4424
- export const listSites = API.make(() => ({
4495
+ export const ListSitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4496
+ result: Schema.Array(Schema.Struct({
4497
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4498
+ connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4499
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4500
+ haMode: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4501
+ location: Schema.optional(Schema.Union([
4502
+ Schema.Struct({
4503
+ lat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4504
+ lon: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4505
+ }),
4506
+ Schema.Null,
4507
+ ])),
4508
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4509
+ secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4510
+ }).pipe(Schema.encodeKeys({
4511
+ id: "id",
4512
+ connectorId: "connector_id",
4513
+ description: "description",
4514
+ haMode: "ha_mode",
4515
+ location: "location",
4516
+ name: "name",
4517
+ secondaryConnectorId: "secondary_connector_id",
4518
+ }))),
4519
+ });
4520
+ export const listSites = API.makePaginated(() => ({
4425
4521
  input: ListSitesRequest,
4426
4522
  output: ListSitesResponse,
4427
4523
  errors: [],
4524
+ pagination: {
4525
+ mode: "single",
4526
+ items: "result",
4527
+ },
4428
4528
  }));
4429
4529
  export const CreateSiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4430
4530
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4459,7 +4559,8 @@ export const CreateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4459
4559
  ])),
4460
4560
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4461
4561
  secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4462
- }).pipe(Schema.encodeKeys({
4562
+ })
4563
+ .pipe(Schema.encodeKeys({
4463
4564
  id: "id",
4464
4565
  connectorId: "connector_id",
4465
4566
  description: "description",
@@ -4467,7 +4568,8 @@ export const CreateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4467
4568
  location: "location",
4468
4569
  name: "name",
4469
4570
  secondaryConnectorId: "secondary_connector_id",
4470
- }));
4571
+ }))
4572
+ .pipe(T.ResponsePath("result"));
4471
4573
  export const createSite = API.make(() => ({
4472
4574
  input: CreateSiteRequest,
4473
4575
  output: CreateSiteResponse,
@@ -4508,7 +4610,8 @@ export const UpdateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4508
4610
  ])),
4509
4611
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4510
4612
  secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4511
- }).pipe(Schema.encodeKeys({
4613
+ })
4614
+ .pipe(Schema.encodeKeys({
4512
4615
  id: "id",
4513
4616
  connectorId: "connector_id",
4514
4617
  description: "description",
@@ -4516,7 +4619,8 @@ export const UpdateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4516
4619
  location: "location",
4517
4620
  name: "name",
4518
4621
  secondaryConnectorId: "secondary_connector_id",
4519
- }));
4622
+ }))
4623
+ .pipe(T.ResponsePath("result"));
4520
4624
  export const updateSite = API.make(() => ({
4521
4625
  input: UpdateSiteRequest,
4522
4626
  output: UpdateSiteResponse,
@@ -4557,7 +4661,8 @@ export const PatchSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4557
4661
  ])),
4558
4662
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4559
4663
  secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4560
- }).pipe(Schema.encodeKeys({
4664
+ })
4665
+ .pipe(Schema.encodeKeys({
4561
4666
  id: "id",
4562
4667
  connectorId: "connector_id",
4563
4668
  description: "description",
@@ -4565,7 +4670,8 @@ export const PatchSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4565
4670
  location: "location",
4566
4671
  name: "name",
4567
4672
  secondaryConnectorId: "secondary_connector_id",
4568
- }));
4673
+ }))
4674
+ .pipe(T.ResponsePath("result"));
4569
4675
  export const patchSite = API.make(() => ({
4570
4676
  input: PatchSiteRequest,
4571
4677
  output: PatchSiteResponse,
@@ -4592,7 +4698,8 @@ export const DeleteSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4592
4698
  ])),
4593
4699
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4594
4700
  secondaryConnectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4595
- }).pipe(Schema.encodeKeys({
4701
+ })
4702
+ .pipe(Schema.encodeKeys({
4596
4703
  id: "id",
4597
4704
  connectorId: "connector_id",
4598
4705
  description: "description",
@@ -4600,7 +4707,8 @@ export const DeleteSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4600
4707
  location: "location",
4601
4708
  name: "name",
4602
4709
  secondaryConnectorId: "secondary_connector_id",
4603
- }));
4710
+ }))
4711
+ .pipe(T.ResponsePath("result"));
4604
4712
  export const deleteSite = API.make(() => ({
4605
4713
  input: DeleteSiteRequest,
4606
4714
  output: DeleteSiteResponse,
@@ -4656,7 +4764,8 @@ export const GetSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4656
4764
  Schema.Null,
4657
4765
  ])),
4658
4766
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4659
- }).pipe(Schema.encodeKeys({
4767
+ })
4768
+ .pipe(Schema.encodeKeys({
4660
4769
  id: "id",
4661
4770
  description: "description",
4662
4771
  forwardLocally: "forward_locally",
@@ -4665,7 +4774,8 @@ export const GetSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4665
4774
  name: "name",
4666
4775
  protocols: "protocols",
4667
4776
  unidirectional: "unidirectional",
4668
- }));
4777
+ }))
4778
+ .pipe(T.ResponsePath("result"));
4669
4779
  export const getSiteAcl = API.make(() => ({
4670
4780
  input: GetSiteAclRequest,
4671
4781
  output: GetSiteAclResponse,
@@ -4678,62 +4788,68 @@ export const ListSiteAclsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4678
4788
  method: "GET",
4679
4789
  path: "/accounts/{account_id}/magic/sites/{siteId}/acls",
4680
4790
  }));
4681
- export const ListSiteAclsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
4682
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4683
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4684
- forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4685
- lan_1: Schema.optional(Schema.Union([
4686
- Schema.Struct({
4687
- lanId: Schema.String,
4688
- lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4689
- portRanges: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4690
- ports: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
4691
- subnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4692
- }).pipe(Schema.encodeKeys({
4693
- lanId: "lan_id",
4694
- lanName: "lan_name",
4695
- portRanges: "port_ranges",
4696
- ports: "ports",
4697
- subnets: "subnets",
4698
- })),
4699
- Schema.Null,
4700
- ])),
4701
- lan_2: Schema.optional(Schema.Union([
4702
- Schema.Struct({
4703
- lanId: Schema.String,
4704
- lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4705
- portRanges: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4706
- ports: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
4707
- subnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4708
- }).pipe(Schema.encodeKeys({
4709
- lanId: "lan_id",
4710
- lanName: "lan_name",
4711
- portRanges: "port_ranges",
4712
- ports: "ports",
4713
- subnets: "subnets",
4714
- })),
4715
- Schema.Null,
4716
- ])),
4717
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4718
- protocols: Schema.optional(Schema.Union([
4719
- Schema.Array(Schema.Literals(["tcp", "udp", "icmp"])),
4720
- Schema.Null,
4721
- ])),
4722
- unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4723
- }).pipe(Schema.encodeKeys({
4724
- id: "id",
4725
- description: "description",
4726
- forwardLocally: "forward_locally",
4727
- lan_1: "lan_1",
4728
- lan_2: "lan_2",
4729
- name: "name",
4730
- protocols: "protocols",
4731
- unidirectional: "unidirectional",
4732
- })));
4733
- export const listSiteAcls = API.make(() => ({
4791
+ export const ListSiteAclsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4792
+ result: Schema.Array(Schema.Struct({
4793
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4794
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4795
+ forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4796
+ lan_1: Schema.optional(Schema.Union([
4797
+ Schema.Struct({
4798
+ lanId: Schema.String,
4799
+ lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4800
+ portRanges: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4801
+ ports: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
4802
+ subnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4803
+ }).pipe(Schema.encodeKeys({
4804
+ lanId: "lan_id",
4805
+ lanName: "lan_name",
4806
+ portRanges: "port_ranges",
4807
+ ports: "ports",
4808
+ subnets: "subnets",
4809
+ })),
4810
+ Schema.Null,
4811
+ ])),
4812
+ lan_2: Schema.optional(Schema.Union([
4813
+ Schema.Struct({
4814
+ lanId: Schema.String,
4815
+ lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4816
+ portRanges: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4817
+ ports: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
4818
+ subnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
4819
+ }).pipe(Schema.encodeKeys({
4820
+ lanId: "lan_id",
4821
+ lanName: "lan_name",
4822
+ portRanges: "port_ranges",
4823
+ ports: "ports",
4824
+ subnets: "subnets",
4825
+ })),
4826
+ Schema.Null,
4827
+ ])),
4828
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4829
+ protocols: Schema.optional(Schema.Union([
4830
+ Schema.Array(Schema.Literals(["tcp", "udp", "icmp"])),
4831
+ Schema.Null,
4832
+ ])),
4833
+ unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4834
+ }).pipe(Schema.encodeKeys({
4835
+ id: "id",
4836
+ description: "description",
4837
+ forwardLocally: "forward_locally",
4838
+ lan_1: "lan_1",
4839
+ lan_2: "lan_2",
4840
+ name: "name",
4841
+ protocols: "protocols",
4842
+ unidirectional: "unidirectional",
4843
+ }))),
4844
+ });
4845
+ export const listSiteAcls = API.makePaginated(() => ({
4734
4846
  input: ListSiteAclsRequest,
4735
4847
  output: ListSiteAclsResponse,
4736
4848
  errors: [],
4849
+ pagination: {
4850
+ mode: "single",
4851
+ items: "result",
4852
+ },
4737
4853
  }));
4738
4854
  export const CreateSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4739
4855
  siteId: Schema.String.pipe(T.HttpPath("siteId")),
@@ -4823,7 +4939,8 @@ export const CreateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4823
4939
  Schema.Null,
4824
4940
  ])),
4825
4941
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4826
- }).pipe(Schema.encodeKeys({
4942
+ })
4943
+ .pipe(Schema.encodeKeys({
4827
4944
  id: "id",
4828
4945
  description: "description",
4829
4946
  forwardLocally: "forward_locally",
@@ -4832,7 +4949,8 @@ export const CreateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4832
4949
  name: "name",
4833
4950
  protocols: "protocols",
4834
4951
  unidirectional: "unidirectional",
4835
- }));
4952
+ }))
4953
+ .pipe(T.ResponsePath("result"));
4836
4954
  export const createSiteAcl = API.make(() => ({
4837
4955
  input: CreateSiteAclRequest,
4838
4956
  output: CreateSiteAclResponse,
@@ -4927,7 +5045,8 @@ export const UpdateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4927
5045
  Schema.Null,
4928
5046
  ])),
4929
5047
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4930
- }).pipe(Schema.encodeKeys({
5048
+ })
5049
+ .pipe(Schema.encodeKeys({
4931
5050
  id: "id",
4932
5051
  description: "description",
4933
5052
  forwardLocally: "forward_locally",
@@ -4936,7 +5055,8 @@ export const UpdateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4936
5055
  name: "name",
4937
5056
  protocols: "protocols",
4938
5057
  unidirectional: "unidirectional",
4939
- }));
5058
+ }))
5059
+ .pipe(T.ResponsePath("result"));
4940
5060
  export const updateSiteAcl = API.make(() => ({
4941
5061
  input: UpdateSiteAclRequest,
4942
5062
  output: UpdateSiteAclResponse,
@@ -5031,7 +5151,8 @@ export const PatchSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5031
5151
  Schema.Null,
5032
5152
  ])),
5033
5153
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5034
- }).pipe(Schema.encodeKeys({
5154
+ })
5155
+ .pipe(Schema.encodeKeys({
5035
5156
  id: "id",
5036
5157
  description: "description",
5037
5158
  forwardLocally: "forward_locally",
@@ -5040,7 +5161,8 @@ export const PatchSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5040
5161
  name: "name",
5041
5162
  protocols: "protocols",
5042
5163
  unidirectional: "unidirectional",
5043
- }));
5164
+ }))
5165
+ .pipe(T.ResponsePath("result"));
5044
5166
  export const patchSiteAcl = API.make(() => ({
5045
5167
  input: PatchSiteAclRequest,
5046
5168
  output: PatchSiteAclResponse,
@@ -5096,7 +5218,8 @@ export const DeleteSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5096
5218
  Schema.Null,
5097
5219
  ])),
5098
5220
  unidirectional: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5099
- }).pipe(Schema.encodeKeys({
5221
+ })
5222
+ .pipe(Schema.encodeKeys({
5100
5223
  id: "id",
5101
5224
  description: "description",
5102
5225
  forwardLocally: "forward_locally",
@@ -5105,7 +5228,8 @@ export const DeleteSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5105
5228
  name: "name",
5106
5229
  protocols: "protocols",
5107
5230
  unidirectional: "unidirectional",
5108
- }));
5231
+ }))
5232
+ .pipe(T.ResponsePath("result"));
5109
5233
  export const deleteSiteAcl = API.make(() => ({
5110
5234
  input: DeleteSiteAclRequest,
5111
5235
  output: DeleteSiteAclResponse,
@@ -5185,7 +5309,8 @@ export const GetSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5185
5309
  Schema.Null,
5186
5310
  ])),
5187
5311
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5188
- }).pipe(Schema.encodeKeys({
5312
+ })
5313
+ .pipe(Schema.encodeKeys({
5189
5314
  id: "id",
5190
5315
  haLink: "ha_link",
5191
5316
  name: "name",
@@ -5195,7 +5320,8 @@ export const GetSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5195
5320
  siteId: "site_id",
5196
5321
  staticAddressing: "static_addressing",
5197
5322
  vlanTag: "vlan_tag",
5198
- }));
5323
+ }))
5324
+ .pipe(T.ResponsePath("result"));
5199
5325
  export const getSiteLan = API.make(() => ({
5200
5326
  input: GetSiteLanRequest,
5201
5327
  output: GetSiteLanResponse,
@@ -5208,87 +5334,93 @@ export const ListSiteLansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5208
5334
  method: "GET",
5209
5335
  path: "/accounts/{account_id}/magic/sites/{siteId}/lans",
5210
5336
  }));
5211
- export const ListSiteLansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
5212
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5213
- haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5214
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5215
- nat: Schema.optional(Schema.Union([
5216
- Schema.Struct({
5217
- staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5218
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5219
- Schema.Null,
5220
- ])),
5221
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5222
- routedSubnets: Schema.optional(Schema.Union([
5223
- Schema.Array(Schema.Struct({
5224
- nextHop: Schema.String,
5225
- prefix: Schema.String,
5226
- nat: Schema.optional(Schema.Union([
5227
- Schema.Struct({
5228
- staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5229
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5230
- Schema.Null,
5231
- ])),
5232
- }).pipe(Schema.encodeKeys({
5233
- nextHop: "next_hop",
5234
- prefix: "prefix",
5235
- nat: "nat",
5236
- }))),
5237
- Schema.Null,
5238
- ])),
5239
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5240
- staticAddressing: Schema.optional(Schema.Union([
5241
- Schema.Struct({
5242
- address: Schema.String,
5243
- dhcpRelay: Schema.optional(Schema.Union([
5244
- Schema.Struct({
5245
- serverAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5246
- }).pipe(Schema.encodeKeys({ serverAddresses: "server_addresses" })),
5247
- Schema.Null,
5248
- ])),
5249
- dhcpServer: Schema.optional(Schema.Union([
5250
- Schema.Struct({
5251
- dhcpPoolEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5252
- dhcpPoolStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5253
- dnsServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5254
- dnsServers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5255
- reservations: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5256
- }).pipe(Schema.encodeKeys({
5257
- dhcpPoolEnd: "dhcp_pool_end",
5258
- dhcpPoolStart: "dhcp_pool_start",
5259
- dnsServer: "dns_server",
5260
- dnsServers: "dns_servers",
5261
- reservations: "reservations",
5262
- })),
5263
- Schema.Null,
5264
- ])),
5265
- secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5266
- virtualAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5267
- }).pipe(Schema.encodeKeys({
5268
- address: "address",
5269
- dhcpRelay: "dhcp_relay",
5270
- dhcpServer: "dhcp_server",
5271
- secondaryAddress: "secondary_address",
5272
- virtualAddress: "virtual_address",
5273
- })),
5274
- Schema.Null,
5275
- ])),
5276
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5277
- }).pipe(Schema.encodeKeys({
5278
- id: "id",
5279
- haLink: "ha_link",
5280
- name: "name",
5281
- nat: "nat",
5282
- physport: "physport",
5283
- routedSubnets: "routed_subnets",
5284
- siteId: "site_id",
5285
- staticAddressing: "static_addressing",
5286
- vlanTag: "vlan_tag",
5287
- })));
5288
- export const listSiteLans = API.make(() => ({
5337
+ export const ListSiteLansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5338
+ result: Schema.Array(Schema.Struct({
5339
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5340
+ haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5341
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5342
+ nat: Schema.optional(Schema.Union([
5343
+ Schema.Struct({
5344
+ staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5345
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5346
+ Schema.Null,
5347
+ ])),
5348
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5349
+ routedSubnets: Schema.optional(Schema.Union([
5350
+ Schema.Array(Schema.Struct({
5351
+ nextHop: Schema.String,
5352
+ prefix: Schema.String,
5353
+ nat: Schema.optional(Schema.Union([
5354
+ Schema.Struct({
5355
+ staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5356
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5357
+ Schema.Null,
5358
+ ])),
5359
+ }).pipe(Schema.encodeKeys({
5360
+ nextHop: "next_hop",
5361
+ prefix: "prefix",
5362
+ nat: "nat",
5363
+ }))),
5364
+ Schema.Null,
5365
+ ])),
5366
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5367
+ staticAddressing: Schema.optional(Schema.Union([
5368
+ Schema.Struct({
5369
+ address: Schema.String,
5370
+ dhcpRelay: Schema.optional(Schema.Union([
5371
+ Schema.Struct({
5372
+ serverAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5373
+ }).pipe(Schema.encodeKeys({ serverAddresses: "server_addresses" })),
5374
+ Schema.Null,
5375
+ ])),
5376
+ dhcpServer: Schema.optional(Schema.Union([
5377
+ Schema.Struct({
5378
+ dhcpPoolEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5379
+ dhcpPoolStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5380
+ dnsServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5381
+ dnsServers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5382
+ reservations: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5383
+ }).pipe(Schema.encodeKeys({
5384
+ dhcpPoolEnd: "dhcp_pool_end",
5385
+ dhcpPoolStart: "dhcp_pool_start",
5386
+ dnsServer: "dns_server",
5387
+ dnsServers: "dns_servers",
5388
+ reservations: "reservations",
5389
+ })),
5390
+ Schema.Null,
5391
+ ])),
5392
+ secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5393
+ virtualAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5394
+ }).pipe(Schema.encodeKeys({
5395
+ address: "address",
5396
+ dhcpRelay: "dhcp_relay",
5397
+ dhcpServer: "dhcp_server",
5398
+ secondaryAddress: "secondary_address",
5399
+ virtualAddress: "virtual_address",
5400
+ })),
5401
+ Schema.Null,
5402
+ ])),
5403
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5404
+ }).pipe(Schema.encodeKeys({
5405
+ id: "id",
5406
+ haLink: "ha_link",
5407
+ name: "name",
5408
+ nat: "nat",
5409
+ physport: "physport",
5410
+ routedSubnets: "routed_subnets",
5411
+ siteId: "site_id",
5412
+ staticAddressing: "static_addressing",
5413
+ vlanTag: "vlan_tag",
5414
+ }))),
5415
+ });
5416
+ export const listSiteLans = API.makePaginated(() => ({
5289
5417
  input: ListSiteLansRequest,
5290
5418
  output: ListSiteLansResponse,
5291
5419
  errors: [],
5420
+ pagination: {
5421
+ mode: "single",
5422
+ items: "result",
5423
+ },
5292
5424
  }));
5293
5425
  export const CreateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5294
5426
  siteId: Schema.String.pipe(T.HttpPath("siteId")),
@@ -5350,87 +5482,93 @@ export const CreateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5350
5482
  method: "POST",
5351
5483
  path: "/accounts/{account_id}/magic/sites/{siteId}/lans",
5352
5484
  }));
5353
- export const CreateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
5354
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5355
- haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5356
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5357
- nat: Schema.optional(Schema.Union([
5358
- Schema.Struct({
5359
- staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5360
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5361
- Schema.Null,
5362
- ])),
5363
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5364
- routedSubnets: Schema.optional(Schema.Union([
5365
- Schema.Array(Schema.Struct({
5366
- nextHop: Schema.String,
5367
- prefix: Schema.String,
5368
- nat: Schema.optional(Schema.Union([
5369
- Schema.Struct({
5370
- staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5371
- }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5372
- Schema.Null,
5373
- ])),
5374
- }).pipe(Schema.encodeKeys({
5375
- nextHop: "next_hop",
5376
- prefix: "prefix",
5377
- nat: "nat",
5378
- }))),
5379
- Schema.Null,
5380
- ])),
5381
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5382
- staticAddressing: Schema.optional(Schema.Union([
5383
- Schema.Struct({
5384
- address: Schema.String,
5385
- dhcpRelay: Schema.optional(Schema.Union([
5386
- Schema.Struct({
5387
- serverAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5388
- }).pipe(Schema.encodeKeys({ serverAddresses: "server_addresses" })),
5389
- Schema.Null,
5390
- ])),
5391
- dhcpServer: Schema.optional(Schema.Union([
5392
- Schema.Struct({
5393
- dhcpPoolEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5394
- dhcpPoolStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5395
- dnsServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5396
- dnsServers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5397
- reservations: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5398
- }).pipe(Schema.encodeKeys({
5399
- dhcpPoolEnd: "dhcp_pool_end",
5400
- dhcpPoolStart: "dhcp_pool_start",
5401
- dnsServer: "dns_server",
5402
- dnsServers: "dns_servers",
5403
- reservations: "reservations",
5404
- })),
5405
- Schema.Null,
5406
- ])),
5407
- secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5408
- virtualAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5409
- }).pipe(Schema.encodeKeys({
5410
- address: "address",
5411
- dhcpRelay: "dhcp_relay",
5412
- dhcpServer: "dhcp_server",
5413
- secondaryAddress: "secondary_address",
5414
- virtualAddress: "virtual_address",
5415
- })),
5416
- Schema.Null,
5417
- ])),
5418
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5419
- }).pipe(Schema.encodeKeys({
5420
- id: "id",
5421
- haLink: "ha_link",
5422
- name: "name",
5423
- nat: "nat",
5424
- physport: "physport",
5425
- routedSubnets: "routed_subnets",
5426
- siteId: "site_id",
5427
- staticAddressing: "static_addressing",
5428
- vlanTag: "vlan_tag",
5429
- })));
5430
- export const createSiteLan = API.make(() => ({
5485
+ export const CreateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5486
+ result: Schema.Array(Schema.Struct({
5487
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5488
+ haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5489
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5490
+ nat: Schema.optional(Schema.Union([
5491
+ Schema.Struct({
5492
+ staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5493
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5494
+ Schema.Null,
5495
+ ])),
5496
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5497
+ routedSubnets: Schema.optional(Schema.Union([
5498
+ Schema.Array(Schema.Struct({
5499
+ nextHop: Schema.String,
5500
+ prefix: Schema.String,
5501
+ nat: Schema.optional(Schema.Union([
5502
+ Schema.Struct({
5503
+ staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5504
+ }).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })),
5505
+ Schema.Null,
5506
+ ])),
5507
+ }).pipe(Schema.encodeKeys({
5508
+ nextHop: "next_hop",
5509
+ prefix: "prefix",
5510
+ nat: "nat",
5511
+ }))),
5512
+ Schema.Null,
5513
+ ])),
5514
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5515
+ staticAddressing: Schema.optional(Schema.Union([
5516
+ Schema.Struct({
5517
+ address: Schema.String,
5518
+ dhcpRelay: Schema.optional(Schema.Union([
5519
+ Schema.Struct({
5520
+ serverAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5521
+ }).pipe(Schema.encodeKeys({ serverAddresses: "server_addresses" })),
5522
+ Schema.Null,
5523
+ ])),
5524
+ dhcpServer: Schema.optional(Schema.Union([
5525
+ Schema.Struct({
5526
+ dhcpPoolEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5527
+ dhcpPoolStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5528
+ dnsServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5529
+ dnsServers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5530
+ reservations: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5531
+ }).pipe(Schema.encodeKeys({
5532
+ dhcpPoolEnd: "dhcp_pool_end",
5533
+ dhcpPoolStart: "dhcp_pool_start",
5534
+ dnsServer: "dns_server",
5535
+ dnsServers: "dns_servers",
5536
+ reservations: "reservations",
5537
+ })),
5538
+ Schema.Null,
5539
+ ])),
5540
+ secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5541
+ virtualAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5542
+ }).pipe(Schema.encodeKeys({
5543
+ address: "address",
5544
+ dhcpRelay: "dhcp_relay",
5545
+ dhcpServer: "dhcp_server",
5546
+ secondaryAddress: "secondary_address",
5547
+ virtualAddress: "virtual_address",
5548
+ })),
5549
+ Schema.Null,
5550
+ ])),
5551
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5552
+ }).pipe(Schema.encodeKeys({
5553
+ id: "id",
5554
+ haLink: "ha_link",
5555
+ name: "name",
5556
+ nat: "nat",
5557
+ physport: "physport",
5558
+ routedSubnets: "routed_subnets",
5559
+ siteId: "site_id",
5560
+ staticAddressing: "static_addressing",
5561
+ vlanTag: "vlan_tag",
5562
+ }))),
5563
+ });
5564
+ export const createSiteLan = API.makePaginated(() => ({
5431
5565
  input: CreateSiteLanRequest,
5432
5566
  output: CreateSiteLanResponse,
5433
5567
  errors: [],
5568
+ pagination: {
5569
+ mode: "single",
5570
+ items: "result",
5571
+ },
5434
5572
  }));
5435
5573
  export const UpdateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5436
5574
  siteId: Schema.String.pipe(T.HttpPath("siteId")),
@@ -5557,7 +5695,8 @@ export const UpdateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5557
5695
  Schema.Null,
5558
5696
  ])),
5559
5697
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5560
- }).pipe(Schema.encodeKeys({
5698
+ })
5699
+ .pipe(Schema.encodeKeys({
5561
5700
  id: "id",
5562
5701
  haLink: "ha_link",
5563
5702
  name: "name",
@@ -5567,7 +5706,8 @@ export const UpdateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5567
5706
  siteId: "site_id",
5568
5707
  staticAddressing: "static_addressing",
5569
5708
  vlanTag: "vlan_tag",
5570
- }));
5709
+ }))
5710
+ .pipe(T.ResponsePath("result"));
5571
5711
  export const updateSiteLan = API.make(() => ({
5572
5712
  input: UpdateSiteLanRequest,
5573
5713
  output: UpdateSiteLanResponse,
@@ -5698,7 +5838,8 @@ export const PatchSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5698
5838
  Schema.Null,
5699
5839
  ])),
5700
5840
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5701
- }).pipe(Schema.encodeKeys({
5841
+ })
5842
+ .pipe(Schema.encodeKeys({
5702
5843
  id: "id",
5703
5844
  haLink: "ha_link",
5704
5845
  name: "name",
@@ -5708,7 +5849,8 @@ export const PatchSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5708
5849
  siteId: "site_id",
5709
5850
  staticAddressing: "static_addressing",
5710
5851
  vlanTag: "vlan_tag",
5711
- }));
5852
+ }))
5853
+ .pipe(T.ResponsePath("result"));
5712
5854
  export const patchSiteLan = API.make(() => ({
5713
5855
  input: PatchSiteLanRequest,
5714
5856
  output: PatchSiteLanResponse,
@@ -5788,7 +5930,8 @@ export const DeleteSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5788
5930
  Schema.Null,
5789
5931
  ])),
5790
5932
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5791
- }).pipe(Schema.encodeKeys({
5933
+ })
5934
+ .pipe(Schema.encodeKeys({
5792
5935
  id: "id",
5793
5936
  haLink: "ha_link",
5794
5937
  name: "name",
@@ -5798,7 +5941,8 @@ export const DeleteSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5798
5941
  siteId: "site_id",
5799
5942
  staticAddressing: "static_addressing",
5800
5943
  vlanTag: "vlan_tag",
5801
- }));
5944
+ }))
5945
+ .pipe(T.ResponsePath("result"));
5802
5946
  export const deleteSiteLan = API.make(() => ({
5803
5947
  input: DeleteSiteLanRequest,
5804
5948
  output: DeleteSiteLanResponse,
@@ -5832,7 +5976,8 @@ export const GetSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5832
5976
  Schema.Null,
5833
5977
  ])),
5834
5978
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5835
- }).pipe(Schema.encodeKeys({
5979
+ })
5980
+ .pipe(Schema.encodeKeys({
5836
5981
  id: "id",
5837
5982
  healthCheckRate: "health_check_rate",
5838
5983
  name: "name",
@@ -5841,7 +5986,8 @@ export const GetSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5841
5986
  siteId: "site_id",
5842
5987
  staticAddressing: "static_addressing",
5843
5988
  vlanTag: "vlan_tag",
5844
- }));
5989
+ }))
5990
+ .pipe(T.ResponsePath("result"));
5845
5991
  export const getSiteWan = API.make(() => ({
5846
5992
  input: GetSiteWanRequest,
5847
5993
  output: GetSiteWanResponse,
@@ -5854,40 +6000,46 @@ export const ListSiteWansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5854
6000
  method: "GET",
5855
6001
  path: "/accounts/{account_id}/magic/sites/{siteId}/wans",
5856
6002
  }));
5857
- export const ListSiteWansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
5858
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5859
- healthCheckRate: Schema.optional(Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null])),
5860
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5861
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5862
- priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5863
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5864
- staticAddressing: Schema.optional(Schema.Union([
5865
- Schema.Struct({
5866
- address: Schema.String,
5867
- gatewayAddress: Schema.String,
5868
- secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5869
- }).pipe(Schema.encodeKeys({
5870
- address: "address",
5871
- gatewayAddress: "gateway_address",
5872
- secondaryAddress: "secondary_address",
5873
- })),
5874
- Schema.Null,
5875
- ])),
5876
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5877
- }).pipe(Schema.encodeKeys({
5878
- id: "id",
5879
- healthCheckRate: "health_check_rate",
5880
- name: "name",
5881
- physport: "physport",
5882
- priority: "priority",
5883
- siteId: "site_id",
5884
- staticAddressing: "static_addressing",
5885
- vlanTag: "vlan_tag",
5886
- })));
5887
- export const listSiteWans = API.make(() => ({
6003
+ export const ListSiteWansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6004
+ result: Schema.Array(Schema.Struct({
6005
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6006
+ healthCheckRate: Schema.optional(Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null])),
6007
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6008
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6009
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6010
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6011
+ staticAddressing: Schema.optional(Schema.Union([
6012
+ Schema.Struct({
6013
+ address: Schema.String,
6014
+ gatewayAddress: Schema.String,
6015
+ secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6016
+ }).pipe(Schema.encodeKeys({
6017
+ address: "address",
6018
+ gatewayAddress: "gateway_address",
6019
+ secondaryAddress: "secondary_address",
6020
+ })),
6021
+ Schema.Null,
6022
+ ])),
6023
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6024
+ }).pipe(Schema.encodeKeys({
6025
+ id: "id",
6026
+ healthCheckRate: "health_check_rate",
6027
+ name: "name",
6028
+ physport: "physport",
6029
+ priority: "priority",
6030
+ siteId: "site_id",
6031
+ staticAddressing: "static_addressing",
6032
+ vlanTag: "vlan_tag",
6033
+ }))),
6034
+ });
6035
+ export const listSiteWans = API.makePaginated(() => ({
5888
6036
  input: ListSiteWansRequest,
5889
6037
  output: ListSiteWansResponse,
5890
6038
  errors: [],
6039
+ pagination: {
6040
+ mode: "single",
6041
+ items: "result",
6042
+ },
5891
6043
  }));
5892
6044
  export const CreateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5893
6045
  siteId: Schema.String.pipe(T.HttpPath("siteId")),
@@ -5915,40 +6067,46 @@ export const CreateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5915
6067
  method: "POST",
5916
6068
  path: "/accounts/{account_id}/magic/sites/{siteId}/wans",
5917
6069
  }));
5918
- export const CreateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
5919
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5920
- healthCheckRate: Schema.optional(Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null])),
5921
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5922
- physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5923
- priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5924
- siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5925
- staticAddressing: Schema.optional(Schema.Union([
5926
- Schema.Struct({
5927
- address: Schema.String,
5928
- gatewayAddress: Schema.String,
5929
- secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5930
- }).pipe(Schema.encodeKeys({
5931
- address: "address",
5932
- gatewayAddress: "gateway_address",
5933
- secondaryAddress: "secondary_address",
5934
- })),
5935
- Schema.Null,
5936
- ])),
5937
- vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5938
- }).pipe(Schema.encodeKeys({
5939
- id: "id",
5940
- healthCheckRate: "health_check_rate",
5941
- name: "name",
5942
- physport: "physport",
5943
- priority: "priority",
5944
- siteId: "site_id",
5945
- staticAddressing: "static_addressing",
5946
- vlanTag: "vlan_tag",
5947
- })));
5948
- export const createSiteWan = API.make(() => ({
6070
+ export const CreateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6071
+ result: Schema.Array(Schema.Struct({
6072
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6073
+ healthCheckRate: Schema.optional(Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.Null])),
6074
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6075
+ physport: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6076
+ priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6077
+ siteId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6078
+ staticAddressing: Schema.optional(Schema.Union([
6079
+ Schema.Struct({
6080
+ address: Schema.String,
6081
+ gatewayAddress: Schema.String,
6082
+ secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6083
+ }).pipe(Schema.encodeKeys({
6084
+ address: "address",
6085
+ gatewayAddress: "gateway_address",
6086
+ secondaryAddress: "secondary_address",
6087
+ })),
6088
+ Schema.Null,
6089
+ ])),
6090
+ vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6091
+ }).pipe(Schema.encodeKeys({
6092
+ id: "id",
6093
+ healthCheckRate: "health_check_rate",
6094
+ name: "name",
6095
+ physport: "physport",
6096
+ priority: "priority",
6097
+ siteId: "site_id",
6098
+ staticAddressing: "static_addressing",
6099
+ vlanTag: "vlan_tag",
6100
+ }))),
6101
+ });
6102
+ export const createSiteWan = API.makePaginated(() => ({
5949
6103
  input: CreateSiteWanRequest,
5950
6104
  output: CreateSiteWanResponse,
5951
6105
  errors: [],
6106
+ pagination: {
6107
+ mode: "single",
6108
+ items: "result",
6109
+ },
5952
6110
  }));
5953
6111
  export const UpdateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5954
6112
  siteId: Schema.String.pipe(T.HttpPath("siteId")),
@@ -5997,7 +6155,8 @@ export const UpdateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5997
6155
  Schema.Null,
5998
6156
  ])),
5999
6157
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6000
- }).pipe(Schema.encodeKeys({
6158
+ })
6159
+ .pipe(Schema.encodeKeys({
6001
6160
  id: "id",
6002
6161
  healthCheckRate: "health_check_rate",
6003
6162
  name: "name",
@@ -6006,7 +6165,8 @@ export const UpdateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6006
6165
  siteId: "site_id",
6007
6166
  staticAddressing: "static_addressing",
6008
6167
  vlanTag: "vlan_tag",
6009
- }));
6168
+ }))
6169
+ .pipe(T.ResponsePath("result"));
6010
6170
  export const updateSiteWan = API.make(() => ({
6011
6171
  input: UpdateSiteWanRequest,
6012
6172
  output: UpdateSiteWanResponse,
@@ -6059,7 +6219,8 @@ export const PatchSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6059
6219
  Schema.Null,
6060
6220
  ])),
6061
6221
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6062
- }).pipe(Schema.encodeKeys({
6222
+ })
6223
+ .pipe(Schema.encodeKeys({
6063
6224
  id: "id",
6064
6225
  healthCheckRate: "health_check_rate",
6065
6226
  name: "name",
@@ -6068,7 +6229,8 @@ export const PatchSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6068
6229
  siteId: "site_id",
6069
6230
  staticAddressing: "static_addressing",
6070
6231
  vlanTag: "vlan_tag",
6071
- }));
6232
+ }))
6233
+ .pipe(T.ResponsePath("result"));
6072
6234
  export const patchSiteWan = API.make(() => ({
6073
6235
  input: PatchSiteWanRequest,
6074
6236
  output: PatchSiteWanResponse,
@@ -6102,7 +6264,8 @@ export const DeleteSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6102
6264
  Schema.Null,
6103
6265
  ])),
6104
6266
  vlanTag: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6105
- }).pipe(Schema.encodeKeys({
6267
+ })
6268
+ .pipe(Schema.encodeKeys({
6106
6269
  id: "id",
6107
6270
  healthCheckRate: "health_check_rate",
6108
6271
  name: "name",
@@ -6111,7 +6274,8 @@ export const DeleteSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6111
6274
  siteId: "site_id",
6112
6275
  staticAddressing: "static_addressing",
6113
6276
  vlanTag: "vlan_tag",
6114
- }));
6277
+ }))
6278
+ .pipe(T.ResponsePath("result"));
6115
6279
  export const deleteSiteWan = API.make(() => ({
6116
6280
  input: DeleteSiteWanRequest,
6117
6281
  output: DeleteSiteWanResponse,