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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service magic-cloud-networking
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -891,22 +892,26 @@ export const GetCatalogSyncResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
891
892
  Schema.Union([Schema.String, Schema.Null]),
892
893
  ),
893
894
  },
894
- ).pipe(
895
- Schema.encodeKeys({
896
- id: "id",
897
- description: "description",
898
- destinationId: "destination_id",
899
- destinationType: "destination_type",
900
- lastUserUpdateAt: "last_user_update_at",
901
- name: "name",
902
- policy: "policy",
903
- updateMode: "update_mode",
904
- errors: "errors",
905
- includesDiscoveriesUntil: "includes_discoveries_until",
906
- lastAttemptedUpdateAt: "last_attempted_update_at",
907
- lastSuccessfulUpdateAt: "last_successful_update_at",
908
- }),
909
- ) as unknown as Schema.Schema<GetCatalogSyncResponse>;
895
+ )
896
+ .pipe(
897
+ Schema.encodeKeys({
898
+ id: "id",
899
+ description: "description",
900
+ destinationId: "destination_id",
901
+ destinationType: "destination_type",
902
+ lastUserUpdateAt: "last_user_update_at",
903
+ name: "name",
904
+ policy: "policy",
905
+ updateMode: "update_mode",
906
+ errors: "errors",
907
+ includesDiscoveriesUntil: "includes_discoveries_until",
908
+ lastAttemptedUpdateAt: "last_attempted_update_at",
909
+ lastSuccessfulUpdateAt: "last_successful_update_at",
910
+ }),
911
+ )
912
+ .pipe(
913
+ T.ResponsePath("result"),
914
+ ) as unknown as Schema.Schema<GetCatalogSyncResponse>;
910
915
 
911
916
  export type GetCatalogSyncError = DefaultErrors;
912
917
 
@@ -935,71 +940,105 @@ export const ListCatalogSyncsRequest =
935
940
  }),
936
941
  ) as unknown as Schema.Schema<ListCatalogSyncsRequest>;
937
942
 
938
- export type ListCatalogSyncsResponse = {
939
- id: string;
940
- description: string;
941
- destinationId: string;
942
- destinationType: "NONE" | "ZERO_TRUST_LIST";
943
- lastUserUpdateAt: string;
944
- name: string;
945
- policy: string;
946
- updateMode: "AUTO" | "MANUAL";
947
- errors?: Record<string, unknown> | null;
948
- includesDiscoveriesUntil?: string | null;
949
- lastAttemptedUpdateAt?: string | null;
950
- lastSuccessfulUpdateAt?: string | null;
951
- }[];
943
+ export interface ListCatalogSyncsResponse {
944
+ result: {
945
+ id: string;
946
+ description: string;
947
+ destinationId: string;
948
+ destinationType: "NONE" | "ZERO_TRUST_LIST";
949
+ lastUserUpdateAt: string;
950
+ name: string;
951
+ policy: string;
952
+ updateMode: "AUTO" | "MANUAL";
953
+ errors?: Record<string, unknown> | null;
954
+ includesDiscoveriesUntil?: string | null;
955
+ lastAttemptedUpdateAt?: string | null;
956
+ lastSuccessfulUpdateAt?: string | null;
957
+ }[];
958
+ }
952
959
 
953
960
  export const ListCatalogSyncsResponse =
954
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
955
- Schema.Struct({
956
- id: Schema.String,
957
- description: Schema.String,
958
- destinationId: Schema.String,
959
- destinationType: Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
960
- lastUserUpdateAt: Schema.String,
961
- name: Schema.String,
962
- policy: Schema.String,
963
- updateMode: Schema.Literals(["AUTO", "MANUAL"]),
964
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
965
- includesDiscoveriesUntil: Schema.optional(
966
- Schema.Union([Schema.String, Schema.Null]),
967
- ),
968
- lastAttemptedUpdateAt: Schema.optional(
969
- Schema.Union([Schema.String, Schema.Null]),
970
- ),
971
- lastSuccessfulUpdateAt: Schema.optional(
972
- Schema.Union([Schema.String, Schema.Null]),
961
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
962
+ result: Schema.Array(
963
+ Schema.Struct({
964
+ id: Schema.String,
965
+ description: Schema.String,
966
+ destinationId: Schema.String,
967
+ destinationType: Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
968
+ lastUserUpdateAt: Schema.String,
969
+ name: Schema.String,
970
+ policy: Schema.String,
971
+ updateMode: Schema.Literals(["AUTO", "MANUAL"]),
972
+ errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
973
+ includesDiscoveriesUntil: Schema.optional(
974
+ Schema.Union([Schema.String, Schema.Null]),
975
+ ),
976
+ lastAttemptedUpdateAt: Schema.optional(
977
+ Schema.Union([Schema.String, Schema.Null]),
978
+ ),
979
+ lastSuccessfulUpdateAt: Schema.optional(
980
+ Schema.Union([Schema.String, Schema.Null]),
981
+ ),
982
+ }).pipe(
983
+ Schema.encodeKeys({
984
+ id: "id",
985
+ description: "description",
986
+ destinationId: "destination_id",
987
+ destinationType: "destination_type",
988
+ lastUserUpdateAt: "last_user_update_at",
989
+ name: "name",
990
+ policy: "policy",
991
+ updateMode: "update_mode",
992
+ errors: "errors",
993
+ includesDiscoveriesUntil: "includes_discoveries_until",
994
+ lastAttemptedUpdateAt: "last_attempted_update_at",
995
+ lastSuccessfulUpdateAt: "last_successful_update_at",
996
+ }),
973
997
  ),
974
- }).pipe(
975
- Schema.encodeKeys({
976
- id: "id",
977
- description: "description",
978
- destinationId: "destination_id",
979
- destinationType: "destination_type",
980
- lastUserUpdateAt: "last_user_update_at",
981
- name: "name",
982
- policy: "policy",
983
- updateMode: "update_mode",
984
- errors: "errors",
985
- includesDiscoveriesUntil: "includes_discoveries_until",
986
- lastAttemptedUpdateAt: "last_attempted_update_at",
987
- lastSuccessfulUpdateAt: "last_successful_update_at",
988
- }),
989
998
  ),
990
- ) as unknown as Schema.Schema<ListCatalogSyncsResponse>;
999
+ }) as unknown as Schema.Schema<ListCatalogSyncsResponse>;
991
1000
 
992
1001
  export type ListCatalogSyncsError = DefaultErrors;
993
1002
 
994
- export const listCatalogSyncs: API.OperationMethod<
1003
+ export const listCatalogSyncs: API.PaginatedOperationMethod<
995
1004
  ListCatalogSyncsRequest,
996
1005
  ListCatalogSyncsResponse,
997
1006
  ListCatalogSyncsError,
998
1007
  Credentials | HttpClient.HttpClient
999
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1008
+ > & {
1009
+ pages: (
1010
+ input: ListCatalogSyncsRequest,
1011
+ ) => stream.Stream<
1012
+ ListCatalogSyncsResponse,
1013
+ ListCatalogSyncsError,
1014
+ Credentials | HttpClient.HttpClient
1015
+ >;
1016
+ items: (input: ListCatalogSyncsRequest) => stream.Stream<
1017
+ {
1018
+ id: string;
1019
+ description: string;
1020
+ destinationId: string;
1021
+ destinationType: "NONE" | "ZERO_TRUST_LIST";
1022
+ lastUserUpdateAt: string;
1023
+ name: string;
1024
+ policy: string;
1025
+ updateMode: "AUTO" | "MANUAL";
1026
+ errors?: Record<string, unknown> | null;
1027
+ includesDiscoveriesUntil?: string | null;
1028
+ lastAttemptedUpdateAt?: string | null;
1029
+ lastSuccessfulUpdateAt?: string | null;
1030
+ },
1031
+ ListCatalogSyncsError,
1032
+ Credentials | HttpClient.HttpClient
1033
+ >;
1034
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1000
1035
  input: ListCatalogSyncsRequest,
1001
1036
  output: ListCatalogSyncsResponse,
1002
1037
  errors: [],
1038
+ pagination: {
1039
+ mode: "single",
1040
+ items: "result",
1041
+ } as const,
1003
1042
  }));
1004
1043
 
1005
1044
  export interface CreateCatalogSyncRequest {
@@ -1077,22 +1116,26 @@ export const CreateCatalogSyncResponse =
1077
1116
  lastSuccessfulUpdateAt: Schema.optional(
1078
1117
  Schema.Union([Schema.String, Schema.Null]),
1079
1118
  ),
1080
- }).pipe(
1081
- Schema.encodeKeys({
1082
- id: "id",
1083
- description: "description",
1084
- destinationId: "destination_id",
1085
- destinationType: "destination_type",
1086
- lastUserUpdateAt: "last_user_update_at",
1087
- name: "name",
1088
- policy: "policy",
1089
- updateMode: "update_mode",
1090
- errors: "errors",
1091
- includesDiscoveriesUntil: "includes_discoveries_until",
1092
- lastAttemptedUpdateAt: "last_attempted_update_at",
1093
- lastSuccessfulUpdateAt: "last_successful_update_at",
1094
- }),
1095
- ) as unknown as Schema.Schema<CreateCatalogSyncResponse>;
1119
+ })
1120
+ .pipe(
1121
+ Schema.encodeKeys({
1122
+ id: "id",
1123
+ description: "description",
1124
+ destinationId: "destination_id",
1125
+ destinationType: "destination_type",
1126
+ lastUserUpdateAt: "last_user_update_at",
1127
+ name: "name",
1128
+ policy: "policy",
1129
+ updateMode: "update_mode",
1130
+ errors: "errors",
1131
+ includesDiscoveriesUntil: "includes_discoveries_until",
1132
+ lastAttemptedUpdateAt: "last_attempted_update_at",
1133
+ lastSuccessfulUpdateAt: "last_successful_update_at",
1134
+ }),
1135
+ )
1136
+ .pipe(
1137
+ T.ResponsePath("result"),
1138
+ ) as unknown as Schema.Schema<CreateCatalogSyncResponse>;
1096
1139
 
1097
1140
  export type CreateCatalogSyncError = DefaultErrors;
1098
1141
 
@@ -1177,22 +1220,26 @@ export const UpdateCatalogSyncResponse =
1177
1220
  lastSuccessfulUpdateAt: Schema.optional(
1178
1221
  Schema.Union([Schema.String, Schema.Null]),
1179
1222
  ),
1180
- }).pipe(
1181
- Schema.encodeKeys({
1182
- id: "id",
1183
- description: "description",
1184
- destinationId: "destination_id",
1185
- destinationType: "destination_type",
1186
- lastUserUpdateAt: "last_user_update_at",
1187
- name: "name",
1188
- policy: "policy",
1189
- updateMode: "update_mode",
1190
- errors: "errors",
1191
- includesDiscoveriesUntil: "includes_discoveries_until",
1192
- lastAttemptedUpdateAt: "last_attempted_update_at",
1193
- lastSuccessfulUpdateAt: "last_successful_update_at",
1194
- }),
1195
- ) as unknown as Schema.Schema<UpdateCatalogSyncResponse>;
1223
+ })
1224
+ .pipe(
1225
+ Schema.encodeKeys({
1226
+ id: "id",
1227
+ description: "description",
1228
+ destinationId: "destination_id",
1229
+ destinationType: "destination_type",
1230
+ lastUserUpdateAt: "last_user_update_at",
1231
+ name: "name",
1232
+ policy: "policy",
1233
+ updateMode: "update_mode",
1234
+ errors: "errors",
1235
+ includesDiscoveriesUntil: "includes_discoveries_until",
1236
+ lastAttemptedUpdateAt: "last_attempted_update_at",
1237
+ lastSuccessfulUpdateAt: "last_successful_update_at",
1238
+ }),
1239
+ )
1240
+ .pipe(
1241
+ T.ResponsePath("result"),
1242
+ ) as unknown as Schema.Schema<UpdateCatalogSyncResponse>;
1196
1243
 
1197
1244
  export type UpdateCatalogSyncError = DefaultErrors;
1198
1245
 
@@ -1277,22 +1324,26 @@ export const PatchCatalogSyncResponse =
1277
1324
  lastSuccessfulUpdateAt: Schema.optional(
1278
1325
  Schema.Union([Schema.String, Schema.Null]),
1279
1326
  ),
1280
- }).pipe(
1281
- Schema.encodeKeys({
1282
- id: "id",
1283
- description: "description",
1284
- destinationId: "destination_id",
1285
- destinationType: "destination_type",
1286
- lastUserUpdateAt: "last_user_update_at",
1287
- name: "name",
1288
- policy: "policy",
1289
- updateMode: "update_mode",
1290
- errors: "errors",
1291
- includesDiscoveriesUntil: "includes_discoveries_until",
1292
- lastAttemptedUpdateAt: "last_attempted_update_at",
1293
- lastSuccessfulUpdateAt: "last_successful_update_at",
1294
- }),
1295
- ) as unknown as Schema.Schema<PatchCatalogSyncResponse>;
1327
+ })
1328
+ .pipe(
1329
+ Schema.encodeKeys({
1330
+ id: "id",
1331
+ description: "description",
1332
+ destinationId: "destination_id",
1333
+ destinationType: "destination_type",
1334
+ lastUserUpdateAt: "last_user_update_at",
1335
+ name: "name",
1336
+ policy: "policy",
1337
+ updateMode: "update_mode",
1338
+ errors: "errors",
1339
+ includesDiscoveriesUntil: "includes_discoveries_until",
1340
+ lastAttemptedUpdateAt: "last_attempted_update_at",
1341
+ lastSuccessfulUpdateAt: "last_successful_update_at",
1342
+ }),
1343
+ )
1344
+ .pipe(
1345
+ T.ResponsePath("result"),
1346
+ ) as unknown as Schema.Schema<PatchCatalogSyncResponse>;
1296
1347
 
1297
1348
  export type PatchCatalogSyncError = DefaultErrors;
1298
1349
 
@@ -1336,7 +1387,9 @@ export interface DeleteCatalogSyncResponse {
1336
1387
  export const DeleteCatalogSyncResponse =
1337
1388
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1338
1389
  id: Schema.String,
1339
- }) as unknown as Schema.Schema<DeleteCatalogSyncResponse>;
1390
+ }).pipe(
1391
+ T.ResponsePath("result"),
1392
+ ) as unknown as Schema.Schema<DeleteCatalogSyncResponse>;
1340
1393
 
1341
1394
  export type DeleteCatalogSyncError = DefaultErrors;
1342
1395
 
@@ -1370,7 +1423,9 @@ export const RefreshCatalogSyncRequest =
1370
1423
  export type RefreshCatalogSyncResponse = string;
1371
1424
 
1372
1425
  export const RefreshCatalogSyncResponse =
1373
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<RefreshCatalogSyncResponse>;
1426
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
1427
+ T.ResponsePath("result"),
1428
+ ) as unknown as Schema.Schema<RefreshCatalogSyncResponse>;
1374
1429
 
1375
1430
  export type RefreshCatalogSyncError = DefaultErrors;
1376
1431
 
@@ -1409,43 +1464,69 @@ export const ListCatalogSyncPrebuiltPoliciesRequest =
1409
1464
  }),
1410
1465
  ) as unknown as Schema.Schema<ListCatalogSyncPrebuiltPoliciesRequest>;
1411
1466
 
1412
- export type ListCatalogSyncPrebuiltPoliciesResponse = {
1413
- applicableDestinations: ("NONE" | "ZERO_TRUST_LIST")[];
1414
- policyDescription: string;
1415
- policyName: string;
1416
- policyString: string;
1417
- }[];
1467
+ export interface ListCatalogSyncPrebuiltPoliciesResponse {
1468
+ result: {
1469
+ applicableDestinations: ("NONE" | "ZERO_TRUST_LIST")[];
1470
+ policyDescription: string;
1471
+ policyName: string;
1472
+ policyString: string;
1473
+ }[];
1474
+ }
1418
1475
 
1419
1476
  export const ListCatalogSyncPrebuiltPoliciesResponse =
1420
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1421
- Schema.Struct({
1422
- applicableDestinations: Schema.Array(
1423
- Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
1477
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1478
+ result: Schema.Array(
1479
+ Schema.Struct({
1480
+ applicableDestinations: Schema.Array(
1481
+ Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
1482
+ ),
1483
+ policyDescription: Schema.String,
1484
+ policyName: Schema.String,
1485
+ policyString: Schema.String,
1486
+ }).pipe(
1487
+ Schema.encodeKeys({
1488
+ applicableDestinations: "applicable_destinations",
1489
+ policyDescription: "policy_description",
1490
+ policyName: "policy_name",
1491
+ policyString: "policy_string",
1492
+ }),
1424
1493
  ),
1425
- policyDescription: Schema.String,
1426
- policyName: Schema.String,
1427
- policyString: Schema.String,
1428
- }).pipe(
1429
- Schema.encodeKeys({
1430
- applicableDestinations: "applicable_destinations",
1431
- policyDescription: "policy_description",
1432
- policyName: "policy_name",
1433
- policyString: "policy_string",
1434
- }),
1435
1494
  ),
1436
- ) as unknown as Schema.Schema<ListCatalogSyncPrebuiltPoliciesResponse>;
1495
+ }) as unknown as Schema.Schema<ListCatalogSyncPrebuiltPoliciesResponse>;
1437
1496
 
1438
1497
  export type ListCatalogSyncPrebuiltPoliciesError = DefaultErrors;
1439
1498
 
1440
- export const listCatalogSyncPrebuiltPolicies: API.OperationMethod<
1499
+ export const listCatalogSyncPrebuiltPolicies: API.PaginatedOperationMethod<
1441
1500
  ListCatalogSyncPrebuiltPoliciesRequest,
1442
1501
  ListCatalogSyncPrebuiltPoliciesResponse,
1443
1502
  ListCatalogSyncPrebuiltPoliciesError,
1444
1503
  Credentials | HttpClient.HttpClient
1445
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1504
+ > & {
1505
+ pages: (
1506
+ input: ListCatalogSyncPrebuiltPoliciesRequest,
1507
+ ) => stream.Stream<
1508
+ ListCatalogSyncPrebuiltPoliciesResponse,
1509
+ ListCatalogSyncPrebuiltPoliciesError,
1510
+ Credentials | HttpClient.HttpClient
1511
+ >;
1512
+ items: (input: ListCatalogSyncPrebuiltPoliciesRequest) => stream.Stream<
1513
+ {
1514
+ applicableDestinations: ("NONE" | "ZERO_TRUST_LIST")[];
1515
+ policyDescription: string;
1516
+ policyName: string;
1517
+ policyString: string;
1518
+ },
1519
+ ListCatalogSyncPrebuiltPoliciesError,
1520
+ Credentials | HttpClient.HttpClient
1521
+ >;
1522
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1446
1523
  input: ListCatalogSyncPrebuiltPoliciesRequest,
1447
1524
  output: ListCatalogSyncPrebuiltPoliciesResponse,
1448
1525
  errors: [],
1526
+ pagination: {
1527
+ mode: "single",
1528
+ items: "result",
1529
+ } as const,
1449
1530
  }));
1450
1531
 
1451
1532
  // =============================================================================
@@ -1648,24 +1729,28 @@ export const GetCloudIntegrationResponse =
1648
1729
  Schema.Null,
1649
1730
  ]),
1650
1731
  ),
1651
- }).pipe(
1652
- Schema.encodeKeys({
1653
- id: "id",
1654
- cloudType: "cloud_type",
1655
- friendlyName: "friendly_name",
1656
- lastUpdated: "last_updated",
1657
- lifecycleState: "lifecycle_state",
1658
- state: "state",
1659
- stateV2: "state_v2",
1660
- awsArn: "aws_arn",
1661
- azureSubscriptionId: "azure_subscription_id",
1662
- azureTenantId: "azure_tenant_id",
1663
- description: "description",
1664
- gcpProjectId: "gcp_project_id",
1665
- gcpServiceAccountEmail: "gcp_service_account_email",
1666
- status: "status",
1667
- }),
1668
- ) as unknown as Schema.Schema<GetCloudIntegrationResponse>;
1732
+ })
1733
+ .pipe(
1734
+ Schema.encodeKeys({
1735
+ id: "id",
1736
+ cloudType: "cloud_type",
1737
+ friendlyName: "friendly_name",
1738
+ lastUpdated: "last_updated",
1739
+ lifecycleState: "lifecycle_state",
1740
+ state: "state",
1741
+ stateV2: "state_v2",
1742
+ awsArn: "aws_arn",
1743
+ azureSubscriptionId: "azure_subscription_id",
1744
+ azureTenantId: "azure_tenant_id",
1745
+ description: "description",
1746
+ gcpProjectId: "gcp_project_id",
1747
+ gcpServiceAccountEmail: "gcp_service_account_email",
1748
+ status: "status",
1749
+ }),
1750
+ )
1751
+ .pipe(
1752
+ T.ResponsePath("result"),
1753
+ ) as unknown as Schema.Schema<GetCloudIntegrationResponse>;
1669
1754
 
1670
1755
  export type GetCloudIntegrationError = DefaultErrors;
1671
1756
 
@@ -1707,216 +1792,290 @@ export const ListCloudIntegrationsRequest =
1707
1792
  }),
1708
1793
  ) as unknown as Schema.Schema<ListCloudIntegrationsRequest>;
1709
1794
 
