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