@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +197 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +48 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +38 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +67 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +269 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +65 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58933 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,1156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare MAGIC-NETWORK-MONITORING API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service magic-network-monitoring
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// Config
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export interface GetConfigRequest {
|
|
20
|
+
accountId: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const GetConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
24
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
25
|
+
}).pipe(
|
|
26
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/config" }),
|
|
27
|
+
) as unknown as Schema.Schema<GetConfigRequest>;
|
|
28
|
+
|
|
29
|
+
export interface GetConfigResponse {
|
|
30
|
+
/** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
31
|
+
defaultSampling: number;
|
|
32
|
+
/** The account name. */
|
|
33
|
+
name: string;
|
|
34
|
+
routerIps: string[];
|
|
35
|
+
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const GetConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
39
|
+
defaultSampling: Schema.Number,
|
|
40
|
+
name: Schema.String,
|
|
41
|
+
routerIps: Schema.Array(Schema.String),
|
|
42
|
+
warpDevices: Schema.Array(
|
|
43
|
+
Schema.Struct({
|
|
44
|
+
id: Schema.String,
|
|
45
|
+
name: Schema.String,
|
|
46
|
+
routerIp: Schema.String,
|
|
47
|
+
}).pipe(
|
|
48
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
49
|
+
),
|
|
50
|
+
),
|
|
51
|
+
}).pipe(
|
|
52
|
+
Schema.encodeKeys({
|
|
53
|
+
defaultSampling: "default_sampling",
|
|
54
|
+
name: "name",
|
|
55
|
+
routerIps: "router_ips",
|
|
56
|
+
warpDevices: "warp_devices",
|
|
57
|
+
}),
|
|
58
|
+
) as unknown as Schema.Schema<GetConfigResponse>;
|
|
59
|
+
|
|
60
|
+
export type GetConfigError = DefaultErrors;
|
|
61
|
+
|
|
62
|
+
export const getConfig: API.OperationMethod<
|
|
63
|
+
GetConfigRequest,
|
|
64
|
+
GetConfigResponse,
|
|
65
|
+
GetConfigError,
|
|
66
|
+
Credentials | HttpClient.HttpClient
|
|
67
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
68
|
+
input: GetConfigRequest,
|
|
69
|
+
output: GetConfigResponse,
|
|
70
|
+
errors: [],
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
export interface CreateConfigRequest {
|
|
74
|
+
/** Path param: */
|
|
75
|
+
accountId: string;
|
|
76
|
+
/** Body param: Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
77
|
+
defaultSampling: number;
|
|
78
|
+
/** Body param: The account name. */
|
|
79
|
+
name: string;
|
|
80
|
+
/** Body param: */
|
|
81
|
+
routerIps?: string[];
|
|
82
|
+
/** Body param: */
|
|
83
|
+
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const CreateConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
87
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
88
|
+
defaultSampling: Schema.Number,
|
|
89
|
+
name: Schema.String,
|
|
90
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
91
|
+
warpDevices: Schema.optional(
|
|
92
|
+
Schema.Array(
|
|
93
|
+
Schema.Struct({
|
|
94
|
+
id: Schema.String,
|
|
95
|
+
name: Schema.String,
|
|
96
|
+
routerIp: Schema.String,
|
|
97
|
+
}).pipe(
|
|
98
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
99
|
+
),
|
|
100
|
+
),
|
|
101
|
+
),
|
|
102
|
+
}).pipe(
|
|
103
|
+
Schema.encodeKeys({
|
|
104
|
+
defaultSampling: "default_sampling",
|
|
105
|
+
name: "name",
|
|
106
|
+
routerIps: "router_ips",
|
|
107
|
+
warpDevices: "warp_devices",
|
|
108
|
+
}),
|
|
109
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/mnm/config" }),
|
|
110
|
+
) as unknown as Schema.Schema<CreateConfigRequest>;
|
|
111
|
+
|
|
112
|
+
export interface CreateConfigResponse {
|
|
113
|
+
/** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
114
|
+
defaultSampling: number;
|
|
115
|
+
/** The account name. */
|
|
116
|
+
name: string;
|
|
117
|
+
routerIps: string[];
|
|
118
|
+
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const CreateConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
122
|
+
defaultSampling: Schema.Number,
|
|
123
|
+
name: Schema.String,
|
|
124
|
+
routerIps: Schema.Array(Schema.String),
|
|
125
|
+
warpDevices: Schema.Array(
|
|
126
|
+
Schema.Struct({
|
|
127
|
+
id: Schema.String,
|
|
128
|
+
name: Schema.String,
|
|
129
|
+
routerIp: Schema.String,
|
|
130
|
+
}).pipe(
|
|
131
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
132
|
+
),
|
|
133
|
+
),
|
|
134
|
+
}).pipe(
|
|
135
|
+
Schema.encodeKeys({
|
|
136
|
+
defaultSampling: "default_sampling",
|
|
137
|
+
name: "name",
|
|
138
|
+
routerIps: "router_ips",
|
|
139
|
+
warpDevices: "warp_devices",
|
|
140
|
+
}),
|
|
141
|
+
) as unknown as Schema.Schema<CreateConfigResponse>;
|
|
142
|
+
|
|
143
|
+
export type CreateConfigError = DefaultErrors;
|
|
144
|
+
|
|
145
|
+
export const createConfig: API.OperationMethod<
|
|
146
|
+
CreateConfigRequest,
|
|
147
|
+
CreateConfigResponse,
|
|
148
|
+
CreateConfigError,
|
|
149
|
+
Credentials | HttpClient.HttpClient
|
|
150
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
151
|
+
input: CreateConfigRequest,
|
|
152
|
+
output: CreateConfigResponse,
|
|
153
|
+
errors: [],
|
|
154
|
+
}));
|
|
155
|
+
|
|
156
|
+
export interface UpdateConfigRequest {
|
|
157
|
+
/** Path param: */
|
|
158
|
+
accountId: string;
|
|
159
|
+
/** Body param: Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
160
|
+
defaultSampling: number;
|
|
161
|
+
/** Body param: The account name. */
|
|
162
|
+
name: string;
|
|
163
|
+
/** Body param: */
|
|
164
|
+
routerIps?: string[];
|
|
165
|
+
/** Body param: */
|
|
166
|
+
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export const UpdateConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
170
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
171
|
+
defaultSampling: Schema.Number,
|
|
172
|
+
name: Schema.String,
|
|
173
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
174
|
+
warpDevices: Schema.optional(
|
|
175
|
+
Schema.Array(
|
|
176
|
+
Schema.Struct({
|
|
177
|
+
id: Schema.String,
|
|
178
|
+
name: Schema.String,
|
|
179
|
+
routerIp: Schema.String,
|
|
180
|
+
}).pipe(
|
|
181
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
),
|
|
185
|
+
}).pipe(
|
|
186
|
+
Schema.encodeKeys({
|
|
187
|
+
defaultSampling: "default_sampling",
|
|
188
|
+
name: "name",
|
|
189
|
+
routerIps: "router_ips",
|
|
190
|
+
warpDevices: "warp_devices",
|
|
191
|
+
}),
|
|
192
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}/mnm/config" }),
|
|
193
|
+
) as unknown as Schema.Schema<UpdateConfigRequest>;
|
|
194
|
+
|
|
195
|
+
export interface UpdateConfigResponse {
|
|
196
|
+
/** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
197
|
+
defaultSampling: number;
|
|
198
|
+
/** The account name. */
|
|
199
|
+
name: string;
|
|
200
|
+
routerIps: string[];
|
|
201
|
+
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export const UpdateConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
205
|
+
defaultSampling: Schema.Number,
|
|
206
|
+
name: Schema.String,
|
|
207
|
+
routerIps: Schema.Array(Schema.String),
|
|
208
|
+
warpDevices: Schema.Array(
|
|
209
|
+
Schema.Struct({
|
|
210
|
+
id: Schema.String,
|
|
211
|
+
name: Schema.String,
|
|
212
|
+
routerIp: Schema.String,
|
|
213
|
+
}).pipe(
|
|
214
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
215
|
+
),
|
|
216
|
+
),
|
|
217
|
+
}).pipe(
|
|
218
|
+
Schema.encodeKeys({
|
|
219
|
+
defaultSampling: "default_sampling",
|
|
220
|
+
name: "name",
|
|
221
|
+
routerIps: "router_ips",
|
|
222
|
+
warpDevices: "warp_devices",
|
|
223
|
+
}),
|
|
224
|
+
) as unknown as Schema.Schema<UpdateConfigResponse>;
|
|
225
|
+
|
|
226
|
+
export type UpdateConfigError = DefaultErrors;
|
|
227
|
+
|
|
228
|
+
export const updateConfig: API.OperationMethod<
|
|
229
|
+
UpdateConfigRequest,
|
|
230
|
+
UpdateConfigResponse,
|
|
231
|
+
UpdateConfigError,
|
|
232
|
+
Credentials | HttpClient.HttpClient
|
|
233
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
234
|
+
input: UpdateConfigRequest,
|
|
235
|
+
output: UpdateConfigResponse,
|
|
236
|
+
errors: [],
|
|
237
|
+
}));
|
|
238
|
+
|
|
239
|
+
export interface PatchConfigRequest {
|
|
240
|
+
/** Path param: */
|
|
241
|
+
accountId: string;
|
|
242
|
+
/** Body param: Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
243
|
+
defaultSampling?: number;
|
|
244
|
+
/** Body param: The account name. */
|
|
245
|
+
name?: string;
|
|
246
|
+
/** Body param: */
|
|
247
|
+
routerIps?: string[];
|
|
248
|
+
/** Body param: */
|
|
249
|
+
warpDevices?: { id: string; name: string; routerIp: string }[];
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export const PatchConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
253
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
254
|
+
defaultSampling: Schema.optional(Schema.Number),
|
|
255
|
+
name: Schema.optional(Schema.String),
|
|
256
|
+
routerIps: Schema.optional(Schema.Array(Schema.String)),
|
|
257
|
+
warpDevices: Schema.optional(
|
|
258
|
+
Schema.Array(
|
|
259
|
+
Schema.Struct({
|
|
260
|
+
id: Schema.String,
|
|
261
|
+
name: Schema.String,
|
|
262
|
+
routerIp: Schema.String,
|
|
263
|
+
}).pipe(
|
|
264
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
265
|
+
),
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
}).pipe(
|
|
269
|
+
Schema.encodeKeys({
|
|
270
|
+
defaultSampling: "default_sampling",
|
|
271
|
+
name: "name",
|
|
272
|
+
routerIps: "router_ips",
|
|
273
|
+
warpDevices: "warp_devices",
|
|
274
|
+
}),
|
|
275
|
+
T.Http({ method: "PATCH", path: "/accounts/{account_id}/mnm/config" }),
|
|
276
|
+
) as unknown as Schema.Schema<PatchConfigRequest>;
|
|
277
|
+
|
|
278
|
+
export interface PatchConfigResponse {
|
|
279
|
+
/** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
280
|
+
defaultSampling: number;
|
|
281
|
+
/** The account name. */
|
|
282
|
+
name: string;
|
|
283
|
+
routerIps: string[];
|
|
284
|
+
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export const PatchConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
288
|
+
defaultSampling: Schema.Number,
|
|
289
|
+
name: Schema.String,
|
|
290
|
+
routerIps: Schema.Array(Schema.String),
|
|
291
|
+
warpDevices: Schema.Array(
|
|
292
|
+
Schema.Struct({
|
|
293
|
+
id: Schema.String,
|
|
294
|
+
name: Schema.String,
|
|
295
|
+
routerIp: Schema.String,
|
|
296
|
+
}).pipe(
|
|
297
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
298
|
+
),
|
|
299
|
+
),
|
|
300
|
+
}).pipe(
|
|
301
|
+
Schema.encodeKeys({
|
|
302
|
+
defaultSampling: "default_sampling",
|
|
303
|
+
name: "name",
|
|
304
|
+
routerIps: "router_ips",
|
|
305
|
+
warpDevices: "warp_devices",
|
|
306
|
+
}),
|
|
307
|
+
) as unknown as Schema.Schema<PatchConfigResponse>;
|
|
308
|
+
|
|
309
|
+
export type PatchConfigError = DefaultErrors;
|
|
310
|
+
|
|
311
|
+
export const patchConfig: API.OperationMethod<
|
|
312
|
+
PatchConfigRequest,
|
|
313
|
+
PatchConfigResponse,
|
|
314
|
+
PatchConfigError,
|
|
315
|
+
Credentials | HttpClient.HttpClient
|
|
316
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
317
|
+
input: PatchConfigRequest,
|
|
318
|
+
output: PatchConfigResponse,
|
|
319
|
+
errors: [],
|
|
320
|
+
}));
|
|
321
|
+
|
|
322
|
+
export interface DeleteConfigRequest {
|
|
323
|
+
accountId: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export const DeleteConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
327
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
328
|
+
}).pipe(
|
|
329
|
+
T.Http({ method: "DELETE", path: "/accounts/{account_id}/mnm/config" }),
|
|
330
|
+
) as unknown as Schema.Schema<DeleteConfigRequest>;
|
|
331
|
+
|
|
332
|
+
export interface DeleteConfigResponse {
|
|
333
|
+
/** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
|
|
334
|
+
defaultSampling: number;
|
|
335
|
+
/** The account name. */
|
|
336
|
+
name: string;
|
|
337
|
+
routerIps: string[];
|
|
338
|
+
warpDevices: { id: string; name: string; routerIp: string }[];
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export const DeleteConfigResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
342
|
+
defaultSampling: Schema.Number,
|
|
343
|
+
name: Schema.String,
|
|
344
|
+
routerIps: Schema.Array(Schema.String),
|
|
345
|
+
warpDevices: Schema.Array(
|
|
346
|
+
Schema.Struct({
|
|
347
|
+
id: Schema.String,
|
|
348
|
+
name: Schema.String,
|
|
349
|
+
routerIp: Schema.String,
|
|
350
|
+
}).pipe(
|
|
351
|
+
Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
|
|
352
|
+
),
|
|
353
|
+
),
|
|
354
|
+
}).pipe(
|
|
355
|
+
Schema.encodeKeys({
|
|
356
|
+
defaultSampling: "default_sampling",
|
|
357
|
+
name: "name",
|
|
358
|
+
routerIps: "router_ips",
|
|
359
|
+
warpDevices: "warp_devices",
|
|
360
|
+
}),
|
|
361
|
+
) as unknown as Schema.Schema<DeleteConfigResponse>;
|
|
362
|
+
|
|
363
|
+
export type DeleteConfigError = DefaultErrors;
|
|
364
|
+
|
|
365
|
+
export const deleteConfig: API.OperationMethod<
|
|
366
|
+
DeleteConfigRequest,
|
|
367
|
+
DeleteConfigResponse,
|
|
368
|
+
DeleteConfigError,
|
|
369
|
+
Credentials | HttpClient.HttpClient
|
|
370
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
371
|
+
input: DeleteConfigRequest,
|
|
372
|
+
output: DeleteConfigResponse,
|
|
373
|
+
errors: [],
|
|
374
|
+
}));
|
|
375
|
+
|
|
376
|
+
// =============================================================================
|
|
377
|
+
// ConfigFull
|
|
378
|
+
// =============================================================================
|
|
379
|
+
|
|
380
|
+
export interface GetConfigFullRequest {
|
|
381
|
+
accountId: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export const GetConfigFullRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
385
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
386
|
+
}).pipe(
|
|
387
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/config/full" }),
|
|
388
|
+
) as unknown as Schema.Schema<GetConfigFullRequest>;
|
|
389
|
+
|
|
390
|
+
export type GetConfigFullResponse = unknown;
|
|
391
|
+
|
|
392
|
+
export const GetConfigFullResponse =
|
|
393
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetConfigFullResponse>;
|
|
394
|
+
|
|
395
|
+
export type GetConfigFullError = DefaultErrors;
|
|
396
|
+
|
|
397
|
+
export const getConfigFull: API.OperationMethod<
|
|
398
|
+
GetConfigFullRequest,
|
|
399
|
+
GetConfigFullResponse,
|
|
400
|
+
GetConfigFullError,
|
|
401
|
+
Credentials | HttpClient.HttpClient
|
|
402
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
403
|
+
input: GetConfigFullRequest,
|
|
404
|
+
output: GetConfigFullResponse,
|
|
405
|
+
errors: [],
|
|
406
|
+
}));
|
|
407
|
+
|
|
408
|
+
// =============================================================================
|
|
409
|
+
// Rule
|
|
410
|
+
// =============================================================================
|
|
411
|
+
|
|
412
|
+
export interface GetRuleRequest {
|
|
413
|
+
ruleId: string;
|
|
414
|
+
accountId: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export const GetRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
418
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
419
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
420
|
+
}).pipe(
|
|
421
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/rules/{ruleId}" }),
|
|
422
|
+
) as unknown as Schema.Schema<GetRuleRequest>;
|
|
423
|
+
|
|
424
|
+
export interface GetRuleResponse {
|
|
425
|
+
/** 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. */
|
|
426
|
+
automaticAdvertisement: boolean | null;
|
|
427
|
+
/** 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. */
|
|
428
|
+
name: string;
|
|
429
|
+
prefixes: string[];
|
|
430
|
+
/** MNM rule type. */
|
|
431
|
+
type: "threshold" | "zscore" | "advanced_ddos";
|
|
432
|
+
/** The id of the rule. Must be unique. */
|
|
433
|
+
id?: string | null;
|
|
434
|
+
/** 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. */
|
|
435
|
+
bandwidthThreshold?: number | null;
|
|
436
|
+
/** 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", */
|
|
437
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m" | null;
|
|
438
|
+
/** 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. */
|
|
439
|
+
packetThreshold?: number | null;
|
|
440
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
441
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
442
|
+
/** Level of sensitivity set for zscore rules. */
|
|
443
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
444
|
+
/** Target of the zscore rule analysis. */
|
|
445
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
449
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
450
|
+
name: Schema.String,
|
|
451
|
+
prefixes: Schema.Array(Schema.String),
|
|
452
|
+
type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
453
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
454
|
+
bandwidthThreshold: Schema.optional(
|
|
455
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
456
|
+
),
|
|
457
|
+
duration: Schema.optional(
|
|
458
|
+
Schema.Union([
|
|
459
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
460
|
+
Schema.Null,
|
|
461
|
+
]),
|
|
462
|
+
),
|
|
463
|
+
packetThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
464
|
+
prefixMatch: Schema.optional(
|
|
465
|
+
Schema.Union([
|
|
466
|
+
Schema.Literal("exact"),
|
|
467
|
+
Schema.Literal("subnet"),
|
|
468
|
+
Schema.Literal("supernet"),
|
|
469
|
+
Schema.Null,
|
|
470
|
+
]),
|
|
471
|
+
),
|
|
472
|
+
zscoreSensitivity: Schema.optional(
|
|
473
|
+
Schema.Union([
|
|
474
|
+
Schema.Literal("low"),
|
|
475
|
+
Schema.Literal("medium"),
|
|
476
|
+
Schema.Literal("high"),
|
|
477
|
+
Schema.Null,
|
|
478
|
+
]),
|
|
479
|
+
),
|
|
480
|
+
zscoreTarget: Schema.optional(
|
|
481
|
+
Schema.Union([
|
|
482
|
+
Schema.Literal("bits"),
|
|
483
|
+
Schema.Literal("packets"),
|
|
484
|
+
Schema.Null,
|
|
485
|
+
]),
|
|
486
|
+
),
|
|
487
|
+
}).pipe(
|
|
488
|
+
Schema.encodeKeys({
|
|
489
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
490
|
+
name: "name",
|
|
491
|
+
prefixes: "prefixes",
|
|
492
|
+
type: "type",
|
|
493
|
+
id: "id",
|
|
494
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
495
|
+
duration: "duration",
|
|
496
|
+
packetThreshold: "packet_threshold",
|
|
497
|
+
prefixMatch: "prefix_match",
|
|
498
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
499
|
+
zscoreTarget: "zscore_target",
|
|
500
|
+
}),
|
|
501
|
+
) as unknown as Schema.Schema<GetRuleResponse>;
|
|
502
|
+
|
|
503
|
+
export type GetRuleError = DefaultErrors;
|
|
504
|
+
|
|
505
|
+
export const getRule: API.OperationMethod<
|
|
506
|
+
GetRuleRequest,
|
|
507
|
+
GetRuleResponse,
|
|
508
|
+
GetRuleError,
|
|
509
|
+
Credentials | HttpClient.HttpClient
|
|
510
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
511
|
+
input: GetRuleRequest,
|
|
512
|
+
output: GetRuleResponse,
|
|
513
|
+
errors: [],
|
|
514
|
+
}));
|
|
515
|
+
|
|
516
|
+
export interface ListRulesRequest {
|
|
517
|
+
accountId: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
521
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
522
|
+
}).pipe(
|
|
523
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/rules" }),
|
|
524
|
+
) as unknown as Schema.Schema<ListRulesRequest>;
|
|
525
|
+
|
|
526
|
+
export type ListRulesResponse = unknown;
|
|
527
|
+
|
|
528
|
+
export const ListRulesResponse =
|
|
529
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListRulesResponse>;
|
|
530
|
+
|
|
531
|
+
export type ListRulesError = DefaultErrors;
|
|
532
|
+
|
|
533
|
+
export const listRules: API.OperationMethod<
|
|
534
|
+
ListRulesRequest,
|
|
535
|
+
ListRulesResponse,
|
|
536
|
+
ListRulesError,
|
|
537
|
+
Credentials | HttpClient.HttpClient
|
|
538
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
539
|
+
input: ListRulesRequest,
|
|
540
|
+
output: ListRulesResponse,
|
|
541
|
+
errors: [],
|
|
542
|
+
}));
|
|
543
|
+
|
|
544
|
+
export interface CreateRuleRequest {
|
|
545
|
+
/** Path param: */
|
|
546
|
+
accountId: string;
|
|
547
|
+
/** Body param: 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", */
|
|
548
|
+
duration: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m";
|
|
549
|
+
/** Body param: 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. */
|
|
550
|
+
name: string;
|
|
551
|
+
/** Body param: 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. */
|
|
552
|
+
automaticAdvertisement?: boolean | null;
|
|
553
|
+
/** Body param: 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. */
|
|
554
|
+
bandwidth?: number;
|
|
555
|
+
/** Body param: 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. */
|
|
556
|
+
packetThreshold?: number;
|
|
557
|
+
/** Body param: */
|
|
558
|
+
prefixes?: string[];
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export const CreateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
562
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
563
|
+
duration: Schema.Literals([
|
|
564
|
+
"1m",
|
|
565
|
+
"5m",
|
|
566
|
+
"10m",
|
|
567
|
+
"15m",
|
|
568
|
+
"20m",
|
|
569
|
+
"30m",
|
|
570
|
+
"45m",
|
|
571
|
+
"60m",
|
|
572
|
+
]),
|
|
573
|
+
name: Schema.String,
|
|
574
|
+
automaticAdvertisement: Schema.optional(
|
|
575
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
576
|
+
),
|
|
577
|
+
bandwidth: Schema.optional(Schema.Number),
|
|
578
|
+
packetThreshold: Schema.optional(Schema.Number),
|
|
579
|
+
prefixes: Schema.optional(Schema.Array(Schema.String)),
|
|
580
|
+
}).pipe(
|
|
581
|
+
Schema.encodeKeys({
|
|
582
|
+
duration: "duration",
|
|
583
|
+
name: "name",
|
|
584
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
585
|
+
bandwidth: "bandwidth",
|
|
586
|
+
packetThreshold: "packet_threshold",
|
|
587
|
+
prefixes: "prefixes",
|
|
588
|
+
}),
|
|
589
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/mnm/rules" }),
|
|
590
|
+
) as unknown as Schema.Schema<CreateRuleRequest>;
|
|
591
|
+
|
|
592
|
+
export interface CreateRuleResponse {
|
|
593
|
+
/** 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. */
|
|
594
|
+
automaticAdvertisement: boolean | null;
|
|
595
|
+
/** 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. */
|
|
596
|
+
name: string;
|
|
597
|
+
prefixes: string[];
|
|
598
|
+
/** MNM rule type. */
|
|
599
|
+
type: "threshold" | "zscore" | "advanced_ddos";
|
|
600
|
+
/** The id of the rule. Must be unique. */
|
|
601
|
+
id?: string | null;
|
|
602
|
+
/** 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. */
|
|
603
|
+
bandwidthThreshold?: number | null;
|
|
604
|
+
/** 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", */
|
|
605
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m" | null;
|
|
606
|
+
/** 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. */
|
|
607
|
+
packetThreshold?: number | null;
|
|
608
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
609
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
610
|
+
/** Level of sensitivity set for zscore rules. */
|
|
611
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
612
|
+
/** Target of the zscore rule analysis. */
|
|
613
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
617
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
618
|
+
name: Schema.String,
|
|
619
|
+
prefixes: Schema.Array(Schema.String),
|
|
620
|
+
type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
621
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
622
|
+
bandwidthThreshold: Schema.optional(
|
|
623
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
624
|
+
),
|
|
625
|
+
duration: Schema.optional(
|
|
626
|
+
Schema.Union([
|
|
627
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
628
|
+
Schema.Null,
|
|
629
|
+
]),
|
|
630
|
+
),
|
|
631
|
+
packetThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
632
|
+
prefixMatch: Schema.optional(
|
|
633
|
+
Schema.Union([
|
|
634
|
+
Schema.Literal("exact"),
|
|
635
|
+
Schema.Literal("subnet"),
|
|
636
|
+
Schema.Literal("supernet"),
|
|
637
|
+
Schema.Null,
|
|
638
|
+
]),
|
|
639
|
+
),
|
|
640
|
+
zscoreSensitivity: Schema.optional(
|
|
641
|
+
Schema.Union([
|
|
642
|
+
Schema.Literal("low"),
|
|
643
|
+
Schema.Literal("medium"),
|
|
644
|
+
Schema.Literal("high"),
|
|
645
|
+
Schema.Null,
|
|
646
|
+
]),
|
|
647
|
+
),
|
|
648
|
+
zscoreTarget: Schema.optional(
|
|
649
|
+
Schema.Union([
|
|
650
|
+
Schema.Literal("bits"),
|
|
651
|
+
Schema.Literal("packets"),
|
|
652
|
+
Schema.Null,
|
|
653
|
+
]),
|
|
654
|
+
),
|
|
655
|
+
}).pipe(
|
|
656
|
+
Schema.encodeKeys({
|
|
657
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
658
|
+
name: "name",
|
|
659
|
+
prefixes: "prefixes",
|
|
660
|
+
type: "type",
|
|
661
|
+
id: "id",
|
|
662
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
663
|
+
duration: "duration",
|
|
664
|
+
packetThreshold: "packet_threshold",
|
|
665
|
+
prefixMatch: "prefix_match",
|
|
666
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
667
|
+
zscoreTarget: "zscore_target",
|
|
668
|
+
}),
|
|
669
|
+
) as unknown as Schema.Schema<CreateRuleResponse>;
|
|
670
|
+
|
|
671
|
+
export type CreateRuleError = DefaultErrors;
|
|
672
|
+
|
|
673
|
+
export const createRule: API.OperationMethod<
|
|
674
|
+
CreateRuleRequest,
|
|
675
|
+
CreateRuleResponse,
|
|
676
|
+
CreateRuleError,
|
|
677
|
+
Credentials | HttpClient.HttpClient
|
|
678
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
679
|
+
input: CreateRuleRequest,
|
|
680
|
+
output: CreateRuleResponse,
|
|
681
|
+
errors: [],
|
|
682
|
+
}));
|
|
683
|
+
|
|
684
|
+
export interface UpdateRuleRequest {
|
|
685
|
+
/** Path param: */
|
|
686
|
+
accountId: string;
|
|
687
|
+
/** Body param: 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", */
|
|
688
|
+
duration: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m";
|
|
689
|
+
/** Body param: 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. */
|
|
690
|
+
name: string;
|
|
691
|
+
/** Body param: The id of the rule. Must be unique. */
|
|
692
|
+
id?: string;
|
|
693
|
+
/** Body param: 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. */
|
|
694
|
+
automaticAdvertisement?: boolean | null;
|
|
695
|
+
/** Body param: 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. */
|
|
696
|
+
bandwidth?: number;
|
|
697
|
+
/** Body param: 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. */
|
|
698
|
+
packetThreshold?: number;
|
|
699
|
+
/** Body param: */
|
|
700
|
+
prefixes?: string[];
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export const UpdateRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
704
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
705
|
+
duration: Schema.Literals([
|
|
706
|
+
"1m",
|
|
707
|
+
"5m",
|
|
708
|
+
"10m",
|
|
709
|
+
"15m",
|
|
710
|
+
"20m",
|
|
711
|
+
"30m",
|
|
712
|
+
"45m",
|
|
713
|
+
"60m",
|
|
714
|
+
]),
|
|
715
|
+
name: Schema.String,
|
|
716
|
+
id: Schema.optional(Schema.String),
|
|
717
|
+
automaticAdvertisement: Schema.optional(
|
|
718
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
719
|
+
),
|
|
720
|
+
bandwidth: Schema.optional(Schema.Number),
|
|
721
|
+
packetThreshold: Schema.optional(Schema.Number),
|
|
722
|
+
prefixes: Schema.optional(Schema.Array(Schema.String)),
|
|
723
|
+
}).pipe(
|
|
724
|
+
Schema.encodeKeys({
|
|
725
|
+
duration: "duration",
|
|
726
|
+
name: "name",
|
|
727
|
+
id: "id",
|
|
728
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
729
|
+
bandwidth: "bandwidth",
|
|
730
|
+
packetThreshold: "packet_threshold",
|
|
731
|
+
prefixes: "prefixes",
|
|
732
|
+
}),
|
|
733
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}/mnm/rules" }),
|
|
734
|
+
) as unknown as Schema.Schema<UpdateRuleRequest>;
|
|
735
|
+
|
|
736
|
+
export interface UpdateRuleResponse {
|
|
737
|
+
/** 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. */
|
|
738
|
+
automaticAdvertisement: boolean | null;
|
|
739
|
+
/** 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. */
|
|
740
|
+
name: string;
|
|
741
|
+
prefixes: string[];
|
|
742
|
+
/** MNM rule type. */
|
|
743
|
+
type: "threshold" | "zscore" | "advanced_ddos";
|
|
744
|
+
/** The id of the rule. Must be unique. */
|
|
745
|
+
id?: string | null;
|
|
746
|
+
/** 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. */
|
|
747
|
+
bandwidthThreshold?: number | null;
|
|
748
|
+
/** 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", */
|
|
749
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m" | null;
|
|
750
|
+
/** 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. */
|
|
751
|
+
packetThreshold?: number | null;
|
|
752
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
753
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
754
|
+
/** Level of sensitivity set for zscore rules. */
|
|
755
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
756
|
+
/** Target of the zscore rule analysis. */
|
|
757
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
761
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
762
|
+
name: Schema.String,
|
|
763
|
+
prefixes: Schema.Array(Schema.String),
|
|
764
|
+
type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
765
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
766
|
+
bandwidthThreshold: Schema.optional(
|
|
767
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
768
|
+
),
|
|
769
|
+
duration: Schema.optional(
|
|
770
|
+
Schema.Union([
|
|
771
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
772
|
+
Schema.Null,
|
|
773
|
+
]),
|
|
774
|
+
),
|
|
775
|
+
packetThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
776
|
+
prefixMatch: Schema.optional(
|
|
777
|
+
Schema.Union([
|
|
778
|
+
Schema.Literal("exact"),
|
|
779
|
+
Schema.Literal("subnet"),
|
|
780
|
+
Schema.Literal("supernet"),
|
|
781
|
+
Schema.Null,
|
|
782
|
+
]),
|
|
783
|
+
),
|
|
784
|
+
zscoreSensitivity: Schema.optional(
|
|
785
|
+
Schema.Union([
|
|
786
|
+
Schema.Literal("low"),
|
|
787
|
+
Schema.Literal("medium"),
|
|
788
|
+
Schema.Literal("high"),
|
|
789
|
+
Schema.Null,
|
|
790
|
+
]),
|
|
791
|
+
),
|
|
792
|
+
zscoreTarget: Schema.optional(
|
|
793
|
+
Schema.Union([
|
|
794
|
+
Schema.Literal("bits"),
|
|
795
|
+
Schema.Literal("packets"),
|
|
796
|
+
Schema.Null,
|
|
797
|
+
]),
|
|
798
|
+
),
|
|
799
|
+
}).pipe(
|
|
800
|
+
Schema.encodeKeys({
|
|
801
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
802
|
+
name: "name",
|
|
803
|
+
prefixes: "prefixes",
|
|
804
|
+
type: "type",
|
|
805
|
+
id: "id",
|
|
806
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
807
|
+
duration: "duration",
|
|
808
|
+
packetThreshold: "packet_threshold",
|
|
809
|
+
prefixMatch: "prefix_match",
|
|
810
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
811
|
+
zscoreTarget: "zscore_target",
|
|
812
|
+
}),
|
|
813
|
+
) as unknown as Schema.Schema<UpdateRuleResponse>;
|
|
814
|
+
|
|
815
|
+
export type UpdateRuleError = DefaultErrors;
|
|
816
|
+
|
|
817
|
+
export const updateRule: API.OperationMethod<
|
|
818
|
+
UpdateRuleRequest,
|
|
819
|
+
UpdateRuleResponse,
|
|
820
|
+
UpdateRuleError,
|
|
821
|
+
Credentials | HttpClient.HttpClient
|
|
822
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
823
|
+
input: UpdateRuleRequest,
|
|
824
|
+
output: UpdateRuleResponse,
|
|
825
|
+
errors: [],
|
|
826
|
+
}));
|
|
827
|
+
|
|
828
|
+
export interface PatchRuleRequest {
|
|
829
|
+
ruleId: string;
|
|
830
|
+
/** Path param: */
|
|
831
|
+
accountId: string;
|
|
832
|
+
/** Body param: 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. */
|
|
833
|
+
automaticAdvertisement?: boolean | null;
|
|
834
|
+
/** Body param: 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. */
|
|
835
|
+
bandwidth?: number;
|
|
836
|
+
/** Body param: 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", */
|
|
837
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m";
|
|
838
|
+
/** Body param: 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. */
|
|
839
|
+
name?: string;
|
|
840
|
+
/** Body param: 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. */
|
|
841
|
+
packetThreshold?: number;
|
|
842
|
+
/** Body param: */
|
|
843
|
+
prefixes?: string[];
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export const PatchRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
847
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
848
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
849
|
+
automaticAdvertisement: Schema.optional(
|
|
850
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
851
|
+
),
|
|
852
|
+
bandwidth: Schema.optional(Schema.Number),
|
|
853
|
+
duration: Schema.optional(
|
|
854
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
855
|
+
),
|
|
856
|
+
name: Schema.optional(Schema.String),
|
|
857
|
+
packetThreshold: Schema.optional(Schema.Number),
|
|
858
|
+
prefixes: Schema.optional(Schema.Array(Schema.String)),
|
|
859
|
+
}).pipe(
|
|
860
|
+
Schema.encodeKeys({
|
|
861
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
862
|
+
bandwidth: "bandwidth",
|
|
863
|
+
duration: "duration",
|
|
864
|
+
name: "name",
|
|
865
|
+
packetThreshold: "packet_threshold",
|
|
866
|
+
prefixes: "prefixes",
|
|
867
|
+
}),
|
|
868
|
+
T.Http({
|
|
869
|
+
method: "PATCH",
|
|
870
|
+
path: "/accounts/{account_id}/mnm/rules/{ruleId}",
|
|
871
|
+
}),
|
|
872
|
+
) as unknown as Schema.Schema<PatchRuleRequest>;
|
|
873
|
+
|
|
874
|
+
export interface PatchRuleResponse {
|
|
875
|
+
/** 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. */
|
|
876
|
+
automaticAdvertisement: boolean | null;
|
|
877
|
+
/** 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. */
|
|
878
|
+
name: string;
|
|
879
|
+
prefixes: string[];
|
|
880
|
+
/** MNM rule type. */
|
|
881
|
+
type: "threshold" | "zscore" | "advanced_ddos";
|
|
882
|
+
/** The id of the rule. Must be unique. */
|
|
883
|
+
id?: string | null;
|
|
884
|
+
/** 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. */
|
|
885
|
+
bandwidthThreshold?: number | null;
|
|
886
|
+
/** 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", */
|
|
887
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m" | null;
|
|
888
|
+
/** 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. */
|
|
889
|
+
packetThreshold?: number | null;
|
|
890
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
891
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
892
|
+
/** Level of sensitivity set for zscore rules. */
|
|
893
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
894
|
+
/** Target of the zscore rule analysis. */
|
|
895
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
899
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
900
|
+
name: Schema.String,
|
|
901
|
+
prefixes: Schema.Array(Schema.String),
|
|
902
|
+
type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
903
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
904
|
+
bandwidthThreshold: Schema.optional(
|
|
905
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
906
|
+
),
|
|
907
|
+
duration: Schema.optional(
|
|
908
|
+
Schema.Union([
|
|
909
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
910
|
+
Schema.Null,
|
|
911
|
+
]),
|
|
912
|
+
),
|
|
913
|
+
packetThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
914
|
+
prefixMatch: Schema.optional(
|
|
915
|
+
Schema.Union([
|
|
916
|
+
Schema.Literal("exact"),
|
|
917
|
+
Schema.Literal("subnet"),
|
|
918
|
+
Schema.Literal("supernet"),
|
|
919
|
+
Schema.Null,
|
|
920
|
+
]),
|
|
921
|
+
),
|
|
922
|
+
zscoreSensitivity: Schema.optional(
|
|
923
|
+
Schema.Union([
|
|
924
|
+
Schema.Literal("low"),
|
|
925
|
+
Schema.Literal("medium"),
|
|
926
|
+
Schema.Literal("high"),
|
|
927
|
+
Schema.Null,
|
|
928
|
+
]),
|
|
929
|
+
),
|
|
930
|
+
zscoreTarget: Schema.optional(
|
|
931
|
+
Schema.Union([
|
|
932
|
+
Schema.Literal("bits"),
|
|
933
|
+
Schema.Literal("packets"),
|
|
934
|
+
Schema.Null,
|
|
935
|
+
]),
|
|
936
|
+
),
|
|
937
|
+
}).pipe(
|
|
938
|
+
Schema.encodeKeys({
|
|
939
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
940
|
+
name: "name",
|
|
941
|
+
prefixes: "prefixes",
|
|
942
|
+
type: "type",
|
|
943
|
+
id: "id",
|
|
944
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
945
|
+
duration: "duration",
|
|
946
|
+
packetThreshold: "packet_threshold",
|
|
947
|
+
prefixMatch: "prefix_match",
|
|
948
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
949
|
+
zscoreTarget: "zscore_target",
|
|
950
|
+
}),
|
|
951
|
+
) as unknown as Schema.Schema<PatchRuleResponse>;
|
|
952
|
+
|
|
953
|
+
export type PatchRuleError = DefaultErrors;
|
|
954
|
+
|
|
955
|
+
export const patchRule: API.OperationMethod<
|
|
956
|
+
PatchRuleRequest,
|
|
957
|
+
PatchRuleResponse,
|
|
958
|
+
PatchRuleError,
|
|
959
|
+
Credentials | HttpClient.HttpClient
|
|
960
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
961
|
+
input: PatchRuleRequest,
|
|
962
|
+
output: PatchRuleResponse,
|
|
963
|
+
errors: [],
|
|
964
|
+
}));
|
|
965
|
+
|
|
966
|
+
export interface DeleteRuleRequest {
|
|
967
|
+
ruleId: string;
|
|
968
|
+
accountId: string;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export const DeleteRuleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
972
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
973
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
974
|
+
}).pipe(
|
|
975
|
+
T.Http({
|
|
976
|
+
method: "DELETE",
|
|
977
|
+
path: "/accounts/{account_id}/mnm/rules/{ruleId}",
|
|
978
|
+
}),
|
|
979
|
+
) as unknown as Schema.Schema<DeleteRuleRequest>;
|
|
980
|
+
|
|
981
|
+
export interface DeleteRuleResponse {
|
|
982
|
+
/** 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. */
|
|
983
|
+
automaticAdvertisement: boolean | null;
|
|
984
|
+
/** 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. */
|
|
985
|
+
name: string;
|
|
986
|
+
prefixes: string[];
|
|
987
|
+
/** MNM rule type. */
|
|
988
|
+
type: "threshold" | "zscore" | "advanced_ddos";
|
|
989
|
+
/** The id of the rule. Must be unique. */
|
|
990
|
+
id?: string | null;
|
|
991
|
+
/** 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. */
|
|
992
|
+
bandwidthThreshold?: number | null;
|
|
993
|
+
/** 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", */
|
|
994
|
+
duration?: "1m" | "5m" | "10m" | "15m" | "20m" | "30m" | "45m" | "60m" | null;
|
|
995
|
+
/** 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. */
|
|
996
|
+
packetThreshold?: number | null;
|
|
997
|
+
/** Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. */
|
|
998
|
+
prefixMatch?: "exact" | "subnet" | "supernet" | null;
|
|
999
|
+
/** Level of sensitivity set for zscore rules. */
|
|
1000
|
+
zscoreSensitivity?: "low" | "medium" | "high" | null;
|
|
1001
|
+
/** Target of the zscore rule analysis. */
|
|
1002
|
+
zscoreTarget?: "bits" | "packets" | null;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1006
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1007
|
+
name: Schema.String,
|
|
1008
|
+
prefixes: Schema.Array(Schema.String),
|
|
1009
|
+
type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
|
|
1010
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1011
|
+
bandwidthThreshold: Schema.optional(
|
|
1012
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1013
|
+
),
|
|
1014
|
+
duration: Schema.optional(
|
|
1015
|
+
Schema.Union([
|
|
1016
|
+
Schema.Literals(["1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m"]),
|
|
1017
|
+
Schema.Null,
|
|
1018
|
+
]),
|
|
1019
|
+
),
|
|
1020
|
+
packetThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1021
|
+
prefixMatch: Schema.optional(
|
|
1022
|
+
Schema.Union([
|
|
1023
|
+
Schema.Literal("exact"),
|
|
1024
|
+
Schema.Literal("subnet"),
|
|
1025
|
+
Schema.Literal("supernet"),
|
|
1026
|
+
Schema.Null,
|
|
1027
|
+
]),
|
|
1028
|
+
),
|
|
1029
|
+
zscoreSensitivity: Schema.optional(
|
|
1030
|
+
Schema.Union([
|
|
1031
|
+
Schema.Literal("low"),
|
|
1032
|
+
Schema.Literal("medium"),
|
|
1033
|
+
Schema.Literal("high"),
|
|
1034
|
+
Schema.Null,
|
|
1035
|
+
]),
|
|
1036
|
+
),
|
|
1037
|
+
zscoreTarget: Schema.optional(
|
|
1038
|
+
Schema.Union([
|
|
1039
|
+
Schema.Literal("bits"),
|
|
1040
|
+
Schema.Literal("packets"),
|
|
1041
|
+
Schema.Null,
|
|
1042
|
+
]),
|
|
1043
|
+
),
|
|
1044
|
+
}).pipe(
|
|
1045
|
+
Schema.encodeKeys({
|
|
1046
|
+
automaticAdvertisement: "automatic_advertisement",
|
|
1047
|
+
name: "name",
|
|
1048
|
+
prefixes: "prefixes",
|
|
1049
|
+
type: "type",
|
|
1050
|
+
id: "id",
|
|
1051
|
+
bandwidthThreshold: "bandwidth_threshold",
|
|
1052
|
+
duration: "duration",
|
|
1053
|
+
packetThreshold: "packet_threshold",
|
|
1054
|
+
prefixMatch: "prefix_match",
|
|
1055
|
+
zscoreSensitivity: "zscore_sensitivity",
|
|
1056
|
+
zscoreTarget: "zscore_target",
|
|
1057
|
+
}),
|
|
1058
|
+
) as unknown as Schema.Schema<DeleteRuleResponse>;
|
|
1059
|
+
|
|
1060
|
+
export type DeleteRuleError = DefaultErrors;
|
|
1061
|
+
|
|
1062
|
+
export const deleteRule: API.OperationMethod<
|
|
1063
|
+
DeleteRuleRequest,
|
|
1064
|
+
DeleteRuleResponse,
|
|
1065
|
+
DeleteRuleError,
|
|
1066
|
+
Credentials | HttpClient.HttpClient
|
|
1067
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1068
|
+
input: DeleteRuleRequest,
|
|
1069
|
+
output: DeleteRuleResponse,
|
|
1070
|
+
errors: [],
|
|
1071
|
+
}));
|
|
1072
|
+
|
|
1073
|
+
// =============================================================================
|
|
1074
|
+
// RuleAdvertisement
|
|
1075
|
+
// =============================================================================
|
|
1076
|
+
|
|
1077
|
+
export interface PatchRuleAdvertisementRequest {
|
|
1078
|
+
ruleId: string;
|
|
1079
|
+
/** Path param: */
|
|
1080
|
+
accountId: string;
|
|
1081
|
+
/** Body param: */
|
|
1082
|
+
body: unknown;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export const PatchRuleAdvertisementRequest =
|
|
1086
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1087
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
1088
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1089
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
1090
|
+
}).pipe(
|
|
1091
|
+
T.Http({
|
|
1092
|
+
method: "PATCH",
|
|
1093
|
+
path: "/accounts/{account_id}/mnm/rules/{ruleId}/advertisement",
|
|
1094
|
+
}),
|
|
1095
|
+
) as unknown as Schema.Schema<PatchRuleAdvertisementRequest>;
|
|
1096
|
+
|
|
1097
|
+
export interface PatchRuleAdvertisementResponse {
|
|
1098
|
+
/** 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. */
|
|
1099
|
+
automaticAdvertisement: boolean | null;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export const PatchRuleAdvertisementResponse =
|
|
1103
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1104
|
+
automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1105
|
+
}).pipe(
|
|
1106
|
+
Schema.encodeKeys({ automaticAdvertisement: "automatic_advertisement" }),
|
|
1107
|
+
) as unknown as Schema.Schema<PatchRuleAdvertisementResponse>;
|
|
1108
|
+
|
|
1109
|
+
export type PatchRuleAdvertisementError = DefaultErrors;
|
|
1110
|
+
|
|
1111
|
+
export const patchRuleAdvertisement: API.OperationMethod<
|
|
1112
|
+
PatchRuleAdvertisementRequest,
|
|
1113
|
+
PatchRuleAdvertisementResponse,
|
|
1114
|
+
PatchRuleAdvertisementError,
|
|
1115
|
+
Credentials | HttpClient.HttpClient
|
|
1116
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1117
|
+
input: PatchRuleAdvertisementRequest,
|
|
1118
|
+
output: PatchRuleAdvertisementResponse,
|
|
1119
|
+
errors: [],
|
|
1120
|
+
}));
|
|
1121
|
+
|
|
1122
|
+
// =============================================================================
|
|
1123
|
+
// VpcFlowToken
|
|
1124
|
+
// =============================================================================
|
|
1125
|
+
|
|
1126
|
+
export interface CreateVpcFlowTokenRequest {
|
|
1127
|
+
accountId: string;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
export const CreateVpcFlowTokenRequest =
|
|
1131
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1132
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1133
|
+
}).pipe(
|
|
1134
|
+
T.Http({
|
|
1135
|
+
method: "POST",
|
|
1136
|
+
path: "/accounts/{account_id}/mnm/vpc-flows/token",
|
|
1137
|
+
}),
|
|
1138
|
+
) as unknown as Schema.Schema<CreateVpcFlowTokenRequest>;
|
|
1139
|
+
|
|
1140
|
+
export type CreateVpcFlowTokenResponse = string;
|
|
1141
|
+
|
|
1142
|
+
export const CreateVpcFlowTokenResponse =
|
|
1143
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<CreateVpcFlowTokenResponse>;
|
|
1144
|
+
|
|
1145
|
+
export type CreateVpcFlowTokenError = DefaultErrors;
|
|
1146
|
+
|
|
1147
|
+
export const createVpcFlowToken: API.OperationMethod<
|
|
1148
|
+
CreateVpcFlowTokenRequest,
|
|
1149
|
+
CreateVpcFlowTokenResponse,
|
|
1150
|
+
CreateVpcFlowTokenError,
|
|
1151
|
+
Credentials | HttpClient.HttpClient
|
|
1152
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1153
|
+
input: CreateVpcFlowTokenRequest,
|
|
1154
|
+
output: CreateVpcFlowTokenResponse,
|
|
1155
|
+
errors: [],
|
|
1156
|
+
}));
|