1710
- export type ListCloudIntegrationsResponse = {
1711
- id: string;
1712
- cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
1713
- friendlyName: string;
1714
- lastUpdated: string;
1715
- lifecycleState: "ACTIVE" | "PENDING_SETUP" | "RETIRED";
1716
- state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | "FAILED" | "SUCCEEDED";
1717
- stateV2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | "FAILED" | "SUCCEEDED";
1718
- awsArn?: string | null;
1719
- azureSubscriptionId?: string | null;
1720
- azureTenantId?: string | null;
1721
- description?: string | null;
1722
- gcpProjectId?: string | null;
1723
- gcpServiceAccountEmail?: string | null;
1724
- status?: {
1725
- discoveryProgress: { done: number; total: number; unit: string };
1726
- discoveryProgressV2: { done: number; total: number; unit: string };
1727
- lastDiscoveryStatus:
1728
- | "UNSPECIFIED"
1729
- | "PENDING"
1730
- | "DISCOVERING"
1731
- | "FAILED"
1732
- | "SUCCEEDED";
1733
- lastDiscoveryStatusV2:
1734
- | "UNSPECIFIED"
1735
- | "PENDING"
1736
- | "DISCOVERING"
1737
- | "FAILED"
1738
- | "SUCCEEDED";
1739
- regions: string[];
1740
- credentialsGoodSince?: string | null;
1741
- credentialsMissingSince?: string | null;
1742
- credentialsRejectedSince?: string | null;
1743
- discoveryMessage?: string | null;
1744
- discoveryMessageV2?: string | null;
1745
- inUseBy?:
1746
- | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
1747
- | null;
1748
- lastDiscoveryCompletedAt?: string | null;
1749
- lastDiscoveryCompletedAtV2?: string | null;
1750
- lastDiscoveryStartedAt?: string | null;
1751
- lastDiscoveryStartedAtV2?: string | null;
1752
- lastUpdated?: string | null;
1753
- } | null;
1754
- }[];
1795
+ export interface ListCloudIntegrationsResponse {
1796
+ result: {
1797
+ id: string;
1798
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
1799
+ friendlyName: string;
1800
+ lastUpdated: string;
1801
+ lifecycleState: "ACTIVE" | "PENDING_SETUP" | "RETIRED";
1802
+ state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | "FAILED" | "SUCCEEDED";
1803
+ stateV2: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | "FAILED" | "SUCCEEDED";
1804
+ awsArn?: string | null;
1805
+ azureSubscriptionId?: string | null;
1806
+ azureTenantId?: string | null;
1807
+ description?: string | null;
1808
+ gcpProjectId?: string | null;
1809
+ gcpServiceAccountEmail?: string | null;
1810
+ status?: {
1811
+ discoveryProgress: { done: number; total: number; unit: string };
1812
+ discoveryProgressV2: { done: number; total: number; unit: string };
1813
+ lastDiscoveryStatus:
1814
+ | "UNSPECIFIED"
1815
+ | "PENDING"
1816
+ | "DISCOVERING"
1817
+ | "FAILED"
1818
+ | "SUCCEEDED";
1819
+ lastDiscoveryStatusV2:
1820
+ | "UNSPECIFIED"
1821
+ | "PENDING"
1822
+ | "DISCOVERING"
1823
+ | "FAILED"
1824
+ | "SUCCEEDED";
1825
+ regions: string[];
1826
+ credentialsGoodSince?: string | null;
1827
+ credentialsMissingSince?: string | null;
1828
+ credentialsRejectedSince?: string | null;
1829
+ discoveryMessage?: string | null;
1830
+ discoveryMessageV2?: string | null;
1831
+ inUseBy?:
1832
+ | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
1833
+ | null;
1834
+ lastDiscoveryCompletedAt?: string | null;
1835
+ lastDiscoveryCompletedAtV2?: string | null;
1836
+ lastDiscoveryStartedAt?: string | null;
1837
+ lastDiscoveryStartedAtV2?: string | null;
1838
+ lastUpdated?: string | null;
1839
+ } | null;
1840
+ }[];
1841
+ }
1755
1842
 
1756
1843
  export const ListCloudIntegrationsResponse =
1757
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1758
- Schema.Struct({
1759
- id: Schema.String,
1760
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
1761
- friendlyName: Schema.String,
1762
- lastUpdated: Schema.String,
1763
- lifecycleState: Schema.Literals(["ACTIVE", "PENDING_SETUP", "RETIRED"]),
1764
- state: Schema.Literals([
1765
- "UNSPECIFIED",
1766
- "PENDING",
1767
- "DISCOVERING",
1768
- "FAILED",
1769
- "SUCCEEDED",
1770
- ]),
1771
- stateV2: Schema.Literals([
1772
- "UNSPECIFIED",
1773
- "PENDING",
1774
- "DISCOVERING",
1775
- "FAILED",
1776
- "SUCCEEDED",
1777
- ]),
1778
- awsArn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1779
- azureSubscriptionId: Schema.optional(
1780
- Schema.Union([Schema.String, Schema.Null]),
1781
- ),
1782
- azureTenantId: Schema.optional(
1783
- Schema.Union([Schema.String, Schema.Null]),
1784
- ),
1785
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1786
- gcpProjectId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1787
- gcpServiceAccountEmail: Schema.optional(
1788
- Schema.Union([Schema.String, Schema.Null]),
1789
- ),
1790
- status: Schema.optional(
1791
- Schema.Union([
1792
- Schema.Struct({
1793
- discoveryProgress: Schema.Struct({
1794
- done: Schema.Number,
1795
- total: Schema.Number,
1796
- unit: Schema.String,
1797
- }),
1798
- discoveryProgressV2: Schema.Struct({
1799
- done: Schema.Number,
1800
- total: Schema.Number,
1801
- unit: Schema.String,
1802
- }),
1803
- lastDiscoveryStatus: Schema.Literals([
1804
- "UNSPECIFIED",
1805
- "PENDING",
1806
- "DISCOVERING",
1807
- "FAILED",
1808
- "SUCCEEDED",
1809
- ]),
1810
- lastDiscoveryStatusV2: Schema.Literals([
1811
- "UNSPECIFIED",
1812
- "PENDING",
1813
- "DISCOVERING",
1814
- "FAILED",
1815
- "SUCCEEDED",
1816
- ]),
1817
- regions: Schema.Array(Schema.String),
1818
- credentialsGoodSince: Schema.optional(
1819
- Schema.Union([Schema.String, Schema.Null]),
1820
- ),
1821
- credentialsMissingSince: Schema.optional(
1822
- Schema.Union([Schema.String, Schema.Null]),
1823
- ),
1824
- credentialsRejectedSince: Schema.optional(
1825
- Schema.Union([Schema.String, Schema.Null]),
1826
- ),
1827
- discoveryMessage: Schema.optional(
1828
- Schema.Union([Schema.String, Schema.Null]),
1829
- ),
1830
- discoveryMessageV2: Schema.optional(
1831
- Schema.Union([Schema.String, Schema.Null]),
1832
- ),
1833
- inUseBy: Schema.optional(
1834
- Schema.Union([
1835
- Schema.Array(
1836
- Schema.Struct({
1837
- id: Schema.String,
1838
- clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
1839
- name: Schema.String,
1840
- }).pipe(
1841
- Schema.encodeKeys({
1842
- id: "id",
1843
- clientType: "client_type",
1844
- name: "name",
1845
- }),
1846
- ),
1847
- ),
1848
- Schema.Null,
1844
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1845
+ result: Schema.Array(
1846
+ Schema.Struct({
1847
+ id: Schema.String,
1848
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
1849
+ friendlyName: Schema.String,
1850
+ lastUpdated: Schema.String,
1851
+ lifecycleState: Schema.Literals(["ACTIVE", "PENDING_SETUP", "RETIRED"]),
1852
+ state: Schema.Literals([
1853
+ "UNSPECIFIED",
1854
+ "PENDING",
1855
+ "DISCOVERING",
1856
+ "FAILED",
1857
+ "SUCCEEDED",
1858
+ ]),
1859
+ stateV2: Schema.Literals([
1860
+ "UNSPECIFIED",
1861
+ "PENDING",
1862
+ "DISCOVERING",
1863
+ "FAILED",
1864
+ "SUCCEEDED",
1865
+ ]),
1866
+ awsArn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1867
+ azureSubscriptionId: Schema.optional(
1868
+ Schema.Union([Schema.String, Schema.Null]),
1869
+ ),
1870
+ azureTenantId: Schema.optional(
1871
+ Schema.Union([Schema.String, Schema.Null]),
1872
+ ),
1873
+ description: Schema.optional(
1874
+ Schema.Union([Schema.String, Schema.Null]),
1875
+ ),
1876
+ gcpProjectId: Schema.optional(
1877
+ Schema.Union([Schema.String, Schema.Null]),
1878
+ ),
1879
+ gcpServiceAccountEmail: Schema.optional(
1880
+ Schema.Union([Schema.String, Schema.Null]),
1881
+ ),
1882
+ status: Schema.optional(
1883
+ Schema.Union([
1884
+ Schema.Struct({
1885
+ discoveryProgress: Schema.Struct({
1886
+ done: Schema.Number,
1887
+ total: Schema.Number,
1888
+ unit: Schema.String,
1889
+ }),
1890
+ discoveryProgressV2: Schema.Struct({
1891
+ done: Schema.Number,
1892
+ total: Schema.Number,
1893
+ unit: Schema.String,
1894
+ }),
1895
+ lastDiscoveryStatus: Schema.Literals([
1896
+ "UNSPECIFIED",
1897
+ "PENDING",
1898
+ "DISCOVERING",
1899
+ "FAILED",
1900
+ "SUCCEEDED",
1849
1901
  ]),
1902
+ lastDiscoveryStatusV2: Schema.Literals([
1903
+ "UNSPECIFIED",
1904
+ "PENDING",
1905
+ "DISCOVERING",
1906
+ "FAILED",
1907
+ "SUCCEEDED",
1908
+ ]),
1909
+ regions: Schema.Array(Schema.String),
1910
+ credentialsGoodSince: Schema.optional(
1911
+ Schema.Union([Schema.String, Schema.Null]),
1912
+ ),
1913
+ credentialsMissingSince: Schema.optional(
1914
+ Schema.Union([Schema.String, Schema.Null]),
1915
+ ),
1916
+ credentialsRejectedSince: Schema.optional(
1917
+ Schema.Union([Schema.String, Schema.Null]),
1918
+ ),
1919
+ discoveryMessage: Schema.optional(
1920
+ Schema.Union([Schema.String, Schema.Null]),
1921
+ ),
1922
+ discoveryMessageV2: Schema.optional(
1923
+ Schema.Union([Schema.String, Schema.Null]),
1924
+ ),
1925
+ inUseBy: Schema.optional(
1926
+ Schema.Union([
1927
+ Schema.Array(
1928
+ Schema.Struct({
1929
+ id: Schema.String,
1930
+ clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
1931
+ name: Schema.String,
1932
+ }).pipe(
1933
+ Schema.encodeKeys({
1934
+ id: "id",
1935
+ clientType: "client_type",
1936
+ name: "name",
1937
+ }),
1938
+ ),
1939
+ ),
1940
+ Schema.Null,
1941
+ ]),
1942
+ ),
1943
+ lastDiscoveryCompletedAt: Schema.optional(
1944
+ Schema.Union([Schema.String, Schema.Null]),
1945
+ ),
1946
+ lastDiscoveryCompletedAtV2: Schema.optional(
1947
+ Schema.Union([Schema.String, Schema.Null]),
1948
+ ),
1949
+ lastDiscoveryStartedAt: Schema.optional(
1950
+ Schema.Union([Schema.String, Schema.Null]),
1951
+ ),
1952
+ lastDiscoveryStartedAtV2: Schema.optional(
1953
+ Schema.Union([Schema.String, Schema.Null]),
1954
+ ),
1955
+ lastUpdated: Schema.optional(
1956
+ Schema.Union([Schema.String, Schema.Null]),
1957
+ ),
1958
+ }).pipe(
1959
+ Schema.encodeKeys({
1960
+ discoveryProgress: "discovery_progress",
1961
+ discoveryProgressV2: "discovery_progress_v2",
1962
+ lastDiscoveryStatus: "last_discovery_status",
1963
+ lastDiscoveryStatusV2: "last_discovery_status_v2",
1964
+ regions: "regions",
1965
+ credentialsGoodSince: "credentials_good_since",
1966
+ credentialsMissingSince: "credentials_missing_since",
1967
+ credentialsRejectedSince: "credentials_rejected_since",
1968
+ discoveryMessage: "discovery_message",
1969
+ discoveryMessageV2: "discovery_message_v2",
1970
+ inUseBy: "in_use_by",
1971
+ lastDiscoveryCompletedAt: "last_discovery_completed_at",
1972
+ lastDiscoveryCompletedAtV2: "last_discovery_completed_at_v2",
1973
+ lastDiscoveryStartedAt: "last_discovery_started_at",
1974
+ lastDiscoveryStartedAtV2: "last_discovery_started_at_v2",
1975
+ lastUpdated: "last_updated",
1976
+ }),
1850
1977
  ),
1851
- lastDiscoveryCompletedAt: Schema.optional(
1852
- Schema.Union([Schema.String, Schema.Null]),
1853
- ),
1854
- lastDiscoveryCompletedAtV2: Schema.optional(
1855
- Schema.Union([Schema.String, Schema.Null]),
1856
- ),
1857
- lastDiscoveryStartedAt: Schema.optional(
1858
- Schema.Union([Schema.String, Schema.Null]),
1859
- ),
1860
- lastDiscoveryStartedAtV2: Schema.optional(
1861
- Schema.Union([Schema.String, Schema.Null]),
1862
- ),
1863
- lastUpdated: Schema.optional(
1864
- Schema.Union([Schema.String, Schema.Null]),
1865
- ),
1866
- }).pipe(
1867
- Schema.encodeKeys({
1868
- discoveryProgress: "discovery_progress",
1869
- discoveryProgressV2: "discovery_progress_v2",
1870
- lastDiscoveryStatus: "last_discovery_status",
1871
- lastDiscoveryStatusV2: "last_discovery_status_v2",
1872
- regions: "regions",
1873
- credentialsGoodSince: "credentials_good_since",
1874
- credentialsMissingSince: "credentials_missing_since",
1875
- credentialsRejectedSince: "credentials_rejected_since",
1876
- discoveryMessage: "discovery_message",
1877
- discoveryMessageV2: "discovery_message_v2",
1878
- inUseBy: "in_use_by",
1879
- lastDiscoveryCompletedAt: "last_discovery_completed_at",
1880
- lastDiscoveryCompletedAtV2: "last_discovery_completed_at_v2",
1881
- lastDiscoveryStartedAt: "last_discovery_started_at",
1882
- lastDiscoveryStartedAtV2: "last_discovery_started_at_v2",
1883
- lastUpdated: "last_updated",
1884
- }),
1885
- ),
1886
- Schema.Null,
1887
- ]),
1978
+ Schema.Null,
1979
+ ]),
1980
+ ),
1981
+ }).pipe(
1982
+ Schema.encodeKeys({
1983
+ id: "id",
1984
+ cloudType: "cloud_type",
1985
+ friendlyName: "friendly_name",
1986
+ lastUpdated: "last_updated",
1987
+ lifecycleState: "lifecycle_state",
1988
+ state: "state",
1989
+ stateV2: "state_v2",
1990
+ awsArn: "aws_arn",
1991
+ azureSubscriptionId: "azure_subscription_id",
1992
+ azureTenantId: "azure_tenant_id",
1993
+ description: "description",
1994
+ gcpProjectId: "gcp_project_id",
1995
+ gcpServiceAccountEmail: "gcp_service_account_email",
1996
+ status: "status",
1997
+ }),
1888
1998
  ),
1889
- }).pipe(
1890
- Schema.encodeKeys({
1891
- id: "id",
1892
- cloudType: "cloud_type",
1893
- friendlyName: "friendly_name",
1894
- lastUpdated: "last_updated",
1895
- lifecycleState: "lifecycle_state",
1896
- state: "state",
1897
- stateV2: "state_v2",
1898
- awsArn: "aws_arn",
1899
- azureSubscriptionId: "azure_subscription_id",
1900
- azureTenantId: "azure_tenant_id",
1901
- description: "description",
1902
- gcpProjectId: "gcp_project_id",
1903
- gcpServiceAccountEmail: "gcp_service_account_email",
1904
- status: "status",
1905
- }),
1906
1999
  ),
1907
- ) as unknown as Schema.Schema<ListCloudIntegrationsResponse>;
2000
+ }) as unknown as Schema.Schema<ListCloudIntegrationsResponse>;
1908
2001
 
1909
2002
  export type ListCloudIntegrationsError = DefaultErrors;
1910
2003
 
1911
- export const listCloudIntegrations: API.OperationMethod<
2004
+ export const listCloudIntegrations: API.PaginatedOperationMethod<
1912
2005
  ListCloudIntegrationsRequest,
1913
2006
  ListCloudIntegrationsResponse,
1914
2007
  ListCloudIntegrationsError,
1915
2008
  Credentials | HttpClient.HttpClient
1916
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2009
+ > & {
2010
+ pages: (
2011
+ input: ListCloudIntegrationsRequest,
2012
+ ) => stream.Stream<
2013
+ ListCloudIntegrationsResponse,
2014
+ ListCloudIntegrationsError,
2015
+ Credentials | HttpClient.HttpClient
2016
+ >;
2017
+ items: (input: ListCloudIntegrationsRequest) => stream.Stream<
2018
+ {
2019
+ id: string;
2020
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
2021
+ friendlyName: string;
2022
+ lastUpdated: string;
2023
+ lifecycleState: "ACTIVE" | "PENDING_SETUP" | "RETIRED";
2024
+ state: "UNSPECIFIED" | "PENDING" | "DISCOVERING" | "FAILED" | "SUCCEEDED";
2025
+ stateV2:
2026
+ | "UNSPECIFIED"
2027
+ | "PENDING"
2028
+ | "DISCOVERING"
2029
+ | "FAILED"
2030
+ | "SUCCEEDED";
2031
+ awsArn?: string | null;
2032
+ azureSubscriptionId?: string | null;
2033
+ azureTenantId?: string | null;
2034
+ description?: string | null;
2035
+ gcpProjectId?: string | null;
2036
+ gcpServiceAccountEmail?: string | null;
2037
+ status?: {
2038
+ discoveryProgress: { done: number; total: number; unit: string };
2039
+ discoveryProgressV2: { done: number; total: number; unit: string };
2040
+ lastDiscoveryStatus:
2041
+ | "UNSPECIFIED"
2042
+ | "PENDING"
2043
+ | "DISCOVERING"
2044
+ | "FAILED"
2045
+ | "SUCCEEDED";
2046
+ lastDiscoveryStatusV2:
2047
+ | "UNSPECIFIED"
2048
+ | "PENDING"
2049
+ | "DISCOVERING"
2050
+ | "FAILED"
2051
+ | "SUCCEEDED";
2052
+ regions: string[];
2053
+ credentialsGoodSince?: string | null;
2054
+ credentialsMissingSince?: string | null;
2055
+ credentialsRejectedSince?: string | null;
2056
+ discoveryMessage?: string | null;
2057
+ discoveryMessageV2?: string | null;
2058
+ inUseBy?:
2059
+ | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
2060
+ | null;
2061
+ lastDiscoveryCompletedAt?: string | null;
2062
+ lastDiscoveryCompletedAtV2?: string | null;
2063
+ lastDiscoveryStartedAt?: string | null;
2064
+ lastDiscoveryStartedAtV2?: string | null;
2065
+ lastUpdated?: string | null;
2066
+ } | null;
2067
+ },
2068
+ ListCloudIntegrationsError,
2069
+ Credentials | HttpClient.HttpClient
2070
+ >;
2071
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1917
2072
  input: ListCloudIntegrationsRequest,
1918
2073
  output: ListCloudIntegrationsResponse,
1919
2074
  errors: [],
2075
+ pagination: {
2076
+ mode: "single",
2077
+ items: "result",
2078
+ } as const,
1920
2079
  }));
1921
2080
 
1922
2081
  export interface CreateCloudIntegrationRequest {
@@ -2127,24 +2286,28 @@ export const CreateCloudIntegrationResponse =
2127
2286
  Schema.Null,
2128
2287
  ]),
2129
2288
  ),
2130
- }).pipe(
2131
- Schema.encodeKeys({
2132
- id: "id",
2133
- cloudType: "cloud_type",
2134
- friendlyName: "friendly_name",
2135
- lastUpdated: "last_updated",
2136
- lifecycleState: "lifecycle_state",
2137
- state: "state",
2138
- stateV2: "state_v2",
2139
- awsArn: "aws_arn",
2140
- azureSubscriptionId: "azure_subscription_id",
2141
- azureTenantId: "azure_tenant_id",
2142
- description: "description",
2143
- gcpProjectId: "gcp_project_id",
2144
- gcpServiceAccountEmail: "gcp_service_account_email",
2145
- status: "status",
2146
- }),
2147
- ) as unknown as Schema.Schema<CreateCloudIntegrationResponse>;
2289
+ })
2290
+ .pipe(
2291
+ Schema.encodeKeys({
2292
+ id: "id",
2293
+ cloudType: "cloud_type",
2294
+ friendlyName: "friendly_name",
2295
+ lastUpdated: "last_updated",
2296
+ lifecycleState: "lifecycle_state",
2297
+ state: "state",
2298
+ stateV2: "state_v2",
2299
+ awsArn: "aws_arn",
2300
+ azureSubscriptionId: "azure_subscription_id",
2301
+ azureTenantId: "azure_tenant_id",
2302
+ description: "description",
2303
+ gcpProjectId: "gcp_project_id",
2304
+ gcpServiceAccountEmail: "gcp_service_account_email",
2305
+ status: "status",
2306
+ }),
2307
+ )
2308
+ .pipe(
2309
+ T.ResponsePath("result"),
2310
+ ) as unknown as Schema.Schema<CreateCloudIntegrationResponse>;
2148
2311
 
2149
2312
  export type CreateCloudIntegrationError = DefaultErrors;
2150
2313
 
@@ -2382,24 +2545,28 @@ export const UpdateCloudIntegrationResponse =
2382
2545
  Schema.Null,
2383
2546
  ]),
2384
2547
  ),
2385
- }).pipe(
2386
- Schema.encodeKeys({
2387
- id: "id",
2388
- cloudType: "cloud_type",
2389
- friendlyName: "friendly_name",
2390
- lastUpdated: "last_updated",
2391
- lifecycleState: "lifecycle_state",
2392
- state: "state",
2393
- stateV2: "state_v2",
2394
- awsArn: "aws_arn",
2395
- azureSubscriptionId: "azure_subscription_id",
2396
- azureTenantId: "azure_tenant_id",
2397
- description: "description",
2398
- gcpProjectId: "gcp_project_id",
2399
- gcpServiceAccountEmail: "gcp_service_account_email",
2400
- status: "status",
2401
- }),
2402
- ) as unknown as Schema.Schema<UpdateCloudIntegrationResponse>;
2548
+ })
2549
+ .pipe(
2550
+ Schema.encodeKeys({
2551
+ id: "id",
2552
+ cloudType: "cloud_type",
2553
+ friendlyName: "friendly_name",
2554
+ lastUpdated: "last_updated",
2555
+ lifecycleState: "lifecycle_state",
2556
+ state: "state",
2557
+ stateV2: "state_v2",
2558
+ awsArn: "aws_arn",
2559
+ azureSubscriptionId: "azure_subscription_id",
2560
+ azureTenantId: "azure_tenant_id",
2561
+ description: "description",
2562
+ gcpProjectId: "gcp_project_id",
2563
+ gcpServiceAccountEmail: "gcp_service_account_email",
2564
+ status: "status",
2565
+ }),
2566
+ )
2567
+ .pipe(
2568
+ T.ResponsePath("result"),
2569
+ ) as unknown as Schema.Schema<UpdateCloudIntegrationResponse>;
2403
2570
 
2404
2571
  export type UpdateCloudIntegrationError = DefaultErrors;
2405
2572
 
@@ -2637,24 +2804,28 @@ export const PatchCloudIntegrationResponse =
2637
2804
  Schema.Null,
2638
2805
  ]),
2639
2806
  ),
