@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,1195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare PAGE-SHIELD API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service page-shield
|
|
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
|
+
// Connection
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export interface GetConnectionRequest {
|
|
20
|
+
connectionId: string;
|
|
21
|
+
/** Identifier */
|
|
22
|
+
zoneId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetConnectionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
connectionId: Schema.String.pipe(T.HttpPath("connectionId")),
|
|
27
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
28
|
+
}).pipe(
|
|
29
|
+
T.Http({
|
|
30
|
+
method: "GET",
|
|
31
|
+
path: "/zones/{zone_id}/page_shield/connections/{connectionId}",
|
|
32
|
+
}),
|
|
33
|
+
) as unknown as Schema.Schema<GetConnectionRequest>;
|
|
34
|
+
|
|
35
|
+
export interface GetConnectionResponse {
|
|
36
|
+
/** Identifier */
|
|
37
|
+
id: string;
|
|
38
|
+
addedAt: string;
|
|
39
|
+
firstSeenAt: string;
|
|
40
|
+
host: string;
|
|
41
|
+
lastSeenAt: string;
|
|
42
|
+
url: string;
|
|
43
|
+
urlContainsCdnCgiPath: boolean;
|
|
44
|
+
domainReportedMalicious?: boolean | null;
|
|
45
|
+
firstPageUrl?: string | null;
|
|
46
|
+
maliciousDomainCategories?: string[] | null;
|
|
47
|
+
maliciousUrlCategories?: string[] | null;
|
|
48
|
+
pageUrls?: string[] | null;
|
|
49
|
+
urlReportedMalicious?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const GetConnectionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
53
|
+
id: Schema.String,
|
|
54
|
+
addedAt: Schema.String,
|
|
55
|
+
firstSeenAt: Schema.String,
|
|
56
|
+
host: Schema.String,
|
|
57
|
+
lastSeenAt: Schema.String,
|
|
58
|
+
url: Schema.String,
|
|
59
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
60
|
+
domainReportedMalicious: Schema.optional(
|
|
61
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
62
|
+
),
|
|
63
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
64
|
+
maliciousDomainCategories: Schema.optional(
|
|
65
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
66
|
+
),
|
|
67
|
+
maliciousUrlCategories: Schema.optional(
|
|
68
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
69
|
+
),
|
|
70
|
+
pageUrls: Schema.optional(
|
|
71
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
72
|
+
),
|
|
73
|
+
urlReportedMalicious: Schema.optional(
|
|
74
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
75
|
+
),
|
|
76
|
+
}).pipe(
|
|
77
|
+
Schema.encodeKeys({
|
|
78
|
+
id: "id",
|
|
79
|
+
addedAt: "added_at",
|
|
80
|
+
firstSeenAt: "first_seen_at",
|
|
81
|
+
host: "host",
|
|
82
|
+
lastSeenAt: "last_seen_at",
|
|
83
|
+
url: "url",
|
|
84
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
85
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
86
|
+
firstPageUrl: "first_page_url",
|
|
87
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
88
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
89
|
+
pageUrls: "page_urls",
|
|
90
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
91
|
+
}),
|
|
92
|
+
) as unknown as Schema.Schema<GetConnectionResponse>;
|
|
93
|
+
|
|
94
|
+
export type GetConnectionError = DefaultErrors;
|
|
95
|
+
|
|
96
|
+
export const getConnection: API.OperationMethod<
|
|
97
|
+
GetConnectionRequest,
|
|
98
|
+
GetConnectionResponse,
|
|
99
|
+
GetConnectionError,
|
|
100
|
+
Credentials | HttpClient.HttpClient
|
|
101
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
102
|
+
input: GetConnectionRequest,
|
|
103
|
+
output: GetConnectionResponse,
|
|
104
|
+
errors: [],
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
export interface ListConnectionsRequest {
|
|
108
|
+
/** Path param: Identifier */
|
|
109
|
+
zoneId: string;
|
|
110
|
+
/** Query param: The direction used to sort returned connections. */
|
|
111
|
+
direction?: "asc" | "desc";
|
|
112
|
+
/** Query param: When true, excludes connections seen in a `/cdn-cgi` path from the returned connections. The default value is true. */
|
|
113
|
+
excludeCdnCgi?: boolean;
|
|
114
|
+
/** Query param: Excludes connections whose URL contains one of the URL-encoded URLs separated by commas. */
|
|
115
|
+
excludeUrls?: string;
|
|
116
|
+
/** Query param: Export the list of connections as a file, limited to 50000 entries. */
|
|
117
|
+
export?: "csv";
|
|
118
|
+
/** Query param: Includes connections that match one or more URL-encoded hostnames separated by commas. Wildcards are supported at the start and end of each hostname to support starts with, ends with and */
|
|
119
|
+
hosts?: string;
|
|
120
|
+
/** Query param: The field used to sort returned connections. */
|
|
121
|
+
orderBy?: "first_seen_at" | "last_seen_at";
|
|
122
|
+
/** Query param: The current page number of the paginated results. We additionally support a special value "all". When "all" is used, the API will return all the connections with the applied filters in a */
|
|
123
|
+
page?: string;
|
|
124
|
+
/** Query param: Includes connections that match one or more page URLs (separated by commas) where they were last seen Wildcards are supported at the start and end of each page URL to support starts with */
|
|
125
|
+
pageUrl?: string;
|
|
126
|
+
/** Query param: The number of results per page. */
|
|
127
|
+
perPage?: number;
|
|
128
|
+
/** Query param: When true, malicious connections appear first in the returned connections. */
|
|
129
|
+
prioritizeMalicious?: boolean;
|
|
130
|
+
/** Query param: Filters the returned connections using a comma-separated list of connection statuses. Accepted values: `active`, `infrequent`, and `inactive`. The default value is `active`. */
|
|
131
|
+
status?: string;
|
|
132
|
+
/** Query param: Includes connections whose URL contain one or more URL-encoded URLs separated by commas. */
|
|
133
|
+
urls?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const ListConnectionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
137
|
+
{
|
|
138
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
139
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
140
|
+
T.HttpQuery("direction"),
|
|
141
|
+
),
|
|
142
|
+
excludeCdnCgi: Schema.optional(Schema.Boolean).pipe(
|
|
143
|
+
T.HttpQuery("exclude_cdn_cgi"),
|
|
144
|
+
),
|
|
145
|
+
excludeUrls: Schema.optional(Schema.String).pipe(
|
|
146
|
+
T.HttpQuery("exclude_urls"),
|
|
147
|
+
),
|
|
148
|
+
export: Schema.optional(Schema.Literal("csv")).pipe(T.HttpQuery("export")),
|
|
149
|
+
hosts: Schema.optional(Schema.String).pipe(T.HttpQuery("hosts")),
|
|
150
|
+
orderBy: Schema.optional(
|
|
151
|
+
Schema.Literals(["first_seen_at", "last_seen_at"]),
|
|
152
|
+
).pipe(T.HttpQuery("order_by")),
|
|
153
|
+
page: Schema.optional(Schema.String).pipe(T.HttpQuery("page")),
|
|
154
|
+
pageUrl: Schema.optional(Schema.String).pipe(T.HttpQuery("page_url")),
|
|
155
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
156
|
+
prioritizeMalicious: Schema.optional(Schema.Boolean).pipe(
|
|
157
|
+
T.HttpQuery("prioritize_malicious"),
|
|
158
|
+
),
|
|
159
|
+
status: Schema.optional(Schema.String).pipe(T.HttpQuery("status")),
|
|
160
|
+
urls: Schema.optional(Schema.String).pipe(T.HttpQuery("urls")),
|
|
161
|
+
},
|
|
162
|
+
).pipe(
|
|
163
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/connections" }),
|
|
164
|
+
) as unknown as Schema.Schema<ListConnectionsRequest>;
|
|
165
|
+
|
|
166
|
+
export type ListConnectionsResponse = {
|
|
167
|
+
id: string;
|
|
168
|
+
addedAt: string;
|
|
169
|
+
firstSeenAt: string;
|
|
170
|
+
host: string;
|
|
171
|
+
lastSeenAt: string;
|
|
172
|
+
url: string;
|
|
173
|
+
urlContainsCdnCgiPath: boolean;
|
|
174
|
+
domainReportedMalicious?: boolean | null;
|
|
175
|
+
firstPageUrl?: string | null;
|
|
176
|
+
maliciousDomainCategories?: string[] | null;
|
|
177
|
+
maliciousUrlCategories?: string[] | null;
|
|
178
|
+
pageUrls?: string[] | null;
|
|
179
|
+
urlReportedMalicious?: boolean | null;
|
|
180
|
+
}[];
|
|
181
|
+
|
|
182
|
+
export const ListConnectionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
183
|
+
Schema.Struct({
|
|
184
|
+
id: Schema.String,
|
|
185
|
+
addedAt: Schema.String,
|
|
186
|
+
firstSeenAt: Schema.String,
|
|
187
|
+
host: Schema.String,
|
|
188
|
+
lastSeenAt: Schema.String,
|
|
189
|
+
url: Schema.String,
|
|
190
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
191
|
+
domainReportedMalicious: Schema.optional(
|
|
192
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
193
|
+
),
|
|
194
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
195
|
+
maliciousDomainCategories: Schema.optional(
|
|
196
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
197
|
+
),
|
|
198
|
+
maliciousUrlCategories: Schema.optional(
|
|
199
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
200
|
+
),
|
|
201
|
+
pageUrls: Schema.optional(
|
|
202
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
203
|
+
),
|
|
204
|
+
urlReportedMalicious: Schema.optional(
|
|
205
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
206
|
+
),
|
|
207
|
+
}).pipe(
|
|
208
|
+
Schema.encodeKeys({
|
|
209
|
+
id: "id",
|
|
210
|
+
addedAt: "added_at",
|
|
211
|
+
firstSeenAt: "first_seen_at",
|
|
212
|
+
host: "host",
|
|
213
|
+
lastSeenAt: "last_seen_at",
|
|
214
|
+
url: "url",
|
|
215
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
216
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
217
|
+
firstPageUrl: "first_page_url",
|
|
218
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
219
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
220
|
+
pageUrls: "page_urls",
|
|
221
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
222
|
+
}),
|
|
223
|
+
),
|
|
224
|
+
) as unknown as Schema.Schema<ListConnectionsResponse>;
|
|
225
|
+
|
|
226
|
+
export type ListConnectionsError = DefaultErrors;
|
|
227
|
+
|
|
228
|
+
export const listConnections: API.OperationMethod<
|
|
229
|
+
ListConnectionsRequest,
|
|
230
|
+
ListConnectionsResponse,
|
|
231
|
+
ListConnectionsError,
|
|
232
|
+
Credentials | HttpClient.HttpClient
|
|
233
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
234
|
+
input: ListConnectionsRequest,
|
|
235
|
+
output: ListConnectionsResponse,
|
|
236
|
+
errors: [],
|
|
237
|
+
}));
|
|
238
|
+
|
|
239
|
+
// =============================================================================
|
|
240
|
+
// Cooky
|
|
241
|
+
// =============================================================================
|
|
242
|
+
|
|
243
|
+
export interface GetCookyRequest {
|
|
244
|
+
cookieId: string;
|
|
245
|
+
/** Identifier */
|
|
246
|
+
zoneId: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const GetCookyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
250
|
+
cookieId: Schema.String.pipe(T.HttpPath("cookieId")),
|
|
251
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
252
|
+
}).pipe(
|
|
253
|
+
T.Http({
|
|
254
|
+
method: "GET",
|
|
255
|
+
path: "/zones/{zone_id}/page_shield/cookies/{cookieId}",
|
|
256
|
+
}),
|
|
257
|
+
) as unknown as Schema.Schema<GetCookyRequest>;
|
|
258
|
+
|
|
259
|
+
export interface GetCookyResponse {
|
|
260
|
+
/** Identifier */
|
|
261
|
+
id: string;
|
|
262
|
+
firstSeenAt: string;
|
|
263
|
+
host: string;
|
|
264
|
+
lastSeenAt: string;
|
|
265
|
+
name: string;
|
|
266
|
+
type: "first_party" | "unknown";
|
|
267
|
+
domainAttribute?: string | null;
|
|
268
|
+
expiresAttribute?: string | null;
|
|
269
|
+
httpOnlyAttribute?: boolean | null;
|
|
270
|
+
maxAgeAttribute?: number | null;
|
|
271
|
+
pageUrls?: string[] | null;
|
|
272
|
+
pathAttribute?: string | null;
|
|
273
|
+
sameSiteAttribute?: "lax" | "strict" | "none" | null;
|
|
274
|
+
secureAttribute?: boolean | null;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export const GetCookyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
278
|
+
id: Schema.String,
|
|
279
|
+
firstSeenAt: Schema.String,
|
|
280
|
+
host: Schema.String,
|
|
281
|
+
lastSeenAt: Schema.String,
|
|
282
|
+
name: Schema.String,
|
|
283
|
+
type: Schema.Literals(["first_party", "unknown"]),
|
|
284
|
+
domainAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
285
|
+
expiresAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
286
|
+
httpOnlyAttribute: Schema.optional(
|
|
287
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
288
|
+
),
|
|
289
|
+
maxAgeAttribute: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
290
|
+
pageUrls: Schema.optional(
|
|
291
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
292
|
+
),
|
|
293
|
+
pathAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
294
|
+
sameSiteAttribute: Schema.optional(
|
|
295
|
+
Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.Null]),
|
|
296
|
+
),
|
|
297
|
+
secureAttribute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
298
|
+
}).pipe(
|
|
299
|
+
Schema.encodeKeys({
|
|
300
|
+
id: "id",
|
|
301
|
+
firstSeenAt: "first_seen_at",
|
|
302
|
+
host: "host",
|
|
303
|
+
lastSeenAt: "last_seen_at",
|
|
304
|
+
name: "name",
|
|
305
|
+
type: "type",
|
|
306
|
+
domainAttribute: "domain_attribute",
|
|
307
|
+
expiresAttribute: "expires_attribute",
|
|
308
|
+
httpOnlyAttribute: "http_only_attribute",
|
|
309
|
+
maxAgeAttribute: "max_age_attribute",
|
|
310
|
+
pageUrls: "page_urls",
|
|
311
|
+
pathAttribute: "path_attribute",
|
|
312
|
+
sameSiteAttribute: "same_site_attribute",
|
|
313
|
+
secureAttribute: "secure_attribute",
|
|
314
|
+
}),
|
|
315
|
+
) as unknown as Schema.Schema<GetCookyResponse>;
|
|
316
|
+
|
|
317
|
+
export type GetCookyError = DefaultErrors;
|
|
318
|
+
|
|
319
|
+
export const getCooky: API.OperationMethod<
|
|
320
|
+
GetCookyRequest,
|
|
321
|
+
GetCookyResponse,
|
|
322
|
+
GetCookyError,
|
|
323
|
+
Credentials | HttpClient.HttpClient
|
|
324
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
325
|
+
input: GetCookyRequest,
|
|
326
|
+
output: GetCookyResponse,
|
|
327
|
+
errors: [],
|
|
328
|
+
}));
|
|
329
|
+
|
|
330
|
+
export interface ListCookiesRequest {
|
|
331
|
+
/** Path param: Identifier */
|
|
332
|
+
zoneId: string;
|
|
333
|
+
/** Query param: The direction used to sort returned cookies.' */
|
|
334
|
+
direction?: "asc" | "desc";
|
|
335
|
+
/** Query param: Filters the returned cookies that match the specified domain attribute */
|
|
336
|
+
domain?: string;
|
|
337
|
+
/** Query param: Export the list of cookies as a file, limited to 50000 entries. */
|
|
338
|
+
export?: "csv";
|
|
339
|
+
/** Query param: Includes cookies that match one or more URL-encoded hostnames separated by commas. Wildcards are supported at the start and end of each hostname to support starts with, ends with and con */
|
|
340
|
+
hosts?: string;
|
|
341
|
+
/** Query param: Filters the returned cookies that are set with HttpOnly */
|
|
342
|
+
httpOnly?: boolean;
|
|
343
|
+
/** Query param: Filters the returned cookies that match the specified name. Wildcards are supported at the start and end to support starts with, ends with and contains. e.g. session\ */
|
|
344
|
+
name?: string;
|
|
345
|
+
/** Query param: The field used to sort returned cookies. */
|
|
346
|
+
orderBy?: "first_seen_at" | "last_seen_at";
|
|
347
|
+
/** Query param: The current page number of the paginated results. We additionally support a special value "all". When "all" is used, the API will return all the cookies with the applied filters in a sin */
|
|
348
|
+
page?: string;
|
|
349
|
+
/** Query param: Includes connections that match one or more page URLs (separated by commas) where they were last seen Wildcards are supported at the start and end of each page URL to support starts with */
|
|
350
|
+
pageUrl?: string;
|
|
351
|
+
/** Query param: Filters the returned cookies that match the specified path attribute */
|
|
352
|
+
path?: string;
|
|
353
|
+
/** Query param: The number of results per page. */
|
|
354
|
+
perPage?: number;
|
|
355
|
+
/** Query param: Filters the returned cookies that match the specified same_site attribute */
|
|
356
|
+
sameSite?: "lax" | "strict" | "none";
|
|
357
|
+
/** Query param: Filters the returned cookies that are set with Secure */
|
|
358
|
+
secure?: boolean;
|
|
359
|
+
/** Query param: Filters the returned cookies that match the specified type attribute */
|
|
360
|
+
type?: "first_party" | "unknown";
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export const ListCookiesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
364
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
365
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
366
|
+
T.HttpQuery("direction"),
|
|
367
|
+
),
|
|
368
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
369
|
+
export: Schema.optional(Schema.Literal("csv")).pipe(T.HttpQuery("export")),
|
|
370
|
+
hosts: Schema.optional(Schema.String).pipe(T.HttpQuery("hosts")),
|
|
371
|
+
httpOnly: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("http_only")),
|
|
372
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
373
|
+
orderBy: Schema.optional(
|
|
374
|
+
Schema.Literals(["first_seen_at", "last_seen_at"]),
|
|
375
|
+
).pipe(T.HttpQuery("order_by")),
|
|
376
|
+
page: Schema.optional(Schema.String).pipe(T.HttpQuery("page")),
|
|
377
|
+
pageUrl: Schema.optional(Schema.String).pipe(T.HttpQuery("page_url")),
|
|
378
|
+
path: Schema.optional(Schema.String).pipe(T.HttpQuery("path")),
|
|
379
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
380
|
+
sameSite: Schema.optional(Schema.Literals(["lax", "strict", "none"])).pipe(
|
|
381
|
+
T.HttpQuery("same_site"),
|
|
382
|
+
),
|
|
383
|
+
secure: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("secure")),
|
|
384
|
+
type: Schema.optional(Schema.Literals(["first_party", "unknown"])).pipe(
|
|
385
|
+
T.HttpQuery("type"),
|
|
386
|
+
),
|
|
387
|
+
}).pipe(
|
|
388
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/cookies" }),
|
|
389
|
+
) as unknown as Schema.Schema<ListCookiesRequest>;
|
|
390
|
+
|
|
391
|
+
export type ListCookiesResponse = {
|
|
392
|
+
id: string;
|
|
393
|
+
firstSeenAt: string;
|
|
394
|
+
host: string;
|
|
395
|
+
lastSeenAt: string;
|
|
396
|
+
name: string;
|
|
397
|
+
type: "first_party" | "unknown";
|
|
398
|
+
domainAttribute?: string | null;
|
|
399
|
+
expiresAttribute?: string | null;
|
|
400
|
+
httpOnlyAttribute?: boolean | null;
|
|
401
|
+
maxAgeAttribute?: number | null;
|
|
402
|
+
pageUrls?: string[] | null;
|
|
403
|
+
pathAttribute?: string | null;
|
|
404
|
+
sameSiteAttribute?: "lax" | "strict" | "none" | null;
|
|
405
|
+
secureAttribute?: boolean | null;
|
|
406
|
+
}[];
|
|
407
|
+
|
|
408
|
+
export const ListCookiesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
409
|
+
Schema.Struct({
|
|
410
|
+
id: Schema.String,
|
|
411
|
+
firstSeenAt: Schema.String,
|
|
412
|
+
host: Schema.String,
|
|
413
|
+
lastSeenAt: Schema.String,
|
|
414
|
+
name: Schema.String,
|
|
415
|
+
type: Schema.Literals(["first_party", "unknown"]),
|
|
416
|
+
domainAttribute: Schema.optional(
|
|
417
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
418
|
+
),
|
|
419
|
+
expiresAttribute: Schema.optional(
|
|
420
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
421
|
+
),
|
|
422
|
+
httpOnlyAttribute: Schema.optional(
|
|
423
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
424
|
+
),
|
|
425
|
+
maxAgeAttribute: Schema.optional(
|
|
426
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
427
|
+
),
|
|
428
|
+
pageUrls: Schema.optional(
|
|
429
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
430
|
+
),
|
|
431
|
+
pathAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
432
|
+
sameSiteAttribute: Schema.optional(
|
|
433
|
+
Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.Null]),
|
|
434
|
+
),
|
|
435
|
+
secureAttribute: Schema.optional(
|
|
436
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
437
|
+
),
|
|
438
|
+
}).pipe(
|
|
439
|
+
Schema.encodeKeys({
|
|
440
|
+
id: "id",
|
|
441
|
+
firstSeenAt: "first_seen_at",
|
|
442
|
+
host: "host",
|
|
443
|
+
lastSeenAt: "last_seen_at",
|
|
444
|
+
name: "name",
|
|
445
|
+
type: "type",
|
|
446
|
+
domainAttribute: "domain_attribute",
|
|
447
|
+
expiresAttribute: "expires_attribute",
|
|
448
|
+
httpOnlyAttribute: "http_only_attribute",
|
|
449
|
+
maxAgeAttribute: "max_age_attribute",
|
|
450
|
+
pageUrls: "page_urls",
|
|
451
|
+
pathAttribute: "path_attribute",
|
|
452
|
+
sameSiteAttribute: "same_site_attribute",
|
|
453
|
+
secureAttribute: "secure_attribute",
|
|
454
|
+
}),
|
|
455
|
+
),
|
|
456
|
+
) as unknown as Schema.Schema<ListCookiesResponse>;
|
|
457
|
+
|
|
458
|
+
export type ListCookiesError = DefaultErrors;
|
|
459
|
+
|
|
460
|
+
export const listCookies: API.OperationMethod<
|
|
461
|
+
ListCookiesRequest,
|
|
462
|
+
ListCookiesResponse,
|
|
463
|
+
ListCookiesError,
|
|
464
|
+
Credentials | HttpClient.HttpClient
|
|
465
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
466
|
+
input: ListCookiesRequest,
|
|
467
|
+
output: ListCookiesResponse,
|
|
468
|
+
errors: [],
|
|
469
|
+
}));
|
|
470
|
+
|
|
471
|
+
// =============================================================================
|
|
472
|
+
// PageShield
|
|
473
|
+
// =============================================================================
|
|
474
|
+
|
|
475
|
+
export interface GetPageShieldRequest {
|
|
476
|
+
/** Identifier */
|
|
477
|
+
zoneId: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export const GetPageShieldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
481
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
482
|
+
}).pipe(
|
|
483
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield" }),
|
|
484
|
+
) as unknown as Schema.Schema<GetPageShieldRequest>;
|
|
485
|
+
|
|
486
|
+
export interface GetPageShieldResponse {
|
|
487
|
+
/** When true, indicates that Page Shield is enabled. */
|
|
488
|
+
enabled: boolean;
|
|
489
|
+
/** The timestamp of when Page Shield was last updated. */
|
|
490
|
+
updatedAt: string;
|
|
491
|
+
/** When true, CSP reports will be sent to https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report */
|
|
492
|
+
useCloudflareReportingEndpoint: boolean;
|
|
493
|
+
/** When true, the paths associated with connections URLs will also be analyzed. */
|
|
494
|
+
useConnectionUrlPath: boolean;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export const GetPageShieldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
498
|
+
enabled: Schema.Boolean,
|
|
499
|
+
updatedAt: Schema.String,
|
|
500
|
+
useCloudflareReportingEndpoint: Schema.Boolean,
|
|
501
|
+
useConnectionUrlPath: Schema.Boolean,
|
|
502
|
+
}).pipe(
|
|
503
|
+
Schema.encodeKeys({
|
|
504
|
+
enabled: "enabled",
|
|
505
|
+
updatedAt: "updated_at",
|
|
506
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
507
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
508
|
+
}),
|
|
509
|
+
) as unknown as Schema.Schema<GetPageShieldResponse>;
|
|
510
|
+
|
|
511
|
+
export type GetPageShieldError = DefaultErrors;
|
|
512
|
+
|
|
513
|
+
export const getPageShield: API.OperationMethod<
|
|
514
|
+
GetPageShieldRequest,
|
|
515
|
+
GetPageShieldResponse,
|
|
516
|
+
GetPageShieldError,
|
|
517
|
+
Credentials | HttpClient.HttpClient
|
|
518
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
519
|
+
input: GetPageShieldRequest,
|
|
520
|
+
output: GetPageShieldResponse,
|
|
521
|
+
errors: [],
|
|
522
|
+
}));
|
|
523
|
+
|
|
524
|
+
export interface PutPageShieldRequest {
|
|
525
|
+
/** Path param: Identifier */
|
|
526
|
+
zoneId: string;
|
|
527
|
+
/** Body param: When true, indicates that Page Shield is enabled. */
|
|
528
|
+
enabled?: boolean;
|
|
529
|
+
/** Body param: When true, CSP reports will be sent to https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report */
|
|
530
|
+
useCloudflareReportingEndpoint?: boolean;
|
|
531
|
+
/** Body param: When true, the paths associated with connections URLs will also be analyzed. */
|
|
532
|
+
useConnectionUrlPath?: boolean;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export const PutPageShieldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
536
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
537
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
538
|
+
useCloudflareReportingEndpoint: Schema.optional(Schema.Boolean),
|
|
539
|
+
useConnectionUrlPath: Schema.optional(Schema.Boolean),
|
|
540
|
+
}).pipe(
|
|
541
|
+
Schema.encodeKeys({
|
|
542
|
+
enabled: "enabled",
|
|
543
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
544
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
545
|
+
}),
|
|
546
|
+
T.Http({ method: "PUT", path: "/zones/{zone_id}/page_shield" }),
|
|
547
|
+
) as unknown as Schema.Schema<PutPageShieldRequest>;
|
|
548
|
+
|
|
549
|
+
export interface PutPageShieldResponse {
|
|
550
|
+
/** When true, indicates that Page Shield is enabled. */
|
|
551
|
+
enabled: boolean;
|
|
552
|
+
/** The timestamp of when Page Shield was last updated. */
|
|
553
|
+
updatedAt: string;
|
|
554
|
+
/** When true, CSP reports will be sent to https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report */
|
|
555
|
+
useCloudflareReportingEndpoint: boolean;
|
|
556
|
+
/** When true, the paths associated with connections URLs will also be analyzed. */
|
|
557
|
+
useConnectionUrlPath: boolean;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export const PutPageShieldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
561
|
+
enabled: Schema.Boolean,
|
|
562
|
+
updatedAt: Schema.String,
|
|
563
|
+
useCloudflareReportingEndpoint: Schema.Boolean,
|
|
564
|
+
useConnectionUrlPath: Schema.Boolean,
|
|
565
|
+
}).pipe(
|
|
566
|
+
Schema.encodeKeys({
|
|
567
|
+
enabled: "enabled",
|
|
568
|
+
updatedAt: "updated_at",
|
|
569
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
570
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
571
|
+
}),
|
|
572
|
+
) as unknown as Schema.Schema<PutPageShieldResponse>;
|
|
573
|
+
|
|
574
|
+
export type PutPageShieldError = DefaultErrors;
|
|
575
|
+
|
|
576
|
+
export const putPageShield: API.OperationMethod<
|
|
577
|
+
PutPageShieldRequest,
|
|
578
|
+
PutPageShieldResponse,
|
|
579
|
+
PutPageShieldError,
|
|
580
|
+
Credentials | HttpClient.HttpClient
|
|
581
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
582
|
+
input: PutPageShieldRequest,
|
|
583
|
+
output: PutPageShieldResponse,
|
|
584
|
+
errors: [],
|
|
585
|
+
}));
|
|
586
|
+
|
|
587
|
+
// =============================================================================
|
|
588
|
+
// Policy
|
|
589
|
+
// =============================================================================
|
|
590
|
+
|
|
591
|
+
export interface GetPolicyRequest {
|
|
592
|
+
policyId: string;
|
|
593
|
+
/** Identifier */
|
|
594
|
+
zoneId: string;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export const GetPolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
598
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
599
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
600
|
+
}).pipe(
|
|
601
|
+
T.Http({
|
|
602
|
+
method: "GET",
|
|
603
|
+
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
604
|
+
}),
|
|
605
|
+
) as unknown as Schema.Schema<GetPolicyRequest>;
|
|
606
|
+
|
|
607
|
+
export interface GetPolicyResponse {
|
|
608
|
+
/** Identifier */
|
|
609
|
+
id: string;
|
|
610
|
+
/** The action to take if the expression matches */
|
|
611
|
+
action: "allow" | "log";
|
|
612
|
+
/** A description for the policy */
|
|
613
|
+
description: string;
|
|
614
|
+
/** Whether the policy is enabled */
|
|
615
|
+
enabled: boolean;
|
|
616
|
+
/** The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax */
|
|
617
|
+
expression: string;
|
|
618
|
+
/** The policy which will be applied */
|
|
619
|
+
value: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export const GetPolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
623
|
+
id: Schema.String,
|
|
624
|
+
action: Schema.Literals(["allow", "log"]),
|
|
625
|
+
description: Schema.String,
|
|
626
|
+
enabled: Schema.Boolean,
|
|
627
|
+
expression: Schema.String,
|
|
628
|
+
value: Schema.String,
|
|
629
|
+
}) as unknown as Schema.Schema<GetPolicyResponse>;
|
|
630
|
+
|
|
631
|
+
export type GetPolicyError = DefaultErrors;
|
|
632
|
+
|
|
633
|
+
export const getPolicy: API.OperationMethod<
|
|
634
|
+
GetPolicyRequest,
|
|
635
|
+
GetPolicyResponse,
|
|
636
|
+
GetPolicyError,
|
|
637
|
+
Credentials | HttpClient.HttpClient
|
|
638
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
639
|
+
input: GetPolicyRequest,
|
|
640
|
+
output: GetPolicyResponse,
|
|
641
|
+
errors: [],
|
|
642
|
+
}));
|
|
643
|
+
|
|
644
|
+
export interface ListPoliciesRequest {
|
|
645
|
+
/** Identifier */
|
|
646
|
+
zoneId: string;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export const ListPoliciesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
650
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
651
|
+
}).pipe(
|
|
652
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/policies" }),
|
|
653
|
+
) as unknown as Schema.Schema<ListPoliciesRequest>;
|
|
654
|
+
|
|
655
|
+
export type ListPoliciesResponse = {
|
|
656
|
+
id: string;
|
|
657
|
+
action: "allow" | "log";
|
|
658
|
+
description: string;
|
|
659
|
+
enabled: boolean;
|
|
660
|
+
expression: string;
|
|
661
|
+
value: string;
|
|
662
|
+
}[];
|
|
663
|
+
|
|
664
|
+
export const ListPoliciesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
665
|
+
Schema.Struct({
|
|
666
|
+
id: Schema.String,
|
|
667
|
+
action: Schema.Literals(["allow", "log"]),
|
|
668
|
+
description: Schema.String,
|
|
669
|
+
enabled: Schema.Boolean,
|
|
670
|
+
expression: Schema.String,
|
|
671
|
+
value: Schema.String,
|
|
672
|
+
}),
|
|
673
|
+
) as unknown as Schema.Schema<ListPoliciesResponse>;
|
|
674
|
+
|
|
675
|
+
export type ListPoliciesError = DefaultErrors;
|
|
676
|
+
|
|
677
|
+
export const listPolicies: API.OperationMethod<
|
|
678
|
+
ListPoliciesRequest,
|
|
679
|
+
ListPoliciesResponse,
|
|
680
|
+
ListPoliciesError,
|
|
681
|
+
Credentials | HttpClient.HttpClient
|
|
682
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
683
|
+
input: ListPoliciesRequest,
|
|
684
|
+
output: ListPoliciesResponse,
|
|
685
|
+
errors: [],
|
|
686
|
+
}));
|
|
687
|
+
|
|
688
|
+
export interface CreatePolicyRequest {
|
|
689
|
+
/** Path param: Identifier */
|
|
690
|
+
zoneId: string;
|
|
691
|
+
/** Body param: The action to take if the expression matches */
|
|
692
|
+
action: "allow" | "log";
|
|
693
|
+
/** Body param: A description for the policy */
|
|
694
|
+
description: string;
|
|
695
|
+
/** Body param: Whether the policy is enabled */
|
|
696
|
+
enabled: boolean;
|
|
697
|
+
/** Body param: The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax */
|
|
698
|
+
expression: string;
|
|
699
|
+
/** Body param: The policy which will be applied */
|
|
700
|
+
value: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export const CreatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
704
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
705
|
+
action: Schema.Literals(["allow", "log"]),
|
|
706
|
+
description: Schema.String,
|
|
707
|
+
enabled: Schema.Boolean,
|
|
708
|
+
expression: Schema.String,
|
|
709
|
+
value: Schema.String,
|
|
710
|
+
}).pipe(
|
|
711
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/page_shield/policies" }),
|
|
712
|
+
) as unknown as Schema.Schema<CreatePolicyRequest>;
|
|
713
|
+
|
|
714
|
+
export interface CreatePolicyResponse {
|
|
715
|
+
/** Identifier */
|
|
716
|
+
id: string;
|
|
717
|
+
/** The action to take if the expression matches */
|
|
718
|
+
action: "allow" | "log";
|
|
719
|
+
/** A description for the policy */
|
|
720
|
+
description: string;
|
|
721
|
+
/** Whether the policy is enabled */
|
|
722
|
+
enabled: boolean;
|
|
723
|
+
/** The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax */
|
|
724
|
+
expression: string;
|
|
725
|
+
/** The policy which will be applied */
|
|
726
|
+
value: string;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export const CreatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
730
|
+
id: Schema.String,
|
|
731
|
+
action: Schema.Literals(["allow", "log"]),
|
|
732
|
+
description: Schema.String,
|
|
733
|
+
enabled: Schema.Boolean,
|
|
734
|
+
expression: Schema.String,
|
|
735
|
+
value: Schema.String,
|
|
736
|
+
}) as unknown as Schema.Schema<CreatePolicyResponse>;
|
|
737
|
+
|
|
738
|
+
export type CreatePolicyError = DefaultErrors;
|
|
739
|
+
|
|
740
|
+
export const createPolicy: API.OperationMethod<
|
|
741
|
+
CreatePolicyRequest,
|
|
742
|
+
CreatePolicyResponse,
|
|
743
|
+
CreatePolicyError,
|
|
744
|
+
Credentials | HttpClient.HttpClient
|
|
745
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
746
|
+
input: CreatePolicyRequest,
|
|
747
|
+
output: CreatePolicyResponse,
|
|
748
|
+
errors: [],
|
|
749
|
+
}));
|
|
750
|
+
|
|
751
|
+
export interface UpdatePolicyRequest {
|
|
752
|
+
policyId: string;
|
|
753
|
+
/** Path param: Identifier */
|
|
754
|
+
zoneId: string;
|
|
755
|
+
/** Body param: The action to take if the expression matches */
|
|
756
|
+
action?: "allow" | "log";
|
|
757
|
+
/** Body param: A description for the policy */
|
|
758
|
+
description?: string;
|
|
759
|
+
/** Body param: Whether the policy is enabled */
|
|
760
|
+
enabled?: boolean;
|
|
761
|
+
/** Body param: The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax */
|
|
762
|
+
expression?: string;
|
|
763
|
+
/** Body param: The policy which will be applied */
|
|
764
|
+
value?: string;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export const UpdatePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
768
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
769
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
770
|
+
action: Schema.optional(Schema.Literals(["allow", "log"])),
|
|
771
|
+
description: Schema.optional(Schema.String),
|
|
772
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
773
|
+
expression: Schema.optional(Schema.String),
|
|
774
|
+
value: Schema.optional(Schema.String),
|
|
775
|
+
}).pipe(
|
|
776
|
+
T.Http({
|
|
777
|
+
method: "PUT",
|
|
778
|
+
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
779
|
+
}),
|
|
780
|
+
) as unknown as Schema.Schema<UpdatePolicyRequest>;
|
|
781
|
+
|
|
782
|
+
export interface UpdatePolicyResponse {
|
|
783
|
+
/** Identifier */
|
|
784
|
+
id: string;
|
|
785
|
+
/** The action to take if the expression matches */
|
|
786
|
+
action: "allow" | "log";
|
|
787
|
+
/** A description for the policy */
|
|
788
|
+
description: string;
|
|
789
|
+
/** Whether the policy is enabled */
|
|
790
|
+
enabled: boolean;
|
|
791
|
+
/** The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax */
|
|
792
|
+
expression: string;
|
|
793
|
+
/** The policy which will be applied */
|
|
794
|
+
value: string;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export const UpdatePolicyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
798
|
+
id: Schema.String,
|
|
799
|
+
action: Schema.Literals(["allow", "log"]),
|
|
800
|
+
description: Schema.String,
|
|
801
|
+
enabled: Schema.Boolean,
|
|
802
|
+
expression: Schema.String,
|
|
803
|
+
value: Schema.String,
|
|
804
|
+
}) as unknown as Schema.Schema<UpdatePolicyResponse>;
|
|
805
|
+
|
|
806
|
+
export type UpdatePolicyError = DefaultErrors;
|
|
807
|
+
|
|
808
|
+
export const updatePolicy: API.OperationMethod<
|
|
809
|
+
UpdatePolicyRequest,
|
|
810
|
+
UpdatePolicyResponse,
|
|
811
|
+
UpdatePolicyError,
|
|
812
|
+
Credentials | HttpClient.HttpClient
|
|
813
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
814
|
+
input: UpdatePolicyRequest,
|
|
815
|
+
output: UpdatePolicyResponse,
|
|
816
|
+
errors: [],
|
|
817
|
+
}));
|
|
818
|
+
|
|
819
|
+
export interface DeletePolicyRequest {
|
|
820
|
+
policyId: string;
|
|
821
|
+
/** Identifier */
|
|
822
|
+
zoneId: string;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export const DeletePolicyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
826
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
827
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
828
|
+
}).pipe(
|
|
829
|
+
T.Http({
|
|
830
|
+
method: "DELETE",
|
|
831
|
+
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
832
|
+
}),
|
|
833
|
+
) as unknown as Schema.Schema<DeletePolicyRequest>;
|
|
834
|
+
|
|
835
|
+
export type DeletePolicyResponse = unknown;
|
|
836
|
+
|
|
837
|
+
export const DeletePolicyResponse =
|
|
838
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeletePolicyResponse>;
|
|
839
|
+
|
|
840
|
+
export type DeletePolicyError = DefaultErrors;
|
|
841
|
+
|
|
842
|
+
export const deletePolicy: API.OperationMethod<
|
|
843
|
+
DeletePolicyRequest,
|
|
844
|
+
DeletePolicyResponse,
|
|
845
|
+
DeletePolicyError,
|
|
846
|
+
Credentials | HttpClient.HttpClient
|
|
847
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
848
|
+
input: DeletePolicyRequest,
|
|
849
|
+
output: DeletePolicyResponse,
|
|
850
|
+
errors: [],
|
|
851
|
+
}));
|
|
852
|
+
|
|
853
|
+
// =============================================================================
|
|
854
|
+
// Script
|
|
855
|
+
// =============================================================================
|
|
856
|
+
|
|
857
|
+
export interface GetScriptRequest {
|
|
858
|
+
scriptId: string;
|
|
859
|
+
/** Identifier */
|
|
860
|
+
zoneId: string;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export const GetScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
864
|
+
scriptId: Schema.String.pipe(T.HttpPath("scriptId")),
|
|
865
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
866
|
+
}).pipe(
|
|
867
|
+
T.Http({
|
|
868
|
+
method: "GET",
|
|
869
|
+
path: "/zones/{zone_id}/page_shield/scripts/{scriptId}",
|
|
870
|
+
}),
|
|
871
|
+
) as unknown as Schema.Schema<GetScriptRequest>;
|
|
872
|
+
|
|
873
|
+
export interface GetScriptResponse {
|
|
874
|
+
/** Identifier */
|
|
875
|
+
id: string;
|
|
876
|
+
addedAt: string;
|
|
877
|
+
firstSeenAt: string;
|
|
878
|
+
host: string;
|
|
879
|
+
lastSeenAt: string;
|
|
880
|
+
url: string;
|
|
881
|
+
urlContainsCdnCgiPath: boolean;
|
|
882
|
+
/** The cryptomining score of the JavaScript content. */
|
|
883
|
+
cryptominingScore?: number | null;
|
|
884
|
+
/** The dataflow score of the JavaScript content. */
|
|
885
|
+
dataflowScore?: number | null;
|
|
886
|
+
domainReportedMalicious?: boolean | null;
|
|
887
|
+
/** The timestamp of when the script was last fetched. */
|
|
888
|
+
fetchedAt?: string | null;
|
|
889
|
+
firstPageUrl?: string | null;
|
|
890
|
+
/** The computed hash of the analyzed script. */
|
|
891
|
+
hash?: string | null;
|
|
892
|
+
/** The integrity score of the JavaScript content. */
|
|
893
|
+
jsIntegrityScore?: number | null;
|
|
894
|
+
/** The magecart score of the JavaScript content. */
|
|
895
|
+
magecartScore?: number | null;
|
|
896
|
+
maliciousDomainCategories?: string[] | null;
|
|
897
|
+
maliciousUrlCategories?: string[] | null;
|
|
898
|
+
/** The malware score of the JavaScript content. */
|
|
899
|
+
malwareScore?: number | null;
|
|
900
|
+
/** The obfuscation score of the JavaScript content. */
|
|
901
|
+
obfuscationScore?: number | null;
|
|
902
|
+
pageUrls?: string[] | null;
|
|
903
|
+
urlReportedMalicious?: boolean | null;
|
|
904
|
+
versions?:
|
|
905
|
+
| {
|
|
906
|
+
cryptominingScore?: number | null;
|
|
907
|
+
dataflowScore?: number | null;
|
|
908
|
+
fetchedAt?: string | null;
|
|
909
|
+
hash?: string | null;
|
|
910
|
+
jsIntegrityScore?: number | null;
|
|
911
|
+
magecartScore?: number | null;
|
|
912
|
+
malwareScore?: number | null;
|
|
913
|
+
obfuscationScore?: number | null;
|
|
914
|
+
}[]
|
|
915
|
+
| null;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export const GetScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
919
|
+
id: Schema.String,
|
|
920
|
+
addedAt: Schema.String,
|
|
921
|
+
firstSeenAt: Schema.String,
|
|
922
|
+
host: Schema.String,
|
|
923
|
+
lastSeenAt: Schema.String,
|
|
924
|
+
url: Schema.String,
|
|
925
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
926
|
+
cryptominingScore: Schema.optional(
|
|
927
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
928
|
+
),
|
|
929
|
+
dataflowScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
930
|
+
domainReportedMalicious: Schema.optional(
|
|
931
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
932
|
+
),
|
|
933
|
+
fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
934
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
935
|
+
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
936
|
+
jsIntegrityScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
937
|
+
magecartScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
938
|
+
maliciousDomainCategories: Schema.optional(
|
|
939
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
940
|
+
),
|
|
941
|
+
maliciousUrlCategories: Schema.optional(
|
|
942
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
943
|
+
),
|
|
944
|
+
malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
945
|
+
obfuscationScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
946
|
+
pageUrls: Schema.optional(
|
|
947
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
948
|
+
),
|
|
949
|
+
urlReportedMalicious: Schema.optional(
|
|
950
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
951
|
+
),
|
|
952
|
+
versions: Schema.optional(
|
|
953
|
+
Schema.Union([
|
|
954
|
+
Schema.Array(
|
|
955
|
+
Schema.Struct({
|
|
956
|
+
cryptominingScore: Schema.optional(
|
|
957
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
958
|
+
),
|
|
959
|
+
dataflowScore: Schema.optional(
|
|
960
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
961
|
+
),
|
|
962
|
+
fetchedAt: Schema.optional(
|
|
963
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
964
|
+
),
|
|
965
|
+
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
966
|
+
jsIntegrityScore: Schema.optional(
|
|
967
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
968
|
+
),
|
|
969
|
+
magecartScore: Schema.optional(
|
|
970
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
971
|
+
),
|
|
972
|
+
malwareScore: Schema.optional(
|
|
973
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
974
|
+
),
|
|
975
|
+
obfuscationScore: Schema.optional(
|
|
976
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
977
|
+
),
|
|
978
|
+
}).pipe(
|
|
979
|
+
Schema.encodeKeys({
|
|
980
|
+
cryptominingScore: "cryptomining_score",
|
|
981
|
+
dataflowScore: "dataflow_score",
|
|
982
|
+
fetchedAt: "fetched_at",
|
|
983
|
+
hash: "hash",
|
|
984
|
+
jsIntegrityScore: "js_integrity_score",
|
|
985
|
+
magecartScore: "magecart_score",
|
|
986
|
+
malwareScore: "malware_score",
|
|
987
|
+
obfuscationScore: "obfuscation_score",
|
|
988
|
+
}),
|
|
989
|
+
),
|
|
990
|
+
),
|
|
991
|
+
Schema.Null,
|
|
992
|
+
]),
|
|
993
|
+
),
|
|
994
|
+
}).pipe(
|
|
995
|
+
Schema.encodeKeys({
|
|
996
|
+
id: "id",
|
|
997
|
+
addedAt: "added_at",
|
|
998
|
+
firstSeenAt: "first_seen_at",
|
|
999
|
+
host: "host",
|
|
1000
|
+
lastSeenAt: "last_seen_at",
|
|
1001
|
+
url: "url",
|
|
1002
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
1003
|
+
cryptominingScore: "cryptomining_score",
|
|
1004
|
+
dataflowScore: "dataflow_score",
|
|
1005
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
1006
|
+
fetchedAt: "fetched_at",
|
|
1007
|
+
firstPageUrl: "first_page_url",
|
|
1008
|
+
hash: "hash",
|
|
1009
|
+
jsIntegrityScore: "js_integrity_score",
|
|
1010
|
+
magecartScore: "magecart_score",
|
|
1011
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
1012
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
1013
|
+
malwareScore: "malware_score",
|
|
1014
|
+
obfuscationScore: "obfuscation_score",
|
|
1015
|
+
pageUrls: "page_urls",
|
|
1016
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
1017
|
+
versions: "versions",
|
|
1018
|
+
}),
|
|
1019
|
+
) as unknown as Schema.Schema<GetScriptResponse>;
|
|
1020
|
+
|
|
1021
|
+
export type GetScriptError = DefaultErrors;
|
|
1022
|
+
|
|
1023
|
+
export const getScript: API.OperationMethod<
|
|
1024
|
+
GetScriptRequest,
|
|
1025
|
+
GetScriptResponse,
|
|
1026
|
+
GetScriptError,
|
|
1027
|
+
Credentials | HttpClient.HttpClient
|
|
1028
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1029
|
+
input: GetScriptRequest,
|
|
1030
|
+
output: GetScriptResponse,
|
|
1031
|
+
errors: [],
|
|
1032
|
+
}));
|
|
1033
|
+
|
|
1034
|
+
export interface ListScriptsRequest {
|
|
1035
|
+
/** Path param: Identifier */
|
|
1036
|
+
zoneId: string;
|
|
1037
|
+
/** Query param: The direction used to sort returned scripts. */
|
|
1038
|
+
direction?: "asc" | "desc";
|
|
1039
|
+
/** Query param: When true, excludes scripts seen in a `/cdn-cgi` path from the returned scripts. The default value is true. */
|
|
1040
|
+
excludeCdnCgi?: boolean;
|
|
1041
|
+
/** Query param: When true, excludes duplicate scripts. We consider a script duplicate of another if their javascript content matches and they share the same url host and zone hostname. In such case, we r */
|
|
1042
|
+
excludeDuplicates?: boolean;
|
|
1043
|
+
/** Query param: Excludes scripts whose URL contains one of the URL-encoded URLs separated by commas. */
|
|
1044
|
+
excludeUrls?: string;
|
|
1045
|
+
/** Query param: Export the list of scripts as a file, limited to 50000 entries. */
|
|
1046
|
+
export?: "csv";
|
|
1047
|
+
/** Query param: Includes scripts that match one or more URL-encoded hostnames separated by commas. Wildcards are supported at the start and end of each hostname to support starts with, ends with and con */
|
|
1048
|
+
hosts?: string;
|
|
1049
|
+
/** Query param: The field used to sort returned scripts. */
|
|
1050
|
+
orderBy?: "first_seen_at" | "last_seen_at";
|
|
1051
|
+
/** Query param: The current page number of the paginated results. We additionally support a special value "all". When "all" is used, the API will return all the scripts with the applied filters in a sin */
|
|
1052
|
+
page?: string;
|
|
1053
|
+
/** Query param: Includes scripts that match one or more page URLs (separated by commas) where they were last seen Wildcards are supported at the start and end of each page URL to support starts with, en */
|
|
1054
|
+
pageUrl?: string;
|
|
1055
|
+
/** Query param: The number of results per page. */
|
|
1056
|
+
perPage?: number;
|
|
1057
|
+
/** Query param: When true, malicious scripts appear first in the returned scripts. */
|
|
1058
|
+
prioritizeMalicious?: boolean;
|
|
1059
|
+
/** Query param: Filters the returned scripts using a comma-separated list of scripts statuses. Accepted values: `active`, `infrequent`, and `inactive`. The default value is `active`. */
|
|
1060
|
+
status?: string;
|
|
1061
|
+
/** Query param: Includes scripts whose URL contain one or more URL-encoded URLs separated by commas. */
|
|
1062
|
+
urls?: string;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export const ListScriptsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1066
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1067
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
1068
|
+
T.HttpQuery("direction"),
|
|
1069
|
+
),
|
|
1070
|
+
excludeCdnCgi: Schema.optional(Schema.Boolean).pipe(
|
|
1071
|
+
T.HttpQuery("exclude_cdn_cgi"),
|
|
1072
|
+
),
|
|
1073
|
+
excludeDuplicates: Schema.optional(Schema.Boolean).pipe(
|
|
1074
|
+
T.HttpQuery("exclude_duplicates"),
|
|
1075
|
+
),
|
|
1076
|
+
excludeUrls: Schema.optional(Schema.String).pipe(T.HttpQuery("exclude_urls")),
|
|
1077
|
+
export: Schema.optional(Schema.Literal("csv")).pipe(T.HttpQuery("export")),
|
|
1078
|
+
hosts: Schema.optional(Schema.String).pipe(T.HttpQuery("hosts")),
|
|
1079
|
+
orderBy: Schema.optional(
|
|
1080
|
+
Schema.Literals(["first_seen_at", "last_seen_at"]),
|
|
1081
|
+
).pipe(T.HttpQuery("order_by")),
|
|
1082
|
+
page: Schema.optional(Schema.String).pipe(T.HttpQuery("page")),
|
|
1083
|
+
pageUrl: Schema.optional(Schema.String).pipe(T.HttpQuery("page_url")),
|
|
1084
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1085
|
+
prioritizeMalicious: Schema.optional(Schema.Boolean).pipe(
|
|
1086
|
+
T.HttpQuery("prioritize_malicious"),
|
|
1087
|
+
),
|
|
1088
|
+
status: Schema.optional(Schema.String).pipe(T.HttpQuery("status")),
|
|
1089
|
+
urls: Schema.optional(Schema.String).pipe(T.HttpQuery("urls")),
|
|
1090
|
+
}).pipe(
|
|
1091
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/scripts" }),
|
|
1092
|
+
) as unknown as Schema.Schema<ListScriptsRequest>;
|
|
1093
|
+
|
|
1094
|
+
export type ListScriptsResponse = {
|
|
1095
|
+
id: string;
|
|
1096
|
+
addedAt: string;
|
|
1097
|
+
firstSeenAt: string;
|
|
1098
|
+
host: string;
|
|
1099
|
+
lastSeenAt: string;
|
|
1100
|
+
url: string;
|
|
1101
|
+
urlContainsCdnCgiPath: boolean;
|
|
1102
|
+
cryptominingScore?: number | null;
|
|
1103
|
+
dataflowScore?: number | null;
|
|
1104
|
+
domainReportedMalicious?: boolean | null;
|
|
1105
|
+
fetchedAt?: string | null;
|
|
1106
|
+
firstPageUrl?: string | null;
|
|
1107
|
+
hash?: string | null;
|
|
1108
|
+
jsIntegrityScore?: number | null;
|
|
1109
|
+
magecartScore?: number | null;
|
|
1110
|
+
maliciousDomainCategories?: string[] | null;
|
|
1111
|
+
maliciousUrlCategories?: string[] | null;
|
|
1112
|
+
malwareScore?: number | null;
|
|
1113
|
+
obfuscationScore?: number | null;
|
|
1114
|
+
pageUrls?: string[] | null;
|
|
1115
|
+
urlReportedMalicious?: boolean | null;
|
|
1116
|
+
}[];
|
|
1117
|
+
|
|
1118
|
+
export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1119
|
+
Schema.Struct({
|
|
1120
|
+
id: Schema.String,
|
|
1121
|
+
addedAt: Schema.String,
|
|
1122
|
+
firstSeenAt: Schema.String,
|
|
1123
|
+
host: Schema.String,
|
|
1124
|
+
lastSeenAt: Schema.String,
|
|
1125
|
+
url: Schema.String,
|
|
1126
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
1127
|
+
cryptominingScore: Schema.optional(
|
|
1128
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1129
|
+
),
|
|
1130
|
+
dataflowScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1131
|
+
domainReportedMalicious: Schema.optional(
|
|
1132
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1133
|
+
),
|
|
1134
|
+
fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1135
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1136
|
+
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1137
|
+
jsIntegrityScore: Schema.optional(
|
|
1138
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1139
|
+
),
|
|
1140
|
+
magecartScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1141
|
+
maliciousDomainCategories: Schema.optional(
|
|
1142
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1143
|
+
),
|
|
1144
|
+
maliciousUrlCategories: Schema.optional(
|
|
1145
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1146
|
+
),
|
|
1147
|
+
malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1148
|
+
obfuscationScore: Schema.optional(
|
|
1149
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1150
|
+
),
|
|
1151
|
+
pageUrls: Schema.optional(
|
|
1152
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1153
|
+
),
|
|
1154
|
+
urlReportedMalicious: Schema.optional(
|
|
1155
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1156
|
+
),
|
|
1157
|
+
}).pipe(
|
|
1158
|
+
Schema.encodeKeys({
|
|
1159
|
+
id: "id",
|
|
1160
|
+
addedAt: "added_at",
|
|
1161
|
+
firstSeenAt: "first_seen_at",
|
|
1162
|
+
host: "host",
|
|
1163
|
+
lastSeenAt: "last_seen_at",
|
|
1164
|
+
url: "url",
|
|
1165
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
1166
|
+
cryptominingScore: "cryptomining_score",
|
|
1167
|
+
dataflowScore: "dataflow_score",
|
|
1168
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
1169
|
+
fetchedAt: "fetched_at",
|
|
1170
|
+
firstPageUrl: "first_page_url",
|
|
1171
|
+
hash: "hash",
|
|
1172
|
+
jsIntegrityScore: "js_integrity_score",
|
|
1173
|
+
magecartScore: "magecart_score",
|
|
1174
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
1175
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
1176
|
+
malwareScore: "malware_score",
|
|
1177
|
+
obfuscationScore: "obfuscation_score",
|
|
1178
|
+
pageUrls: "page_urls",
|
|
1179
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
1180
|
+
}),
|
|
1181
|
+
),
|
|
1182
|
+
) as unknown as Schema.Schema<ListScriptsResponse>;
|
|
1183
|
+
|
|
1184
|
+
export type ListScriptsError = DefaultErrors;
|
|
1185
|
+
|
|
1186
|
+
export const listScripts: API.OperationMethod<
|
|
1187
|
+
ListScriptsRequest,
|
|
1188
|
+
ListScriptsResponse,
|
|
1189
|
+
ListScriptsError,
|
|
1190
|
+
Credentials | HttpClient.HttpClient
|
|
1191
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1192
|
+
input: ListScriptsRequest,
|
|
1193
|
+
output: ListScriptsResponse,
|
|
1194
|
+
errors: [],
|
|
1195
|
+
}));
|