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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -4,6 +4,7 @@
4
4
  * Generated from Cloudflare TypeScript SDK.
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service magic-cloud-networking
6
6
  */
7
+ import * as stream from "effect/Stream";
7
8
  import * as Schema from "effect/Schema";
8
9
  import * as API from "../client/api.js";
9
10
  import * as T from "../traits.js";
@@ -430,7 +431,8 @@ export const GetCatalogSyncResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
430
431
  includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
431
432
  lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
432
433
  lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
433
- }).pipe(Schema.encodeKeys({
434
+ })
435
+ .pipe(Schema.encodeKeys({
434
436
  id: "id",
435
437
  description: "description",
436
438
  destinationId: "destination_id",
@@ -443,7 +445,8 @@ export const GetCatalogSyncResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
443
445
  includesDiscoveriesUntil: "includes_discoveries_until",
444
446
  lastAttemptedUpdateAt: "last_attempted_update_at",
445
447
  lastSuccessfulUpdateAt: "last_successful_update_at",
446
- }));
448
+ }))
449
+ .pipe(T.ResponsePath("result"));
447
450
  export const getCatalogSync = API.make(() => ({
448
451
  input: GetCatalogSyncRequest,
449
452
  output: GetCatalogSyncResponse,
@@ -457,37 +460,43 @@ export const ListCatalogSyncsRequest =
457
460
  path: "/accounts/{account_id}/magic/cloud/catalog-syncs",
458
461
  }));
459
462
  export const ListCatalogSyncsResponse =
460
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
461
- id: Schema.String,
462
- description: Schema.String,
463
- destinationId: Schema.String,
464
- destinationType: Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
465
- lastUserUpdateAt: Schema.String,
466
- name: Schema.String,
467
- policy: Schema.String,
468
- updateMode: Schema.Literals(["AUTO", "MANUAL"]),
469
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
470
- includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
471
- lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
472
- lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
473
- }).pipe(Schema.encodeKeys({
474
- id: "id",
475
- description: "description",
476
- destinationId: "destination_id",
477
- destinationType: "destination_type",
478
- lastUserUpdateAt: "last_user_update_at",
479
- name: "name",
480
- policy: "policy",
481
- updateMode: "update_mode",
482
- errors: "errors",
483
- includesDiscoveriesUntil: "includes_discoveries_until",
484
- lastAttemptedUpdateAt: "last_attempted_update_at",
485
- lastSuccessfulUpdateAt: "last_successful_update_at",
486
- })));
487
- export const listCatalogSyncs = API.make(() => ({
463
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
464
+ result: Schema.Array(Schema.Struct({
465
+ id: Schema.String,
466
+ description: Schema.String,
467
+ destinationId: Schema.String,
468
+ destinationType: Schema.Literals(["NONE", "ZERO_TRUST_LIST"]),
469
+ lastUserUpdateAt: Schema.String,
470
+ name: Schema.String,
471
+ policy: Schema.String,
472
+ updateMode: Schema.Literals(["AUTO", "MANUAL"]),
473
+ errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
474
+ includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
475
+ lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
476
+ lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
477
+ }).pipe(Schema.encodeKeys({
478
+ id: "id",
479
+ description: "description",
480
+ destinationId: "destination_id",
481
+ destinationType: "destination_type",
482
+ lastUserUpdateAt: "last_user_update_at",
483
+ name: "name",
484
+ policy: "policy",
485
+ updateMode: "update_mode",
486
+ errors: "errors",
487
+ includesDiscoveriesUntil: "includes_discoveries_until",
488
+ lastAttemptedUpdateAt: "last_attempted_update_at",
489
+ lastSuccessfulUpdateAt: "last_successful_update_at",
490
+ }))),
491
+ });
492
+ export const listCatalogSyncs = API.makePaginated(() => ({
488
493
  input: ListCatalogSyncsRequest,
489
494
  output: ListCatalogSyncsResponse,
490
495
  errors: [],
496
+ pagination: {
497
+ mode: "single",
498
+ items: "result",
499
+ },
491
500
  }));
492
501
  export const CreateCatalogSyncRequest =
493
502
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -522,7 +531,8 @@ export const CreateCatalogSyncResponse =
522
531
  includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
523
532
  lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
524
533
  lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
525
- }).pipe(Schema.encodeKeys({
534
+ })
535
+ .pipe(Schema.encodeKeys({
526
536
  id: "id",
527
537
  description: "description",
528
538
  destinationId: "destination_id",
@@ -535,7 +545,8 @@ export const CreateCatalogSyncResponse =
535
545
  includesDiscoveriesUntil: "includes_discoveries_until",
536
546
  lastAttemptedUpdateAt: "last_attempted_update_at",
537
547
  lastSuccessfulUpdateAt: "last_successful_update_at",
538
- }));
548
+ }))
549
+ .pipe(T.ResponsePath("result"));
539
550
  export const createCatalogSync = API.make(() => ({
540
551
  input: CreateCatalogSyncRequest,
541
552
  output: CreateCatalogSyncResponse,
@@ -572,7 +583,8 @@ export const UpdateCatalogSyncResponse =
572
583
  includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
573
584
  lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
574
585
  lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
575
- }).pipe(Schema.encodeKeys({
586
+ })
587
+ .pipe(Schema.encodeKeys({
576
588
  id: "id",
577
589
  description: "description",
578
590
  destinationId: "destination_id",
@@ -585,7 +597,8 @@ export const UpdateCatalogSyncResponse =
585
597
  includesDiscoveriesUntil: "includes_discoveries_until",
586
598
  lastAttemptedUpdateAt: "last_attempted_update_at",
587
599
  lastSuccessfulUpdateAt: "last_successful_update_at",
588
- }));
600
+ }))
601
+ .pipe(T.ResponsePath("result"));
589
602
  export const updateCatalogSync = API.make(() => ({
590
603
  input: UpdateCatalogSyncRequest,
591
604
  output: UpdateCatalogSyncResponse,
@@ -622,7 +635,8 @@ export const PatchCatalogSyncResponse =
622
635
  includesDiscoveriesUntil: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
623
636
  lastAttemptedUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
624
637
  lastSuccessfulUpdateAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
625
- }).pipe(Schema.encodeKeys({
638
+ })
639
+ .pipe(Schema.encodeKeys({
626
640
  id: "id",
627
641
  description: "description",
628
642
  destinationId: "destination_id",
@@ -635,7 +649,8 @@ export const PatchCatalogSyncResponse =
635
649
  includesDiscoveriesUntil: "includes_discoveries_until",
636
650
  lastAttemptedUpdateAt: "last_attempted_update_at",
637
651
  lastSuccessfulUpdateAt: "last_successful_update_at",
638
- }));
652
+ }))
653
+ .pipe(T.ResponsePath("result"));
639
654
  export const patchCatalogSync = API.make(() => ({
640
655
  input: PatchCatalogSyncRequest,
641
656
  output: PatchCatalogSyncResponse,
@@ -653,7 +668,7 @@ export const DeleteCatalogSyncRequest =
653
668
  export const DeleteCatalogSyncResponse =
654
669
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
655
670
  id: Schema.String,
656
- });
671
+ }).pipe(T.ResponsePath("result"));
657
672
  export const deleteCatalogSync = API.make(() => ({
658
673
  input: DeleteCatalogSyncRequest,
659
674
  output: DeleteCatalogSyncResponse,
@@ -668,7 +683,7 @@ export const RefreshCatalogSyncRequest =
668
683
  path: "/accounts/{account_id}/magic/cloud/catalog-syncs/{syncId}/refresh",
669
684
  }));
670
685
  export const RefreshCatalogSyncResponse =
671
- /*@__PURE__*/ /*#__PURE__*/ Schema.String;
686
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
672
687
  export const refreshCatalogSync = API.make(() => ({
673
688
  input: RefreshCatalogSyncRequest,
674
689
  output: RefreshCatalogSyncResponse,
@@ -683,21 +698,27 @@ export const ListCatalogSyncPrebuiltPoliciesRequest =
683
698
  path: "/accounts/{account_id}/magic/cloud/catalog-syncs/prebuilt-policies",
684
699
  }));
685
700
  export const ListCatalogSyncPrebuiltPoliciesResponse =
686
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
687
- applicableDestinations: Schema.Array(Schema.Literals(["NONE", "ZERO_TRUST_LIST"])),
688
- policyDescription: Schema.String,
689
- policyName: Schema.String,
690
- policyString: Schema.String,
691
- }).pipe(Schema.encodeKeys({
692
- applicableDestinations: "applicable_destinations",
693
- policyDescription: "policy_description",
694
- policyName: "policy_name",
695
- policyString: "policy_string",
696
- })));
697
- export const listCatalogSyncPrebuiltPolicies = API.make(() => ({
701
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
702
+ result: Schema.Array(Schema.Struct({
703
+ applicableDestinations: Schema.Array(Schema.Literals(["NONE", "ZERO_TRUST_LIST"])),
704
+ policyDescription: Schema.String,
705
+ policyName: Schema.String,
706
+ policyString: Schema.String,
707
+ }).pipe(Schema.encodeKeys({
708
+ applicableDestinations: "applicable_destinations",
709
+ policyDescription: "policy_description",
710
+ policyName: "policy_name",
711
+ policyString: "policy_string",
712
+ }))),
713
+ });
714
+ export const listCatalogSyncPrebuiltPolicies = API.makePaginated(() => ({
698
715
  input: ListCatalogSyncPrebuiltPoliciesRequest,
699
716
  output: ListCatalogSyncPrebuiltPoliciesResponse,
700
717
  errors: [],
718
+ pagination: {
719
+ mode: "single",
720
+ items: "result",
721
+ },
701
722
  }));
702
723
  export const GetCloudIntegrationRequest =
703
724
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -804,7 +825,8 @@ export const GetCloudIntegrationResponse =
804
825
  })),
805
826
  Schema.Null,
806
827
  ])),
807
- }).pipe(Schema.encodeKeys({
828
+ })
829
+ .pipe(Schema.encodeKeys({
808
830
  id: "id",
809
831
  cloudType: "cloud_type",
810
832
  friendlyName: "friendly_name",
@@ -819,7 +841,8 @@ export const GetCloudIntegrationResponse =
819
841
  gcpProjectId: "gcp_project_id",
820
842
  gcpServiceAccountEmail: "gcp_service_account_email",
821
843
  status: "status",
822
- }));
844
+ }))
845
+ .pipe(T.ResponsePath("result"));
823
846
  export const getCloudIntegration = API.make(() => ({
824
847
  input: GetCloudIntegrationRequest,
825
848
  output: GetCloudIntegrationResponse,
@@ -837,121 +860,127 @@ export const ListCloudIntegrationsRequest =
837
860
  path: "/accounts/{account_id}/magic/cloud/providers",
838
861
  }));