2640
- }).pipe(
2641
- Schema.encodeKeys({
2642
- id: "id",
2643
- cloudType: "cloud_type",
2644
- friendlyName: "friendly_name",
2645
- lastUpdated: "last_updated",
2646
- lifecycleState: "lifecycle_state",
2647
- state: "state",
2648
- stateV2: "state_v2",
2649
- awsArn: "aws_arn",
2650
- azureSubscriptionId: "azure_subscription_id",
2651
- azureTenantId: "azure_tenant_id",
2652
- description: "description",
2653
- gcpProjectId: "gcp_project_id",
2654
- gcpServiceAccountEmail: "gcp_service_account_email",
2655
- status: "status",
2656
- }),
2657
- ) as unknown as Schema.Schema<PatchCloudIntegrationResponse>;
2807
+ })
2808
+ .pipe(
2809
+ Schema.encodeKeys({
2810
+ id: "id",
2811
+ cloudType: "cloud_type",
2812
+ friendlyName: "friendly_name",
2813
+ lastUpdated: "last_updated",
2814
+ lifecycleState: "lifecycle_state",
2815
+ state: "state",
2816
+ stateV2: "state_v2",
2817
+ awsArn: "aws_arn",
2818
+ azureSubscriptionId: "azure_subscription_id",
2819
+ azureTenantId: "azure_tenant_id",
2820
+ description: "description",
2821
+ gcpProjectId: "gcp_project_id",
2822
+ gcpServiceAccountEmail: "gcp_service_account_email",
2823
+ status: "status",
2824
+ }),
2825
+ )
2826
+ .pipe(
2827
+ T.ResponsePath("result"),
2828
+ ) as unknown as Schema.Schema<PatchCloudIntegrationResponse>;
2658
2829
 
2659
2830
  export type PatchCloudIntegrationError = DefaultErrors;
2660
2831
 
@@ -2692,7 +2863,9 @@ export interface DeleteCloudIntegrationResponse {
2692
2863
  export const DeleteCloudIntegrationResponse =
2693
2864
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2694
2865
  id: Schema.String,
2695
- }) as unknown as Schema.Schema<DeleteCloudIntegrationResponse>;
2866
+ }).pipe(
2867
+ T.ResponsePath("result"),
2868
+ ) as unknown as Schema.Schema<DeleteCloudIntegrationResponse>;
2696
2869
 
2697
2870
  export type DeleteCloudIntegrationError = DefaultErrors;
2698
2871
 
@@ -3962,470 +4135,8 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3962
4135
  vpcsByIdUnavailable: Schema.optional(
3963
4136
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
3964
4137
  ),
3965
- }).pipe(
3966
- Schema.encodeKeys({
3967
- id: "id",
3968
- cloudType: "cloud_type",
3969
- dynamicRouting: "dynamic_routing",
3970
- installRoutesInCloud: "install_routes_in_cloud",
3971
- installRoutesInMagicWan: "install_routes_in_magic_wan",
3972
- name: "name",
3973
- type: "type",
3974
- updatedAt: "updated_at",
3975
- attachedHubs: "attached_hubs",
3976
- attachedVpcs: "attached_vpcs",
3977
- cloudAsn: "cloud_asn",
3978
- description: "description",
3979
- hub: "hub",
3980
- lastAppliedAt: "last_applied_at",
3981
- lastExportedAt: "last_exported_at",
3982
- lastPlannedAt: "last_planned_at",
3983
- manageHubToHubAttachments: "manage_hub_to_hub_attachments",
3984
- manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
3985
- plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
3986
- plannedResources: "planned_resources",
3987
- plannedResourcesUnavailable: "planned_resources_unavailable",
3988
- postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
3989
- postApplyResources: "post_apply_resources",
3990
- postApplyResourcesUnavailable: "post_apply_resources_unavailable",
3991
- region: "region",
3992
- status: "status",
3993
- vpc: "vpc",
3994
- vpcsById: "vpcs_by_id",
3995
- vpcsByIdUnavailable: "vpcs_by_id_unavailable",
3996
- }),
3997
- ) as unknown as Schema.Schema<GetOnRampResponse>;
3998
-
3999
- export type GetOnRampError = DefaultErrors;
4000
-
4001
- export const getOnRamp: API.OperationMethod<
4002
- GetOnRampRequest,
4003
- GetOnRampResponse,
4004
- GetOnRampError,
4005
- Credentials | HttpClient.HttpClient
4006
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4007
- input: GetOnRampRequest,
4008
- output: GetOnRampResponse,
4009
- errors: [],
4010
- }));
4011
-
4012
- export interface ListOnRampsRequest {
4013
- /** Path param: */
4014
- accountId: string;
4015
- /** Query param: */
4016
- desc?: boolean;
4017
- /** Query param: One of ["updated_at", "id", "cloud_type", "name"]. */
4018
- orderBy?: string;
4019
- /** Query param: */
4020
- status?: boolean;
4021
- /** Query param: */
4022
- vpcs?: boolean;
4023
- }
4024
-
4025
- export const ListOnRampsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4026
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
4027
- desc: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("desc")),
4028
- orderBy: Schema.optional(Schema.String).pipe(T.HttpQuery("order_by")),
4029
- status: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("status")),
4030
- vpcs: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("vpcs")),
4031
- }).pipe(
4032
- T.Http({ method: "GET", path: "/accounts/{account_id}/magic/cloud/onramps" }),
4033
- ) as unknown as Schema.Schema<ListOnRampsRequest>;
4034
-
4035
- export type ListOnRampsResponse = {
4036
- id: string;
4037
- cloudType: "AWS" | "AZURE" | "GOOGLE";
4038
- dynamicRouting: boolean;
4039
- installRoutesInCloud: boolean;
4040
- installRoutesInMagicWan: boolean;
4041
- name: string;
4042
- type: "OnrampTypeSingle" | "OnrampTypeHub";
4043
- updatedAt: string;
4044
- attachedHubs?: string[] | null;
4045
- attachedVpcs?: string[] | null;
4046
- cloudAsn?: number | null;
4047
- description?: string | null;
4048
- hub?: string | null;
4049
- lastAppliedAt?: string | null;
4050
- lastExportedAt?: string | null;
4051
- lastPlannedAt?: string | null;
4052
- manageHubToHubAttachments?: boolean | null;
4053
- manageVpcToHubAttachments?: boolean | null;
4054
- plannedMonthlyCostEstimate?: {
4055
- currency: string;
4056
- currentMonthlyCost: number;
4057
- diff: number;
4058
- proposedMonthlyCost: number;
4059
- } | null;
4060
- plannedResources?:
4061
- | {
4062
- diff: {
4063
- diff: string;
4064
- leftDescription: string;
4065
- leftYaml: string;
4066
- rightDescription: string;
4067
- rightYaml: string;
4068
- };
4069
- keysRequireReplace: string[];
4070
- monthlyCostEstimateDiff: {
4071
- currency: string;
4072
- currentMonthlyCost: number;
4073
- diff: number;
4074
- proposedMonthlyCost: number;
4075
- };
4076
- plannedAction: "no_op" | "create" | "update" | "replace" | "destroy";
4077
- resource: {
4078
- id: string;
4079
- cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
4080
- detail: string;
4081
- name: string;
4082
- resourceType:
4083
- | "aws_customer_gateway"
4084
- | "aws_egress_only_internet_gateway"
4085
- | "aws_internet_gateway"
4086
- | "aws_instance"
4087
- | "aws_network_interface"
4088
- | "aws_route"
4089
- | "aws_route_table"
4090
- | "aws_route_table_association"
4091
- | "aws_subnet"
4092
- | "aws_vpc"
4093
- | "aws_vpc_ipv4_cidr_block_association"
4094
- | "aws_vpn_connection"
4095
- | "aws_vpn_connection_route"
4096
- | "aws_vpn_gateway"
4097
- | "aws_security_group"
4098
- | "aws_vpc_security_group_ingress_rule"
4099
- | "aws_vpc_security_group_egress_rule"
4100
- | "aws_ec2_managed_prefix_list"
4101
- | "aws_ec2_transit_gateway"
4102
- | "aws_ec2_transit_gateway_prefix_list_reference"
4103
- | "aws_ec2_transit_gateway_vpc_attachment"
4104
- | "azurerm_application_security_group"
4105
- | "azurerm_lb"
4106
- | "azurerm_lb_backend_address_pool"
4107
- | "azurerm_lb_nat_pool"
4108
- | "azurerm_lb_nat_rule"
4109
- | "azurerm_lb_rule"
4110
- | "azurerm_local_network_gateway"
4111
- | "azurerm_network_interface"
4112
- | "azurerm_network_interface_application_security_group_association"
4113
- | "azurerm_network_interface_backend_address_pool_association"
4114
- | "azurerm_network_interface_security_group_association"
4115
- | "azurerm_network_security_group"
4116
- | "azurerm_public_ip"
4117
- | "azurerm_route"
4118
- | "azurerm_route_table"
4119
- | "azurerm_subnet"
4120
- | "azurerm_subnet_route_table_association"
4121
- | "azurerm_virtual_machine"
4122
- | "azurerm_virtual_network_gateway_connection"
4123
- | "azurerm_virtual_network"
4124
- | "azurerm_virtual_network_gateway"
4125
- | "google_compute_network"
4126
- | "google_compute_subnetwork"
4127
- | "google_compute_vpn_gateway"
4128
- | "google_compute_vpn_tunnel"
4129
- | "google_compute_route"
4130
- | "google_compute_address"
4131
- | "google_compute_global_address"
4132
- | "google_compute_router"
4133
- | "google_compute_interconnect_attachment"
4134
- | "google_compute_ha_vpn_gateway"
4135
- | "google_compute_forwarding_rule"
4136
- | "google_compute_network_firewall_policy"
4137
- | "google_compute_network_firewall_policy_rule"
4138
- | "cloudflare_static_route"
4139
- | "cloudflare_ipsec_tunnel";
4140
- title: string;
4141
- };
4142
- }[]
4143
- | null;
4144
- plannedResourcesUnavailable?: boolean | null;
4145
- postApplyMonthlyCostEstimate?: {
4146
- currency: string;
4147
- monthlyCost: number;
4148
- } | null;
4149
- postApplyResources?: Record<string, unknown> | null;
4150
- postApplyResourcesUnavailable?: boolean | null;
4151
- region?: string | null;
4152
- status?: {
4153
- applyProgress: { done: number; total: number };
4154
- lifecycleState:
4155
- | "OnrampNeedsApply"
4156
- | "OnrampPendingPlan"
4157
- | "OnrampPlanning"
4158
- | "OnrampPlanFailed"
4159
- | "OnrampPendingApproval"
4160
- | "OnrampPendingApply"
4161
- | "OnrampApplying"
4162
- | "OnrampApplyFailed"
4163
- | "OnrampActive"
4164
- | "OnrampPendingDestroy"
4165
- | "OnrampDestroying"
4166
- | "OnrampDestroyFailed";
4167
- planProgress: { done: number; total: number };
4168
- routes: string[];
4169
- tunnels: string[];
4170
- lifecycleErrors?: Record<string, unknown> | null;
4171
- } | null;
4172
- vpc?: string | null;
4173
- vpcsById?: Record<string, unknown> | null;
4174
- vpcsByIdUnavailable?: string[] | null;
4175
- }[];
4176
-
4177
- export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4178
- Schema.Struct({
4179
- id: Schema.String,
4180
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE"]),
4181
- dynamicRouting: Schema.Boolean,
4182
- installRoutesInCloud: Schema.Boolean,
4183
- installRoutesInMagicWan: Schema.Boolean,
4184
- name: Schema.String,
4185
- type: Schema.Literals(["OnrampTypeSingle", "OnrampTypeHub"]),
4186
- updatedAt: Schema.String,
4187
- attachedHubs: Schema.optional(
4188
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4189
- ),
4190
- attachedVpcs: Schema.optional(
4191
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4192
- ),
4193
- cloudAsn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4194
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4195
- hub: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4196
- lastAppliedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4197
- lastExportedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4198
- lastPlannedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4199
- manageHubToHubAttachments: Schema.optional(
4200
- Schema.Union([Schema.Boolean, Schema.Null]),
4201
- ),
4202
- manageVpcToHubAttachments: Schema.optional(
4203
- Schema.Union([Schema.Boolean, Schema.Null]),
4204
- ),
4205
- plannedMonthlyCostEstimate: Schema.optional(
4206
- Schema.Union([
4207
- Schema.Struct({
4208
- currency: Schema.String,
4209
- currentMonthlyCost: Schema.Number,
4210
- diff: Schema.Number,
4211
- proposedMonthlyCost: Schema.Number,
4212
- }).pipe(
4213
- Schema.encodeKeys({
4214
- currency: "currency",
4215
- currentMonthlyCost: "current_monthly_cost",
4216
- diff: "diff",
4217
- proposedMonthlyCost: "proposed_monthly_cost",
4218
- }),
4219
- ),
4220
- Schema.Null,
4221
- ]),
4222
- ),
4223
- plannedResources: Schema.optional(
4224
- Schema.Union([
4225
- Schema.Array(
4226
- Schema.Struct({
4227
- diff: Schema.Struct({
4228
- diff: Schema.String,
4229
- leftDescription: Schema.String,
4230
- leftYaml: Schema.String,
4231
- rightDescription: Schema.String,
4232
- rightYaml: Schema.String,
4233
- }).pipe(
4234
- Schema.encodeKeys({
4235
- diff: "diff",
4236
- leftDescription: "left_description",
4237
- leftYaml: "left_yaml",
4238
- rightDescription: "right_description",
4239
- rightYaml: "right_yaml",
4240
- }),
4241
- ),
4242
- keysRequireReplace: Schema.Array(Schema.String),
4243
- monthlyCostEstimateDiff: Schema.Struct({
4244
- currency: Schema.String,
4245
- currentMonthlyCost: Schema.Number,
4246
- diff: Schema.Number,
4247
- proposedMonthlyCost: Schema.Number,
4248
- }).pipe(
4249
- Schema.encodeKeys({
4250
- currency: "currency",
4251
- currentMonthlyCost: "current_monthly_cost",
4252
- diff: "diff",
4253
- proposedMonthlyCost: "proposed_monthly_cost",
4254
- }),
4255
- ),
4256
- plannedAction: Schema.Literals([
4257
- "no_op",
4258
- "create",
4259
- "update",
4260
- "replace",
4261
- "destroy",
4262
- ]),
4263
- resource: Schema.Struct({
4264
- id: Schema.String,
4265
- cloudType: Schema.Literals([
4266
- "AWS",
4267
- "AZURE",
4268
- "GOOGLE",
4269
- "CLOUDFLARE",
4270
- ]),
4271
- detail: Schema.String,
4272
- name: Schema.String,
4273
- resourceType: Schema.Literals([
4274
- "aws_customer_gateway",
4275
- "aws_egress_only_internet_gateway",
4276
- "aws_internet_gateway",
4277
- "aws_instance",
4278
- "aws_network_interface",
4279
- "aws_route",
4280
- "aws_route_table",
4281
- "aws_route_table_association",
4282
- "aws_subnet",
4283
- "aws_vpc",
4284
- "aws_vpc_ipv4_cidr_block_association",
4285
- "aws_vpn_connection",
4286
- "aws_vpn_connection_route",
4287
- "aws_vpn_gateway",
4288
- "aws_security_group",
4289
- "aws_vpc_security_group_ingress_rule",
4290
- "aws_vpc_security_group_egress_rule",
4291
- "aws_ec2_managed_prefix_list",
4292
- "aws_ec2_transit_gateway",
4293
- "aws_ec2_transit_gateway_prefix_list_reference",
4294
- "aws_ec2_transit_gateway_vpc_attachment",
4295
- "azurerm_application_security_group",
4296
- "azurerm_lb",
4297
- "azurerm_lb_backend_address_pool",
4298
- "azurerm_lb_nat_pool",
4299
- "azurerm_lb_nat_rule",
4300
- "azurerm_lb_rule",
4301
- "azurerm_local_network_gateway",
4302
- "azurerm_network_interface",
4303
- "azurerm_network_interface_application_security_group_association",
4304
- "azurerm_network_interface_backend_address_pool_association",
4305
- "azurerm_network_interface_security_group_association",
4306
- "azurerm_network_security_group",
4307
- "azurerm_public_ip",
4308
- "azurerm_route",
4309
- "azurerm_route_table",
4310
- "azurerm_subnet",
4311
- "azurerm_subnet_route_table_association",
4312
- "azurerm_virtual_machine",
4313
- "azurerm_virtual_network_gateway_connection",
4314
- "azurerm_virtual_network",
4315
- "azurerm_virtual_network_gateway",
4316
- "google_compute_network",
4317
- "google_compute_subnetwork",
4318
- "google_compute_vpn_gateway",
4319
- "google_compute_vpn_tunnel",
4320
- "google_compute_route",
4321
- "google_compute_address",
4322
- "google_compute_global_address",
4323
- "google_compute_router",
4324
- "google_compute_interconnect_attachment",
4325
- "google_compute_ha_vpn_gateway",
4326
- "google_compute_forwarding_rule",
4327
- "google_compute_network_firewall_policy",
4328
- "google_compute_network_firewall_policy_rule",
4329
- "cloudflare_static_route",
4330
- "cloudflare_ipsec_tunnel",
4331
- ]),
4332
- title: Schema.String,
4333
- }).pipe(
4334
- Schema.encodeKeys({
4335
- id: "id",
4336
- cloudType: "cloud_type",
4337
- detail: "detail",
4338
- name: "name",
4339
- resourceType: "resource_type",
4340
- title: "title",
4341
- }),
4342
- ),
4343
- }).pipe(
4344
- Schema.encodeKeys({
4345
- diff: "diff",
4346
- keysRequireReplace: "keys_require_replace",
4347
- monthlyCostEstimateDiff: "monthly_cost_estimate_diff",
4348
- plannedAction: "planned_action",
4349
- resource: "resource",
4350
- }),
4351
- ),
4352
- ),
4353
- Schema.Null,
4354
- ]),
4355
- ),
4356
- plannedResourcesUnavailable: Schema.optional(
4357
- Schema.Union([Schema.Boolean, Schema.Null]),
4358
- ),
4359
- postApplyMonthlyCostEstimate: Schema.optional(
4360
- Schema.Union([
4361
- Schema.Struct({
4362
- currency: Schema.String,
4363
- monthlyCost: Schema.Number,
4364
- }).pipe(
4365
- Schema.encodeKeys({
4366
- currency: "currency",
4367
- monthlyCost: "monthly_cost",
4368
- }),
4369
- ),
4370
- Schema.Null,
4371
- ]),
4372
- ),
4373
- postApplyResources: Schema.optional(
4374
- Schema.Union([Schema.Struct({}), Schema.Null]),
4375
- ),
4376
- postApplyResourcesUnavailable: Schema.optional(
4377
- Schema.Union([Schema.Boolean, Schema.Null]),
4378
- ),
4379
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4380
- status: Schema.optional(
4381
- Schema.Union([
4382
- Schema.Struct({
4383
- applyProgress: Schema.Struct({
4384
- done: Schema.Number,
4385
- total: Schema.Number,
4386
- }),
4387
- lifecycleState: Schema.Literals([
4388
- "OnrampNeedsApply",
4389
- "OnrampPendingPlan",
4390
- "OnrampPlanning",
4391
- "OnrampPlanFailed",
4392
- "OnrampPendingApproval",
4393
- "OnrampPendingApply",
4394
- "OnrampApplying",
4395
- "OnrampApplyFailed",
4396
- "OnrampActive",
4397
- "OnrampPendingDestroy",
4398
- "OnrampDestroying",
4399
- "OnrampDestroyFailed",
4400
- ]),
4401
- planProgress: Schema.Struct({
4402
- done: Schema.Number,
4403
- total: Schema.Number,
4404
- }),
4405
- routes: Schema.Array(Schema.String),
4406
- tunnels: Schema.Array(Schema.String),
4407
- lifecycleErrors: Schema.optional(
4408
- Schema.Union([Schema.Struct({}), Schema.Null]),
4409
- ),
4410
- }).pipe(
4411
- Schema.encodeKeys({
4412
- applyProgress: "apply_progress",
4413
- lifecycleState: "lifecycle_state",
4414
- planProgress: "plan_progress",
4415
- routes: "routes",
4416
- tunnels: "tunnels",
4417
- lifecycleErrors: "lifecycle_errors",
4418
- }),
4419
- ),
4420
- Schema.Null,
4421
- ]),
4422
- ),
4423
- vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4424
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4425
- vpcsByIdUnavailable: Schema.optional(
4426
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4427
- ),
4428
- }).pipe(
4138
+ })
4139
+ .pipe(
4429
4140
  Schema.encodeKeys({
4430
4141
  id: "id",
4431
4142
  cloudType: "cloud_type",
@@ -4457,23 +4168,661 @@ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4457
4168
  vpcsById: "vpcs_by_id",
4458
4169
  vpcsByIdUnavailable: "vpcs_by_id_unavailable",
4459
4170
  }),
4460
- ),
4461
- ) as unknown as Schema.Schema<ListOnRampsResponse>;
4171
+ )
4172
+ .pipe(
4173
+ T.ResponsePath("result"),
4174
+ ) as unknown as Schema.Schema<GetOnRampResponse>;
4462
4175
 
4463
- export type ListOnRampsError = DefaultErrors;
4176
+ export type GetOnRampError = DefaultErrors;
4464
4177
 
4465
- export const listOnRamps: API.OperationMethod<
4466
- ListOnRampsRequest,
4467
- ListOnRampsResponse,
4468
- ListOnRampsError,
4178
+ export const getOnRamp: API.OperationMethod<
4179
+ GetOnRampRequest,
4180
+ GetOnRampResponse,
4181
+ GetOnRampError,
4469
4182
  Credentials | HttpClient.HttpClient
4470
4183
  > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4471
- input: ListOnRampsRequest,
4472
- output: ListOnRampsResponse,
4184
+ input: GetOnRampRequest,
4185
+ output: GetOnRampResponse,
4473
4186
  errors: [],
4474
4187
  }));
4475
4188
 
