@distilled.cloud/cloudflare 0.2.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- 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
|
-
})
|
|
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.
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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.
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
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
|
-
})
|
|
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.
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
Schema.
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
Schema.
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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.
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
Schema.
|
|
2072
|
-
|
|
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
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
"
|
|
2123
|
-
"
|
|
2124
|
-
"
|
|
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
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
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
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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.
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
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
|
-
|
|
4772
|
-
|
|
4773
|
-
leftYaml: "left_yaml",
|
|
4774
|
-
rightDescription: "right_description",
|
|
4775
|
-
rightYaml: "right_yaml",
|
|
4810
|
+
itemType: "item_type",
|
|
4811
|
+
string: "string",
|
|
4776
4812
|
})),
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
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
|
-
|
|
4855
|
-
|
|
4856
|
-
detail: "detail",
|
|
4857
|
-
name: "name",
|
|
4858
|
-
resourceType: "resource_type",
|
|
4859
|
-
title: "title",
|
|
4817
|
+
itemType: "item_type",
|
|
4818
|
+
yaml: "yaml",
|
|
4860
4819
|
})),
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
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
|
-
|
|
4873
|
-
|
|
4829
|
+
diff: "diff",
|
|
4830
|
+
leftDescription: "left_description",
|
|
4831
|
+
leftYaml: "left_yaml",
|
|
4832
|
+
rightDescription: "right_description",
|
|
4833
|
+
rightYaml: "right_yaml",
|
|
4874
4834
|
})),
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
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
|
-
|
|
4880
|
-
|
|
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
|
-
|
|
4915
|
-
|
|
4916
|
-
leftYaml: "left_yaml",
|
|
4917
|
-
rightDescription: "right_description",
|
|
4918
|
-
rightYaml: "right_yaml",
|
|
4920
|
+
itemType: "item_type",
|
|
4921
|
+
resourcePreview: "resource_preview",
|
|
4919
4922
|
})),
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
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
|
-
|
|
4998
|
-
|
|
4999
|
-
detail: "detail",
|
|
5000
|
-
name: "name",
|
|
5001
|
-
resourceType: "resource_type",
|
|
5002
|
-
title: "title",
|
|
4942
|
+
itemType: "item_type",
|
|
4943
|
+
list: "list",
|
|
5003
4944
|
})),
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
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
|
-
|
|
5016
|
-
|
|
4978
|
+
diff: "diff",
|
|
4979
|
+
leftDescription: "left_description",
|
|
4980
|
+
leftYaml: "left_yaml",
|
|
4981
|
+
rightDescription: "right_description",
|
|
4982
|
+
rightYaml: "right_yaml",
|
|
5017
4983
|
})),
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
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
|
-
|
|
5023
|
-
|
|
5061
|
+
id: "id",
|
|
5062
|
+
cloudType: "cloud_type",
|
|
5063
|
+
detail: "detail",
|
|
5064
|
+
name: "name",
|
|
5065
|
+
resourceType: "resource_type",
|
|
5066
|
+
title: "title",
|
|
5024
5067
|
})),
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
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
|
-
|
|
5049
|
-
clientType: "client_type",
|
|
5100
|
+
hiddenItems: "hidden_items",
|
|
5050
5101
|
name: "name",
|
|
5102
|
+
visibleItems: "visible_items",
|
|
5103
|
+
helpText: "help_text",
|
|
5051
5104
|
}))),
|
|
5052
|
-
Schema.
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
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,
|