839
862
  export const ListCloudIntegrationsResponse =
840
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
841
- id: Schema.String,
842
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
843
- friendlyName: Schema.String,
844
- lastUpdated: Schema.String,
845
- lifecycleState: Schema.Literals(["ACTIVE", "PENDING_SETUP", "RETIRED"]),
846
- state: Schema.Literals([
847
- "UNSPECIFIED",
848
- "PENDING",
849
- "DISCOVERING",
850
- "FAILED",
851
- "SUCCEEDED",
852
- ]),
853
- stateV2: Schema.Literals([
854
- "UNSPECIFIED",
855
- "PENDING",
856
- "DISCOVERING",
857
- "FAILED",
858
- "SUCCEEDED",
859
- ]),
860
- awsArn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
861
- azureSubscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
862
- azureTenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
863
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
864
- gcpProjectId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
865
- gcpServiceAccountEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
866
- status: Schema.optional(Schema.Union([
867
- Schema.Struct({
868
- discoveryProgress: Schema.Struct({
869
- done: Schema.Number,
870
- total: Schema.Number,
871
- unit: Schema.String,
872
- }),
873
- discoveryProgressV2: Schema.Struct({
874
- done: Schema.Number,
875
- total: Schema.Number,
876
- unit: Schema.String,
877
- }),
878
- lastDiscoveryStatus: Schema.Literals([
879
- "UNSPECIFIED",
880
- "PENDING",
881
- "DISCOVERING",
882
- "FAILED",
883
- "SUCCEEDED",
884
- ]),
885
- lastDiscoveryStatusV2: Schema.Literals([
886
- "UNSPECIFIED",
887
- "PENDING",
888
- "DISCOVERING",
889
- "FAILED",
890
- "SUCCEEDED",
891
- ]),
892
- regions: Schema.Array(Schema.String),
893
- credentialsGoodSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
894
- credentialsMissingSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
895
- credentialsRejectedSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
896
- discoveryMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
897
- discoveryMessageV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
898
- inUseBy: Schema.optional(Schema.Union([
899
- Schema.Array(Schema.Struct({
900
- id: Schema.String,
901
- clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
902
- name: Schema.String,
903
- }).pipe(Schema.encodeKeys({
904
- id: "id",
905
- clientType: "client_type",
906
- name: "name",
907
- }))),
908
- Schema.Null,
909
- ])),
910
- lastDiscoveryCompletedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
911
- lastDiscoveryCompletedAtV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
912
- lastDiscoveryStartedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
913
- lastDiscoveryStartedAtV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
914
- lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
915
- }).pipe(Schema.encodeKeys({
916
- discoveryProgress: "discovery_progress",
917
- discoveryProgressV2: "discovery_progress_v2",
918
- lastDiscoveryStatus: "last_discovery_status",
919
- lastDiscoveryStatusV2: "last_discovery_status_v2",
920
- regions: "regions",
921
- credentialsGoodSince: "credentials_good_since",
922
- credentialsMissingSince: "credentials_missing_since",
923
- credentialsRejectedSince: "credentials_rejected_since",
924
- discoveryMessage: "discovery_message",
925
- discoveryMessageV2: "discovery_message_v2",
926
- inUseBy: "in_use_by",
927
- lastDiscoveryCompletedAt: "last_discovery_completed_at",
928
- lastDiscoveryCompletedAtV2: "last_discovery_completed_at_v2",
929
- lastDiscoveryStartedAt: "last_discovery_started_at",
930
- lastDiscoveryStartedAtV2: "last_discovery_started_at_v2",
931
- lastUpdated: "last_updated",
932
- })),
933
- Schema.Null,
934
- ])),
935
- }).pipe(Schema.encodeKeys({
936
- id: "id",
937
- cloudType: "cloud_type",
938
- friendlyName: "friendly_name",
939
- lastUpdated: "last_updated",
940
- lifecycleState: "lifecycle_state",
941
- state: "state",
942
- stateV2: "state_v2",
943
- awsArn: "aws_arn",
944
- azureSubscriptionId: "azure_subscription_id",
945
- azureTenantId: "azure_tenant_id",
946
- description: "description",
947
- gcpProjectId: "gcp_project_id",
948
- gcpServiceAccountEmail: "gcp_service_account_email",
949
- status: "status",
950
- })));
951
- export const listCloudIntegrations = API.make(() => ({
863
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
864
+ result: Schema.Array(Schema.Struct({
865
+ id: Schema.String,
866
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
867
+ friendlyName: Schema.String,
868
+ lastUpdated: Schema.String,
869
+ lifecycleState: Schema.Literals(["ACTIVE", "PENDING_SETUP", "RETIRED"]),
870
+ state: Schema.Literals([
871
+ "UNSPECIFIED",
872
+ "PENDING",
873
+ "DISCOVERING",
874
+ "FAILED",
875
+ "SUCCEEDED",
876
+ ]),
877
+ stateV2: Schema.Literals([
878
+ "UNSPECIFIED",
879
+ "PENDING",
880
+ "DISCOVERING",
881
+ "FAILED",
882
+ "SUCCEEDED",
883
+ ]),
884
+ awsArn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
885
+ azureSubscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
886
+ azureTenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
887
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
888
+ gcpProjectId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
889
+ gcpServiceAccountEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
890
+ status: Schema.optional(Schema.Union([
891
+ Schema.Struct({
892
+ discoveryProgress: Schema.Struct({
893
+ done: Schema.Number,
894
+ total: Schema.Number,
895
+ unit: Schema.String,
896
+ }),
897
+ discoveryProgressV2: Schema.Struct({
898
+ done: Schema.Number,
899
+ total: Schema.Number,
900
+ unit: Schema.String,
901
+ }),
902
+ lastDiscoveryStatus: Schema.Literals([
903
+ "UNSPECIFIED",
904
+ "PENDING",
905
+ "DISCOVERING",
906
+ "FAILED",
907
+ "SUCCEEDED",
908
+ ]),
909
+ lastDiscoveryStatusV2: Schema.Literals([
910
+ "UNSPECIFIED",
911
+ "PENDING",
912
+ "DISCOVERING",
913
+ "FAILED",
914
+ "SUCCEEDED",
915
+ ]),
916
+ regions: Schema.Array(Schema.String),
917
+ credentialsGoodSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
918
+ credentialsMissingSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
919
+ credentialsRejectedSince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
920
+ discoveryMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
921
+ discoveryMessageV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
922
+ inUseBy: Schema.optional(Schema.Union([
923
+ Schema.Array(Schema.Struct({
924
+ id: Schema.String,
925
+ clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
926
+ name: Schema.String,
927
+ }).pipe(Schema.encodeKeys({
928
+ id: "id",
929
+ clientType: "client_type",
930
+ name: "name",
931
+ }))),
932
+ Schema.Null,
933
+ ])),
934
+ lastDiscoveryCompletedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
+ lastDiscoveryCompletedAtV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
936
+ lastDiscoveryStartedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
937
+ lastDiscoveryStartedAtV2: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
+ lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
939
+ }).pipe(Schema.encodeKeys({
940
+ discoveryProgress: "discovery_progress",
941
+ discoveryProgressV2: "discovery_progress_v2",
942
+ lastDiscoveryStatus: "last_discovery_status",
943
+ lastDiscoveryStatusV2: "last_discovery_status_v2",
944
+ regions: "regions",
945
+ credentialsGoodSince: "credentials_good_since",
946
+ credentialsMissingSince: "credentials_missing_since",
947
+ credentialsRejectedSince: "credentials_rejected_since",
948
+ discoveryMessage: "discovery_message",
949
+ discoveryMessageV2: "discovery_message_v2",
950
+ inUseBy: "in_use_by",
951
+ lastDiscoveryCompletedAt: "last_discovery_completed_at",
952
+ lastDiscoveryCompletedAtV2: "last_discovery_completed_at_v2",
953
+ lastDiscoveryStartedAt: "last_discovery_started_at",
954
+ lastDiscoveryStartedAtV2: "last_discovery_started_at_v2",
955
+ lastUpdated: "last_updated",
956
+ })),
957
+ Schema.Null,
958
+ ])),
959
+ }).pipe(Schema.encodeKeys({
960
+ id: "id",
961
+ cloudType: "cloud_type",
962
+ friendlyName: "friendly_name",
963
+ lastUpdated: "last_updated",
964
+ lifecycleState: "lifecycle_state",
965
+ state: "state",
966
+ stateV2: "state_v2",
967
+ awsArn: "aws_arn",
968
+ azureSubscriptionId: "azure_subscription_id",
969
+ azureTenantId: "azure_tenant_id",
970
+ description: "description",
971
+ gcpProjectId: "gcp_project_id",
972
+ gcpServiceAccountEmail: "gcp_service_account_email",
973
+ status: "status",
974
+ }))),
975
+ });
976
+ export const listCloudIntegrations = API.makePaginated(() => ({
952
977
  input: ListCloudIntegrationsRequest,
953
978
  output: ListCloudIntegrationsResponse,
954
979
  errors: [],
980
+ pagination: {
981
+ mode: "single",
982
+ items: "result",
983
+ },
955
984
  }));
956
985
  export const CreateCloudIntegrationRequest =
957
986
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1064,7 +1093,8 @@ export const CreateCloudIntegrationResponse =
1064
1093
  })),
1065
1094
  Schema.Null,
1066
1095
  ])),
1067
- }).pipe(Schema.encodeKeys({
1096
+ })
1097
+ .pipe(Schema.encodeKeys({
1068
1098
  id: "id",
1069
1099
  cloudType: "cloud_type",
1070
1100
  friendlyName: "friendly_name",
@@ -1079,7 +1109,8 @@ export const CreateCloudIntegrationResponse =
1079
1109
  gcpProjectId: "gcp_project_id",
1080
1110
  gcpServiceAccountEmail: "gcp_service_account_email",
1081
1111
  status: "status",
1082
- }));
1112
+ }))
1113
+ .pipe(T.ResponsePath("result"));
1083
1114
  export const createCloudIntegration = API.make(() => ({
1084
1115
  input: CreateCloudIntegrationRequest,
1085
1116
  output: CreateCloudIntegrationResponse,
@@ -1204,7 +1235,8 @@ export const UpdateCloudIntegrationResponse =
1204
1235
  })),
1205
1236
  Schema.Null,
1206
1237
  ])),