4476
- export interface CreateOnRampRequest {
4189
+ export interface ListOnRampsRequest {
4190
+ /** Path param: */
4191
+ accountId: string;
4192
+ /** Query param: */
4193
+ desc?: boolean;
4194
+ /** Query param: One of ["updated_at", "id", "cloud_type", "name"]. */
4195
+ orderBy?: string;
4196
+ /** Query param: */
4197
+ status?: boolean;
4198
+ /** Query param: */
4199
+ vpcs?: boolean;
4200
+ }
4201
+
4202
+ export const ListOnRampsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4203
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
4204
+ desc: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("desc")),
4205
+ orderBy: Schema.optional(Schema.String).pipe(T.HttpQuery("order_by")),
4206
+ status: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("status")),
4207
+ vpcs: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("vpcs")),
4208
+ }).pipe(
4209
+ T.Http({ method: "GET", path: "/accounts/{account_id}/magic/cloud/onramps" }),
4210
+ ) as unknown as Schema.Schema<ListOnRampsRequest>;
4211
+
4212
+ export interface ListOnRampsResponse {
4213
+ result: {
4214
+ id: string;
4215
+ cloudType: "AWS" | "AZURE" | "GOOGLE";
4216
+ dynamicRouting: boolean;
4217
+ installRoutesInCloud: boolean;
4218
+ installRoutesInMagicWan: boolean;
4219
+ name: string;
4220
+ type: "OnrampTypeSingle" | "OnrampTypeHub";
4221
+ updatedAt: string;
4222
+ attachedHubs?: string[] | null;
4223
+ attachedVpcs?: string[] | null;
4224
+ cloudAsn?: number | null;
4225
+ description?: string | null;
4226
+ hub?: string | null;
4227
+ lastAppliedAt?: string | null;
4228
+ lastExportedAt?: string | null;
4229
+ lastPlannedAt?: string | null;
4230
+ manageHubToHubAttachments?: boolean | null;
4231
+ manageVpcToHubAttachments?: boolean | null;
4232
+ plannedMonthlyCostEstimate?: {
4233
+ currency: string;
4234
+ currentMonthlyCost: number;
4235
+ diff: number;
4236
+ proposedMonthlyCost: number;
4237
+ } | null;
4238
+ plannedResources?:
4239
+ | {
4240
+ diff: {
4241
+ diff: string;
4242
+ leftDescription: string;
4243
+ leftYaml: string;
4244
+ rightDescription: string;
4245
+ rightYaml: string;
4246
+ };
4247
+ keysRequireReplace: string[];
4248
+ monthlyCostEstimateDiff: {
4249
+ currency: string;
4250
+ currentMonthlyCost: number;
4251
+ diff: number;
4252
+ proposedMonthlyCost: number;
4253
+ };
4254
+ plannedAction: "no_op" | "create" | "update" | "replace" | "destroy";
4255
+ resource: {
4256
+ id: string;
4257
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
4258
+ detail: string;
4259
+ name: string;
4260
+ resourceType:
4261
+ | "aws_customer_gateway"
4262
+ | "aws_egress_only_internet_gateway"
4263
+ | "aws_internet_gateway"
4264
+ | "aws_instance"
4265
+ | "aws_network_interface"
4266
+ | "aws_route"
4267
+ | "aws_route_table"
4268
+ | "aws_route_table_association"
4269
+ | "aws_subnet"
4270
+ | "aws_vpc"
4271
+ | "aws_vpc_ipv4_cidr_block_association"
4272
+ | "aws_vpn_connection"
4273
+ | "aws_vpn_connection_route"
4274
+ | "aws_vpn_gateway"
4275
+ | "aws_security_group"
4276
+ | "aws_vpc_security_group_ingress_rule"
4277
+ | "aws_vpc_security_group_egress_rule"
4278
+ | "aws_ec2_managed_prefix_list"
4279
+ | "aws_ec2_transit_gateway"
4280
+ | "aws_ec2_transit_gateway_prefix_list_reference"
4281
+ | "aws_ec2_transit_gateway_vpc_attachment"
4282
+ | "azurerm_application_security_group"
4283
+ | "azurerm_lb"
4284
+ | "azurerm_lb_backend_address_pool"
4285
+ | "azurerm_lb_nat_pool"
4286
+ | "azurerm_lb_nat_rule"
4287
+ | "azurerm_lb_rule"
4288
+ | "azurerm_local_network_gateway"
4289
+ | "azurerm_network_interface"
4290
+ | "azurerm_network_interface_application_security_group_association"
4291
+ | "azurerm_network_interface_backend_address_pool_association"
4292
+ | "azurerm_network_interface_security_group_association"
4293
+ | "azurerm_network_security_group"
4294
+ | "azurerm_public_ip"
4295
+ | "azurerm_route"
4296
+ | "azurerm_route_table"
4297
+ | "azurerm_subnet"
4298
+ | "azurerm_subnet_route_table_association"
4299
+ | "azurerm_virtual_machine"
4300
+ | "azurerm_virtual_network_gateway_connection"
4301
+ | "azurerm_virtual_network"
4302
+ | "azurerm_virtual_network_gateway"
4303
+ | "google_compute_network"
4304
+ | "google_compute_subnetwork"
4305
+ | "google_compute_vpn_gateway"
4306
+ | "google_compute_vpn_tunnel"
4307
+ | "google_compute_route"
4308
+ | "google_compute_address"
4309
+ | "google_compute_global_address"
4310
+ | "google_compute_router"
4311
+ | "google_compute_interconnect_attachment"
4312
+ | "google_compute_ha_vpn_gateway"
4313
+ | "google_compute_forwarding_rule"
4314
+ | "google_compute_network_firewall_policy"
4315
+ | "google_compute_network_firewall_policy_rule"
4316
+ | "cloudflare_static_route"
4317
+ | "cloudflare_ipsec_tunnel";
4318
+ title: string;
4319
+ };
4320
+ }[]
4321
+ | null;
4322
+ plannedResourcesUnavailable?: boolean | null;
4323
+ postApplyMonthlyCostEstimate?: {
4324
+ currency: string;
4325
+ monthlyCost: number;
4326
+ } | null;
4327
+ postApplyResources?: Record<string, unknown> | null;
4328
+ postApplyResourcesUnavailable?: boolean | null;
4329
+ region?: string | null;
4330
+ status?: {
4331
+ applyProgress: { done: number; total: number };
4332
+ lifecycleState:
4333
+ | "OnrampNeedsApply"
4334
+ | "OnrampPendingPlan"
4335
+ | "OnrampPlanning"
4336
+ | "OnrampPlanFailed"
4337
+ | "OnrampPendingApproval"
4338
+ | "OnrampPendingApply"
4339
+ | "OnrampApplying"
4340
+ | "OnrampApplyFailed"
4341
+ | "OnrampActive"
4342
+ | "OnrampPendingDestroy"
4343
+ | "OnrampDestroying"
4344
+ | "OnrampDestroyFailed";
4345
+ planProgress: { done: number; total: number };
4346
+ routes: string[];
4347
+ tunnels: string[];
4348
+ lifecycleErrors?: Record<string, unknown> | null;
4349
+ } | null;
4350
+ vpc?: string | null;
4351
+ vpcsById?: Record<string, unknown> | null;
4352
+ vpcsByIdUnavailable?: string[] | null;
4353
+ }[];
4354
+ }
4355
+
4356
+ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4357
+ result: Schema.Array(
4358
+ Schema.Struct({
4359
+ id: Schema.String,
4360
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE"]),
4361
+ dynamicRouting: Schema.Boolean,
4362
+ installRoutesInCloud: Schema.Boolean,
4363
+ installRoutesInMagicWan: Schema.Boolean,
4364
+ name: Schema.String,
4365
+ type: Schema.Literals(["OnrampTypeSingle", "OnrampTypeHub"]),
4366
+ updatedAt: Schema.String,
4367
+ attachedHubs: Schema.optional(
4368
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4369
+ ),
4370
+ attachedVpcs: Schema.optional(
4371
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4372
+ ),
4373
+ cloudAsn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4374
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4375
+ hub: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4376
+ lastAppliedAt: Schema.optional(
4377
+ Schema.Union([Schema.String, Schema.Null]),
4378
+ ),
4379
+ lastExportedAt: Schema.optional(
4380
+ Schema.Union([Schema.String, Schema.Null]),
4381
+ ),
4382
+ lastPlannedAt: Schema.optional(
4383
+ Schema.Union([Schema.String, Schema.Null]),
4384
+ ),
4385
+ manageHubToHubAttachments: Schema.optional(
4386
+ Schema.Union([Schema.Boolean, Schema.Null]),
4387
+ ),
4388
+ manageVpcToHubAttachments: Schema.optional(
4389
+ Schema.Union([Schema.Boolean, Schema.Null]),
4390
+ ),
4391
+ plannedMonthlyCostEstimate: Schema.optional(
4392
+ Schema.Union([
4393
+ Schema.Struct({
4394
+ currency: Schema.String,
4395
+ currentMonthlyCost: Schema.Number,
4396
+ diff: Schema.Number,
4397
+ proposedMonthlyCost: Schema.Number,
4398
+ }).pipe(
4399
+ Schema.encodeKeys({
4400
+ currency: "currency",
4401
+ currentMonthlyCost: "current_monthly_cost",
4402
+ diff: "diff",
4403
+ proposedMonthlyCost: "proposed_monthly_cost",
4404
+ }),
4405
+ ),
4406
+ Schema.Null,
4407
+ ]),
4408
+ ),
4409
+ plannedResources: Schema.optional(
4410
+ Schema.Union([
4411
+ Schema.Array(
4412
+ Schema.Struct({
4413
+ diff: Schema.Struct({
4414
+ diff: Schema.String,
4415
+ leftDescription: Schema.String,
4416
+ leftYaml: Schema.String,
4417
+ rightDescription: Schema.String,
4418
+ rightYaml: Schema.String,
4419
+ }).pipe(
4420
+ Schema.encodeKeys({
4421
+ diff: "diff",
4422
+ leftDescription: "left_description",
4423
+ leftYaml: "left_yaml",
4424
+ rightDescription: "right_description",
4425
+ rightYaml: "right_yaml",
4426
+ }),
4427
+ ),
4428
+ keysRequireReplace: Schema.Array(Schema.String),
4429
+ monthlyCostEstimateDiff: Schema.Struct({
4430
+ currency: Schema.String,
4431
+ currentMonthlyCost: Schema.Number,
4432
+ diff: Schema.Number,
4433
+ proposedMonthlyCost: Schema.Number,
4434
+ }).pipe(
4435
+ Schema.encodeKeys({
4436
+ currency: "currency",
4437
+ currentMonthlyCost: "current_monthly_cost",
4438
+ diff: "diff",
4439
+ proposedMonthlyCost: "proposed_monthly_cost",
4440
+ }),
4441
+ ),
4442
+ plannedAction: Schema.Literals([
4443
+ "no_op",
4444
+ "create",
4445
+ "update",
4446
+ "replace",
4447
+ "destroy",
4448
+ ]),
4449
+ resource: Schema.Struct({
4450
+ id: Schema.String,
4451
+ cloudType: Schema.Literals([
4452
+ "AWS",
4453
+ "AZURE",
4454
+ "GOOGLE",
4455
+ "CLOUDFLARE",
4456
+ ]),
4457
+ detail: Schema.String,
4458
+ name: Schema.String,
4459
+ resourceType: Schema.Literals([
4460
+ "aws_customer_gateway",
4461
+ "aws_egress_only_internet_gateway",
4462
+ "aws_internet_gateway",
4463
+ "aws_instance",
4464
+ "aws_network_interface",
4465
+ "aws_route",
4466
+ "aws_route_table",
4467
+ "aws_route_table_association",
4468
+ "aws_subnet",
4469
+ "aws_vpc",
4470
+ "aws_vpc_ipv4_cidr_block_association",
4471
+ "aws_vpn_connection",
4472
+ "aws_vpn_connection_route",
4473
+ "aws_vpn_gateway",
4474
+ "aws_security_group",
4475
+ "aws_vpc_security_group_ingress_rule",
4476
+ "aws_vpc_security_group_egress_rule",
4477
+ "aws_ec2_managed_prefix_list",
4478
+ "aws_ec2_transit_gateway",
4479
+ "aws_ec2_transit_gateway_prefix_list_reference",
4480
+ "aws_ec2_transit_gateway_vpc_attachment",
4481
+ "azurerm_application_security_group",
4482
+ "azurerm_lb",
4483
+ "azurerm_lb_backend_address_pool",
4484
+ "azurerm_lb_nat_pool",
4485
+ "azurerm_lb_nat_rule",
4486
+ "azurerm_lb_rule",
4487
+ "azurerm_local_network_gateway",
4488
+ "azurerm_network_interface",
4489
+ "azurerm_network_interface_application_security_group_association",
4490
+ "azurerm_network_interface_backend_address_pool_association",
4491
+ "azurerm_network_interface_security_group_association",
4492
+ "azurerm_network_security_group",
4493
+ "azurerm_public_ip",
4494
+ "azurerm_route",
4495
+ "azurerm_route_table",
4496
+ "azurerm_subnet",
4497
+ "azurerm_subnet_route_table_association",
4498
+ "azurerm_virtual_machine",
4499
+ "azurerm_virtual_network_gateway_connection",
4500
+ "azurerm_virtual_network",
4501
+ "azurerm_virtual_network_gateway",
4502
+ "google_compute_network",
4503
+ "google_compute_subnetwork",
4504
+ "google_compute_vpn_gateway",
4505
+ "google_compute_vpn_tunnel",
4506
+ "google_compute_route",
4507
+ "google_compute_address",
4508
+ "google_compute_global_address",
4509
+ "google_compute_router",
4510
+ "google_compute_interconnect_attachment",
4511
+ "google_compute_ha_vpn_gateway",
4512
+ "google_compute_forwarding_rule",
4513
+ "google_compute_network_firewall_policy",
4514
+ "google_compute_network_firewall_policy_rule",
4515
+ "cloudflare_static_route",
4516
+ "cloudflare_ipsec_tunnel",
4517
+ ]),
4518
+ title: Schema.String,
4519
+ }).pipe(
4520
+ Schema.encodeKeys({
4521
+ id: "id",
4522
+ cloudType: "cloud_type",
4523
+ detail: "detail",
4524
+ name: "name",
4525
+ resourceType: "resource_type",
4526
+ title: "title",
4527
+ }),
4528
+ ),
4529
+ }).pipe(
4530
+ Schema.encodeKeys({
4531
+ diff: "diff",
4532
+ keysRequireReplace: "keys_require_replace",
4533
+ monthlyCostEstimateDiff: "monthly_cost_estimate_diff",
4534
+ plannedAction: "planned_action",
4535
+ resource: "resource",
4536
+ }),
4537
+ ),
4538
+ ),
4539
+ Schema.Null,
4540
+ ]),
4541
+ ),
4542
+ plannedResourcesUnavailable: Schema.optional(
4543
+ Schema.Union([Schema.Boolean, Schema.Null]),
4544
+ ),
4545
+ postApplyMonthlyCostEstimate: Schema.optional(
4546
+ Schema.Union([
4547
+ Schema.Struct({
4548
+ currency: Schema.String,
4549
+ monthlyCost: Schema.Number,
4550
+ }).pipe(
4551
+ Schema.encodeKeys({
4552
+ currency: "currency",
4553
+ monthlyCost: "monthly_cost",
4554
+ }),
4555
+ ),
4556
+ Schema.Null,
4557
+ ]),
4558
+ ),
4559
+ postApplyResources: Schema.optional(
4560
+ Schema.Union([Schema.Struct({}), Schema.Null]),
4561
+ ),
4562
+ postApplyResourcesUnavailable: Schema.optional(
4563
+ Schema.Union([Schema.Boolean, Schema.Null]),
4564
+ ),
4565
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4566
+ status: Schema.optional(
4567
+ Schema.Union([
4568
+ Schema.Struct({
4569
+ applyProgress: Schema.Struct({
4570
+ done: Schema.Number,
4571
+ total: Schema.Number,
4572
+ }),
4573
+ lifecycleState: Schema.Literals([
4574
+ "OnrampNeedsApply",
4575
+ "OnrampPendingPlan",
4576
+ "OnrampPlanning",
4577
+ "OnrampPlanFailed",
4578
+ "OnrampPendingApproval",
4579
+ "OnrampPendingApply",
4580
+ "OnrampApplying",
4581
+ "OnrampApplyFailed",
4582
+ "OnrampActive",
4583
+ "OnrampPendingDestroy",
4584
+ "OnrampDestroying",
4585
+ "OnrampDestroyFailed",
4586
+ ]),
4587
+ planProgress: Schema.Struct({
4588
+ done: Schema.Number,
4589
+ total: Schema.Number,
4590
+ }),
4591
+ routes: Schema.Array(Schema.String),
4592
+ tunnels: Schema.Array(Schema.String),
4593
+ lifecycleErrors: Schema.optional(
4594
+ Schema.Union([Schema.Struct({}), Schema.Null]),
4595
+ ),
4596
+ }).pipe(
4597
+ Schema.encodeKeys({
4598
+ applyProgress: "apply_progress",
4599
+ lifecycleState: "lifecycle_state",
4600
+ planProgress: "plan_progress",
4601
+ routes: "routes",
4602
+ tunnels: "tunnels",
4603
+ lifecycleErrors: "lifecycle_errors",
4604
+ }),
4605
+ ),
4606
+ Schema.Null,
4607
+ ]),
4608
+ ),
4609
+ vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4610
+ vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4611
+ vpcsByIdUnavailable: Schema.optional(
4612
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4613
+ ),
4614
+ }).pipe(
4615
+ Schema.encodeKeys({
4616
+ id: "id",
4617
+ cloudType: "cloud_type",
4618
+ dynamicRouting: "dynamic_routing",
4619
+ installRoutesInCloud: "install_routes_in_cloud",
4620
+ installRoutesInMagicWan: "install_routes_in_magic_wan",
4621
+ name: "name",
4622
+ type: "type",
4623
+ updatedAt: "updated_at",
4624
+ attachedHubs: "attached_hubs",
4625
+ attachedVpcs: "attached_vpcs",
4626
+ cloudAsn: "cloud_asn",
4627
+ description: "description",
4628
+ hub: "hub",
4629
+ lastAppliedAt: "last_applied_at",
4630
+ lastExportedAt: "last_exported_at",
4631
+ lastPlannedAt: "last_planned_at",
4632
+ manageHubToHubAttachments: "manage_hub_to_hub_attachments",
4633
+ manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
4634
+ plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
4635
+ plannedResources: "planned_resources",
4636
+ plannedResourcesUnavailable: "planned_resources_unavailable",
4637
+ postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
4638
+ postApplyResources: "post_apply_resources",
4639
+ postApplyResourcesUnavailable: "post_apply_resources_unavailable",
4640
+ region: "region",
4641
+ status: "status",
4642
+ vpc: "vpc",
4643
+ vpcsById: "vpcs_by_id",
4644
+ vpcsByIdUnavailable: "vpcs_by_id_unavailable",
4645
+ }),
4646
+ ),
4647
+ ),
4648
+ }) as unknown as Schema.Schema<ListOnRampsResponse>;
4649
+
4650
+ export type ListOnRampsError = DefaultErrors;
4651
+
4652
+ export const listOnRamps: API.PaginatedOperationMethod<
4653
+ ListOnRampsRequest,
4654
+ ListOnRampsResponse,
4655
+ ListOnRampsError,
4656
+ Credentials | HttpClient.HttpClient
4657
+ > & {
4658
+ pages: (
4659
+ input: ListOnRampsRequest,
4660
+ ) => stream.Stream<
4661
+ ListOnRampsResponse,
4662
+ ListOnRampsError,
4663
+ Credentials | HttpClient.HttpClient
4664
+ >;
4665
+ items: (input: ListOnRampsRequest) => stream.Stream<
4666
+ {
4667
+ id: string;
4668
+ cloudType: "AWS" | "AZURE" | "GOOGLE";
4669
+ dynamicRouting: boolean;
4670
+ installRoutesInCloud: boolean;
4671
+ installRoutesInMagicWan: boolean;
4672
+ name: string;
4673
+ type: "OnrampTypeSingle" | "OnrampTypeHub";
4674
+ updatedAt: string;
4675
+ attachedHubs?: string[] | null;
4676
+ attachedVpcs?: string[] | null;
4677
+ cloudAsn?: number | null;
4678
+ description?: string | null;
4679
+ hub?: string | null;
4680
+ lastAppliedAt?: string | null;
4681
+ lastExportedAt?: string | null;
4682
+ lastPlannedAt?: string | null;
4683
+ manageHubToHubAttachments?: boolean | null;
4684
+ manageVpcToHubAttachments?: boolean | null;
4685
+ plannedMonthlyCostEstimate?: {
4686
+ currency: string;
4687
+ currentMonthlyCost: number;
4688
+ diff: number;
4689
+ proposedMonthlyCost: number;
4690
+ } | null;
4691
+ plannedResources?:
4692
+ | {
4693
+ diff: {
4694
+ diff: string;
4695
+ leftDescription: string;
4696
+ leftYaml: string;
4697
+ rightDescription: string;
4698
+ rightYaml: string;
4699
+ };
4700
+ keysRequireReplace: string[];
4701
+ monthlyCostEstimateDiff: {
4702
+ currency: string;
4703
+ currentMonthlyCost: number;
4704
+ diff: number;
4705
+ proposedMonthlyCost: number;
4706
+ };
4707
+ plannedAction:
4708
+ | "no_op"
4709
+ | "create"
4710
+ | "update"
4711
+ | "replace"
4712
+ | "destroy";
4713
+ resource: {
4714
+ id: string;
4715
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
4716
+ detail: string;
4717
+ name: string;
4718
+ resourceType:
4719
+ | "aws_customer_gateway"
4720
+ | "aws_egress_only_internet_gateway"
4721
+ | "aws_internet_gateway"
4722
+ | "aws_instance"
4723
+ | "aws_network_interface"
4724
+ | "aws_route"
4725
+ | "aws_route_table"
4726
+ | "aws_route_table_association"
4727
+ | "aws_subnet"
4728
+ | "aws_vpc"
4729
+ | "aws_vpc_ipv4_cidr_block_association"
4730
+ | "aws_vpn_connection"
4731
+ | "aws_vpn_connection_route"
4732
+ | "aws_vpn_gateway"
4733
+ | "aws_security_group"
4734
+ | "aws_vpc_security_group_ingress_rule"
4735
+ | "aws_vpc_security_group_egress_rule"
4736
+ | "aws_ec2_managed_prefix_list"
4737
+ | "aws_ec2_transit_gateway"
4738
+ | "aws_ec2_transit_gateway_prefix_list_reference"
4739
+ | "aws_ec2_transit_gateway_vpc_attachment"
4740
+ | "azurerm_application_security_group"
4741
+ | "azurerm_lb"
4742
+ | "azurerm_lb_backend_address_pool"
4743
+ | "azurerm_lb_nat_pool"
4744
+ | "azurerm_lb_nat_rule"
4745
+ | "azurerm_lb_rule"
4746
+ | "azurerm_local_network_gateway"
4747
+ | "azurerm_network_interface"
4748
+ | "azurerm_network_interface_application_security_group_association"
4749
+ | "azurerm_network_interface_backend_address_pool_association"
4750
+ | "azurerm_network_interface_security_group_association"
4751
+ | "azurerm_network_security_group"
4752
+ | "azurerm_public_ip"
4753
+ | "azurerm_route"
4754
+ | "azurerm_route_table"
4755
+ | "azurerm_subnet"
4756
+ | "azurerm_subnet_route_table_association"
4757
+ | "azurerm_virtual_machine"
4758
+ | "azurerm_virtual_network_gateway_connection"
4759
+ | "azurerm_virtual_network"
4760
+ | "azurerm_virtual_network_gateway"
4761
+ | "google_compute_network"
4762
+ | "google_compute_subnetwork"
4763
+ | "google_compute_vpn_gateway"
4764
+ | "google_compute_vpn_tunnel"
4765
+ | "google_compute_route"
4766
+ | "google_compute_address"
4767
+ | "google_compute_global_address"
4768
+ | "google_compute_router"
4769
+ | "google_compute_interconnect_attachment"
4770
+ | "google_compute_ha_vpn_gateway"
4771
+ | "google_compute_forwarding_rule"
4772
+ | "google_compute_network_firewall_policy"
4773
+ | "google_compute_network_firewall_policy_rule"
4774
+ | "cloudflare_static_route"
4775
+ | "cloudflare_ipsec_tunnel";
4776
+ title: string;
4777
+ };
4778
+ }[]
4779
+ | null;
4780
+ plannedResourcesUnavailable?: boolean | null;
4781
+ postApplyMonthlyCostEstimate?: {
4782
+ currency: string;
4783
+ monthlyCost: number;
4784
+ } | null;
4785
+ postApplyResources?: Record<string, unknown> | null;
4786
+ postApplyResourcesUnavailable?: boolean | null;
4787
+ region?: string | null;
4788
+ status?: {
4789
+ applyProgress: { done: number; total: number };
4790
+ lifecycleState:
4791
+ | "OnrampNeedsApply"
4792
+ | "OnrampPendingPlan"
4793
+ | "OnrampPlanning"
4794
+ | "OnrampPlanFailed"
4795
+ | "OnrampPendingApproval"
4796
+ | "OnrampPendingApply"
4797
+ | "OnrampApplying"
4798
+ | "OnrampApplyFailed"
4799
+ | "OnrampActive"
4800
+ | "OnrampPendingDestroy"
4801
+ | "OnrampDestroying"
4802
+ | "OnrampDestroyFailed";
4803
+ planProgress: { done: number; total: number };
4804
+ routes: string[];
4805
+ tunnels: string[];
4806
+ lifecycleErrors?: Record<string, unknown> | null;
4807
+ } | null;
4808
+ vpc?: string | null;
4809
+ vpcsById?: Record<string, unknown> | null;
4810
+ vpcsByIdUnavailable?: string[] | null;
4811
+ },
4812
+ ListOnRampsError,
4813
+ Credentials | HttpClient.HttpClient
4814
+ >;
4815
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4816
+ input: ListOnRampsRequest,
4817
+ output: ListOnRampsResponse,
4818
+ errors: [],
4819
+ pagination: {
4820
+ mode: "single",
4821
+ items: "result",
4822
+ } as const,
4823
+ }));
4824
+
4825
+ export interface CreateOnRampRequest {
4477
4826
  /** Path param: */
4478
4827
  accountId: string;
4479
4828
  /** Header param: */
@@ -4949,39 +5298,43 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4949
5298
  vpcsByIdUnavailable: Schema.optional(
4950
5299
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4951
5300
  ),
4952
- }).pipe(
4953
- Schema.encodeKeys({
4954
- id: "id",
4955
- cloudType: "cloud_type",
4956
- dynamicRouting: "dynamic_routing",
4957
- installRoutesInCloud: "install_routes_in_cloud",
4958
- installRoutesInMagicWan: "install_routes_in_magic_wan",
4959
- name: "name",
4960
- type: "type",
4961
- updatedAt: "updated_at",
4962
- attachedHubs: "attached_hubs",
4963
- attachedVpcs: "attached_vpcs",
4964
- cloudAsn: "cloud_asn",
4965
- description: "description",
4966
- hub: "hub",
4967
- lastAppliedAt: "last_applied_at",
4968
- lastExportedAt: "last_exported_at",
4969
- lastPlannedAt: "last_planned_at",
4970
- manageHubToHubAttachments: "manage_hub_to_hub_attachments",
4971
- manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
4972
- plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
4973
- plannedResources: "planned_resources",
4974
- plannedResourcesUnavailable: "planned_resources_unavailable",
4975
- postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
4976
- postApplyResources: "post_apply_resources",
4977
- postApplyResourcesUnavailable: "post_apply_resources_unavailable",
4978
- region: "region",
4979
- status: "status",
4980
- vpc: "vpc",
4981
- vpcsById: "vpcs_by_id",
4982
- vpcsByIdUnavailable: "vpcs_by_id_unavailable",
4983
- }),
4984
- ) as unknown as Schema.Schema<CreateOnRampResponse>;
5301
+ })
5302
+ .pipe(
5303
+ Schema.encodeKeys({
5304
+ id: "id",
5305
+ cloudType: "cloud_type",
5306
+ dynamicRouting: "dynamic_routing",
5307
+ installRoutesInCloud: "install_routes_in_cloud",
5308
+ installRoutesInMagicWan: "install_routes_in_magic_wan",
5309
+ name: "name",
5310
+ type: "type",
5311
+ updatedAt: "updated_at",
5312
+ attachedHubs: "attached_hubs",
5313
+ attachedVpcs: "attached_vpcs",
5314
+ cloudAsn: "cloud_asn",
5315
+ description: "description",
5316
+ hub: "hub",
5317
+ lastAppliedAt: "last_applied_at",
5318
+ lastExportedAt: "last_exported_at",
5319
+ lastPlannedAt: "last_planned_at",
5320
+ manageHubToHubAttachments: "manage_hub_to_hub_attachments",
5321
+ manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
5322
+ plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
5323
+ plannedResources: "planned_resources",
5324
+ plannedResourcesUnavailable: "planned_resources_unavailable",
5325
+ postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
5326
+ postApplyResources: "post_apply_resources",
5327
+ postApplyResourcesUnavailable: "post_apply_resources_unavailable",
5328
+ region: "region",
5329
+ status: "status",
5330
+ vpc: "vpc",
5331
+ vpcsById: "vpcs_by_id",
5332
+ vpcsByIdUnavailable: "vpcs_by_id_unavailable",
5333
+ }),
5334
+ )
5335
+ .pipe(
5336
+ T.ResponsePath("result"),
5337
+ ) as unknown as Schema.Schema<CreateOnRampResponse>;
4985
5338
 
