@distilled.cloud/cloudflare 0.0.0-john
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/lib/auth.d.ts +14 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +13 -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 +12 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +292 -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 +68 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +136 -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 +31 -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/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +296 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +414 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +766 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +860 -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 +80 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1321 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1863 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +1137 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1830 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +297 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +352 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +1069 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2542 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +855 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1445 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +1088 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1655 -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 +113 -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 +102 -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 +88 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +194 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +221 -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 +1142 -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 +354 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +223 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +188 -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 +288 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +379 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +88 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +97 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1387 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1741 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +291 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +404 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +156 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +175 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +240 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +336 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +590 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1204 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +87 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +95 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +89 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +140 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +392 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +487 -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 +208 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +288 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +317 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +400 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +3065 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4627 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +92 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +103 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +598 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +715 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1389 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2261 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +197 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +168 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1352 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +2084 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +507 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +867 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +86 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +111 -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 +300 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +657 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +843 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +427 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +444 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +865 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1266 -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 +197 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +229 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +369 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +453 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +129 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +138 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1973 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3181 -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 +732 -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 +149 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1892 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5291 -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 +557 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3886 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6284 -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 +111 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +204 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +308 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +164 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +192 -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 +232 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +370 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +119 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +183 -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 +64 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +308 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +435 -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 +1373 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +505 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +520 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1949 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +3030 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1716 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2991 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +904 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1250 -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 +513 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1087 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1404 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9365 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20552 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +360 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +545 -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 +5402 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +121 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +167 -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 +85 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +622 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +929 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +346 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +431 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3345 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7904 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +314 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +442 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +273 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +365 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +393 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +452 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +136 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +196 -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 +190 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +221 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +350 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +535 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +257 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +471 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +412 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +755 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1110 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1085 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +662 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +834 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +272 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +339 -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 +507 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +634 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +297 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +351 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1149 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1859 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +289 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +381 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1394 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2121 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3827 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +6105 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +442 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +599 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +312 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +305 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +18235 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +30268 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1382 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2477 -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 +82 -0
- package/src/auth.ts +15 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +421 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +271 -0
- package/src/errors.ts +73 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +955 -0
- package/src/services/accounts.ts +2152 -0
- package/src/services/acm.ts +178 -0
- package/src/services/addressing.ts +4262 -0
- package/src/services/ai-gateway.ts +3773 -0
- package/src/services/ai.ts +901 -0
- package/src/services/aisearch.ts +5215 -0
- package/src/services/alerting.ts +3303 -0
- package/src/services/api-gateway.ts +3890 -0
- package/src/services/argo.ts +270 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +176 -0
- package/src/services/bot-management.ts +545 -0
- package/src/services/botnet-feed.ts +205 -0
- package/src/services/brand-protection.ts +575 -0
- package/src/services/browser-rendering.ts +2720 -0
- package/src/services/cache.ts +877 -0
- package/src/services/calls.ts +548 -0
- package/src/services/certificate-authorities.ts +114 -0
- package/src/services/client-certificates.ts +815 -0
- package/src/services/cloud-connector.ts +248 -0
- package/src/services/cloudforce-one.ts +4104 -0
- package/src/services/connectivity.ts +706 -0
- package/src/services/content-scanning.ts +458 -0
- package/src/services/custom-certificates.ts +690 -0
- package/src/services/custom-hostnames.ts +2641 -0
- package/src/services/custom-nameservers.ts +235 -0
- package/src/services/custom-pages.ts +311 -0
- package/src/services/d1.ts +1208 -0
- package/src/services/dcv-delegation.ts +54 -0
- package/src/services/diagnostics.ts +677 -0
- package/src/services/dns-firewall.ts +904 -0
- package/src/services/dns.ts +9277 -0
- package/src/services/durable-objects.ts +237 -0
- package/src/services/email-routing.ts +1796 -0
- package/src/services/email-security.ts +5052 -0
- package/src/services/filters.ts +488 -0
- package/src/services/firewall.ts +4728 -0
- package/src/services/healthchecks.ts +1866 -0
- package/src/services/hostnames.ts +254 -0
- package/src/services/hyperdrive.ts +595 -0
- package/src/services/iam.ts +1969 -0
- package/src/services/images.ts +1180 -0
- package/src/services/intel.ts +3072 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +509 -0
- package/src/services/kv.ts +1129 -0
- package/src/services/leaked-credential-checks.ts +364 -0
- package/src/services/load-balancers.ts +6993 -0
- package/src/services/logpush.ts +1695 -0
- package/src/services/logs.ts +389 -0
- package/src/services/magic-cloud-networking.ts +10747 -0
- package/src/services/magic-network-monitoring.ts +1200 -0
- package/src/services/magic-transit.ts +13673 -0
- package/src/services/managed-transforms.ts +245 -0
- package/src/services/memberships.ts +698 -0
- package/src/services/mtls-certificates.ts +444 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +738 -0
- package/src/services/origin-ca-certificates.ts +369 -0
- package/src/services/origin-post-quantum-encryption.ts +136 -0
- package/src/services/origin-tls-client-auth.ts +1002 -0
- package/src/services/page-rules.ts +2632 -0
- package/src/services/page-shield.ts +1371 -0
- package/src/services/pages.ts +6167 -0
- package/src/services/pipelines.ts +6455 -0
- package/src/services/queues.ts +2827 -0
- package/src/services/r2-data-catalog.ts +1151 -0
- package/src/services/r2.ts +3529 -0
- package/src/services/radar.ts +42836 -0
- package/src/services/rate-limits.ts +1252 -0
- package/src/services/realtime-kit.ts +11080 -0
- package/src/services/registrar.ts +390 -0
- package/src/services/request-tracers.ts +161 -0
- package/src/services/resource-sharing.ts +2082 -0
- package/src/services/rules.ts +953 -0
- package/src/services/rulesets.ts +15361 -0
- package/src/services/rum.ts +994 -0
- package/src/services/schema-validation.ts +869 -0
- package/src/services/secrets-store.ts +1050 -0
- package/src/services/security-center.ts +495 -0
- package/src/services/security-txt.ts +317 -0
- package/src/services/snippets.ts +562 -0
- package/src/services/spectrum.ts +1190 -0
- package/src/services/speed.ts +1154 -0
- package/src/services/ssl.ts +1714 -0
- package/src/services/stream.ts +3008 -0
- package/src/services/token-validation.ts +1825 -0
- package/src/services/turnstile.ts +725 -0
- package/src/services/url-normalization.ts +133 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1587 -0
- package/src/services/vectorize.ts +875 -0
- package/src/services/waiting-rooms.ts +4216 -0
- package/src/services/web3.ts +899 -0
- package/src/services/workers-for-platforms.ts +4134 -0
- package/src/services/workers.ts +12298 -0
- package/src/services/workflows.ts +1372 -0
- package/src/services/zaraz.ts +833 -0
- package/src/services/zero-trust.ts +64685 -0
- package/src/services/zones.ts +5106 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare ABUSE-REPORTS API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service abuse-reports
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
11
|
+
import * as API from "../client/api.ts";
|
|
12
|
+
import * as T from "../traits.ts";
|
|
13
|
+
import type { Credentials } from "../credentials.ts";
|
|
14
|
+
import { type DefaultErrors } from "../errors.ts";
|
|
15
|
+
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// Errors
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export class AbuseReportNotFound extends Schema.TaggedErrorClass<AbuseReportNotFound>()(
|
|
21
|
+
"AbuseReportNotFound",
|
|
22
|
+
{ code: Schema.Number, message: Schema.String },
|
|
23
|
+
) {}
|
|
24
|
+
T.applyErrorMatchers(AbuseReportNotFound, [{ code: 0 }]);
|
|
25
|
+
|
|
26
|
+
export class InvalidAccountId extends Schema.TaggedErrorClass<InvalidAccountId>()(
|
|
27
|
+
"InvalidAccountId",
|
|
28
|
+
{ code: Schema.Number, message: Schema.String },
|
|
29
|
+
) {}
|
|
30
|
+
T.applyErrorMatchers(InvalidAccountId, [{ code: 7003 }]);
|
|
31
|
+
|
|
32
|
+
export class InvalidRequest extends Schema.TaggedErrorClass<InvalidRequest>()(
|
|
33
|
+
"InvalidRequest",
|
|
34
|
+
{ code: Schema.Number, message: Schema.String },
|
|
35
|
+
) {}
|
|
36
|
+
T.applyErrorMatchers(InvalidRequest, [{ code: 7003 }]);
|
|
37
|
+
|
|
38
|
+
// =============================================================================
|
|
39
|
+
// AbuseReport
|
|
40
|
+
// =============================================================================
|
|
41
|
+
|
|
42
|
+
export interface GetAbuseReportRequest {
|
|
43
|
+
reportParam: string;
|
|
44
|
+
/** Cloudflare Account ID */
|
|
45
|
+
accountId: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const GetAbuseReportRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
49
|
+
reportParam: Schema.String.pipe(T.HttpPath("reportParam")),
|
|
50
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
51
|
+
}).pipe(
|
|
52
|
+
T.Http({
|
|
53
|
+
method: "GET",
|
|
54
|
+
path: "/accounts/{account_id}/abuse-reports/{reportParam}",
|
|
55
|
+
}),
|
|
56
|
+
) as unknown as Schema.Schema<GetAbuseReportRequest>;
|
|
57
|
+
|
|
58
|
+
export interface GetAbuseReportResponse {
|
|
59
|
+
/** Public facing ID of abuse report, aka abuse_rand. */
|
|
60
|
+
id: string;
|
|
61
|
+
/** Creation date of report. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html) */
|
|
62
|
+
cdate: string;
|
|
63
|
+
/** Domain that relates to the report. */
|
|
64
|
+
domain: string;
|
|
65
|
+
/** A summary of the mitigations related to this report. */
|
|
66
|
+
mitigationSummary: {
|
|
67
|
+
acceptedUrlCount: number;
|
|
68
|
+
activeCount: number;
|
|
69
|
+
externalHostNotified: boolean;
|
|
70
|
+
inReviewCount: number;
|
|
71
|
+
pendingCount: number;
|
|
72
|
+
};
|
|
73
|
+
/** An enum value that represents the status of an abuse record */
|
|
74
|
+
status: "accepted" | "in_review";
|
|
75
|
+
/** The abuse report type */
|
|
76
|
+
type:
|
|
77
|
+
| "PHISH"
|
|
78
|
+
| "GEN"
|
|
79
|
+
| "THREAT"
|
|
80
|
+
| "DMCA"
|
|
81
|
+
| "EMER"
|
|
82
|
+
| "TM"
|
|
83
|
+
| "REG_WHO"
|
|
84
|
+
| "NCSEI"
|
|
85
|
+
| "NETWORK";
|
|
86
|
+
/** Justification for the report. */
|
|
87
|
+
justification?: string | null;
|
|
88
|
+
/** Original work / Targeted brand in the alleged abuse. */
|
|
89
|
+
originalWork?: string | null;
|
|
90
|
+
/** Information about the submitter of the report. */
|
|
91
|
+
submitter?: {
|
|
92
|
+
company?: string | null;
|
|
93
|
+
email?: string | null;
|
|
94
|
+
name?: string | null;
|
|
95
|
+
telephone?: string | null;
|
|
96
|
+
} | null;
|
|
97
|
+
urls?: string[] | null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const GetAbuseReportResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
101
|
+
{
|
|
102
|
+
id: Schema.String,
|
|
103
|
+
cdate: Schema.String,
|
|
104
|
+
domain: Schema.String,
|
|
105
|
+
mitigationSummary: Schema.Struct({
|
|
106
|
+
acceptedUrlCount: Schema.Number,
|
|
107
|
+
activeCount: Schema.Number,
|
|
108
|
+
externalHostNotified: Schema.Boolean,
|
|
109
|
+
inReviewCount: Schema.Number,
|
|
110
|
+
pendingCount: Schema.Number,
|
|
111
|
+
}).pipe(
|
|
112
|
+
Schema.encodeKeys({
|
|
113
|
+
acceptedUrlCount: "accepted_url_count",
|
|
114
|
+
activeCount: "active_count",
|
|
115
|
+
externalHostNotified: "external_host_notified",
|
|
116
|
+
inReviewCount: "in_review_count",
|
|
117
|
+
pendingCount: "pending_count",
|
|
118
|
+
}),
|
|
119
|
+
),
|
|
120
|
+
status: Schema.Literals(["accepted", "in_review"]),
|
|
121
|
+
type: Schema.Literals([
|
|
122
|
+
"PHISH",
|
|
123
|
+
"GEN",
|
|
124
|
+
"THREAT",
|
|
125
|
+
"DMCA",
|
|
126
|
+
"EMER",
|
|
127
|
+
"TM",
|
|
128
|
+
"REG_WHO",
|
|
129
|
+
"NCSEI",
|
|
130
|
+
"NETWORK",
|
|
131
|
+
]),
|
|
132
|
+
justification: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
133
|
+
originalWork: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
134
|
+
submitter: Schema.optional(
|
|
135
|
+
Schema.Union([
|
|
136
|
+
Schema.Struct({
|
|
137
|
+
company: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
138
|
+
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
139
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
140
|
+
telephone: Schema.optional(
|
|
141
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
142
|
+
),
|
|
143
|
+
}),
|
|
144
|
+
Schema.Null,
|
|
145
|
+
]),
|
|
146
|
+
),
|
|
147
|
+
urls: Schema.optional(
|
|
148
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
149
|
+
),
|
|
150
|
+
},
|
|
151
|
+
)
|
|
152
|
+
.pipe(
|
|
153
|
+
Schema.encodeKeys({
|
|
154
|
+
id: "id",
|
|
155
|
+
cdate: "cdate",
|
|
156
|
+
domain: "domain",
|
|
157
|
+
mitigationSummary: "mitigation_summary",
|
|
158
|
+
status: "status",
|
|
159
|
+
type: "type",
|
|
160
|
+
justification: "justification",
|
|
161
|
+
originalWork: "original_work",
|
|
162
|
+
submitter: "submitter",
|
|
163
|
+
urls: "urls",
|
|
164
|
+
}),
|
|
165
|
+
)
|
|
166
|
+
.pipe(
|
|
167
|
+
T.ResponsePath("result"),
|
|
168
|
+
) as unknown as Schema.Schema<GetAbuseReportResponse>;
|
|
169
|
+
|
|
170
|
+
export type GetAbuseReportError =
|
|
171
|
+
| DefaultErrors
|
|
172
|
+
| InvalidAccountId
|
|
173
|
+
| AbuseReportNotFound;
|
|
174
|
+
|
|
175
|
+
export const getAbuseReport: API.OperationMethod<
|
|
176
|
+
GetAbuseReportRequest,
|
|
177
|
+
GetAbuseReportResponse,
|
|
178
|
+
GetAbuseReportError,
|
|
179
|
+
Credentials | HttpClient.HttpClient
|
|
180
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
181
|
+
input: GetAbuseReportRequest,
|
|
182
|
+
output: GetAbuseReportResponse,
|
|
183
|
+
errors: [InvalidAccountId, AbuseReportNotFound],
|
|
184
|
+
}));
|
|
185
|
+
|
|
186
|
+
export interface ListAbuseReportsRequest {
|
|
187
|
+
/** Path param: Cloudflare Account ID */
|
|
188
|
+
accountId: string;
|
|
189
|
+
/** Query param: Returns reports created after the specified date */
|
|
190
|
+
createdAfter?: string;
|
|
191
|
+
/** Query param: Returns reports created before the specified date */
|
|
192
|
+
createdBefore?: string;
|
|
193
|
+
/** Query param: Filter by domain name related to the abuse report */
|
|
194
|
+
domain?: string;
|
|
195
|
+
/** Query param: Filter reports that have any mitigations in the given status. */
|
|
196
|
+
mitigationStatus?:
|
|
197
|
+
| "pending"
|
|
198
|
+
| "active"
|
|
199
|
+
| "in_review"
|
|
200
|
+
| "cancelled"
|
|
201
|
+
| "removed";
|
|
202
|
+
/** Query param: A property to sort by, followed by the order (id, cdate, domain, type, status) */
|
|
203
|
+
sort?: string;
|
|
204
|
+
/** Query param: Filter by the status of the report. */
|
|
205
|
+
status?: "accepted" | "in_review";
|
|
206
|
+
/** Query param: Filter by the type of the report. */
|
|
207
|
+
type?:
|
|
208
|
+
| "PHISH"
|
|
209
|
+
| "GEN"
|
|
210
|
+
| "THREAT"
|
|
211
|
+
| "DMCA"
|
|
212
|
+
| "EMER"
|
|
213
|
+
| "TM"
|
|
214
|
+
| "REG_WHO"
|
|
215
|
+
| "NCSEI"
|
|
216
|
+
| "NETWORK";
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export const ListAbuseReportsRequest =
|
|
220
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
221
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
222
|
+
createdAfter: Schema.optional(Schema.String).pipe(
|
|
223
|
+
T.HttpQuery("created_after"),
|
|
224
|
+
),
|
|
225
|
+
createdBefore: Schema.optional(Schema.String).pipe(
|
|
226
|
+
T.HttpQuery("created_before"),
|
|
227
|
+
),
|
|
228
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
229
|
+
mitigationStatus: Schema.optional(
|
|
230
|
+
Schema.Literals([
|
|
231
|
+
"pending",
|
|
232
|
+
"active",
|
|
233
|
+
"in_review",
|
|
234
|
+
"cancelled",
|
|
235
|
+
"removed",
|
|
236
|
+
]),
|
|
237
|
+
).pipe(T.HttpQuery("mitigation_status")),
|
|
238
|
+
sort: Schema.optional(Schema.String).pipe(T.HttpQuery("sort")),
|
|
239
|
+
status: Schema.optional(Schema.Literals(["accepted", "in_review"])).pipe(
|
|
240
|
+
T.HttpQuery("status"),
|
|
241
|
+
),
|
|
242
|
+
type: Schema.optional(
|
|
243
|
+
Schema.Literals([
|
|
244
|
+
"PHISH",
|
|
245
|
+
"GEN",
|
|
246
|
+
"THREAT",
|
|
247
|
+
"DMCA",
|
|
248
|
+
"EMER",
|
|
249
|
+
"TM",
|
|
250
|
+
"REG_WHO",
|
|
251
|
+
"NCSEI",
|
|
252
|
+
"NETWORK",
|
|
253
|
+
]),
|
|
254
|
+
).pipe(T.HttpQuery("type")),
|
|
255
|
+
}).pipe(
|
|
256
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/abuse-reports" }),
|
|
257
|
+
) as unknown as Schema.Schema<ListAbuseReportsRequest>;
|
|
258
|
+
|
|
259
|
+
export interface ListAbuseReportsResponse {
|
|
260
|
+
result: {
|
|
261
|
+
items?:
|
|
262
|
+
| {
|
|
263
|
+
reports: {
|
|
264
|
+
id: string;
|
|
265
|
+
cdate: string;
|
|
266
|
+
domain: string;
|
|
267
|
+
mitigationSummary: {
|
|
268
|
+
acceptedUrlCount: number;
|
|
269
|
+
activeCount: number;
|
|
270
|
+
externalHostNotified: boolean;
|
|
271
|
+
inReviewCount: number;
|
|
272
|
+
pendingCount: number;
|
|
273
|
+
};
|
|
274
|
+
status: "accepted" | "in_review";
|
|
275
|
+
type:
|
|
276
|
+
| "PHISH"
|
|
277
|
+
| "GEN"
|
|
278
|
+
| "THREAT"
|
|
279
|
+
| "DMCA"
|
|
280
|
+
| "EMER"
|
|
281
|
+
| "TM"
|
|
282
|
+
| "REG_WHO"
|
|
283
|
+
| "NCSEI"
|
|
284
|
+
| "NETWORK";
|
|
285
|
+
justification?: string | null;
|
|
286
|
+
originalWork?: string | null;
|
|
287
|
+
submitter?: {
|
|
288
|
+
company?: string | null;
|
|
289
|
+
email?: string | null;
|
|
290
|
+
name?: string | null;
|
|
291
|
+
telephone?: string | null;
|
|
292
|
+
} | null;
|
|
293
|
+
urls?: string[] | null;
|
|
294
|
+
}[];
|
|
295
|
+
}[]
|
|
296
|
+
| null;
|
|
297
|
+
};
|
|
298
|
+
resultInfo: {
|
|
299
|
+
count?: number | null;
|
|
300
|
+
page?: number | null;
|
|
301
|
+
perPage?: number | null;
|
|
302
|
+
totalCount?: number | null;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export const ListAbuseReportsResponse =
|
|
307
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
308
|
+
result: Schema.Struct({
|
|
309
|
+
items: Schema.optional(
|
|
310
|
+
Schema.Union([
|
|
311
|
+
Schema.Array(
|
|
312
|
+
Schema.Struct({
|
|
313
|
+
reports: Schema.Array(
|
|
314
|
+
Schema.Struct({
|
|
315
|
+
id: Schema.String,
|
|
316
|
+
cdate: Schema.String,
|
|
317
|
+
domain: Schema.String,
|
|
318
|
+
mitigationSummary: Schema.Struct({
|
|
319
|
+
acceptedUrlCount: Schema.Number,
|
|
320
|
+
activeCount: Schema.Number,
|
|
321
|
+
externalHostNotified: Schema.Boolean,
|
|
322
|
+
inReviewCount: Schema.Number,
|
|
323
|
+
pendingCount: Schema.Number,
|
|
324
|
+
}).pipe(
|
|
325
|
+
Schema.encodeKeys({
|
|
326
|
+
acceptedUrlCount: "accepted_url_count",
|
|
327
|
+
activeCount: "active_count",
|
|
328
|
+
externalHostNotified: "external_host_notified",
|
|
329
|
+
inReviewCount: "in_review_count",
|
|
330
|
+
pendingCount: "pending_count",
|
|
331
|
+
}),
|
|
332
|
+
),
|
|
333
|
+
status: Schema.Literals(["accepted", "in_review"]),
|
|
334
|
+
type: Schema.Literals([
|
|
335
|
+
"PHISH",
|
|
336
|
+
"GEN",
|
|
337
|
+
"THREAT",
|
|
338
|
+
"DMCA",
|
|
339
|
+
"EMER",
|
|
340
|
+
"TM",
|
|
341
|
+
"REG_WHO",
|
|
342
|
+
"NCSEI",
|
|
343
|
+
"NETWORK",
|
|
344
|
+
]),
|
|
345
|
+
justification: Schema.optional(
|
|
346
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
347
|
+
),
|
|
348
|
+
originalWork: Schema.optional(
|
|
349
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
350
|
+
),
|
|
351
|
+
submitter: Schema.optional(
|
|
352
|
+
Schema.Union([
|
|
353
|
+
Schema.Struct({
|
|
354
|
+
company: Schema.optional(
|
|
355
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
356
|
+
),
|
|
357
|
+
email: Schema.optional(
|
|
358
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
359
|
+
),
|
|
360
|
+
name: Schema.optional(
|
|
361
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
362
|
+
),
|
|
363
|
+
telephone: Schema.optional(
|
|
364
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
365
|
+
),
|
|
366
|
+
}),
|
|
367
|
+
Schema.Null,
|
|
368
|
+
]),
|
|
369
|
+
),
|
|
370
|
+
urls: Schema.optional(
|
|
371
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
372
|
+
),
|
|
373
|
+
}).pipe(
|
|
374
|
+
Schema.encodeKeys({
|
|
375
|
+
id: "id",
|
|
376
|
+
cdate: "cdate",
|
|
377
|
+
domain: "domain",
|
|
378
|
+
mitigationSummary: "mitigation_summary",
|
|
379
|
+
status: "status",
|
|
380
|
+
type: "type",
|
|
381
|
+
justification: "justification",
|
|
382
|
+
originalWork: "original_work",
|
|
383
|
+
submitter: "submitter",
|
|
384
|
+
urls: "urls",
|
|
385
|
+
}),
|
|
386
|
+
),
|
|
387
|
+
),
|
|
388
|
+
}),
|
|
389
|
+
),
|
|
390
|
+
Schema.Null,
|
|
391
|
+
]),
|
|
392
|
+
),
|
|
393
|
+
}),
|
|
394
|
+
resultInfo: Schema.Struct({
|
|
395
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
396
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
397
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
398
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
399
|
+
}).pipe(
|
|
400
|
+
Schema.encodeKeys({
|
|
401
|
+
count: "count",
|
|
402
|
+
page: "page",
|
|
403
|
+
perPage: "per_page",
|
|
404
|
+
totalCount: "total_count",
|
|
405
|
+
}),
|
|
406
|
+
),
|
|
407
|
+
}).pipe(
|
|
408
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
409
|
+
) as unknown as Schema.Schema<ListAbuseReportsResponse>;
|
|
410
|
+
|
|
411
|
+
export type ListAbuseReportsError = DefaultErrors | InvalidAccountId;
|
|
412
|
+
|
|
413
|
+
export const listAbuseReports: API.PaginatedOperationMethod<
|
|
414
|
+
ListAbuseReportsRequest,
|
|
415
|
+
ListAbuseReportsResponse,
|
|
416
|
+
ListAbuseReportsError,
|
|
417
|
+
Credentials | HttpClient.HttpClient
|
|
418
|
+
> & {
|
|
419
|
+
pages: (
|
|
420
|
+
input: ListAbuseReportsRequest,
|
|
421
|
+
) => stream.Stream<
|
|
422
|
+
ListAbuseReportsResponse,
|
|
423
|
+
ListAbuseReportsError,
|
|
424
|
+
Credentials | HttpClient.HttpClient
|
|
425
|
+
>;
|
|
426
|
+
items: (input: ListAbuseReportsRequest) => stream.Stream<
|
|
427
|
+
{
|
|
428
|
+
reports: {
|
|
429
|
+
id: string;
|
|
430
|
+
cdate: string;
|
|
431
|
+
domain: string;
|
|
432
|
+
mitigationSummary: {
|
|
433
|
+
acceptedUrlCount: number;
|
|
434
|
+
activeCount: number;
|
|
435
|
+
externalHostNotified: boolean;
|
|
436
|
+
inReviewCount: number;
|
|
437
|
+
pendingCount: number;
|
|
438
|
+
};
|
|
439
|
+
status: "accepted" | "in_review";
|
|
440
|
+
type:
|
|
441
|
+
| "PHISH"
|
|
442
|
+
| "GEN"
|
|
443
|
+
| "THREAT"
|
|
444
|
+
| "DMCA"
|
|
445
|
+
| "EMER"
|
|
446
|
+
| "TM"
|
|
447
|
+
| "REG_WHO"
|
|
448
|
+
| "NCSEI"
|
|
449
|
+
| "NETWORK";
|
|
450
|
+
justification?: string | null;
|
|
451
|
+
originalWork?: string | null;
|
|
452
|
+
submitter?: {
|
|
453
|
+
company?: string | null;
|
|
454
|
+
email?: string | null;
|
|
455
|
+
name?: string | null;
|
|
456
|
+
telephone?: string | null;
|
|
457
|
+
} | null;
|
|
458
|
+
urls?: string[] | null;
|
|
459
|
+
}[];
|
|
460
|
+
},
|
|
461
|
+
ListAbuseReportsError,
|
|
462
|
+
Credentials | HttpClient.HttpClient
|
|
463
|
+
>;
|
|
464
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
465
|
+
input: ListAbuseReportsRequest,
|
|
466
|
+
output: ListAbuseReportsResponse,
|
|
467
|
+
errors: [InvalidAccountId],
|
|
468
|
+
pagination: {
|
|
469
|
+
mode: "page",
|
|
470
|
+
inputToken: "page",
|
|
471
|
+
outputToken: "resultInfo.page",
|
|
472
|
+
items: "result.items",
|
|
473
|
+
pageSize: "perPage",
|
|
474
|
+
} as const,
|
|
475
|
+
}));
|
|
476
|
+
|
|
477
|
+
export interface CreateAbuseReportRequest {
|
|
478
|
+
reportParam: string;
|
|
479
|
+
/** Path param: Cloudflare Account ID */
|
|
480
|
+
accountId: string;
|
|
481
|
+
/** Body param: The report type for submitted reports. */
|
|
482
|
+
act: "abuse_dmca";
|
|
483
|
+
/** Body param: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
484
|
+
address1: string;
|
|
485
|
+
/** Body param: The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
486
|
+
agentName: string;
|
|
487
|
+
/** Body param: Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports */
|
|
488
|
+
agree: "1";
|
|
489
|
+
/** Body param: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
490
|
+
city: string;
|
|
491
|
+
/** Body param: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
492
|
+
country: string;
|
|
493
|
+
/** Body param: A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
494
|
+
email: string;
|
|
495
|
+
/** Body param: Should match the value provided in `email` */
|
|
496
|
+
email2: string;
|
|
497
|
+
/** Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. */
|
|
498
|
+
hostNotification: "send";
|
|
499
|
+
/** Body param: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
500
|
+
name: string;
|
|
501
|
+
/** Body param: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
502
|
+
originalWork: string;
|
|
503
|
+
/** Body param: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. */
|
|
504
|
+
ownerNotification: "send";
|
|
505
|
+
/** Body param: Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports */
|
|
506
|
+
signature: string;
|
|
507
|
+
/** Body param: Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
508
|
+
state: string;
|
|
509
|
+
/** Body param: A list of valid URLs separated by ‘\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field */
|
|
510
|
+
urls: string;
|
|
511
|
+
/** Body param: Any additional comments about the infringement not exceeding 2000 characters */
|
|
512
|
+
comments?: string;
|
|
513
|
+
/** Body param: Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
514
|
+
company?: string;
|
|
515
|
+
/** Body param: Text containing 2 characters */
|
|
516
|
+
reportedCountry?: string;
|
|
517
|
+
/** Body param: Text not exceeding 255 characters */
|
|
518
|
+
reportedUserAgent?: string;
|
|
519
|
+
/** Body param: Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). */
|
|
520
|
+
tele?: string;
|
|
521
|
+
/** Body param: Text not exceeding 255 characters */
|
|
522
|
+
title?: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export const CreateAbuseReportRequest =
|
|
526
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
527
|
+
reportParam: Schema.String.pipe(T.HttpPath("reportParam")),
|
|
528
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
529
|
+
act: Schema.Literal("abuse_dmca"),
|
|
530
|
+
address1: Schema.String,
|
|
531
|
+
agentName: Schema.String,
|
|
532
|
+
agree: Schema.Literal("1"),
|
|
533
|
+
city: Schema.String,
|
|
534
|
+
country: Schema.String,
|
|
535
|
+
email: Schema.String,
|
|
536
|
+
email2: Schema.String,
|
|
537
|
+
hostNotification: Schema.Literal("send"),
|
|
538
|
+
name: Schema.String,
|
|
539
|
+
originalWork: Schema.String,
|
|
540
|
+
ownerNotification: Schema.Literal("send"),
|
|
541
|
+
signature: Schema.String,
|
|
542
|
+
state: Schema.String,
|
|
543
|
+
urls: Schema.String,
|
|
544
|
+
comments: Schema.optional(Schema.String),
|
|
545
|
+
company: Schema.optional(Schema.String),
|
|
546
|
+
reportedCountry: Schema.optional(Schema.String),
|
|
547
|
+
reportedUserAgent: Schema.optional(Schema.String),
|
|
548
|
+
tele: Schema.optional(Schema.String),
|
|
549
|
+
title: Schema.optional(Schema.String),
|
|
550
|
+
}).pipe(
|
|
551
|
+
Schema.encodeKeys({
|
|
552
|
+
act: "act",
|
|
553
|
+
address1: "address1",
|
|
554
|
+
agentName: "agent_name",
|
|
555
|
+
agree: "agree",
|
|
556
|
+
city: "city",
|
|
557
|
+
country: "country",
|
|
558
|
+
email: "email",
|
|
559
|
+
email2: "email2",
|
|
560
|
+
hostNotification: "host_notification",
|
|
561
|
+
name: "name",
|
|
562
|
+
originalWork: "original_work",
|
|
563
|
+
ownerNotification: "owner_notification",
|
|
564
|
+
signature: "signature",
|
|
565
|
+
state: "state",
|
|
566
|
+
urls: "urls",
|
|
567
|
+
comments: "comments",
|
|
568
|
+
company: "company",
|
|
569
|
+
reportedCountry: "reported_country",
|
|
570
|
+
reportedUserAgent: "reported_user_agent",
|
|
571
|
+
tele: "tele",
|
|
572
|
+
title: "title",
|
|
573
|
+
}),
|
|
574
|
+
T.Http({
|
|
575
|
+
method: "POST",
|
|
576
|
+
path: "/accounts/{account_id}/abuse-reports/{reportParam}",
|
|
577
|
+
}),
|
|
578
|
+
) as unknown as Schema.Schema<CreateAbuseReportRequest>;
|
|
579
|
+
|
|
580
|
+
export type CreateAbuseReportResponse = string;
|
|
581
|
+
|
|
582
|
+
export const CreateAbuseReportResponse =
|
|
583
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
584
|
+
T.ResponsePath("result"),
|
|
585
|
+
) as unknown as Schema.Schema<CreateAbuseReportResponse>;
|
|
586
|
+
|
|
587
|
+
export type CreateAbuseReportError = DefaultErrors | InvalidRequest;
|
|
588
|
+
|
|
589
|
+
export const createAbuseReport: API.OperationMethod<
|
|
590
|
+
CreateAbuseReportRequest,
|
|
591
|
+
CreateAbuseReportResponse,
|
|
592
|
+
CreateAbuseReportError,
|
|
593
|
+
Credentials | HttpClient.HttpClient
|
|
594
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
595
|
+
input: CreateAbuseReportRequest,
|
|
596
|
+
output: CreateAbuseReportResponse,
|
|
597
|
+
errors: [InvalidRequest],
|
|
598
|
+
}));
|
|
599
|
+
|
|
600
|
+
// =============================================================================
|
|
601
|
+
// Mitigation
|
|
602
|
+
// =============================================================================
|
|
603
|
+
|
|
604
|
+
export interface ListMitigationsRequest {
|
|
605
|
+
reportId: string;
|
|
606
|
+
/** Path param: Cloudflare Account ID */
|
|
607
|
+
accountId: string;
|
|
608
|
+
/** Query param: Returns mitigation that were dispatched after the given date */
|
|
609
|
+
effectiveAfter?: string;
|
|
610
|
+
/** Query param: Returns mitigations that were dispatched before the given date */
|
|
611
|
+
effectiveBefore?: string;
|
|
612
|
+
/** Query param: Filter by the type of entity the mitigation impacts. */
|
|
613
|
+
entityType?: "url_pattern" | "account" | "zone";
|
|
614
|
+
/** Query param: A property to sort by, followed by the order */
|
|
615
|
+
sort?:
|
|
616
|
+
| "type,asc"
|
|
617
|
+
| "type,desc"
|
|
618
|
+
| "effective_date,asc"
|
|
619
|
+
| "effective_date,desc"
|
|
620
|
+
| "status,asc"
|
|
621
|
+
| "status,desc"
|
|
622
|
+
| "entity_type,asc"
|
|
623
|
+
| "entity_type,desc";
|
|
624
|
+
/** Query param: Filter by the status of the mitigation. */
|
|
625
|
+
status?: "pending" | "active" | "in_review" | "cancelled" | "removed";
|
|
626
|
+
/** Query param: Filter by the type of mitigation. This filter parameter can be specified multiple times to include multiple types of mitigations in the result set, e.g. ?type=rate_limit_cache&type=legal_ */
|
|
627
|
+
type?:
|
|
628
|
+
| "legal_block"
|
|
629
|
+
| "phishing_interstitial"
|
|
630
|
+
| "network_block"
|
|
631
|
+
| "rate_limit_cache"
|
|
632
|
+
| "account_suspend"
|
|
633
|
+
| "redirect_video_stream";
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export const ListMitigationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
637
|
+
{
|
|
638
|
+
reportId: Schema.String.pipe(T.HttpPath("reportId")),
|
|
639
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
640
|
+
effectiveAfter: Schema.optional(Schema.String).pipe(
|
|
641
|
+
T.HttpQuery("effective_after"),
|
|
642
|
+
),
|
|
643
|
+
effectiveBefore: Schema.optional(Schema.String).pipe(
|
|
644
|
+
T.HttpQuery("effective_before"),
|
|
645
|
+
),
|
|
646
|
+
entityType: Schema.optional(
|
|
647
|
+
Schema.Literals(["url_pattern", "account", "zone"]),
|
|
648
|
+
).pipe(T.HttpQuery("entity_type")),
|
|
649
|
+
sort: Schema.optional(
|
|
650
|
+
Schema.Literals([
|
|
651
|
+
"type,asc",
|
|
652
|
+
"type,desc",
|
|
653
|
+
"effective_date,asc",
|
|
654
|
+
"effective_date,desc",
|
|
655
|
+
"status,asc",
|
|
656
|
+
"status,desc",
|
|
657
|
+
"entity_type,asc",
|
|
658
|
+
"entity_type,desc",
|
|
659
|
+
]),
|
|
660
|
+
).pipe(T.HttpQuery("sort")),
|
|
661
|
+
status: Schema.optional(
|
|
662
|
+
Schema.Literals([
|
|
663
|
+
"pending",
|
|
664
|
+
"active",
|
|
665
|
+
"in_review",
|
|
666
|
+
"cancelled",
|
|
667
|
+
"removed",
|
|
668
|
+
]),
|
|
669
|
+
).pipe(T.HttpQuery("status")),
|
|
670
|
+
type: Schema.optional(
|
|
671
|
+
Schema.Literals([
|
|
672
|
+
"legal_block",
|
|
673
|
+
"phishing_interstitial",
|
|
674
|
+
"network_block",
|
|
675
|
+
"rate_limit_cache",
|
|
676
|
+
"account_suspend",
|
|
677
|
+
"redirect_video_stream",
|
|
678
|
+
]),
|
|
679
|
+
).pipe(T.HttpQuery("type")),
|
|
680
|
+
},
|
|
681
|
+
).pipe(
|
|
682
|
+
T.Http({
|
|
683
|
+
method: "GET",
|
|
684
|
+
path: "/accounts/{account_id}/abuse-reports/{reportId}/mitigations",
|
|
685
|
+
}),
|
|
686
|
+
) as unknown as Schema.Schema<ListMitigationsRequest>;
|
|
687
|
+
|
|
688
|
+
export interface ListMitigationsResponse {
|
|
689
|
+
result: {
|
|
690
|
+
items?:
|
|
691
|
+
| {
|
|
692
|
+
mitigations: {
|
|
693
|
+
id: string;
|
|
694
|
+
effectiveDate: string;
|
|
695
|
+
entityId: string;
|
|
696
|
+
entityType: "url_pattern" | "account" | "zone";
|
|
697
|
+
status:
|
|
698
|
+
| "pending"
|
|
699
|
+
| "active"
|
|
700
|
+
| "in_review"
|
|
701
|
+
| "cancelled"
|
|
702
|
+
| "removed";
|
|
703
|
+
type:
|
|
704
|
+
| "legal_block"
|
|
705
|
+
| "phishing_interstitial"
|
|
706
|
+
| "network_block"
|
|
707
|
+
| "rate_limit_cache"
|
|
708
|
+
| "account_suspend"
|
|
709
|
+
| "redirect_video_stream";
|
|
710
|
+
}[];
|
|
711
|
+
}[]
|
|
712
|
+
| null;
|
|
713
|
+
};
|
|
714
|
+
resultInfo: {
|
|
715
|
+
count?: number | null;
|
|
716
|
+
page?: number | null;
|
|
717
|
+
perPage?: number | null;
|
|
718
|
+
totalCount?: number | null;
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export const ListMitigationsResponse =
|
|
723
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
724
|
+
result: Schema.Struct({
|
|
725
|
+
items: Schema.optional(
|
|
726
|
+
Schema.Union([
|
|
727
|
+
Schema.Array(
|
|
728
|
+
Schema.Struct({
|
|
729
|
+
mitigations: Schema.Array(
|
|
730
|
+
Schema.Struct({
|
|
731
|
+
id: Schema.String,
|
|
732
|
+
effectiveDate: Schema.String,
|
|
733
|
+
entityId: Schema.String,
|
|
734
|
+
entityType: Schema.Literals([
|
|
735
|
+
"url_pattern",
|
|
736
|
+
"account",
|
|
737
|
+
"zone",
|
|
738
|
+
]),
|
|
739
|
+
status: Schema.Literals([
|
|
740
|
+
"pending",
|
|
741
|
+
"active",
|
|
742
|
+
"in_review",
|
|
743
|
+
"cancelled",
|
|
744
|
+
"removed",
|
|
745
|
+
]),
|
|
746
|
+
type: Schema.Literals([
|
|
747
|
+
"legal_block",
|
|
748
|
+
"phishing_interstitial",
|
|
749
|
+
"network_block",
|
|
750
|
+
"rate_limit_cache",
|
|
751
|
+
"account_suspend",
|
|
752
|
+
"redirect_video_stream",
|
|
753
|
+
]),
|
|
754
|
+
}).pipe(
|
|
755
|
+
Schema.encodeKeys({
|
|
756
|
+
id: "id",
|
|
757
|
+
effectiveDate: "effective_date",
|
|
758
|
+
entityId: "entity_id",
|
|
759
|
+
entityType: "entity_type",
|
|
760
|
+
status: "status",
|
|
761
|
+
type: "type",
|
|
762
|
+
}),
|
|
763
|
+
),
|
|
764
|
+
),
|
|
765
|
+
}),
|
|
766
|
+
),
|
|
767
|
+
Schema.Null,
|
|
768
|
+
]),
|
|
769
|
+
),
|
|
770
|
+
}),
|
|
771
|
+
resultInfo: Schema.Struct({
|
|
772
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
773
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
774
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
775
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
776
|
+
}).pipe(
|
|
777
|
+
Schema.encodeKeys({
|
|
778
|
+
count: "count",
|
|
779
|
+
page: "page",
|
|
780
|
+
perPage: "per_page",
|
|
781
|
+
totalCount: "total_count",
|
|
782
|
+
}),
|
|
783
|
+
),
|
|
784
|
+
}).pipe(
|
|
785
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
786
|
+
) as unknown as Schema.Schema<ListMitigationsResponse>;
|
|
787
|
+
|
|
788
|
+
export type ListMitigationsError = DefaultErrors;
|
|
789
|
+
|
|
790
|
+
export const listMitigations: API.PaginatedOperationMethod<
|
|
791
|
+
ListMitigationsRequest,
|
|
792
|
+
ListMitigationsResponse,
|
|
793
|
+
ListMitigationsError,
|
|
794
|
+
Credentials | HttpClient.HttpClient
|
|
795
|
+
> & {
|
|
796
|
+
pages: (
|
|
797
|
+
input: ListMitigationsRequest,
|
|
798
|
+
) => stream.Stream<
|
|
799
|
+
ListMitigationsResponse,
|
|
800
|
+
ListMitigationsError,
|
|
801
|
+
Credentials | HttpClient.HttpClient
|
|
802
|
+
>;
|
|
803
|
+
items: (input: ListMitigationsRequest) => stream.Stream<
|
|
804
|
+
{
|
|
805
|
+
mitigations: {
|
|
806
|
+
id: string;
|
|
807
|
+
effectiveDate: string;
|
|
808
|
+
entityId: string;
|
|
809
|
+
entityType: "url_pattern" | "account" | "zone";
|
|
810
|
+
status: "pending" | "active" | "in_review" | "cancelled" | "removed";
|
|
811
|
+
type:
|
|
812
|
+
| "legal_block"
|
|
813
|
+
| "phishing_interstitial"
|
|
814
|
+
| "network_block"
|
|
815
|
+
| "rate_limit_cache"
|
|
816
|
+
| "account_suspend"
|
|
817
|
+
| "redirect_video_stream";
|
|
818
|
+
}[];
|
|
819
|
+
},
|
|
820
|
+
ListMitigationsError,
|
|
821
|
+
Credentials | HttpClient.HttpClient
|
|
822
|
+
>;
|
|
823
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
824
|
+
input: ListMitigationsRequest,
|
|
825
|
+
output: ListMitigationsResponse,
|
|
826
|
+
errors: [],
|
|
827
|
+
pagination: {
|
|
828
|
+
mode: "page",
|
|
829
|
+
inputToken: "page",
|
|
830
|
+
outputToken: "resultInfo.page",
|
|
831
|
+
items: "result.items",
|
|
832
|
+
pageSize: "perPage",
|
|
833
|
+
} as const,
|
|
834
|
+
}));
|
|
835
|
+
|
|
836
|
+
export interface ReviewMitigationRequest {
|
|
837
|
+
reportId: string;
|
|
838
|
+
/** Path param: Cloudflare Account ID */
|
|
839
|
+
accountId: string;
|
|
840
|
+
/** Body param: List of mitigations to appeal. */
|
|
841
|
+
appeals: { id: string; reason: "removed" | "misclassified" }[];
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export const ReviewMitigationRequest =
|
|
845
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
846
|
+
reportId: Schema.String.pipe(T.HttpPath("reportId")),
|
|
847
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
848
|
+
appeals: Schema.Array(
|
|
849
|
+
Schema.Struct({
|
|
850
|
+
id: Schema.String,
|
|
851
|
+
reason: Schema.Literals(["removed", "misclassified"]),
|
|
852
|
+
}),
|
|
853
|
+
),
|
|
854
|
+
}).pipe(
|
|
855
|
+
T.Http({
|
|
856
|
+
method: "POST",
|
|
857
|
+
path: "/accounts/{account_id}/abuse-reports/{reportId}/mitigations/appeal",
|
|
858
|
+
}),
|
|
859
|
+
) as unknown as Schema.Schema<ReviewMitigationRequest>;
|
|
860
|
+
|
|
861
|
+
export interface ReviewMitigationResponse {
|
|
862
|
+
result: {
|
|
863
|
+
id: string;
|
|
864
|
+
effectiveDate: string;
|
|
865
|
+
entityId: string;
|
|
866
|
+
entityType: "url_pattern" | "account" | "zone";
|
|
867
|
+
status: "pending" | "active" | "in_review" | "cancelled" | "removed";
|
|
868
|
+
type:
|
|
869
|
+
| "legal_block"
|
|
870
|
+
| "phishing_interstitial"
|
|
871
|
+
| "network_block"
|
|
872
|
+
| "rate_limit_cache"
|
|
873
|
+
| "account_suspend"
|
|
874
|
+
| "redirect_video_stream";
|
|
875
|
+
}[];
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export const ReviewMitigationResponse =
|
|
879
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
880
|
+
result: Schema.Array(
|
|
881
|
+
Schema.Struct({
|
|
882
|
+
id: Schema.String,
|
|
883
|
+
effectiveDate: Schema.String,
|
|
884
|
+
entityId: Schema.String,
|
|
885
|
+
entityType: Schema.Literals(["url_pattern", "account", "zone"]),
|
|
886
|
+
status: Schema.Literals([
|
|
887
|
+
"pending",
|
|
888
|
+
"active",
|
|
889
|
+
"in_review",
|
|
890
|
+
"cancelled",
|
|
891
|
+
"removed",
|
|
892
|
+
]),
|
|
893
|
+
type: Schema.Literals([
|
|
894
|
+
"legal_block",
|
|
895
|
+
"phishing_interstitial",
|
|
896
|
+
"network_block",
|
|
897
|
+
"rate_limit_cache",
|
|
898
|
+
"account_suspend",
|
|
899
|
+
"redirect_video_stream",
|
|
900
|
+
]),
|
|
901
|
+
}).pipe(
|
|
902
|
+
Schema.encodeKeys({
|
|
903
|
+
id: "id",
|
|
904
|
+
effectiveDate: "effective_date",
|
|
905
|
+
entityId: "entity_id",
|
|
906
|
+
entityType: "entity_type",
|
|
907
|
+
status: "status",
|
|
908
|
+
type: "type",
|
|
909
|
+
}),
|
|
910
|
+
),
|
|
911
|
+
),
|
|
912
|
+
}) as unknown as Schema.Schema<ReviewMitigationResponse>;
|
|
913
|
+
|
|
914
|
+
export type ReviewMitigationError = DefaultErrors;
|
|
915
|
+
|
|
916
|
+
export const reviewMitigation: API.PaginatedOperationMethod<
|
|
917
|
+
ReviewMitigationRequest,
|
|
918
|
+
ReviewMitigationResponse,
|
|
919
|
+
ReviewMitigationError,
|
|
920
|
+
Credentials | HttpClient.HttpClient
|
|
921
|
+
> & {
|
|
922
|
+
pages: (
|
|
923
|
+
input: ReviewMitigationRequest,
|
|
924
|
+
) => stream.Stream<
|
|
925
|
+
ReviewMitigationResponse,
|
|
926
|
+
ReviewMitigationError,
|
|
927
|
+
Credentials | HttpClient.HttpClient
|
|
928
|
+
>;
|
|
929
|
+
items: (input: ReviewMitigationRequest) => stream.Stream<
|
|
930
|
+
{
|
|
931
|
+
id: string;
|
|
932
|
+
effectiveDate: string;
|
|
933
|
+
entityId: string;
|
|
934
|
+
entityType: "url_pattern" | "account" | "zone";
|
|
935
|
+
status: "pending" | "active" | "in_review" | "cancelled" | "removed";
|
|
936
|
+
type:
|
|
937
|
+
| "legal_block"
|
|
938
|
+
| "phishing_interstitial"
|
|
939
|
+
| "network_block"
|
|
940
|
+
| "rate_limit_cache"
|
|
941
|
+
| "account_suspend"
|
|
942
|
+
| "redirect_video_stream";
|
|
943
|
+
},
|
|
944
|
+
ReviewMitigationError,
|
|
945
|
+
Credentials | HttpClient.HttpClient
|
|
946
|
+
>;
|
|
947
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
948
|
+
input: ReviewMitigationRequest,
|
|
949
|
+
output: ReviewMitigationResponse,
|
|
950
|
+
errors: [],
|
|
951
|
+
pagination: {
|
|
952
|
+
mode: "single",
|
|
953
|
+
items: "result",
|
|
954
|
+
} as const,
|
|
955
|
+
}));
|