1207
- }).pipe(Schema.encodeKeys({
1238
+ })
1239
+ .pipe(Schema.encodeKeys({
1208
1240
  id: "id",
1209
1241
  cloudType: "cloud_type",
1210
1242
  friendlyName: "friendly_name",
@@ -1219,7 +1251,8 @@ export const UpdateCloudIntegrationResponse =
1219
1251
  gcpProjectId: "gcp_project_id",
1220
1252
  gcpServiceAccountEmail: "gcp_service_account_email",
1221
1253
  status: "status",
1222
- }));
1254
+ }))
1255
+ .pipe(T.ResponsePath("result"));
1223
1256
  export const updateCloudIntegration = API.make(() => ({
1224
1257
  input: UpdateCloudIntegrationRequest,
1225
1258
  output: UpdateCloudIntegrationResponse,
@@ -1344,7 +1377,8 @@ export const PatchCloudIntegrationResponse =
1344
1377
  })),
1345
1378
  Schema.Null,
1346
1379
  ])),
1347
- }).pipe(Schema.encodeKeys({
1380
+ })
1381
+ .pipe(Schema.encodeKeys({
1348
1382
  id: "id",
1349
1383
  cloudType: "cloud_type",
1350
1384
  friendlyName: "friendly_name",
@@ -1359,7 +1393,8 @@ export const PatchCloudIntegrationResponse =
1359
1393
  gcpProjectId: "gcp_project_id",
1360
1394
  gcpServiceAccountEmail: "gcp_service_account_email",
1361
1395
  status: "status",
1362
- }));
1396
+ }))
1397
+ .pipe(T.ResponsePath("result"));
1363
1398
  export const patchCloudIntegration = API.make(() => ({
1364
1399
  input: PatchCloudIntegrationRequest,
1365
1400
  output: PatchCloudIntegrationResponse,
@@ -1376,7 +1411,7 @@ export const DeleteCloudIntegrationRequest =
1376
1411
  export const DeleteCloudIntegrationResponse =
1377
1412
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1378
1413
  id: Schema.String,
1379
- });
1414
+ }).pipe(T.ResponsePath("result"));
1380
1415
  export const deleteCloudIntegration = API.make(() => ({
1381
1416
  input: DeleteCloudIntegrationRequest,
1382
1417
  output: DeleteCloudIntegrationResponse,
@@ -2005,7 +2040,8 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2005
2040
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2006
2041
  vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2007
2042
  vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2008
- }).pipe(Schema.encodeKeys({
2043
+ })
2044
+ .pipe(Schema.encodeKeys({
2009
2045
  id: "id",
2010
2046
  cloudType: "cloud_type",
2011
2047
  dynamicRouting: "dynamic_routing",
@@ -2035,7 +2071,8 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2035
2071
  vpc: "vpc",
2036
2072
  vpcsById: "vpcs_by_id",
2037
2073
  vpcsByIdUnavailable: "vpcs_by_id_unavailable",
2038
- }));
2074
+ }))
2075
+ .pipe(T.ResponsePath("result"));
2039
2076
  export const getOnRamp = API.make(() => ({
2040
2077
  input: GetOnRampRequest,
2041
2078
  output: GetOnRampResponse,
@@ -2048,56 +2085,28 @@ export const ListOnRampsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2048
2085
  status: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("status")),
2049
2086
  vpcs: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("vpcs")),
2050
2087
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/cloud/onramps" }));
2051
- export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2052
- id: Schema.String,
2053
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE"]),
2054
- dynamicRouting: Schema.Boolean,
2055
- installRoutesInCloud: Schema.Boolean,
2056
- installRoutesInMagicWan: Schema.Boolean,
2057
- name: Schema.String,
2058
- type: Schema.Literals(["OnrampTypeSingle", "OnrampTypeHub"]),
2059
- updatedAt: Schema.String,
2060
- attachedHubs: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2061
- attachedVpcs: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2062
- cloudAsn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2063
- description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2064
- hub: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2065
- lastAppliedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2066
- lastExportedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2067
- lastPlannedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2068
- manageHubToHubAttachments: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2069
- manageVpcToHubAttachments: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2070
- plannedMonthlyCostEstimate: Schema.optional(Schema.Union([
2071
- Schema.Struct({
2072
- currency: Schema.String,
2073
- currentMonthlyCost: Schema.Number,
2074
- diff: Schema.Number,
2075
- proposedMonthlyCost: Schema.Number,
2076
- }).pipe(Schema.encodeKeys({
2077
- currency: "currency",
2078
- currentMonthlyCost: "current_monthly_cost",
2079
- diff: "diff",
2080
- proposedMonthlyCost: "proposed_monthly_cost",
2081
- })),
2082
- Schema.Null,
2083
- ])),
2084
- plannedResources: Schema.optional(Schema.Union([
2085
- Schema.Array(Schema.Struct({
2086
- diff: Schema.Struct({
2087
- diff: Schema.String,
2088
- leftDescription: Schema.String,
2089
- leftYaml: Schema.String,
2090
- rightDescription: Schema.String,
2091
- rightYaml: Schema.String,
2092
- }).pipe(Schema.encodeKeys({
2093
- diff: "diff",
2094
- leftDescription: "left_description",
2095
- leftYaml: "left_yaml",
2096
- rightDescription: "right_description",
2097
- rightYaml: "right_yaml",
2098
- })),
2099
- keysRequireReplace: Schema.Array(Schema.String),
2100
- monthlyCostEstimateDiff: Schema.Struct({
2088
+ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2089
+ result: Schema.Array(Schema.Struct({
2090
+ id: Schema.String,
2091
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE"]),
2092
+ dynamicRouting: Schema.Boolean,
2093
+ installRoutesInCloud: Schema.Boolean,
2094
+ installRoutesInMagicWan: Schema.Boolean,
2095
+ name: Schema.String,
2096
+ type: Schema.Literals(["OnrampTypeSingle", "OnrampTypeHub"]),
2097
+ updatedAt: Schema.String,
2098
+ attachedHubs: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2099
+ attachedVpcs: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2100
+ cloudAsn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2101
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2102
+ hub: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2103
+ lastAppliedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2104
+ lastExportedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2105
+ lastPlannedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2106
+ manageHubToHubAttachments: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2107
+ manageVpcToHubAttachments: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2108
+ plannedMonthlyCostEstimate: Schema.optional(Schema.Union([
2109
+ Schema.Struct({
2101
2110
  currency: Schema.String,
2102
2111
  currentMonthlyCost: Schema.Number,
2103
2112
  diff: Schema.Number,
@@ -2108,189 +2117,223 @@ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sche
2108
2117
  diff: "diff",
2109
2118
  proposedMonthlyCost: "proposed_monthly_cost",
2110
2119
  })),
2111
- plannedAction: Schema.Literals([
2112
- "no_op",
2113
- "create",
2114
- "update",
2115
- "replace",
2116
- "destroy",
2117
- ]),
2118
- resource: Schema.Struct({
2119
- id: Schema.String,
2120
- cloudType: Schema.Literals([
2121
- "AWS",
2122
- "AZURE",
2123
- "GOOGLE",
2124
- "CLOUDFLARE",
2120
+ Schema.Null,
2121
+ ])),
2122
+ plannedResources: Schema.optional(Schema.Union([
2123
+ Schema.Array(Schema.Struct({
2124
+ diff: Schema.Struct({
2125
+ diff: Schema.String,
2126
+ leftDescription: Schema.String,
2127
+ leftYaml: Schema.String,
2128
+ rightDescription: Schema.String,
2129
+ rightYaml: Schema.String,
2130
+ }).pipe(Schema.encodeKeys({
2131
+ diff: "diff",
2132
+ leftDescription: "left_description",
2133
+ leftYaml: "left_yaml",
2134
+ rightDescription: "right_description",
2135
+ rightYaml: "right_yaml",
2136
+ })),
2137
+ keysRequireReplace: Schema.Array(Schema.String),
2138
+ monthlyCostEstimateDiff: Schema.Struct({
2139
+ currency: Schema.String,
2140
+ currentMonthlyCost: Schema.Number,
2141
+ diff: Schema.Number,
2142
+ proposedMonthlyCost: Schema.Number,
2143
+ }).pipe(Schema.encodeKeys({
2144
+ currency: "currency",
2145
+ currentMonthlyCost: "current_monthly_cost",
2146
+ diff: "diff",
2147
+ proposedMonthlyCost: "proposed_monthly_cost",
2148
+ })),
2149
+ plannedAction: Schema.Literals([
2150
+ "no_op",
2151
+ "create",
2152
+ "update",
2153
+ "replace",
2154
+ "destroy",
2125
2155
  ]),
2126
- detail: Schema.String,
2127
- name: Schema.String,
2128
- resourceType: Schema.Literals([
2129
- "aws_customer_gateway",
2130
- "aws_egress_only_internet_gateway",
2131
- "aws_internet_gateway",
2132
- "aws_instance",
2133
- "aws_network_interface",
2134
- "aws_route",
2135
- "aws_route_table",
2136
- "aws_route_table_association",
2137
- "aws_subnet",
2138
- "aws_vpc",
2139
- "aws_vpc_ipv4_cidr_block_association",
2140
- "aws_vpn_connection",
2141
- "aws_vpn_connection_route",
2142
- "aws_vpn_gateway",
2143
- "aws_security_group",
2144
- "aws_vpc_security_group_ingress_rule",
2145
- "aws_vpc_security_group_egress_rule",
2146
- "aws_ec2_managed_prefix_list",
2147
- "aws_ec2_transit_gateway",
2148
- "aws_ec2_transit_gateway_prefix_list_reference",
2149
- "aws_ec2_transit_gateway_vpc_attachment",
2150
- "azurerm_application_security_group",
2151
- "azurerm_lb",
2152
- "azurerm_lb_backend_address_pool",
2153
- "azurerm_lb_nat_pool",
2154
- "azurerm_lb_nat_rule",
2155
- "azurerm_lb_rule",
2156
- "azurerm_local_network_gateway",
2157
- "azurerm_network_interface",
2158
- "azurerm_network_interface_application_security_group_association",
2159
- "azurerm_network_interface_backend_address_pool_association",
2160
- "azurerm_network_interface_security_group_association",
2161
- "azurerm_network_security_group",
2162
- "azurerm_public_ip",
2163
- "azurerm_route",
2164
- "azurerm_route_table",
2165
- "azurerm_subnet",
2166
- "azurerm_subnet_route_table_association",
2167
- "azurerm_virtual_machine",
2168
- "azurerm_virtual_network_gateway_connection",
2169
- "azurerm_virtual_network",
2170
- "azurerm_virtual_network_gateway",
2171
- "google_compute_network",
2172
- "google_compute_subnetwork",
2173
- "google_compute_vpn_gateway",
2174
- "google_compute_vpn_tunnel",
2175
- "google_compute_route",
2176
- "google_compute_address",
2177
- "google_compute_global_address",
2178
- "google_compute_router",
2179
- "google_compute_interconnect_attachment",
2180
- "google_compute_ha_vpn_gateway",
2181
- "google_compute_forwarding_rule",
2182
- "google_compute_network_firewall_policy",
2183
- "google_compute_network_firewall_policy_rule",
2184
- "cloudflare_static_route",
2185
- "cloudflare_ipsec_tunnel",
2156
+ resource: Schema.Struct({
2157
+ id: Schema.String,
2158
+ cloudType: Schema.Literals([
2159
+ "AWS",
2160
+ "AZURE",
2161
+ "GOOGLE",
2162
+ "CLOUDFLARE",
2163
+ ]),
2164
+ detail: Schema.String,
2165
+ name: Schema.String,
2166
+ resourceType: Schema.Literals([
2167
+ "aws_customer_gateway",
2168
+ "aws_egress_only_internet_gateway",
2169
+ "aws_internet_gateway",
2170
+ "aws_instance",
2171
+ "aws_network_interface",
2172
+ "aws_route",
2173
+ "aws_route_table",
2174
+ "aws_route_table_association",
2175
+ "aws_subnet",
2176
+ "aws_vpc",
2177
+ "aws_vpc_ipv4_cidr_block_association",
2178
+ "aws_vpn_connection",
2179
+ "aws_vpn_connection_route",
2180
+ "aws_vpn_gateway",
2181
+ "aws_security_group",
2182
+ "aws_vpc_security_group_ingress_rule",
2183
+ "aws_vpc_security_group_egress_rule",
2184
+ "aws_ec2_managed_prefix_list",
2185
+ "aws_ec2_transit_gateway",
2186
+ "aws_ec2_transit_gateway_prefix_list_reference",
2187
+ "aws_ec2_transit_gateway_vpc_attachment",
2188
+ "azurerm_application_security_group",
2189
+ "azurerm_lb",
2190
+ "azurerm_lb_backend_address_pool",
2191
+ "azurerm_lb_nat_pool",
2192
+ "azurerm_lb_nat_rule",
2193
+ "azurerm_lb_rule",
2194
+ "azurerm_local_network_gateway",
2195
+ "azurerm_network_interface",
2196
+ "azurerm_network_interface_application_security_group_association",
2197
+ "azurerm_network_interface_backend_address_pool_association",
2198
+ "azurerm_network_interface_security_group_association",
2199
+ "azurerm_network_security_group",
2200
+ "azurerm_public_ip",
2201
+ "azurerm_route",
2202
+ "azurerm_route_table",
2203
+ "azurerm_subnet",
2204
+ "azurerm_subnet_route_table_association",
2205
+ "azurerm_virtual_machine",
2206
+ "azurerm_virtual_network_gateway_connection",
2207
+ "azurerm_virtual_network",
2208
+ "azurerm_virtual_network_gateway",
2209
+ "google_compute_network",
2210
+ "google_compute_subnetwork",
2211
+ "google_compute_vpn_gateway",
2212
+ "google_compute_vpn_tunnel",
2213
+ "google_compute_route",
2214
+ "google_compute_address",
2215
+ "google_compute_global_address",
2216
+ "google_compute_router",
2217
+ "google_compute_interconnect_attachment",
2218
+ "google_compute_ha_vpn_gateway",
2219
+ "google_compute_forwarding_rule",
2220
+ "google_compute_network_firewall_policy",
2221
+ "google_compute_network_firewall_policy_rule",
2222
+ "cloudflare_static_route",
2223
+ "cloudflare_ipsec_tunnel",
2224
+ ]),
2225
+ title: Schema.String,
2226
+ }).pipe(Schema.encodeKeys({
2227
+ id: "id",
2228
+ cloudType: "cloud_type",
2229
+ detail: "detail",
2230
+ name: "name",
2231
+ resourceType: "resource_type",
2232
+ title: "title",
2233
+ })),
2234
+ }).pipe(Schema.encodeKeys({
2235
+ diff: "diff",
2236
+ keysRequireReplace: "keys_require_replace",
2237
+ monthlyCostEstimateDiff: "monthly_cost_estimate_diff",
2238
+ plannedAction: "planned_action",
2239
+ resource: "resource",
2240
+ }))),
2241
+ Schema.Null,
2242
+ ])),
2243
+ plannedResourcesUnavailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2244
+ postApplyMonthlyCostEstimate: Schema.optional(Schema.Union([
2245
+ Schema.Struct({
2246
+ currency: Schema.String,
2247
+ monthlyCost: Schema.Number,
2248
+ }).pipe(Schema.encodeKeys({
2249
+ currency: "currency",
2250
+ monthlyCost: "monthly_cost",
2251
+ })),
2252
+ Schema.Null,
2253
+ ])),
2254
+ postApplyResources: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2255
+ postApplyResourcesUnavailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2256
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2257
+ status: Schema.optional(Schema.Union([
2258
+ Schema.Struct({
2259
+ applyProgress: Schema.Struct({
2260
+ done: Schema.Number,
2261
+ total: Schema.Number,
2262
+ }),
2263
+ lifecycleState: Schema.Literals([
2264
+ "OnrampNeedsApply",
2265
+ "OnrampPendingPlan",
2266
+ "OnrampPlanning",
2267
+ "OnrampPlanFailed",
2268
+ "OnrampPendingApproval",
2269
+ "OnrampPendingApply",
2270
+ "OnrampApplying",
2271
+ "OnrampApplyFailed",
2272
+ "OnrampActive",
2273
+ "OnrampPendingDestroy",
2274
+ "OnrampDestroying",
2275
+ "OnrampDestroyFailed",
2186
2276
  ]),
2187
- title: Schema.String,
2277
+ planProgress: Schema.Struct({
2278
+ done: Schema.Number,
2279
+ total: Schema.Number,
2280
+ }),
2281
+ routes: Schema.Array(Schema.String),
2282
+ tunnels: Schema.Array(Schema.String),
2283
+ lifecycleErrors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2188
2284
  }).pipe(Schema.encodeKeys({
2189
- id: "id",
2190
- cloudType: "cloud_type",
2191
- detail: "detail",
2192
- name: "name",
2193
- resourceType: "resource_type",
2194
- title: "title",
2285
+ applyProgress: "apply_progress",
2286
+ lifecycleState: "lifecycle_state",
2287
+ planProgress: "plan_progress",
2288
+ routes: "routes",
2289
+ tunnels: "tunnels",
2290
+ lifecycleErrors: "lifecycle_errors",
2195
2291
  })),
2196
- }).pipe(Schema.encodeKeys({
2197
- diff: "diff",
2198
- keysRequireReplace: "keys_require_replace",
2199
- monthlyCostEstimateDiff: "monthly_cost_estimate_diff",
2200
- plannedAction: "planned_action",
2201
- resource: "resource",
2202
- }))),
2203
- Schema.Null,
2204
- ])),
2205
- plannedResourcesUnavailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2206
- postApplyMonthlyCostEstimate: Schema.optional(Schema.Union([
2207
- Schema.Struct({
2208
- currency: Schema.String,
2209
- monthlyCost: Schema.Number,
2210
- }).pipe(Schema.encodeKeys({
2211
- currency: "currency",
2212
- monthlyCost: "monthly_cost",
2213
- })),
2214
- Schema.Null,
2215
- ])),
2216
- postApplyResources: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2217
- postApplyResourcesUnavailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2218
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2219
- status: Schema.optional(Schema.Union([
2220
- Schema.Struct({
2221
- applyProgress: Schema.Struct({
2222
- done: Schema.Number,
2223
- total: Schema.Number,
2224
- }),
2225
- lifecycleState: Schema.Literals([
2226
- "OnrampNeedsApply",
2227
- "OnrampPendingPlan",
2228
- "OnrampPlanning",
2229
- "OnrampPlanFailed",
2230
- "OnrampPendingApproval",
2231
- "OnrampPendingApply",
2232
- "OnrampApplying",
2233
- "OnrampApplyFailed",
2234
- "OnrampActive",
2235
- "OnrampPendingDestroy",
2236
- "OnrampDestroying",
2237
- "OnrampDestroyFailed",
2238
- ]),
2239
- planProgress: Schema.Struct({
2240
- done: Schema.Number,
2241
- total: Schema.Number,
2242
- }),
2243
- routes: Schema.Array(Schema.String),
2244
- tunnels: Schema.Array(Schema.String),
2245
- lifecycleErrors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2246
- }).pipe(Schema.encodeKeys({
2247
- applyProgress: "apply_progress",
2248
- lifecycleState: "lifecycle_state",
2249
- planProgress: "plan_progress",
2250
- routes: "routes",
2251
- tunnels: "tunnels",
2252
- lifecycleErrors: "lifecycle_errors",
2253
- })),
2254
- Schema.Null,
2255
- ])),
2256
- vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2257
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2258
- vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2259
- }).pipe(Schema.encodeKeys({
2260
- id: "id",
2261
- cloudType: "cloud_type",
2262
- dynamicRouting: "dynamic_routing",
2263
- installRoutesInCloud: "install_routes_in_cloud",
2264
- installRoutesInMagicWan: "install_routes_in_magic_wan",
2265
- name: "name",
2266
- type: "type",
2267
- updatedAt: "updated_at",
2268
- attachedHubs: "attached_hubs",
2269
- attachedVpcs: "attached_vpcs",
2270
- cloudAsn: "cloud_asn",
2271
- description: "description",
2272
- hub: "hub",
2273
- lastAppliedAt: "last_applied_at",
2274
- lastExportedAt: "last_exported_at",
2275
- lastPlannedAt: "last_planned_at",
2276
- manageHubToHubAttachments: "manage_hub_to_hub_attachments",
2277
- manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
2278
- plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
2279
- plannedResources: "planned_resources",
2280
- plannedResourcesUnavailable: "planned_resources_unavailable",
2281
- postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
2282
- postApplyResources: "post_apply_resources",
2283
- postApplyResourcesUnavailable: "post_apply_resources_unavailable",
2284
- region: "region",
2285
- status: "status",
2286
- vpc: "vpc",
2287
- vpcsById: "vpcs_by_id",
2288
- vpcsByIdUnavailable: "vpcs_by_id_unavailable",
2289
- })));
2290
- export const listOnRamps = API.make(() => ({
2292
+ Schema.Null,
2293
+ ])),
2294
+ vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2295
+ vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2296
+ vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2297
+ }).pipe(Schema.encodeKeys({
2298
+ id: "id",
2299
+ cloudType: "cloud_type",
2300
+ dynamicRouting: "dynamic_routing",
2301
+ installRoutesInCloud: "install_routes_in_cloud",
2302
+ installRoutesInMagicWan: "install_routes_in_magic_wan",
2303
+ name: "name",
2304
+ type: "type",
2305
+ updatedAt: "updated_at",
2306
+ attachedHubs: "attached_hubs",
2307
+ attachedVpcs: "attached_vpcs",
2308
+ cloudAsn: "cloud_asn",
2309
+ description: "description",
2310
+ hub: "hub",
2311
+ lastAppliedAt: "last_applied_at",
2312
+ lastExportedAt: "last_exported_at",
2313
+ lastPlannedAt: "last_planned_at",
2314
+ manageHubToHubAttachments: "manage_hub_to_hub_attachments",
2315
+ manageVpcToHubAttachments: "manage_vpc_to_hub_attachments",
2316
+ plannedMonthlyCostEstimate: "planned_monthly_cost_estimate",
2317
+ plannedResources: "planned_resources",
2318
+ plannedResourcesUnavailable: "planned_resources_unavailable",
2319
+ postApplyMonthlyCostEstimate: "post_apply_monthly_cost_estimate",
2320
+ postApplyResources: "post_apply_resources",
2321
+ postApplyResourcesUnavailable: "post_apply_resources_unavailable",
2322
+ region: "region",
2323
+ status: "status",
2324
+ vpc: "vpc",
2325
+ vpcsById: "vpcs_by_id",
2326
+ vpcsByIdUnavailable: "vpcs_by_id_unavailable",
2327
+ }))),
2328
+ });
2329
+ export const listOnRamps = API.makePaginated(() => ({
2291
2330
  input: ListOnRampsRequest,
2292
2331
  output: ListOnRampsResponse,
2293
2332
  errors: [],
2333
+ pagination: {
2334
+ mode: "single",
2335
+ items: "result",
2336
+ },
2294
2337
  }));
2295
2338
  export const CreateOnRampRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2296
2339
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -2540,7 +2583,8 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2540
2583
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2541
2584
  vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2542
2585
  vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2543
- }).pipe(Schema.encodeKeys({
2586
+ })
2587
+ .pipe(Schema.encodeKeys({
2544
2588
  id: "id",
2545
2589
  cloudType: "cloud_type",
2546
2590
  dynamicRouting: "dynamic_routing",
@@ -2570,7 +2614,8 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2570
2614
  vpc: "vpc",
2571
2615
  vpcsById: "vpcs_by_id",
2572
2616
  vpcsByIdUnavailable: "vpcs_by_id_unavailable",
2573
- }));
2617
+ }))
2618
+ .pipe(T.ResponsePath("result"));
2574
2619
  export const createOnRamp = API.make(() => ({
2575
2620
  input: CreateOnRampRequest,
2576
2621
  output: CreateOnRampResponse,
@@ -2810,7 +2855,8 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2810
2855
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2811
2856
  vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2812
2857
  vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2813
- }).pipe(Schema.encodeKeys({
2858
+ })
2859
+ .pipe(Schema.encodeKeys({
2814
2860
  id: "id",
2815
2861
  cloudType: "cloud_type",
2816
2862
  dynamicRouting: "dynamic_routing",
@@ -2840,7 +2886,8 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2840
2886
  vpc: "vpc",
2841
2887
  vpcsById: "vpcs_by_id",
2842
2888
  vpcsByIdUnavailable: "vpcs_by_id_unavailable",
2843
- }));
2889
+ }))
2890
+ .pipe(T.ResponsePath("result"));
2844
2891
  export const updateOnRamp = API.make(() => ({
2845
2892
  input: UpdateOnRampRequest,
2846
2893
  output: UpdateOnRampResponse,
@@ -3080,7 +3127,8 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3080
3127
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3081
3128
  vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
3082
3129
  vpcsByIdUnavailable: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3083
- }).pipe(Schema.encodeKeys({
3130
+ })
3131
+ .pipe(Schema.encodeKeys({
3084
3132
  id: "id",
3085
3133
  cloudType: "cloud_type",
3086
3134
  dynamicRouting: "dynamic_routing",
@@ -3110,7 +3158,8 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3110
3158
  vpc: "vpc",
3111
3159
  vpcsById: "vpcs_by_id",
3112
3160
  vpcsByIdUnavailable: "vpcs_by_id_unavailable",
3113
- }));
3161
+ }))
3162
+ .pipe(T.ResponsePath("result"));
3114
3163
  export const patchOnRamp = API.make(() => ({
3115
3164
  input: PatchOnRampRequest,
3116
3165
  output: PatchOnRampResponse,
@@ -3127,7 +3176,7 @@ export const DeleteOnRampRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3127
3176
  }));