4986
5339
  export type CreateOnRampError = DefaultErrors;
4987
5340
 
@@ -5443,39 +5796,43 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5443
5796
  vpcsByIdUnavailable: Schema.optional(
5444
5797
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5445
5798
  ),
5446
- }).pipe(
5447
- Schema.encodeKeys({
5448
- id: "id",
5449
- cloudType: "cloud_type",
5450
- dynamicRouting: "dynamic_routing",
5451
- installRoutesInCloud: "install_routes_in_cloud",
5452
- installRoutesInMagicWan: "install_routes_in_magic_wan",
5453
- name: "name",
5454
- type: "type",
5455
- updatedAt: "updated_at",
5456
- attachedHubs: "attached_hubs",
5457
- attachedVpcs: "attached_vpcs",
5458
- cloudAsn: "cloud_asn",
5459
- description: "description",
5460
- hub: "hub",
5461
- lastAppliedAt: "last_applied_at",
5462
- lastExportedAt: "last_exported_at",
5463
- lastPlannedAt: "last_planned_at",
5464
- manageHubToHubAttachments: "manage_hub_to_hub_attachments",
5465
- manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
5466
- plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
5467
- plannedResources: "planned_resources",
5468
- plannedResourcesUnavailable: "planned_resources_unavailable",
5469
- postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
5470
- postApplyResources: "post_apply_resources",
5471
- postApplyResourcesUnavailable: "post_apply_resources_unavailable",
5472
- region: "region",
5473
- status: "status",
5474
- vpc: "vpc",
5475
- vpcsById: "vpcs_by_id",
5476
- vpcsByIdUnavailable: "vpcs_by_id_unavailable",
5477
- }),
5478
- ) as unknown as Schema.Schema<UpdateOnRampResponse>;
5799
+ })
5800
+ .pipe(
5801
+ Schema.encodeKeys({
5802
+ id: "id",
5803
+ cloudType: "cloud_type",
5804
+ dynamicRouting: "dynamic_routing",
5805
+ installRoutesInCloud: "install_routes_in_cloud",
5806
+ installRoutesInMagicWan: "install_routes_in_magic_wan",
5807
+ name: "name",
5808
+ type: "type",
5809
+ updatedAt: "updated_at",
5810
+ attachedHubs: "attached_hubs",
5811
+ attachedVpcs: "attached_vpcs",
5812
+ cloudAsn: "cloud_asn",
5813
+ description: "description",
5814
+ hub: "hub",
5815
+ lastAppliedAt: "last_applied_at",
5816
+ lastExportedAt: "last_exported_at",
5817
+ lastPlannedAt: "last_planned_at",
5818
+ manageHubToHubAttachments: "manage_hub_to_hub_attachments",
5819
+ manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
5820
+ plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
5821
+ plannedResources: "planned_resources",
5822
+ plannedResourcesUnavailable: "planned_resources_unavailable",
5823
+ postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
5824
+ postApplyResources: "post_apply_resources",
5825
+ postApplyResourcesUnavailable: "post_apply_resources_unavailable",
5826
+ region: "region",
5827
+ status: "status",
5828
+ vpc: "vpc",
5829
+ vpcsById: "vpcs_by_id",
5830
+ vpcsByIdUnavailable: "vpcs_by_id_unavailable",
5831
+ }),
5832
+ )
5833
+ .pipe(
5834
+ T.ResponsePath("result"),
5835
+ ) as unknown as Schema.Schema<UpdateOnRampResponse>;
5479
5836
 
5480
5837
  export type UpdateOnRampError = DefaultErrors;
5481
5838
 
@@ -5937,39 +6294,43 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5937
6294
  vpcsByIdUnavailable: Schema.optional(
5938
6295
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5939
6296
  ),
5940
- }).pipe(
5941
- Schema.encodeKeys({
5942
- id: "id",
5943
- cloudType: "cloud_type",
5944
- dynamicRouting: "dynamic_routing",
5945
- installRoutesInCloud: "install_routes_in_cloud",
5946
- installRoutesInMagicWan: "install_routes_in_magic_wan",
5947
- name: "name",
5948
- type: "type",
5949
- updatedAt: "updated_at",
5950
- attachedHubs: "attached_hubs",
5951
- attachedVpcs: "attached_vpcs",
5952
- cloudAsn: "cloud_asn",
5953
- description: "description",
5954
- hub: "hub",
5955
- lastAppliedAt: "last_applied_at",
5956
- lastExportedAt: "last_exported_at",
5957
- lastPlannedAt: "last_planned_at",
5958
- manageHubToHubAttachments: "manage_hub_to_hub_attachments",
5959
- manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
5960
- plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
5961
- plannedResources: "planned_resources",
5962
- plannedResourcesUnavailable: "planned_resources_unavailable",
5963
- postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
5964
- postApplyResources: "post_apply_resources",
5965
- postApplyResourcesUnavailable: "post_apply_resources_unavailable",
5966
- region: "region",
5967
- status: "status",
5968
- vpc: "vpc",
5969
- vpcsById: "vpcs_by_id",
5970
- vpcsByIdUnavailable: "vpcs_by_id_unavailable",
5971
- }),
5972
- ) as unknown as Schema.Schema<PatchOnRampResponse>;
6297
+ })
6298
+ .pipe(
6299
+ Schema.encodeKeys({
6300
+ id: "id",
6301
+ cloudType: "cloud_type",
6302
+ dynamicRouting: "dynamic_routing",
6303
+ installRoutesInCloud: "install_routes_in_cloud",
6304
+ installRoutesInMagicWan: "install_routes_in_magic_wan",
6305
+ name: "name",
6306
+ type: "type",
6307
+ updatedAt: "updated_at",
6308
+ attachedHubs: "attached_hubs",
6309
+ attachedVpcs: "attached_vpcs",
6310
+ cloudAsn: "cloud_asn",
6311
+ description: "description",
6312
+ hub: "hub",
6313
+ lastAppliedAt: "last_applied_at",
6314
+ lastExportedAt: "last_exported_at",
6315
+ lastPlannedAt: "last_planned_at",
6316
+ manageHubToHubAttachments: "manage_hub_to_hub_attachments",
6317
+ manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
6318
+ plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
6319
+ plannedResources: "planned_resources",
6320
+ plannedResourcesUnavailable: "planned_resources_unavailable",
6321
+ postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
6322
+ postApplyResources: "post_apply_resources",
6323
+ postApplyResourcesUnavailable: "post_apply_resources_unavailable",
6324
+ region: "region",
6325
+ status: "status",
6326
+ vpc: "vpc",
6327
+ vpcsById: "vpcs_by_id",
6328
+ vpcsByIdUnavailable: "vpcs_by_id_unavailable",
6329
+ }),
6330
+ )
6331
+ .pipe(
6332
+ T.ResponsePath("result"),
6333
+ ) as unknown as Schema.Schema<PatchOnRampResponse>;
5973
6334
 
5974
6335
  export type PatchOnRampError = DefaultErrors;
5975
6336
 
@@ -6012,7 +6373,9 @@ export interface DeleteOnRampResponse {
6012
6373
 
6013
6374
  export const DeleteOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6014
6375
  id: Schema.String,
6015
- }) as unknown as Schema.Schema<DeleteOnRampResponse>;
6376
+ }).pipe(
6377
+ T.ResponsePath("result"),
6378
+ ) as unknown as Schema.Schema<DeleteOnRampResponse>;
6016
6379
 
6017
6380
  export type DeleteOnRampError = DefaultErrors;
6018
6381
 
@@ -7725,7 +8088,9 @@ export interface ListOnRampAddressSpacesResponse {
7725
8088
  export const ListOnRampAddressSpacesResponse =
7726
8089
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7727
8090
  prefixes: Schema.Array(Schema.String),
7728
- }) as unknown as Schema.Schema<ListOnRampAddressSpacesResponse>;
8091
+ }).pipe(
8092
+ T.ResponsePath("result"),
8093
+ ) as unknown as Schema.Schema<ListOnRampAddressSpacesResponse>;
7729
8094
 
7730
8095
  export type ListOnRampAddressSpacesError = DefaultErrors;
7731
8096
 
@@ -7765,7 +8130,9 @@ export interface PutOnRampAddressSpaceResponse {
7765
8130
  export const PutOnRampAddressSpaceResponse =
7766
8131
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7767
8132
  prefixes: Schema.Array(Schema.String),
7768
- }) as unknown as Schema.Schema<PutOnRampAddressSpaceResponse>;
8133
+ }).pipe(
8134
+ T.ResponsePath("result"),
8135
+ ) as unknown as Schema.Schema<PutOnRampAddressSpaceResponse>;
7769
8136
 
7770
8137
  export type PutOnRampAddressSpaceError = DefaultErrors;
7771
8138
 
@@ -7805,7 +8172,9 @@ export interface PatchOnRampAddressSpaceResponse {
7805
8172
  export const PatchOnRampAddressSpaceResponse =
7806
8173
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7807
8174
  prefixes: Schema.Array(Schema.String),
7808
- }) as unknown as Schema.Schema<PatchOnRampAddressSpaceResponse>;
8175
+ }).pipe(
8176
+ T.ResponsePath("result"),
8177
+ ) as unknown as Schema.Schema<PatchOnRampAddressSpaceResponse>;
7809
8178
 
7810
8179
  export type PatchOnRampAddressSpaceError = DefaultErrors;
7811
8180
 
@@ -7845,7 +8214,9 @@ export const PolicyPreviewResourceRequest =
7845
8214
  export type PolicyPreviewResourceResponse = string;
7846
8215
 
7847
8216
  export const PolicyPreviewResourceResponse =
7848
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<PolicyPreviewResourceResponse>;
8217
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
8218
+ T.ResponsePath("result"),
8219
+ ) as unknown as Schema.Schema<PolicyPreviewResourceResponse>;
7849
8220
 
7850
8221
  export type PolicyPreviewResourceError = DefaultErrors;
7851
8222
 
@@ -8779,31 +9150,35 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8779
9150
  Schema.Null,
8780
9151
  ]),
8781
9152
  ),
8782
- }).pipe(
8783
- Schema.encodeKeys({
8784
- id: "id",
8785
- accountId: "account_id",
8786
- cloudType: "cloud_type",
8787
- config: "config",
8788
- deploymentProvider: "deployment_provider",
8789
- managed: "managed",
8790
- monthlyCostEstimate: "monthly_cost_estimate",
8791
- name: "name",
8792
- nativeId: "native_id",
8793
- observations: "observations",
8794
- providerIds: "provider_ids",
8795
- providerNamesById: "provider_names_by_id",
8796
- region: "region",
8797
- resourceGroup: "resource_group",
8798
- resourceType: "resource_type",
8799
- sections: "sections",
8800
- state: "state",
8801
- tags: "tags",
8802
- updatedAt: "updated_at",
8803
- url: "url",
8804
- managedBy: "managed_by",
8805
- }),
8806
- ) as unknown as Schema.Schema<GetResourceResponse>;
9153
+ })
9154
+ .pipe(
9155
+ Schema.encodeKeys({
9156
+ id: "id",
9157
+ accountId: "account_id",
9158
+ cloudType: "cloud_type",
9159
+ config: "config",
9160
+ deploymentProvider: "deployment_provider",
9161
+ managed: "managed",
9162
+ monthlyCostEstimate: "monthly_cost_estimate",
9163
+ name: "name",
9164
+ nativeId: "native_id",
9165
+ observations: "observations",
9166
+ providerIds: "provider_ids",
9167
+ providerNamesById: "provider_names_by_id",
9168
+ region: "region",
9169
+ resourceGroup: "resource_group",
9170
+ resourceType: "resource_type",
9171
+ sections: "sections",
9172
+ state: "state",
9173
+ tags: "tags",
9174
+ updatedAt: "updated_at",
9175
+ url: "url",
9176
+ managedBy: "managed_by",
9177
+ }),
9178
+ )
9179
+ .pipe(
9180
+ T.ResponsePath("result"),
9181
+ ) as unknown as Schema.Schema<GetResourceResponse>;
8807
9182
 
8808
9183
  export type GetResourceError = DefaultErrors;
8809
9184
 
@@ -8991,767 +9366,1117 @@ export const ListResourcesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8991
9366
  }),
8992
9367
  ) as unknown as Schema.Schema<ListResourcesRequest>;
8993
9368
 
