@distilled.cloud/cloudflare 0.28.2 → 0.29.1
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/client/api.d.ts +1 -1
- package/lib/client/api.d.ts.map +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- 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/lib/traits.d.ts.map +1 -1
- package/package.json +10 -9
- 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
|
@@ -89,7 +89,7 @@ interface Warpdevice {
|
|
|
89
89
|
/** IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported. */
|
|
90
90
|
routerIp: string;
|
|
91
91
|
}
|
|
92
|
-
const Warpdevice = /*@__PURE__*/
|
|
92
|
+
const Warpdevice = /*@__PURE__*/ Schema.suspend(() =>
|
|
93
93
|
Schema.Struct({
|
|
94
94
|
id: Schema.String,
|
|
95
95
|
name: Schema.String,
|
|
@@ -105,7 +105,7 @@ interface GetConfigResponse2 {
|
|
|
105
105
|
routerIps?: string[] | null;
|
|
106
106
|
warpDevices?: { id: string; name: string; routerIp: string }[] | null;
|
|
107
107
|
}
|
|
108
|
-
const GetConfigResponse2 = /*@__PURE__*/
|
|
108
|
+
const GetConfigResponse2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
109
109
|
Schema.Struct({
|
|
110
110
|
defaultSampling: Schema.optional(
|
|
111
111
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -160,79 +160,78 @@ interface MagicNetworkMonitoringRule {
|
|
|
160
160
|
/** Target of the zscore rule analysis. */
|
|
161
161
|
zscoreTarget?: "bits" | "packets" | null;
|
|
162
162
|
}
|
|
163
|
-
const MagicNetworkMonitoringRule = /*@__PURE__*/
|
|
164
|
-
(
|
|
165
|
-
Schema.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
163
|
+
const MagicNetworkMonitoringRule = /*@__PURE__*/ Schema.suspend(() =>
|
|
164
|
+
Schema.Struct({
|
|
165
|
+
id: Schema.String,
|
|
166
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
167
|
+
name: Schema.String,
|
|
168
|
+
prefixes: Schema.Array(Schema.String),
|
|
169
|
+
type: Schema.Union([
|
|
170
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
171
|
+
Schema.String,
|
|
172
|
+
]),
|
|
173
|
+
bandwidthThreshold: Schema.optional(
|
|
174
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
175
|
+
),
|
|
176
|
+
duration: Schema.optional(
|
|
177
|
+
Schema.Union([
|
|
178
178
|
Schema.Union([
|
|
179
|
-
Schema.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"60m",
|
|
189
|
-
]),
|
|
190
|
-
Schema.String,
|
|
179
|
+
Schema.Literals([
|
|
180
|
+
"1m",
|
|
181
|
+
"5m",
|
|
182
|
+
"10m",
|
|
183
|
+
"15m",
|
|
184
|
+
"20m",
|
|
185
|
+
"30m",
|
|
186
|
+
"45m",
|
|
187
|
+
"60m",
|
|
191
188
|
]),
|
|
192
|
-
Schema.
|
|
193
|
-
]),
|
|
194
|
-
),
|
|
195
|
-
packetThreshold: Schema.optional(
|
|
196
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
197
|
-
),
|
|
198
|
-
prefixMatch: Schema.optional(
|
|
199
|
-
Schema.Union([
|
|
200
|
-
Schema.Literal("exact"),
|
|
201
|
-
Schema.Literal("subnet"),
|
|
202
|
-
Schema.Literal("supernet"),
|
|
203
|
-
Schema.Null,
|
|
204
|
-
]),
|
|
205
|
-
),
|
|
206
|
-
zscoreSensitivity: Schema.optional(
|
|
207
|
-
Schema.Union([
|
|
208
|
-
Schema.Literal("low"),
|
|
209
|
-
Schema.Literal("medium"),
|
|
210
|
-
Schema.Literal("high"),
|
|
211
|
-
Schema.Null,
|
|
212
|
-
]),
|
|
213
|
-
),
|
|
214
|
-
zscoreTarget: Schema.optional(
|
|
215
|
-
Schema.Union([
|
|
216
|
-
Schema.Literal("bits"),
|
|
217
|
-
Schema.Literal("packets"),
|
|
218
|
-
Schema.Null,
|
|
189
|
+
Schema.String,
|
|
219
190
|
]),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
191
|
+
Schema.Null,
|
|
192
|
+
]),
|
|
193
|
+
),
|
|
194
|
+
packetThreshold: Schema.optional(
|
|
195
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
196
|
+
),
|
|
197
|
+
prefixMatch: Schema.optional(
|
|
198
|
+
Schema.Union([
|
|
199
|
+
Schema.Literal("exact"),
|
|
200
|
+
Schema.Literal("subnet"),
|
|
201
|
+
Schema.Literal("supernet"),
|
|
202
|
+
Schema.Null,
|
|
203
|
+
]),
|
|
204
|
+
),
|
|
205
|
+
zscoreSensitivity: Schema.optional(
|
|
206
|
+
Schema.Union([
|
|
207
|
+
Schema.Literal("low"),
|
|
208
|
+
Schema.Literal("medium"),
|
|
209
|
+
Schema.Literal("high"),
|
|
210
|
+
Schema.Null,
|
|
211
|
+
]),
|
|
212
|
+
),
|
|
213
|
+
zscoreTarget: Schema.optional(
|
|
214
|
+
Schema.Union([
|
|
215
|
+
Schema.Literal("bits"),
|
|
216
|
+
Schema.Literal("packets"),
|
|
217
|
+
Schema.Null,
|
|
218
|
+
]),
|
|
235
219
|
),
|
|
220
|
+
}).pipe(
|
|
221
|
+
Schema.encodeKeys({
|
|
222
|
+
id: "id",
|
|
223
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
224
|
+
name: "name",
|
|
225
|
+
prefixes: "prefixes",
|
|
226
|
+
type: "type",
|
|
227
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
228
|
+
duration: "duration",
|
|
229
|
+
packetThreshold: "packet_threshold",
|
|
230
|
+
prefixMatch: "prefix_match",
|
|
231
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
232
|
+
zscoreTarget: "zscore_target",
|
|
233
|
+
}),
|
|
234
|
+
),
|
|
236
235
|
) as unknown as Schema.Codec<MagicNetworkMonitoringRule>;
|
|
237
236
|
|
|
238
237
|
// =============================================================================
|
|
@@ -243,7 +242,7 @@ export interface GetConfigRequest {
|
|
|
243
242
|
accountId: string;
|
|
244
243
|
}
|
|
245
244
|
|
|
246
|
-
export const GetConfigRequest = /*@__PURE__*/
|
|
245
|
+
export const GetConfigRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
247
246
|
Schema.Struct({
|
|
248
247
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
249
248
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/config" })),
|
|
@@ -256,11 +255,10 @@ export type GetConfigResponse = {
|
|
|
256
255
|
warpDevices?: { id: string; name: string; routerIp: string }[] | null;
|
|
257
256
|
} | null;
|
|
258
257
|
|
|
259
|
-
export const GetConfigResponse = /*@__PURE__*/
|
|
260
|
-
()
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
),
|
|
258
|
+
export const GetConfigResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
259
|
+
Schema.Union([GetConfigResponse2, Schema.Null]).pipe(
|
|
260
|
+
T.ResponsePath("result"),
|
|
261
|
+
),
|
|
264
262
|
) as unknown as Schema.Codec<GetConfigResponse>;
|
|
265
263
|
|
|
266
264
|
export type GetConfigError = DefaultErrors | Forbidden;
|
|
@@ -270,7 +268,7 @@ export const getConfig: API.OperationMethod<
|
|
|
270
268
|
GetConfigResponse,
|
|
271
269
|
GetConfigError,
|
|
272
270
|
Credentials | HttpClient.HttpClient
|
|
273
|
-
> = /*@__PURE__*/
|
|
271
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
274
272
|
input: GetConfigRequest,
|
|
275
273
|
output: GetConfigResponse,
|
|
276
274
|
errors: [Forbidden],
|
|
@@ -289,23 +287,22 @@ export interface CreateConfigRequest {
|
|
|
289
287
|
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
290
288
|
}
|
|
291
289
|
|
|
292
|
-
export const CreateConfigRequest = /*@__PURE__*/
|
|
293
|
-
(
|
|
294
|
-
Schema.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
),
|
|
290
|
+
export const CreateConfigRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
291
|
+
Schema.Struct({
|
|
292
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
293
|
+
defaultSampling: Schema.Number,
|
|
294
|
+
name: Schema.String,
|
|
295
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
296
|
+
warpDevices: Schema.optional(Schema.Array(Warpdevice)),
|
|
297
|
+
}).pipe(
|
|
298
|
+
Schema.encodeKeys({
|
|
299
|
+
defaultSampling: "default_sampling",
|
|
300
|
+
name: "name",
|
|
301
|
+
routerIps: "router_ips",
|
|
302
|
+
warpDevices: "warp_devices",
|
|
303
|
+
}),
|
|
304
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/mnm/config" }),
|
|
305
|
+
),
|
|
309
306
|
) as unknown as Schema.Codec<CreateConfigRequest>;
|
|
310
307
|
|
|
311
308
|
export interface CreateConfigResponse {
|
|
@@ -317,23 +314,22 @@ export interface CreateConfigResponse {
|
|
|
317
314
|
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
318
315
|
}
|
|
319
316
|
|
|
320
|
-
export const CreateConfigResponse = /*@__PURE__*/
|
|
321
|
-
(
|
|
322
|
-
Schema.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
.pipe(T.ResponsePath("result")),
|
|
317
|
+
export const CreateConfigResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
318
|
+
Schema.Struct({
|
|
319
|
+
defaultSampling: Schema.Number,
|
|
320
|
+
name: Schema.String,
|
|
321
|
+
routerIps: Schema.Array(Schema.String),
|
|
322
|
+
warpDevices: Schema.Array(Warpdevice),
|
|
323
|
+
})
|
|
324
|
+
.pipe(
|
|
325
|
+
Schema.encodeKeys({
|
|
326
|
+
defaultSampling: "default_sampling",
|
|
327
|
+
name: "name",
|
|
328
|
+
routerIps: "router_ips",
|
|
329
|
+
warpDevices: "warp_devices",
|
|
330
|
+
}),
|
|
331
|
+
)
|
|
332
|
+
.pipe(T.ResponsePath("result")),
|
|
337
333
|
) as unknown as Schema.Codec<CreateConfigResponse>;
|
|
338
334
|
|
|
339
335
|
export type CreateConfigError =
|
|
@@ -347,7 +343,7 @@ export const createConfig: API.OperationMethod<
|
|
|
347
343
|
CreateConfigResponse,
|
|
348
344
|
CreateConfigError,
|
|
349
345
|
Credentials | HttpClient.HttpClient
|
|
350
|
-
> = /*@__PURE__*/
|
|
346
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
351
347
|
input: CreateConfigRequest,
|
|
352
348
|
output: CreateConfigResponse,
|
|
353
349
|
errors: [MnmConfigAlreadyExists, InvalidMnmConfig, Forbidden],
|
|
@@ -366,23 +362,22 @@ export interface UpdateConfigRequest {
|
|
|
366
362
|
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
367
363
|
}
|
|
368
364
|
|
|
369
|
-
export const UpdateConfigRequest = /*@__PURE__*/
|
|
370
|
-
(
|
|
371
|
-
Schema.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
),
|
|
365
|
+
export const UpdateConfigRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
366
|
+
Schema.Struct({
|
|
367
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
368
|
+
defaultSampling: Schema.Number,
|
|
369
|
+
name: Schema.String,
|
|
370
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
371
|
+
warpDevices: Schema.optional(Schema.Array(Warpdevice)),
|
|
372
|
+
}).pipe(
|
|
373
|
+
Schema.encodeKeys({
|
|
374
|
+
defaultSampling: "default_sampling",
|
|
375
|
+
name: "name",
|
|
376
|
+
routerIps: "router_ips",
|
|
377
|
+
warpDevices: "warp_devices",
|
|
378
|
+
}),
|
|
379
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}/mnm/config" }),
|
|
380
|
+
),
|
|
386
381
|
) as unknown as Schema.Codec<UpdateConfigRequest>;
|
|
387
382
|
|
|
388
383
|
export type UpdateConfigResponse = {
|
|
@@ -392,11 +387,10 @@ export type UpdateConfigResponse = {
|
|
|
392
387
|
warpDevices?: { id: string; name: string; routerIp: string }[] | null;
|
|
393
388
|
} | null;
|
|
394
389
|
|
|
395
|
-
export const UpdateConfigResponse = /*@__PURE__*/
|
|
396
|
-
()
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
),
|
|
390
|
+
export const UpdateConfigResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
391
|
+
Schema.Union([GetConfigResponse2, Schema.Null]).pipe(
|
|
392
|
+
T.ResponsePath("result"),
|
|
393
|
+
),
|
|
400
394
|
) as unknown as Schema.Codec<UpdateConfigResponse>;
|
|
401
395
|
|
|
402
396
|
export type UpdateConfigError = DefaultErrors | Forbidden | InvalidMnmConfig;
|
|
@@ -406,7 +400,7 @@ export const updateConfig: API.OperationMethod<
|
|
|
406
400
|
UpdateConfigResponse,
|
|
407
401
|
UpdateConfigError,
|
|
408
402
|
Credentials | HttpClient.HttpClient
|
|
409
|
-
> = /*@__PURE__*/
|
|
403
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
410
404
|
input: UpdateConfigRequest,
|
|
411
405
|
output: UpdateConfigResponse,
|
|
412
406
|
errors: [Forbidden, InvalidMnmConfig],
|
|
@@ -425,23 +419,22 @@ export interface PatchConfigRequest {
|
|
|
425
419
|
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
426
420
|
}
|
|
427
421
|
|
|
428
|
-
export const PatchConfigRequest = /*@__PURE__*/
|
|
429
|
-
(
|
|
430
|
-
Schema.
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
),
|
|
422
|
+
export const PatchConfigRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
423
|
+
Schema.Struct({
|
|
424
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
425
|
+
defaultSampling: Schema.optional(Schema.Number),
|
|
426
|
+
name: Schema.optional(Schema.String),
|
|
427
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
428
|
+
warpDevices: Schema.optional(Schema.Array(Warpdevice)),
|
|
429
|
+
}).pipe(
|
|
430
|
+
Schema.encodeKeys({
|
|
431
|
+
defaultSampling: "default_sampling",
|
|
432
|
+
name: "name",
|
|
433
|
+
routerIps: "router_ips",
|
|
434
|
+
warpDevices: "warp_devices",
|
|
435
|
+
}),
|
|
436
|
+
T.Http({ method: "PATCH", path: "/accounts/{account_id}/mnm/config" }),
|
|
437
|
+
),
|
|
445
438
|
) as unknown as Schema.Codec<PatchConfigRequest>;
|
|
446
439
|
|
|
447
440
|
export interface PatchConfigResponse {
|
|
@@ -453,23 +446,22 @@ export interface PatchConfigResponse {
|
|
|
453
446
|
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
454
447
|
}
|
|
455
448
|
|
|
456
|
-
export const PatchConfigResponse = /*@__PURE__*/
|
|
457
|
-
(
|
|
458
|
-
Schema.
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
.
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
.pipe(T.ResponsePath("result")),
|
|
449
|
+
export const PatchConfigResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
450
|
+
Schema.Struct({
|
|
451
|
+
defaultSampling: Schema.Number,
|
|
452
|
+
name: Schema.String,
|
|
453
|
+
routerIps: Schema.Array(Schema.String),
|
|
454
|
+
warpDevices: Schema.Array(Warpdevice),
|
|
455
|
+
})
|
|
456
|
+
.pipe(
|
|
457
|
+
Schema.encodeKeys({
|
|
458
|
+
defaultSampling: "default_sampling",
|
|
459
|
+
name: "name",
|
|
460
|
+
routerIps: "router_ips",
|
|
461
|
+
warpDevices: "warp_devices",
|
|
462
|
+
}),
|
|
463
|
+
)
|
|
464
|
+
.pipe(T.ResponsePath("result")),
|
|
473
465
|
) as unknown as Schema.Codec<PatchConfigResponse>;
|
|
474
466
|
|
|
475
467
|
export type PatchConfigError = DefaultErrors;
|
|
@@ -479,7 +471,7 @@ export const patchConfig: API.OperationMethod<
|
|
|
479
471
|
PatchConfigResponse,
|
|
480
472
|
PatchConfigError,
|
|
481
473
|
Credentials | HttpClient.HttpClient
|
|
482
|
-
> = /*@__PURE__*/
|
|
474
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
483
475
|
input: PatchConfigRequest,
|
|
484
476
|
output: PatchConfigResponse,
|
|
485
477
|
errors: [],
|
|
@@ -489,13 +481,12 @@ export interface DeleteConfigRequest {
|
|
|
489
481
|
accountId: string;
|
|
490
482
|
}
|
|
491
483
|
|
|
492
|
-
export const DeleteConfigRequest = /*@__PURE__*/
|
|
493
|
-
(
|
|
494
|
-
Schema.
|
|
495
|
-
|
|
496
|
-
})
|
|
497
|
-
|
|
498
|
-
),
|
|
484
|
+
export const DeleteConfigRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
485
|
+
Schema.Struct({
|
|
486
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
487
|
+
}).pipe(
|
|
488
|
+
T.Http({ method: "DELETE", path: "/accounts/{account_id}/mnm/config" }),
|
|
489
|
+
),
|
|
499
490
|
) as unknown as Schema.Codec<DeleteConfigRequest>;
|
|
500
491
|
|
|
501
492
|
export interface DeleteConfigResponse {
|
|
@@ -507,23 +498,22 @@ export interface DeleteConfigResponse {
|
|
|
507
498
|
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
508
499
|
}
|
|
509
500
|
|
|
510
|
-
export const DeleteConfigResponse = /*@__PURE__*/
|
|
511
|
-
(
|
|
512
|
-
Schema.
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
.
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
.pipe(T.ResponsePath("result")),
|
|
501
|
+
export const DeleteConfigResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
502
|
+
Schema.Struct({
|
|
503
|
+
defaultSampling: Schema.Number,
|
|
504
|
+
name: Schema.String,
|
|
505
|
+
routerIps: Schema.Array(Schema.String),
|
|
506
|
+
warpDevices: Schema.Array(Warpdevice),
|
|
507
|
+
})
|
|
508
|
+
.pipe(
|
|
509
|
+
Schema.encodeKeys({
|
|
510
|
+
defaultSampling: "default_sampling",
|
|
511
|
+
name: "name",
|
|
512
|
+
routerIps: "router_ips",
|
|
513
|
+
warpDevices: "warp_devices",
|
|
514
|
+
}),
|
|
515
|
+
)
|
|
516
|
+
.pipe(T.ResponsePath("result")),
|
|
527
517
|
) as unknown as Schema.Codec<DeleteConfigResponse>;
|
|
528
518
|
|
|
529
519
|
export type DeleteConfigError = DefaultErrors | MnmConfigNotFound | Forbidden;
|
|
@@ -533,7 +523,7 @@ export const deleteConfig: API.OperationMethod<
|
|
|
533
523
|
DeleteConfigResponse,
|
|
534
524
|
DeleteConfigError,
|
|
535
525
|
Credentials | HttpClient.HttpClient
|
|
536
|
-
> = /*@__PURE__*/
|
|
526
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
537
527
|
input: DeleteConfigRequest,
|
|
538
528
|
output: DeleteConfigResponse,
|
|
539
529
|
errors: [MnmConfigNotFound, Forbidden],
|
|
@@ -547,13 +537,12 @@ export interface GetConfigFullRequest {
|
|
|
547
537
|
accountId: string;
|
|
548
538
|
}
|
|
549
539
|
|
|
550
|
-
export const GetConfigFullRequest = /*@__PURE__*/
|
|
551
|
-
(
|
|
552
|
-
Schema.
|
|
553
|
-
|
|
554
|
-
})
|
|
555
|
-
|
|
556
|
-
),
|
|
540
|
+
export const GetConfigFullRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
541
|
+
Schema.Struct({
|
|
542
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
543
|
+
}).pipe(
|
|
544
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/config/full" }),
|
|
545
|
+
),
|
|
557
546
|
) as unknown as Schema.Codec<GetConfigFullRequest>;
|
|
558
547
|
|
|
559
548
|
export interface GetConfigFullResponse {
|
|
@@ -565,23 +554,22 @@ export interface GetConfigFullResponse {
|
|
|
565
554
|
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
566
555
|
}
|
|
567
556
|
|
|
568
|
-
export const GetConfigFullResponse = /*@__PURE__*/
|
|
569
|
-
(
|
|
570
|
-
Schema.
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
.
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
.pipe(T.ResponsePath("result")),
|
|
557
|
+
export const GetConfigFullResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
558
|
+
Schema.Struct({
|
|
559
|
+
defaultSampling: Schema.Number,
|
|
560
|
+
name: Schema.String,
|
|
561
|
+
routerIps: Schema.Array(Schema.String),
|
|
562
|
+
warpDevices: Schema.Array(Warpdevice),
|
|
563
|
+
})
|
|
564
|
+
.pipe(
|
|
565
|
+
Schema.encodeKeys({
|
|
566
|
+
defaultSampling: "default_sampling",
|
|
567
|
+
name: "name",
|
|
568
|
+
routerIps: "router_ips",
|
|
569
|
+
warpDevices: "warp_devices",
|
|
570
|
+
}),
|
|
571
|
+
)
|
|
572
|
+
.pipe(T.ResponsePath("result")),
|
|
585
573
|
) as unknown as Schema.Codec<GetConfigFullResponse>;
|
|
586
574
|
|
|
587
575
|
export type GetConfigFullError = DefaultErrors;
|
|
@@ -591,7 +579,7 @@ export const getConfigFull: API.OperationMethod<
|
|
|
591
579
|
GetConfigFullResponse,
|
|
592
580
|
GetConfigFullError,
|
|
593
581
|
Credentials | HttpClient.HttpClient
|
|
594
|
-
> = /*@__PURE__*/
|
|
582
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
595
583
|
input: GetConfigFullRequest,
|
|
596
584
|
output: GetConfigFullResponse,
|
|
597
585
|
errors: [],
|
|
@@ -606,7 +594,7 @@ export interface GetRuleRequest {
|
|
|
606
594
|
accountId: string;
|
|
607
595
|
}
|
|
608
596
|
|
|
609
|
-
export const GetRuleRequest = /*@__PURE__*/
|
|
597
|
+
export const GetRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
610
598
|
Schema.Struct({
|
|
611
599
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
612
600
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -652,7 +640,7 @@ export interface GetRuleResponse {
|
|
|
652
640
|
zscoreTarget?: "bits" | "packets" | null;
|
|
653
641
|
}
|
|
654
642
|
|
|
655
|
-
export const GetRuleResponse = /*@__PURE__*/
|
|
643
|
+
export const GetRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
656
644
|
Schema.Struct({
|
|
657
645
|
id: Schema.String,
|
|
658
646
|
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -735,7 +723,7 @@ export const getRule: API.OperationMethod<
|
|
|
735
723
|
GetRuleResponse,
|
|
736
724
|
GetRuleError,
|
|
737
725
|
Credentials | HttpClient.HttpClient
|
|
738
|
-
> = /*@__PURE__*/
|
|
726
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
739
727
|
input: GetRuleRequest,
|
|
740
728
|
output: GetRuleResponse,
|
|
741
729
|
errors: [MnmRuleNotFound, Forbidden],
|
|
@@ -745,7 +733,7 @@ export interface ListRulesRequest {
|
|
|
745
733
|
accountId: string;
|
|
746
734
|
}
|
|
747
735
|
|
|
748
|
-
export const ListRulesRequest = /*@__PURE__*/
|
|
736
|
+
export const ListRulesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
749
737
|
Schema.Struct({
|
|
750
738
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
751
739
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/rules" })),
|
|
@@ -779,14 +767,13 @@ export interface ListRulesResponse {
|
|
|
779
767
|
| null;
|
|
780
768
|
}
|
|
781
769
|
|
|
782
|
-
export const ListRulesResponse = /*@__PURE__*/
|
|
783
|
-
(
|
|
784
|
-
Schema.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}),
|
|
770
|
+
export const ListRulesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
771
|
+
Schema.Struct({
|
|
772
|
+
result: Schema.Union([
|
|
773
|
+
Schema.Array(Schema.Union([MagicNetworkMonitoringRule, Schema.Null])),
|
|
774
|
+
Schema.Null,
|
|
775
|
+
]),
|
|
776
|
+
}),
|
|
790
777
|
) as unknown as Schema.Codec<ListRulesResponse>;
|
|
791
778
|
|
|
792
779
|
export type ListRulesError = DefaultErrors | Forbidden;
|
|
@@ -796,7 +783,7 @@ export const listRules: API.PaginatedOperationMethod<
|
|
|
796
783
|
ListRulesResponse,
|
|
797
784
|
ListRulesError,
|
|
798
785
|
Credentials | HttpClient.HttpClient
|
|
799
|
-
> = /*@__PURE__*/
|
|
786
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
800
787
|
input: ListRulesRequest,
|
|
801
788
|
output: ListRulesResponse,
|
|
802
789
|
errors: [Forbidden],
|
|
@@ -840,72 +827,62 @@ export interface CreateRuleRequest {
|
|
|
840
827
|
zscoreTarget?: "bits" | "packets" | null;
|
|
841
828
|
}
|
|
842
829
|
|
|
843
|
-
export const CreateRuleRequest = /*@__PURE__*/
|
|
844
|
-
(
|
|
845
|
-
Schema.
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
830
|
+
export const CreateRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
831
|
+
Schema.Struct({
|
|
832
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
833
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
834
|
+
name: Schema.String,
|
|
835
|
+
prefixes: Schema.Array(Schema.String),
|
|
836
|
+
type: Schema.Union([
|
|
837
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
838
|
+
Schema.String,
|
|
839
|
+
]),
|
|
840
|
+
bandwidthThreshold: Schema.optional(Schema.Number),
|
|
841
|
+
duration: Schema.optional(
|
|
842
|
+
Schema.Union([
|
|
843
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
852
844
|
Schema.String,
|
|
853
845
|
]),
|
|
854
|
-
bandwidthThreshold: Schema.optional(Schema.Number),
|
|
855
|
-
duration: Schema.optional(
|
|
856
|
-
Schema.Union([
|
|
857
|
-
Schema.Literals([
|
|
858
|
-
"1m",
|
|
859
|
-
"5m",
|
|
860
|
-
"10m",
|
|
861
|
-
"15m",
|
|
862
|
-
"20m",
|
|
863
|
-
"30m",
|
|
864
|
-
"45m",
|
|
865
|
-
"60m",
|
|
866
|
-
]),
|
|
867
|
-
Schema.String,
|
|
868
|
-
]),
|
|
869
|
-
),
|
|
870
|
-
packetThreshold: Schema.optional(Schema.Number),
|
|
871
|
-
prefixMatch: Schema.optional(
|
|
872
|
-
Schema.Union([
|
|
873
|
-
Schema.Literal("exact"),
|
|
874
|
-
Schema.Literal("subnet"),
|
|
875
|
-
Schema.Literal("supernet"),
|
|
876
|
-
Schema.Null,
|
|
877
|
-
]),
|
|
878
|
-
),
|
|
879
|
-
zscoreSensitivity: Schema.optional(
|
|
880
|
-
Schema.Union([
|
|
881
|
-
Schema.Literal("low"),
|
|
882
|
-
Schema.Literal("medium"),
|
|
883
|
-
Schema.Literal("high"),
|
|
884
|
-
Schema.Null,
|
|
885
|
-
]),
|
|
886
|
-
),
|
|
887
|
-
zscoreTarget: Schema.optional(
|
|
888
|
-
Schema.Union([
|
|
889
|
-
Schema.Literal("bits"),
|
|
890
|
-
Schema.Literal("packets"),
|
|
891
|
-
Schema.Null,
|
|
892
|
-
]),
|
|
893
|
-
),
|
|
894
|
-
}).pipe(
|
|
895
|
-
Schema.encodeKeys({
|
|
896
|
-
automaticAdvertisement: "automatic_advertisement",
|
|
897
|
-
name: "name",
|
|
898
|
-
prefixes: "prefixes",
|
|
899
|
-
type: "type",
|
|
900
|
-
bandwidthThreshold: "bandwidth_threshold",
|
|
901
|
-
duration: "duration",
|
|
902
|
-
packetThreshold: "packet_threshold",
|
|
903
|
-
prefixMatch: "prefix_match",
|
|
904
|
-
zscoreSensitivity: "zscore_sensitivity",
|
|
905
|
-
zscoreTarget: "zscore_target",
|
|
906
|
-
}),
|
|
907
|
-
T.Http({ method: "POST", path: "/accounts/{account_id}/mnm/rules" }),
|
|
908
846
|
),
|
|
847
|
+
packetThreshold: Schema.optional(Schema.Number),
|
|
848
|
+
prefixMatch: Schema.optional(
|
|
849
|
+
Schema.Union([
|
|
850
|
+
Schema.Literal("exact"),
|
|
851
|
+
Schema.Literal("subnet"),
|
|
852
|
+
Schema.Literal("supernet"),
|
|
853
|
+
Schema.Null,
|
|
854
|
+
]),
|
|
855
|
+
),
|
|
856
|
+
zscoreSensitivity: Schema.optional(
|
|
857
|
+
Schema.Union([
|
|
858
|
+
Schema.Literal("low"),
|
|
859
|
+
Schema.Literal("medium"),
|
|
860
|
+
Schema.Literal("high"),
|
|
861
|
+
Schema.Null,
|
|
862
|
+
]),
|
|
863
|
+
),
|
|
864
|
+
zscoreTarget: Schema.optional(
|
|
865
|
+
Schema.Union([
|
|
866
|
+
Schema.Literal("bits"),
|
|
867
|
+
Schema.Literal("packets"),
|
|
868
|
+
Schema.Null,
|
|
869
|
+
]),
|
|
870
|
+
),
|
|
871
|
+
}).pipe(
|
|
872
|
+
Schema.encodeKeys({
|
|
873
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
874
|
+
name: "name",
|
|
875
|
+
prefixes: "prefixes",
|
|
876
|
+
type: "type",
|
|
877
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
878
|
+
duration: "duration",
|
|
879
|
+
packetThreshold: "packet_threshold",
|
|
880
|
+
prefixMatch: "prefix_match",
|
|
881
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
882
|
+
zscoreTarget: "zscore_target",
|
|
883
|
+
}),
|
|
884
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/mnm/rules" }),
|
|
885
|
+
),
|
|
909
886
|
) as unknown as Schema.Codec<CreateRuleRequest>;
|
|
910
887
|
|
|
911
888
|
export interface CreateRuleResponse {
|
|
@@ -942,81 +919,80 @@ export interface CreateRuleResponse {
|
|
|
942
919
|
zscoreTarget?: "bits" | "packets" | null;
|
|
943
920
|
}
|
|
944
921
|
|
|
945
|
-
export const CreateRuleResponse = /*@__PURE__*/
|
|
946
|
-
(
|
|
947
|
-
Schema.
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
922
|
+
export const CreateRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
923
|
+
Schema.Struct({
|
|
924
|
+
id: Schema.String,
|
|
925
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
926
|
+
name: Schema.String,
|
|
927
|
+
prefixes: Schema.Array(Schema.String),
|
|
928
|
+
type: Schema.Union([
|
|
929
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
930
|
+
Schema.String,
|
|
931
|
+
]),
|
|
932
|
+
bandwidthThreshold: Schema.optional(
|
|
933
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
934
|
+
),
|
|
935
|
+
duration: Schema.optional(
|
|
936
|
+
Schema.Union([
|
|
960
937
|
Schema.Union([
|
|
961
|
-
Schema.
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
"60m",
|
|
971
|
-
]),
|
|
972
|
-
Schema.String,
|
|
938
|
+
Schema.Literals([
|
|
939
|
+
"1m",
|
|
940
|
+
"5m",
|
|
941
|
+
"10m",
|
|
942
|
+
"15m",
|
|
943
|
+
"20m",
|
|
944
|
+
"30m",
|
|
945
|
+
"45m",
|
|
946
|
+
"60m",
|
|
973
947
|
]),
|
|
974
|
-
Schema.
|
|
975
|
-
]),
|
|
976
|
-
),
|
|
977
|
-
packetThreshold: Schema.optional(
|
|
978
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
979
|
-
),
|
|
980
|
-
prefixMatch: Schema.optional(
|
|
981
|
-
Schema.Union([
|
|
982
|
-
Schema.Literal("exact"),
|
|
983
|
-
Schema.Literal("subnet"),
|
|
984
|
-
Schema.Literal("supernet"),
|
|
985
|
-
Schema.Null,
|
|
986
|
-
]),
|
|
987
|
-
),
|
|
988
|
-
zscoreSensitivity: Schema.optional(
|
|
989
|
-
Schema.Union([
|
|
990
|
-
Schema.Literal("low"),
|
|
991
|
-
Schema.Literal("medium"),
|
|
992
|
-
Schema.Literal("high"),
|
|
993
|
-
Schema.Null,
|
|
994
|
-
]),
|
|
995
|
-
),
|
|
996
|
-
zscoreTarget: Schema.optional(
|
|
997
|
-
Schema.Union([
|
|
998
|
-
Schema.Literal("bits"),
|
|
999
|
-
Schema.Literal("packets"),
|
|
1000
|
-
Schema.Null,
|
|
948
|
+
Schema.String,
|
|
1001
949
|
]),
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
950
|
+
Schema.Null,
|
|
951
|
+
]),
|
|
952
|
+
),
|
|
953
|
+
packetThreshold: Schema.optional(
|
|
954
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
955
|
+
),
|
|
956
|
+
prefixMatch: Schema.optional(
|
|
957
|
+
Schema.Union([
|
|
958
|
+
Schema.Literal("exact"),
|
|
959
|
+
Schema.Literal("subnet"),
|
|
960
|
+
Schema.Literal("supernet"),
|
|
961
|
+
Schema.Null,
|
|
962
|
+
]),
|
|
963
|
+
),
|
|
964
|
+
zscoreSensitivity: Schema.optional(
|
|
965
|
+
Schema.Union([
|
|
966
|
+
Schema.Literal("low"),
|
|
967
|
+
Schema.Literal("medium"),
|
|
968
|
+
Schema.Literal("high"),
|
|
969
|
+
Schema.Null,
|
|
970
|
+
]),
|
|
971
|
+
),
|
|
972
|
+
zscoreTarget: Schema.optional(
|
|
973
|
+
Schema.Union([
|
|
974
|
+
Schema.Literal("bits"),
|
|
975
|
+
Schema.Literal("packets"),
|
|
976
|
+
Schema.Null,
|
|
977
|
+
]),
|
|
978
|
+
),
|
|
979
|
+
})
|
|
980
|
+
.pipe(
|
|
981
|
+
Schema.encodeKeys({
|
|
982
|
+
id: "id",
|
|
983
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
984
|
+
name: "name",
|
|
985
|
+
prefixes: "prefixes",
|
|
986
|
+
type: "type",
|
|
987
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
988
|
+
duration: "duration",
|
|
989
|
+
packetThreshold: "packet_threshold",
|
|
990
|
+
prefixMatch: "prefix_match",
|
|
991
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
992
|
+
zscoreTarget: "zscore_target",
|
|
993
|
+
}),
|
|
994
|
+
)
|
|
995
|
+
.pipe(T.ResponsePath("result")),
|
|
1020
996
|
) as unknown as Schema.Codec<CreateRuleResponse>;
|
|
1021
997
|
|
|
1022
998
|
export type CreateRuleError =
|
|
@@ -1030,7 +1006,7 @@ export const createRule: API.OperationMethod<
|
|
|
1030
1006
|
CreateRuleResponse,
|
|
1031
1007
|
CreateRuleError,
|
|
1032
1008
|
Credentials | HttpClient.HttpClient
|
|
1033
|
-
> = /*@__PURE__*/
|
|
1009
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1034
1010
|
input: CreateRuleRequest,
|
|
1035
1011
|
output: CreateRuleResponse,
|
|
1036
1012
|
errors: [DuplicateMnmRuleName, MnmConfigMissing, Forbidden],
|
|
@@ -1070,19 +1046,113 @@ export interface UpdateRuleRequest {
|
|
|
1070
1046
|
zscoreTarget?: "bits" | "packets" | null;
|
|
1071
1047
|
}
|
|
1072
1048
|
|
|
1073
|
-
export const UpdateRuleRequest = /*@__PURE__*/
|
|
1074
|
-
(
|
|
1075
|
-
Schema.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1049
|
+
export const UpdateRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1050
|
+
Schema.Struct({
|
|
1051
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1052
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1053
|
+
name: Schema.String,
|
|
1054
|
+
prefixes: Schema.Array(Schema.String),
|
|
1055
|
+
type: Schema.Union([
|
|
1056
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1057
|
+
Schema.String,
|
|
1058
|
+
]),
|
|
1059
|
+
bandwidthThreshold: Schema.optional(Schema.Number),
|
|
1060
|
+
duration: Schema.optional(
|
|
1061
|
+
Schema.Union([
|
|
1062
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
1082
1063
|
Schema.String,
|
|
1083
1064
|
]),
|
|
1084
|
-
|
|
1085
|
-
|
|
1065
|
+
),
|
|
1066
|
+
packetThreshold: Schema.optional(Schema.Number),
|
|
1067
|
+
prefixMatch: Schema.optional(
|
|
1068
|
+
Schema.Union([
|
|
1069
|
+
Schema.Literal("exact"),
|
|
1070
|
+
Schema.Literal("subnet"),
|
|
1071
|
+
Schema.Literal("supernet"),
|
|
1072
|
+
Schema.Null,
|
|
1073
|
+
]),
|
|
1074
|
+
),
|
|
1075
|
+
zscoreSensitivity: Schema.optional(
|
|
1076
|
+
Schema.Union([
|
|
1077
|
+
Schema.Literal("low"),
|
|
1078
|
+
Schema.Literal("medium"),
|
|
1079
|
+
Schema.Literal("high"),
|
|
1080
|
+
Schema.Null,
|
|
1081
|
+
]),
|
|
1082
|
+
),
|
|
1083
|
+
zscoreTarget: Schema.optional(
|
|
1084
|
+
Schema.Union([
|
|
1085
|
+
Schema.Literal("bits"),
|
|
1086
|
+
Schema.Literal("packets"),
|
|
1087
|
+
Schema.Null,
|
|
1088
|
+
]),
|
|
1089
|
+
),
|
|
1090
|
+
}).pipe(
|
|
1091
|
+
Schema.encodeKeys({
|
|
1092
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
1093
|
+
name: "name",
|
|
1094
|
+
prefixes: "prefixes",
|
|
1095
|
+
type: "type",
|
|
1096
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
1097
|
+
duration: "duration",
|
|
1098
|
+
packetThreshold: "packet_threshold",
|
|
1099
|
+
prefixMatch: "prefix_match",
|
|
1100
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
1101
|
+
zscoreTarget: "zscore_target",
|
|
1102
|
+
}),
|
|
1103
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}/mnm/rules" }),
|
|
1104
|
+
),
|
|
1105
|
+
) as unknown as Schema.Codec<UpdateRuleRequest>;
|
|
1106
|
+
|
|
1107
|
+
export interface UpdateRuleResponse {
|
|
1108
|
+
/** The id of the rule. Must be unique. */
|
|
1109
|
+
id: string;
|
|
1110
|
+
/** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */
|
|
1111
|
+
automaticAdvertisement: boolean | null;
|
|
1112
|
+
/** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (\_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */
|
|
1113
|
+
name: string;
|
|
1114
|
+
prefixes: string[];
|
|
1115
|
+
/** MNM rule type. */
|
|
1116
|
+
type: "threshold" | "zscore" | "advanced_ddos" | (string & {});
|
|
1117
|
+
/** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */
|
|
1118
|
+
bandwidthThreshold?: number | null;
|
|
1119
|
+
/** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m", */
|
|
1120
|
+
duration?:
|
|
1121
|
+
| "1m"
|
|
1122
|
+
| "5m"
|
|
1123
|
+
| "10m"
|
|
1124
|
+
| "15m"
|
|
1125
|
+
| "20m"
|
|
1126
|
+
| "30m"
|
|
1127
|
+
| "45m"
|
|
1128
|
+
| "60m"
|
|
1129
|
+
| (string & {})
|
|
1130
|
+
| null;
|
|
1131
|
+
/** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */
|
|
1132
|
+
packetThreshold?: number | null;
|
|
1133
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
1134
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
1135
|
+
/** Level of sensitivity set for zscore rules. */
|
|
1136
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
1137
|
+
/** Target of the zscore rule analysis. */
|
|
1138
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export const UpdateRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1142
|
+
Schema.Struct({
|
|
1143
|
+
id: Schema.String,
|
|
1144
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1145
|
+
name: Schema.String,
|
|
1146
|
+
prefixes: Schema.Array(Schema.String),
|
|
1147
|
+
type: Schema.Union([
|
|
1148
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1149
|
+
Schema.String,
|
|
1150
|
+
]),
|
|
1151
|
+
bandwidthThreshold: Schema.optional(
|
|
1152
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1153
|
+
),
|
|
1154
|
+
duration: Schema.optional(
|
|
1155
|
+
Schema.Union([
|
|
1086
1156
|
Schema.Union([
|
|
1087
1157
|
Schema.Literals([
|
|
1088
1158
|
"1m",
|
|
@@ -1096,33 +1166,39 @@ export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1096
1166
|
]),
|
|
1097
1167
|
Schema.String,
|
|
1098
1168
|
]),
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
Schema.
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
Schema.
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1169
|
+
Schema.Null,
|
|
1170
|
+
]),
|
|
1171
|
+
),
|
|
1172
|
+
packetThreshold: Schema.optional(
|
|
1173
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1174
|
+
),
|
|
1175
|
+
prefixMatch: Schema.optional(
|
|
1176
|
+
Schema.Union([
|
|
1177
|
+
Schema.Literal("exact"),
|
|
1178
|
+
Schema.Literal("subnet"),
|
|
1179
|
+
Schema.Literal("supernet"),
|
|
1180
|
+
Schema.Null,
|
|
1181
|
+
]),
|
|
1182
|
+
),
|
|
1183
|
+
zscoreSensitivity: Schema.optional(
|
|
1184
|
+
Schema.Union([
|
|
1185
|
+
Schema.Literal("low"),
|
|
1186
|
+
Schema.Literal("medium"),
|
|
1187
|
+
Schema.Literal("high"),
|
|
1188
|
+
Schema.Null,
|
|
1189
|
+
]),
|
|
1190
|
+
),
|
|
1191
|
+
zscoreTarget: Schema.optional(
|
|
1192
|
+
Schema.Union([
|
|
1193
|
+
Schema.Literal("bits"),
|
|
1194
|
+
Schema.Literal("packets"),
|
|
1195
|
+
Schema.Null,
|
|
1196
|
+
]),
|
|
1197
|
+
),
|
|
1198
|
+
})
|
|
1199
|
+
.pipe(
|
|
1125
1200
|
Schema.encodeKeys({
|
|
1201
|
+
id: "id",
|
|
1126
1202
|
automaticAdvertisement: "automatic_advertisement",
|
|
1127
1203
|
name: "name",
|
|
1128
1204
|
prefixes: "prefixes",
|
|
@@ -1134,119 +1210,8 @@ export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
1134
1210
|
zscoreSensitivity: "zscore_sensitivity",
|
|
1135
1211
|
zscoreTarget: "zscore_target",
|
|
1136
1212
|
}),
|
|
1137
|
-
|
|
1138
|
-
),
|
|
1139
|
-
) as unknown as Schema.Codec<UpdateRuleRequest>;
|
|
1140
|
-
|
|
1141
|
-
export interface UpdateRuleResponse {
|
|
1142
|
-
/** The id of the rule. Must be unique. */
|
|
1143
|
-
id: string;
|
|
1144
|
-
/** Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit. */
|
|
1145
|
-
automaticAdvertisement: boolean | null;
|
|
1146
|
-
/** The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (\_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters. */
|
|
1147
|
-
name: string;
|
|
1148
|
-
prefixes: string[];
|
|
1149
|
-
/** MNM rule type. */
|
|
1150
|
-
type: "threshold" | "zscore" | "advanced_ddos" | (string & {});
|
|
1151
|
-
/** The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */
|
|
1152
|
-
bandwidthThreshold?: number | null;
|
|
1153
|
-
/** The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m", */
|
|
1154
|
-
duration?:
|
|
1155
|
-
| "1m"
|
|
1156
|
-
| "5m"
|
|
1157
|
-
| "10m"
|
|
1158
|
-
| "15m"
|
|
1159
|
-
| "20m"
|
|
1160
|
-
| "30m"
|
|
1161
|
-
| "45m"
|
|
1162
|
-
| "60m"
|
|
1163
|
-
| (string & {})
|
|
1164
|
-
| null;
|
|
1165
|
-
/** The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum. */
|
|
1166
|
-
packetThreshold?: number | null;
|
|
1167
|
-
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
1168
|
-
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
1169
|
-
/** Level of sensitivity set for zscore rules. */
|
|
1170
|
-
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
1171
|
-
/** Target of the zscore rule analysis. */
|
|
1172
|
-
zscoreTarget?: "bits" | "packets" | null;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
1176
|
-
() =>
|
|
1177
|
-
Schema.Struct({
|
|
1178
|
-
id: Schema.String,
|
|
1179
|
-
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1180
|
-
name: Schema.String,
|
|
1181
|
-
prefixes: Schema.Array(Schema.String),
|
|
1182
|
-
type: Schema.Union([
|
|
1183
|
-
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1184
|
-
Schema.String,
|
|
1185
|
-
]),
|
|
1186
|
-
bandwidthThreshold: Schema.optional(
|
|
1187
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1188
|
-
),
|
|
1189
|
-
duration: Schema.optional(
|
|
1190
|
-
Schema.Union([
|
|
1191
|
-
Schema.Union([
|
|
1192
|
-
Schema.Literals([
|
|
1193
|
-
"1m",
|
|
1194
|
-
"5m",
|
|
1195
|
-
"10m",
|
|
1196
|
-
"15m",
|
|
1197
|
-
"20m",
|
|
1198
|
-
"30m",
|
|
1199
|
-
"45m",
|
|
1200
|
-
"60m",
|
|
1201
|
-
]),
|
|
1202
|
-
Schema.String,
|
|
1203
|
-
]),
|
|
1204
|
-
Schema.Null,
|
|
1205
|
-
]),
|
|
1206
|
-
),
|
|
1207
|
-
packetThreshold: Schema.optional(
|
|
1208
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1209
|
-
),
|
|
1210
|
-
prefixMatch: Schema.optional(
|
|
1211
|
-
Schema.Union([
|
|
1212
|
-
Schema.Literal("exact"),
|
|
1213
|
-
Schema.Literal("subnet"),
|
|
1214
|
-
Schema.Literal("supernet"),
|
|
1215
|
-
Schema.Null,
|
|
1216
|
-
]),
|
|
1217
|
-
),
|
|
1218
|
-
zscoreSensitivity: Schema.optional(
|
|
1219
|
-
Schema.Union([
|
|
1220
|
-
Schema.Literal("low"),
|
|
1221
|
-
Schema.Literal("medium"),
|
|
1222
|
-
Schema.Literal("high"),
|
|
1223
|
-
Schema.Null,
|
|
1224
|
-
]),
|
|
1225
|
-
),
|
|
1226
|
-
zscoreTarget: Schema.optional(
|
|
1227
|
-
Schema.Union([
|
|
1228
|
-
Schema.Literal("bits"),
|
|
1229
|
-
Schema.Literal("packets"),
|
|
1230
|
-
Schema.Null,
|
|
1231
|
-
]),
|
|
1232
|
-
),
|
|
1233
|
-
})
|
|
1234
|
-
.pipe(
|
|
1235
|
-
Schema.encodeKeys({
|
|
1236
|
-
id: "id",
|
|
1237
|
-
automaticAdvertisement: "automatic_advertisement",
|
|
1238
|
-
name: "name",
|
|
1239
|
-
prefixes: "prefixes",
|
|
1240
|
-
type: "type",
|
|
1241
|
-
bandwidthThreshold: "bandwidth_threshold",
|
|
1242
|
-
duration: "duration",
|
|
1243
|
-
packetThreshold: "packet_threshold",
|
|
1244
|
-
prefixMatch: "prefix_match",
|
|
1245
|
-
zscoreSensitivity: "zscore_sensitivity",
|
|
1246
|
-
zscoreTarget: "zscore_target",
|
|
1247
|
-
}),
|
|
1248
|
-
)
|
|
1249
|
-
.pipe(T.ResponsePath("result")),
|
|
1213
|
+
)
|
|
1214
|
+
.pipe(T.ResponsePath("result")),
|
|
1250
1215
|
) as unknown as Schema.Codec<UpdateRuleResponse>;
|
|
1251
1216
|
|
|
1252
1217
|
export type UpdateRuleError = DefaultErrors;
|
|
@@ -1256,7 +1221,7 @@ export const updateRule: API.OperationMethod<
|
|
|
1256
1221
|
UpdateRuleResponse,
|
|
1257
1222
|
UpdateRuleError,
|
|
1258
1223
|
Credentials | HttpClient.HttpClient
|
|
1259
|
-
> = /*@__PURE__*/
|
|
1224
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1260
1225
|
input: UpdateRuleRequest,
|
|
1261
1226
|
output: UpdateRuleResponse,
|
|
1262
1227
|
errors: [],
|
|
@@ -1297,7 +1262,7 @@ export interface PatchRuleRequest {
|
|
|
1297
1262
|
zscoreTarget?: "bits" | "packets" | null;
|
|
1298
1263
|
}
|
|
1299
1264
|
|
|
1300
|
-
export const PatchRuleRequest = /*@__PURE__*/
|
|
1265
|
+
export const PatchRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1301
1266
|
Schema.Struct({
|
|
1302
1267
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
1303
1268
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1393,81 +1358,80 @@ export interface PatchRuleResponse {
|
|
|
1393
1358
|
zscoreTarget?: "bits" | "packets" | null;
|
|
1394
1359
|
}
|
|
1395
1360
|
|
|
1396
|
-
export const PatchRuleResponse = /*@__PURE__*/
|
|
1397
|
-
(
|
|
1398
|
-
Schema.
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1361
|
+
export const PatchRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1362
|
+
Schema.Struct({
|
|
1363
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1364
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1365
|
+
name: Schema.String,
|
|
1366
|
+
prefixes: Schema.Array(Schema.String),
|
|
1367
|
+
type: Schema.Union([
|
|
1368
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1369
|
+
Schema.String,
|
|
1370
|
+
]),
|
|
1371
|
+
bandwidthThreshold: Schema.optional(
|
|
1372
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1373
|
+
),
|
|
1374
|
+
duration: Schema.optional(
|
|
1375
|
+
Schema.Union([
|
|
1411
1376
|
Schema.Union([
|
|
1412
|
-
Schema.
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
"60m",
|
|
1422
|
-
]),
|
|
1423
|
-
Schema.String,
|
|
1377
|
+
Schema.Literals([
|
|
1378
|
+
"1m",
|
|
1379
|
+
"5m",
|
|
1380
|
+
"10m",
|
|
1381
|
+
"15m",
|
|
1382
|
+
"20m",
|
|
1383
|
+
"30m",
|
|
1384
|
+
"45m",
|
|
1385
|
+
"60m",
|
|
1424
1386
|
]),
|
|
1425
|
-
Schema.
|
|
1426
|
-
]),
|
|
1427
|
-
),
|
|
1428
|
-
packetThreshold: Schema.optional(
|
|
1429
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1430
|
-
),
|
|
1431
|
-
prefixMatch: Schema.optional(
|
|
1432
|
-
Schema.Union([
|
|
1433
|
-
Schema.Literal("exact"),
|
|
1434
|
-
Schema.Literal("subnet"),
|
|
1435
|
-
Schema.Literal("supernet"),
|
|
1436
|
-
Schema.Null,
|
|
1437
|
-
]),
|
|
1438
|
-
),
|
|
1439
|
-
zscoreSensitivity: Schema.optional(
|
|
1440
|
-
Schema.Union([
|
|
1441
|
-
Schema.Literal("low"),
|
|
1442
|
-
Schema.Literal("medium"),
|
|
1443
|
-
Schema.Literal("high"),
|
|
1444
|
-
Schema.Null,
|
|
1445
|
-
]),
|
|
1446
|
-
),
|
|
1447
|
-
zscoreTarget: Schema.optional(
|
|
1448
|
-
Schema.Union([
|
|
1449
|
-
Schema.Literal("bits"),
|
|
1450
|
-
Schema.Literal("packets"),
|
|
1451
|
-
Schema.Null,
|
|
1387
|
+
Schema.String,
|
|
1452
1388
|
]),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1389
|
+
Schema.Null,
|
|
1390
|
+
]),
|
|
1391
|
+
),
|
|
1392
|
+
packetThreshold: Schema.optional(
|
|
1393
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1394
|
+
),
|
|
1395
|
+
prefixMatch: Schema.optional(
|
|
1396
|
+
Schema.Union([
|
|
1397
|
+
Schema.Literal("exact"),
|
|
1398
|
+
Schema.Literal("subnet"),
|
|
1399
|
+
Schema.Literal("supernet"),
|
|
1400
|
+
Schema.Null,
|
|
1401
|
+
]),
|
|
1402
|
+
),
|
|
1403
|
+
zscoreSensitivity: Schema.optional(
|
|
1404
|
+
Schema.Union([
|
|
1405
|
+
Schema.Literal("low"),
|
|
1406
|
+
Schema.Literal("medium"),
|
|
1407
|
+
Schema.Literal("high"),
|
|
1408
|
+
Schema.Null,
|
|
1409
|
+
]),
|
|
1410
|
+
),
|
|
1411
|
+
zscoreTarget: Schema.optional(
|
|
1412
|
+
Schema.Union([
|
|
1413
|
+
Schema.Literal("bits"),
|
|
1414
|
+
Schema.Literal("packets"),
|
|
1415
|
+
Schema.Null,
|
|
1416
|
+
]),
|
|
1417
|
+
),
|
|
1418
|
+
})
|
|
1419
|
+
.pipe(
|
|
1420
|
+
Schema.encodeKeys({
|
|
1421
|
+
id: "id",
|
|
1422
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
1423
|
+
name: "name",
|
|
1424
|
+
prefixes: "prefixes",
|
|
1425
|
+
type: "type",
|
|
1426
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
1427
|
+
duration: "duration",
|
|
1428
|
+
packetThreshold: "packet_threshold",
|
|
1429
|
+
prefixMatch: "prefix_match",
|
|
1430
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
1431
|
+
zscoreTarget: "zscore_target",
|
|
1432
|
+
}),
|
|
1433
|
+
)
|
|
1434
|
+
.pipe(T.ResponsePath("result")),
|
|
1471
1435
|
) as unknown as Schema.Codec<PatchRuleResponse>;
|
|
1472
1436
|
|
|
1473
1437
|
export type PatchRuleError = DefaultErrors | MnmRuleNotFound | Forbidden;
|
|
@@ -1477,7 +1441,7 @@ export const patchRule: API.OperationMethod<
|
|
|
1477
1441
|
PatchRuleResponse,
|
|
1478
1442
|
PatchRuleError,
|
|
1479
1443
|
Credentials | HttpClient.HttpClient
|
|
1480
|
-
> = /*@__PURE__*/
|
|
1444
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1481
1445
|
input: PatchRuleRequest,
|
|
1482
1446
|
output: PatchRuleResponse,
|
|
1483
1447
|
errors: [MnmRuleNotFound, Forbidden],
|
|
@@ -1488,17 +1452,16 @@ export interface DeleteRuleRequest {
|
|
|
1488
1452
|
accountId: string;
|
|
1489
1453
|
}
|
|
1490
1454
|
|
|
1491
|
-
export const DeleteRuleRequest = /*@__PURE__*/
|
|
1492
|
-
(
|
|
1493
|
-
Schema.
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
),
|
|
1455
|
+
export const DeleteRuleRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1456
|
+
Schema.Struct({
|
|
1457
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
1458
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1459
|
+
}).pipe(
|
|
1460
|
+
T.Http({
|
|
1461
|
+
method: "DELETE",
|
|
1462
|
+
path: "/accounts/{account_id}/mnm/rules/{ruleId}",
|
|
1463
|
+
}),
|
|
1464
|
+
),
|
|
1502
1465
|
) as unknown as Schema.Codec<DeleteRuleRequest>;
|
|
1503
1466
|
|
|
1504
1467
|
export interface DeleteRuleResponse {
|
|
@@ -1535,81 +1498,80 @@ export interface DeleteRuleResponse {
|
|
|
1535
1498
|
zscoreTarget?: "bits" | "packets" | null;
|
|
1536
1499
|
}
|
|
1537
1500
|
|
|
1538
|
-
export const DeleteRuleResponse = /*@__PURE__*/
|
|
1539
|
-
(
|
|
1540
|
-
Schema.
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1501
|
+
export const DeleteRuleResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1502
|
+
Schema.Struct({
|
|
1503
|
+
id: Schema.String,
|
|
1504
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1505
|
+
name: Schema.String,
|
|
1506
|
+
prefixes: Schema.Array(Schema.String),
|
|
1507
|
+
type: Schema.Union([
|
|
1508
|
+
Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1509
|
+
Schema.String,
|
|
1510
|
+
]),
|
|
1511
|
+
bandwidthThreshold: Schema.optional(
|
|
1512
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1513
|
+
),
|
|
1514
|
+
duration: Schema.optional(
|
|
1515
|
+
Schema.Union([
|
|
1553
1516
|
Schema.Union([
|
|
1554
|
-
Schema.
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
"60m",
|
|
1564
|
-
]),
|
|
1565
|
-
Schema.String,
|
|
1517
|
+
Schema.Literals([
|
|
1518
|
+
"1m",
|
|
1519
|
+
"5m",
|
|
1520
|
+
"10m",
|
|
1521
|
+
"15m",
|
|
1522
|
+
"20m",
|
|
1523
|
+
"30m",
|
|
1524
|
+
"45m",
|
|
1525
|
+
"60m",
|
|
1566
1526
|
]),
|
|
1567
|
-
Schema.
|
|
1568
|
-
]),
|
|
1569
|
-
),
|
|
1570
|
-
packetThreshold: Schema.optional(
|
|
1571
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1572
|
-
),
|
|
1573
|
-
prefixMatch: Schema.optional(
|
|
1574
|
-
Schema.Union([
|
|
1575
|
-
Schema.Literal("exact"),
|
|
1576
|
-
Schema.Literal("subnet"),
|
|
1577
|
-
Schema.Literal("supernet"),
|
|
1578
|
-
Schema.Null,
|
|
1579
|
-
]),
|
|
1580
|
-
),
|
|
1581
|
-
zscoreSensitivity: Schema.optional(
|
|
1582
|
-
Schema.Union([
|
|
1583
|
-
Schema.Literal("low"),
|
|
1584
|
-
Schema.Literal("medium"),
|
|
1585
|
-
Schema.Literal("high"),
|
|
1586
|
-
Schema.Null,
|
|
1587
|
-
]),
|
|
1588
|
-
),
|
|
1589
|
-
zscoreTarget: Schema.optional(
|
|
1590
|
-
Schema.Union([
|
|
1591
|
-
Schema.Literal("bits"),
|
|
1592
|
-
Schema.Literal("packets"),
|
|
1593
|
-
Schema.Null,
|
|
1527
|
+
Schema.String,
|
|
1594
1528
|
]),
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1529
|
+
Schema.Null,
|
|
1530
|
+
]),
|
|
1531
|
+
),
|
|
1532
|
+
packetThreshold: Schema.optional(
|
|
1533
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1534
|
+
),
|
|
1535
|
+
prefixMatch: Schema.optional(
|
|
1536
|
+
Schema.Union([
|
|
1537
|
+
Schema.Literal("exact"),
|
|
1538
|
+
Schema.Literal("subnet"),
|
|
1539
|
+
Schema.Literal("supernet"),
|
|
1540
|
+
Schema.Null,
|
|
1541
|
+
]),
|
|
1542
|
+
),
|
|
1543
|
+
zscoreSensitivity: Schema.optional(
|
|
1544
|
+
Schema.Union([
|
|
1545
|
+
Schema.Literal("low"),
|
|
1546
|
+
Schema.Literal("medium"),
|
|
1547
|
+
Schema.Literal("high"),
|
|
1548
|
+
Schema.Null,
|
|
1549
|
+
]),
|
|
1550
|
+
),
|
|
1551
|
+
zscoreTarget: Schema.optional(
|
|
1552
|
+
Schema.Union([
|
|
1553
|
+
Schema.Literal("bits"),
|
|
1554
|
+
Schema.Literal("packets"),
|
|
1555
|
+
Schema.Null,
|
|
1556
|
+
]),
|
|
1557
|
+
),
|
|
1558
|
+
})
|
|
1559
|
+
.pipe(
|
|
1560
|
+
Schema.encodeKeys({
|
|
1561
|
+
id: "id",
|
|
1562
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
1563
|
+
name: "name",
|
|
1564
|
+
prefixes: "prefixes",
|
|
1565
|
+
type: "type",
|
|
1566
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
1567
|
+
duration: "duration",
|
|
1568
|
+
packetThreshold: "packet_threshold",
|
|
1569
|
+
prefixMatch: "prefix_match",
|
|
1570
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
1571
|
+
zscoreTarget: "zscore_target",
|
|
1572
|
+
}),
|
|
1573
|
+
)
|
|
1574
|
+
.pipe(T.ResponsePath("result")),
|
|
1613
1575
|
) as unknown as Schema.Codec<DeleteRuleResponse>;
|
|
1614
1576
|
|
|
1615
1577
|
export type DeleteRuleError = DefaultErrors | MnmRuleNotFound | Forbidden;
|
|
@@ -1619,7 +1581,7 @@ export const deleteRule: API.OperationMethod<
|
|
|
1619
1581
|
DeleteRuleResponse,
|
|
1620
1582
|
DeleteRuleError,
|
|
1621
1583
|
Credentials | HttpClient.HttpClient
|
|
1622
|
-
> = /*@__PURE__*/
|
|
1584
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1623
1585
|
input: DeleteRuleRequest,
|
|
1624
1586
|
output: DeleteRuleResponse,
|
|
1625
1587
|
errors: [MnmRuleNotFound, Forbidden],
|
|
@@ -1638,7 +1600,7 @@ export interface PatchRuleAdvertisementRequest {
|
|
|
1638
1600
|
}
|
|
1639
1601
|
|
|
1640
1602
|
export const PatchRuleAdvertisementRequest =
|
|
1641
|
-
/*@__PURE__*/
|
|
1603
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1642
1604
|
Schema.Struct({
|
|
1643
1605
|
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
1644
1606
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1657,7 +1619,7 @@ export interface PatchRuleAdvertisementResponse {
|
|
|
1657
1619
|
}
|
|
1658
1620
|
|
|
1659
1621
|
export const PatchRuleAdvertisementResponse =
|
|
1660
|
-
/*@__PURE__*/
|
|
1622
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1661
1623
|
Schema.Struct({
|
|
1662
1624
|
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1663
1625
|
})
|
|
@@ -1676,7 +1638,7 @@ export const patchRuleAdvertisement: API.OperationMethod<
|
|
|
1676
1638
|
PatchRuleAdvertisementResponse,
|
|
1677
1639
|
PatchRuleAdvertisementError,
|
|
1678
1640
|
Credentials | HttpClient.HttpClient
|
|
1679
|
-
> = /*@__PURE__*/
|
|
1641
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1680
1642
|
input: PatchRuleAdvertisementRequest,
|
|
1681
1643
|
output: PatchRuleAdvertisementResponse,
|
|
1682
1644
|
errors: [],
|
|
@@ -1691,7 +1653,7 @@ export interface CreateVpcFlowTokenRequest {
|
|
|
1691
1653
|
}
|
|
1692
1654
|
|
|
1693
1655
|
export const CreateVpcFlowTokenRequest =
|
|
1694
|
-
/*@__PURE__*/
|
|
1656
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1695
1657
|
Schema.Struct({
|
|
1696
1658
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1697
1659
|
}).pipe(
|
|
@@ -1705,7 +1667,7 @@ export const CreateVpcFlowTokenRequest =
|
|
|
1705
1667
|
export type CreateVpcFlowTokenResponse = string;
|
|
1706
1668
|
|
|
1707
1669
|
export const CreateVpcFlowTokenResponse =
|
|
1708
|
-
/*@__PURE__*/
|
|
1670
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1709
1671
|
Schema.String.pipe(T.ResponsePath("result")),
|
|
1710
1672
|
) as unknown as Schema.Codec<CreateVpcFlowTokenResponse>;
|
|
1711
1673
|
|
|
@@ -1716,7 +1678,7 @@ export const createVpcFlowToken: API.OperationMethod<
|
|
|
1716
1678
|
CreateVpcFlowTokenResponse,
|
|
1717
1679
|
CreateVpcFlowTokenError,
|
|
1718
1680
|
Credentials | HttpClient.HttpClient
|
|
1719
|
-
> = /*@__PURE__*/
|
|
1681
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1720
1682
|
input: CreateVpcFlowTokenRequest,
|
|
1721
1683
|
output: CreateVpcFlowTokenResponse,
|
|
1722
1684
|
errors: [],
|