3128
3177
  export const DeleteOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3129
3178
  id: Schema.String,
3130
- });
3179
+ }).pipe(T.ResponsePath("result"));
3131
3180
  export const deleteOnRamp = API.make(() => ({
3132
3181
  input: DeleteOnRampRequest,
3133
3182
  output: DeleteOnRampResponse,
@@ -3959,7 +4008,7 @@ export const ListOnRampAddressSpacesRequest =
3959
4008
  export const ListOnRampAddressSpacesResponse =
3960
4009
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3961
4010
  prefixes: Schema.Array(Schema.String),
3962
- });
4011
+ }).pipe(T.ResponsePath("result"));
3963
4012
  export const listOnRampAddressSpaces = API.make(() => ({
3964
4013
  input: ListOnRampAddressSpacesRequest,
3965
4014
  output: ListOnRampAddressSpacesResponse,
@@ -3976,7 +4025,7 @@ export const PutOnRampAddressSpaceRequest =
3976
4025
  export const PutOnRampAddressSpaceResponse =
3977
4026
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3978
4027
  prefixes: Schema.Array(Schema.String),
3979
- });
4028
+ }).pipe(T.ResponsePath("result"));
3980
4029
  export const putOnRampAddressSpace = API.make(() => ({
3981
4030
  input: PutOnRampAddressSpaceRequest,
3982
4031
  output: PutOnRampAddressSpaceResponse,
@@ -3993,7 +4042,7 @@ export const PatchOnRampAddressSpaceRequest =
3993
4042
  export const PatchOnRampAddressSpaceResponse =
3994
4043
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3995
4044
  prefixes: Schema.Array(Schema.String),
3996
- });
4045
+ }).pipe(T.ResponsePath("result"));
3997
4046
  export const patchOnRampAddressSpace = API.make(() => ({
3998
4047
  input: PatchOnRampAddressSpaceRequest,
3999
4048
  output: PatchOnRampAddressSpaceResponse,
@@ -4008,7 +4057,7 @@ export const PolicyPreviewResourceRequest =
4008
4057
  path: "/accounts/{account_id}/magic/cloud/resources/policy-preview",
4009
4058
  }));