8994
- export type ListResourcesResponse = {
8995
- id: string;
8996
- accountId: string;
8997
- cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
8998
- config: Record<string, unknown>;
8999
- deploymentProvider: string;
9000
- managed: boolean;
9001
- monthlyCostEstimate: { currency: string; monthlyCost: number };
9002
- name: string;
9003
- nativeId: string;
9004
- observations: Record<string, unknown>;
9005
- providerIds: string[];
9006
- providerNamesById: Record<string, unknown>;
9007
- region: string;
9008
- resourceGroup: string;
9009
- resourceType:
9010
- | "aws_customer_gateway"
9011
- | "aws_egress_only_internet_gateway"
9012
- | "aws_internet_gateway"
9013
- | "aws_instance"
9014
- | "aws_network_interface"
9015
- | "aws_route"
9016
- | "aws_route_table"
9017
- | "aws_route_table_association"
9018
- | "aws_subnet"
9019
- | "aws_vpc"
9020
- | "aws_vpc_ipv4_cidr_block_association"
9021
- | "aws_vpn_connection"
9022
- | "aws_vpn_connection_route"
9023
- | "aws_vpn_gateway"
9024
- | "aws_security_group"
9025
- | "aws_vpc_security_group_ingress_rule"
9026
- | "aws_vpc_security_group_egress_rule"
9027
- | "aws_ec2_managed_prefix_list"
9028
- | "aws_ec2_transit_gateway"
9029
- | "aws_ec2_transit_gateway_prefix_list_reference"
9030
- | "aws_ec2_transit_gateway_vpc_attachment"
9031
- | "azurerm_application_security_group"
9032
- | "azurerm_lb"
9033
- | "azurerm_lb_backend_address_pool"
9034
- | "azurerm_lb_nat_pool"
9035
- | "azurerm_lb_nat_rule"
9036
- | "azurerm_lb_rule"
9037
- | "azurerm_local_network_gateway"
9038
- | "azurerm_network_interface"
9039
- | "azurerm_network_interface_application_security_group_association"
9040
- | "azurerm_network_interface_backend_address_pool_association"
9041
- | "azurerm_network_interface_security_group_association"
9042
- | "azurerm_network_security_group"
9043
- | "azurerm_public_ip"
9044
- | "azurerm_route"
9045
- | "azurerm_route_table"
9046
- | "azurerm_subnet"
9047
- | "azurerm_subnet_route_table_association"
9048
- | "azurerm_virtual_machine"
9049
- | "azurerm_virtual_network_gateway_connection"
9050
- | "azurerm_virtual_network"
9051
- | "azurerm_virtual_network_gateway"
9052
- | "google_compute_network"
9053
- | "google_compute_subnetwork"
9054
- | "google_compute_vpn_gateway"
9055
- | "google_compute_vpn_tunnel"
9056
- | "google_compute_route"
9057
- | "google_compute_address"
9058
- | "google_compute_global_address"
9059
- | "google_compute_router"
9060
- | "google_compute_interconnect_attachment"
9061
- | "google_compute_ha_vpn_gateway"
9062
- | "google_compute_forwarding_rule"
9063
- | "google_compute_network_firewall_policy"
9064
- | "google_compute_network_firewall_policy_rule"
9065
- | "cloudflare_static_route"
9066
- | "cloudflare_ipsec_tunnel";
9067
- sections: {
9068
- hiddenItems: {
9369
+ export interface ListResourcesResponse {
9370
+ result: {
9371
+ id: string;
9372
+ accountId: string;
9373
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
9374
+ config: Record<string, unknown>;
9375
+ deploymentProvider: string;
9376
+ managed: boolean;
9377
+ monthlyCostEstimate: { currency: string; monthlyCost: number };
9378
+ name: string;
9379
+ nativeId: string;
9380
+ observations: Record<string, unknown>;
9381
+ providerIds: string[];
9382
+ providerNamesById: Record<string, unknown>;
9383
+ region: string;
9384
+ resourceGroup: string;
9385
+ resourceType:
9386
+ | "aws_customer_gateway"
9387
+ | "aws_egress_only_internet_gateway"
9388
+ | "aws_internet_gateway"
9389
+ | "aws_instance"
9390
+ | "aws_network_interface"
9391
+ | "aws_route"
9392
+ | "aws_route_table"
9393
+ | "aws_route_table_association"
9394
+ | "aws_subnet"
9395
+ | "aws_vpc"
9396
+ | "aws_vpc_ipv4_cidr_block_association"
9397
+ | "aws_vpn_connection"
9398
+ | "aws_vpn_connection_route"
9399
+ | "aws_vpn_gateway"
9400
+ | "aws_security_group"
9401
+ | "aws_vpc_security_group_ingress_rule"
9402
+ | "aws_vpc_security_group_egress_rule"
9403
+ | "aws_ec2_managed_prefix_list"
9404
+ | "aws_ec2_transit_gateway"
9405
+ | "aws_ec2_transit_gateway_prefix_list_reference"
9406
+ | "aws_ec2_transit_gateway_vpc_attachment"
9407
+ | "azurerm_application_security_group"
9408
+ | "azurerm_lb"
9409
+ | "azurerm_lb_backend_address_pool"
9410
+ | "azurerm_lb_nat_pool"
9411
+ | "azurerm_lb_nat_rule"
9412
+ | "azurerm_lb_rule"
9413
+ | "azurerm_local_network_gateway"
9414
+ | "azurerm_network_interface"
9415
+ | "azurerm_network_interface_application_security_group_association"
9416
+ | "azurerm_network_interface_backend_address_pool_association"
9417
+ | "azurerm_network_interface_security_group_association"
9418
+ | "azurerm_network_security_group"
9419
+ | "azurerm_public_ip"
9420
+ | "azurerm_route"
9421
+ | "azurerm_route_table"
9422
+ | "azurerm_subnet"
9423
+ | "azurerm_subnet_route_table_association"
9424
+ | "azurerm_virtual_machine"
9425
+ | "azurerm_virtual_network_gateway_connection"
9426
+ | "azurerm_virtual_network"
9427
+ | "azurerm_virtual_network_gateway"
9428
+ | "google_compute_network"
9429
+ | "google_compute_subnetwork"
9430
+ | "google_compute_vpn_gateway"
9431
+ | "google_compute_vpn_tunnel"
9432
+ | "google_compute_route"
9433
+ | "google_compute_address"
9434
+ | "google_compute_global_address"
9435
+ | "google_compute_router"
9436
+ | "google_compute_interconnect_attachment"
9437
+ | "google_compute_ha_vpn_gateway"
9438
+ | "google_compute_forwarding_rule"
9439
+ | "google_compute_network_firewall_policy"
9440
+ | "google_compute_network_firewall_policy_rule"
9441
+ | "cloudflare_static_route"
9442
+ | "cloudflare_ipsec_tunnel";
9443
+ sections: {
9444
+ hiddenItems: {
9445
+ helpText?: string | null;
9446
+ name?: string | null;
9447
+ value?:
9448
+ | { itemType: string; string: string }
9449
+ | { itemType: string; yaml: string }
9450
+ | {
9451
+ itemType: string;
9452
+ yamlDiff: {
9453
+ diff: string;
9454
+ leftDescription: string;
9455
+ leftYaml: string;
9456
+ rightDescription: string;
9457
+ rightYaml: string;
9458
+ };
9459
+ }
9460
+ | {
9461
+ itemType: string;
9462
+ resourcePreview: {
9463
+ id: string;
9464
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
9465
+ detail: string;
9466
+ name: string;
9467
+ resourceType:
9468
+ | "aws_customer_gateway"
9469
+ | "aws_egress_only_internet_gateway"
9470
+ | "aws_internet_gateway"
9471
+ | "aws_instance"
9472
+ | "aws_network_interface"
9473
+ | "aws_route"
9474
+ | "aws_route_table"
9475
+ | "aws_route_table_association"
9476
+ | "aws_subnet"
9477
+ | "aws_vpc"
9478
+ | "aws_vpc_ipv4_cidr_block_association"
9479
+ | "aws_vpn_connection"
9480
+ | "aws_vpn_connection_route"
9481
+ | "aws_vpn_gateway"
9482
+ | "aws_security_group"
9483
+ | "aws_vpc_security_group_ingress_rule"
9484
+ | "aws_vpc_security_group_egress_rule"
9485
+ | "aws_ec2_managed_prefix_list"
9486
+ | "aws_ec2_transit_gateway"
9487
+ | "aws_ec2_transit_gateway_prefix_list_reference"
9488
+ | "aws_ec2_transit_gateway_vpc_attachment"
9489
+ | "azurerm_application_security_group"
9490
+ | "azurerm_lb"
9491
+ | "azurerm_lb_backend_address_pool"
9492
+ | "azurerm_lb_nat_pool"
9493
+ | "azurerm_lb_nat_rule"
9494
+ | "azurerm_lb_rule"
9495
+ | "azurerm_local_network_gateway"
9496
+ | "azurerm_network_interface"
9497
+ | "azurerm_network_interface_application_security_group_association"
9498
+ | "azurerm_network_interface_backend_address_pool_association"
9499
+ | "azurerm_network_interface_security_group_association"
9500
+ | "azurerm_network_security_group"
9501
+ | "azurerm_public_ip"
9502
+ | "azurerm_route"
9503
+ | "azurerm_route_table"
9504
+ | "azurerm_subnet"
9505
+ | "azurerm_subnet_route_table_association"
9506
+ | "azurerm_virtual_machine"
9507
+ | "azurerm_virtual_network_gateway_connection"
9508
+ | "azurerm_virtual_network"
9509
+ | "azurerm_virtual_network_gateway"
9510
+ | "google_compute_network"
9511
+ | "google_compute_subnetwork"
9512
+ | "google_compute_vpn_gateway"
9513
+ | "google_compute_vpn_tunnel"
9514
+ | "google_compute_route"
9515
+ | "google_compute_address"
9516
+ | "google_compute_global_address"
9517
+ | "google_compute_router"
9518
+ | "google_compute_interconnect_attachment"
9519
+ | "google_compute_ha_vpn_gateway"
9520
+ | "google_compute_forwarding_rule"
9521
+ | "google_compute_network_firewall_policy"
9522
+ | "google_compute_network_firewall_policy_rule"
9523
+ | "cloudflare_static_route"
9524
+ | "cloudflare_ipsec_tunnel";
9525
+ title: string;
9526
+ };
9527
+ }
9528
+ | {
9529
+ itemType: string;
9530
+ list: (
9531
+ | { itemType: unknown; string: unknown }
9532
+ | { itemType: unknown; resourcePreview: unknown }
9533
+ )[];
9534
+ }
9535
+ | null;
9536
+ }[];
9537
+ name: string;
9538
+ visibleItems: {
9539
+ helpText?: string | null;
9540
+ name?: string | null;
9541
+ value?:
9542
+ | { itemType: string; string: string }
9543
+ | { itemType: string; yaml: string }
9544
+ | {
9545
+ itemType: string;
9546
+ yamlDiff: {
9547
+ diff: string;
9548
+ leftDescription: string;
9549
+ leftYaml: string;
9550
+ rightDescription: string;
9551
+ rightYaml: string;
9552
+ };
9553
+ }
9554
+ | {
9555
+ itemType: string;
9556
+ resourcePreview: {
9557
+ id: string;
9558
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
9559
+ detail: string;
9560
+ name: string;
9561
+ resourceType:
9562
+ | "aws_customer_gateway"
9563
+ | "aws_egress_only_internet_gateway"
9564
+ | "aws_internet_gateway"
9565
+ | "aws_instance"
9566
+ | "aws_network_interface"
9567
+ | "aws_route"
9568
+ | "aws_route_table"
9569
+ | "aws_route_table_association"
9570
+ | "aws_subnet"
9571
+ | "aws_vpc"
9572
+ | "aws_vpc_ipv4_cidr_block_association"
9573
+ | "aws_vpn_connection"
9574
+ | "aws_vpn_connection_route"
9575
+ | "aws_vpn_gateway"
9576
+ | "aws_security_group"
9577
+ | "aws_vpc_security_group_ingress_rule"
9578
+ | "aws_vpc_security_group_egress_rule"
9579
+ | "aws_ec2_managed_prefix_list"
9580
+ | "aws_ec2_transit_gateway"
9581
+ | "aws_ec2_transit_gateway_prefix_list_reference"
9582
+ | "aws_ec2_transit_gateway_vpc_attachment"
9583
+ | "azurerm_application_security_group"
9584
+ | "azurerm_lb"
9585
+ | "azurerm_lb_backend_address_pool"
9586
+ | "azurerm_lb_nat_pool"
9587
+ | "azurerm_lb_nat_rule"
9588
+ | "azurerm_lb_rule"
9589
+ | "azurerm_local_network_gateway"
9590
+ | "azurerm_network_interface"
9591
+ | "azurerm_network_interface_application_security_group_association"
9592
+ | "azurerm_network_interface_backend_address_pool_association"
9593
+ | "azurerm_network_interface_security_group_association"
9594
+ | "azurerm_network_security_group"
9595
+ | "azurerm_public_ip"
9596
+ | "azurerm_route"
9597
+ | "azurerm_route_table"
9598
+ | "azurerm_subnet"
9599
+ | "azurerm_subnet_route_table_association"
9600
+ | "azurerm_virtual_machine"
9601
+ | "azurerm_virtual_network_gateway_connection"
9602
+ | "azurerm_virtual_network"
9603
+ | "azurerm_virtual_network_gateway"
9604
+ | "google_compute_network"
9605
+ | "google_compute_subnetwork"
9606
+ | "google_compute_vpn_gateway"
9607
+ | "google_compute_vpn_tunnel"
9608
+ | "google_compute_route"
9609
+ | "google_compute_address"
9610
+ | "google_compute_global_address"
9611
+ | "google_compute_router"
9612
+ | "google_compute_interconnect_attachment"
9613
+ | "google_compute_ha_vpn_gateway"
9614
+ | "google_compute_forwarding_rule"
9615
+ | "google_compute_network_firewall_policy"
9616
+ | "google_compute_network_firewall_policy_rule"
9617
+ | "cloudflare_static_route"
9618
+ | "cloudflare_ipsec_tunnel";
9619
+ title: string;
9620
+ };
9621
+ }
9622
+ | {
9623
+ itemType: string;
9624
+ list: (
9625
+ | { itemType: unknown; string: unknown }
9626
+ | { itemType: unknown; resourcePreview: unknown }
9627
+ )[];
9628
+ }
9629
+ | null;
9630
+ }[];
9069
9631
  helpText?: string | null;
9070
- name?: string | null;
9071
- value?:
9072
- | { itemType: string; string: string }
9073
- | { itemType: string; yaml: string }
9074
- | {
9075
- itemType: string;
9076
- yamlDiff: {
9077
- diff: string;
9078
- leftDescription: string;
9079
- leftYaml: string;
9080
- rightDescription: string;
9081
- rightYaml: string;
9082
- };
9083
- }
9084
- | {
9085
- itemType: string;
9086
- resourcePreview: {
9087
- id: string;
9088
- cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
9089
- detail: string;
9090
- name: string;
9091
- resourceType:
9092
- | "aws_customer_gateway"
9093
- | "aws_egress_only_internet_gateway"
9094
- | "aws_internet_gateway"
9095
- | "aws_instance"
9096
- | "aws_network_interface"
9097
- | "aws_route"
9098
- | "aws_route_table"
9099
- | "aws_route_table_association"
9100
- | "aws_subnet"
9101
- | "aws_vpc"
9102
- | "aws_vpc_ipv4_cidr_block_association"
9103
- | "aws_vpn_connection"
9104
- | "aws_vpn_connection_route"
9105
- | "aws_vpn_gateway"
9106
- | "aws_security_group"
9107
- | "aws_vpc_security_group_ingress_rule"
9108
- | "aws_vpc_security_group_egress_rule"
9109
- | "aws_ec2_managed_prefix_list"
9110
- | "aws_ec2_transit_gateway"
9111
- | "aws_ec2_transit_gateway_prefix_list_reference"
9112
- | "aws_ec2_transit_gateway_vpc_attachment"
9113
- | "azurerm_application_security_group"
9114
- | "azurerm_lb"
9115
- | "azurerm_lb_backend_address_pool"
9116
- | "azurerm_lb_nat_pool"
9117
- | "azurerm_lb_nat_rule"
9118
- | "azurerm_lb_rule"
9119
- | "azurerm_local_network_gateway"
9120
- | "azurerm_network_interface"
9121
- | "azurerm_network_interface_application_security_group_association"
9122
- | "azurerm_network_interface_backend_address_pool_association"
9123
- | "azurerm_network_interface_security_group_association"
9124
- | "azurerm_network_security_group"
9125
- | "azurerm_public_ip"
9126
- | "azurerm_route"
9127
- | "azurerm_route_table"
9128
- | "azurerm_subnet"
9129
- | "azurerm_subnet_route_table_association"
9130
- | "azurerm_virtual_machine"
9131
- | "azurerm_virtual_network_gateway_connection"
9132
- | "azurerm_virtual_network"
9133
- | "azurerm_virtual_network_gateway"
9134
- | "google_compute_network"
9135
- | "google_compute_subnetwork"
9136
- | "google_compute_vpn_gateway"
9137
- | "google_compute_vpn_tunnel"
9138
- | "google_compute_route"
9139
- | "google_compute_address"
9140
- | "google_compute_global_address"
9141
- | "google_compute_router"
9142
- | "google_compute_interconnect_attachment"
9143
- | "google_compute_ha_vpn_gateway"
9144
- | "google_compute_forwarding_rule"
9145
- | "google_compute_network_firewall_policy"
9146
- | "google_compute_network_firewall_policy_rule"
9147
- | "cloudflare_static_route"
9148
- | "cloudflare_ipsec_tunnel";
9149
- title: string;
9150
- };
9151
- }
9152
- | {
9153
- itemType: string;
9154
- list: (
9155
- | { itemType: unknown; string: unknown }
9156
- | { itemType: unknown; resourcePreview: unknown }
9157
- )[];
9158
- }
9159
- | null;
9160
9632
  }[];
9161
- name: string;
9162
- visibleItems: {
9163
- helpText?: string | null;
9164
- name?: string | null;
9165
- value?:
9166
- | { itemType: string; string: string }
9167
- | { itemType: string; yaml: string }
9168
- | {
9169
- itemType: string;
9170
- yamlDiff: {
9171
- diff: string;
9172
- leftDescription: string;
9173
- leftYaml: string;
9174
- rightDescription: string;
9175
- rightYaml: string;
9176
- };
9177
- }
9178
- | {
9179
- itemType: string;
9180
- resourcePreview: {
9181
- id: string;
9182
- cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
9183
- detail: string;
9184
- name: string;
9185
- resourceType:
9186
- | "aws_customer_gateway"
9187
- | "aws_egress_only_internet_gateway"
9188
- | "aws_internet_gateway"
9189
- | "aws_instance"
9190
- | "aws_network_interface"
9191
- | "aws_route"
9192
- | "aws_route_table"
9193
- | "aws_route_table_association"
9194
- | "aws_subnet"
9195
- | "aws_vpc"
9196
- | "aws_vpc_ipv4_cidr_block_association"
9197
- | "aws_vpn_connection"
9198
- | "aws_vpn_connection_route"
9199
- | "aws_vpn_gateway"
9200
- | "aws_security_group"
9201
- | "aws_vpc_security_group_ingress_rule"
9202
- | "aws_vpc_security_group_egress_rule"
9203
- | "aws_ec2_managed_prefix_list"
9204
- | "aws_ec2_transit_gateway"
9205
- | "aws_ec2_transit_gateway_prefix_list_reference"
9206
- | "aws_ec2_transit_gateway_vpc_attachment"
9207
- | "azurerm_application_security_group"
9208
- | "azurerm_lb"
9209
- | "azurerm_lb_backend_address_pool"
9210
- | "azurerm_lb_nat_pool"
9211
- | "azurerm_lb_nat_rule"
9212
- | "azurerm_lb_rule"
9213
- | "azurerm_local_network_gateway"
9214
- | "azurerm_network_interface"
9215
- | "azurerm_network_interface_application_security_group_association"
9216
- | "azurerm_network_interface_backend_address_pool_association"
9217
- | "azurerm_network_interface_security_group_association"
9218
- | "azurerm_network_security_group"
9219
- | "azurerm_public_ip"
9220
- | "azurerm_route"
9221
- | "azurerm_route_table"
9222
- | "azurerm_subnet"
9223
- | "azurerm_subnet_route_table_association"
9224
- | "azurerm_virtual_machine"
9225
- | "azurerm_virtual_network_gateway_connection"
9226
- | "azurerm_virtual_network"
9227
- | "azurerm_virtual_network_gateway"
9228
- | "google_compute_network"
9229
- | "google_compute_subnetwork"
9230
- | "google_compute_vpn_gateway"
9231
- | "google_compute_vpn_tunnel"
9232
- | "google_compute_route"
9233
- | "google_compute_address"
9234
- | "google_compute_global_address"
9235
- | "google_compute_router"
9236
- | "google_compute_interconnect_attachment"
9237
- | "google_compute_ha_vpn_gateway"
9238
- | "google_compute_forwarding_rule"
9239
- | "google_compute_network_firewall_policy"
9240
- | "google_compute_network_firewall_policy_rule"
9241
- | "cloudflare_static_route"
9242
- | "cloudflare_ipsec_tunnel";
9243
- title: string;
9244
- };
9245
- }
9246
- | {
9247
- itemType: string;
9248
- list: (
9249
- | { itemType: unknown; string: unknown }
9250
- | { itemType: unknown; resourcePreview: unknown }
9251
- )[];
9252
- }
9253
- | null;
9254
- }[];
9255
- helpText?: string | null;
9633
+ state: Record<string, unknown>;
9634
+ tags: Record<string, unknown>;
9635
+ updatedAt: string;
9636
+ url: string;
9637
+ managedBy?:
9638
+ | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
9639
+ | null;
9256
9640
  }[];
9257
- state: Record<string, unknown>;
9258
- tags: Record<string, unknown>;
9259
- updatedAt: string;
9260
- url: string;
9261
- managedBy?:
9262
- | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
9263
- | null;
9264
- }[];
9641
+ resultInfo: {
9642
+ count?: number | null;
9643
+ page?: number | null;
9644
+ perPage?: number | null;
9645
+ totalCount?: number | null;
9646
+ };
9647
+ }
9265
9648
 
9266
- export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
9267
- Schema.Struct({
9268
- id: Schema.String,
9269
- accountId: Schema.String,
9270
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
9271
- config: Schema.Struct({}),
9272
- deploymentProvider: Schema.String,
9273
- managed: Schema.Boolean,
9274
- monthlyCostEstimate: Schema.Struct({
9275
- currency: Schema.String,
9276
- monthlyCost: Schema.Number,
9277
- }).pipe(
9278
- Schema.encodeKeys({ currency: "currency", monthlyCost: "monthly_cost" }),
9279
- ),
9280
- name: Schema.String,
9281
- nativeId: Schema.String,
9282
- observations: Schema.Struct({}),
9283
- providerIds: Schema.Array(Schema.String),
9284
- providerNamesById: Schema.Struct({}),
9285
- region: Schema.String,
9286
- resourceGroup: Schema.String,
9287
- resourceType: Schema.Literals([
9288
- "aws_customer_gateway",
9289
- "aws_egress_only_internet_gateway",
9290
- "aws_internet_gateway",
9291
- "aws_instance",
9292
- "aws_network_interface",
9293
- "aws_route",
9294
- "aws_route_table",
9295
- "aws_route_table_association",
9296
- "aws_subnet",
9297
- "aws_vpc",
9298
- "aws_vpc_ipv4_cidr_block_association",
9299
- "aws_vpn_connection",
9300
- "aws_vpn_connection_route",
9301
- "aws_vpn_gateway",
9302
- "aws_security_group",
9303
- "aws_vpc_security_group_ingress_rule",
9304
- "aws_vpc_security_group_egress_rule",
9305
- "aws_ec2_managed_prefix_list",
9306
- "aws_ec2_transit_gateway",
9307
- "aws_ec2_transit_gateway_prefix_list_reference",
9308
- "aws_ec2_transit_gateway_vpc_attachment",
9309
- "azurerm_application_security_group",
9310
- "azurerm_lb",
9311
- "azurerm_lb_backend_address_pool",
9312
- "azurerm_lb_nat_pool",
9313
- "azurerm_lb_nat_rule",
9314
- "azurerm_lb_rule",
9315
- "azurerm_local_network_gateway",
9316
- "azurerm_network_interface",
9317
- "azurerm_network_interface_application_security_group_association",
9318
- "azurerm_network_interface_backend_address_pool_association",
9319
- "azurerm_network_interface_security_group_association",
9320
- "azurerm_network_security_group",
9321
- "azurerm_public_ip",
9322
- "azurerm_route",
9323
- "azurerm_route_table",
9324
- "azurerm_subnet",
9325
- "azurerm_subnet_route_table_association",
9326
- "azurerm_virtual_machine",
9327
- "azurerm_virtual_network_gateway_connection",
9328
- "azurerm_virtual_network",
9329
- "azurerm_virtual_network_gateway",
9330
- "google_compute_network",
9331
- "google_compute_subnetwork",
9332
- "google_compute_vpn_gateway",
9333
- "google_compute_vpn_tunnel",
9334
- "google_compute_route",
9335
- "google_compute_address",
9336
- "google_compute_global_address",
9337
- "google_compute_router",
9338
- "google_compute_interconnect_attachment",
9339
- "google_compute_ha_vpn_gateway",
9340
- "google_compute_forwarding_rule",
9341
- "google_compute_network_firewall_policy",
9342
- "google_compute_network_firewall_policy_rule",
9343
- "cloudflare_static_route",
9344
- "cloudflare_ipsec_tunnel",
9345
- ]),
9346
- sections: Schema.Array(
9347
- Schema.Struct({
9348
- hiddenItems: Schema.Array(
9349
- Schema.Struct({
9350
- helpText: Schema.optional(
9351
- Schema.Union([Schema.String, Schema.Null]),
9352
- ),
9353
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9354
- value: Schema.optional(
9355
- Schema.Union([
9649
+ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9650
+ result: Schema.Array(
9651
+ Schema.Struct({
9652
+ id: Schema.String,
9653
+ accountId: Schema.String,
9654
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
9655
+ config: Schema.Struct({}),
9656
+ deploymentProvider: Schema.String,
9657
+ managed: Schema.Boolean,
9658
+ monthlyCostEstimate: Schema.Struct({
9659
+ currency: Schema.String,
9660
+ monthlyCost: Schema.Number,
9661
+ }).pipe(
9662
+ Schema.encodeKeys({
9663
+ currency: "currency",
9664
+ monthlyCost: "monthly_cost",
9665
+ }),
9666
+ ),
9667
+ name: Schema.String,
9668
+ nativeId: Schema.String,
9669
+ observations: Schema.Struct({}),
9670
+ providerIds: Schema.Array(Schema.String),
9671
+ providerNamesById: Schema.Struct({}),
9672
+ region: Schema.String,
9673
+ resourceGroup: Schema.String,
9674
+ resourceType: Schema.Literals([
9675
+ "aws_customer_gateway",
9676
+ "aws_egress_only_internet_gateway",
9677
+ "aws_internet_gateway",
9678
+ "aws_instance",
9679
+ "aws_network_interface",
9680
+ "aws_route",
9681
+ "aws_route_table",
9682
+ "aws_route_table_association",
9683
+ "aws_subnet",
9684
+ "aws_vpc",
9685
+ "aws_vpc_ipv4_cidr_block_association",
9686
+ "aws_vpn_connection",
9687
+ "aws_vpn_connection_route",
9688
+ "aws_vpn_gateway",
9689
+ "aws_security_group",
9690
+ "aws_vpc_security_group_ingress_rule",
9691
+ "aws_vpc_security_group_egress_rule",
9692
+ "aws_ec2_managed_prefix_list",
9693
+ "aws_ec2_transit_gateway",
9694
+ "aws_ec2_transit_gateway_prefix_list_reference",
9695
+ "aws_ec2_transit_gateway_vpc_attachment",
9696
+ "azurerm_application_security_group",
9697
+ "azurerm_lb",
9698
+ "azurerm_lb_backend_address_pool",
9699
+ "azurerm_lb_nat_pool",
9700
+ "azurerm_lb_nat_rule",
9701
+ "azurerm_lb_rule",
9702
+ "azurerm_local_network_gateway",
9703
+ "azurerm_network_interface",
9704
+ "azurerm_network_interface_application_security_group_association",
9705
+ "azurerm_network_interface_backend_address_pool_association",
9706
+ "azurerm_network_interface_security_group_association",
9707
+ "azurerm_network_security_group",
9708
+ "azurerm_public_ip",
9709
+ "azurerm_route",
9710
+ "azurerm_route_table",
9711
+ "azurerm_subnet",
9712
+ "azurerm_subnet_route_table_association",
9713
+ "azurerm_virtual_machine",
9714
+ "azurerm_virtual_network_gateway_connection",
9715
+ "azurerm_virtual_network",
9716
+ "azurerm_virtual_network_gateway",
9717
+ "google_compute_network",
9718
+ "google_compute_subnetwork",
9719
+ "google_compute_vpn_gateway",
9720
+ "google_compute_vpn_tunnel",
9721
+ "google_compute_route",
9722
+ "google_compute_address",
9723
+ "google_compute_global_address",
9724
+ "google_compute_router",
9725
+ "google_compute_interconnect_attachment",
9726
+ "google_compute_ha_vpn_gateway",
9727
+ "google_compute_forwarding_rule",
9728
+ "google_compute_network_firewall_policy",
9729
+ "google_compute_network_firewall_policy_rule",
9730
+ "cloudflare_static_route",
9731
+ "cloudflare_ipsec_tunnel",
9732
+ ]),
9733
+ sections: Schema.Array(
9734
+ Schema.Struct({
9735
+ hiddenItems: Schema.Array(
9736
+ Schema.Struct({
9737
+ helpText: Schema.optional(
9738
+ Schema.Union([Schema.String, Schema.Null]),
9739
+ ),
9740
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9741
+ value: Schema.optional(
9356
9742
  Schema.Union([
9357
- Schema.Struct({
9358
- itemType: Schema.String,
9359
- string: Schema.String,
9360
- }).pipe(
9361
- Schema.encodeKeys({
9362
- itemType: "item_type",
9363
- string: "string",
9364
- }),
9365
- ),
9366
- Schema.Struct({
9367
- itemType: Schema.String,
9368
- yaml: Schema.String,
9369
- }).pipe(
9370
- Schema.encodeKeys({ itemType: "item_type", yaml: "yaml" }),
9371
- ),
9372
- Schema.Struct({
9373
- itemType: Schema.String,
9374
- yamlDiff: Schema.Struct({
9375
- diff: Schema.String,
9376
- leftDescription: Schema.String,
9377
- leftYaml: Schema.String,
9378
- rightDescription: Schema.String,
9379
- rightYaml: Schema.String,
9743
+ Schema.Union([
9744
+ Schema.Struct({
9745
+ itemType: Schema.String,
9746
+ string: Schema.String,
9380
9747
  }).pipe(
9381
9748
  Schema.encodeKeys({
9382
- diff: "diff",
9383
- leftDescription: "left_description",
9384
- leftYaml: "left_yaml",
9385
- rightDescription: "right_description",
9386
- rightYaml: "right_yaml",
9749
+ itemType: "item_type",
9750
+ string: "string",
9387
9751
  }),
9388
9752
  ),
9389
- }).pipe(
9390
- Schema.encodeKeys({
9391
- itemType: "item_type",
9392
- yamlDiff: "yaml_diff",
9393
- }),
9394
- ),
9395
- Schema.Struct({
9396
- itemType: Schema.String,
9397
- resourcePreview: Schema.Struct({
9398
- id: Schema.String,
9399
- cloudType: Schema.Literals([
9400
- "AWS",
9401
- "AZURE",
9402
- "GOOGLE",
9403
- "CLOUDFLARE",
9404
- ]),
9405
- detail: Schema.String,
9406
- name: Schema.String,
9407
- resourceType: Schema.Literals([
9408
- "aws_customer_gateway",
9409
- "aws_egress_only_internet_gateway",
9410
- "aws_internet_gateway",
9411
- "aws_instance",
9412
- "aws_network_interface",
9413
- "aws_route",
9414
- "aws_route_table",
9415
- "aws_route_table_association",
9416
- "aws_subnet",
9417
- "aws_vpc",
9418
- "aws_vpc_ipv4_cidr_block_association",
9419
- "aws_vpn_connection",
9420
- "aws_vpn_connection_route",
9421
- "aws_vpn_gateway",
9422
- "aws_security_group",
9423
- "aws_vpc_security_group_ingress_rule",
9424
- "aws_vpc_security_group_egress_rule",
9425
- "aws_ec2_managed_prefix_list",
9426
- "aws_ec2_transit_gateway",
9427
- "aws_ec2_transit_gateway_prefix_list_reference",
9428
- "aws_ec2_transit_gateway_vpc_attachment",
9429
- "azurerm_application_security_group",
9430
- "azurerm_lb",
9431
- "azurerm_lb_backend_address_pool",
9432
- "azurerm_lb_nat_pool",
9433
- "azurerm_lb_nat_rule",
9434
- "azurerm_lb_rule",
9435
- "azurerm_local_network_gateway",
9436
- "azurerm_network_interface",
9437
- "azurerm_network_interface_application_security_group_association",
9438
- "azurerm_network_interface_backend_address_pool_association",
9439
- "azurerm_network_interface_security_group_association",
9440
- "azurerm_network_security_group",
9441
- "azurerm_public_ip",
9442
- "azurerm_route",
9443
- "azurerm_route_table",
9444
- "azurerm_subnet",
9445
- "azurerm_subnet_route_table_association",
9446
- "azurerm_virtual_machine",
9447
- "azurerm_virtual_network_gateway_connection",
9448
- "azurerm_virtual_network",
9449
- "azurerm_virtual_network_gateway",
9450
- "google_compute_network",
9451
- "google_compute_subnetwork",
9452
- "google_compute_vpn_gateway",
9453
- "google_compute_vpn_tunnel",
9454
- "google_compute_route",
9455
- "google_compute_address",
9456
- "google_compute_global_address",
9457
- "google_compute_router",
9458
- "google_compute_interconnect_attachment",
9459
- "google_compute_ha_vpn_gateway",
9460
- "google_compute_forwarding_rule",
9461
- "google_compute_network_firewall_policy",
9462
- "google_compute_network_firewall_policy_rule",
9463
- "cloudflare_static_route",
9464
- "cloudflare_ipsec_tunnel",
9465
- ]),
9466
- title: Schema.String,
9753
+ Schema.Struct({
9754
+ itemType: Schema.String,
9755
+ yaml: Schema.String,
9467
9756
  }).pipe(
9468
9757
  Schema.encodeKeys({
9469
- id: "id",
9470
- cloudType: "cloud_type",
9471
- detail: "detail",
9472
- name: "name",
9473
- resourceType: "resource_type",
9474
- title: "title",
9758
+ itemType: "item_type",
9759
+ yaml: "yaml",
9475
9760
  }),
9476
9761
  ),
9477
- }).pipe(
9478
- Schema.encodeKeys({
9479
- itemType: "item_type",
9480
- resourcePreview: "resource_preview",
9481
- }),
9482
- ),
9483
- Schema.Struct({
9484
- itemType: Schema.String,
9485
- list: Schema.Array(
9486
- Schema.Union([
9487
- Schema.Struct({
9488
- itemType: Schema.Unknown,
9489
- string: Schema.Unknown,
9490
- }).pipe(
9491
- Schema.encodeKeys({
9492
- itemType: "item_type",
9493
- string: "string",
9494
- }),
9495
- ),
9496
- Schema.Struct({
9497
- itemType: Schema.Unknown,
9498
- resourcePreview: Schema.Unknown,
9499
- }).pipe(
9500
- Schema.encodeKeys({
9501
- itemType: "item_type",
9502
- resourcePreview: "resource_preview",
9503
- }),
9504
- ),
9505
- ]),
9762
+ Schema.Struct({
9763
+ itemType: Schema.String,
9764
+ yamlDiff: Schema.Struct({
9765
+ diff: Schema.String,
9766
+ leftDescription: Schema.String,
9767
+ leftYaml: Schema.String,
9768
+ rightDescription: Schema.String,
9769
+ rightYaml: Schema.String,
9770
+ }).pipe(
9771
+ Schema.encodeKeys({
9772
+ diff: "diff",
9773
+ leftDescription: "left_description",
9774
+ leftYaml: "left_yaml",
9775
+ rightDescription: "right_description",
9776
+ rightYaml: "right_yaml",
9777
+ }),
9778
+ ),
9779
+ }).pipe(
9780
+ Schema.encodeKeys({
9781
+ itemType: "item_type",
9782
+ yamlDiff: "yaml_diff",
9783
+ }),
9506
9784
  ),
9507
- }).pipe(
9508
- Schema.encodeKeys({ itemType: "item_type", list: "list" }),
9509
- ),
9785
+ Schema.Struct({
9786
+ itemType: Schema.String,
9787
+ resourcePreview: Schema.Struct({
9788
+ id: Schema.String,
9789
+ cloudType: Schema.Literals([
9790
+ "AWS",
9791
+ "AZURE",
9792
+ "GOOGLE",
9793
+ "CLOUDFLARE",
9794
+ ]),
9795
+ detail: Schema.String,
9796
+ name: Schema.String,
9797
+ resourceType: Schema.Literals([
9798
+ "aws_customer_gateway",
9799
+ "aws_egress_only_internet_gateway",
9800
+ "aws_internet_gateway",
9801
+ "aws_instance",
9802
+ "aws_network_interface",
9803
+ "aws_route",
9804
+ "aws_route_table",
9805
+ "aws_route_table_association",
9806
+ "aws_subnet",
9807
+ "aws_vpc",
9808
+ "aws_vpc_ipv4_cidr_block_association",
9809
+ "aws_vpn_connection",
9810
+ "aws_vpn_connection_route",
9811
+ "aws_vpn_gateway",
9812
+ "aws_security_group",
9813
+ "aws_vpc_security_group_ingress_rule",
9814
+ "aws_vpc_security_group_egress_rule",
9815
+ "aws_ec2_managed_prefix_list",
9816
+ "aws_ec2_transit_gateway",
9817
+ "aws_ec2_transit_gateway_prefix_list_reference",
9818
+ "aws_ec2_transit_gateway_vpc_attachment",
9819
+ "azurerm_application_security_group",
9820
+ "azurerm_lb",
9821
+ "azurerm_lb_backend_address_pool",
9822
+ "azurerm_lb_nat_pool",
9823
+ "azurerm_lb_nat_rule",
9824
+ "azurerm_lb_rule",
9825
+ "azurerm_local_network_gateway",
9826
+ "azurerm_network_interface",
9827
+ "azurerm_network_interface_application_security_group_association",
9828
+ "azurerm_network_interface_backend_address_pool_association",
9829
+ "azurerm_network_interface_security_group_association",
9830
+ "azurerm_network_security_group",
9831
+ "azurerm_public_ip",
9832
+ "azurerm_route",
9833
+ "azurerm_route_table",
9834
+ "azurerm_subnet",
9835
+ "azurerm_subnet_route_table_association",
9836
+ "azurerm_virtual_machine",
9837
+ "azurerm_virtual_network_gateway_connection",
9838
+ "azurerm_virtual_network",
9839
+ "azurerm_virtual_network_gateway",
9840
+ "google_compute_network",
9841
+ "google_compute_subnetwork",
9842
+ "google_compute_vpn_gateway",
9843
+ "google_compute_vpn_tunnel",
9844
+ "google_compute_route",
9845
+ "google_compute_address",
9846
+ "google_compute_global_address",
9847
+ "google_compute_router",
9848
+ "google_compute_interconnect_attachment",
9849
+ "google_compute_ha_vpn_gateway",
9850
+ "google_compute_forwarding_rule",
9851
+ "google_compute_network_firewall_policy",
9852
+ "google_compute_network_firewall_policy_rule",
9853
+ "cloudflare_static_route",
9854
+ "cloudflare_ipsec_tunnel",
9855
+ ]),
9856
+ title: Schema.String,
9857
+ }).pipe(
9858
+ Schema.encodeKeys({
9859
+ id: "id",
9860
+ cloudType: "cloud_type",
9861
+ detail: "detail",
9862
+ name: "name",
9863
+ resourceType: "resource_type",
9864
+ title: "title",
9865
+ }),
9866
+ ),
9867
+ }).pipe(
9868
+ Schema.encodeKeys({
9869
+ itemType: "item_type",
9870
+ resourcePreview: "resource_preview",
9871
+ }),
9872
+ ),
9873
+ Schema.Struct({
9874
+ itemType: Schema.String,
9875
+ list: Schema.Array(
9876
+ Schema.Union([
9877
+ Schema.Struct({
9878
+ itemType: Schema.Unknown,
9879
+ string: Schema.Unknown,
9880
+ }).pipe(
9881
+ Schema.encodeKeys({
9882
+ itemType: "item_type",
9883
+ string: "string",
9884
+ }),
9885
+ ),
9886
+ Schema.Struct({
9887
+ itemType: Schema.Unknown,
9888
+ resourcePreview: Schema.Unknown,
9889
+ }).pipe(
9890
+ Schema.encodeKeys({
9891
+ itemType: "item_type",
9892
+ resourcePreview: "resource_preview",
9893
+ }),
9894
+ ),
9895
+ ]),
9896
+ ),
9897
+ }).pipe(
9898
+ Schema.encodeKeys({
9899
+ itemType: "item_type",
9900
+ list: "list",
9901
+ }),
9902
+ ),
9903
+ ]),
9904
+ Schema.Null,
9510
9905
  ]),
9511
- Schema.Null,
9512
- ]),
9513
- ),
9514
- }),
9515
- ),
9516
- name: Schema.String,
9517
- visibleItems: Schema.Array(
9518
- Schema.Struct({
9519
- helpText: Schema.optional(
9520
- Schema.Union([Schema.String, Schema.Null]),
9521
- ),
9522
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9523
- value: Schema.optional(
9524
- Schema.Union([
9906
+ ),
9907
+ }),
9908
+ ),
9909
+ name: Schema.String,
9910
+ visibleItems: Schema.Array(
9911
+ Schema.Struct({
9912
+ helpText: Schema.optional(
9913
+ Schema.Union([Schema.String, Schema.Null]),
9914
+ ),
9915
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9916
+ value: Schema.optional(
9525
9917
  Schema.Union([
9526
- Schema.Struct({
9527
- itemType: Schema.String,
9528
- string: Schema.String,
9529
- }).pipe(
9530
- Schema.encodeKeys({
9531
- itemType: "item_type",
9532
- string: "string",
9533
- }),
9534
- ),
9535
- Schema.Struct({
9536
- itemType: Schema.String,
9537
- yaml: Schema.String,
9538
- }).pipe(
9539
- Schema.encodeKeys({ itemType: "item_type", yaml: "yaml" }),
9540
- ),
9541
- Schema.Struct({
9542
- itemType: Schema.String,
9543
- yamlDiff: Schema.Struct({
9544
- diff: Schema.String,
9545
- leftDescription: Schema.String,
9546
- leftYaml: Schema.String,
9547
- rightDescription: Schema.String,
9548
- rightYaml: Schema.String,
9918
+ Schema.Union([
9919
+ Schema.Struct({
9920
+ itemType: Schema.String,
9921
+ string: Schema.String,
9549
9922
  }).pipe(
9550
9923
  Schema.encodeKeys({
9551
- diff: "diff",
9552
- leftDescription: "left_description",
9553
- leftYaml: "left_yaml",
9554
- rightDescription: "right_description",
9555
- rightYaml: "right_yaml",
9924
+ itemType: "item_type",
9925
+ string: "string",
9556
9926
  }),
9557
9927
  ),
9558
- }).pipe(
9559
- Schema.encodeKeys({
9560
- itemType: "item_type",
9561
- yamlDiff: "yaml_diff",
9562
- }),
9563
- ),
9564
- Schema.Struct({
9565
- itemType: Schema.String,
9566
- resourcePreview: Schema.Struct({
9567
- id: Schema.String,
9568
- cloudType: Schema.Literals([
9569
- "AWS",
9570
- "AZURE",
9571
- "GOOGLE",
9572
- "CLOUDFLARE",
9573
- ]),
9574
- detail: Schema.String,
9575
- name: Schema.String,
9576
- resourceType: Schema.Literals([
9577
- "aws_customer_gateway",
9578
- "aws_egress_only_internet_gateway",
9579
- "aws_internet_gateway",
9580
- "aws_instance",
9581
- "aws_network_interface",
9582
- "aws_route",
9583
- "aws_route_table",
9584
- "aws_route_table_association",
9585
- "aws_subnet",
9586
- "aws_vpc",
9587
- "aws_vpc_ipv4_cidr_block_association",
9588
- "aws_vpn_connection",
9589
- "aws_vpn_connection_route",
9590
- "aws_vpn_gateway",
9591
- "aws_security_group",
9592
- "aws_vpc_security_group_ingress_rule",
9593
- "aws_vpc_security_group_egress_rule",
9594
- "aws_ec2_managed_prefix_list",
9595
- "aws_ec2_transit_gateway",
9596
- "aws_ec2_transit_gateway_prefix_list_reference",
9597
- "aws_ec2_transit_gateway_vpc_attachment",
9598
- "azurerm_application_security_group",
9599
- "azurerm_lb",
9600
- "azurerm_lb_backend_address_pool",
9601
- "azurerm_lb_nat_pool",
9602
- "azurerm_lb_nat_rule",
9603
- "azurerm_lb_rule",
9604
- "azurerm_local_network_gateway",
9605
- "azurerm_network_interface",
9606
- "azurerm_network_interface_application_security_group_association",
9607
- "azurerm_network_interface_backend_address_pool_association",
9608
- "azurerm_network_interface_security_group_association",
9609
- "azurerm_network_security_group",
9610
- "azurerm_public_ip",
9611
- "azurerm_route",
9612
- "azurerm_route_table",
9613
- "azurerm_subnet",
9614
- "azurerm_subnet_route_table_association",
9615
- "azurerm_virtual_machine",
9616
- "azurerm_virtual_network_gateway_connection",
9617
- "azurerm_virtual_network",
9618
- "azurerm_virtual_network_gateway",
9619
- "google_compute_network",
9620
- "google_compute_subnetwork",
9621
- "google_compute_vpn_gateway",
9622
- "google_compute_vpn_tunnel",
9623
- "google_compute_route",
9624
- "google_compute_address",
9625
- "google_compute_global_address",
9626
- "google_compute_router",
9627
- "google_compute_interconnect_attachment",
9628
- "google_compute_ha_vpn_gateway",
9629
- "google_compute_forwarding_rule",
9630
- "google_compute_network_firewall_policy",
9631
- "google_compute_network_firewall_policy_rule",
9632
- "cloudflare_static_route",
9633
- "cloudflare_ipsec_tunnel",
9634
- ]),
9635
- title: Schema.String,
9928
+ Schema.Struct({
9929
+ itemType: Schema.String,
9930
+ yaml: Schema.String,
9636
9931
  }).pipe(
9637
9932
  Schema.encodeKeys({
9638
- id: "id",
9639
- cloudType: "cloud_type",
9640
- detail: "detail",
9641
- name: "name",
9642
- resourceType: "resource_type",
9643
- title: "title",
9933
+ itemType: "item_type",
9934
+ yaml: "yaml",
9644
9935
  }),
9645
9936
  ),
9646
- }).pipe(
9647
- Schema.encodeKeys({
9648
- itemType: "item_type",
9649
- resourcePreview: "resource_preview",
9650
- }),
9651
- ),
9652
- Schema.Struct({
9653
- itemType: Schema.String,
9654
- list: Schema.Array(
9655
- Schema.Union([
9656
- Schema.Struct({
9657
- itemType: Schema.Unknown,
9658
- string: Schema.Unknown,
9659
- }).pipe(
9660
- Schema.encodeKeys({
9661
- itemType: "item_type",
9662
- string: "string",
9663
- }),
9664
- ),
9665
- Schema.Struct({
9666
- itemType: Schema.Unknown,
9667
- resourcePreview: Schema.Unknown,
9668
- }).pipe(
9669
- Schema.encodeKeys({
9670
- itemType: "item_type",
9671
- resourcePreview: "resource_preview",
9672
- }),
9673
- ),
9674
- ]),
9937
+ Schema.Struct({
9938
+ itemType: Schema.String,
9939
+ yamlDiff: Schema.Struct({
9940
+ diff: Schema.String,
9941
+ leftDescription: Schema.String,
9942
+ leftYaml: Schema.String,
9943
+ rightDescription: Schema.String,
9944
+ rightYaml: Schema.String,
9945
+ }).pipe(
9946
+ Schema.encodeKeys({
9947
+ diff: "diff",
9948
+ leftDescription: "left_description",
9949
+ leftYaml: "left_yaml",
9950
+ rightDescription: "right_description",
9951
+ rightYaml: "right_yaml",
9952
+ }),
9953
+ ),
9954
+ }).pipe(
9955
+ Schema.encodeKeys({
9956
+ itemType: "item_type",
9957
+ yamlDiff: "yaml_diff",
9958
+ }),
9675
9959
  ),
9676
- }).pipe(
9677
- Schema.encodeKeys({ itemType: "item_type", list: "list" }),
9678
- ),
9960
+ Schema.Struct({
9961
+ itemType: Schema.String,
9962
+ resourcePreview: Schema.Struct({
9963
+ id: Schema.String,
9964
+ cloudType: Schema.Literals([
9965
+ "AWS",
9966
+ "AZURE",
9967
+ "GOOGLE",
9968
+ "CLOUDFLARE",
9969
+ ]),
9970
+ detail: Schema.String,
9971
+ name: Schema.String,
9972
+ resourceType: Schema.Literals([
9973
+ "aws_customer_gateway",
9974
+ "aws_egress_only_internet_gateway",
9975
+ "aws_internet_gateway",
9976
+ "aws_instance",
9977
+ "aws_network_interface",
9978
+ "aws_route",
9979
+ "aws_route_table",
9980
+ "aws_route_table_association",
9981
+ "aws_subnet",
9982
+ "aws_vpc",
9983
+ "aws_vpc_ipv4_cidr_block_association",
9984
+ "aws_vpn_connection",
9985
+ "aws_vpn_connection_route",
9986
+ "aws_vpn_gateway",
9987
+ "aws_security_group",
9988
+ "aws_vpc_security_group_ingress_rule",
9989
+ "aws_vpc_security_group_egress_rule",
9990
+ "aws_ec2_managed_prefix_list",
9991
+ "aws_ec2_transit_gateway",
9992
+ "aws_ec2_transit_gateway_prefix_list_reference",
9993
+ "aws_ec2_transit_gateway_vpc_attachment",
9994
+ "azurerm_application_security_group",
9995
+ "azurerm_lb",
9996
+ "azurerm_lb_backend_address_pool",
9997
+ "azurerm_lb_nat_pool",
9998
+ "azurerm_lb_nat_rule",
9999
+ "azurerm_lb_rule",
10000
+ "azurerm_local_network_gateway",
10001
+ "azurerm_network_interface",
10002
+ "azurerm_network_interface_application_security_group_association",
10003
+ "azurerm_network_interface_backend_address_pool_association",
10004
+ "azurerm_network_interface_security_group_association",
10005
+ "azurerm_network_security_group",
10006
+ "azurerm_public_ip",
10007
+ "azurerm_route",
10008
+ "azurerm_route_table",
10009
+ "azurerm_subnet",
10010
+ "azurerm_subnet_route_table_association",
10011
+ "azurerm_virtual_machine",
10012
+ "azurerm_virtual_network_gateway_connection",
10013
+ "azurerm_virtual_network",
10014
+ "azurerm_virtual_network_gateway",
10015
+ "google_compute_network",
10016
+ "google_compute_subnetwork",
10017
+ "google_compute_vpn_gateway",
10018
+ "google_compute_vpn_tunnel",
10019
+ "google_compute_route",
10020
+ "google_compute_address",
10021
+ "google_compute_global_address",
10022
+ "google_compute_router",
10023
+ "google_compute_interconnect_attachment",
10024
+ "google_compute_ha_vpn_gateway",
10025
+ "google_compute_forwarding_rule",
10026
+ "google_compute_network_firewall_policy",
10027
+ "google_compute_network_firewall_policy_rule",
10028
+ "cloudflare_static_route",
10029
+ "cloudflare_ipsec_tunnel",
10030
+ ]),
10031
+ title: Schema.String,
10032
+ }).pipe(
10033
+ Schema.encodeKeys({
10034
+ id: "id",
10035
+ cloudType: "cloud_type",
10036
+ detail: "detail",
10037
+ name: "name",
10038
+ resourceType: "resource_type",
10039
+ title: "title",
10040
+ }),
10041
+ ),
10042
+ }).pipe(
10043
+ Schema.encodeKeys({
10044
+ itemType: "item_type",
10045
+ resourcePreview: "resource_preview",
10046
+ }),
10047
+ ),
10048
+ Schema.Struct({
10049
+ itemType: Schema.String,
10050
+ list: Schema.Array(
10051
+ Schema.Union([
10052
+ Schema.Struct({
10053
+ itemType: Schema.Unknown,
10054
+ string: Schema.Unknown,
10055
+ }).pipe(
10056
+ Schema.encodeKeys({
10057
+ itemType: "item_type",
10058
+ string: "string",
10059
+ }),
10060
+ ),
10061
+ Schema.Struct({
10062
+ itemType: Schema.Unknown,
10063
+ resourcePreview: Schema.Unknown,
10064
+ }).pipe(
10065
+ Schema.encodeKeys({
10066
+ itemType: "item_type",
10067
+ resourcePreview: "resource_preview",
10068
+ }),
10069
+ ),
10070
+ ]),
10071
+ ),
10072
+ }).pipe(
10073
+ Schema.encodeKeys({
10074
+ itemType: "item_type",
10075
+ list: "list",
10076
+ }),
10077
+ ),
10078
+ ]),
10079
+ Schema.Null,
9679
10080
  ]),
9680
- Schema.Null,
9681
- ]),
9682
- ),
10081
+ ),
10082
+ }),
10083
+ ),
10084
+ helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10085
+ }).pipe(
10086
+ Schema.encodeKeys({
10087
+ hiddenItems: "hidden_items",
10088
+ name: "name",
10089
+ visibleItems: "visible_items",
10090
+ helpText: "help_text",
9683
10091
  }),
9684
10092
  ),
9685
- helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9686
- }).pipe(
9687
- Schema.encodeKeys({
9688
- hiddenItems: "hidden_items",
9689
- name: "name",
9690
- visibleItems: "visible_items",
9691
- helpText: "help_text",
9692
- }),
9693
10093
  ),
9694
- ),
9695
- state: Schema.Struct({}),
9696
- tags: Schema.Struct({}),
9697
- updatedAt: Schema.String,
9698
- url: Schema.String,
9699
- managedBy: Schema.optional(
9700
- Schema.Union([
9701
- Schema.Array(
9702
- Schema.Struct({
9703
- id: Schema.String,
9704
- clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
9705
- name: Schema.String,
9706
- }).pipe(
9707
- Schema.encodeKeys({
9708
- id: "id",
9709
- clientType: "client_type",
9710
- name: "name",
9711
- }),
10094
+ state: Schema.Struct({}),
10095
+ tags: Schema.Struct({}),
10096
+ updatedAt: Schema.String,
10097
+ url: Schema.String,
10098
+ managedBy: Schema.optional(
10099
+ Schema.Union([
10100
+ Schema.Array(
10101
+ Schema.Struct({
10102
+ id: Schema.String,
10103
+ clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
10104
+ name: Schema.String,
10105
+ }).pipe(
10106
+ Schema.encodeKeys({
10107
+ id: "id",
10108
+ clientType: "client_type",
10109
+ name: "name",
10110
+ }),
10111
+ ),
9712
10112
  ),
9713
- ),
9714
- Schema.Null,
9715
- ]),
10113
+ Schema.Null,
10114
+ ]),
10115
+ ),
10116
+ }).pipe(
10117
+ Schema.encodeKeys({
10118
+ id: "id",
10119
+ accountId: "account_id",
10120
+ cloudType: "cloud_type",
10121
+ config: "config",
10122
+ deploymentProvider: "deployment_provider",
10123
+ managed: "managed",
10124
+ monthlyCostEstimate: "monthly_cost_estimate",
10125
+ name: "name",
10126
+ nativeId: "native_id",
10127
+ observations: "observations",
10128
+ providerIds: "provider_ids",
10129
+ providerNamesById: "provider_names_by_id",
10130
+ region: "region",
10131
+ resourceGroup: "resource_group",
10132
+ resourceType: "resource_type",
10133
+ sections: "sections",
10134
+ state: "state",
10135
+ tags: "tags",
10136
+ updatedAt: "updated_at",
10137
+ url: "url",
10138
+ managedBy: "managed_by",
10139
+ }),
9716
10140
  ),
10141
+ ),
10142
+ resultInfo: Schema.Struct({
10143
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10144
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10145
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10146
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9717
10147
  }).pipe(
9718
10148
  Schema.encodeKeys({
9719
- id: "id",
9720
- accountId: "account_id",
9721
- cloudType: "cloud_type",
9722
- config: "config",
9723
- deploymentProvider: "deployment_provider",
9724
- managed: "managed",
9725
- monthlyCostEstimate: "monthly_cost_estimate",
9726
- name: "name",
9727
- nativeId: "native_id",
9728
- observations: "observations",
9729
- providerIds: "provider_ids",
9730
- providerNamesById: "provider_names_by_id",
9731
- region: "region",
9732
- resourceGroup: "resource_group",
9733
- resourceType: "resource_type",
9734
- sections: "sections",
9735
- state: "state",
9736
- tags: "tags",
9737
- updatedAt: "updated_at",
9738
- url: "url",
9739
- managedBy: "managed_by",
10149
+ count: "count",
10150
+ page: "page",
10151
+ perPage: "per_page",
10152
+ totalCount: "total_count",
9740
10153
  }),
9741
10154
  ),
10155
+ }).pipe(
10156
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
9742
10157
  ) as unknown as Schema.Schema<ListResourcesResponse>;
9743
10158
 
9744
10159
  export type ListResourcesError = DefaultErrors;
9745
10160
 
9746
- export const listResources: API.OperationMethod<
10161
+ export const listResources: API.PaginatedOperationMethod<
9747
10162
  ListResourcesRequest,
9748
10163
  ListResourcesResponse,
9749
10164
  ListResourcesError,
9750
10165
  Credentials | HttpClient.HttpClient
9751
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
10166
+ > & {
10167
+ pages: (
10168
+ input: ListResourcesRequest,
10169
+ ) => stream.Stream<
10170
+ ListResourcesResponse,
10171
+ ListResourcesError,
10172
+ Credentials | HttpClient.HttpClient
10173
+ >;
10174
+ items: (input: ListResourcesRequest) => stream.Stream<
10175
+ {
10176
+ id: string;
10177
+ accountId: string;
10178
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
10179
+ config: Record<string, unknown>;
10180
+ deploymentProvider: string;
10181
+ managed: boolean;
10182
+ monthlyCostEstimate: { currency: string; monthlyCost: number };
10183
+ name: string;
10184
+ nativeId: string;
10185
+ observations: Record<string, unknown>;
10186
+ providerIds: string[];
10187
+ providerNamesById: Record<string, unknown>;
10188
+ region: string;
10189
+ resourceGroup: string;
10190
+ resourceType:
10191
+ | "aws_customer_gateway"
10192
+ | "aws_egress_only_internet_gateway"
10193
+ | "aws_internet_gateway"
10194
+ | "aws_instance"
10195
+ | "aws_network_interface"
10196
+ | "aws_route"
10197
+ | "aws_route_table"
10198
+ | "aws_route_table_association"
10199
+ | "aws_subnet"
10200
+ | "aws_vpc"
10201
+ | "aws_vpc_ipv4_cidr_block_association"
10202
+ | "aws_vpn_connection"
10203
+ | "aws_vpn_connection_route"
10204
+ | "aws_vpn_gateway"
10205
+ | "aws_security_group"
10206
+ | "aws_vpc_security_group_ingress_rule"
10207
+ | "aws_vpc_security_group_egress_rule"
10208
+ | "aws_ec2_managed_prefix_list"
10209
+ | "aws_ec2_transit_gateway"
10210
+ | "aws_ec2_transit_gateway_prefix_list_reference"
10211
+ | "aws_ec2_transit_gateway_vpc_attachment"
10212
+ | "azurerm_application_security_group"
10213
+ | "azurerm_lb"
10214
+ | "azurerm_lb_backend_address_pool"
10215
+ | "azurerm_lb_nat_pool"
10216
+ | "azurerm_lb_nat_rule"
10217
+ | "azurerm_lb_rule"
10218
+ | "azurerm_local_network_gateway"
10219
+ | "azurerm_network_interface"
10220
+ | "azurerm_network_interface_application_security_group_association"
10221
+ | "azurerm_network_interface_backend_address_pool_association"
10222
+ | "azurerm_network_interface_security_group_association"
10223
+ | "azurerm_network_security_group"
10224
+ | "azurerm_public_ip"
10225
+ | "azurerm_route"
10226
+ | "azurerm_route_table"
10227
+ | "azurerm_subnet"
10228
+ | "azurerm_subnet_route_table_association"
10229
+ | "azurerm_virtual_machine"
10230
+ | "azurerm_virtual_network_gateway_connection"
10231
+ | "azurerm_virtual_network"
10232
+ | "azurerm_virtual_network_gateway"
10233
+ | "google_compute_network"
10234
+ | "google_compute_subnetwork"
10235
+ | "google_compute_vpn_gateway"
10236
+ | "google_compute_vpn_tunnel"
10237
+ | "google_compute_route"
10238
+ | "google_compute_address"
10239
+ | "google_compute_global_address"
10240
+ | "google_compute_router"
10241
+ | "google_compute_interconnect_attachment"
10242
+ | "google_compute_ha_vpn_gateway"
10243
+ | "google_compute_forwarding_rule"
10244
+ | "google_compute_network_firewall_policy"
10245
+ | "google_compute_network_firewall_policy_rule"
10246
+ | "cloudflare_static_route"
10247
+ | "cloudflare_ipsec_tunnel";
10248
+ sections: {
10249
+ hiddenItems: {
10250
+ helpText?: string | null;
10251
+ name?: string | null;
10252
+ value?:
10253
+ | { itemType: string; string: string }
10254
+ | { itemType: string; yaml: string }
10255
+ | {
10256
+ itemType: string;
10257
+ yamlDiff: {
10258
+ diff: string;
10259
+ leftDescription: string;
10260
+ leftYaml: string;
10261
+ rightDescription: string;
10262
+ rightYaml: string;
10263
+ };
10264
+ }
10265
+ | {
10266
+ itemType: string;
10267
+ resourcePreview: {
10268
+ id: string;
10269
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
10270
+ detail: string;
10271
+ name: string;
10272
+ resourceType:
10273
+ | "aws_customer_gateway"
10274
+ | "aws_egress_only_internet_gateway"
10275
+ | "aws_internet_gateway"
10276
+ | "aws_instance"
10277
+ | "aws_network_interface"
10278
+ | "aws_route"
10279
+ | "aws_route_table"
10280
+ | "aws_route_table_association"
10281
+ | "aws_subnet"
10282
+ | "aws_vpc"
10283
+ | "aws_vpc_ipv4_cidr_block_association"
10284
+ | "aws_vpn_connection"
10285
+ | "aws_vpn_connection_route"
10286
+ | "aws_vpn_gateway"
10287
+ | "aws_security_group"
10288
+ | "aws_vpc_security_group_ingress_rule"
10289
+ | "aws_vpc_security_group_egress_rule"
10290
+ | "aws_ec2_managed_prefix_list"
10291
+ | "aws_ec2_transit_gateway"
10292
+ | "aws_ec2_transit_gateway_prefix_list_reference"
10293
+ | "aws_ec2_transit_gateway_vpc_attachment"
10294
+ | "azurerm_application_security_group"
10295
+ | "azurerm_lb"
10296
+ | "azurerm_lb_backend_address_pool"
10297
+ | "azurerm_lb_nat_pool"
10298
+ | "azurerm_lb_nat_rule"
10299
+ | "azurerm_lb_rule"
10300
+ | "azurerm_local_network_gateway"
10301
+ | "azurerm_network_interface"
10302
+ | "azurerm_network_interface_application_security_group_association"
10303
+ | "azurerm_network_interface_backend_address_pool_association"
10304
+ | "azurerm_network_interface_security_group_association"
10305
+ | "azurerm_network_security_group"
10306
+ | "azurerm_public_ip"
10307
+ | "azurerm_route"
10308
+ | "azurerm_route_table"
10309
+ | "azurerm_subnet"
10310
+ | "azurerm_subnet_route_table_association"
10311
+ | "azurerm_virtual_machine"
10312
+ | "azurerm_virtual_network_gateway_connection"
10313
+ | "azurerm_virtual_network"
10314
+ | "azurerm_virtual_network_gateway"
10315
+ | "google_compute_network"
10316
+ | "google_compute_subnetwork"
10317
+ | "google_compute_vpn_gateway"
10318
+ | "google_compute_vpn_tunnel"
10319
+ | "google_compute_route"
10320
+ | "google_compute_address"
10321
+ | "google_compute_global_address"
10322
+ | "google_compute_router"
10323
+ | "google_compute_interconnect_attachment"
10324
+ | "google_compute_ha_vpn_gateway"
10325
+ | "google_compute_forwarding_rule"
10326
+ | "google_compute_network_firewall_policy"
10327
+ | "google_compute_network_firewall_policy_rule"
10328
+ | "cloudflare_static_route"
10329
+ | "cloudflare_ipsec_tunnel";
10330
+ title: string;
10331
+ };
10332
+ }
10333
+ | {
10334
+ itemType: string;
10335
+ list: (
10336
+ | { itemType: string; string: string }
10337
+ | {
10338
+ itemType: string;
10339
+ resourcePreview: {
10340
+ id: unknown;
10341
+ cloudType: unknown;
10342
+ detail: unknown;
10343
+ name: unknown;
10344
+ resourceType: unknown;
10345
+ title: unknown;
10346
+ };
10347
+ }
10348
+ )[];
10349
+ }
10350
+ | null;
10351
+ }[];
10352
+ name: string;
10353
+ visibleItems: {
10354
+ helpText?: string | null;
10355
+ name?: string | null;
10356
+ value?:
10357
+ | { itemType: string; string: string }
10358
+ | { itemType: string; yaml: string }
10359
+ | {
10360
+ itemType: string;
10361
+ yamlDiff: {
10362
+ diff: string;
10363
+ leftDescription: string;
10364
+ leftYaml: string;
10365
+ rightDescription: string;
10366
+ rightYaml: string;
10367
+ };
10368
+ }
10369
+ | {
10370
+ itemType: string;
10371
+ resourcePreview: {
10372
+ id: string;
10373
+ cloudType: "AWS" | "AZURE" | "GOOGLE" | "CLOUDFLARE";
10374
+ detail: string;
10375
+ name: string;
10376
+ resourceType:
10377
+ | "aws_customer_gateway"
10378
+ | "aws_egress_only_internet_gateway"
10379
+ | "aws_internet_gateway"
10380
+ | "aws_instance"
10381
+ | "aws_network_interface"
10382
+ | "aws_route"
10383
+ | "aws_route_table"
10384
+ | "aws_route_table_association"
10385
+ | "aws_subnet"
10386
+ | "aws_vpc"
10387
+ | "aws_vpc_ipv4_cidr_block_association"
10388
+ | "aws_vpn_connection"
10389
+ | "aws_vpn_connection_route"
10390
+ | "aws_vpn_gateway"
10391
+ | "aws_security_group"
10392
+ | "aws_vpc_security_group_ingress_rule"
10393
+ | "aws_vpc_security_group_egress_rule"
10394
+ | "aws_ec2_managed_prefix_list"
10395
+ | "aws_ec2_transit_gateway"
10396
+ | "aws_ec2_transit_gateway_prefix_list_reference"
10397
+ | "aws_ec2_transit_gateway_vpc_attachment"
10398
+ | "azurerm_application_security_group"
10399
+ | "azurerm_lb"
10400
+ | "azurerm_lb_backend_address_pool"
10401
+ | "azurerm_lb_nat_pool"
10402
+ | "azurerm_lb_nat_rule"
10403
+ | "azurerm_lb_rule"
10404
+ | "azurerm_local_network_gateway"
10405
+ | "azurerm_network_interface"
10406
+ | "azurerm_network_interface_application_security_group_association"
10407
+ | "azurerm_network_interface_backend_address_pool_association"
10408
+ | "azurerm_network_interface_security_group_association"
10409
+ | "azurerm_network_security_group"
10410
+ | "azurerm_public_ip"
10411
+ | "azurerm_route"
10412
+ | "azurerm_route_table"
10413
+ | "azurerm_subnet"
10414
+ | "azurerm_subnet_route_table_association"
10415
+ | "azurerm_virtual_machine"
10416
+ | "azurerm_virtual_network_gateway_connection"
10417
+ | "azurerm_virtual_network"
10418
+ | "azurerm_virtual_network_gateway"
10419
+ | "google_compute_network"
10420
+ | "google_compute_subnetwork"
10421
+ | "google_compute_vpn_gateway"
10422
+ | "google_compute_vpn_tunnel"
10423
+ | "google_compute_route"
10424
+ | "google_compute_address"
10425
+ | "google_compute_global_address"
10426
+ | "google_compute_router"
10427
+ | "google_compute_interconnect_attachment"
10428
+ | "google_compute_ha_vpn_gateway"
10429
+ | "google_compute_forwarding_rule"
10430
+ | "google_compute_network_firewall_policy"
10431
+ | "google_compute_network_firewall_policy_rule"
10432
+ | "cloudflare_static_route"
10433
+ | "cloudflare_ipsec_tunnel";
10434
+ title: string;
10435
+ };
10436
+ }
10437
+ | {
10438
+ itemType: string;
10439
+ list: (
10440
+ | { itemType: string; string: string }
10441
+ | {
10442
+ itemType: string;
10443
+ resourcePreview: {
10444
+ id: unknown;
10445
+ cloudType: unknown;
10446
+ detail: unknown;
10447
+ name: unknown;
10448
+ resourceType: unknown;
10449
+ title: unknown;
10450
+ };
10451
+ }
10452
+ )[];
10453
+ }
10454
+ | null;
10455
+ }[];
10456
+ helpText?: string | null;
10457
+ }[];
10458
+ state: Record<string, unknown>;
10459
+ tags: Record<string, unknown>;
10460
+ updatedAt: string;
10461
+ url: string;
10462
+ managedBy?:
10463
+ | { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
10464
+ | null;
10465
+ },
10466
+ ListResourcesError,
10467
+ Credentials | HttpClient.HttpClient
10468
+ >;
10469
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9752
10470
  input: ListResourcesRequest,
9753
10471
  output: ListResourcesResponse,
9754
10472
  errors: [],
10473
+ pagination: {
10474
+ mode: "page",
10475
+ inputToken: "page",
10476
+ outputToken: "resultInfo.page",
10477
+ items: "result",
10478
+ pageSize: "perPage",
10479
+ } as const,
9755
10480
  }));
9756
10481
 
9757
10482
  export interface ExportResourceRequest {
@@ -10004,7 +10729,9 @@ export const InitialSetupCloudIntegrationResponse =
10004
10729
  tagCliCommand: "tag_cli_command",
10005
10730
  }),
10006
10731
  ),
10007
- ]) as unknown as Schema.Schema<InitialSetupCloudIntegrationResponse>;
10732
+ ]).pipe(
10733
+ T.ResponsePath("result"),
10734
+ ) as unknown as Schema.Schema<InitialSetupCloudIntegrationResponse>;
10008
10735
 
10009
10736
  export type InitialSetupCloudIntegrationError = DefaultErrors;
10010
10737