@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,1695 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare LOGPUSH API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service logpush
|
|
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.ts";
|
|
12
|
+
import type { Credentials } from "../credentials.ts";
|
|
13
|
+
import { type DefaultErrors } from "../errors.ts";
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// DatasetField
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export interface GetDatasetFieldRequest {
|
|
20
|
+
datasetId:
|
|
21
|
+
| "access_requests"
|
|
22
|
+
| "audit_logs"
|
|
23
|
+
| "audit_logs_v2"
|
|
24
|
+
| "biso_user_actions"
|
|
25
|
+
| "casb_findings"
|
|
26
|
+
| "device_posture_results"
|
|
27
|
+
| "dex_application_tests"
|
|
28
|
+
| "dex_device_state_events"
|
|
29
|
+
| "dlp_forensic_copies"
|
|
30
|
+
| "dns_firewall_logs"
|
|
31
|
+
| "dns_logs"
|
|
32
|
+
| "email_security_alerts"
|
|
33
|
+
| "firewall_events"
|
|
34
|
+
| "gateway_dns"
|
|
35
|
+
| "gateway_http"
|
|
36
|
+
| "gateway_network"
|
|
37
|
+
| "http_requests"
|
|
38
|
+
| "ipsec_logs"
|
|
39
|
+
| "magic_ids_detections"
|
|
40
|
+
| "nel_reports"
|
|
41
|
+
| "network_analytics_logs"
|
|
42
|
+
| "page_shield_events"
|
|
43
|
+
| "sinkhole_http_logs"
|
|
44
|
+
| "spectrum_events"
|
|
45
|
+
| "ssh_logs"
|
|
46
|
+
| "warp_config_changes"
|
|
47
|
+
| "warp_toggle_changes"
|
|
48
|
+
| "workers_trace_events"
|
|
49
|
+
| "zaraz_events"
|
|
50
|
+
| "zero_trust_network_sessions"
|
|
51
|
+
| null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const GetDatasetFieldRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
55
|
+
{
|
|
56
|
+
datasetId: Schema.Union([
|
|
57
|
+
Schema.Literal("access_requests"),
|
|
58
|
+
Schema.Literal("audit_logs"),
|
|
59
|
+
Schema.Literal("audit_logs_v2"),
|
|
60
|
+
Schema.Literal("biso_user_actions"),
|
|
61
|
+
Schema.Literal("casb_findings"),
|
|
62
|
+
Schema.Literal("device_posture_results"),
|
|
63
|
+
Schema.Literal("dex_application_tests"),
|
|
64
|
+
Schema.Literal("dex_device_state_events"),
|
|
65
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
66
|
+
Schema.Literal("dns_firewall_logs"),
|
|
67
|
+
Schema.Literal("dns_logs"),
|
|
68
|
+
Schema.Literal("email_security_alerts"),
|
|
69
|
+
Schema.Literal("firewall_events"),
|
|
70
|
+
Schema.Literal("gateway_dns"),
|
|
71
|
+
Schema.Literal("gateway_http"),
|
|
72
|
+
Schema.Literal("gateway_network"),
|
|
73
|
+
Schema.Literal("http_requests"),
|
|
74
|
+
Schema.Literal("ipsec_logs"),
|
|
75
|
+
Schema.Literal("magic_ids_detections"),
|
|
76
|
+
Schema.Literal("nel_reports"),
|
|
77
|
+
Schema.Literal("network_analytics_logs"),
|
|
78
|
+
Schema.Literal("page_shield_events"),
|
|
79
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
80
|
+
Schema.Literal("spectrum_events"),
|
|
81
|
+
Schema.Literal("ssh_logs"),
|
|
82
|
+
Schema.Literal("warp_config_changes"),
|
|
83
|
+
Schema.Literal("warp_toggle_changes"),
|
|
84
|
+
Schema.Literal("workers_trace_events"),
|
|
85
|
+
Schema.Literal("zaraz_events"),
|
|
86
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
87
|
+
Schema.Null,
|
|
88
|
+
]).pipe(T.HttpPath("datasetId")),
|
|
89
|
+
},
|
|
90
|
+
).pipe(
|
|
91
|
+
T.Http({
|
|
92
|
+
method: "GET",
|
|
93
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/datasets/{datasetId}/fields",
|
|
94
|
+
}),
|
|
95
|
+
) as unknown as Schema.Schema<GetDatasetFieldRequest>;
|
|
96
|
+
|
|
97
|
+
export type GetDatasetFieldResponse = unknown;
|
|
98
|
+
|
|
99
|
+
export const GetDatasetFieldResponse =
|
|
100
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
101
|
+
T.ResponsePath("result"),
|
|
102
|
+
) as unknown as Schema.Schema<GetDatasetFieldResponse>;
|
|
103
|
+
|
|
104
|
+
export type GetDatasetFieldError = DefaultErrors;
|
|
105
|
+
|
|
106
|
+
export const getDatasetField: API.OperationMethod<
|
|
107
|
+
GetDatasetFieldRequest,
|
|
108
|
+
GetDatasetFieldResponse,
|
|
109
|
+
GetDatasetFieldError,
|
|
110
|
+
Credentials | HttpClient.HttpClient
|
|
111
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
112
|
+
input: GetDatasetFieldRequest,
|
|
113
|
+
output: GetDatasetFieldResponse,
|
|
114
|
+
errors: [],
|
|
115
|
+
}));
|
|
116
|
+
|
|
117
|
+
// =============================================================================
|
|
118
|
+
// DatasetJob
|
|
119
|
+
// =============================================================================
|
|
120
|
+
|
|
121
|
+
export interface GetDatasetJobRequest {
|
|
122
|
+
datasetId:
|
|
123
|
+
| "access_requests"
|
|
124
|
+
| "audit_logs"
|
|
125
|
+
| "audit_logs_v2"
|
|
126
|
+
| "biso_user_actions"
|
|
127
|
+
| "casb_findings"
|
|
128
|
+
| "device_posture_results"
|
|
129
|
+
| "dex_application_tests"
|
|
130
|
+
| "dex_device_state_events"
|
|
131
|
+
| "dlp_forensic_copies"
|
|
132
|
+
| "dns_firewall_logs"
|
|
133
|
+
| "dns_logs"
|
|
134
|
+
| "email_security_alerts"
|
|
135
|
+
| "firewall_events"
|
|
136
|
+
| "gateway_dns"
|
|
137
|
+
| "gateway_http"
|
|
138
|
+
| "gateway_network"
|
|
139
|
+
| "http_requests"
|
|
140
|
+
| "ipsec_logs"
|
|
141
|
+
| "magic_ids_detections"
|
|
142
|
+
| "nel_reports"
|
|
143
|
+
| "network_analytics_logs"
|
|
144
|
+
| "page_shield_events"
|
|
145
|
+
| "sinkhole_http_logs"
|
|
146
|
+
| "spectrum_events"
|
|
147
|
+
| "ssh_logs"
|
|
148
|
+
| "warp_config_changes"
|
|
149
|
+
| "warp_toggle_changes"
|
|
150
|
+
| "workers_trace_events"
|
|
151
|
+
| "zaraz_events"
|
|
152
|
+
| "zero_trust_network_sessions"
|
|
153
|
+
| null;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export const GetDatasetJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
157
|
+
datasetId: Schema.Union([
|
|
158
|
+
Schema.Literal("access_requests"),
|
|
159
|
+
Schema.Literal("audit_logs"),
|
|
160
|
+
Schema.Literal("audit_logs_v2"),
|
|
161
|
+
Schema.Literal("biso_user_actions"),
|
|
162
|
+
Schema.Literal("casb_findings"),
|
|
163
|
+
Schema.Literal("device_posture_results"),
|
|
164
|
+
Schema.Literal("dex_application_tests"),
|
|
165
|
+
Schema.Literal("dex_device_state_events"),
|
|
166
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
167
|
+
Schema.Literal("dns_firewall_logs"),
|
|
168
|
+
Schema.Literal("dns_logs"),
|
|
169
|
+
Schema.Literal("email_security_alerts"),
|
|
170
|
+
Schema.Literal("firewall_events"),
|
|
171
|
+
Schema.Literal("gateway_dns"),
|
|
172
|
+
Schema.Literal("gateway_http"),
|
|
173
|
+
Schema.Literal("gateway_network"),
|
|
174
|
+
Schema.Literal("http_requests"),
|
|
175
|
+
Schema.Literal("ipsec_logs"),
|
|
176
|
+
Schema.Literal("magic_ids_detections"),
|
|
177
|
+
Schema.Literal("nel_reports"),
|
|
178
|
+
Schema.Literal("network_analytics_logs"),
|
|
179
|
+
Schema.Literal("page_shield_events"),
|
|
180
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
181
|
+
Schema.Literal("spectrum_events"),
|
|
182
|
+
Schema.Literal("ssh_logs"),
|
|
183
|
+
Schema.Literal("warp_config_changes"),
|
|
184
|
+
Schema.Literal("warp_toggle_changes"),
|
|
185
|
+
Schema.Literal("workers_trace_events"),
|
|
186
|
+
Schema.Literal("zaraz_events"),
|
|
187
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
188
|
+
Schema.Null,
|
|
189
|
+
]).pipe(T.HttpPath("datasetId")),
|
|
190
|
+
}).pipe(
|
|
191
|
+
T.Http({
|
|
192
|
+
method: "GET",
|
|
193
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/datasets/{datasetId}/jobs",
|
|
194
|
+
}),
|
|
195
|
+
) as unknown as Schema.Schema<GetDatasetJobRequest>;
|
|
196
|
+
|
|
197
|
+
export type GetDatasetJobResponse = unknown;
|
|
198
|
+
|
|
199
|
+
export const GetDatasetJobResponse =
|
|
200
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetDatasetJobResponse>;
|
|
201
|
+
|
|
202
|
+
export type GetDatasetJobError = DefaultErrors;
|
|
203
|
+
|
|
204
|
+
export const getDatasetJob: API.OperationMethod<
|
|
205
|
+
GetDatasetJobRequest,
|
|
206
|
+
GetDatasetJobResponse,
|
|
207
|
+
GetDatasetJobError,
|
|
208
|
+
Credentials | HttpClient.HttpClient
|
|
209
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
210
|
+
input: GetDatasetJobRequest,
|
|
211
|
+
output: GetDatasetJobResponse,
|
|
212
|
+
errors: [],
|
|
213
|
+
}));
|
|
214
|
+
|
|
215
|
+
// =============================================================================
|
|
216
|
+
// Edge
|
|
217
|
+
// =============================================================================
|
|
218
|
+
|
|
219
|
+
export interface GetEdgeRequest {
|
|
220
|
+
/** Identifier. */
|
|
221
|
+
zoneId: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export const GetEdgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
225
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
226
|
+
}).pipe(
|
|
227
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/logpush/edge/jobs" }),
|
|
228
|
+
) as unknown as Schema.Schema<GetEdgeRequest>;
|
|
229
|
+
|
|
230
|
+
export type GetEdgeResponse = unknown;
|
|
231
|
+
|
|
232
|
+
export const GetEdgeResponse =
|
|
233
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetEdgeResponse>;
|
|
234
|
+
|
|
235
|
+
export type GetEdgeError = DefaultErrors;
|
|
236
|
+
|
|
237
|
+
export const getEdge: API.OperationMethod<
|
|
238
|
+
GetEdgeRequest,
|
|
239
|
+
GetEdgeResponse,
|
|
240
|
+
GetEdgeError,
|
|
241
|
+
Credentials | HttpClient.HttpClient
|
|
242
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
243
|
+
input: GetEdgeRequest,
|
|
244
|
+
output: GetEdgeResponse,
|
|
245
|
+
errors: [],
|
|
246
|
+
}));
|
|
247
|
+
|
|
248
|
+
export interface CreateEdgeRequest {
|
|
249
|
+
/** Path param: Identifier. */
|
|
250
|
+
zoneId: string;
|
|
251
|
+
/** Body param: Comma-separated list of fields. */
|
|
252
|
+
fields?: string;
|
|
253
|
+
/** Body param: Filters to drill down into specific events. */
|
|
254
|
+
filter?: string;
|
|
255
|
+
/** Body param: The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on. */
|
|
256
|
+
sample?: number;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export const CreateEdgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
260
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
261
|
+
fields: Schema.optional(Schema.String),
|
|
262
|
+
filter: Schema.optional(Schema.String),
|
|
263
|
+
sample: Schema.optional(Schema.Number),
|
|
264
|
+
}).pipe(
|
|
265
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/logpush/edge/jobs" }),
|
|
266
|
+
) as unknown as Schema.Schema<CreateEdgeRequest>;
|
|
267
|
+
|
|
268
|
+
export interface CreateEdgeResponse {
|
|
269
|
+
/** Unique WebSocket address that will receive messages from Cloudflare’s edge. */
|
|
270
|
+
destinationConf?: string | null;
|
|
271
|
+
/** Comma-separated list of fields. */
|
|
272
|
+
fields?: string | null;
|
|
273
|
+
/** Filters to drill down into specific events. */
|
|
274
|
+
filter?: string | null;
|
|
275
|
+
/** The sample parameter is the sample rate of the records set by the client: "sample": 1 is 100% of records "sample": 10 is 10% and so on. */
|
|
276
|
+
sample?: number | null;
|
|
277
|
+
/** Unique session id of the job. */
|
|
278
|
+
sessionId?: string | null;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export const CreateEdgeResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
282
|
+
destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
283
|
+
fields: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
284
|
+
filter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
285
|
+
sample: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
286
|
+
sessionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
287
|
+
})
|
|
288
|
+
.pipe(
|
|
289
|
+
Schema.encodeKeys({
|
|
290
|
+
destinationConf: "destination_conf",
|
|
291
|
+
fields: "fields",
|
|
292
|
+
filter: "filter",
|
|
293
|
+
sample: "sample",
|
|
294
|
+
sessionId: "session_id",
|
|
295
|
+
}),
|
|
296
|
+
)
|
|
297
|
+
.pipe(
|
|
298
|
+
T.ResponsePath("result"),
|
|
299
|
+
) as unknown as Schema.Schema<CreateEdgeResponse>;
|
|
300
|
+
|
|
301
|
+
export type CreateEdgeError = DefaultErrors;
|
|
302
|
+
|
|
303
|
+
export const createEdge: API.OperationMethod<
|
|
304
|
+
CreateEdgeRequest,
|
|
305
|
+
CreateEdgeResponse,
|
|
306
|
+
CreateEdgeError,
|
|
307
|
+
Credentials | HttpClient.HttpClient
|
|
308
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
309
|
+
input: CreateEdgeRequest,
|
|
310
|
+
output: CreateEdgeResponse,
|
|
311
|
+
errors: [],
|
|
312
|
+
}));
|
|
313
|
+
|
|
314
|
+
// =============================================================================
|
|
315
|
+
// ExistsValidate
|
|
316
|
+
// =============================================================================
|
|
317
|
+
|
|
318
|
+
export interface DestinationExistsValidateRequest {
|
|
319
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
320
|
+
accountId?: string;
|
|
321
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
322
|
+
zoneId?: string;
|
|
323
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
324
|
+
destinationConf: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export const DestinationExistsValidateRequest =
|
|
328
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
329
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
330
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
331
|
+
destinationConf: Schema.String,
|
|
332
|
+
}).pipe(
|
|
333
|
+
Schema.encodeKeys({ destinationConf: "destination_conf" }),
|
|
334
|
+
T.Http({
|
|
335
|
+
method: "POST",
|
|
336
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/validate/destination/exists",
|
|
337
|
+
}),
|
|
338
|
+
) as unknown as Schema.Schema<DestinationExistsValidateRequest>;
|
|
339
|
+
|
|
340
|
+
export interface DestinationExistsValidateResponse {
|
|
341
|
+
exists?: boolean | null;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export const DestinationExistsValidateResponse =
|
|
345
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
346
|
+
exists: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
347
|
+
}).pipe(
|
|
348
|
+
T.ResponsePath("result"),
|
|
349
|
+
) as unknown as Schema.Schema<DestinationExistsValidateResponse>;
|
|
350
|
+
|
|
351
|
+
export type DestinationExistsValidateError = DefaultErrors;
|
|
352
|
+
|
|
353
|
+
export const destinationExistsValidate: API.OperationMethod<
|
|
354
|
+
DestinationExistsValidateRequest,
|
|
355
|
+
DestinationExistsValidateResponse,
|
|
356
|
+
DestinationExistsValidateError,
|
|
357
|
+
Credentials | HttpClient.HttpClient
|
|
358
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
359
|
+
input: DestinationExistsValidateRequest,
|
|
360
|
+
output: DestinationExistsValidateResponse,
|
|
361
|
+
errors: [],
|
|
362
|
+
}));
|
|
363
|
+
|
|
364
|
+
// =============================================================================
|
|
365
|
+
// Job
|
|
366
|
+
// =============================================================================
|
|
367
|
+
|
|
368
|
+
export interface GetJobRequest {
|
|
369
|
+
jobId: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export const GetJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
373
|
+
jobId: Schema.Number.pipe(T.HttpPath("jobId")),
|
|
374
|
+
}).pipe(
|
|
375
|
+
T.Http({
|
|
376
|
+
method: "GET",
|
|
377
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/jobs/{jobId}",
|
|
378
|
+
}),
|
|
379
|
+
) as unknown as Schema.Schema<GetJobRequest>;
|
|
380
|
+
|
|
381
|
+
export interface GetJobResponse {
|
|
382
|
+
/** Unique id of the job. */
|
|
383
|
+
id?: number | null;
|
|
384
|
+
/** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
|
|
385
|
+
dataset?:
|
|
386
|
+
| "access_requests"
|
|
387
|
+
| "audit_logs"
|
|
388
|
+
| "audit_logs_v2"
|
|
389
|
+
| "biso_user_actions"
|
|
390
|
+
| "casb_findings"
|
|
391
|
+
| "device_posture_results"
|
|
392
|
+
| "dex_application_tests"
|
|
393
|
+
| "dex_device_state_events"
|
|
394
|
+
| "dlp_forensic_copies"
|
|
395
|
+
| "dns_firewall_logs"
|
|
396
|
+
| "dns_logs"
|
|
397
|
+
| "email_security_alerts"
|
|
398
|
+
| "firewall_events"
|
|
399
|
+
| "gateway_dns"
|
|
400
|
+
| "gateway_http"
|
|
401
|
+
| "gateway_network"
|
|
402
|
+
| "http_requests"
|
|
403
|
+
| "ipsec_logs"
|
|
404
|
+
| "magic_ids_detections"
|
|
405
|
+
| "nel_reports"
|
|
406
|
+
| "network_analytics_logs"
|
|
407
|
+
| "page_shield_events"
|
|
408
|
+
| "sinkhole_http_logs"
|
|
409
|
+
| "spectrum_events"
|
|
410
|
+
| "ssh_logs"
|
|
411
|
+
| "warp_config_changes"
|
|
412
|
+
| "warp_toggle_changes"
|
|
413
|
+
| "workers_trace_events"
|
|
414
|
+
| "zaraz_events"
|
|
415
|
+
| "zero_trust_network_sessions"
|
|
416
|
+
| null;
|
|
417
|
+
/** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
418
|
+
destinationConf?: string | null;
|
|
419
|
+
/** Flag that indicates if the job is enabled. */
|
|
420
|
+
enabled?: boolean | null;
|
|
421
|
+
/** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
|
|
422
|
+
errorMessage?: string | null;
|
|
423
|
+
/** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your */
|
|
424
|
+
frequency?: "high" | "low" | null;
|
|
425
|
+
/** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
|
|
426
|
+
kind?: "" | "edge" | null;
|
|
427
|
+
/** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
|
|
428
|
+
lastComplete?: string | null;
|
|
429
|
+
/** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
|
|
430
|
+
lastError?: string | null;
|
|
431
|
+
/** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
|
|
432
|
+
logpullOptions?: string | null;
|
|
433
|
+
/** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
|
|
434
|
+
maxUploadBytes?: "0" | number | null;
|
|
435
|
+
/** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
|
|
436
|
+
maxUploadIntervalSeconds?: "0" | number | null;
|
|
437
|
+
/** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
|
|
438
|
+
maxUploadRecords?: "0" | number | null;
|
|
439
|
+
/** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
|
|
440
|
+
name?: string | null;
|
|
441
|
+
/** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
|
|
442
|
+
outputOptions?: {
|
|
443
|
+
batchPrefix?: string | null;
|
|
444
|
+
batchSuffix?: string | null;
|
|
445
|
+
"cve-2021-44228"?: boolean | null;
|
|
446
|
+
fieldDelimiter?: string | null;
|
|
447
|
+
fieldNames?: string[] | null;
|
|
448
|
+
outputType?: "ndjson" | "csv" | null;
|
|
449
|
+
recordDelimiter?: string | null;
|
|
450
|
+
recordPrefix?: string | null;
|
|
451
|
+
recordSuffix?: string | null;
|
|
452
|
+
recordTemplate?: string | null;
|
|
453
|
+
sampleRate?: number | null;
|
|
454
|
+
timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
|
|
455
|
+
} | null;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export const GetJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
459
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
460
|
+
dataset: Schema.optional(
|
|
461
|
+
Schema.Union([
|
|
462
|
+
Schema.Literal("access_requests"),
|
|
463
|
+
Schema.Literal("audit_logs"),
|
|
464
|
+
Schema.Literal("audit_logs_v2"),
|
|
465
|
+
Schema.Literal("biso_user_actions"),
|
|
466
|
+
Schema.Literal("casb_findings"),
|
|
467
|
+
Schema.Literal("device_posture_results"),
|
|
468
|
+
Schema.Literal("dex_application_tests"),
|
|
469
|
+
Schema.Literal("dex_device_state_events"),
|
|
470
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
471
|
+
Schema.Literal("dns_firewall_logs"),
|
|
472
|
+
Schema.Literal("dns_logs"),
|
|
473
|
+
Schema.Literal("email_security_alerts"),
|
|
474
|
+
Schema.Literal("firewall_events"),
|
|
475
|
+
Schema.Literal("gateway_dns"),
|
|
476
|
+
Schema.Literal("gateway_http"),
|
|
477
|
+
Schema.Literal("gateway_network"),
|
|
478
|
+
Schema.Literal("http_requests"),
|
|
479
|
+
Schema.Literal("ipsec_logs"),
|
|
480
|
+
Schema.Literal("magic_ids_detections"),
|
|
481
|
+
Schema.Literal("nel_reports"),
|
|
482
|
+
Schema.Literal("network_analytics_logs"),
|
|
483
|
+
Schema.Literal("page_shield_events"),
|
|
484
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
485
|
+
Schema.Literal("spectrum_events"),
|
|
486
|
+
Schema.Literal("ssh_logs"),
|
|
487
|
+
Schema.Literal("warp_config_changes"),
|
|
488
|
+
Schema.Literal("warp_toggle_changes"),
|
|
489
|
+
Schema.Literal("workers_trace_events"),
|
|
490
|
+
Schema.Literal("zaraz_events"),
|
|
491
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
492
|
+
Schema.Null,
|
|
493
|
+
]),
|
|
494
|
+
),
|
|
495
|
+
destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
496
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
497
|
+
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
498
|
+
frequency: Schema.optional(
|
|
499
|
+
Schema.Union([Schema.Literal("high"), Schema.Literal("low"), Schema.Null]),
|
|
500
|
+
),
|
|
501
|
+
kind: Schema.optional(
|
|
502
|
+
Schema.Union([Schema.Literals(["", "edge"]), Schema.Null]),
|
|
503
|
+
),
|
|
504
|
+
lastComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
505
|
+
lastError: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
506
|
+
logpullOptions: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
507
|
+
maxUploadBytes: Schema.optional(
|
|
508
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
509
|
+
),
|
|
510
|
+
maxUploadIntervalSeconds: Schema.optional(
|
|
511
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
512
|
+
),
|
|
513
|
+
maxUploadRecords: Schema.optional(
|
|
514
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
515
|
+
),
|
|
516
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
517
|
+
outputOptions: Schema.optional(
|
|
518
|
+
Schema.Union([
|
|
519
|
+
Schema.Struct({
|
|
520
|
+
batchPrefix: Schema.optional(
|
|
521
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
522
|
+
),
|
|
523
|
+
batchSuffix: Schema.optional(
|
|
524
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
525
|
+
),
|
|
526
|
+
"cve-2021-44228": Schema.optional(
|
|
527
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
528
|
+
),
|
|
529
|
+
fieldDelimiter: Schema.optional(
|
|
530
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
531
|
+
),
|
|
532
|
+
fieldNames: Schema.optional(
|
|
533
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
534
|
+
),
|
|
535
|
+
outputType: Schema.optional(
|
|
536
|
+
Schema.Union([Schema.Literals(["ndjson", "csv"]), Schema.Null]),
|
|
537
|
+
),
|
|
538
|
+
recordDelimiter: Schema.optional(
|
|
539
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
540
|
+
),
|
|
541
|
+
recordPrefix: Schema.optional(
|
|
542
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
543
|
+
),
|
|
544
|
+
recordSuffix: Schema.optional(
|
|
545
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
546
|
+
),
|
|
547
|
+
recordTemplate: Schema.optional(
|
|
548
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
549
|
+
),
|
|
550
|
+
sampleRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
551
|
+
timestampFormat: Schema.optional(
|
|
552
|
+
Schema.Union([
|
|
553
|
+
Schema.Literals(["unixnano", "unix", "rfc3339"]),
|
|
554
|
+
Schema.Null,
|
|
555
|
+
]),
|
|
556
|
+
),
|
|
557
|
+
}).pipe(
|
|
558
|
+
Schema.encodeKeys({
|
|
559
|
+
batchPrefix: "batch_prefix",
|
|
560
|
+
batchSuffix: "batch_suffix",
|
|
561
|
+
"cve-2021-44228": "CVE-2021-44228",
|
|
562
|
+
fieldDelimiter: "field_delimiter",
|
|
563
|
+
fieldNames: "field_names",
|
|
564
|
+
outputType: "output_type",
|
|
565
|
+
recordDelimiter: "record_delimiter",
|
|
566
|
+
recordPrefix: "record_prefix",
|
|
567
|
+
recordSuffix: "record_suffix",
|
|
568
|
+
recordTemplate: "record_template",
|
|
569
|
+
sampleRate: "sample_rate",
|
|
570
|
+
timestampFormat: "timestamp_format",
|
|
571
|
+
}),
|
|
572
|
+
),
|
|
573
|
+
Schema.Null,
|
|
574
|
+
]),
|
|
575
|
+
),
|
|
576
|
+
})
|
|
577
|
+
.pipe(
|
|
578
|
+
Schema.encodeKeys({
|
|
579
|
+
id: "id",
|
|
580
|
+
dataset: "dataset",
|
|
581
|
+
destinationConf: "destination_conf",
|
|
582
|
+
enabled: "enabled",
|
|
583
|
+
errorMessage: "error_message",
|
|
584
|
+
frequency: "frequency",
|
|
585
|
+
kind: "kind",
|
|
586
|
+
lastComplete: "last_complete",
|
|
587
|
+
lastError: "last_error",
|
|
588
|
+
logpullOptions: "logpull_options",
|
|
589
|
+
maxUploadBytes: "max_upload_bytes",
|
|
590
|
+
maxUploadIntervalSeconds: "max_upload_interval_seconds",
|
|
591
|
+
maxUploadRecords: "max_upload_records",
|
|
592
|
+
name: "name",
|
|
593
|
+
outputOptions: "output_options",
|
|
594
|
+
}),
|
|
595
|
+
)
|
|
596
|
+
.pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetJobResponse>;
|
|
597
|
+
|
|
598
|
+
export type GetJobError = DefaultErrors;
|
|
599
|
+
|
|
600
|
+
export const getJob: API.OperationMethod<
|
|
601
|
+
GetJobRequest,
|
|
602
|
+
GetJobResponse,
|
|
603
|
+
GetJobError,
|
|
604
|
+
Credentials | HttpClient.HttpClient
|
|
605
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
606
|
+
input: GetJobRequest,
|
|
607
|
+
output: GetJobResponse,
|
|
608
|
+
errors: [],
|
|
609
|
+
}));
|
|
610
|
+
|
|
611
|
+
export interface ListJobsRequest {}
|
|
612
|
+
|
|
613
|
+
export const ListJobsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
614
|
+
{},
|
|
615
|
+
).pipe(
|
|
616
|
+
T.Http({
|
|
617
|
+
method: "GET",
|
|
618
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/jobs",
|
|
619
|
+
}),
|
|
620
|
+
) as unknown as Schema.Schema<ListJobsRequest>;
|
|
621
|
+
|
|
622
|
+
export type ListJobsResponse = unknown;
|
|
623
|
+
|
|
624
|
+
export const ListJobsResponse =
|
|
625
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListJobsResponse>;
|
|
626
|
+
|
|
627
|
+
export type ListJobsError = DefaultErrors;
|
|
628
|
+
|
|
629
|
+
export const listJobs: API.OperationMethod<
|
|
630
|
+
ListJobsRequest,
|
|
631
|
+
ListJobsResponse,
|
|
632
|
+
ListJobsError,
|
|
633
|
+
Credentials | HttpClient.HttpClient
|
|
634
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
635
|
+
input: ListJobsRequest,
|
|
636
|
+
output: ListJobsResponse,
|
|
637
|
+
errors: [],
|
|
638
|
+
}));
|
|
639
|
+
|
|
640
|
+
export interface CreateJobRequest {
|
|
641
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
642
|
+
accountId?: string;
|
|
643
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
644
|
+
zoneId?: string;
|
|
645
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
646
|
+
destinationConf: string;
|
|
647
|
+
/** Body param: Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
|
|
648
|
+
dataset?:
|
|
649
|
+
| "access_requests"
|
|
650
|
+
| "audit_logs"
|
|
651
|
+
| "audit_logs_v2"
|
|
652
|
+
| "biso_user_actions"
|
|
653
|
+
| "casb_findings"
|
|
654
|
+
| "device_posture_results"
|
|
655
|
+
| "dex_application_tests"
|
|
656
|
+
| "dex_device_state_events"
|
|
657
|
+
| "dlp_forensic_copies"
|
|
658
|
+
| "dns_firewall_logs"
|
|
659
|
+
| "dns_logs"
|
|
660
|
+
| "email_security_alerts"
|
|
661
|
+
| "firewall_events"
|
|
662
|
+
| "gateway_dns"
|
|
663
|
+
| "gateway_http"
|
|
664
|
+
| "gateway_network"
|
|
665
|
+
| "http_requests"
|
|
666
|
+
| "ipsec_logs"
|
|
667
|
+
| "magic_ids_detections"
|
|
668
|
+
| "nel_reports"
|
|
669
|
+
| "network_analytics_logs"
|
|
670
|
+
| "page_shield_events"
|
|
671
|
+
| "sinkhole_http_logs"
|
|
672
|
+
| "spectrum_events"
|
|
673
|
+
| "ssh_logs"
|
|
674
|
+
| "warp_config_changes"
|
|
675
|
+
| "warp_toggle_changes"
|
|
676
|
+
| "workers_trace_events"
|
|
677
|
+
| "zaraz_events"
|
|
678
|
+
| "zero_trust_network_sessions"
|
|
679
|
+
| null;
|
|
680
|
+
/** Body param: Flag that indicates if the job is enabled. */
|
|
681
|
+
enabled?: boolean;
|
|
682
|
+
/** Body param: The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/). */
|
|
683
|
+
filter?: string | null;
|
|
684
|
+
/** @deprecated Body param: This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high */
|
|
685
|
+
frequency?: "high" | "low" | null;
|
|
686
|
+
/** Body param: The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
|
|
687
|
+
kind?: "" | "edge";
|
|
688
|
+
/** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
|
|
689
|
+
logpullOptions?: string | null;
|
|
690
|
+
/** Body param: The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means */
|
|
691
|
+
maxUploadBytes?: "0" | number | null;
|
|
692
|
+
/** Body param: The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log */
|
|
693
|
+
maxUploadIntervalSeconds?: "0" | number | null;
|
|
694
|
+
/** Body param: The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch */
|
|
695
|
+
maxUploadRecords?: "0" | number | null;
|
|
696
|
+
/** Body param: Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
|
|
697
|
+
name?: string | null;
|
|
698
|
+
/** Body param: The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
|
|
699
|
+
outputOptions?: {
|
|
700
|
+
batchPrefix?: string | null;
|
|
701
|
+
batchSuffix?: string | null;
|
|
702
|
+
"cve-2021-44228"?: boolean | null;
|
|
703
|
+
fieldDelimiter?: string | null;
|
|
704
|
+
fieldNames?: string[];
|
|
705
|
+
outputType?: "ndjson" | "csv";
|
|
706
|
+
recordDelimiter?: string | null;
|
|
707
|
+
recordPrefix?: string | null;
|
|
708
|
+
recordSuffix?: string | null;
|
|
709
|
+
recordTemplate?: string | null;
|
|
710
|
+
sampleRate?: number | null;
|
|
711
|
+
timestampFormat?: "unixnano" | "unix" | "rfc3339";
|
|
712
|
+
} | null;
|
|
713
|
+
/** Body param: Ownership challenge token to prove destination ownership. */
|
|
714
|
+
ownershipChallenge?: string;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export const CreateJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
718
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
719
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
720
|
+
destinationConf: Schema.String,
|
|
721
|
+
dataset: Schema.optional(
|
|
722
|
+
Schema.Union([
|
|
723
|
+
Schema.Literal("access_requests"),
|
|
724
|
+
Schema.Literal("audit_logs"),
|
|
725
|
+
Schema.Literal("audit_logs_v2"),
|
|
726
|
+
Schema.Literal("biso_user_actions"),
|
|
727
|
+
Schema.Literal("casb_findings"),
|
|
728
|
+
Schema.Literal("device_posture_results"),
|
|
729
|
+
Schema.Literal("dex_application_tests"),
|
|
730
|
+
Schema.Literal("dex_device_state_events"),
|
|
731
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
732
|
+
Schema.Literal("dns_firewall_logs"),
|
|
733
|
+
Schema.Literal("dns_logs"),
|
|
734
|
+
Schema.Literal("email_security_alerts"),
|
|
735
|
+
Schema.Literal("firewall_events"),
|
|
736
|
+
Schema.Literal("gateway_dns"),
|
|
737
|
+
Schema.Literal("gateway_http"),
|
|
738
|
+
Schema.Literal("gateway_network"),
|
|
739
|
+
Schema.Literal("http_requests"),
|
|
740
|
+
Schema.Literal("ipsec_logs"),
|
|
741
|
+
Schema.Literal("magic_ids_detections"),
|
|
742
|
+
Schema.Literal("nel_reports"),
|
|
743
|
+
Schema.Literal("network_analytics_logs"),
|
|
744
|
+
Schema.Literal("page_shield_events"),
|
|
745
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
746
|
+
Schema.Literal("spectrum_events"),
|
|
747
|
+
Schema.Literal("ssh_logs"),
|
|
748
|
+
Schema.Literal("warp_config_changes"),
|
|
749
|
+
Schema.Literal("warp_toggle_changes"),
|
|
750
|
+
Schema.Literal("workers_trace_events"),
|
|
751
|
+
Schema.Literal("zaraz_events"),
|
|
752
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
753
|
+
Schema.Null,
|
|
754
|
+
]),
|
|
755
|
+
),
|
|
756
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
757
|
+
filter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
758
|
+
frequency: Schema.optional(
|
|
759
|
+
Schema.Union([Schema.Literal("high"), Schema.Literal("low"), Schema.Null]),
|
|
760
|
+
),
|
|
761
|
+
kind: Schema.optional(Schema.Literals(["", "edge"])),
|
|
762
|
+
logpullOptions: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
763
|
+
maxUploadBytes: Schema.optional(
|
|
764
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
765
|
+
),
|
|
766
|
+
maxUploadIntervalSeconds: Schema.optional(
|
|
767
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
768
|
+
),
|
|
769
|
+
maxUploadRecords: Schema.optional(
|
|
770
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
771
|
+
),
|
|
772
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
773
|
+
outputOptions: Schema.optional(
|
|
774
|
+
Schema.Union([
|
|
775
|
+
Schema.Struct({
|
|
776
|
+
batchPrefix: Schema.optional(
|
|
777
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
778
|
+
),
|
|
779
|
+
batchSuffix: Schema.optional(
|
|
780
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
781
|
+
),
|
|
782
|
+
"cve-2021-44228": Schema.optional(
|
|
783
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
784
|
+
),
|
|
785
|
+
fieldDelimiter: Schema.optional(
|
|
786
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
787
|
+
),
|
|
788
|
+
fieldNames: Schema.optional(Schema.Array(Schema.String)),
|
|
789
|
+
outputType: Schema.optional(Schema.Literals(["ndjson", "csv"])),
|
|
790
|
+
recordDelimiter: Schema.optional(
|
|
791
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
792
|
+
),
|
|
793
|
+
recordPrefix: Schema.optional(
|
|
794
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
795
|
+
),
|
|
796
|
+
recordSuffix: Schema.optional(
|
|
797
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
798
|
+
),
|
|
799
|
+
recordTemplate: Schema.optional(
|
|
800
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
801
|
+
),
|
|
802
|
+
sampleRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
803
|
+
timestampFormat: Schema.optional(
|
|
804
|
+
Schema.Literals(["unixnano", "unix", "rfc3339"]),
|
|
805
|
+
),
|
|
806
|
+
}).pipe(
|
|
807
|
+
Schema.encodeKeys({
|
|
808
|
+
batchPrefix: "batch_prefix",
|
|
809
|
+
batchSuffix: "batch_suffix",
|
|
810
|
+
"cve-2021-44228": "CVE-2021-44228",
|
|
811
|
+
fieldDelimiter: "field_delimiter",
|
|
812
|
+
fieldNames: "field_names",
|
|
813
|
+
outputType: "output_type",
|
|
814
|
+
recordDelimiter: "record_delimiter",
|
|
815
|
+
recordPrefix: "record_prefix",
|
|
816
|
+
recordSuffix: "record_suffix",
|
|
817
|
+
recordTemplate: "record_template",
|
|
818
|
+
sampleRate: "sample_rate",
|
|
819
|
+
timestampFormat: "timestamp_format",
|
|
820
|
+
}),
|
|
821
|
+
),
|
|
822
|
+
Schema.Null,
|
|
823
|
+
]),
|
|
824
|
+
),
|
|
825
|
+
ownershipChallenge: Schema.optional(Schema.String),
|
|
826
|
+
}).pipe(
|
|
827
|
+
Schema.encodeKeys({
|
|
828
|
+
destinationConf: "destination_conf",
|
|
829
|
+
dataset: "dataset",
|
|
830
|
+
enabled: "enabled",
|
|
831
|
+
filter: "filter",
|
|
832
|
+
frequency: "frequency",
|
|
833
|
+
kind: "kind",
|
|
834
|
+
logpullOptions: "logpull_options",
|
|
835
|
+
maxUploadBytes: "max_upload_bytes",
|
|
836
|
+
maxUploadIntervalSeconds: "max_upload_interval_seconds",
|
|
837
|
+
maxUploadRecords: "max_upload_records",
|
|
838
|
+
name: "name",
|
|
839
|
+
outputOptions: "output_options",
|
|
840
|
+
ownershipChallenge: "ownership_challenge",
|
|
841
|
+
}),
|
|
842
|
+
T.Http({
|
|
843
|
+
method: "POST",
|
|
844
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/jobs",
|
|
845
|
+
}),
|
|
846
|
+
) as unknown as Schema.Schema<CreateJobRequest>;
|
|
847
|
+
|
|
848
|
+
export interface CreateJobResponse {
|
|
849
|
+
/** Unique id of the job. */
|
|
850
|
+
id?: number | null;
|
|
851
|
+
/** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
|
|
852
|
+
dataset?:
|
|
853
|
+
| "access_requests"
|
|
854
|
+
| "audit_logs"
|
|
855
|
+
| "audit_logs_v2"
|
|
856
|
+
| "biso_user_actions"
|
|
857
|
+
| "casb_findings"
|
|
858
|
+
| "device_posture_results"
|
|
859
|
+
| "dex_application_tests"
|
|
860
|
+
| "dex_device_state_events"
|
|
861
|
+
| "dlp_forensic_copies"
|
|
862
|
+
| "dns_firewall_logs"
|
|
863
|
+
| "dns_logs"
|
|
864
|
+
| "email_security_alerts"
|
|
865
|
+
| "firewall_events"
|
|
866
|
+
| "gateway_dns"
|
|
867
|
+
| "gateway_http"
|
|
868
|
+
| "gateway_network"
|
|
869
|
+
| "http_requests"
|
|
870
|
+
| "ipsec_logs"
|
|
871
|
+
| "magic_ids_detections"
|
|
872
|
+
| "nel_reports"
|
|
873
|
+
| "network_analytics_logs"
|
|
874
|
+
| "page_shield_events"
|
|
875
|
+
| "sinkhole_http_logs"
|
|
876
|
+
| "spectrum_events"
|
|
877
|
+
| "ssh_logs"
|
|
878
|
+
| "warp_config_changes"
|
|
879
|
+
| "warp_toggle_changes"
|
|
880
|
+
| "workers_trace_events"
|
|
881
|
+
| "zaraz_events"
|
|
882
|
+
| "zero_trust_network_sessions"
|
|
883
|
+
| null;
|
|
884
|
+
/** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
885
|
+
destinationConf?: string | null;
|
|
886
|
+
/** Flag that indicates if the job is enabled. */
|
|
887
|
+
enabled?: boolean | null;
|
|
888
|
+
/** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
|
|
889
|
+
errorMessage?: string | null;
|
|
890
|
+
/** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your */
|
|
891
|
+
frequency?: "high" | "low" | null;
|
|
892
|
+
/** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
|
|
893
|
+
kind?: "" | "edge" | null;
|
|
894
|
+
/** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
|
|
895
|
+
lastComplete?: string | null;
|
|
896
|
+
/** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
|
|
897
|
+
lastError?: string | null;
|
|
898
|
+
/** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
|
|
899
|
+
logpullOptions?: string | null;
|
|
900
|
+
/** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
|
|
901
|
+
maxUploadBytes?: "0" | number | null;
|
|
902
|
+
/** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
|
|
903
|
+
maxUploadIntervalSeconds?: "0" | number | null;
|
|
904
|
+
/** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
|
|
905
|
+
maxUploadRecords?: "0" | number | null;
|
|
906
|
+
/** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
|
|
907
|
+
name?: string | null;
|
|
908
|
+
/** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
|
|
909
|
+
outputOptions?: {
|
|
910
|
+
batchPrefix?: string | null;
|
|
911
|
+
batchSuffix?: string | null;
|
|
912
|
+
"cve-2021-44228"?: boolean | null;
|
|
913
|
+
fieldDelimiter?: string | null;
|
|
914
|
+
fieldNames?: string[] | null;
|
|
915
|
+
outputType?: "ndjson" | "csv" | null;
|
|
916
|
+
recordDelimiter?: string | null;
|
|
917
|
+
recordPrefix?: string | null;
|
|
918
|
+
recordSuffix?: string | null;
|
|
919
|
+
recordTemplate?: string | null;
|
|
920
|
+
sampleRate?: number | null;
|
|
921
|
+
timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
|
|
922
|
+
} | null;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export const CreateJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
926
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
927
|
+
dataset: Schema.optional(
|
|
928
|
+
Schema.Union([
|
|
929
|
+
Schema.Literal("access_requests"),
|
|
930
|
+
Schema.Literal("audit_logs"),
|
|
931
|
+
Schema.Literal("audit_logs_v2"),
|
|
932
|
+
Schema.Literal("biso_user_actions"),
|
|
933
|
+
Schema.Literal("casb_findings"),
|
|
934
|
+
Schema.Literal("device_posture_results"),
|
|
935
|
+
Schema.Literal("dex_application_tests"),
|
|
936
|
+
Schema.Literal("dex_device_state_events"),
|
|
937
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
938
|
+
Schema.Literal("dns_firewall_logs"),
|
|
939
|
+
Schema.Literal("dns_logs"),
|
|
940
|
+
Schema.Literal("email_security_alerts"),
|
|
941
|
+
Schema.Literal("firewall_events"),
|
|
942
|
+
Schema.Literal("gateway_dns"),
|
|
943
|
+
Schema.Literal("gateway_http"),
|
|
944
|
+
Schema.Literal("gateway_network"),
|
|
945
|
+
Schema.Literal("http_requests"),
|
|
946
|
+
Schema.Literal("ipsec_logs"),
|
|
947
|
+
Schema.Literal("magic_ids_detections"),
|
|
948
|
+
Schema.Literal("nel_reports"),
|
|
949
|
+
Schema.Literal("network_analytics_logs"),
|
|
950
|
+
Schema.Literal("page_shield_events"),
|
|
951
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
952
|
+
Schema.Literal("spectrum_events"),
|
|
953
|
+
Schema.Literal("ssh_logs"),
|
|
954
|
+
Schema.Literal("warp_config_changes"),
|
|
955
|
+
Schema.Literal("warp_toggle_changes"),
|
|
956
|
+
Schema.Literal("workers_trace_events"),
|
|
957
|
+
Schema.Literal("zaraz_events"),
|
|
958
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
959
|
+
Schema.Null,
|
|
960
|
+
]),
|
|
961
|
+
),
|
|
962
|
+
destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
963
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
964
|
+
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
965
|
+
frequency: Schema.optional(
|
|
966
|
+
Schema.Union([Schema.Literal("high"), Schema.Literal("low"), Schema.Null]),
|
|
967
|
+
),
|
|
968
|
+
kind: Schema.optional(
|
|
969
|
+
Schema.Union([Schema.Literals(["", "edge"]), Schema.Null]),
|
|
970
|
+
),
|
|
971
|
+
lastComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
972
|
+
lastError: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
973
|
+
logpullOptions: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
974
|
+
maxUploadBytes: Schema.optional(
|
|
975
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
976
|
+
),
|
|
977
|
+
maxUploadIntervalSeconds: Schema.optional(
|
|
978
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
979
|
+
),
|
|
980
|
+
maxUploadRecords: Schema.optional(
|
|
981
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
982
|
+
),
|
|
983
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
984
|
+
outputOptions: Schema.optional(
|
|
985
|
+
Schema.Union([
|
|
986
|
+
Schema.Struct({
|
|
987
|
+
batchPrefix: Schema.optional(
|
|
988
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
989
|
+
),
|
|
990
|
+
batchSuffix: Schema.optional(
|
|
991
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
992
|
+
),
|
|
993
|
+
"cve-2021-44228": Schema.optional(
|
|
994
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
995
|
+
),
|
|
996
|
+
fieldDelimiter: Schema.optional(
|
|
997
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
998
|
+
),
|
|
999
|
+
fieldNames: Schema.optional(
|
|
1000
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1001
|
+
),
|
|
1002
|
+
outputType: Schema.optional(
|
|
1003
|
+
Schema.Union([Schema.Literals(["ndjson", "csv"]), Schema.Null]),
|
|
1004
|
+
),
|
|
1005
|
+
recordDelimiter: Schema.optional(
|
|
1006
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1007
|
+
),
|
|
1008
|
+
recordPrefix: Schema.optional(
|
|
1009
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1010
|
+
),
|
|
1011
|
+
recordSuffix: Schema.optional(
|
|
1012
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1013
|
+
),
|
|
1014
|
+
recordTemplate: Schema.optional(
|
|
1015
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1016
|
+
),
|
|
1017
|
+
sampleRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1018
|
+
timestampFormat: Schema.optional(
|
|
1019
|
+
Schema.Union([
|
|
1020
|
+
Schema.Literals(["unixnano", "unix", "rfc3339"]),
|
|
1021
|
+
Schema.Null,
|
|
1022
|
+
]),
|
|
1023
|
+
),
|
|
1024
|
+
}).pipe(
|
|
1025
|
+
Schema.encodeKeys({
|
|
1026
|
+
batchPrefix: "batch_prefix",
|
|
1027
|
+
batchSuffix: "batch_suffix",
|
|
1028
|
+
"cve-2021-44228": "CVE-2021-44228",
|
|
1029
|
+
fieldDelimiter: "field_delimiter",
|
|
1030
|
+
fieldNames: "field_names",
|
|
1031
|
+
outputType: "output_type",
|
|
1032
|
+
recordDelimiter: "record_delimiter",
|
|
1033
|
+
recordPrefix: "record_prefix",
|
|
1034
|
+
recordSuffix: "record_suffix",
|
|
1035
|
+
recordTemplate: "record_template",
|
|
1036
|
+
sampleRate: "sample_rate",
|
|
1037
|
+
timestampFormat: "timestamp_format",
|
|
1038
|
+
}),
|
|
1039
|
+
),
|
|
1040
|
+
Schema.Null,
|
|
1041
|
+
]),
|
|
1042
|
+
),
|
|
1043
|
+
})
|
|
1044
|
+
.pipe(
|
|
1045
|
+
Schema.encodeKeys({
|
|
1046
|
+
id: "id",
|
|
1047
|
+
dataset: "dataset",
|
|
1048
|
+
destinationConf: "destination_conf",
|
|
1049
|
+
enabled: "enabled",
|
|
1050
|
+
errorMessage: "error_message",
|
|
1051
|
+
frequency: "frequency",
|
|
1052
|
+
kind: "kind",
|
|
1053
|
+
lastComplete: "last_complete",
|
|
1054
|
+
lastError: "last_error",
|
|
1055
|
+
logpullOptions: "logpull_options",
|
|
1056
|
+
maxUploadBytes: "max_upload_bytes",
|
|
1057
|
+
maxUploadIntervalSeconds: "max_upload_interval_seconds",
|
|
1058
|
+
maxUploadRecords: "max_upload_records",
|
|
1059
|
+
name: "name",
|
|
1060
|
+
outputOptions: "output_options",
|
|
1061
|
+
}),
|
|
1062
|
+
)
|
|
1063
|
+
.pipe(
|
|
1064
|
+
T.ResponsePath("result"),
|
|
1065
|
+
) as unknown as Schema.Schema<CreateJobResponse>;
|
|
1066
|
+
|
|
1067
|
+
export type CreateJobError = DefaultErrors;
|
|
1068
|
+
|
|
1069
|
+
export const createJob: API.OperationMethod<
|
|
1070
|
+
CreateJobRequest,
|
|
1071
|
+
CreateJobResponse,
|
|
1072
|
+
CreateJobError,
|
|
1073
|
+
Credentials | HttpClient.HttpClient
|
|
1074
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1075
|
+
input: CreateJobRequest,
|
|
1076
|
+
output: CreateJobResponse,
|
|
1077
|
+
errors: [],
|
|
1078
|
+
}));
|
|
1079
|
+
|
|
1080
|
+
export interface UpdateJobRequest {
|
|
1081
|
+
jobId: number;
|
|
1082
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
1083
|
+
accountId?: string;
|
|
1084
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
1085
|
+
zoneId?: string;
|
|
1086
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
1087
|
+
destinationConf?: string;
|
|
1088
|
+
/** Body param: Flag that indicates if the job is enabled. */
|
|
1089
|
+
enabled?: boolean;
|
|
1090
|
+
/** Body param: The filters to select the events to include and/or remove from your logs. For more information, refer to [Filters](https://developers.cloudflare.com/logs/reference/filters/). */
|
|
1091
|
+
filter?: string | null;
|
|
1092
|
+
/** @deprecated Body param: This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high */
|
|
1093
|
+
frequency?: "high" | "low" | null;
|
|
1094
|
+
/** Body param: The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
|
|
1095
|
+
kind?: "" | "edge";
|
|
1096
|
+
/** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
|
|
1097
|
+
logpullOptions?: string | null;
|
|
1098
|
+
/** Body param: The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means */
|
|
1099
|
+
maxUploadBytes?: "0" | number | null;
|
|
1100
|
+
/** Body param: The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log */
|
|
1101
|
+
maxUploadIntervalSeconds?: "0" | number | null;
|
|
1102
|
+
/** Body param: The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch */
|
|
1103
|
+
maxUploadRecords?: "0" | number | null;
|
|
1104
|
+
/** Body param: Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
|
|
1105
|
+
name?: string | null;
|
|
1106
|
+
/** Body param: The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
|
|
1107
|
+
outputOptions?: {
|
|
1108
|
+
batchPrefix?: string | null;
|
|
1109
|
+
batchSuffix?: string | null;
|
|
1110
|
+
"cve-2021-44228"?: boolean | null;
|
|
1111
|
+
fieldDelimiter?: string | null;
|
|
1112
|
+
fieldNames?: string[];
|
|
1113
|
+
outputType?: "ndjson" | "csv";
|
|
1114
|
+
recordDelimiter?: string | null;
|
|
1115
|
+
recordPrefix?: string | null;
|
|
1116
|
+
recordSuffix?: string | null;
|
|
1117
|
+
recordTemplate?: string | null;
|
|
1118
|
+
sampleRate?: number | null;
|
|
1119
|
+
timestampFormat?: "unixnano" | "unix" | "rfc3339";
|
|
1120
|
+
} | null;
|
|
1121
|
+
/** Body param: Ownership challenge token to prove destination ownership. */
|
|
1122
|
+
ownershipChallenge?: string;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export const UpdateJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1126
|
+
jobId: Schema.Number.pipe(T.HttpPath("jobId")),
|
|
1127
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1128
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1129
|
+
destinationConf: Schema.optional(Schema.String),
|
|
1130
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
1131
|
+
filter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1132
|
+
frequency: Schema.optional(
|
|
1133
|
+
Schema.Union([Schema.Literal("high"), Schema.Literal("low"), Schema.Null]),
|
|
1134
|
+
),
|
|
1135
|
+
kind: Schema.optional(Schema.Literals(["", "edge"])),
|
|
1136
|
+
logpullOptions: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1137
|
+
maxUploadBytes: Schema.optional(
|
|
1138
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1139
|
+
),
|
|
1140
|
+
maxUploadIntervalSeconds: Schema.optional(
|
|
1141
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1142
|
+
),
|
|
1143
|
+
maxUploadRecords: Schema.optional(
|
|
1144
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1145
|
+
),
|
|
1146
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1147
|
+
outputOptions: Schema.optional(
|
|
1148
|
+
Schema.Union([
|
|
1149
|
+
Schema.Struct({
|
|
1150
|
+
batchPrefix: Schema.optional(
|
|
1151
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1152
|
+
),
|
|
1153
|
+
batchSuffix: Schema.optional(
|
|
1154
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1155
|
+
),
|
|
1156
|
+
"cve-2021-44228": Schema.optional(
|
|
1157
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1158
|
+
),
|
|
1159
|
+
fieldDelimiter: Schema.optional(
|
|
1160
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1161
|
+
),
|
|
1162
|
+
fieldNames: Schema.optional(Schema.Array(Schema.String)),
|
|
1163
|
+
outputType: Schema.optional(Schema.Literals(["ndjson", "csv"])),
|
|
1164
|
+
recordDelimiter: Schema.optional(
|
|
1165
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1166
|
+
),
|
|
1167
|
+
recordPrefix: Schema.optional(
|
|
1168
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1169
|
+
),
|
|
1170
|
+
recordSuffix: Schema.optional(
|
|
1171
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1172
|
+
),
|
|
1173
|
+
recordTemplate: Schema.optional(
|
|
1174
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1175
|
+
),
|
|
1176
|
+
sampleRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1177
|
+
timestampFormat: Schema.optional(
|
|
1178
|
+
Schema.Literals(["unixnano", "unix", "rfc3339"]),
|
|
1179
|
+
),
|
|
1180
|
+
}).pipe(
|
|
1181
|
+
Schema.encodeKeys({
|
|
1182
|
+
batchPrefix: "batch_prefix",
|
|
1183
|
+
batchSuffix: "batch_suffix",
|
|
1184
|
+
"cve-2021-44228": "CVE-2021-44228",
|
|
1185
|
+
fieldDelimiter: "field_delimiter",
|
|
1186
|
+
fieldNames: "field_names",
|
|
1187
|
+
outputType: "output_type",
|
|
1188
|
+
recordDelimiter: "record_delimiter",
|
|
1189
|
+
recordPrefix: "record_prefix",
|
|
1190
|
+
recordSuffix: "record_suffix",
|
|
1191
|
+
recordTemplate: "record_template",
|
|
1192
|
+
sampleRate: "sample_rate",
|
|
1193
|
+
timestampFormat: "timestamp_format",
|
|
1194
|
+
}),
|
|
1195
|
+
),
|
|
1196
|
+
Schema.Null,
|
|
1197
|
+
]),
|
|
1198
|
+
),
|
|
1199
|
+
ownershipChallenge: Schema.optional(Schema.String),
|
|
1200
|
+
}).pipe(
|
|
1201
|
+
Schema.encodeKeys({
|
|
1202
|
+
destinationConf: "destination_conf",
|
|
1203
|
+
enabled: "enabled",
|
|
1204
|
+
filter: "filter",
|
|
1205
|
+
frequency: "frequency",
|
|
1206
|
+
kind: "kind",
|
|
1207
|
+
logpullOptions: "logpull_options",
|
|
1208
|
+
maxUploadBytes: "max_upload_bytes",
|
|
1209
|
+
maxUploadIntervalSeconds: "max_upload_interval_seconds",
|
|
1210
|
+
maxUploadRecords: "max_upload_records",
|
|
1211
|
+
name: "name",
|
|
1212
|
+
outputOptions: "output_options",
|
|
1213
|
+
ownershipChallenge: "ownership_challenge",
|
|
1214
|
+
}),
|
|
1215
|
+
T.Http({
|
|
1216
|
+
method: "PUT",
|
|
1217
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/jobs/{jobId}",
|
|
1218
|
+
}),
|
|
1219
|
+
) as unknown as Schema.Schema<UpdateJobRequest>;
|
|
1220
|
+
|
|
1221
|
+
export interface UpdateJobResponse {
|
|
1222
|
+
/** Unique id of the job. */
|
|
1223
|
+
id?: number | null;
|
|
1224
|
+
/** Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/). */
|
|
1225
|
+
dataset?:
|
|
1226
|
+
| "access_requests"
|
|
1227
|
+
| "audit_logs"
|
|
1228
|
+
| "audit_logs_v2"
|
|
1229
|
+
| "biso_user_actions"
|
|
1230
|
+
| "casb_findings"
|
|
1231
|
+
| "device_posture_results"
|
|
1232
|
+
| "dex_application_tests"
|
|
1233
|
+
| "dex_device_state_events"
|
|
1234
|
+
| "dlp_forensic_copies"
|
|
1235
|
+
| "dns_firewall_logs"
|
|
1236
|
+
| "dns_logs"
|
|
1237
|
+
| "email_security_alerts"
|
|
1238
|
+
| "firewall_events"
|
|
1239
|
+
| "gateway_dns"
|
|
1240
|
+
| "gateway_http"
|
|
1241
|
+
| "gateway_network"
|
|
1242
|
+
| "http_requests"
|
|
1243
|
+
| "ipsec_logs"
|
|
1244
|
+
| "magic_ids_detections"
|
|
1245
|
+
| "nel_reports"
|
|
1246
|
+
| "network_analytics_logs"
|
|
1247
|
+
| "page_shield_events"
|
|
1248
|
+
| "sinkhole_http_logs"
|
|
1249
|
+
| "spectrum_events"
|
|
1250
|
+
| "ssh_logs"
|
|
1251
|
+
| "warp_config_changes"
|
|
1252
|
+
| "warp_toggle_changes"
|
|
1253
|
+
| "workers_trace_events"
|
|
1254
|
+
| "zaraz_events"
|
|
1255
|
+
| "zero_trust_network_sessions"
|
|
1256
|
+
| null;
|
|
1257
|
+
/** Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
1258
|
+
destinationConf?: string | null;
|
|
1259
|
+
/** Flag that indicates if the job is enabled. */
|
|
1260
|
+
enabled?: boolean | null;
|
|
1261
|
+
/** If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a jo */
|
|
1262
|
+
errorMessage?: string | null;
|
|
1263
|
+
/** @deprecated This field is deprecated. Please use `max_upload_ ` parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your */
|
|
1264
|
+
frequency?: "high" | "low" | null;
|
|
1265
|
+
/** The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset). */
|
|
1266
|
+
kind?: "" | "edge" | null;
|
|
1267
|
+
/** Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 201 */
|
|
1268
|
+
lastComplete?: string | null;
|
|
1269
|
+
/** Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error_ */
|
|
1270
|
+
lastError?: string | null;
|
|
1271
|
+
/** @deprecated This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the u */
|
|
1272
|
+
logpullOptions?: string | null;
|
|
1273
|
+
/** The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a minimum file size; this means that log fil */
|
|
1274
|
+
maxUploadBytes?: "0" | number | null;
|
|
1275
|
+
/** The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify a minimum interval for log batches; thi */
|
|
1276
|
+
maxUploadIntervalSeconds?: "0" | number | null;
|
|
1277
|
+
/** The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum number of log lines per batch; this means */
|
|
1278
|
+
maxUploadRecords?: "0" | number | null;
|
|
1279
|
+
/** Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job. */
|
|
1280
|
+
name?: string | null;
|
|
1281
|
+
/** The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored. */
|
|
1282
|
+
outputOptions?: {
|
|
1283
|
+
batchPrefix?: string | null;
|
|
1284
|
+
batchSuffix?: string | null;
|
|
1285
|
+
"cve-2021-44228"?: boolean | null;
|
|
1286
|
+
fieldDelimiter?: string | null;
|
|
1287
|
+
fieldNames?: string[] | null;
|
|
1288
|
+
outputType?: "ndjson" | "csv" | null;
|
|
1289
|
+
recordDelimiter?: string | null;
|
|
1290
|
+
recordPrefix?: string | null;
|
|
1291
|
+
recordSuffix?: string | null;
|
|
1292
|
+
recordTemplate?: string | null;
|
|
1293
|
+
sampleRate?: number | null;
|
|
1294
|
+
timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
|
|
1295
|
+
} | null;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
export const UpdateJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1299
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1300
|
+
dataset: Schema.optional(
|
|
1301
|
+
Schema.Union([
|
|
1302
|
+
Schema.Literal("access_requests"),
|
|
1303
|
+
Schema.Literal("audit_logs"),
|
|
1304
|
+
Schema.Literal("audit_logs_v2"),
|
|
1305
|
+
Schema.Literal("biso_user_actions"),
|
|
1306
|
+
Schema.Literal("casb_findings"),
|
|
1307
|
+
Schema.Literal("device_posture_results"),
|
|
1308
|
+
Schema.Literal("dex_application_tests"),
|
|
1309
|
+
Schema.Literal("dex_device_state_events"),
|
|
1310
|
+
Schema.Literal("dlp_forensic_copies"),
|
|
1311
|
+
Schema.Literal("dns_firewall_logs"),
|
|
1312
|
+
Schema.Literal("dns_logs"),
|
|
1313
|
+
Schema.Literal("email_security_alerts"),
|
|
1314
|
+
Schema.Literal("firewall_events"),
|
|
1315
|
+
Schema.Literal("gateway_dns"),
|
|
1316
|
+
Schema.Literal("gateway_http"),
|
|
1317
|
+
Schema.Literal("gateway_network"),
|
|
1318
|
+
Schema.Literal("http_requests"),
|
|
1319
|
+
Schema.Literal("ipsec_logs"),
|
|
1320
|
+
Schema.Literal("magic_ids_detections"),
|
|
1321
|
+
Schema.Literal("nel_reports"),
|
|
1322
|
+
Schema.Literal("network_analytics_logs"),
|
|
1323
|
+
Schema.Literal("page_shield_events"),
|
|
1324
|
+
Schema.Literal("sinkhole_http_logs"),
|
|
1325
|
+
Schema.Literal("spectrum_events"),
|
|
1326
|
+
Schema.Literal("ssh_logs"),
|
|
1327
|
+
Schema.Literal("warp_config_changes"),
|
|
1328
|
+
Schema.Literal("warp_toggle_changes"),
|
|
1329
|
+
Schema.Literal("workers_trace_events"),
|
|
1330
|
+
Schema.Literal("zaraz_events"),
|
|
1331
|
+
Schema.Literal("zero_trust_network_sessions"),
|
|
1332
|
+
Schema.Null,
|
|
1333
|
+
]),
|
|
1334
|
+
),
|
|
1335
|
+
destinationConf: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1336
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1337
|
+
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1338
|
+
frequency: Schema.optional(
|
|
1339
|
+
Schema.Union([Schema.Literal("high"), Schema.Literal("low"), Schema.Null]),
|
|
1340
|
+
),
|
|
1341
|
+
kind: Schema.optional(
|
|
1342
|
+
Schema.Union([Schema.Literals(["", "edge"]), Schema.Null]),
|
|
1343
|
+
),
|
|
1344
|
+
lastComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1345
|
+
lastError: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1346
|
+
logpullOptions: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1347
|
+
maxUploadBytes: Schema.optional(
|
|
1348
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1349
|
+
),
|
|
1350
|
+
maxUploadIntervalSeconds: Schema.optional(
|
|
1351
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1352
|
+
),
|
|
1353
|
+
maxUploadRecords: Schema.optional(
|
|
1354
|
+
Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
|
|
1355
|
+
),
|
|
1356
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1357
|
+
outputOptions: Schema.optional(
|
|
1358
|
+
Schema.Union([
|
|
1359
|
+
Schema.Struct({
|
|
1360
|
+
batchPrefix: Schema.optional(
|
|
1361
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1362
|
+
),
|
|
1363
|
+
batchSuffix: Schema.optional(
|
|
1364
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1365
|
+
),
|
|
1366
|
+
"cve-2021-44228": Schema.optional(
|
|
1367
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1368
|
+
),
|
|
1369
|
+
fieldDelimiter: Schema.optional(
|
|
1370
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1371
|
+
),
|
|
1372
|
+
fieldNames: Schema.optional(
|
|
1373
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1374
|
+
),
|
|
1375
|
+
outputType: Schema.optional(
|
|
1376
|
+
Schema.Union([Schema.Literals(["ndjson", "csv"]), Schema.Null]),
|
|
1377
|
+
),
|
|
1378
|
+
recordDelimiter: Schema.optional(
|
|
1379
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1380
|
+
),
|
|
1381
|
+
recordPrefix: Schema.optional(
|
|
1382
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1383
|
+
),
|
|
1384
|
+
recordSuffix: Schema.optional(
|
|
1385
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1386
|
+
),
|
|
1387
|
+
recordTemplate: Schema.optional(
|
|
1388
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1389
|
+
),
|
|
1390
|
+
sampleRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1391
|
+
timestampFormat: Schema.optional(
|
|
1392
|
+
Schema.Union([
|
|
1393
|
+
Schema.Literals(["unixnano", "unix", "rfc3339"]),
|
|
1394
|
+
Schema.Null,
|
|
1395
|
+
]),
|
|
1396
|
+
),
|
|
1397
|
+
}).pipe(
|
|
1398
|
+
Schema.encodeKeys({
|
|
1399
|
+
batchPrefix: "batch_prefix",
|
|
1400
|
+
batchSuffix: "batch_suffix",
|
|
1401
|
+
"cve-2021-44228": "CVE-2021-44228",
|
|
1402
|
+
fieldDelimiter: "field_delimiter",
|
|
1403
|
+
fieldNames: "field_names",
|
|
1404
|
+
outputType: "output_type",
|
|
1405
|
+
recordDelimiter: "record_delimiter",
|
|
1406
|
+
recordPrefix: "record_prefix",
|
|
1407
|
+
recordSuffix: "record_suffix",
|
|
1408
|
+
recordTemplate: "record_template",
|
|
1409
|
+
sampleRate: "sample_rate",
|
|
1410
|
+
timestampFormat: "timestamp_format",
|
|
1411
|
+
}),
|
|
1412
|
+
),
|
|
1413
|
+
Schema.Null,
|
|
1414
|
+
]),
|
|
1415
|
+
),
|
|
1416
|
+
})
|
|
1417
|
+
.pipe(
|
|
1418
|
+
Schema.encodeKeys({
|
|
1419
|
+
id: "id",
|
|
1420
|
+
dataset: "dataset",
|
|
1421
|
+
destinationConf: "destination_conf",
|
|
1422
|
+
enabled: "enabled",
|
|
1423
|
+
errorMessage: "error_message",
|
|
1424
|
+
frequency: "frequency",
|
|
1425
|
+
kind: "kind",
|
|
1426
|
+
lastComplete: "last_complete",
|
|
1427
|
+
lastError: "last_error",
|
|
1428
|
+
logpullOptions: "logpull_options",
|
|
1429
|
+
maxUploadBytes: "max_upload_bytes",
|
|
1430
|
+
maxUploadIntervalSeconds: "max_upload_interval_seconds",
|
|
1431
|
+
maxUploadRecords: "max_upload_records",
|
|
1432
|
+
name: "name",
|
|
1433
|
+
outputOptions: "output_options",
|
|
1434
|
+
}),
|
|
1435
|
+
)
|
|
1436
|
+
.pipe(
|
|
1437
|
+
T.ResponsePath("result"),
|
|
1438
|
+
) as unknown as Schema.Schema<UpdateJobResponse>;
|
|
1439
|
+
|
|
1440
|
+
export type UpdateJobError = DefaultErrors;
|
|
1441
|
+
|
|
1442
|
+
export const updateJob: API.OperationMethod<
|
|
1443
|
+
UpdateJobRequest,
|
|
1444
|
+
UpdateJobResponse,
|
|
1445
|
+
UpdateJobError,
|
|
1446
|
+
Credentials | HttpClient.HttpClient
|
|
1447
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1448
|
+
input: UpdateJobRequest,
|
|
1449
|
+
output: UpdateJobResponse,
|
|
1450
|
+
errors: [],
|
|
1451
|
+
}));
|
|
1452
|
+
|
|
1453
|
+
export interface DeleteJobRequest {
|
|
1454
|
+
jobId: number;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
export const DeleteJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1458
|
+
jobId: Schema.Number.pipe(T.HttpPath("jobId")),
|
|
1459
|
+
}).pipe(
|
|
1460
|
+
T.Http({
|
|
1461
|
+
method: "DELETE",
|
|
1462
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/jobs/{jobId}",
|
|
1463
|
+
}),
|
|
1464
|
+
) as unknown as Schema.Schema<DeleteJobRequest>;
|
|
1465
|
+
|
|
1466
|
+
export interface DeleteJobResponse {
|
|
1467
|
+
/** Unique id of the job. */
|
|
1468
|
+
id?: number | null;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
export const DeleteJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1472
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1473
|
+
}).pipe(
|
|
1474
|
+
T.ResponsePath("result"),
|
|
1475
|
+
) as unknown as Schema.Schema<DeleteJobResponse>;
|
|
1476
|
+
|
|
1477
|
+
export type DeleteJobError = DefaultErrors;
|
|
1478
|
+
|
|
1479
|
+
export const deleteJob: API.OperationMethod<
|
|
1480
|
+
DeleteJobRequest,
|
|
1481
|
+
DeleteJobResponse,
|
|
1482
|
+
DeleteJobError,
|
|
1483
|
+
Credentials | HttpClient.HttpClient
|
|
1484
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1485
|
+
input: DeleteJobRequest,
|
|
1486
|
+
output: DeleteJobResponse,
|
|
1487
|
+
errors: [],
|
|
1488
|
+
}));
|
|
1489
|
+
|
|
1490
|
+
// =============================================================================
|
|
1491
|
+
// Ownership
|
|
1492
|
+
// =============================================================================
|
|
1493
|
+
|
|
1494
|
+
export interface CreateOwnershipRequest {
|
|
1495
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
1496
|
+
accountId?: string;
|
|
1497
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
1498
|
+
zoneId?: string;
|
|
1499
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
1500
|
+
destinationConf: string;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
export const CreateOwnershipRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1504
|
+
{
|
|
1505
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1506
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1507
|
+
destinationConf: Schema.String,
|
|
1508
|
+
},
|
|
1509
|
+
).pipe(
|
|
1510
|
+
Schema.encodeKeys({ destinationConf: "destination_conf" }),
|
|
1511
|
+
T.Http({
|
|
1512
|
+
method: "POST",
|
|
1513
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/ownership",
|
|
1514
|
+
}),
|
|
1515
|
+
) as unknown as Schema.Schema<CreateOwnershipRequest>;
|
|
1516
|
+
|
|
1517
|
+
export interface CreateOwnershipResponse {
|
|
1518
|
+
filename?: string | null;
|
|
1519
|
+
message?: string | null;
|
|
1520
|
+
valid?: boolean | null;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export const CreateOwnershipResponse =
|
|
1524
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1525
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1526
|
+
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1527
|
+
valid: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1528
|
+
}).pipe(
|
|
1529
|
+
T.ResponsePath("result"),
|
|
1530
|
+
) as unknown as Schema.Schema<CreateOwnershipResponse>;
|
|
1531
|
+
|
|
1532
|
+
export type CreateOwnershipError = DefaultErrors;
|
|
1533
|
+
|
|
1534
|
+
export const createOwnership: API.OperationMethod<
|
|
1535
|
+
CreateOwnershipRequest,
|
|
1536
|
+
CreateOwnershipResponse,
|
|
1537
|
+
CreateOwnershipError,
|
|
1538
|
+
Credentials | HttpClient.HttpClient
|
|
1539
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1540
|
+
input: CreateOwnershipRequest,
|
|
1541
|
+
output: CreateOwnershipResponse,
|
|
1542
|
+
errors: [],
|
|
1543
|
+
}));
|
|
1544
|
+
|
|
1545
|
+
export interface ValidateOwnershipRequest {
|
|
1546
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
1547
|
+
accountId?: string;
|
|
1548
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
1549
|
+
zoneId?: string;
|
|
1550
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
1551
|
+
destinationConf: string;
|
|
1552
|
+
/** Body param: Ownership challenge token to prove destination ownership. */
|
|
1553
|
+
ownershipChallenge: string;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export const ValidateOwnershipRequest =
|
|
1557
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1558
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1559
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1560
|
+
destinationConf: Schema.String,
|
|
1561
|
+
ownershipChallenge: Schema.String,
|
|
1562
|
+
}).pipe(
|
|
1563
|
+
Schema.encodeKeys({
|
|
1564
|
+
destinationConf: "destination_conf",
|
|
1565
|
+
ownershipChallenge: "ownership_challenge",
|
|
1566
|
+
}),
|
|
1567
|
+
T.Http({
|
|
1568
|
+
method: "POST",
|
|
1569
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/ownership/validate",
|
|
1570
|
+
}),
|
|
1571
|
+
) as unknown as Schema.Schema<ValidateOwnershipRequest>;
|
|
1572
|
+
|
|
1573
|
+
export interface ValidateOwnershipResponse {
|
|
1574
|
+
valid?: boolean | null;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
export const ValidateOwnershipResponse =
|
|
1578
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1579
|
+
valid: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1580
|
+
}).pipe(
|
|
1581
|
+
T.ResponsePath("result"),
|
|
1582
|
+
) as unknown as Schema.Schema<ValidateOwnershipResponse>;
|
|
1583
|
+
|
|
1584
|
+
export type ValidateOwnershipError = DefaultErrors;
|
|
1585
|
+
|
|
1586
|
+
export const validateOwnership: API.OperationMethod<
|
|
1587
|
+
ValidateOwnershipRequest,
|
|
1588
|
+
ValidateOwnershipResponse,
|
|
1589
|
+
ValidateOwnershipError,
|
|
1590
|
+
Credentials | HttpClient.HttpClient
|
|
1591
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1592
|
+
input: ValidateOwnershipRequest,
|
|
1593
|
+
output: ValidateOwnershipResponse,
|
|
1594
|
+
errors: [],
|
|
1595
|
+
}));
|
|
1596
|
+
|
|
1597
|
+
// =============================================================================
|
|
1598
|
+
// Validate
|
|
1599
|
+
// =============================================================================
|
|
1600
|
+
|
|
1601
|
+
export interface DestinationValidateRequest {
|
|
1602
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
1603
|
+
accountId?: string;
|
|
1604
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
1605
|
+
zoneId?: string;
|
|
1606
|
+
/** Body param: Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included. */
|
|
1607
|
+
destinationConf: string;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
export const DestinationValidateRequest =
|
|
1611
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1612
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1613
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1614
|
+
destinationConf: Schema.String,
|
|
1615
|
+
}).pipe(
|
|
1616
|
+
Schema.encodeKeys({ destinationConf: "destination_conf" }),
|
|
1617
|
+
T.Http({
|
|
1618
|
+
method: "POST",
|
|
1619
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/validate/destination",
|
|
1620
|
+
}),
|
|
1621
|
+
) as unknown as Schema.Schema<DestinationValidateRequest>;
|
|
1622
|
+
|
|
1623
|
+
export interface DestinationValidateResponse {
|
|
1624
|
+
message?: string | null;
|
|
1625
|
+
valid?: boolean | null;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
export const DestinationValidateResponse =
|
|
1629
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1630
|
+
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1631
|
+
valid: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1632
|
+
}).pipe(
|
|
1633
|
+
T.ResponsePath("result"),
|
|
1634
|
+
) as unknown as Schema.Schema<DestinationValidateResponse>;
|
|
1635
|
+
|
|
1636
|
+
export type DestinationValidateError = DefaultErrors;
|
|
1637
|
+
|
|
1638
|
+
export const destinationValidate: API.OperationMethod<
|
|
1639
|
+
DestinationValidateRequest,
|
|
1640
|
+
DestinationValidateResponse,
|
|
1641
|
+
DestinationValidateError,
|
|
1642
|
+
Credentials | HttpClient.HttpClient
|
|
1643
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1644
|
+
input: DestinationValidateRequest,
|
|
1645
|
+
output: DestinationValidateResponse,
|
|
1646
|
+
errors: [],
|
|
1647
|
+
}));
|
|
1648
|
+
|
|
1649
|
+
export interface OriginValidateRequest {
|
|
1650
|
+
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
1651
|
+
accountId?: string;
|
|
1652
|
+
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
1653
|
+
zoneId?: string;
|
|
1654
|
+
/** @deprecated Body param: This field is deprecated. Use `output_options` instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api */
|
|
1655
|
+
logpullOptions: string | null;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
export const OriginValidateRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1659
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1660
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1661
|
+
logpullOptions: Schema.Union([Schema.String, Schema.Null]),
|
|
1662
|
+
}).pipe(
|
|
1663
|
+
Schema.encodeKeys({ logpullOptions: "logpull_options" }),
|
|
1664
|
+
T.Http({
|
|
1665
|
+
method: "POST",
|
|
1666
|
+
path: "/{accountOrZone}/{accountOrZoneId}/logpush/validate/origin",
|
|
1667
|
+
}),
|
|
1668
|
+
) as unknown as Schema.Schema<OriginValidateRequest>;
|
|
1669
|
+
|
|
1670
|
+
export interface OriginValidateResponse {
|
|
1671
|
+
message?: string | null;
|
|
1672
|
+
valid?: boolean | null;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
export const OriginValidateResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1676
|
+
{
|
|
1677
|
+
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1678
|
+
valid: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1679
|
+
},
|
|
1680
|
+
).pipe(
|
|
1681
|
+
T.ResponsePath("result"),
|
|
1682
|
+
) as unknown as Schema.Schema<OriginValidateResponse>;
|
|
1683
|
+
|
|
1684
|
+
export type OriginValidateError = DefaultErrors;
|
|
1685
|
+
|
|
1686
|
+
export const originValidate: API.OperationMethod<
|
|
1687
|
+
OriginValidateRequest,
|
|
1688
|
+
OriginValidateResponse,
|
|
1689
|
+
OriginValidateError,
|
|
1690
|
+
Credentials | HttpClient.HttpClient
|
|
1691
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1692
|
+
input: OriginValidateRequest,
|
|
1693
|
+
output: OriginValidateResponse,
|
|
1694
|
+
errors: [],
|
|
1695
|
+
}));
|