4010
4059
  export const PolicyPreviewResourceResponse =
4011
- /*@__PURE__*/ /*#__PURE__*/ Schema.String;
4060
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
4012
4061
  export const policyPreviewResource = API.make(() => ({
4013
4062
  input: PolicyPreviewResourceRequest,
4014
4063
  output: PolicyPreviewResourceResponse,
@@ -4562,7 +4611,8 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4562
4611
  }))),
4563
4612
  Schema.Null,
4564
4613
  ])),
4565
- }).pipe(Schema.encodeKeys({
4614
+ })
4615
+ .pipe(Schema.encodeKeys({
4566
4616
  id: "id",
4567
4617
  accountId: "account_id",
4568
4618
  cloudType: "cloud_type",
@@ -4584,7 +4634,8 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4584
4634
  updatedAt: "updated_at",
4585
4635
  url: "url",
4586
4636
  managedBy: "managed_by",
4587
- }));
4637
+ }))
4638
+ .pipe(T.ResponsePath("result"));
4588
4639
  export const getResource = API.make(() => ({
4589
4640
  input: GetResourceRequest,
4590
4641
  output: GetResourceResponse,
@@ -4665,419 +4716,454 @@ export const ListResourcesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4665
4716
  method: "GET",
4666
4717
  path: "/accounts/{account_id}/magic/cloud/resources",
4667
4718
  }));
