@distilled.cloud/cloudflare 0.29.0 → 0.30.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/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- 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 +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- 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 +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- 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 +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- 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 +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- 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 +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- 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 +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
|
@@ -63,7 +63,7 @@ export class SiteWanNotFound extends T.applyErrorMatchers(Schema.TaggedErrorClas
|
|
|
63
63
|
message: Schema.String,
|
|
64
64
|
}), [{ status: 404 }]) {
|
|
65
65
|
}
|
|
66
|
-
const MagicAccountApp = /*@__PURE__*/
|
|
66
|
+
const MagicAccountApp = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
67
67
|
accountAppId: Schema.String,
|
|
68
68
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
69
69
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -78,7 +78,7 @@ const MagicAccountApp = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.
|
|
|
78
78
|
sourceSubnets: "source_subnets",
|
|
79
79
|
type: "type",
|
|
80
80
|
})));
|
|
81
|
-
const MagicManagedApp = /*@__PURE__*/
|
|
81
|
+
const MagicManagedApp = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
82
82
|
managedAppId: Schema.String,
|
|
83
83
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
84
84
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -93,12 +93,12 @@ const MagicManagedApp = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.
|
|
|
93
93
|
sourceSubnets: "source_subnets",
|
|
94
94
|
type: "type",
|
|
95
95
|
})));
|
|
96
|
-
const Cf1SiteLocation = /*@__PURE__*/
|
|
96
|
+
const Cf1SiteLocation = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
97
97
|
lat: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
98
98
|
long: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
99
99
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
100
100
|
}));
|
|
101
|
-
const ListCf1SitesResponseResult = /*@__PURE__*/
|
|
101
|
+
const ListCf1SitesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
102
102
|
name: Schema.String,
|
|
103
103
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
104
104
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -113,16 +113,16 @@ const ListCf1SitesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
113
113
|
location: "location",
|
|
114
114
|
modifiedOn: "modified_on",
|
|
115
115
|
})));
|
|
116
|
-
const Cf1SiteParam = /*@__PURE__*/
|
|
116
|
+
const Cf1SiteParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
117
117
|
name: Schema.String,
|
|
118
118
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
119
119
|
location: Schema.optional(Schema.Union([Cf1SiteLocation, Schema.Null])),
|
|
120
120
|
}));
|
|
121
|
-
const Gre = /*@__PURE__*/
|
|
121
|
+
const Gre = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
122
122
|
managedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
123
123
|
}).pipe(Schema.encodeKeys({ managedBy: "managed_by" })));
|
|
124
124
|
const ListCf1SiteRampsResponseResult =
|
|
125
|
-
/*@__PURE__*/
|
|
125
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
126
126
|
id: Schema.String,
|
|
127
127
|
createdOn: Schema.String,
|
|
128
128
|
modifiedOn: Schema.String,
|
|
@@ -156,7 +156,7 @@ const ListCf1SiteRampsResponseResult =
|
|
|
156
156
|
mconn: "mconn",
|
|
157
157
|
mplsInterconnect: "mpls_interconnect",
|
|
158
158
|
})));
|
|
159
|
-
const Body = /*@__PURE__*/
|
|
159
|
+
const Body = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
160
160
|
sourceRampId: Schema.String,
|
|
161
161
|
type: Schema.Union([
|
|
162
162
|
Schema.Literals([
|
|
@@ -169,14 +169,14 @@ const Body = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
169
169
|
Schema.String,
|
|
170
170
|
]),
|
|
171
171
|
}).pipe(Schema.encodeKeys({ sourceRampId: "source_ramp_id", type: "type" })));
|
|
172
|
-
const Gre2 = /*@__PURE__*/
|
|
172
|
+
const Gre2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
173
173
|
cloudflareEndpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
174
174
|
}).pipe(Schema.encodeKeys({ cloudflareEndpoint: "cloudflare_endpoint" })));
|
|
175
|
-
const MagicHealthCheckTarget = /*@__PURE__*/
|
|
175
|
+
const MagicHealthCheckTarget = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
176
176
|
effective: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
177
177
|
saved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
178
178
|
}));
|
|
179
|
-
const HealthCheck = /*@__PURE__*/
|
|
179
|
+
const HealthCheck = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
180
180
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
181
181
|
rate: Schema.optional(Schema.Union([
|
|
182
182
|
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
@@ -191,7 +191,7 @@ const HealthCheck = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
191
191
|
Schema.Null,
|
|
192
192
|
])),
|
|
193
193
|
}));
|
|
194
|
-
const Interconnect = /*@__PURE__*/
|
|
194
|
+
const Interconnect = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
195
195
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
196
196
|
automaticReturnRouting: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
197
197
|
coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -220,10 +220,10 @@ const Interconnect = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
220
220
|
name: "name",
|
|
221
221
|
virtualPortReservationId: "virtual_port_reservation_id",
|
|
222
222
|
})));
|
|
223
|
-
const MagicHealthCheckTarget2 = /*@__PURE__*/
|
|
223
|
+
const MagicHealthCheckTarget2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
224
224
|
saved: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
225
225
|
}));
|
|
226
|
-
const HealthCheckParam = /*@__PURE__*/
|
|
226
|
+
const HealthCheckParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
227
227
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
228
228
|
rate: Schema.optional(Schema.Union([
|
|
229
229
|
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
@@ -238,7 +238,7 @@ const HealthCheckParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
|
|
|
238
238
|
Schema.Null,
|
|
239
239
|
])),
|
|
240
240
|
}));
|
|
241
|
-
const Device = /*@__PURE__*/
|
|
241
|
+
const Device = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
242
242
|
id: Schema.String,
|
|
243
243
|
serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
244
244
|
type: Schema.optional(Schema.Union([
|
|
@@ -250,7 +250,7 @@ const Device = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
250
250
|
serialNumber: "serial_number",
|
|
251
251
|
type: "type",
|
|
252
252
|
})));
|
|
253
|
-
const ListConnectorsResponseResult = /*@__PURE__*/
|
|
253
|
+
const ListConnectorsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
254
254
|
id: Schema.String,
|
|
255
255
|
activated: Schema.Boolean,
|
|
256
256
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -294,7 +294,7 @@ const ListConnectorsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
294
294
|
licenseKey: "license_key",
|
|
295
295
|
siteId: "site_id",
|
|
296
296
|
})));
|
|
297
|
-
const Device2 = /*@__PURE__*/
|
|
297
|
+
const Device2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
298
298
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
299
299
|
provisionLicense: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
300
300
|
serialNumber: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -303,82 +303,82 @@ const Device2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
303
303
|
provisionLicense: "provision_license",
|
|
304
304
|
serialNumber: "serial_number",
|
|
305
305
|
})));
|
|
306
|
-
const Init = /*@__PURE__*/
|
|
306
|
+
const Init = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
307
307
|
k: Schema.Literal("Init"),
|
|
308
308
|
}));
|
|
309
|
-
const Leave = /*@__PURE__*/
|
|
309
|
+
const Leave = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
310
310
|
k: Schema.Literal("Leave"),
|
|
311
311
|
}));
|
|
312
|
-
const StartAttestation = /*@__PURE__*/
|
|
312
|
+
const StartAttestation = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
313
313
|
k: Schema.Literal("StartAttestation"),
|
|
314
314
|
}));
|
|
315
|
-
const FinishAttestationSuccess = /*@__PURE__*/
|
|
315
|
+
const FinishAttestationSuccess = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
316
316
|
k: Schema.Literal("FinishAttestationSuccess"),
|
|
317
317
|
}));
|
|
318
|
-
const FinishAttestationFailure = /*@__PURE__*/
|
|
318
|
+
const FinishAttestationFailure = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
319
319
|
k: Schema.Literal("FinishAttestationFailure"),
|
|
320
320
|
}));
|
|
321
|
-
const StartRotateCryptKey = /*@__PURE__*/
|
|
321
|
+
const StartRotateCryptKey = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
322
322
|
k: Schema.Literal("StartRotateCryptKey"),
|
|
323
323
|
}));
|
|
324
|
-
const FinishRotateCryptKeySuccess = /*@__PURE__*/
|
|
324
|
+
const FinishRotateCryptKeySuccess = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
325
325
|
k: Schema.Literal("FinishRotateCryptKeySuccess"),
|
|
326
326
|
}));
|
|
327
|
-
const FinishRotateCryptKeyFailure = /*@__PURE__*/
|
|
327
|
+
const FinishRotateCryptKeyFailure = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
328
328
|
k: Schema.Literal("FinishRotateCryptKeyFailure"),
|
|
329
329
|
}));
|
|
330
|
-
const StartRotatePki = /*@__PURE__*/
|
|
330
|
+
const StartRotatePki = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
331
331
|
k: Schema.Literal("StartRotatePki"),
|
|
332
332
|
}));
|
|
333
|
-
const FinishRotatePkiSuccess = /*@__PURE__*/
|
|
333
|
+
const FinishRotatePkiSuccess = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
334
334
|
k: Schema.Literal("FinishRotatePkiSuccess"),
|
|
335
335
|
}));
|
|
336
|
-
const FinishRotatePkiFailure = /*@__PURE__*/
|
|
336
|
+
const FinishRotatePkiFailure = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
337
337
|
k: Schema.Literal("FinishRotatePkiFailure"),
|
|
338
338
|
}));
|
|
339
|
-
const StartUpgrade = /*@__PURE__*/
|
|
339
|
+
const StartUpgrade = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
340
340
|
k: Schema.Literal("StartUpgrade"),
|
|
341
341
|
url: Schema.String,
|
|
342
342
|
}));
|
|
343
|
-
const FinishUpgradeSuccess = /*@__PURE__*/
|
|
343
|
+
const FinishUpgradeSuccess = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
344
344
|
k: Schema.Literal("FinishUpgradeSuccess"),
|
|
345
345
|
}));
|
|
346
|
-
const FinishUpgradeFailure = /*@__PURE__*/
|
|
346
|
+
const FinishUpgradeFailure = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
347
347
|
k: Schema.Literal("FinishUpgradeFailure"),
|
|
348
348
|
}));
|
|
349
|
-
const Reconcile = /*@__PURE__*/
|
|
349
|
+
const Reconcile = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
350
350
|
k: Schema.Literal("Reconcile"),
|
|
351
351
|
}));
|
|
352
|
-
const ConfigureCloudflaredTunnel = /*@__PURE__*/
|
|
352
|
+
const ConfigureCloudflaredTunnel = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
353
353
|
k: Schema.Literal("ConfigureCloudflaredTunnel"),
|
|
354
354
|
}));
|
|
355
|
-
const RekeyInstallBoth = /*@__PURE__*/
|
|
355
|
+
const RekeyInstallBoth = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
356
356
|
k: Schema.Literal("RekeyInstallBoth"),
|
|
357
357
|
tunnelId: Schema.String,
|
|
358
358
|
}).pipe(Schema.encodeKeys({ k: "k", tunnelId: "tunnel_id" })));
|
|
359
|
-
const RekeyStart = /*@__PURE__*/
|
|
359
|
+
const RekeyStart = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
360
360
|
k: Schema.Literal("RekeyStart"),
|
|
361
361
|
tunnelId: Schema.String,
|
|
362
362
|
}).pipe(Schema.encodeKeys({ k: "k", tunnelId: "tunnel_id" })));
|
|
363
|
-
const RekeyAdvance = /*@__PURE__*/
|
|
363
|
+
const RekeyAdvance = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
364
364
|
k: Schema.Literal("RekeyAdvance"),
|
|
365
365
|
tunnelId: Schema.String,
|
|
366
366
|
}).pipe(Schema.encodeKeys({ k: "k", tunnelId: "tunnel_id" })));
|
|
367
|
-
const RekeyComplete = /*@__PURE__*/
|
|
367
|
+
const RekeyComplete = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
368
368
|
k: Schema.Literal("RekeyComplete"),
|
|
369
369
|
tunnelId: Schema.String,
|
|
370
370
|
}).pipe(Schema.encodeKeys({ k: "k", tunnelId: "tunnel_id" })));
|
|
371
|
-
const RekeyReset = /*@__PURE__*/
|
|
371
|
+
const RekeyReset = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
372
372
|
k: Schema.Literal("RekeyReset"),
|
|
373
373
|
tunnelId: Schema.String,
|
|
374
374
|
}).pipe(Schema.encodeKeys({ k: "k", tunnelId: "tunnel_id" })));
|
|
375
|
-
const Item = /*@__PURE__*/
|
|
375
|
+
const Item = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
376
376
|
a: Schema.Number,
|
|
377
377
|
k: Schema.String,
|
|
378
378
|
n: Schema.Number,
|
|
379
379
|
t: Schema.Number,
|
|
380
380
|
}));
|
|
381
|
-
const Item2 = /*@__PURE__*/
|
|
381
|
+
const Item2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
382
382
|
e: Schema.Union([
|
|
383
383
|
StartUpgrade,
|
|
384
384
|
RekeyInstallBoth,
|
|
@@ -406,11 +406,11 @@ const Item2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
406
406
|
t: Schema.Number,
|
|
407
407
|
v: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
408
408
|
}));
|
|
409
|
-
const Bond = /*@__PURE__*/
|
|
409
|
+
const Bond = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
410
410
|
name: Schema.String,
|
|
411
411
|
status: Schema.String,
|
|
412
412
|
}));
|
|
413
|
-
const Dhcplease = /*@__PURE__*/
|
|
413
|
+
const Dhcplease = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
414
414
|
clientId: Schema.String,
|
|
415
415
|
expiryTime: Schema.Number,
|
|
416
416
|
hostname: Schema.String,
|
|
@@ -425,7 +425,7 @@ const Dhcplease = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
425
425
|
ipAddress: "ip_address",
|
|
426
426
|
macAddress: "mac_address",
|
|
427
427
|
})));
|
|
428
|
-
const Disk = /*@__PURE__*/
|
|
428
|
+
const Disk = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
429
429
|
inProgress: Schema.Number,
|
|
430
430
|
major: Schema.Number,
|
|
431
431
|
merged: Schema.Number,
|
|
@@ -468,14 +468,14 @@ const Disk = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
468
468
|
timeDiscardingMs: "time_discarding_ms",
|
|
469
469
|
timeFlushingMs: "time_flushing_ms",
|
|
470
470
|
})));
|
|
471
|
-
const Ipaddress = /*@__PURE__*/
|
|
471
|
+
const Ipaddress = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
472
472
|
interfaceName: Schema.String,
|
|
473
473
|
ipAddress: Schema.String,
|
|
474
474
|
}).pipe(Schema.encodeKeys({
|
|
475
475
|
interfaceName: "interface_name",
|
|
476
476
|
ipAddress: "ip_address",
|
|
477
477
|
})));
|
|
478
|
-
const Interface = /*@__PURE__*/
|
|
478
|
+
const Interface = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
479
479
|
name: Schema.String,
|
|
480
480
|
operstate: Schema.String,
|
|
481
481
|
ipAddresses: Schema.optional(Schema.Union([Schema.Array(Ipaddress), Schema.Null])),
|
|
@@ -486,7 +486,7 @@ const Interface = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
486
486
|
ipAddresses: "ip_addresses",
|
|
487
487
|
speed: "speed",
|
|
488
488
|
})));
|
|
489
|
-
const Mount = /*@__PURE__*/
|
|
489
|
+
const Mount = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
490
490
|
fileSystem: Schema.String,
|
|
491
491
|
kind: Schema.String,
|
|
492
492
|
mountPoint: Schema.String,
|
|
@@ -509,7 +509,7 @@ const Mount = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
509
509
|
totalBytes: "total_bytes",
|
|
510
510
|
totalInodes: "total_inodes",
|
|
511
511
|
})));
|
|
512
|
-
const Netdev = /*@__PURE__*/
|
|
512
|
+
const Netdev = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
513
513
|
name: Schema.String,
|
|
514
514
|
recvBytes: Schema.Number,
|
|
515
515
|
recvCompressed: Schema.Number,
|
|
@@ -546,7 +546,7 @@ const Netdev = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
546
546
|
sentFifo: "sent_fifo",
|
|
547
547
|
sentPackets: "sent_packets",
|
|
548
548
|
})));
|
|
549
|
-
const Thermal = /*@__PURE__*/
|
|
549
|
+
const Thermal = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
550
550
|
label: Schema.String,
|
|
551
551
|
criticalCelcius: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
552
552
|
currentCelcius: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -557,7 +557,7 @@ const Thermal = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
557
557
|
currentCelcius: "current_celcius",
|
|
558
558
|
maxCelcius: "max_celcius",
|
|
559
559
|
})));
|
|
560
|
-
const Tunnel = /*@__PURE__*/
|
|
560
|
+
const Tunnel = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
561
561
|
healthState: Schema.String,
|
|
562
562
|
healthValue: Schema.Number,
|
|
563
563
|
interfaceName: Schema.String,
|
|
@@ -574,11 +574,11 @@ const Tunnel = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
574
574
|
recentHealthyPings: "recent_healthy_pings",
|
|
575
575
|
recentUnhealthyPings: "recent_unhealthy_pings",
|
|
576
576
|
})));
|
|
577
|
-
const Item3 = /*@__PURE__*/
|
|
577
|
+
const Item3 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
578
578
|
a: Schema.Number,
|
|
579
579
|
t: Schema.Number,
|
|
580
580
|
}));
|
|
581
|
-
const Item4 = /*@__PURE__*/
|
|
581
|
+
const Item4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
582
582
|
countReclaimFailures: Schema.Number,
|
|
583
583
|
countReclaimedPaths: Schema.Number,
|
|
584
584
|
countRecordFailed: Schema.Number,
|
|
@@ -927,10 +927,10 @@ const Item4 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
927
927
|
uptimeIdleMs: "uptime_idle_ms",
|
|
928
928
|
uptimeTotalMs: "uptime_total_ms",
|
|
929
929
|
})));
|
|
930
|
-
const Pskmetadata = /*@__PURE__*/
|
|
930
|
+
const Pskmetadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
931
931
|
lastGeneratedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
932
932
|
}).pipe(Schema.encodeKeys({ lastGeneratedOn: "last_generated_on" })));
|
|
933
|
-
const Bgp = /*@__PURE__*/
|
|
933
|
+
const Bgp = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
934
934
|
customerAsn: Schema.Number,
|
|
935
935
|
exportFilterId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
936
936
|
extraPrefixes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -943,7 +943,7 @@ const Bgp = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
943
943
|
importFilterId: "import_filter_id",
|
|
944
944
|
md5Key: "md5_key",
|
|
945
945
|
})));
|
|
946
|
-
const Bgpstatus = /*@__PURE__*/
|
|
946
|
+
const Bgpstatus = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
947
947
|
state: Schema.Union([
|
|
948
948
|
Schema.Literals(["BGP_DOWN", "BGP_UP", "BGP_ESTABLISHING"]),
|
|
949
949
|
Schema.String,
|
|
@@ -965,7 +965,7 @@ const Bgpstatus = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
965
965
|
customerSpeakerIp: "customer_speaker_ip",
|
|
966
966
|
customerSpeakerPort: "customer_speaker_port",
|
|
967
967
|
})));
|
|
968
|
-
const HealthCheck2 = /*@__PURE__*/
|
|
968
|
+
const HealthCheck2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
969
969
|
direction: Schema.optional(Schema.Union([
|
|
970
970
|
Schema.Union([
|
|
971
971
|
Schema.Literals(["unidirectional", "bidirectional"]),
|
|
@@ -987,7 +987,7 @@ const HealthCheck2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
987
987
|
Schema.Null,
|
|
988
988
|
])),
|
|
989
989
|
}));
|
|
990
|
-
const Gretunnel = /*@__PURE__*/
|
|
990
|
+
const Gretunnel = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
991
991
|
id: Schema.String,
|
|
992
992
|
cloudflareGreEndpoint: Schema.String,
|
|
993
993
|
customerGreEndpoint: Schema.String,
|
|
@@ -1020,7 +1020,7 @@ const Gretunnel = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct
|
|
|
1020
1020
|
mtu: "mtu",
|
|
1021
1021
|
ttl: "ttl",
|
|
1022
1022
|
})));
|
|
1023
|
-
const HealthCheck3 = /*@__PURE__*/
|
|
1023
|
+
const HealthCheck3 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1024
1024
|
direction: Schema.optional(Schema.Union([
|
|
1025
1025
|
Schema.Union([
|
|
1026
1026
|
Schema.Literals(["unidirectional", "bidirectional"]),
|
|
@@ -1042,10 +1042,10 @@ const HealthCheck3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
1042
1042
|
Schema.Null,
|
|
1043
1043
|
])),
|
|
1044
1044
|
}));
|
|
1045
|
-
const CustomRemoteIdentities = /*@__PURE__*/
|
|
1045
|
+
const CustomRemoteIdentities = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1046
1046
|
fqdnId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1047
1047
|
}).pipe(Schema.encodeKeys({ fqdnId: "fqdn_id" })));
|
|
1048
|
-
const Ipsectunnel = /*@__PURE__*/
|
|
1048
|
+
const Ipsectunnel = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1049
1049
|
id: Schema.String,
|
|
1050
1050
|
cloudflareEndpoint: Schema.String,
|
|
1051
1051
|
interfaceAddress: Schema.String,
|
|
@@ -1082,7 +1082,7 @@ const Ipsectunnel = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
1082
1082
|
pskMetadata: "psk_metadata",
|
|
1083
1083
|
replayProtection: "replay_protection",
|
|
1084
1084
|
})));
|
|
1085
|
-
const Pcapfilter = /*@__PURE__*/
|
|
1085
|
+
const Pcapfilter = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1086
1086
|
destinationAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1087
1087
|
destinationPort: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1088
1088
|
protocol: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -1095,7 +1095,7 @@ const Pcapfilter = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
1095
1095
|
sourceAddress: "source_address",
|
|
1096
1096
|
sourcePort: "source_port",
|
|
1097
1097
|
})));
|
|
1098
|
-
const Pcap = /*@__PURE__*/
|
|
1098
|
+
const Pcap = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1099
1099
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1100
1100
|
filterV1: Schema.optional(Schema.Union([Pcapfilter, Schema.Null])),
|
|
1101
1101
|
offsetTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1133,7 +1133,7 @@ const Pcap = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
1133
1133
|
type: "type",
|
|
1134
1134
|
})));
|
|
1135
1135
|
const MagicVisibilityPCAPsPCAPsResponseFull =
|
|
1136
|
-
/*@__PURE__*/
|
|
1136
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1137
1137
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1138
1138
|
byteLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1139
1139
|
coloName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1181,7 +1181,7 @@ const MagicVisibilityPCAPsPCAPsResponseFull =
|
|
|
1181
1181
|
type: "type",
|
|
1182
1182
|
})));
|
|
1183
1183
|
const GetPcapOwnershipResponseResult =
|
|
1184
|
-
/*@__PURE__*/
|
|
1184
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1185
1185
|
id: Schema.String,
|
|
1186
1186
|
destinationConf: Schema.String,
|
|
1187
1187
|
filename: Schema.String,
|
|
@@ -1199,11 +1199,11 @@ const GetPcapOwnershipResponseResult =
|
|
|
1199
1199
|
submitted: "submitted",
|
|
1200
1200
|
validated: "validated",
|
|
1201
1201
|
})));
|
|
1202
|
-
const ScopeParam = /*@__PURE__*/
|
|
1202
|
+
const ScopeParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1203
1203
|
coloNames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1204
1204
|
coloRegions: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1205
1205
|
}).pipe(Schema.encodeKeys({ coloNames: "colo_names", coloRegions: "colo_regions" })));
|
|
1206
|
-
const Route = /*@__PURE__*/
|
|
1206
|
+
const Route = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1207
1207
|
id: Schema.String,
|
|
1208
1208
|
nexthop: Schema.String,
|
|
1209
1209
|
prefix: Schema.String,
|
|
@@ -1212,7 +1212,7 @@ const Route = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
1212
1212
|
scope: Schema.optional(Schema.Union([ScopeParam, Schema.Null])),
|
|
1213
1213
|
weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1214
1214
|
}));
|
|
1215
|
-
const ModifiedRoute = /*@__PURE__*/
|
|
1215
|
+
const ModifiedRoute = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1216
1216
|
id: Schema.String,
|
|
1217
1217
|
nexthop: Schema.String,
|
|
1218
1218
|
prefix: Schema.String,
|
|
@@ -1233,15 +1233,15 @@ const ModifiedRoute = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.St
|
|
|
1233
1233
|
scope: "scope",
|
|
1234
1234
|
weight: "weight",
|
|
1235
1235
|
})));
|
|
1236
|
-
const Psk = /*@__PURE__*/
|
|
1236
|
+
const Psk = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1237
1237
|
id: Schema.String,
|
|
1238
1238
|
psk: Schema.String,
|
|
1239
1239
|
}));
|
|
1240
|
-
const SiteLocation = /*@__PURE__*/
|
|
1240
|
+
const SiteLocation = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1241
1241
|
lat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1242
1242
|
lon: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1243
1243
|
}));
|
|
1244
|
-
const ListSitesResponseResult = /*@__PURE__*/
|
|
1244
|
+
const ListSitesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1245
1245
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1246
1246
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1247
1247
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1258,7 +1258,7 @@ const ListSitesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1258
1258
|
name: "name",
|
|
1259
1259
|
secondaryConnectorId: "secondary_connector_id",
|
|
1260
1260
|
})));
|
|
1261
|
-
const Aclconfiguration = /*@__PURE__*/
|
|
1261
|
+
const Aclconfiguration = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1262
1262
|
lanId: Schema.String,
|
|
1263
1263
|
lanName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1264
1264
|
portRanges: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1271,7 +1271,7 @@ const Aclconfiguration = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
|
|
|
1271
1271
|
ports: "ports",
|
|
1272
1272
|
subnets: "subnets",
|
|
1273
1273
|
})));
|
|
1274
|
-
const ListSiteAclsResponseResult = /*@__PURE__*/
|
|
1274
|
+
const ListSiteAclsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1275
1275
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1276
1276
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1277
1277
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1296,18 +1296,18 @@ const ListSiteAclsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1296
1296
|
protocols: "protocols",
|
|
1297
1297
|
unidirectional: "unidirectional",
|
|
1298
1298
|
})));
|
|
1299
|
-
const Nat = /*@__PURE__*/
|
|
1299
|
+
const Nat = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1300
1300
|
staticPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1301
1301
|
}).pipe(Schema.encodeKeys({ staticPrefix: "static_prefix" })));
|
|
1302
|
-
const RoutedSubnet = /*@__PURE__*/
|
|
1302
|
+
const RoutedSubnet = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1303
1303
|
nextHop: Schema.String,
|
|
1304
1304
|
prefix: Schema.String,
|
|
1305
1305
|
nat: Schema.optional(Schema.Union([Nat, Schema.Null])),
|
|
1306
1306
|
}).pipe(Schema.encodeKeys({ nextHop: "next_hop", prefix: "prefix", nat: "nat" })));
|
|
1307
|
-
const Dhcprelay = /*@__PURE__*/
|
|
1307
|
+
const Dhcprelay = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1308
1308
|
serverAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1309
1309
|
}).pipe(Schema.encodeKeys({ serverAddresses: "server_addresses" })));
|
|
1310
|
-
const Dhcpoption = /*@__PURE__*/
|
|
1310
|
+
const Dhcpoption = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1311
1311
|
code: Schema.Number,
|
|
1312
1312
|
type: Schema.Union([
|
|
1313
1313
|
Schema.Literals(["text", "hex", "ip", "byte", "short", "integer"]),
|
|
@@ -1315,7 +1315,7 @@ const Dhcpoption = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
1315
1315
|
]),
|
|
1316
1316
|
value: Schema.String,
|
|
1317
1317
|
}));
|
|
1318
|
-
const Dhcpserver = /*@__PURE__*/
|
|
1318
|
+
const Dhcpserver = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1319
1319
|
dhcpOptions: Schema.optional(Schema.Union([Schema.Array(Dhcpoption), Schema.Null])),
|
|
1320
1320
|
dhcpPoolEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1321
1321
|
dhcpPoolStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1330,7 +1330,7 @@ const Dhcpserver = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
1330
1330
|
dnsServers: "dns_servers",
|
|
1331
1331
|
reservations: "reservations",
|
|
1332
1332
|
})));
|
|
1333
|
-
const LanstaticAddressing = /*@__PURE__*/
|
|
1333
|
+
const LanstaticAddressing = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1334
1334
|
address: Schema.String,
|
|
1335
1335
|
dhcpRelay: Schema.optional(Schema.Union([Dhcprelay, Schema.Null])),
|
|
1336
1336
|
dhcpServer: Schema.optional(Schema.Union([Dhcpserver, Schema.Null])),
|
|
@@ -1343,7 +1343,7 @@ const LanstaticAddressing = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sch
|
|
|
1343
1343
|
secondaryAddress: "secondary_address",
|
|
1344
1344
|
virtualAddress: "virtual_address",
|
|
1345
1345
|
})));
|
|
1346
|
-
const ListSiteLansResponseResult = /*@__PURE__*/
|
|
1346
|
+
const ListSiteLansResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1347
1347
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1348
1348
|
bondId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1349
1349
|
haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -1370,7 +1370,7 @@ const ListSiteLansResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1370
1370
|
staticAddressing: "static_addressing",
|
|
1371
1371
|
vlanTag: "vlan_tag",
|
|
1372
1372
|
})));
|
|
1373
|
-
const WanstaticAddressing = /*@__PURE__*/
|
|
1373
|
+
const WanstaticAddressing = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1374
1374
|
address: Schema.String,
|
|
1375
1375
|
gatewayAddress: Schema.String,
|
|
1376
1376
|
secondaryAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1379,13 +1379,10 @@ const WanstaticAddressing = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Sch
|
|
|
1379
1379
|
gatewayAddress: "gateway_address",
|
|
1380
1380
|
secondaryAddress: "secondary_address",
|
|
1381
1381
|
})));
|
|
1382
|
-
const ListSiteWansResponseResult = /*@__PURE__*/
|
|
1382
|
+
const ListSiteWansResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1383
1383
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1384
1384
|
healthCheckRate: Schema.optional(Schema.Union([
|
|
1385
|
-
Schema.Union([
|
|
1386
|
-
Schema.Literals(["low", "mid", "high"]),
|
|
1387
|
-
Schema.String,
|
|
1388
|
-
]),
|
|
1385
|
+
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
1389
1386
|
Schema.Null,
|
|
1390
1387
|
])),
|
|
1391
1388
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1404,13 +1401,13 @@ const ListSiteWansResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1404
1401
|
staticAddressing: "static_addressing",
|
|
1405
1402
|
vlanTag: "vlan_tag",
|
|
1406
1403
|
})));
|
|
1407
|
-
export const ListAppsRequest = /*@__PURE__*/
|
|
1404
|
+
export const ListAppsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1408
1405
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1409
1406
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/apps" })));
|
|
1410
|
-
export const ListAppsResponse = /*@__PURE__*/
|
|
1407
|
+
export const ListAppsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1411
1408
|
result: Schema.Array(Schema.Union([MagicAccountApp, MagicManagedApp])),
|
|
1412
1409
|
}));
|
|
1413
|
-
export const listApps = /*@__PURE__*/
|
|
1410
|
+
export const listApps = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1414
1411
|
input: ListAppsRequest,
|
|
1415
1412
|
output: ListAppsResponse,
|
|
1416
1413
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -1419,7 +1416,7 @@ export const listApps = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
1419
1416
|
items: "result",
|
|
1420
1417
|
},
|
|
1421
1418
|
}));
|
|
1422
|
-
export const CreateAppRequest = /*@__PURE__*/
|
|
1419
|
+
export const CreateAppRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1423
1420
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1424
1421
|
name: Schema.String,
|
|
1425
1422
|
type: Schema.String,
|
|
@@ -1433,7 +1430,7 @@ export const CreateAppRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1433
1430
|
ipSubnets: "ip_subnets",
|
|
1434
1431
|
sourceSubnets: "source_subnets",
|
|
1435
1432
|
}), T.Http({ method: "POST", path: "/accounts/{account_id}/magic/apps" })));
|
|
1436
|
-
export const CreateAppResponse = /*@__PURE__*/
|
|
1433
|
+
export const CreateAppResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1437
1434
|
accountAppId: Schema.String,
|
|
1438
1435
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1439
1436
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1450,12 +1447,12 @@ export const CreateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1450
1447
|
type: "type",
|
|
1451
1448
|
}))
|
|
1452
1449
|
.pipe(T.ResponsePath("result")));
|
|
1453
|
-
export const createApp = /*@__PURE__*/
|
|
1450
|
+
export const createApp = /*@__PURE__*/ API.make(() => ({
|
|
1454
1451
|
input: CreateAppRequest,
|
|
1455
1452
|
output: CreateAppResponse,
|
|
1456
1453
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
1457
1454
|
}));
|
|
1458
|
-
export const UpdateAppRequest = /*@__PURE__*/
|
|
1455
|
+
export const UpdateAppRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1459
1456
|
accountAppId: Schema.String.pipe(T.HttpPath("accountAppId")),
|
|
1460
1457
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1461
1458
|
hostnames: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -1473,7 +1470,7 @@ export const UpdateAppRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1473
1470
|
method: "PUT",
|
|
1474
1471
|
path: "/accounts/{account_id}/magic/apps/{accountAppId}",
|
|
1475
1472
|
})));
|
|
1476
|
-
export const UpdateAppResponse = /*@__PURE__*/
|
|
1473
|
+
export const UpdateAppResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1477
1474
|
accountAppId: Schema.String,
|
|
1478
1475
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1479
1476
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1490,12 +1487,12 @@ export const UpdateAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1490
1487
|
type: "type",
|
|
1491
1488
|
}))
|
|
1492
1489
|
.pipe(T.ResponsePath("result")));
|
|
1493
|
-
export const updateApp = /*@__PURE__*/
|
|
1490
|
+
export const updateApp = /*@__PURE__*/ API.make(() => ({
|
|
1494
1491
|
input: UpdateAppRequest,
|
|
1495
1492
|
output: UpdateAppResponse,
|
|
1496
1493
|
errors: [AppNotFound, MagicWanUnauthorized, Forbidden],
|
|
1497
1494
|
}));
|
|
1498
|
-
export const PatchAppRequest = /*@__PURE__*/
|
|
1495
|
+
export const PatchAppRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1499
1496
|
accountAppId: Schema.String.pipe(T.HttpPath("accountAppId")),
|
|
1500
1497
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1501
1498
|
hostnames: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -1513,7 +1510,7 @@ export const PatchAppRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1513
1510
|
method: "PATCH",
|
|
1514
1511
|
path: "/accounts/{account_id}/magic/apps/{accountAppId}",
|
|
1515
1512
|
})));
|
|
1516
|
-
export const PatchAppResponse = /*@__PURE__*/
|
|
1513
|
+
export const PatchAppResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1517
1514
|
accountAppId: Schema.String,
|
|
1518
1515
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1519
1516
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1530,19 +1527,19 @@ export const PatchAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1530
1527
|
type: "type",
|
|
1531
1528
|
}))
|
|
1532
1529
|
.pipe(T.ResponsePath("result")));
|
|
1533
|
-
export const patchApp = /*@__PURE__*/
|
|
1530
|
+
export const patchApp = /*@__PURE__*/ API.make(() => ({
|
|
1534
1531
|
input: PatchAppRequest,
|
|
1535
1532
|
output: PatchAppResponse,
|
|
1536
1533
|
errors: [AppNotFound, MagicWanUnauthorized, Forbidden],
|
|
1537
1534
|
}));
|
|
1538
|
-
export const DeleteAppRequest = /*@__PURE__*/
|
|
1535
|
+
export const DeleteAppRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1539
1536
|
accountAppId: Schema.String.pipe(T.HttpPath("accountAppId")),
|
|
1540
1537
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1541
1538
|
}).pipe(T.Http({
|
|
1542
1539
|
method: "DELETE",
|
|
1543
1540
|
path: "/accounts/{account_id}/magic/apps/{accountAppId}",
|
|
1544
1541
|
})));
|
|
1545
|
-
export const DeleteAppResponse = /*@__PURE__*/
|
|
1542
|
+
export const DeleteAppResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1546
1543
|
accountAppId: Schema.String,
|
|
1547
1544
|
hostnames: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1548
1545
|
ipSubnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -1559,19 +1556,19 @@ export const DeleteAppResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
1559
1556
|
type: "type",
|
|
1560
1557
|
}))
|
|
1561
1558
|
.pipe(T.ResponsePath("result")));
|
|
1562
|
-
export const deleteApp = /*@__PURE__*/
|
|
1559
|
+
export const deleteApp = /*@__PURE__*/ API.make(() => ({
|
|
1563
1560
|
input: DeleteAppRequest,
|
|
1564
1561
|
output: DeleteAppResponse,
|
|
1565
1562
|
errors: [AppNotFound, MagicWanUnauthorized, Forbidden],
|
|
1566
1563
|
}));
|
|
1567
|
-
export const GetCf1SiteRequest = /*@__PURE__*/
|
|
1564
|
+
export const GetCf1SiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1568
1565
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1569
1566
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1570
1567
|
}).pipe(T.Http({
|
|
1571
1568
|
method: "GET",
|
|
1572
1569
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}",
|
|
1573
1570
|
})));
|
|
1574
|
-
export const GetCf1SiteResponse = /*@__PURE__*/
|
|
1571
|
+
export const GetCf1SiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1575
1572
|
name: Schema.String,
|
|
1576
1573
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1577
1574
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1588,18 +1585,18 @@ export const GetCf1SiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1588
1585
|
modifiedOn: "modified_on",
|
|
1589
1586
|
}))
|
|
1590
1587
|
.pipe(T.ResponsePath("result")));
|
|
1591
|
-
export const getCf1Site = /*@__PURE__*/
|
|
1588
|
+
export const getCf1Site = /*@__PURE__*/ API.make(() => ({
|
|
1592
1589
|
input: GetCf1SiteRequest,
|
|
1593
1590
|
output: GetCf1SiteResponse,
|
|
1594
1591
|
errors: [],
|
|
1595
1592
|
}));
|
|
1596
|
-
export const ListCf1SitesRequest = /*@__PURE__*/
|
|
1593
|
+
export const ListCf1SitesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1597
1594
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1598
1595
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/cf1_sites" })));
|
|
1599
|
-
export const ListCf1SitesResponse = /*@__PURE__*/
|
|
1596
|
+
export const ListCf1SitesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1600
1597
|
result: Schema.Array(ListCf1SitesResponseResult),
|
|
1601
1598
|
}));
|
|
1602
|
-
export const listCf1Sites = /*@__PURE__*/
|
|
1599
|
+
export const listCf1Sites = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1603
1600
|
input: ListCf1SitesRequest,
|
|
1604
1601
|
output: ListCf1SitesResponse,
|
|
1605
1602
|
errors: [],
|
|
@@ -1608,17 +1605,17 @@ export const listCf1Sites = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
1608
1605
|
items: "result",
|
|
1609
1606
|
},
|
|
1610
1607
|
}));
|
|
1611
|
-
export const CreateCf1SiteRequest = /*@__PURE__*/
|
|
1608
|
+
export const CreateCf1SiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1612
1609
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1613
1610
|
body: Schema.Array(Cf1SiteParam).pipe(T.HttpBody()),
|
|
1614
1611
|
}).pipe(T.Http({
|
|
1615
1612
|
method: "POST",
|
|
1616
1613
|
path: "/accounts/{account_id}/magic/cf1_sites",
|
|
1617
1614
|
})));
|
|
1618
|
-
export const CreateCf1SiteResponse = /*@__PURE__*/
|
|
1615
|
+
export const CreateCf1SiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1619
1616
|
result: Schema.Array(ListCf1SitesResponseResult),
|
|
1620
1617
|
}));
|
|
1621
|
-
export const createCf1Site = /*@__PURE__*/
|
|
1618
|
+
export const createCf1Site = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1622
1619
|
input: CreateCf1SiteRequest,
|
|
1623
1620
|
output: CreateCf1SiteResponse,
|
|
1624
1621
|
errors: [],
|
|
@@ -1627,7 +1624,7 @@ export const createCf1Site = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
1627
1624
|
items: "result",
|
|
1628
1625
|
},
|
|
1629
1626
|
}));
|
|
1630
|
-
export const PatchCf1SiteRequest = /*@__PURE__*/
|
|
1627
|
+
export const PatchCf1SiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1631
1628
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1632
1629
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1633
1630
|
description: Schema.optional(Schema.String),
|
|
@@ -1637,7 +1634,7 @@ export const PatchCf1SiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1637
1634
|
method: "PATCH",
|
|
1638
1635
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}",
|
|
1639
1636
|
})));
|
|
1640
|
-
export const PatchCf1SiteResponse = /*@__PURE__*/
|
|
1637
|
+
export const PatchCf1SiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1641
1638
|
name: Schema.String,
|
|
1642
1639
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1643
1640
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1654,19 +1651,19 @@ export const PatchCf1SiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
1654
1651
|
modifiedOn: "modified_on",
|
|
1655
1652
|
}))
|
|
1656
1653
|
.pipe(T.ResponsePath("result")));
|
|
1657
|
-
export const patchCf1Site = /*@__PURE__*/
|
|
1654
|
+
export const patchCf1Site = /*@__PURE__*/ API.make(() => ({
|
|
1658
1655
|
input: PatchCf1SiteRequest,
|
|
1659
1656
|
output: PatchCf1SiteResponse,
|
|
1660
1657
|
errors: [],
|
|
1661
1658
|
}));
|
|
1662
|
-
export const DeleteCf1SiteRequest = /*@__PURE__*/
|
|
1659
|
+
export const DeleteCf1SiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1663
1660
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1664
1661
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1665
1662
|
}).pipe(T.Http({
|
|
1666
1663
|
method: "DELETE",
|
|
1667
1664
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}",
|
|
1668
1665
|
})));
|
|
1669
|
-
export const DeleteCf1SiteResponse = /*@__PURE__*/
|
|
1666
|
+
export const DeleteCf1SiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1670
1667
|
name: Schema.String,
|
|
1671
1668
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1672
1669
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1683,12 +1680,12 @@ export const DeleteCf1SiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1683
1680
|
modifiedOn: "modified_on",
|
|
1684
1681
|
}))
|
|
1685
1682
|
.pipe(T.ResponsePath("result")));
|
|
1686
|
-
export const deleteCf1Site = /*@__PURE__*/
|
|
1683
|
+
export const deleteCf1Site = /*@__PURE__*/ API.make(() => ({
|
|
1687
1684
|
input: DeleteCf1SiteRequest,
|
|
1688
1685
|
output: DeleteCf1SiteResponse,
|
|
1689
1686
|
errors: [],
|
|
1690
1687
|
}));
|
|
1691
|
-
export const GetCf1SiteRampRequest = /*@__PURE__*/
|
|
1688
|
+
export const GetCf1SiteRampRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1692
1689
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1693
1690
|
rampId: Schema.String.pipe(T.HttpPath("rampId")),
|
|
1694
1691
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1697,7 +1694,7 @@ export const GetCf1SiteRampRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1697
1694
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}/ramps/{rampId}",
|
|
1698
1695
|
})));
|
|
1699
1696
|
export const GetCf1SiteRampResponse =
|
|
1700
|
-
/*@__PURE__*/
|
|
1697
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1701
1698
|
id: Schema.String,
|
|
1702
1699
|
createdOn: Schema.String,
|
|
1703
1700
|
modifiedOn: Schema.String,
|
|
@@ -1733,13 +1730,13 @@ export const GetCf1SiteRampResponse =
|
|
|
1733
1730
|
mplsInterconnect: "mpls_interconnect",
|
|
1734
1731
|
}))
|
|
1735
1732
|
.pipe(T.ResponsePath("result")));
|
|
1736
|
-
export const getCf1SiteRamp = /*@__PURE__*/
|
|
1733
|
+
export const getCf1SiteRamp = /*@__PURE__*/ API.make(() => ({
|
|
1737
1734
|
input: GetCf1SiteRampRequest,
|
|
1738
1735
|
output: GetCf1SiteRampResponse,
|
|
1739
1736
|
errors: [],
|
|
1740
1737
|
}));
|
|
1741
1738
|
export const ListCf1SiteRampsRequest =
|
|
1742
|
-
/*@__PURE__*/
|
|
1739
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1743
1740
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1744
1741
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1745
1742
|
}).pipe(T.Http({
|
|
@@ -1747,10 +1744,10 @@ export const ListCf1SiteRampsRequest =
|
|
|
1747
1744
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}/ramps",
|
|
1748
1745
|
})));
|
|
1749
1746
|
export const ListCf1SiteRampsResponse =
|
|
1750
|
-
/*@__PURE__*/
|
|
1747
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1751
1748
|
result: Schema.Array(ListCf1SiteRampsResponseResult),
|
|
1752
1749
|
}));
|
|
1753
|
-
export const listCf1SiteRamps = /*@__PURE__*/
|
|
1750
|
+
export const listCf1SiteRamps = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1754
1751
|
input: ListCf1SiteRampsRequest,
|
|
1755
1752
|
output: ListCf1SiteRampsResponse,
|
|
1756
1753
|
errors: [],
|
|
@@ -1760,7 +1757,7 @@ export const listCf1SiteRamps = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
|
|
|
1760
1757
|
},
|
|
1761
1758
|
}));
|
|
1762
1759
|
export const CreateCf1SiteRampRequest =
|
|
1763
|
-
/*@__PURE__*/
|
|
1760
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1764
1761
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1765
1762
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1766
1763
|
body: Schema.Array(Body).pipe(T.HttpBody()),
|
|
@@ -1769,10 +1766,10 @@ export const CreateCf1SiteRampRequest =
|
|
|
1769
1766
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}/ramps",
|
|
1770
1767
|
})));
|
|
1771
1768
|
export const CreateCf1SiteRampResponse =
|
|
1772
|
-
/*@__PURE__*/
|
|
1769
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1773
1770
|
result: Schema.Array(ListCf1SiteRampsResponseResult),
|
|
1774
1771
|
}));
|
|
1775
|
-
export const createCf1SiteRamp = /*@__PURE__*/
|
|
1772
|
+
export const createCf1SiteRamp = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1776
1773
|
input: CreateCf1SiteRampRequest,
|
|
1777
1774
|
output: CreateCf1SiteRampResponse,
|
|
1778
1775
|
errors: [],
|
|
@@ -1782,7 +1779,7 @@ export const createCf1SiteRamp = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated((
|
|
|
1782
1779
|
},
|
|
1783
1780
|
}));
|
|
1784
1781
|
export const DeleteCf1SiteRampRequest =
|
|
1785
|
-
/*@__PURE__*/
|
|
1782
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1786
1783
|
cf1SiteId: Schema.String.pipe(T.HttpPath("cf1SiteId")),
|
|
1787
1784
|
rampId: Schema.String.pipe(T.HttpPath("rampId")),
|
|
1788
1785
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1791,7 +1788,7 @@ export const DeleteCf1SiteRampRequest =
|
|
|
1791
1788
|
path: "/accounts/{account_id}/magic/cf1_sites/{cf1SiteId}/ramps/{rampId}",
|
|
1792
1789
|
})));
|
|
1793
1790
|
export const DeleteCf1SiteRampResponse =
|
|
1794
|
-
/*@__PURE__*/
|
|
1791
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1795
1792
|
id: Schema.String,
|
|
1796
1793
|
createdOn: Schema.String,
|
|
1797
1794
|
modifiedOn: Schema.String,
|
|
@@ -1827,13 +1824,13 @@ export const DeleteCf1SiteRampResponse =
|
|
|
1827
1824
|
mplsInterconnect: "mpls_interconnect",
|
|
1828
1825
|
}))
|
|
1829
1826
|
.pipe(T.ResponsePath("result")));
|
|
1830
|
-
export const deleteCf1SiteRamp = /*@__PURE__*/
|
|
1827
|
+
export const deleteCf1SiteRamp = /*@__PURE__*/ API.make(() => ({
|
|
1831
1828
|
input: DeleteCf1SiteRampRequest,
|
|
1832
1829
|
output: DeleteCf1SiteRampResponse,
|
|
1833
1830
|
errors: [],
|
|
1834
1831
|
}));
|
|
1835
1832
|
export const GetCfInterconnectRequest =
|
|
1836
|
-
/*@__PURE__*/
|
|
1833
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1837
1834
|
cfInterconnectId: Schema.String.pipe(T.HttpPath("cfInterconnectId")),
|
|
1838
1835
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1839
1836
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -1842,16 +1839,16 @@ export const GetCfInterconnectRequest =
|
|
|
1842
1839
|
path: "/accounts/{account_id}/magic/cf_interconnects/{cfInterconnectId}",
|
|
1843
1840
|
})));
|
|
1844
1841
|
export const GetCfInterconnectResponse =
|
|
1845
|
-
/*@__PURE__*/
|
|
1842
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1846
1843
|
interconnect: Schema.optional(Schema.Union([Interconnect, Schema.Null])),
|
|
1847
1844
|
}).pipe(T.ResponsePath("result")));
|
|
1848
|
-
export const getCfInterconnect = /*@__PURE__*/
|
|
1845
|
+
export const getCfInterconnect = /*@__PURE__*/ API.make(() => ({
|
|
1849
1846
|
input: GetCfInterconnectRequest,
|
|
1850
1847
|
output: GetCfInterconnectResponse,
|
|
1851
1848
|
errors: [],
|
|
1852
1849
|
}));
|
|
1853
1850
|
export const ListCfInterconnectsRequest =
|
|
1854
|
-
/*@__PURE__*/
|
|
1851
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1855
1852
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1856
1853
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
1857
1854
|
}).pipe(T.Http({
|
|
@@ -1859,16 +1856,16 @@ export const ListCfInterconnectsRequest =
|
|
|
1859
1856
|
path: "/accounts/{account_id}/magic/cf_interconnects",
|
|
1860
1857
|
})));
|
|
1861
1858
|
export const ListCfInterconnectsResponse =
|
|
1862
|
-
/*@__PURE__*/
|
|
1859
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1863
1860
|
interconnects: Schema.optional(Schema.Union([Schema.Array(Interconnect), Schema.Null])),
|
|
1864
1861
|
}).pipe(T.ResponsePath("result")));
|
|
1865
|
-
export const listCfInterconnects = /*@__PURE__*/
|
|
1862
|
+
export const listCfInterconnects = /*@__PURE__*/ API.make(() => ({
|
|
1866
1863
|
input: ListCfInterconnectsRequest,
|
|
1867
1864
|
output: ListCfInterconnectsResponse,
|
|
1868
1865
|
errors: [],
|
|
1869
1866
|
}));
|
|
1870
1867
|
export const PutCfInterconnectRequest =
|
|
1871
|
-
/*@__PURE__*/
|
|
1868
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1872
1869
|
cfInterconnectId: Schema.String.pipe(T.HttpPath("cfInterconnectId")),
|
|
1873
1870
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1874
1871
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -1894,7 +1891,7 @@ export const PutCfInterconnectRequest =
|
|
|
1894
1891
|
path: "/accounts/{account_id}/magic/cf_interconnects/{cfInterconnectId}",
|
|
1895
1892
|
})));
|
|
1896
1893
|
export const PutCfInterconnectResponse =
|
|
1897
|
-
/*@__PURE__*/
|
|
1894
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1898
1895
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1899
1896
|
modifiedInterconnect: Schema.optional(Schema.Union([Interconnect, Schema.Null])),
|
|
1900
1897
|
})
|
|
@@ -1903,19 +1900,19 @@ export const PutCfInterconnectResponse =
|
|
|
1903
1900
|
modifiedInterconnect: "modified_interconnect",
|
|
1904
1901
|
}))
|
|
1905
1902
|
.pipe(T.ResponsePath("result")));
|
|
1906
|
-
export const putCfInterconnect = /*@__PURE__*/
|
|
1903
|
+
export const putCfInterconnect = /*@__PURE__*/ API.make(() => ({
|
|
1907
1904
|
input: PutCfInterconnectRequest,
|
|
1908
1905
|
output: PutCfInterconnectResponse,
|
|
1909
1906
|
errors: [],
|
|
1910
1907
|
}));
|
|
1911
|
-
export const GetConnectorRequest = /*@__PURE__*/
|
|
1908
|
+
export const GetConnectorRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1912
1909
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
1913
1910
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1914
1911
|
}).pipe(T.Http({
|
|
1915
1912
|
method: "GET",
|
|
1916
1913
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}",
|
|
1917
1914
|
})));
|
|
1918
|
-
export const GetConnectorResponse = /*@__PURE__*/
|
|
1915
|
+
export const GetConnectorResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1919
1916
|
id: Schema.String,
|
|
1920
1917
|
activated: Schema.Boolean,
|
|
1921
1918
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -1961,12 +1958,12 @@ export const GetConnectorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
1961
1958
|
siteId: "site_id",
|
|
1962
1959
|
}))
|
|
1963
1960
|
.pipe(T.ResponsePath("result")));
|
|
1964
|
-
export const getConnector = /*@__PURE__*/
|
|
1961
|
+
export const getConnector = /*@__PURE__*/ API.make(() => ({
|
|
1965
1962
|
input: GetConnectorRequest,
|
|
1966
1963
|
output: GetConnectorResponse,
|
|
1967
1964
|
errors: [],
|
|
1968
1965
|
}));
|
|
1969
|
-
export const ListConnectorsRequest = /*@__PURE__*/
|
|
1966
|
+
export const ListConnectorsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1970
1967
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1971
1968
|
deviceType: Schema.optional(Schema.Union([Schema.Literals(["MANAGED", "LICENSED"]), Schema.String])).pipe(T.HttpQuery("device_type")),
|
|
1972
1969
|
}).pipe(T.Http({
|
|
@@ -1974,10 +1971,10 @@ export const ListConnectorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1974
1971
|
path: "/accounts/{account_id}/magic/connectors",
|
|
1975
1972
|
})));
|
|
1976
1973
|
export const ListConnectorsResponse =
|
|
1977
|
-
/*@__PURE__*/
|
|
1974
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1978
1975
|
result: Schema.Array(ListConnectorsResponseResult),
|
|
1979
1976
|
}));
|
|
1980
|
-
export const listConnectors = /*@__PURE__*/
|
|
1977
|
+
export const listConnectors = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1981
1978
|
input: ListConnectorsRequest,
|
|
1982
1979
|
output: ListConnectorsResponse,
|
|
1983
1980
|
errors: [],
|
|
@@ -1987,7 +1984,7 @@ export const listConnectors = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =
|
|
|
1987
1984
|
},
|
|
1988
1985
|
}));
|
|
1989
1986
|
export const CreateConnectorRequest =
|
|
1990
|
-
/*@__PURE__*/
|
|
1987
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1991
1988
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1992
1989
|
device: Device2,
|
|
1993
1990
|
activated: Schema.optional(Schema.Boolean),
|
|
@@ -2026,7 +2023,7 @@ export const CreateConnectorRequest =
|
|
|
2026
2023
|
path: "/accounts/{account_id}/magic/connectors",
|
|
2027
2024
|
})));
|
|
2028
2025
|
export const CreateConnectorResponse =
|
|
2029
|
-
/*@__PURE__*/
|
|
2026
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2030
2027
|
id: Schema.String,
|
|
2031
2028
|
activated: Schema.Boolean,
|
|
2032
2029
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -2072,13 +2069,13 @@ export const CreateConnectorResponse =
|
|
|
2072
2069
|
siteId: "site_id",
|
|
2073
2070
|
}))
|
|
2074
2071
|
.pipe(T.ResponsePath("result")));
|
|
2075
|
-
export const createConnector = /*@__PURE__*/
|
|
2072
|
+
export const createConnector = /*@__PURE__*/ API.make(() => ({
|
|
2076
2073
|
input: CreateConnectorRequest,
|
|
2077
2074
|
output: CreateConnectorResponse,
|
|
2078
2075
|
errors: [],
|
|
2079
2076
|
}));
|
|
2080
2077
|
export const UpdateConnectorRequest =
|
|
2081
|
-
/*@__PURE__*/
|
|
2078
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2082
2079
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2083
2080
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2084
2081
|
activated: Schema.optional(Schema.Boolean),
|
|
@@ -2118,7 +2115,7 @@ export const UpdateConnectorRequest =
|
|
|
2118
2115
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}",
|
|
2119
2116
|
})));
|
|
2120
2117
|
export const UpdateConnectorResponse =
|
|
2121
|
-
/*@__PURE__*/
|
|
2118
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2122
2119
|
id: Schema.String,
|
|
2123
2120
|
activated: Schema.Boolean,
|
|
2124
2121
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -2164,12 +2161,12 @@ export const UpdateConnectorResponse =
|
|
|
2164
2161
|
siteId: "site_id",
|
|
2165
2162
|
}))
|
|
2166
2163
|
.pipe(T.ResponsePath("result")));
|
|
2167
|
-
export const updateConnector = /*@__PURE__*/
|
|
2164
|
+
export const updateConnector = /*@__PURE__*/ API.make(() => ({
|
|
2168
2165
|
input: UpdateConnectorRequest,
|
|
2169
2166
|
output: UpdateConnectorResponse,
|
|
2170
2167
|
errors: [],
|
|
2171
2168
|
}));
|
|
2172
|
-
export const PatchConnectorRequest = /*@__PURE__*/
|
|
2169
|
+
export const PatchConnectorRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2173
2170
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2174
2171
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2175
2172
|
activated: Schema.optional(Schema.Boolean),
|
|
@@ -2209,7 +2206,7 @@ export const PatchConnectorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
2209
2206
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}",
|
|
2210
2207
|
})));
|
|
2211
2208
|
export const PatchConnectorResponse =
|
|
2212
|
-
/*@__PURE__*/
|
|
2209
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2213
2210
|
id: Schema.String,
|
|
2214
2211
|
activated: Schema.Boolean,
|
|
2215
2212
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -2255,13 +2252,13 @@ export const PatchConnectorResponse =
|
|
|
2255
2252
|
siteId: "site_id",
|
|
2256
2253
|
}))
|
|
2257
2254
|
.pipe(T.ResponsePath("result")));
|
|
2258
|
-
export const patchConnector = /*@__PURE__*/
|
|
2255
|
+
export const patchConnector = /*@__PURE__*/ API.make(() => ({
|
|
2259
2256
|
input: PatchConnectorRequest,
|
|
2260
2257
|
output: PatchConnectorResponse,
|
|
2261
2258
|
errors: [],
|
|
2262
2259
|
}));
|
|
2263
2260
|
export const DeleteConnectorRequest =
|
|
2264
|
-
/*@__PURE__*/
|
|
2261
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2265
2262
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2266
2263
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2267
2264
|
}).pipe(T.Http({
|
|
@@ -2269,7 +2266,7 @@ export const DeleteConnectorRequest =
|
|
|
2269
2266
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}",
|
|
2270
2267
|
})));
|
|
2271
2268
|
export const DeleteConnectorResponse =
|
|
2272
|
-
/*@__PURE__*/
|
|
2269
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2273
2270
|
id: Schema.String,
|
|
2274
2271
|
activated: Schema.Boolean,
|
|
2275
2272
|
interruptWindowDaysOfWeek: Schema.Array(Schema.Union([
|
|
@@ -2315,13 +2312,13 @@ export const DeleteConnectorResponse =
|
|
|
2315
2312
|
siteId: "site_id",
|
|
2316
2313
|
}))
|
|
2317
2314
|
.pipe(T.ResponsePath("result")));
|
|
2318
|
-
export const deleteConnector = /*@__PURE__*/
|
|
2315
|
+
export const deleteConnector = /*@__PURE__*/ API.make(() => ({
|
|
2319
2316
|
input: DeleteConnectorRequest,
|
|
2320
2317
|
output: DeleteConnectorResponse,
|
|
2321
2318
|
errors: [],
|
|
2322
2319
|
}));
|
|
2323
2320
|
export const GetConnectorEventRequest =
|
|
2324
|
-
/*@__PURE__*/
|
|
2321
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2325
2322
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2326
2323
|
eventT: Schema.Number.pipe(T.HttpPath("eventT")),
|
|
2327
2324
|
eventN: Schema.Number.pipe(T.HttpPath("eventN")),
|
|
@@ -2331,7 +2328,7 @@ export const GetConnectorEventRequest =
|
|
|
2331
2328
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/events/{eventT}.{eventN}",
|
|
2332
2329
|
})));
|
|
2333
2330
|
export const GetConnectorEventResponse =
|
|
2334
|
-
/*@__PURE__*/
|
|
2331
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2335
2332
|
e: Schema.Union([
|
|
2336
2333
|
StartUpgrade,
|
|
2337
2334
|
RekeyInstallBoth,
|
|
@@ -2359,13 +2356,13 @@ export const GetConnectorEventResponse =
|
|
|
2359
2356
|
t: Schema.Number,
|
|
2360
2357
|
v: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2361
2358
|
}).pipe(T.ResponsePath("result")));
|
|
2362
|
-
export const getConnectorEvent = /*@__PURE__*/
|
|
2359
|
+
export const getConnectorEvent = /*@__PURE__*/ API.make(() => ({
|
|
2363
2360
|
input: GetConnectorEventRequest,
|
|
2364
2361
|
output: GetConnectorEventResponse,
|
|
2365
2362
|
errors: [],
|
|
2366
2363
|
}));
|
|
2367
2364
|
export const ListConnectorEventsRequest =
|
|
2368
|
-
/*@__PURE__*/
|
|
2365
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2369
2366
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2370
2367
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2371
2368
|
from: Schema.Number.pipe(T.HttpQuery("from")),
|
|
@@ -2378,18 +2375,18 @@ export const ListConnectorEventsRequest =
|
|
|
2378
2375
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/events",
|
|
2379
2376
|
})));
|
|
2380
2377
|
export const ListConnectorEventsResponse =
|
|
2381
|
-
/*@__PURE__*/
|
|
2378
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2382
2379
|
count: Schema.Number,
|
|
2383
2380
|
items: Schema.Array(Item),
|
|
2384
2381
|
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2385
2382
|
}).pipe(T.ResponsePath("result")));
|
|
2386
|
-
export const listConnectorEvents = /*@__PURE__*/
|
|
2383
|
+
export const listConnectorEvents = /*@__PURE__*/ API.make(() => ({
|
|
2387
2384
|
input: ListConnectorEventsRequest,
|
|
2388
2385
|
output: ListConnectorEventsResponse,
|
|
2389
2386
|
errors: [],
|
|
2390
2387
|
}));
|
|
2391
2388
|
export const ListConnectorEventLatestsRequest =
|
|
2392
|
-
/*@__PURE__*/
|
|
2389
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2393
2390
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2394
2391
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2395
2392
|
}).pipe(T.Http({
|
|
@@ -2397,17 +2394,17 @@ export const ListConnectorEventLatestsRequest =
|
|
|
2397
2394
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/events/latest",
|
|
2398
2395
|
})));
|
|
2399
2396
|
export const ListConnectorEventLatestsResponse =
|
|
2400
|
-
/*@__PURE__*/
|
|
2397
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2401
2398
|
count: Schema.Number,
|
|
2402
2399
|
items: Schema.Array(Item2),
|
|
2403
2400
|
}).pipe(T.ResponsePath("result")));
|
|
2404
|
-
export const listConnectorEventLatests = /*@__PURE__*/
|
|
2401
|
+
export const listConnectorEventLatests = /*@__PURE__*/ API.make(() => ({
|
|
2405
2402
|
input: ListConnectorEventLatestsRequest,
|
|
2406
2403
|
output: ListConnectorEventLatestsResponse,
|
|
2407
2404
|
errors: [],
|
|
2408
2405
|
}));
|
|
2409
2406
|
export const GetConnectorSnapshotRequest =
|
|
2410
|
-
/*@__PURE__*/
|
|
2407
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2411
2408
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2412
2409
|
snapshotT: Schema.Number.pipe(T.HttpPath("snapshotT")),
|
|
2413
2410
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2416,7 +2413,7 @@ export const GetConnectorSnapshotRequest =
|
|
|
2416
2413
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/snapshots/{snapshotT}",
|
|
2417
2414
|
})));
|
|
2418
2415
|
export const GetConnectorSnapshotResponse =
|
|
2419
|
-
/*@__PURE__*/
|
|
2416
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2420
2417
|
countReclaimFailures: Schema.Number,
|
|
2421
2418
|
countReclaimedPaths: Schema.Number,
|
|
2422
2419
|
countRecordFailed: Schema.Number,
|
|
@@ -2767,13 +2764,13 @@ export const GetConnectorSnapshotResponse =
|
|
|
2767
2764
|
uptimeTotalMs: "uptime_total_ms",
|
|
2768
2765
|
}))
|
|
2769
2766
|
.pipe(T.ResponsePath("result")));
|
|
2770
|
-
export const getConnectorSnapshot = /*@__PURE__*/
|
|
2767
|
+
export const getConnectorSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2771
2768
|
input: GetConnectorSnapshotRequest,
|
|
2772
2769
|
output: GetConnectorSnapshotResponse,
|
|
2773
2770
|
errors: [],
|
|
2774
2771
|
}));
|
|
2775
2772
|
export const ListConnectorSnapshotsRequest =
|
|
2776
|
-
/*@__PURE__*/
|
|
2773
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2777
2774
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2778
2775
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2779
2776
|
from: Schema.Number.pipe(T.HttpQuery("from")),
|
|
@@ -2785,18 +2782,18 @@ export const ListConnectorSnapshotsRequest =
|
|
|
2785
2782
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/snapshots",
|
|
2786
2783
|
})));
|
|
2787
2784
|
export const ListConnectorSnapshotsResponse =
|
|
2788
|
-
/*@__PURE__*/
|
|
2785
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2789
2786
|
count: Schema.Number,
|
|
2790
2787
|
items: Schema.Array(Item3),
|
|
2791
2788
|
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2792
2789
|
}).pipe(T.ResponsePath("result")));
|
|
2793
|
-
export const listConnectorSnapshots = /*@__PURE__*/
|
|
2790
|
+
export const listConnectorSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2794
2791
|
input: ListConnectorSnapshotsRequest,
|
|
2795
2792
|
output: ListConnectorSnapshotsResponse,
|
|
2796
2793
|
errors: [],
|
|
2797
2794
|
}));
|
|
2798
2795
|
export const ListConnectorSnapshotLatestsRequest =
|
|
2799
|
-
/*@__PURE__*/
|
|
2796
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2800
2797
|
connectorId: Schema.String.pipe(T.HttpPath("connectorId")),
|
|
2801
2798
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2802
2799
|
}).pipe(T.Http({
|
|
@@ -2804,17 +2801,17 @@ export const ListConnectorSnapshotLatestsRequest =
|
|
|
2804
2801
|
path: "/accounts/{account_id}/magic/connectors/{connectorId}/telemetry/snapshots/latest",
|
|
2805
2802
|
})));
|
|
2806
2803
|
export const ListConnectorSnapshotLatestsResponse =
|
|
2807
|
-
/*@__PURE__*/
|
|
2804
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2808
2805
|
count: Schema.Number,
|
|
2809
2806
|
items: Schema.Array(Item4),
|
|
2810
2807
|
}).pipe(T.ResponsePath("result")));
|
|
2811
|
-
export const listConnectorSnapshotLatests = /*@__PURE__*/
|
|
2808
|
+
export const listConnectorSnapshotLatests = /*@__PURE__*/ API.make(() => ({
|
|
2812
2809
|
input: ListConnectorSnapshotLatestsRequest,
|
|
2813
2810
|
output: ListConnectorSnapshotLatestsResponse,
|
|
2814
2811
|
errors: [],
|
|
2815
2812
|
}));
|
|
2816
2813
|
export const PskGenerateIpsecTunnelRequest =
|
|
2817
|
-
/*@__PURE__*/
|
|
2814
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2818
2815
|
ipsecTunnelId: Schema.String.pipe(T.HttpPath("ipsecTunnelId")),
|
|
2819
2816
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2820
2817
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -2823,7 +2820,7 @@ export const PskGenerateIpsecTunnelRequest =
|
|
|
2823
2820
|
path: "/accounts/{account_id}/magic/ipsec_tunnels/{ipsecTunnelId}/psk_generate",
|
|
2824
2821
|
})));
|
|
2825
2822
|
export const PskGenerateIpsecTunnelResponse =
|
|
2826
|
-
/*@__PURE__*/
|
|
2823
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2827
2824
|
ipsecTunnelId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2828
2825
|
psk: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2829
2826
|
pskMetadata: Schema.optional(Schema.Union([Pskmetadata, Schema.Null])),
|
|
@@ -2834,12 +2831,12 @@ export const PskGenerateIpsecTunnelResponse =
|
|
|
2834
2831
|
pskMetadata: "psk_metadata",
|
|
2835
2832
|
}))
|
|
2836
2833
|
.pipe(T.ResponsePath("result")));
|
|
2837
|
-
export const pskGenerateIpsecTunnel = /*@__PURE__*/
|
|
2834
|
+
export const pskGenerateIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
2838
2835
|
input: PskGenerateIpsecTunnelRequest,
|
|
2839
2836
|
output: PskGenerateIpsecTunnelResponse,
|
|
2840
2837
|
errors: [],
|
|
2841
2838
|
}));
|
|
2842
|
-
export const GetGreTunnelRequest = /*@__PURE__*/
|
|
2839
|
+
export const GetGreTunnelRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2843
2840
|
greTunnelId: Schema.String.pipe(T.HttpPath("greTunnelId")),
|
|
2844
2841
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2845
2842
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -2847,17 +2844,17 @@ export const GetGreTunnelRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
2847
2844
|
method: "GET",
|
|
2848
2845
|
path: "/accounts/{account_id}/magic/gre_tunnels/{greTunnelId}",
|
|
2849
2846
|
})));
|
|
2850
|
-
export const GetGreTunnelResponse = /*@__PURE__*/
|
|
2847
|
+
export const GetGreTunnelResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2851
2848
|
greTunnel: Schema.optional(Schema.Union([Gretunnel, Schema.Null])),
|
|
2852
2849
|
})
|
|
2853
2850
|
.pipe(Schema.encodeKeys({ greTunnel: "gre_tunnel" }))
|
|
2854
2851
|
.pipe(T.ResponsePath("result")));
|
|
2855
|
-
export const getGreTunnel = /*@__PURE__*/
|
|
2852
|
+
export const getGreTunnel = /*@__PURE__*/ API.make(() => ({
|
|
2856
2853
|
input: GetGreTunnelRequest,
|
|
2857
2854
|
output: GetGreTunnelResponse,
|
|
2858
2855
|
errors: [GreTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
2859
2856
|
}));
|
|
2860
|
-
export const ListGreTunnelsRequest = /*@__PURE__*/
|
|
2857
|
+
export const ListGreTunnelsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2861
2858
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2862
2859
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
2863
2860
|
}).pipe(T.Http({
|
|
@@ -2865,18 +2862,18 @@ export const ListGreTunnelsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
2865
2862
|
path: "/accounts/{account_id}/magic/gre_tunnels",
|
|
2866
2863
|
})));
|
|
2867
2864
|
export const ListGreTunnelsResponse =
|
|
2868
|
-
/*@__PURE__*/
|
|
2865
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2869
2866
|
greTunnels: Schema.optional(Schema.Union([Schema.Array(Gretunnel), Schema.Null])),
|
|
2870
2867
|
})
|
|
2871
2868
|
.pipe(Schema.encodeKeys({ greTunnels: "gre_tunnels" }))
|
|
2872
2869
|
.pipe(T.ResponsePath("result")));
|
|
2873
|
-
export const listGreTunnels = /*@__PURE__*/
|
|
2870
|
+
export const listGreTunnels = /*@__PURE__*/ API.make(() => ({
|
|
2874
2871
|
input: ListGreTunnelsRequest,
|
|
2875
2872
|
output: ListGreTunnelsResponse,
|
|
2876
2873
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
2877
2874
|
}));
|
|
2878
2875
|
export const CreateGreTunnelRequest =
|
|
2879
|
-
/*@__PURE__*/
|
|
2876
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2880
2877
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2881
2878
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
2882
2879
|
cloudflareGreEndpoint: Schema.String,
|
|
@@ -2907,7 +2904,7 @@ export const CreateGreTunnelRequest =
|
|
|
2907
2904
|
path: "/accounts/{account_id}/magic/gre_tunnels",
|
|
2908
2905
|
})));
|
|
2909
2906
|
export const CreateGreTunnelResponse =
|
|
2910
|
-
/*@__PURE__*/
|
|
2907
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2911
2908
|
id: Schema.String,
|
|
2912
2909
|
cloudflareGreEndpoint: Schema.String,
|
|
2913
2910
|
customerGreEndpoint: Schema.String,
|
|
@@ -2942,13 +2939,13 @@ export const CreateGreTunnelResponse =
|
|
|
2942
2939
|
ttl: "ttl",
|
|
2943
2940
|
}))
|
|
2944
2941
|
.pipe(T.ResponsePath("result")));
|
|
2945
|
-
export const createGreTunnel = /*@__PURE__*/
|
|
2942
|
+
export const createGreTunnel = /*@__PURE__*/ API.make(() => ({
|
|
2946
2943
|
input: CreateGreTunnelRequest,
|
|
2947
2944
|
output: CreateGreTunnelResponse,
|
|
2948
2945
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
2949
2946
|
}));
|
|
2950
2947
|
export const UpdateGreTunnelRequest =
|
|
2951
|
-
/*@__PURE__*/
|
|
2948
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2952
2949
|
greTunnelId: Schema.String.pipe(T.HttpPath("greTunnelId")),
|
|
2953
2950
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2954
2951
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -2978,7 +2975,7 @@ export const UpdateGreTunnelRequest =
|
|
|
2978
2975
|
path: "/accounts/{account_id}/magic/gre_tunnels/{greTunnelId}",
|
|
2979
2976
|
})));
|
|
2980
2977
|
export const UpdateGreTunnelResponse =
|
|
2981
|
-
/*@__PURE__*/
|
|
2978
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2982
2979
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2983
2980
|
modifiedGreTunnel: Schema.optional(Schema.Union([Gretunnel, Schema.Null])),
|
|
2984
2981
|
})
|
|
@@ -2987,13 +2984,13 @@ export const UpdateGreTunnelResponse =
|
|
|
2987
2984
|
modifiedGreTunnel: "modified_gre_tunnel",
|
|
2988
2985
|
}))
|
|
2989
2986
|
.pipe(T.ResponsePath("result")));
|
|
2990
|
-
export const updateGreTunnel = /*@__PURE__*/
|
|
2987
|
+
export const updateGreTunnel = /*@__PURE__*/ API.make(() => ({
|
|
2991
2988
|
input: UpdateGreTunnelRequest,
|
|
2992
2989
|
output: UpdateGreTunnelResponse,
|
|
2993
2990
|
errors: [GreTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
2994
2991
|
}));
|
|
2995
2992
|
export const DeleteGreTunnelRequest =
|
|
2996
|
-
/*@__PURE__*/
|
|
2993
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2997
2994
|
greTunnelId: Schema.String.pipe(T.HttpPath("greTunnelId")),
|
|
2998
2995
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2999
2996
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -3002,7 +2999,7 @@ export const DeleteGreTunnelRequest =
|
|
|
3002
2999
|
path: "/accounts/{account_id}/magic/gre_tunnels/{greTunnelId}",
|
|
3003
3000
|
})));
|
|
3004
3001
|
export const DeleteGreTunnelResponse =
|
|
3005
|
-
/*@__PURE__*/
|
|
3002
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3006
3003
|
deleted: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3007
3004
|
deletedGreTunnel: Schema.optional(Schema.Union([Gretunnel, Schema.Null])),
|
|
3008
3005
|
})
|
|
@@ -3011,12 +3008,12 @@ export const DeleteGreTunnelResponse =
|
|
|
3011
3008
|
deletedGreTunnel: "deleted_gre_tunnel",
|
|
3012
3009
|
}))
|
|
3013
3010
|
.pipe(T.ResponsePath("result")));
|
|
3014
|
-
export const deleteGreTunnel = /*@__PURE__*/
|
|
3011
|
+
export const deleteGreTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3015
3012
|
input: DeleteGreTunnelRequest,
|
|
3016
3013
|
output: DeleteGreTunnelResponse,
|
|
3017
3014
|
errors: [GreTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3018
3015
|
}));
|
|
3019
|
-
export const GetIpsecTunnelRequest = /*@__PURE__*/
|
|
3016
|
+
export const GetIpsecTunnelRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3020
3017
|
ipsecTunnelId: Schema.String.pipe(T.HttpPath("ipsecTunnelId")),
|
|
3021
3018
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3022
3019
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -3025,18 +3022,18 @@ export const GetIpsecTunnelRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
3025
3022
|
path: "/accounts/{account_id}/magic/ipsec_tunnels/{ipsecTunnelId}",
|
|
3026
3023
|
})));
|
|
3027
3024
|
export const GetIpsecTunnelResponse =
|
|
3028
|
-
/*@__PURE__*/
|
|
3025
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3029
3026
|
ipsecTunnel: Schema.optional(Schema.Union([Ipsectunnel, Schema.Null])),
|
|
3030
3027
|
})
|
|
3031
3028
|
.pipe(Schema.encodeKeys({ ipsecTunnel: "ipsec_tunnel" }))
|
|
3032
3029
|
.pipe(T.ResponsePath("result")));
|
|
3033
|
-
export const getIpsecTunnel = /*@__PURE__*/
|
|
3030
|
+
export const getIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3034
3031
|
input: GetIpsecTunnelRequest,
|
|
3035
3032
|
output: GetIpsecTunnelResponse,
|
|
3036
3033
|
errors: [IpsecTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3037
3034
|
}));
|
|
3038
3035
|
export const ListIpsecTunnelsRequest =
|
|
3039
|
-
/*@__PURE__*/
|
|
3036
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3040
3037
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3041
3038
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
3042
3039
|
}).pipe(T.Http({
|
|
@@ -3044,18 +3041,18 @@ export const ListIpsecTunnelsRequest =
|
|
|
3044
3041
|
path: "/accounts/{account_id}/magic/ipsec_tunnels",
|
|
3045
3042
|
})));
|
|
3046
3043
|
export const ListIpsecTunnelsResponse =
|
|
3047
|
-
/*@__PURE__*/
|
|
3044
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3048
3045
|
ipsecTunnels: Schema.optional(Schema.Union([Schema.Array(Ipsectunnel), Schema.Null])),
|
|
3049
3046
|
})
|
|
3050
3047
|
.pipe(Schema.encodeKeys({ ipsecTunnels: "ipsec_tunnels" }))
|
|
3051
3048
|
.pipe(T.ResponsePath("result")));
|
|
3052
|
-
export const listIpsecTunnels = /*@__PURE__*/
|
|
3049
|
+
export const listIpsecTunnels = /*@__PURE__*/ API.make(() => ({
|
|
3053
3050
|
input: ListIpsecTunnelsRequest,
|
|
3054
3051
|
output: ListIpsecTunnelsResponse,
|
|
3055
3052
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
3056
3053
|
}));
|
|
3057
3054
|
export const CreateIpsecTunnelRequest =
|
|
3058
|
-
/*@__PURE__*/
|
|
3055
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3059
3056
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3060
3057
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
3061
3058
|
cloudflareEndpoint: Schema.String,
|
|
@@ -3088,7 +3085,7 @@ export const CreateIpsecTunnelRequest =
|
|
|
3088
3085
|
path: "/accounts/{account_id}/magic/ipsec_tunnels",
|
|
3089
3086
|
})));
|
|
3090
3087
|
export const CreateIpsecTunnelResponse =
|
|
3091
|
-
/*@__PURE__*/
|
|
3088
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3092
3089
|
id: Schema.String,
|
|
3093
3090
|
cloudflareEndpoint: Schema.String,
|
|
3094
3091
|
interfaceAddress: Schema.String,
|
|
@@ -3127,13 +3124,13 @@ export const CreateIpsecTunnelResponse =
|
|
|
3127
3124
|
replayProtection: "replay_protection",
|
|
3128
3125
|
}))
|
|
3129
3126
|
.pipe(T.ResponsePath("result")));
|
|
3130
|
-
export const createIpsecTunnel = /*@__PURE__*/
|
|
3127
|
+
export const createIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3131
3128
|
input: CreateIpsecTunnelRequest,
|
|
3132
3129
|
output: CreateIpsecTunnelResponse,
|
|
3133
3130
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
3134
3131
|
}));
|
|
3135
3132
|
export const UpdateIpsecTunnelRequest =
|
|
3136
|
-
/*@__PURE__*/
|
|
3133
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3137
3134
|
ipsecTunnelId: Schema.String.pipe(T.HttpPath("ipsecTunnelId")),
|
|
3138
3135
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3139
3136
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -3167,7 +3164,7 @@ export const UpdateIpsecTunnelRequest =
|
|
|
3167
3164
|
path: "/accounts/{account_id}/magic/ipsec_tunnels/{ipsecTunnelId}",
|
|
3168
3165
|
})));
|
|
3169
3166
|
export const UpdateIpsecTunnelResponse =
|
|
3170
|
-
/*@__PURE__*/
|
|
3167
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3171
3168
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3172
3169
|
modifiedIpsecTunnel: Schema.optional(Schema.Union([Ipsectunnel, Schema.Null])),
|
|
3173
3170
|
})
|
|
@@ -3176,13 +3173,13 @@ export const UpdateIpsecTunnelResponse =
|
|
|
3176
3173
|
modifiedIpsecTunnel: "modified_ipsec_tunnel",
|
|
3177
3174
|
}))
|
|
3178
3175
|
.pipe(T.ResponsePath("result")));
|
|
3179
|
-
export const updateIpsecTunnel = /*@__PURE__*/
|
|
3176
|
+
export const updateIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3180
3177
|
input: UpdateIpsecTunnelRequest,
|
|
3181
3178
|
output: UpdateIpsecTunnelResponse,
|
|
3182
3179
|
errors: [IpsecTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3183
3180
|
}));
|
|
3184
3181
|
export const DeleteIpsecTunnelRequest =
|
|
3185
|
-
/*@__PURE__*/
|
|
3182
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3186
3183
|
ipsecTunnelId: Schema.String.pipe(T.HttpPath("ipsecTunnelId")),
|
|
3187
3184
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3188
3185
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -3191,7 +3188,7 @@ export const DeleteIpsecTunnelRequest =
|
|
|
3191
3188
|
path: "/accounts/{account_id}/magic/ipsec_tunnels/{ipsecTunnelId}",
|
|
3192
3189
|
})));
|
|
3193
3190
|
export const DeleteIpsecTunnelResponse =
|
|
3194
|
-
/*@__PURE__*/
|
|
3191
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3195
3192
|
deleted: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3196
3193
|
deletedIpsecTunnel: Schema.optional(Schema.Union([Ipsectunnel, Schema.Null])),
|
|
3197
3194
|
})
|
|
@@ -3200,28 +3197,28 @@ export const DeleteIpsecTunnelResponse =
|
|
|
3200
3197
|
deletedIpsecTunnel: "deleted_ipsec_tunnel",
|
|
3201
3198
|
}))
|
|
3202
3199
|
.pipe(T.ResponsePath("result")));
|
|
3203
|
-
export const deleteIpsecTunnel = /*@__PURE__*/
|
|
3200
|
+
export const deleteIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3204
3201
|
input: DeleteIpsecTunnelRequest,
|
|
3205
3202
|
output: DeleteIpsecTunnelResponse,
|
|
3206
3203
|
errors: [IpsecTunnelNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3207
3204
|
}));
|
|
3208
|
-
export const GetPcapRequest = /*@__PURE__*/
|
|
3205
|
+
export const GetPcapRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3209
3206
|
pcapId: Schema.String.pipe(T.HttpPath("pcapId")),
|
|
3210
3207
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3211
3208
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps/{pcapId}" })));
|
|
3212
|
-
export const GetPcapResponse = /*@__PURE__*/
|
|
3213
|
-
export const getPcap = /*@__PURE__*/
|
|
3209
|
+
export const GetPcapResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([Pcap, MagicVisibilityPCAPsPCAPsResponseFull]).pipe(T.ResponsePath("result")));
|
|
3210
|
+
export const getPcap = /*@__PURE__*/ API.make(() => ({
|
|
3214
3211
|
input: GetPcapRequest,
|
|
3215
3212
|
output: GetPcapResponse,
|
|
3216
3213
|
errors: [],
|
|
3217
3214
|
}));
|
|
3218
|
-
export const ListPcapsRequest = /*@__PURE__*/
|
|
3215
|
+
export const ListPcapsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3219
3216
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3220
3217
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps" })));
|
|
3221
|
-
export const ListPcapsResponse = /*@__PURE__*/
|
|
3218
|
+
export const ListPcapsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3222
3219
|
result: Schema.Array(Schema.Union([Pcap, MagicVisibilityPCAPsPCAPsResponseFull])),
|
|
3223
3220
|
}));
|
|
3224
|
-
export const listPcaps = /*@__PURE__*/
|
|
3221
|
+
export const listPcaps = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3225
3222
|
input: ListPcapsRequest,
|
|
3226
3223
|
output: ListPcapsResponse,
|
|
3227
3224
|
errors: [],
|
|
@@ -3230,7 +3227,7 @@ export const listPcaps = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
3230
3227
|
items: "result",
|
|
3231
3228
|
},
|
|
3232
3229
|
}));
|
|
3233
|
-
export const CreatePcapRequest = /*@__PURE__*/
|
|
3230
|
+
export const CreatePcapRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3234
3231
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3235
3232
|
packetLimit: Schema.optional(Schema.Number),
|
|
3236
3233
|
system: Schema.Literal("magic-transit"),
|
|
@@ -3252,27 +3249,27 @@ export const CreatePcapRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
3252
3249
|
destinationConf: "destination_conf",
|
|
3253
3250
|
byteLimit: "byte_limit",
|
|
3254
3251
|
}), T.Http({ method: "POST", path: "/accounts/{account_id}/pcaps" })));
|
|
3255
|
-
export const CreatePcapResponse = /*@__PURE__*/
|
|
3256
|
-
export const createPcap = /*@__PURE__*/
|
|
3252
|
+
export const CreatePcapResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([Pcap, MagicVisibilityPCAPsPCAPsResponseFull]).pipe(T.ResponsePath("result")));
|
|
3253
|
+
export const createPcap = /*@__PURE__*/ API.make(() => ({
|
|
3257
3254
|
input: CreatePcapRequest,
|
|
3258
3255
|
output: CreatePcapResponse,
|
|
3259
3256
|
errors: [],
|
|
3260
3257
|
}));
|
|
3261
|
-
export const StopPcapRequest = /*@__PURE__*/
|
|
3258
|
+
export const StopPcapRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3262
3259
|
pcapId: Schema.String.pipe(T.HttpPath("pcapId")),
|
|
3263
3260
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3264
3261
|
}).pipe(T.Http({
|
|
3265
3262
|
method: "PUT",
|
|
3266
3263
|
path: "/accounts/{account_id}/pcaps/{pcapId}/stop",
|
|
3267
3264
|
})));
|
|
3268
|
-
export const StopPcapResponse = /*@__PURE__*/
|
|
3269
|
-
export const stopPcap = /*@__PURE__*/
|
|
3265
|
+
export const StopPcapResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
3266
|
+
export const stopPcap = /*@__PURE__*/ API.make(() => ({
|
|
3270
3267
|
input: StopPcapRequest,
|
|
3271
3268
|
output: StopPcapResponse,
|
|
3272
3269
|
errors: [],
|
|
3273
3270
|
}));
|
|
3274
3271
|
export const GetPcapDownloadRequest =
|
|
3275
|
-
/*@__PURE__*/
|
|
3272
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3276
3273
|
pcapId: Schema.String.pipe(T.HttpPath("pcapId")),
|
|
3277
3274
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3278
3275
|
}).pipe(T.Http({
|
|
@@ -3280,21 +3277,21 @@ export const GetPcapDownloadRequest =
|
|
|
3280
3277
|
path: "/accounts/{account_id}/pcaps/{pcapId}/download",
|
|
3281
3278
|
})));
|
|
3282
3279
|
export const GetPcapDownloadResponse =
|
|
3283
|
-
/*@__PURE__*/
|
|
3284
|
-
export const getPcapDownload = /*@__PURE__*/
|
|
3280
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
3281
|
+
export const getPcapDownload = /*@__PURE__*/ API.make(() => ({
|
|
3285
3282
|
input: GetPcapDownloadRequest,
|
|
3286
3283
|
output: GetPcapDownloadResponse,
|
|
3287
3284
|
errors: [],
|
|
3288
3285
|
}));
|
|
3289
3286
|
export const GetPcapOwnershipRequest =
|
|
3290
|
-
/*@__PURE__*/
|
|
3287
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3291
3288
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3292
3289
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pcaps/ownership" })));
|
|
3293
3290
|
export const GetPcapOwnershipResponse =
|
|
3294
|
-
/*@__PURE__*/
|
|
3291
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3295
3292
|
result: Schema.Array(GetPcapOwnershipResponseResult),
|
|
3296
3293
|
}));
|
|
3297
|
-
export const getPcapOwnership = /*@__PURE__*/
|
|
3294
|
+
export const getPcapOwnership = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3298
3295
|
input: GetPcapOwnershipRequest,
|
|
3299
3296
|
output: GetPcapOwnershipResponse,
|
|
3300
3297
|
errors: [],
|
|
@@ -3304,7 +3301,7 @@ export const getPcapOwnership = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
|
|
|
3304
3301
|
},
|
|
3305
3302
|
}));
|
|
3306
3303
|
export const CreatePcapOwnershipRequest =
|
|
3307
|
-
/*@__PURE__*/
|
|
3304
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3308
3305
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3309
3306
|
destinationConf: Schema.String,
|
|
3310
3307
|
}).pipe(Schema.encodeKeys({ destinationConf: "destination_conf" }), T.Http({
|
|
@@ -3312,7 +3309,7 @@ export const CreatePcapOwnershipRequest =
|
|
|
3312
3309
|
path: "/accounts/{account_id}/pcaps/ownership",
|
|
3313
3310
|
})));
|
|
3314
3311
|
export const CreatePcapOwnershipResponse =
|
|
3315
|
-
/*@__PURE__*/
|
|
3312
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3316
3313
|
id: Schema.String,
|
|
3317
3314
|
destinationConf: Schema.String,
|
|
3318
3315
|
filename: Schema.String,
|
|
@@ -3332,13 +3329,13 @@ export const CreatePcapOwnershipResponse =
|
|
|
3332
3329
|
validated: "validated",
|
|
3333
3330
|
}))
|
|
3334
3331
|
.pipe(T.ResponsePath("result")));
|
|
3335
|
-
export const createPcapOwnership = /*@__PURE__*/
|
|
3332
|
+
export const createPcapOwnership = /*@__PURE__*/ API.make(() => ({
|
|
3336
3333
|
input: CreatePcapOwnershipRequest,
|
|
3337
3334
|
output: CreatePcapOwnershipResponse,
|
|
3338
3335
|
errors: [],
|
|
3339
3336
|
}));
|
|
3340
3337
|
export const DeletePcapOwnershipRequest =
|
|
3341
|
-
/*@__PURE__*/
|
|
3338
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3342
3339
|
ownershipId: Schema.String.pipe(T.HttpPath("ownershipId")),
|
|
3343
3340
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3344
3341
|
}).pipe(T.Http({
|
|
@@ -3346,14 +3343,14 @@ export const DeletePcapOwnershipRequest =
|
|
|
3346
3343
|
path: "/accounts/{account_id}/pcaps/ownership/{ownershipId}",
|
|
3347
3344
|
})));
|
|
3348
3345
|
export const DeletePcapOwnershipResponse =
|
|
3349
|
-
/*@__PURE__*/
|
|
3350
|
-
export const deletePcapOwnership = /*@__PURE__*/
|
|
3346
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
3347
|
+
export const deletePcapOwnership = /*@__PURE__*/ API.make(() => ({
|
|
3351
3348
|
input: DeletePcapOwnershipRequest,
|
|
3352
3349
|
output: DeletePcapOwnershipResponse,
|
|
3353
3350
|
errors: [],
|
|
3354
3351
|
}));
|
|
3355
3352
|
export const ValidatePcapOwnershipRequest =
|
|
3356
|
-
/*@__PURE__*/
|
|
3353
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3357
3354
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3358
3355
|
destinationConf: Schema.String,
|
|
3359
3356
|
ownershipChallenge: Schema.String,
|
|
@@ -3365,7 +3362,7 @@ export const ValidatePcapOwnershipRequest =
|
|
|
3365
3362
|
path: "/accounts/{account_id}/pcaps/ownership/validate",
|
|
3366
3363
|
})));
|
|
3367
3364
|
export const ValidatePcapOwnershipResponse =
|
|
3368
|
-
/*@__PURE__*/
|
|
3365
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3369
3366
|
id: Schema.String,
|
|
3370
3367
|
destinationConf: Schema.String,
|
|
3371
3368
|
filename: Schema.String,
|
|
@@ -3385,13 +3382,13 @@ export const ValidatePcapOwnershipResponse =
|
|
|
3385
3382
|
validated: "validated",
|
|
3386
3383
|
}))
|
|
3387
3384
|
.pipe(T.ResponsePath("result")));
|
|
3388
|
-
export const validatePcapOwnership = /*@__PURE__*/
|
|
3385
|
+
export const validatePcapOwnership = /*@__PURE__*/ API.make(() => ({
|
|
3389
3386
|
input: ValidatePcapOwnershipRequest,
|
|
3390
3387
|
output: ValidatePcapOwnershipResponse,
|
|
3391
3388
|
errors: [],
|
|
3392
3389
|
}));
|
|
3393
3390
|
export const BulkPutCfInterconnectsRequest =
|
|
3394
|
-
/*@__PURE__*/
|
|
3391
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3395
3392
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3396
3393
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
3397
3394
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -3400,7 +3397,7 @@ export const BulkPutCfInterconnectsRequest =
|
|
|
3400
3397
|
path: "/accounts/{account_id}/magic/cf_interconnects",
|
|
3401
3398
|
})));
|
|
3402
3399
|
export const BulkPutCfInterconnectsResponse =
|
|
3403
|
-
/*@__PURE__*/
|
|
3400
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3404
3401
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3405
3402
|
modifiedInterconnects: Schema.optional(Schema.Union([Schema.Array(Interconnect), Schema.Null])),
|
|
3406
3403
|
})
|
|
@@ -3409,13 +3406,13 @@ export const BulkPutCfInterconnectsResponse =
|
|
|
3409
3406
|
modifiedInterconnects: "modified_interconnects",
|
|
3410
3407
|
}))
|
|
3411
3408
|
.pipe(T.ResponsePath("result")));
|
|
3412
|
-
export const bulkPutCfInterconnects = /*@__PURE__*/
|
|
3409
|
+
export const bulkPutCfInterconnects = /*@__PURE__*/ API.make(() => ({
|
|
3413
3410
|
input: BulkPutCfInterconnectsRequest,
|
|
3414
3411
|
output: BulkPutCfInterconnectsResponse,
|
|
3415
3412
|
errors: [],
|
|
3416
3413
|
}));
|
|
3417
3414
|
export const BulkPutGreTunnelsRequest =
|
|
3418
|
-
/*@__PURE__*/
|
|
3415
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3419
3416
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3420
3417
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
3421
3418
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -3424,7 +3421,7 @@ export const BulkPutGreTunnelsRequest =
|
|
|
3424
3421
|
path: "/accounts/{account_id}/magic/gre_tunnels",
|
|
3425
3422
|
})));
|
|
3426
3423
|
export const BulkPutGreTunnelsResponse =
|
|
3427
|
-
/*@__PURE__*/
|
|
3424
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3428
3425
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3429
3426
|
modifiedGreTunnels: Schema.optional(Schema.Union([Schema.Array(Gretunnel), Schema.Null])),
|
|
3430
3427
|
})
|
|
@@ -3433,13 +3430,13 @@ export const BulkPutGreTunnelsResponse =
|
|
|
3433
3430
|
modifiedGreTunnels: "modified_gre_tunnels",
|
|
3434
3431
|
}))
|
|
3435
3432
|
.pipe(T.ResponsePath("result")));
|
|
3436
|
-
export const bulkPutGreTunnels = /*@__PURE__*/
|
|
3433
|
+
export const bulkPutGreTunnels = /*@__PURE__*/ API.make(() => ({
|
|
3437
3434
|
input: BulkPutGreTunnelsRequest,
|
|
3438
3435
|
output: BulkPutGreTunnelsResponse,
|
|
3439
3436
|
errors: [],
|
|
3440
3437
|
}));
|
|
3441
3438
|
export const BulkPutIpsecTunnelsRequest =
|
|
3442
|
-
/*@__PURE__*/
|
|
3439
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3443
3440
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3444
3441
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
3445
3442
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -3448,7 +3445,7 @@ export const BulkPutIpsecTunnelsRequest =
|
|
|
3448
3445
|
path: "/accounts/{account_id}/magic/ipsec_tunnels",
|
|
3449
3446
|
})));
|
|
3450
3447
|
export const BulkPutIpsecTunnelsResponse =
|
|
3451
|
-
/*@__PURE__*/
|
|
3448
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3452
3449
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3453
3450
|
modifiedIpsecTunnels: Schema.optional(Schema.Union([Schema.Array(Ipsectunnel), Schema.Null])),
|
|
3454
3451
|
})
|
|
@@ -3457,16 +3454,16 @@ export const BulkPutIpsecTunnelsResponse =
|
|
|
3457
3454
|
modifiedIpsecTunnels: "modified_ipsec_tunnels",
|
|
3458
3455
|
}))
|
|
3459
3456
|
.pipe(T.ResponsePath("result")));
|
|
3460
|
-
export const bulkPutIpsecTunnels = /*@__PURE__*/
|
|
3457
|
+
export const bulkPutIpsecTunnels = /*@__PURE__*/ API.make(() => ({
|
|
3461
3458
|
input: BulkPutIpsecTunnelsRequest,
|
|
3462
3459
|
output: BulkPutIpsecTunnelsResponse,
|
|
3463
3460
|
errors: [],
|
|
3464
3461
|
}));
|
|
3465
|
-
export const BulkPutRoutesRequest = /*@__PURE__*/
|
|
3462
|
+
export const BulkPutRoutesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3466
3463
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3467
3464
|
routes: Schema.Array(Route),
|
|
3468
3465
|
}).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/magic/routes" })));
|
|
3469
|
-
export const BulkPutRoutesResponse = /*@__PURE__*/
|
|
3466
|
+
export const BulkPutRoutesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3470
3467
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3471
3468
|
modifiedRoutes: Schema.optional(Schema.Union([Schema.Array(ModifiedRoute), Schema.Null])),
|
|
3472
3469
|
})
|
|
@@ -3475,38 +3472,38 @@ export const BulkPutRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
3475
3472
|
modifiedRoutes: "modified_routes",
|
|
3476
3473
|
}))
|
|
3477
3474
|
.pipe(T.ResponsePath("result")));
|
|
3478
|
-
export const bulkPutRoutes = /*@__PURE__*/
|
|
3475
|
+
export const bulkPutRoutes = /*@__PURE__*/ API.make(() => ({
|
|
3479
3476
|
input: BulkPutRoutesRequest,
|
|
3480
3477
|
output: BulkPutRoutesResponse,
|
|
3481
3478
|
errors: [],
|
|
3482
3479
|
}));
|
|
3483
|
-
export const GetRouteRequest = /*@__PURE__*/
|
|
3480
|
+
export const GetRouteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3484
3481
|
routeId: Schema.String.pipe(T.HttpPath("routeId")),
|
|
3485
3482
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3486
3483
|
}).pipe(T.Http({
|
|
3487
3484
|
method: "GET",
|
|
3488
3485
|
path: "/accounts/{account_id}/magic/routes/{routeId}",
|
|
3489
3486
|
})));
|
|
3490
|
-
export const GetRouteResponse = /*@__PURE__*/
|
|
3487
|
+
export const GetRouteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3491
3488
|
route: Schema.optional(Schema.Union([ModifiedRoute, Schema.Null])),
|
|
3492
3489
|
}).pipe(T.ResponsePath("result")));
|
|
3493
|
-
export const getRoute = /*@__PURE__*/
|
|
3490
|
+
export const getRoute = /*@__PURE__*/ API.make(() => ({
|
|
3494
3491
|
input: GetRouteRequest,
|
|
3495
3492
|
output: GetRouteResponse,
|
|
3496
3493
|
errors: [RouteNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3497
3494
|
}));
|
|
3498
|
-
export const ListRoutesRequest = /*@__PURE__*/
|
|
3495
|
+
export const ListRoutesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3499
3496
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3500
3497
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/routes" })));
|
|
3501
|
-
export const ListRoutesResponse = /*@__PURE__*/
|
|
3498
|
+
export const ListRoutesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3502
3499
|
routes: Schema.optional(Schema.Union([Schema.Array(ModifiedRoute), Schema.Null])),
|
|
3503
3500
|
}).pipe(T.ResponsePath("result")));
|
|
3504
|
-
export const listRoutes = /*@__PURE__*/
|
|
3501
|
+
export const listRoutes = /*@__PURE__*/ API.make(() => ({
|
|
3505
3502
|
input: ListRoutesRequest,
|
|
3506
3503
|
output: ListRoutesResponse,
|
|
3507
3504
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
3508
3505
|
}));
|
|
3509
|
-
export const CreateRouteRequest = /*@__PURE__*/
|
|
3506
|
+
export const CreateRouteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3510
3507
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3511
3508
|
nexthop: Schema.String,
|
|
3512
3509
|
prefix: Schema.String,
|
|
@@ -3515,7 +3512,7 @@ export const CreateRouteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3515
3512
|
scope: Schema.optional(ScopeParam),
|
|
3516
3513
|
weight: Schema.optional(Schema.Number),
|
|
3517
3514
|
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/magic/routes" })));
|
|
3518
|
-
export const CreateRouteResponse = /*@__PURE__*/
|
|
3515
|
+
export const CreateRouteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3519
3516
|
id: Schema.String,
|
|
3520
3517
|
nexthop: Schema.String,
|
|
3521
3518
|
prefix: Schema.String,
|
|
@@ -3538,12 +3535,12 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3538
3535
|
weight: "weight",
|
|
3539
3536
|
}))
|
|
3540
3537
|
.pipe(T.ResponsePath("result")));
|
|
3541
|
-
export const createRoute = /*@__PURE__*/
|
|
3538
|
+
export const createRoute = /*@__PURE__*/ API.make(() => ({
|
|
3542
3539
|
input: CreateRouteRequest,
|
|
3543
3540
|
output: CreateRouteResponse,
|
|
3544
3541
|
errors: [MagicTransitNotOnboarded, Forbidden],
|
|
3545
3542
|
}));
|
|
3546
|
-
export const UpdateRouteRequest = /*@__PURE__*/
|
|
3543
|
+
export const UpdateRouteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3547
3544
|
routeId: Schema.String.pipe(T.HttpPath("routeId")),
|
|
3548
3545
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3549
3546
|
nexthop: Schema.String,
|
|
@@ -3556,7 +3553,7 @@ export const UpdateRouteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3556
3553
|
method: "PUT",
|
|
3557
3554
|
path: "/accounts/{account_id}/magic/routes/{routeId}",
|
|
3558
3555
|
})));
|
|
3559
|
-
export const UpdateRouteResponse = /*@__PURE__*/
|
|
3556
|
+
export const UpdateRouteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3560
3557
|
modified: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3561
3558
|
modifiedRoute: Schema.optional(Schema.Union([ModifiedRoute, Schema.Null])),
|
|
3562
3559
|
})
|
|
@@ -3565,19 +3562,19 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3565
3562
|
modifiedRoute: "modified_route",
|
|
3566
3563
|
}))
|
|
3567
3564
|
.pipe(T.ResponsePath("result")));
|
|
3568
|
-
export const updateRoute = /*@__PURE__*/
|
|
3565
|
+
export const updateRoute = /*@__PURE__*/ API.make(() => ({
|
|
3569
3566
|
input: UpdateRouteRequest,
|
|
3570
3567
|
output: UpdateRouteResponse,
|
|
3571
3568
|
errors: [RouteNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3572
3569
|
}));
|
|
3573
|
-
export const DeleteRouteRequest = /*@__PURE__*/
|
|
3570
|
+
export const DeleteRouteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3574
3571
|
routeId: Schema.String.pipe(T.HttpPath("routeId")),
|
|
3575
3572
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3576
3573
|
}).pipe(T.Http({
|
|
3577
3574
|
method: "DELETE",
|
|
3578
3575
|
path: "/accounts/{account_id}/magic/routes/{routeId}",
|
|
3579
3576
|
})));
|
|
3580
|
-
export const DeleteRouteResponse = /*@__PURE__*/
|
|
3577
|
+
export const DeleteRouteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3581
3578
|
deleted: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3582
3579
|
deletedRoute: Schema.optional(Schema.Union([ModifiedRoute, Schema.Null])),
|
|
3583
3580
|
})
|
|
@@ -3586,15 +3583,15 @@ export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3586
3583
|
deletedRoute: "deleted_route",
|
|
3587
3584
|
}))
|
|
3588
3585
|
.pipe(T.ResponsePath("result")));
|
|
3589
|
-
export const deleteRoute = /*@__PURE__*/
|
|
3586
|
+
export const deleteRoute = /*@__PURE__*/ API.make(() => ({
|
|
3590
3587
|
input: DeleteRouteRequest,
|
|
3591
3588
|
output: DeleteRouteResponse,
|
|
3592
3589
|
errors: [RouteNotFound, MagicTransitNotOnboarded, Forbidden],
|
|
3593
3590
|
}));
|
|
3594
|
-
export const EmptyRouteRequest = /*@__PURE__*/
|
|
3591
|
+
export const EmptyRouteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3595
3592
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3596
3593
|
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/magic/routes" })));
|
|
3597
|
-
export const EmptyRouteResponse = /*@__PURE__*/
|
|
3594
|
+
export const EmptyRouteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3598
3595
|
deleted: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3599
3596
|
deletedRoutes: Schema.optional(Schema.Union([Schema.Array(ModifiedRoute), Schema.Null])),
|
|
3600
3597
|
})
|
|
@@ -3603,13 +3600,13 @@ export const EmptyRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3603
3600
|
deletedRoutes: "deleted_routes",
|
|
3604
3601
|
}))
|
|
3605
3602
|
.pipe(T.ResponsePath("result")));
|
|
3606
|
-
export const emptyRoute = /*@__PURE__*/
|
|
3603
|
+
export const emptyRoute = /*@__PURE__*/ API.make(() => ({
|
|
3607
3604
|
input: EmptyRouteRequest,
|
|
3608
3605
|
output: EmptyRouteResponse,
|
|
3609
3606
|
errors: [],
|
|
3610
3607
|
}));
|
|
3611
3608
|
export const PskSetIpsecTunnelRequest =
|
|
3612
|
-
/*@__PURE__*/
|
|
3609
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3613
3610
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3614
3611
|
validateOnly: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("validate_only")),
|
|
3615
3612
|
psks: Schema.Array(Psk),
|
|
@@ -3618,7 +3615,7 @@ export const PskSetIpsecTunnelRequest =
|
|
|
3618
3615
|
path: "/accounts/{account_id}/magic/ipsec_tunnels/psk",
|
|
3619
3616
|
})));
|
|
3620
3617
|
export const PskSetIpsecTunnelResponse =
|
|
3621
|
-
/*@__PURE__*/
|
|
3618
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3622
3619
|
successfullyAppliedPsks: Schema.optional(Schema.Union([
|
|
3623
3620
|
Schema.Record(Schema.String, Schema.Unknown),
|
|
3624
3621
|
Schema.Null,
|
|
@@ -3633,12 +3630,12 @@ export const PskSetIpsecTunnelResponse =
|
|
|
3633
3630
|
unappliedPsks: "unapplied_psks",
|
|
3634
3631
|
}))
|
|
3635
3632
|
.pipe(T.ResponsePath("result")));
|
|
3636
|
-
export const pskSetIpsecTunnel = /*@__PURE__*/
|
|
3633
|
+
export const pskSetIpsecTunnel = /*@__PURE__*/ API.make(() => ({
|
|
3637
3634
|
input: PskSetIpsecTunnelRequest,
|
|
3638
3635
|
output: PskSetIpsecTunnelResponse,
|
|
3639
3636
|
errors: [],
|
|
3640
3637
|
}));
|
|
3641
|
-
export const GetSiteRequest = /*@__PURE__*/
|
|
3638
|
+
export const GetSiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3642
3639
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3643
3640
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3644
3641
|
xMagicNewHcTarget: Schema.optional(Schema.Boolean).pipe(T.HttpHeader("x-magic-new-hc-target")),
|
|
@@ -3646,7 +3643,7 @@ export const GetSiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => S
|
|
|
3646
3643
|
method: "GET",
|
|
3647
3644
|
path: "/accounts/{account_id}/magic/sites/{siteId}",
|
|
3648
3645
|
})));
|
|
3649
|
-
export const GetSiteResponse = /*@__PURE__*/
|
|
3646
|
+
export const GetSiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3650
3647
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3651
3648
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3652
3649
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3665,19 +3662,19 @@ export const GetSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
3665
3662
|
secondaryConnectorId: "secondary_connector_id",
|
|
3666
3663
|
}))
|
|
3667
3664
|
.pipe(T.ResponsePath("result")));
|
|
3668
|
-
export const getSite = /*@__PURE__*/
|
|
3665
|
+
export const getSite = /*@__PURE__*/ API.make(() => ({
|
|
3669
3666
|
input: GetSiteRequest,
|
|
3670
3667
|
output: GetSiteResponse,
|
|
3671
3668
|
errors: [SiteNotFound, MagicWanUnauthorized, Forbidden],
|
|
3672
3669
|
}));
|
|
3673
|
-
export const ListSitesRequest = /*@__PURE__*/
|
|
3670
|
+
export const ListSitesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3674
3671
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3675
3672
|
connectorid: Schema.optional(Schema.String).pipe(T.HttpQuery("connectorid")),
|
|
3676
3673
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/magic/sites" })));
|
|
3677
|
-
export const ListSitesResponse = /*@__PURE__*/
|
|
3674
|
+
export const ListSitesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3678
3675
|
result: Schema.Array(ListSitesResponseResult),
|
|
3679
3676
|
}));
|
|
3680
|
-
export const listSites = /*@__PURE__*/
|
|
3677
|
+
export const listSites = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3681
3678
|
input: ListSitesRequest,
|
|
3682
3679
|
output: ListSitesResponse,
|
|
3683
3680
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -3686,7 +3683,7 @@ export const listSites = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
3686
3683
|
items: "result",
|
|
3687
3684
|
},
|
|
3688
3685
|
}));
|
|
3689
|
-
export const CreateSiteRequest = /*@__PURE__*/
|
|
3686
|
+
export const CreateSiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3690
3687
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3691
3688
|
name: Schema.String,
|
|
3692
3689
|
connectorId: Schema.optional(Schema.String),
|
|
@@ -3702,7 +3699,7 @@ export const CreateSiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
3702
3699
|
location: "location",
|
|
3703
3700
|
secondaryConnectorId: "secondary_connector_id",
|
|
3704
3701
|
}), T.Http({ method: "POST", path: "/accounts/{account_id}/magic/sites" })));
|
|
3705
|
-
export const CreateSiteResponse = /*@__PURE__*/
|
|
3702
|
+
export const CreateSiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3706
3703
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3707
3704
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3708
3705
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3721,12 +3718,12 @@ export const CreateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3721
3718
|
secondaryConnectorId: "secondary_connector_id",
|
|
3722
3719
|
}))
|
|
3723
3720
|
.pipe(T.ResponsePath("result")));
|
|
3724
|
-
export const createSite = /*@__PURE__*/
|
|
3721
|
+
export const createSite = /*@__PURE__*/ API.make(() => ({
|
|
3725
3722
|
input: CreateSiteRequest,
|
|
3726
3723
|
output: CreateSiteResponse,
|
|
3727
3724
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
3728
3725
|
}));
|
|
3729
|
-
export const UpdateSiteRequest = /*@__PURE__*/
|
|
3726
|
+
export const UpdateSiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3730
3727
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3731
3728
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3732
3729
|
connectorId: Schema.optional(Schema.String),
|
|
@@ -3744,7 +3741,7 @@ export const UpdateSiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
3744
3741
|
method: "PUT",
|
|
3745
3742
|
path: "/accounts/{account_id}/magic/sites/{siteId}",
|
|
3746
3743
|
})));
|
|
3747
|
-
export const UpdateSiteResponse = /*@__PURE__*/
|
|
3744
|
+
export const UpdateSiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3748
3745
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3749
3746
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3750
3747
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3763,12 +3760,12 @@ export const UpdateSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3763
3760
|
secondaryConnectorId: "secondary_connector_id",
|
|
3764
3761
|
}))
|
|
3765
3762
|
.pipe(T.ResponsePath("result")));
|
|
3766
|
-
export const updateSite = /*@__PURE__*/
|
|
3763
|
+
export const updateSite = /*@__PURE__*/ API.make(() => ({
|
|
3767
3764
|
input: UpdateSiteRequest,
|
|
3768
3765
|
output: UpdateSiteResponse,
|
|
3769
3766
|
errors: [SiteNotFound, MagicWanUnauthorized, Forbidden],
|
|
3770
3767
|
}));
|
|
3771
|
-
export const PatchSiteRequest = /*@__PURE__*/
|
|
3768
|
+
export const PatchSiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3772
3769
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3773
3770
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3774
3771
|
connectorId: Schema.optional(Schema.String),
|
|
@@ -3786,7 +3783,7 @@ export const PatchSiteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
3786
3783
|
method: "PATCH",
|
|
3787
3784
|
path: "/accounts/{account_id}/magic/sites/{siteId}",
|
|
3788
3785
|
})));
|
|
3789
|
-
export const PatchSiteResponse = /*@__PURE__*/
|
|
3786
|
+
export const PatchSiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3790
3787
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3791
3788
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3792
3789
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3805,19 +3802,19 @@ export const PatchSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
3805
3802
|
secondaryConnectorId: "secondary_connector_id",
|
|
3806
3803
|
}))
|
|
3807
3804
|
.pipe(T.ResponsePath("result")));
|
|
3808
|
-
export const patchSite = /*@__PURE__*/
|
|
3805
|
+
export const patchSite = /*@__PURE__*/ API.make(() => ({
|
|
3809
3806
|
input: PatchSiteRequest,
|
|
3810
3807
|
output: PatchSiteResponse,
|
|
3811
3808
|
errors: [SiteNotFound, MagicWanUnauthorized, Forbidden],
|
|
3812
3809
|
}));
|
|
3813
|
-
export const DeleteSiteRequest = /*@__PURE__*/
|
|
3810
|
+
export const DeleteSiteRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3814
3811
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3815
3812
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3816
3813
|
}).pipe(T.Http({
|
|
3817
3814
|
method: "DELETE",
|
|
3818
3815
|
path: "/accounts/{account_id}/magic/sites/{siteId}",
|
|
3819
3816
|
})));
|
|
3820
|
-
export const DeleteSiteResponse = /*@__PURE__*/
|
|
3817
|
+
export const DeleteSiteResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3821
3818
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3822
3819
|
connectorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3823
3820
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -3836,12 +3833,12 @@ export const DeleteSiteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3836
3833
|
secondaryConnectorId: "secondary_connector_id",
|
|
3837
3834
|
}))
|
|
3838
3835
|
.pipe(T.ResponsePath("result")));
|
|
3839
|
-
export const deleteSite = /*@__PURE__*/
|
|
3836
|
+
export const deleteSite = /*@__PURE__*/ API.make(() => ({
|
|
3840
3837
|
input: DeleteSiteRequest,
|
|
3841
3838
|
output: DeleteSiteResponse,
|
|
3842
3839
|
errors: [SiteNotFound, MagicWanUnauthorized, Forbidden],
|
|
3843
3840
|
}));
|
|
3844
|
-
export const GetSiteAclRequest = /*@__PURE__*/
|
|
3841
|
+
export const GetSiteAclRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3845
3842
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3846
3843
|
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
3847
3844
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3849,7 +3846,7 @@ export const GetSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
3849
3846
|
method: "GET",
|
|
3850
3847
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls/{aclId}",
|
|
3851
3848
|
})));
|
|
3852
|
-
export const GetSiteAclResponse = /*@__PURE__*/
|
|
3849
|
+
export const GetSiteAclResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3853
3850
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3854
3851
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3855
3852
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -3876,22 +3873,22 @@ export const GetSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
3876
3873
|
unidirectional: "unidirectional",
|
|
3877
3874
|
}))
|
|
3878
3875
|
.pipe(T.ResponsePath("result")));
|
|
3879
|
-
export const getSiteAcl = /*@__PURE__*/
|
|
3876
|
+
export const getSiteAcl = /*@__PURE__*/ API.make(() => ({
|
|
3880
3877
|
input: GetSiteAclRequest,
|
|
3881
3878
|
output: GetSiteAclResponse,
|
|
3882
3879
|
errors: [SiteAclNotFound, MagicWanUnauthorized, Forbidden],
|
|
3883
3880
|
}));
|
|
3884
|
-
export const ListSiteAclsRequest = /*@__PURE__*/
|
|
3881
|
+
export const ListSiteAclsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3885
3882
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3886
3883
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3887
3884
|
}).pipe(T.Http({
|
|
3888
3885
|
method: "GET",
|
|
3889
3886
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls",
|
|
3890
3887
|
})));
|
|
3891
|
-
export const ListSiteAclsResponse = /*@__PURE__*/
|
|
3888
|
+
export const ListSiteAclsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3892
3889
|
result: Schema.Array(ListSiteAclsResponseResult),
|
|
3893
3890
|
}));
|
|
3894
|
-
export const listSiteAcls = /*@__PURE__*/
|
|
3891
|
+
export const listSiteAcls = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3895
3892
|
input: ListSiteAclsRequest,
|
|
3896
3893
|
output: ListSiteAclsResponse,
|
|
3897
3894
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -3900,7 +3897,7 @@ export const listSiteAcls = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
3900
3897
|
items: "result",
|
|
3901
3898
|
},
|
|
3902
3899
|
}));
|
|
3903
|
-
export const CreateSiteAclRequest = /*@__PURE__*/
|
|
3900
|
+
export const CreateSiteAclRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3904
3901
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3905
3902
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3906
3903
|
lan_1: Aclconfiguration,
|
|
@@ -3908,10 +3905,7 @@ export const CreateSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
3908
3905
|
name: Schema.String,
|
|
3909
3906
|
description: Schema.optional(Schema.String),
|
|
3910
3907
|
forwardLocally: Schema.optional(Schema.Boolean),
|
|
3911
|
-
protocols: Schema.optional(Schema.Array(Schema.Union([
|
|
3912
|
-
Schema.Literals(["tcp", "udp", "icmp"]),
|
|
3913
|
-
Schema.String,
|
|
3914
|
-
]))),
|
|
3908
|
+
protocols: Schema.optional(Schema.Array(Schema.Union([Schema.Literals(["tcp", "udp", "icmp"]), Schema.String]))),
|
|
3915
3909
|
unidirectional: Schema.optional(Schema.Boolean),
|
|
3916
3910
|
}).pipe(Schema.encodeKeys({
|
|
3917
3911
|
lan_1: "lan_1",
|
|
@@ -3925,7 +3919,7 @@ export const CreateSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
3925
3919
|
method: "POST",
|
|
3926
3920
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls",
|
|
3927
3921
|
})));
|
|
3928
|
-
export const CreateSiteAclResponse = /*@__PURE__*/
|
|
3922
|
+
export const CreateSiteAclResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3929
3923
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3930
3924
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3931
3925
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -3952,12 +3946,12 @@ export const CreateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
3952
3946
|
unidirectional: "unidirectional",
|
|
3953
3947
|
}))
|
|
3954
3948
|
.pipe(T.ResponsePath("result")));
|
|
3955
|
-
export const createSiteAcl = /*@__PURE__*/
|
|
3949
|
+
export const createSiteAcl = /*@__PURE__*/ API.make(() => ({
|
|
3956
3950
|
input: CreateSiteAclRequest,
|
|
3957
3951
|
output: CreateSiteAclResponse,
|
|
3958
3952
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
3959
3953
|
}));
|
|
3960
|
-
export const UpdateSiteAclRequest = /*@__PURE__*/
|
|
3954
|
+
export const UpdateSiteAclRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3961
3955
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
3962
3956
|
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
3963
3957
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3966,10 +3960,7 @@ export const UpdateSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
3966
3960
|
lan_1: Schema.optional(Aclconfiguration),
|
|
3967
3961
|
lan_2: Schema.optional(Aclconfiguration),
|
|
3968
3962
|
name: Schema.optional(Schema.String),
|
|
3969
|
-
protocols: Schema.optional(Schema.Array(Schema.Union([
|
|
3970
|
-
Schema.Literals(["tcp", "udp", "icmp"]),
|
|
3971
|
-
Schema.String,
|
|
3972
|
-
]))),
|
|
3963
|
+
protocols: Schema.optional(Schema.Array(Schema.Union([Schema.Literals(["tcp", "udp", "icmp"]), Schema.String]))),
|
|
3973
3964
|
unidirectional: Schema.optional(Schema.Boolean),
|
|
3974
3965
|
}).pipe(Schema.encodeKeys({
|
|
3975
3966
|
description: "description",
|
|
@@ -3983,7 +3974,7 @@ export const UpdateSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
3983
3974
|
method: "PUT",
|
|
3984
3975
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls/{aclId}",
|
|
3985
3976
|
})));
|
|
3986
|
-
export const UpdateSiteAclResponse = /*@__PURE__*/
|
|
3977
|
+
export const UpdateSiteAclResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3987
3978
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3988
3979
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3989
3980
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4010,12 +4001,12 @@ export const UpdateSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4010
4001
|
unidirectional: "unidirectional",
|
|
4011
4002
|
}))
|
|
4012
4003
|
.pipe(T.ResponsePath("result")));
|
|
4013
|
-
export const updateSiteAcl = /*@__PURE__*/
|
|
4004
|
+
export const updateSiteAcl = /*@__PURE__*/ API.make(() => ({
|
|
4014
4005
|
input: UpdateSiteAclRequest,
|
|
4015
4006
|
output: UpdateSiteAclResponse,
|
|
4016
4007
|
errors: [SiteAclNotFound, MagicWanUnauthorized, Forbidden],
|
|
4017
4008
|
}));
|
|
4018
|
-
export const PatchSiteAclRequest = /*@__PURE__*/
|
|
4009
|
+
export const PatchSiteAclRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4019
4010
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4020
4011
|
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
4021
4012
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4024,10 +4015,7 @@ export const PatchSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4024
4015
|
lan_1: Schema.optional(Aclconfiguration),
|
|
4025
4016
|
lan_2: Schema.optional(Aclconfiguration),
|
|
4026
4017
|
name: Schema.optional(Schema.String),
|
|
4027
|
-
protocols: Schema.optional(Schema.Array(Schema.Union([
|
|
4028
|
-
Schema.Literals(["tcp", "udp", "icmp"]),
|
|
4029
|
-
Schema.String,
|
|
4030
|
-
]))),
|
|
4018
|
+
protocols: Schema.optional(Schema.Array(Schema.Union([Schema.Literals(["tcp", "udp", "icmp"]), Schema.String]))),
|
|
4031
4019
|
unidirectional: Schema.optional(Schema.Boolean),
|
|
4032
4020
|
}).pipe(Schema.encodeKeys({
|
|
4033
4021
|
description: "description",
|
|
@@ -4041,7 +4029,7 @@ export const PatchSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4041
4029
|
method: "PATCH",
|
|
4042
4030
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls/{aclId}",
|
|
4043
4031
|
})));
|
|
4044
|
-
export const PatchSiteAclResponse = /*@__PURE__*/
|
|
4032
|
+
export const PatchSiteAclResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4045
4033
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4046
4034
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4047
4035
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4068,12 +4056,12 @@ export const PatchSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4068
4056
|
unidirectional: "unidirectional",
|
|
4069
4057
|
}))
|
|
4070
4058
|
.pipe(T.ResponsePath("result")));
|
|
4071
|
-
export const patchSiteAcl = /*@__PURE__*/
|
|
4059
|
+
export const patchSiteAcl = /*@__PURE__*/ API.make(() => ({
|
|
4072
4060
|
input: PatchSiteAclRequest,
|
|
4073
4061
|
output: PatchSiteAclResponse,
|
|
4074
4062
|
errors: [SiteAclNotFound, MagicWanUnauthorized, Forbidden],
|
|
4075
4063
|
}));
|
|
4076
|
-
export const DeleteSiteAclRequest = /*@__PURE__*/
|
|
4064
|
+
export const DeleteSiteAclRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4077
4065
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4078
4066
|
aclId: Schema.String.pipe(T.HttpPath("aclId")),
|
|
4079
4067
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4081,7 +4069,7 @@ export const DeleteSiteAclRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4081
4069
|
method: "DELETE",
|
|
4082
4070
|
path: "/accounts/{account_id}/magic/sites/{siteId}/acls/{aclId}",
|
|
4083
4071
|
})));
|
|
4084
|
-
export const DeleteSiteAclResponse = /*@__PURE__*/
|
|
4072
|
+
export const DeleteSiteAclResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4085
4073
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4086
4074
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4087
4075
|
forwardLocally: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4108,12 +4096,12 @@ export const DeleteSiteAclResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4108
4096
|
unidirectional: "unidirectional",
|
|
4109
4097
|
}))
|
|
4110
4098
|
.pipe(T.ResponsePath("result")));
|
|
4111
|
-
export const deleteSiteAcl = /*@__PURE__*/
|
|
4099
|
+
export const deleteSiteAcl = /*@__PURE__*/ API.make(() => ({
|
|
4112
4100
|
input: DeleteSiteAclRequest,
|
|
4113
4101
|
output: DeleteSiteAclResponse,
|
|
4114
4102
|
errors: [SiteAclNotFound, MagicWanUnauthorized, Forbidden],
|
|
4115
4103
|
}));
|
|
4116
|
-
export const GetSiteLanRequest = /*@__PURE__*/
|
|
4104
|
+
export const GetSiteLanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4117
4105
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4118
4106
|
lanId: Schema.String.pipe(T.HttpPath("lanId")),
|
|
4119
4107
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4121,7 +4109,7 @@ export const GetSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
4121
4109
|
method: "GET",
|
|
4122
4110
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans/{lanId}",
|
|
4123
4111
|
})));
|
|
4124
|
-
export const GetSiteLanResponse = /*@__PURE__*/
|
|
4112
|
+
export const GetSiteLanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4125
4113
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4126
4114
|
bondId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4127
4115
|
haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4150,22 +4138,22 @@ export const GetSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4150
4138
|
vlanTag: "vlan_tag",
|
|
4151
4139
|
}))
|
|
4152
4140
|
.pipe(T.ResponsePath("result")));
|
|
4153
|
-
export const getSiteLan = /*@__PURE__*/
|
|
4141
|
+
export const getSiteLan = /*@__PURE__*/ API.make(() => ({
|
|
4154
4142
|
input: GetSiteLanRequest,
|
|
4155
4143
|
output: GetSiteLanResponse,
|
|
4156
4144
|
errors: [SiteLanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4157
4145
|
}));
|
|
4158
|
-
export const ListSiteLansRequest = /*@__PURE__*/
|
|
4146
|
+
export const ListSiteLansRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4159
4147
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4160
4148
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4161
4149
|
}).pipe(T.Http({
|
|
4162
4150
|
method: "GET",
|
|
4163
4151
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans",
|
|
4164
4152
|
})));
|
|
4165
|
-
export const ListSiteLansResponse = /*@__PURE__*/
|
|
4153
|
+
export const ListSiteLansResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4166
4154
|
result: Schema.Array(ListSiteLansResponseResult),
|
|
4167
4155
|
}));
|
|
4168
|
-
export const listSiteLans = /*@__PURE__*/
|
|
4156
|
+
export const listSiteLans = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4169
4157
|
input: ListSiteLansRequest,
|
|
4170
4158
|
output: ListSiteLansResponse,
|
|
4171
4159
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -4174,7 +4162,7 @@ export const listSiteLans = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
4174
4162
|
items: "result",
|
|
4175
4163
|
},
|
|
4176
4164
|
}));
|
|
4177
|
-
export const CreateSiteLanRequest = /*@__PURE__*/
|
|
4165
|
+
export const CreateSiteLanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4178
4166
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4179
4167
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4180
4168
|
bondId: Schema.optional(Schema.Number),
|
|
@@ -4202,10 +4190,10 @@ export const CreateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4202
4190
|
method: "POST",
|
|
4203
4191
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans",
|
|
4204
4192
|
})));
|
|
4205
|
-
export const CreateSiteLanResponse = /*@__PURE__*/
|
|
4193
|
+
export const CreateSiteLanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4206
4194
|
result: Schema.Array(ListSiteLansResponseResult),
|
|
4207
4195
|
}));
|
|
4208
|
-
export const createSiteLan = /*@__PURE__*/
|
|
4196
|
+
export const createSiteLan = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4209
4197
|
input: CreateSiteLanRequest,
|
|
4210
4198
|
output: CreateSiteLanResponse,
|
|
4211
4199
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -4214,7 +4202,7 @@ export const createSiteLan = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
4214
4202
|
items: "result",
|
|
4215
4203
|
},
|
|
4216
4204
|
}));
|
|
4217
|
-
export const UpdateSiteLanRequest = /*@__PURE__*/
|
|
4205
|
+
export const UpdateSiteLanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4218
4206
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4219
4207
|
lanId: Schema.String.pipe(T.HttpPath("lanId")),
|
|
4220
4208
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4241,7 +4229,7 @@ export const UpdateSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4241
4229
|
method: "PUT",
|
|
4242
4230
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans/{lanId}",
|
|
4243
4231
|
})));
|
|
4244
|
-
export const UpdateSiteLanResponse = /*@__PURE__*/
|
|
4232
|
+
export const UpdateSiteLanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4245
4233
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4246
4234
|
bondId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4247
4235
|
haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4270,12 +4258,12 @@ export const UpdateSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4270
4258
|
vlanTag: "vlan_tag",
|
|
4271
4259
|
}))
|
|
4272
4260
|
.pipe(T.ResponsePath("result")));
|
|
4273
|
-
export const updateSiteLan = /*@__PURE__*/
|
|
4261
|
+
export const updateSiteLan = /*@__PURE__*/ API.make(() => ({
|
|
4274
4262
|
input: UpdateSiteLanRequest,
|
|
4275
4263
|
output: UpdateSiteLanResponse,
|
|
4276
4264
|
errors: [SiteLanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4277
4265
|
}));
|
|
4278
|
-
export const PatchSiteLanRequest = /*@__PURE__*/
|
|
4266
|
+
export const PatchSiteLanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4279
4267
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4280
4268
|
lanId: Schema.String.pipe(T.HttpPath("lanId")),
|
|
4281
4269
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4302,7 +4290,7 @@ export const PatchSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4302
4290
|
method: "PATCH",
|
|
4303
4291
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans/{lanId}",
|
|
4304
4292
|
})));
|
|
4305
|
-
export const PatchSiteLanResponse = /*@__PURE__*/
|
|
4293
|
+
export const PatchSiteLanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4306
4294
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4307
4295
|
bondId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4308
4296
|
haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4331,12 +4319,12 @@ export const PatchSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4331
4319
|
vlanTag: "vlan_tag",
|
|
4332
4320
|
}))
|
|
4333
4321
|
.pipe(T.ResponsePath("result")));
|
|
4334
|
-
export const patchSiteLan = /*@__PURE__*/
|
|
4322
|
+
export const patchSiteLan = /*@__PURE__*/ API.make(() => ({
|
|
4335
4323
|
input: PatchSiteLanRequest,
|
|
4336
4324
|
output: PatchSiteLanResponse,
|
|
4337
4325
|
errors: [SiteLanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4338
4326
|
}));
|
|
4339
|
-
export const DeleteSiteLanRequest = /*@__PURE__*/
|
|
4327
|
+
export const DeleteSiteLanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4340
4328
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4341
4329
|
lanId: Schema.String.pipe(T.HttpPath("lanId")),
|
|
4342
4330
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4344,7 +4332,7 @@ export const DeleteSiteLanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4344
4332
|
method: "DELETE",
|
|
4345
4333
|
path: "/accounts/{account_id}/magic/sites/{siteId}/lans/{lanId}",
|
|
4346
4334
|
})));
|
|
4347
|
-
export const DeleteSiteLanResponse = /*@__PURE__*/
|
|
4335
|
+
export const DeleteSiteLanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4348
4336
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4349
4337
|
bondId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4350
4338
|
haLink: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -4373,12 +4361,12 @@ export const DeleteSiteLanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4373
4361
|
vlanTag: "vlan_tag",
|
|
4374
4362
|
}))
|
|
4375
4363
|
.pipe(T.ResponsePath("result")));
|
|
4376
|
-
export const deleteSiteLan = /*@__PURE__*/
|
|
4364
|
+
export const deleteSiteLan = /*@__PURE__*/ API.make(() => ({
|
|
4377
4365
|
input: DeleteSiteLanRequest,
|
|
4378
4366
|
output: DeleteSiteLanResponse,
|
|
4379
4367
|
errors: [SiteLanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4380
4368
|
}));
|
|
4381
|
-
export const GetSiteWanRequest = /*@__PURE__*/
|
|
4369
|
+
export const GetSiteWanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4382
4370
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4383
4371
|
wanId: Schema.String.pipe(T.HttpPath("wanId")),
|
|
4384
4372
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4386,13 +4374,10 @@ export const GetSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =
|
|
|
4386
4374
|
method: "GET",
|
|
4387
4375
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans/{wanId}",
|
|
4388
4376
|
})));
|
|
4389
|
-
export const GetSiteWanResponse = /*@__PURE__*/
|
|
4377
|
+
export const GetSiteWanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4390
4378
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4391
4379
|
healthCheckRate: Schema.optional(Schema.Union([
|
|
4392
|
-
Schema.Union([
|
|
4393
|
-
Schema.Literals(["low", "mid", "high"]),
|
|
4394
|
-
Schema.String,
|
|
4395
|
-
]),
|
|
4380
|
+
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
4396
4381
|
Schema.Null,
|
|
4397
4382
|
])),
|
|
4398
4383
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4413,22 +4398,22 @@ export const GetSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4413
4398
|
vlanTag: "vlan_tag",
|
|
4414
4399
|
}))
|
|
4415
4400
|
.pipe(T.ResponsePath("result")));
|
|
4416
|
-
export const getSiteWan = /*@__PURE__*/
|
|
4401
|
+
export const getSiteWan = /*@__PURE__*/ API.make(() => ({
|
|
4417
4402
|
input: GetSiteWanRequest,
|
|
4418
4403
|
output: GetSiteWanResponse,
|
|
4419
4404
|
errors: [SiteWanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4420
4405
|
}));
|
|
4421
|
-
export const ListSiteWansRequest = /*@__PURE__*/
|
|
4406
|
+
export const ListSiteWansRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4422
4407
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4423
4408
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4424
4409
|
}).pipe(T.Http({
|
|
4425
4410
|
method: "GET",
|
|
4426
4411
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans",
|
|
4427
4412
|
})));
|
|
4428
|
-
export const ListSiteWansResponse = /*@__PURE__*/
|
|
4413
|
+
export const ListSiteWansResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4429
4414
|
result: Schema.Array(ListSiteWansResponseResult),
|
|
4430
4415
|
}));
|
|
4431
|
-
export const listSiteWans = /*@__PURE__*/
|
|
4416
|
+
export const listSiteWans = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4432
4417
|
input: ListSiteWansRequest,
|
|
4433
4418
|
output: ListSiteWansResponse,
|
|
4434
4419
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -4437,7 +4422,7 @@ export const listSiteWans = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
4437
4422
|
items: "result",
|
|
4438
4423
|
},
|
|
4439
4424
|
}));
|
|
4440
|
-
export const CreateSiteWanRequest = /*@__PURE__*/
|
|
4425
|
+
export const CreateSiteWanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4441
4426
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4442
4427
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4443
4428
|
physport: Schema.Number,
|
|
@@ -4455,10 +4440,10 @@ export const CreateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4455
4440
|
method: "POST",
|
|
4456
4441
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans",
|
|
4457
4442
|
})));
|
|
4458
|
-
export const CreateSiteWanResponse = /*@__PURE__*/
|
|
4443
|
+
export const CreateSiteWanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4459
4444
|
result: Schema.Array(ListSiteWansResponseResult),
|
|
4460
4445
|
}));
|
|
4461
|
-
export const createSiteWan = /*@__PURE__*/
|
|
4446
|
+
export const createSiteWan = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4462
4447
|
input: CreateSiteWanRequest,
|
|
4463
4448
|
output: CreateSiteWanResponse,
|
|
4464
4449
|
errors: [MagicWanUnauthorized, Forbidden],
|
|
@@ -4467,7 +4452,7 @@ export const createSiteWan = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
4467
4452
|
items: "result",
|
|
4468
4453
|
},
|
|
4469
4454
|
}));
|
|
4470
|
-
export const UpdateSiteWanRequest = /*@__PURE__*/
|
|
4455
|
+
export const UpdateSiteWanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4471
4456
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4472
4457
|
wanId: Schema.String.pipe(T.HttpPath("wanId")),
|
|
4473
4458
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4486,13 +4471,10 @@ export const UpdateSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4486
4471
|
method: "PUT",
|
|
4487
4472
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans/{wanId}",
|
|
4488
4473
|
})));
|
|
4489
|
-
export const UpdateSiteWanResponse = /*@__PURE__*/
|
|
4474
|
+
export const UpdateSiteWanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4490
4475
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4491
4476
|
healthCheckRate: Schema.optional(Schema.Union([
|
|
4492
|
-
Schema.Union([
|
|
4493
|
-
Schema.Literals(["low", "mid", "high"]),
|
|
4494
|
-
Schema.String,
|
|
4495
|
-
]),
|
|
4477
|
+
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
4496
4478
|
Schema.Null,
|
|
4497
4479
|
])),
|
|
4498
4480
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4513,12 +4495,12 @@ export const UpdateSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4513
4495
|
vlanTag: "vlan_tag",
|
|
4514
4496
|
}))
|
|
4515
4497
|
.pipe(T.ResponsePath("result")));
|
|
4516
|
-
export const updateSiteWan = /*@__PURE__*/
|
|
4498
|
+
export const updateSiteWan = /*@__PURE__*/ API.make(() => ({
|
|
4517
4499
|
input: UpdateSiteWanRequest,
|
|
4518
4500
|
output: UpdateSiteWanResponse,
|
|
4519
4501
|
errors: [SiteWanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4520
4502
|
}));
|
|
4521
|
-
export const PatchSiteWanRequest = /*@__PURE__*/
|
|
4503
|
+
export const PatchSiteWanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4522
4504
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4523
4505
|
wanId: Schema.String.pipe(T.HttpPath("wanId")),
|
|
4524
4506
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4537,13 +4519,10 @@ export const PatchSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
4537
4519
|
method: "PATCH",
|
|
4538
4520
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans/{wanId}",
|
|
4539
4521
|
})));
|
|
4540
|
-
export const PatchSiteWanResponse = /*@__PURE__*/
|
|
4522
|
+
export const PatchSiteWanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4541
4523
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4542
4524
|
healthCheckRate: Schema.optional(Schema.Union([
|
|
4543
|
-
Schema.Union([
|
|
4544
|
-
Schema.Literals(["low", "mid", "high"]),
|
|
4545
|
-
Schema.String,
|
|
4546
|
-
]),
|
|
4525
|
+
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
4547
4526
|
Schema.Null,
|
|
4548
4527
|
])),
|
|
4549
4528
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4564,12 +4543,12 @@ export const PatchSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4564
4543
|
vlanTag: "vlan_tag",
|
|
4565
4544
|
}))
|
|
4566
4545
|
.pipe(T.ResponsePath("result")));
|
|
4567
|
-
export const patchSiteWan = /*@__PURE__*/
|
|
4546
|
+
export const patchSiteWan = /*@__PURE__*/ API.make(() => ({
|
|
4568
4547
|
input: PatchSiteWanRequest,
|
|
4569
4548
|
output: PatchSiteWanResponse,
|
|
4570
4549
|
errors: [SiteWanNotFound, MagicWanUnauthorized, Forbidden],
|
|
4571
4550
|
}));
|
|
4572
|
-
export const DeleteSiteWanRequest = /*@__PURE__*/
|
|
4551
|
+
export const DeleteSiteWanRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4573
4552
|
siteId: Schema.String.pipe(T.HttpPath("siteId")),
|
|
4574
4553
|
wanId: Schema.String.pipe(T.HttpPath("wanId")),
|
|
4575
4554
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4577,13 +4556,10 @@ export const DeleteSiteWanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
4577
4556
|
method: "DELETE",
|
|
4578
4557
|
path: "/accounts/{account_id}/magic/sites/{siteId}/wans/{wanId}",
|
|
4579
4558
|
})));
|
|
4580
|
-
export const DeleteSiteWanResponse = /*@__PURE__*/
|
|
4559
|
+
export const DeleteSiteWanResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4581
4560
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4582
4561
|
healthCheckRate: Schema.optional(Schema.Union([
|
|
4583
|
-
Schema.Union([
|
|
4584
|
-
Schema.Literals(["low", "mid", "high"]),
|
|
4585
|
-
Schema.String,
|
|
4586
|
-
]),
|
|
4562
|
+
Schema.Union([Schema.Literals(["low", "mid", "high"]), Schema.String]),
|
|
4587
4563
|
Schema.Null,
|
|
4588
4564
|
])),
|
|
4589
4565
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4604,7 +4580,7 @@ export const DeleteSiteWanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
4604
4580
|
vlanTag: "vlan_tag",
|
|
4605
4581
|
}))
|
|
4606
4582
|
.pipe(T.ResponsePath("result")));
|
|
4607
|
-
export const deleteSiteWan = /*@__PURE__*/
|
|
4583
|
+
export const deleteSiteWan = /*@__PURE__*/ API.make(() => ({
|
|
4608
4584
|
input: DeleteSiteWanRequest,
|
|
4609
4585
|
output: DeleteSiteWanResponse,
|
|
4610
4586
|
errors: [SiteWanNotFound, MagicWanUnauthorized, Forbidden],
|