4668
- export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
4669
- id: Schema.String,
4670
- accountId: Schema.String,
4671
- cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
4672
- config: Schema.Struct({}),
4673
- deploymentProvider: Schema.String,
4674
- managed: Schema.Boolean,
4675
- monthlyCostEstimate: Schema.Struct({
4676
- currency: Schema.String,
4677
- monthlyCost: Schema.Number,
4678
- }).pipe(Schema.encodeKeys({ currency: "currency", monthlyCost: "monthly_cost" })),
4679
- name: Schema.String,
4680
- nativeId: Schema.String,
4681
- observations: Schema.Struct({}),
4682
- providerIds: Schema.Array(Schema.String),
4683
- providerNamesById: Schema.Struct({}),
4684
- region: Schema.String,
4685
- resourceGroup: Schema.String,
4686
- resourceType: Schema.Literals([
4687
- "aws_customer_gateway",
4688
- "aws_egress_only_internet_gateway",
4689
- "aws_internet_gateway",
4690
- "aws_instance",
4691
- "aws_network_interface",
4692
- "aws_route",
4693
- "aws_route_table",
4694
- "aws_route_table_association",
4695
- "aws_subnet",
4696
- "aws_vpc",
4697
- "aws_vpc_ipv4_cidr_block_association",
4698
- "aws_vpn_connection",
4699
- "aws_vpn_connection_route",
4700
- "aws_vpn_gateway",
4701
- "aws_security_group",
4702
- "aws_vpc_security_group_ingress_rule",
4703
- "aws_vpc_security_group_egress_rule",
4704
- "aws_ec2_managed_prefix_list",
4705
- "aws_ec2_transit_gateway",
4706
- "aws_ec2_transit_gateway_prefix_list_reference",
4707
- "aws_ec2_transit_gateway_vpc_attachment",
4708
- "azurerm_application_security_group",
4709
- "azurerm_lb",
4710
- "azurerm_lb_backend_address_pool",
4711
- "azurerm_lb_nat_pool",
4712
- "azurerm_lb_nat_rule",
4713
- "azurerm_lb_rule",
4714
- "azurerm_local_network_gateway",
4715
- "azurerm_network_interface",
4716
- "azurerm_network_interface_application_security_group_association",
4717
- "azurerm_network_interface_backend_address_pool_association",
4718
- "azurerm_network_interface_security_group_association",
4719
- "azurerm_network_security_group",
4720
- "azurerm_public_ip",
4721
- "azurerm_route",
4722
- "azurerm_route_table",
4723
- "azurerm_subnet",
4724
- "azurerm_subnet_route_table_association",
4725
- "azurerm_virtual_machine",
4726
- "azurerm_virtual_network_gateway_connection",
4727
- "azurerm_virtual_network",
4728
- "azurerm_virtual_network_gateway",
4729
- "google_compute_network",
4730
- "google_compute_subnetwork",
4731
- "google_compute_vpn_gateway",
4732
- "google_compute_vpn_tunnel",
4733
- "google_compute_route",
4734
- "google_compute_address",
4735
- "google_compute_global_address",
4736
- "google_compute_router",
4737
- "google_compute_interconnect_attachment",
4738
- "google_compute_ha_vpn_gateway",
4739
- "google_compute_forwarding_rule",
4740
- "google_compute_network_firewall_policy",
4741
- "google_compute_network_firewall_policy_rule",
4742
- "cloudflare_static_route",
4743
- "cloudflare_ipsec_tunnel",
4744
- ]),
4745
- sections: Schema.Array(Schema.Struct({
4746
- hiddenItems: Schema.Array(Schema.Struct({
4747
- helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4748
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4749
- value: Schema.optional(Schema.Union([
4750
- Schema.Union([
4751
- Schema.Struct({
4752
- itemType: Schema.String,
4753
- string: Schema.String,
4754
- }).pipe(Schema.encodeKeys({
4755
- itemType: "item_type",
4756
- string: "string",
4757
- })),
4758
- Schema.Struct({
4759
- itemType: Schema.String,
4760
- yaml: Schema.String,
4761
- }).pipe(Schema.encodeKeys({ itemType: "item_type", yaml: "yaml" })),
4762
- Schema.Struct({
4763
- itemType: Schema.String,
4764
- yamlDiff: Schema.Struct({
4765
- diff: Schema.String,
4766
- leftDescription: Schema.String,
4767
- leftYaml: Schema.String,
4768
- rightDescription: Schema.String,
4769
- rightYaml: Schema.String,
4719
+ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4720
+ result: Schema.Array(Schema.Struct({
4721
+ id: Schema.String,
4722
+ accountId: Schema.String,
4723
+ cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
4724
+ config: Schema.Struct({}),
4725
+ deploymentProvider: Schema.String,
4726
+ managed: Schema.Boolean,
4727
+ monthlyCostEstimate: Schema.Struct({
4728
+ currency: Schema.String,
4729
+ monthlyCost: Schema.Number,
4730
+ }).pipe(Schema.encodeKeys({
4731
+ currency: "currency",
4732
+ monthlyCost: "monthly_cost",
4733
+ })),
4734
+ name: Schema.String,
4735
+ nativeId: Schema.String,
4736
+ observations: Schema.Struct({}),
4737
+ providerIds: Schema.Array(Schema.String),
4738
+ providerNamesById: Schema.Struct({}),
4739
+ region: Schema.String,
4740
+ resourceGroup: Schema.String,
4741
+ resourceType: Schema.Literals([
4742
+ "aws_customer_gateway",
4743
+ "aws_egress_only_internet_gateway",
4744
+ "aws_internet_gateway",
4745
+ "aws_instance",
4746
+ "aws_network_interface",
4747
+ "aws_route",
4748
+ "aws_route_table",
4749
+ "aws_route_table_association",
4750
+ "aws_subnet",
4751
+ "aws_vpc",
4752
+ "aws_vpc_ipv4_cidr_block_association",
4753
+ "aws_vpn_connection",
4754
+ "aws_vpn_connection_route",
4755
+ "aws_vpn_gateway",
4756
+ "aws_security_group",
4757
+ "aws_vpc_security_group_ingress_rule",
4758
+ "aws_vpc_security_group_egress_rule",
4759
+ "aws_ec2_managed_prefix_list",
4760
+ "aws_ec2_transit_gateway",
4761
+ "aws_ec2_transit_gateway_prefix_list_reference",
4762
+ "aws_ec2_transit_gateway_vpc_attachment",
4763
+ "azurerm_application_security_group",
4764
+ "azurerm_lb",
4765
+ "azurerm_lb_backend_address_pool",
4766
+ "azurerm_lb_nat_pool",
4767
+ "azurerm_lb_nat_rule",
4768
+ "azurerm_lb_rule",
4769
+ "azurerm_local_network_gateway",
4770
+ "azurerm_network_interface",
4771
+ "azurerm_network_interface_application_security_group_association",
4772
+ "azurerm_network_interface_backend_address_pool_association",
4773
+ "azurerm_network_interface_security_group_association",
4774
+ "azurerm_network_security_group",
4775
+ "azurerm_public_ip",
4776
+ "azurerm_route",
4777
+ "azurerm_route_table",
4778
+ "azurerm_subnet",
4779
+ "azurerm_subnet_route_table_association",
4780
+ "azurerm_virtual_machine",
4781
+ "azurerm_virtual_network_gateway_connection",
4782
+ "azurerm_virtual_network",
4783
+ "azurerm_virtual_network_gateway",
4784
+ "google_compute_network",
4785
+ "google_compute_subnetwork",
4786
+ "google_compute_vpn_gateway",
4787
+ "google_compute_vpn_tunnel",
4788
+ "google_compute_route",
4789
+ "google_compute_address",
4790
+ "google_compute_global_address",
4791
+ "google_compute_router",
4792
+ "google_compute_interconnect_attachment",
4793
+ "google_compute_ha_vpn_gateway",
4794
+ "google_compute_forwarding_rule",
4795
+ "google_compute_network_firewall_policy",
4796
+ "google_compute_network_firewall_policy_rule",
4797
+ "cloudflare_static_route",
4798
+ "cloudflare_ipsec_tunnel",
4799
+ ]),
4800
+ sections: Schema.Array(Schema.Struct({
4801
+ hiddenItems: Schema.Array(Schema.Struct({
4802
+ helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4803
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4804
+ value: Schema.optional(Schema.Union([
4805
+ Schema.Union([
4806
+ Schema.Struct({
4807
+ itemType: Schema.String,
4808
+ string: Schema.String,
4770
4809
  }).pipe(Schema.encodeKeys({
4771
- diff: "diff",
4772
- leftDescription: "left_description",
4773
- leftYaml: "left_yaml",
4774
- rightDescription: "right_description",
4775
- rightYaml: "right_yaml",
4810
+ itemType: "item_type",
4811
+ string: "string",
4776
4812
  })),
4777
- }).pipe(Schema.encodeKeys({
4778
- itemType: "item_type",
4779
- yamlDiff: "yaml_diff",
4780
- })),
4781
- Schema.Struct({
4782
- itemType: Schema.String,
4783
- resourcePreview: Schema.Struct({
4784
- id: Schema.String,
4785
- cloudType: Schema.Literals([
4786
- "AWS",
4787
- "AZURE",
4788
- "GOOGLE",
4789
- "CLOUDFLARE",
4790
- ]),
4791
- detail: Schema.String,
4792
- name: Schema.String,
4793
- resourceType: Schema.Literals([
4794
- "aws_customer_gateway",
4795
- "aws_egress_only_internet_gateway",
4796
- "aws_internet_gateway",
4797
- "aws_instance",
4798
- "aws_network_interface",
4799
- "aws_route",
4800
- "aws_route_table",
4801
- "aws_route_table_association",
4802
- "aws_subnet",
4803
- "aws_vpc",
4804
- "aws_vpc_ipv4_cidr_block_association",
4805
- "aws_vpn_connection",
4806
- "aws_vpn_connection_route",
4807
- "aws_vpn_gateway",
4808
- "aws_security_group",
4809
- "aws_vpc_security_group_ingress_rule",
4810
- "aws_vpc_security_group_egress_rule",
4811
- "aws_ec2_managed_prefix_list",
4812
- "aws_ec2_transit_gateway",
4813
- "aws_ec2_transit_gateway_prefix_list_reference",
4814
- "aws_ec2_transit_gateway_vpc_attachment",
4815
- "azurerm_application_security_group",
4816
- "azurerm_lb",
4817
- "azurerm_lb_backend_address_pool",
4818
- "azurerm_lb_nat_pool",
4819
- "azurerm_lb_nat_rule",
4820
- "azurerm_lb_rule",
4821
- "azurerm_local_network_gateway",
4822
- "azurerm_network_interface",
4823
- "azurerm_network_interface_application_security_group_association",
4824
- "azurerm_network_interface_backend_address_pool_association",
4825
- "azurerm_network_interface_security_group_association",
4826
- "azurerm_network_security_group",
4827
- "azurerm_public_ip",
4828
- "azurerm_route",
4829
- "azurerm_route_table",
4830
- "azurerm_subnet",
4831
- "azurerm_subnet_route_table_association",
4832
- "azurerm_virtual_machine",
4833
- "azurerm_virtual_network_gateway_connection",
4834
- "azurerm_virtual_network",
4835
- "azurerm_virtual_network_gateway",
4836
- "google_compute_network",
4837
- "google_compute_subnetwork",
4838
- "google_compute_vpn_gateway",
4839
- "google_compute_vpn_tunnel",
4840
- "google_compute_route",
4841
- "google_compute_address",
4842
- "google_compute_global_address",
4843
- "google_compute_router",
4844
- "google_compute_interconnect_attachment",
4845
- "google_compute_ha_vpn_gateway",
4846
- "google_compute_forwarding_rule",
4847
- "google_compute_network_firewall_policy",
4848
- "google_compute_network_firewall_policy_rule",
4849
- "cloudflare_static_route",
4850
- "cloudflare_ipsec_tunnel",
4851
- ]),
4852
- title: Schema.String,
4813
+ Schema.Struct({
4814
+ itemType: Schema.String,
4815
+ yaml: Schema.String,
4853
4816
  }).pipe(Schema.encodeKeys({
4854
- id: "id",
4855
- cloudType: "cloud_type",
4856
- detail: "detail",
4857
- name: "name",
4858
- resourceType: "resource_type",
4859
- title: "title",
4817
+ itemType: "item_type",
4818
+ yaml: "yaml",
4860
4819
  })),
4861
- }).pipe(Schema.encodeKeys({
4862
- itemType: "item_type",
4863
- resourcePreview: "resource_preview",
4864
- })),
4865
- Schema.Struct({
4866
- itemType: Schema.String,
4867
- list: Schema.Array(Schema.Union([
4868
- Schema.Struct({
4869
- itemType: Schema.Unknown,
4870
- string: Schema.Unknown,
4820
+ Schema.Struct({
4821
+ itemType: Schema.String,
4822
+ yamlDiff: Schema.Struct({
4823
+ diff: Schema.String,
4824
+ leftDescription: Schema.String,
4825
+ leftYaml: Schema.String,
4826
+ rightDescription: Schema.String,
4827
+ rightYaml: Schema.String,
4871
4828
  }).pipe(Schema.encodeKeys({
4872
- itemType: "item_type",
4873
- string: "string",
4829
+ diff: "diff",
4830
+ leftDescription: "left_description",
4831
+ leftYaml: "left_yaml",
4832
+ rightDescription: "right_description",
4833
+ rightYaml: "right_yaml",
4874
4834
  })),
4875
- Schema.Struct({
4876
- itemType: Schema.Unknown,
4877
- resourcePreview: Schema.Unknown,
4835
+ }).pipe(Schema.encodeKeys({
4836
+ itemType: "item_type",
4837
+ yamlDiff: "yaml_diff",
4838
+ })),
4839
+ Schema.Struct({
4840
+ itemType: Schema.String,
4841
+ resourcePreview: Schema.Struct({
4842
+ id: Schema.String,
4843
+ cloudType: Schema.Literals([
4844
+ "AWS",
4845
+ "AZURE",
4846
+ "GOOGLE",
4847
+ "CLOUDFLARE",
4848
+ ]),
4849
+ detail: Schema.String,
4850
+ name: Schema.String,
4851
+ resourceType: Schema.Literals([
4852
+ "aws_customer_gateway",
4853
+ "aws_egress_only_internet_gateway",
4854
+ "aws_internet_gateway",
4855
+ "aws_instance",
4856
+ "aws_network_interface",
4857
+ "aws_route",
4858
+ "aws_route_table",
4859
+ "aws_route_table_association",
4860
+ "aws_subnet",
4861
+ "aws_vpc",
4862
+ "aws_vpc_ipv4_cidr_block_association",
4863
+ "aws_vpn_connection",
4864
+ "aws_vpn_connection_route",
4865
+ "aws_vpn_gateway",
4866
+ "aws_security_group",
4867
+ "aws_vpc_security_group_ingress_rule",
4868
+ "aws_vpc_security_group_egress_rule",
4869
+ "aws_ec2_managed_prefix_list",
4870
+ "aws_ec2_transit_gateway",
4871
+ "aws_ec2_transit_gateway_prefix_list_reference",
4872
+ "aws_ec2_transit_gateway_vpc_attachment",
4873
+ "azurerm_application_security_group",
4874
+ "azurerm_lb",
4875
+ "azurerm_lb_backend_address_pool",
4876
+ "azurerm_lb_nat_pool",
4877
+ "azurerm_lb_nat_rule",
4878
+ "azurerm_lb_rule",
4879
+ "azurerm_local_network_gateway",
4880
+ "azurerm_network_interface",
4881
+ "azurerm_network_interface_application_security_group_association",
4882
+ "azurerm_network_interface_backend_address_pool_association",
4883
+ "azurerm_network_interface_security_group_association",
4884
+ "azurerm_network_security_group",
4885
+ "azurerm_public_ip",
4886
+ "azurerm_route",
4887
+ "azurerm_route_table",
4888
+ "azurerm_subnet",
4889
+ "azurerm_subnet_route_table_association",
4890
+ "azurerm_virtual_machine",
4891
+ "azurerm_virtual_network_gateway_connection",
4892
+ "azurerm_virtual_network",
4893
+ "azurerm_virtual_network_gateway",
4894
+ "google_compute_network",
4895
+ "google_compute_subnetwork",
4896
+ "google_compute_vpn_gateway",
4897
+ "google_compute_vpn_tunnel",
4898
+ "google_compute_route",
4899
+ "google_compute_address",
4900
+ "google_compute_global_address",
4901
+ "google_compute_router",
4902
+ "google_compute_interconnect_attachment",
4903
+ "google_compute_ha_vpn_gateway",
4904
+ "google_compute_forwarding_rule",
4905
+ "google_compute_network_firewall_policy",
4906
+ "google_compute_network_firewall_policy_rule",
4907
+ "cloudflare_static_route",
4908
+ "cloudflare_ipsec_tunnel",
4909
+ ]),
4910
+ title: Schema.String,
4878
4911
  }).pipe(Schema.encodeKeys({
4879
- itemType: "item_type",
4880
- resourcePreview: "resource_preview",
4912
+ id: "id",
4913
+ cloudType: "cloud_type",
4914
+ detail: "detail",
4915
+ name: "name",
4916
+ resourceType: "resource_type",
4917
+ title: "title",
4881
4918
  })),
4882
- ])),
4883
- }).pipe(Schema.encodeKeys({ itemType: "item_type", list: "list" })),
4884
- ]),
4885
- Schema.Null,
4886
- ])),
4887
- })),
4888
- name: Schema.String,
4889
- visibleItems: Schema.Array(Schema.Struct({
4890
- helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4891
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4892
- value: Schema.optional(Schema.Union([
4893
- Schema.Union([
4894
- Schema.Struct({
4895
- itemType: Schema.String,
4896
- string: Schema.String,
4897
- }).pipe(Schema.encodeKeys({
4898
- itemType: "item_type",
4899
- string: "string",
4900
- })),
4901
- Schema.Struct({
4902
- itemType: Schema.String,
4903
- yaml: Schema.String,
4904
- }).pipe(Schema.encodeKeys({ itemType: "item_type", yaml: "yaml" })),
4905
- Schema.Struct({
4906
- itemType: Schema.String,
4907
- yamlDiff: Schema.Struct({
4908
- diff: Schema.String,
4909
- leftDescription: Schema.String,
4910
- leftYaml: Schema.String,
4911
- rightDescription: Schema.String,
4912
- rightYaml: Schema.String,
4913
4919
  }).pipe(Schema.encodeKeys({
4914
- diff: "diff",
4915
- leftDescription: "left_description",
4916
- leftYaml: "left_yaml",
4917
- rightDescription: "right_description",
4918
- rightYaml: "right_yaml",
4920
+ itemType: "item_type",
4921
+ resourcePreview: "resource_preview",
4919
4922
  })),
4920
- }).pipe(Schema.encodeKeys({
4921
- itemType: "item_type",
4922
- yamlDiff: "yaml_diff",
4923
- })),
4924
- Schema.Struct({
4925
- itemType: Schema.String,
4926
- resourcePreview: Schema.Struct({
4927
- id: Schema.String,
4928
- cloudType: Schema.Literals([
4929
- "AWS",
4930
- "AZURE",
4931
- "GOOGLE",
4932
- "CLOUDFLARE",
4933
- ]),
4934
- detail: Schema.String,
4935
- name: Schema.String,
4936
- resourceType: Schema.Literals([
4937
- "aws_customer_gateway",
4938
- "aws_egress_only_internet_gateway",
4939
- "aws_internet_gateway",
4940
- "aws_instance",
4941
- "aws_network_interface",
4942
- "aws_route",
4943
- "aws_route_table",
4944
- "aws_route_table_association",
4945
- "aws_subnet",
4946
- "aws_vpc",
4947
- "aws_vpc_ipv4_cidr_block_association",
4948
- "aws_vpn_connection",
4949
- "aws_vpn_connection_route",
4950
- "aws_vpn_gateway",
4951
- "aws_security_group",
4952
- "aws_vpc_security_group_ingress_rule",
4953
- "aws_vpc_security_group_egress_rule",
4954
- "aws_ec2_managed_prefix_list",
4955
- "aws_ec2_transit_gateway",
4956
- "aws_ec2_transit_gateway_prefix_list_reference",
4957
- "aws_ec2_transit_gateway_vpc_attachment",
4958
- "azurerm_application_security_group",
4959
- "azurerm_lb",
4960
- "azurerm_lb_backend_address_pool",
4961
- "azurerm_lb_nat_pool",
4962
- "azurerm_lb_nat_rule",
4963
- "azurerm_lb_rule",
4964
- "azurerm_local_network_gateway",
4965
- "azurerm_network_interface",
4966
- "azurerm_network_interface_application_security_group_association",
4967
- "azurerm_network_interface_backend_address_pool_association",
4968
- "azurerm_network_interface_security_group_association",
4969
- "azurerm_network_security_group",
4970
- "azurerm_public_ip",
4971
- "azurerm_route",
4972
- "azurerm_route_table",
4973
- "azurerm_subnet",
4974
- "azurerm_subnet_route_table_association",
4975
- "azurerm_virtual_machine",
4976
- "azurerm_virtual_network_gateway_connection",
4977
- "azurerm_virtual_network",
4978
- "azurerm_virtual_network_gateway",
4979
- "google_compute_network",
4980
- "google_compute_subnetwork",
4981
- "google_compute_vpn_gateway",
4982
- "google_compute_vpn_tunnel",
4983
- "google_compute_route",
4984
- "google_compute_address",
4985
- "google_compute_global_address",
4986
- "google_compute_router",
4987
- "google_compute_interconnect_attachment",
4988
- "google_compute_ha_vpn_gateway",
4989
- "google_compute_forwarding_rule",
4990
- "google_compute_network_firewall_policy",
4991
- "google_compute_network_firewall_policy_rule",
4992
- "cloudflare_static_route",
4993
- "cloudflare_ipsec_tunnel",
4994
- ]),
4995
- title: Schema.String,
4923
+ Schema.Struct({
4924
+ itemType: Schema.String,
4925
+ list: Schema.Array(Schema.Union([
4926
+ Schema.Struct({
4927
+ itemType: Schema.Unknown,
4928
+ string: Schema.Unknown,
4929
+ }).pipe(Schema.encodeKeys({
4930
+ itemType: "item_type",
4931
+ string: "string",
4932
+ })),
4933
+ Schema.Struct({
4934
+ itemType: Schema.Unknown,
4935
+ resourcePreview: Schema.Unknown,
4936
+ }).pipe(Schema.encodeKeys({
4937
+ itemType: "item_type",
4938
+ resourcePreview: "resource_preview",
4939
+ })),
4940
+ ])),
4996
4941
  }).pipe(Schema.encodeKeys({
4997
- id: "id",
4998
- cloudType: "cloud_type",
4999
- detail: "detail",
5000
- name: "name",
5001
- resourceType: "resource_type",
5002
- title: "title",
4942
+ itemType: "item_type",
4943
+ list: "list",
5003
4944
  })),
5004
- }).pipe(Schema.encodeKeys({
5005
- itemType: "item_type",
5006
- resourcePreview: "resource_preview",
5007
- })),
5008
- Schema.Struct({
5009
- itemType: Schema.String,
5010
- list: Schema.Array(Schema.Union([
5011
- Schema.Struct({
5012
- itemType: Schema.Unknown,
5013
- string: Schema.Unknown,
4945
+ ]),
4946
+ Schema.Null,
4947
+ ])),
4948
+ })),
4949
+ name: Schema.String,
4950
+ visibleItems: Schema.Array(Schema.Struct({
4951
+ helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4952
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4953
+ value: Schema.optional(Schema.Union([
4954
+ Schema.Union([
4955
+ Schema.Struct({
4956
+ itemType: Schema.String,
4957
+ string: Schema.String,
4958
+ }).pipe(Schema.encodeKeys({
4959
+ itemType: "item_type",
4960
+ string: "string",
4961
+ })),
4962
+ Schema.Struct({
4963
+ itemType: Schema.String,
4964
+ yaml: Schema.String,
4965
+ }).pipe(Schema.encodeKeys({
4966
+ itemType: "item_type",
4967
+ yaml: "yaml",
4968
+ })),
4969
+ Schema.Struct({
4970
+ itemType: Schema.String,
4971
+ yamlDiff: Schema.Struct({
4972
+ diff: Schema.String,
4973
+ leftDescription: Schema.String,
4974
+ leftYaml: Schema.String,
4975
+ rightDescription: Schema.String,
4976
+ rightYaml: Schema.String,
5014
4977
  }).pipe(Schema.encodeKeys({
5015
- itemType: "item_type",
5016
- string: "string",
4978
+ diff: "diff",
4979
+ leftDescription: "left_description",
4980
+ leftYaml: "left_yaml",
4981
+ rightDescription: "right_description",
4982
+ rightYaml: "right_yaml",
5017
4983
  })),
5018
- Schema.Struct({
5019
- itemType: Schema.Unknown,
5020
- resourcePreview: Schema.Unknown,
4984
+ }).pipe(Schema.encodeKeys({
4985
+ itemType: "item_type",
4986
+ yamlDiff: "yaml_diff",
4987
+ })),
4988
+ Schema.Struct({
4989
+ itemType: Schema.String,
4990
+ resourcePreview: Schema.Struct({
4991
+ id: Schema.String,
4992
+ cloudType: Schema.Literals([
4993
+ "AWS",
4994
+ "AZURE",
4995
+ "GOOGLE",
4996
+ "CLOUDFLARE",
4997
+ ]),
4998
+ detail: Schema.String,
4999
+ name: Schema.String,
5000
+ resourceType: Schema.Literals([
5001
+ "aws_customer_gateway",
5002
+ "aws_egress_only_internet_gateway",
5003
+ "aws_internet_gateway",
5004
+ "aws_instance",
5005
+ "aws_network_interface",
5006
+ "aws_route",
5007
+ "aws_route_table",
5008
+ "aws_route_table_association",
5009
+ "aws_subnet",
5010
+ "aws_vpc",
5011
+ "aws_vpc_ipv4_cidr_block_association",
5012
+ "aws_vpn_connection",
5013
+ "aws_vpn_connection_route",
5014
+ "aws_vpn_gateway",
5015
+ "aws_security_group",
5016
+ "aws_vpc_security_group_ingress_rule",
5017
+ "aws_vpc_security_group_egress_rule",
5018
+ "aws_ec2_managed_prefix_list",
5019
+ "aws_ec2_transit_gateway",
5020
+ "aws_ec2_transit_gateway_prefix_list_reference",
5021
+ "aws_ec2_transit_gateway_vpc_attachment",
5022
+ "azurerm_application_security_group",
5023
+ "azurerm_lb",
5024
+ "azurerm_lb_backend_address_pool",
5025
+ "azurerm_lb_nat_pool",
5026
+ "azurerm_lb_nat_rule",
5027
+ "azurerm_lb_rule",
5028
+ "azurerm_local_network_gateway",
5029
+ "azurerm_network_interface",
5030
+ "azurerm_network_interface_application_security_group_association",
5031
+ "azurerm_network_interface_backend_address_pool_association",
5032
+ "azurerm_network_interface_security_group_association",
5033
+ "azurerm_network_security_group",
5034
+ "azurerm_public_ip",
5035
+ "azurerm_route",
5036
+ "azurerm_route_table",
5037
+ "azurerm_subnet",
5038
+ "azurerm_subnet_route_table_association",
5039
+ "azurerm_virtual_machine",
5040
+ "azurerm_virtual_network_gateway_connection",
5041
+ "azurerm_virtual_network",
5042
+ "azurerm_virtual_network_gateway",
5043
+ "google_compute_network",
5044
+ "google_compute_subnetwork",
5045
+ "google_compute_vpn_gateway",
5046
+ "google_compute_vpn_tunnel",
5047
+ "google_compute_route",
5048
+ "google_compute_address",
5049
+ "google_compute_global_address",
5050
+ "google_compute_router",
5051
+ "google_compute_interconnect_attachment",
5052
+ "google_compute_ha_vpn_gateway",
5053
+ "google_compute_forwarding_rule",
5054
+ "google_compute_network_firewall_policy",
5055
+ "google_compute_network_firewall_policy_rule",
5056
+ "cloudflare_static_route",
5057
+ "cloudflare_ipsec_tunnel",
5058
+ ]),
5059
+ title: Schema.String,
5021
5060
  }).pipe(Schema.encodeKeys({
5022
- itemType: "item_type",
5023
- resourcePreview: "resource_preview",
5061
+ id: "id",
5062
+ cloudType: "cloud_type",
5063
+ detail: "detail",
5064
+ name: "name",
5065
+ resourceType: "resource_type",
5066
+ title: "title",
5024
5067
  })),
5025
- ])),
5026
- }).pipe(Schema.encodeKeys({ itemType: "item_type", list: "list" })),
5027
- ]),
5028
- Schema.Null,
5029
- ])),
5030
- })),
5031
- helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5032
- }).pipe(Schema.encodeKeys({
5033
- hiddenItems: "hidden_items",
5034
- name: "name",
5035
- visibleItems: "visible_items",
5036
- helpText: "help_text",
5037
- }))),
5038
- state: Schema.Struct({}),
5039
- tags: Schema.Struct({}),
5040
- updatedAt: Schema.String,
5041
- url: Schema.String,
5042
- managedBy: Schema.optional(Schema.Union([
5043
- Schema.Array(Schema.Struct({
5044
- id: Schema.String,
5045
- clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
5046
- name: Schema.String,
5068
+ }).pipe(Schema.encodeKeys({
5069
+ itemType: "item_type",
5070
+ resourcePreview: "resource_preview",
5071
+ })),
5072
+ Schema.Struct({
5073
+ itemType: Schema.String,
5074
+ list: Schema.Array(Schema.Union([
5075
+ Schema.Struct({
5076
+ itemType: Schema.Unknown,
5077
+ string: Schema.Unknown,
5078
+ }).pipe(Schema.encodeKeys({
5079
+ itemType: "item_type",
5080
+ string: "string",
5081
+ })),
5082
+ Schema.Struct({
5083
+ itemType: Schema.Unknown,
5084
+ resourcePreview: Schema.Unknown,
5085
+ }).pipe(Schema.encodeKeys({
5086
+ itemType: "item_type",
5087
+ resourcePreview: "resource_preview",
5088
+ })),
5089
+ ])),
5090
+ }).pipe(Schema.encodeKeys({
5091
+ itemType: "item_type",
5092
+ list: "list",
5093
+ })),
5094
+ ]),
5095
+ Schema.Null,
5096
+ ])),
5097
+ })),
5098
+ helpText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5047
5099
  }).pipe(Schema.encodeKeys({
5048
- id: "id",
5049
- clientType: "client_type",
5100
+ hiddenItems: "hidden_items",
5050
5101
  name: "name",
5102
+ visibleItems: "visible_items",
5103
+ helpText: "help_text",
5051
5104
  }))),
5052
- Schema.Null,
5053
- ])),
5054
- }).pipe(Schema.encodeKeys({
5055
- id: "id",
5056
- accountId: "account_id",
5057
- cloudType: "cloud_type",
5058
- config: "config",
5059
- deploymentProvider: "deployment_provider",
5060
- managed: "managed",
5061
- monthlyCostEstimate: "monthly_cost_estimate",
5062
- name: "name",
5063
- nativeId: "native_id",
5064
- observations: "observations",
5065
- providerIds: "provider_ids",
5066
- providerNamesById: "provider_names_by_id",
5067
- region: "region",
5068
- resourceGroup: "resource_group",
5069
- resourceType: "resource_type",
5070
- sections: "sections",
5071
- state: "state",
5072
- tags: "tags",
5073
- updatedAt: "updated_at",
5074
- url: "url",
5075
- managedBy: "managed_by",
5076
- })));
5077
- export const listResources = API.make(() => ({
5105
+ state: Schema.Struct({}),
5106
+ tags: Schema.Struct({}),
5107
+ updatedAt: Schema.String,
5108
+ url: Schema.String,
5109
+ managedBy: Schema.optional(Schema.Union([
5110
+ Schema.Array(Schema.Struct({
5111
+ id: Schema.String,
5112
+ clientType: Schema.Literal("MAGIC_WAN_CLOUD_ONRAMP"),
5113
+ name: Schema.String,
5114
+ }).pipe(Schema.encodeKeys({
5115
+ id: "id",
5116
+ clientType: "client_type",
5117
+ name: "name",
5118
+ }))),
5119
+ Schema.Null,
5120
+ ])),
5121
+ }).pipe(Schema.encodeKeys({
5122
+ id: "id",
5123
+ accountId: "account_id",
5124
+ cloudType: "cloud_type",
5125
+ config: "config",
5126
+ deploymentProvider: "deployment_provider",
5127
+ managed: "managed",
5128
+ monthlyCostEstimate: "monthly_cost_estimate",
5129
+ name: "name",
5130
+ nativeId: "native_id",
5131
+ observations: "observations",
5132
+ providerIds: "provider_ids",
5133
+ providerNamesById: "provider_names_by_id",
5134
+ region: "region",
5135
+ resourceGroup: "resource_group",
5136
+ resourceType: "resource_type",
5137
+ sections: "sections",
5138
+ state: "state",
5139
+ tags: "tags",
5140
+ updatedAt: "updated_at",
5141
+ url: "url",
5142
+ managedBy: "managed_by",
5143
+ }))),
5144
+ resultInfo: Schema.Struct({
5145
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5146
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5147
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5148
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5149
+ }).pipe(Schema.encodeKeys({
5150
+ count: "count",
5151
+ page: "page",
5152
+ perPage: "per_page",
5153
+ totalCount: "total_count",
5154
+ })),
5155
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
5156
+ export const listResources = API.makePaginated(() => ({
5078
5157
  input: ListResourcesRequest,
5079
5158
  output: ListResourcesResponse,
5080
5159
  errors: [],
5160
+ pagination: {
5161
+ mode: "page",
5162
+ inputToken: "page",
5163
+ outputToken: "resultInfo.page",
5164
+ items: "result",
5165
+ pageSize: "perPage",
5166
+ },
5081
5167
  }));
5082
5168
  export const ExportResourceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5083
5169
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -5196,7 +5282,7 @@ export const InitialSetupCloudIntegrationResponse =
5196
5282
  itemType: "item_type",
5197
5283
  tagCliCommand: "tag_cli_command",
5198
5284
  })),
5199
- ]);
5285
+ ]).pipe(T.ResponsePath("result"));
5200
5286
  export const initialSetupCloudIntegration = API.make(() => ({
5201
5287
  input: InitialSetupCloudIntegrationRequest,
5202
5288
  output: InitialSetupCloudIntegrationResponse,