@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,1266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare INTEL API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service intel
|
|
6
|
+
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import * as API from "../client/api.js";
|
|
10
|
+
import * as T from "../traits.js";
|
|
11
|
+
import {} from "../errors.js";
|
|
12
|
+
export const GetAsnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
14
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/asn/{asn}" }));
|
|
15
|
+
export const GetAsnResponse =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
17
|
+
export const getAsn = API.make(() => ({
|
|
18
|
+
input: GetAsnRequest,
|
|
19
|
+
output: GetAsnResponse,
|
|
20
|
+
errors: [],
|
|
21
|
+
}));
|
|
22
|
+
export const GetAsnSubnetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
24
|
+
}).pipe(T.Http({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: "/accounts/{account_id}/intel/asn/{asn}/subnets",
|
|
27
|
+
}));
|
|
28
|
+
export const GetAsnSubnetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
29
|
+
asn: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
30
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
31
|
+
ipCountTotal: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
32
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
33
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
34
|
+
subnets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
35
|
+
}).pipe(Schema.encodeKeys({
|
|
36
|
+
asn: "asn",
|
|
37
|
+
count: "count",
|
|
38
|
+
ipCountTotal: "ip_count_total",
|
|
39
|
+
page: "page",
|
|
40
|
+
perPage: "per_page",
|
|
41
|
+
subnets: "subnets",
|
|
42
|
+
}));
|
|
43
|
+
export const getAsnSubnet = API.make(() => ({
|
|
44
|
+
input: GetAsnSubnetRequest,
|
|
45
|
+
output: GetAsnSubnetResponse,
|
|
46
|
+
errors: [],
|
|
47
|
+
}));
|
|
48
|
+
export const ListAttackSurfaceReportIssuesRequest =
|
|
49
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
50
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
51
|
+
dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
|
|
52
|
+
issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class")),
|
|
53
|
+
issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class~neq")),
|
|
54
|
+
issueType: Schema.optional(Schema.Array(Schema.Literals([
|
|
55
|
+
"compliance_violation",
|
|
56
|
+
"email_security",
|
|
57
|
+
"exposed_infrastructure",
|
|
58
|
+
"insecure_configuration",
|
|
59
|
+
"weak_authentication",
|
|
60
|
+
"configuration_suggestion",
|
|
61
|
+
]))).pipe(T.HttpQuery("issue_type")),
|
|
62
|
+
issueTypeNeq: Schema.optional(Schema.Array(Schema.Literals([
|
|
63
|
+
"compliance_violation",
|
|
64
|
+
"email_security",
|
|
65
|
+
"exposed_infrastructure",
|
|
66
|
+
"insecure_configuration",
|
|
67
|
+
"weak_authentication",
|
|
68
|
+
"configuration_suggestion",
|
|
69
|
+
]))).pipe(T.HttpQuery("issue_type~neq")),
|
|
70
|
+
product: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product")),
|
|
71
|
+
productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product~neq")),
|
|
72
|
+
severity: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity")),
|
|
73
|
+
severityNeq: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity~neq")),
|
|
74
|
+
subject: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject")),
|
|
75
|
+
subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject~neq")),
|
|
76
|
+
}).pipe(T.Http({
|
|
77
|
+
method: "GET",
|
|
78
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/issues",
|
|
79
|
+
}));
|
|
80
|
+
export const ListAttackSurfaceReportIssuesResponse =
|
|
81
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
82
|
+
result: Schema.Struct({
|
|
83
|
+
items: Schema.optional(Schema.Union([
|
|
84
|
+
Schema.Array(Schema.Struct({
|
|
85
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
86
|
+
issues: Schema.optional(Schema.Union([
|
|
87
|
+
Schema.Array(Schema.Struct({
|
|
88
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
89
|
+
dismissed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
90
|
+
issueClass: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
91
|
+
issueType: Schema.optional(Schema.Union([
|
|
92
|
+
Schema.Literals([
|
|
93
|
+
"compliance_violation",
|
|
94
|
+
"email_security",
|
|
95
|
+
"exposed_infrastructure",
|
|
96
|
+
"insecure_configuration",
|
|
97
|
+
"weak_authentication",
|
|
98
|
+
"configuration_suggestion",
|
|
99
|
+
]),
|
|
100
|
+
Schema.Null,
|
|
101
|
+
])),
|
|
102
|
+
payload: Schema.optional(Schema.Union([
|
|
103
|
+
Schema.Struct({
|
|
104
|
+
detectionMethod: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
105
|
+
zoneTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
106
|
+
}).pipe(Schema.encodeKeys({
|
|
107
|
+
detectionMethod: "detection_method",
|
|
108
|
+
zoneTag: "zone_tag",
|
|
109
|
+
})),
|
|
110
|
+
Schema.Null,
|
|
111
|
+
])),
|
|
112
|
+
resolveLink: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
113
|
+
resolveText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
114
|
+
severity: Schema.optional(Schema.Union([
|
|
115
|
+
Schema.Literals(["Low", "Moderate", "Critical"]),
|
|
116
|
+
Schema.Null,
|
|
117
|
+
])),
|
|
118
|
+
since: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
119
|
+
subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
120
|
+
timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
121
|
+
}).pipe(Schema.encodeKeys({
|
|
122
|
+
id: "id",
|
|
123
|
+
dismissed: "dismissed",
|
|
124
|
+
issueClass: "issue_class",
|
|
125
|
+
issueType: "issue_type",
|
|
126
|
+
payload: "payload",
|
|
127
|
+
resolveLink: "resolve_link",
|
|
128
|
+
resolveText: "resolve_text",
|
|
129
|
+
severity: "severity",
|
|
130
|
+
since: "since",
|
|
131
|
+
subject: "subject",
|
|
132
|
+
timestamp: "timestamp",
|
|
133
|
+
}))),
|
|
134
|
+
Schema.Null,
|
|
135
|
+
])),
|
|
136
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
137
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
138
|
+
}).pipe(Schema.encodeKeys({
|
|
139
|
+
count: "count",
|
|
140
|
+
issues: "issues",
|
|
141
|
+
page: "page",
|
|
142
|
+
perPage: "per_page",
|
|
143
|
+
}))),
|
|
144
|
+
Schema.Null,
|
|
145
|
+
])),
|
|
146
|
+
}),
|
|
147
|
+
resultInfo: Schema.Struct({
|
|
148
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
149
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
150
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
151
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
152
|
+
}).pipe(Schema.encodeKeys({
|
|
153
|
+
count: "count",
|
|
154
|
+
page: "page",
|
|
155
|
+
perPage: "per_page",
|
|
156
|
+
totalCount: "total_count",
|
|
157
|
+
})),
|
|
158
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
159
|
+
export const listAttackSurfaceReportIssues = API.makePaginated(() => ({
|
|
160
|
+
input: ListAttackSurfaceReportIssuesRequest,
|
|
161
|
+
output: ListAttackSurfaceReportIssuesResponse,
|
|
162
|
+
errors: [],
|
|
163
|
+
pagination: {
|
|
164
|
+
mode: "page",
|
|
165
|
+
inputToken: "page",
|
|
166
|
+
outputToken: "resultInfo.page",
|
|
167
|
+
items: "result.items",
|
|
168
|
+
pageSize: "perPage",
|
|
169
|
+
},
|
|
170
|
+
}));
|
|
171
|
+
export const ClassAttackSurfaceReportIssueRequest =
|
|
172
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
173
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
174
|
+
dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
|
|
175
|
+
issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class")),
|
|
176
|
+
issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class~neq")),
|
|
177
|
+
issueType: Schema.optional(Schema.Array(Schema.Literals([
|
|
178
|
+
"compliance_violation",
|
|
179
|
+
"email_security",
|
|
180
|
+
"exposed_infrastructure",
|
|
181
|
+
"insecure_configuration",
|
|
182
|
+
"weak_authentication",
|
|
183
|
+
"configuration_suggestion",
|
|
184
|
+
]))).pipe(T.HttpQuery("issue_type")),
|
|
185
|
+
issueTypeNeq: Schema.optional(Schema.Array(Schema.Literals([
|
|
186
|
+
"compliance_violation",
|
|
187
|
+
"email_security",
|
|
188
|
+
"exposed_infrastructure",
|
|
189
|
+
"insecure_configuration",
|
|
190
|
+
"weak_authentication",
|
|
191
|
+
"configuration_suggestion",
|
|
192
|
+
]))).pipe(T.HttpQuery("issue_type~neq")),
|
|
193
|
+
product: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product")),
|
|
194
|
+
productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product~neq")),
|
|
195
|
+
severity: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity")),
|
|
196
|
+
severityNeq: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity~neq")),
|
|
197
|
+
subject: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject")),
|
|
198
|
+
subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject~neq")),
|
|
199
|
+
}).pipe(T.Http({
|
|
200
|
+
method: "GET",
|
|
201
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/issues/class",
|
|
202
|
+
}));
|
|
203
|
+
export const ClassAttackSurfaceReportIssueResponse =
|
|
204
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
205
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
206
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
207
|
+
})).pipe(T.ResponsePath("result"));
|
|
208
|
+
export const classAttackSurfaceReportIssue = API.make(() => ({
|
|
209
|
+
input: ClassAttackSurfaceReportIssueRequest,
|
|
210
|
+
output: ClassAttackSurfaceReportIssueResponse,
|
|
211
|
+
errors: [],
|
|
212
|
+
}));
|
|
213
|
+
export const DismissAttackSurfaceReportIssueRequest =
|
|
214
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
215
|
+
issueId: Schema.String.pipe(T.HttpPath("issueId")),
|
|
216
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
217
|
+
dismiss: Schema.optional(Schema.Boolean),
|
|
218
|
+
}).pipe(T.Http({
|
|
219
|
+
method: "PUT",
|
|
220
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/{issueId}/dismiss",
|
|
221
|
+
}));
|
|
222
|
+
export const DismissAttackSurfaceReportIssueResponse =
|
|
223
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
224
|
+
errors: Schema.Array(Schema.Struct({
|
|
225
|
+
code: Schema.Number,
|
|
226
|
+
message: Schema.String,
|
|
227
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
228
|
+
source: Schema.optional(Schema.Union([
|
|
229
|
+
Schema.Struct({
|
|
230
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
231
|
+
}),
|
|
232
|
+
Schema.Null,
|
|
233
|
+
])),
|
|
234
|
+
}).pipe(Schema.encodeKeys({
|
|
235
|
+
code: "code",
|
|
236
|
+
message: "message",
|
|
237
|
+
documentationUrl: "documentation_url",
|
|
238
|
+
source: "source",
|
|
239
|
+
}))),
|
|
240
|
+
messages: Schema.Array(Schema.Struct({
|
|
241
|
+
code: Schema.Number,
|
|
242
|
+
message: Schema.String,
|
|
243
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
244
|
+
source: Schema.optional(Schema.Union([
|
|
245
|
+
Schema.Struct({
|
|
246
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
247
|
+
}),
|
|
248
|
+
Schema.Null,
|
|
249
|
+
])),
|
|
250
|
+
}).pipe(Schema.encodeKeys({
|
|
251
|
+
code: "code",
|
|
252
|
+
message: "message",
|
|
253
|
+
documentationUrl: "documentation_url",
|
|
254
|
+
source: "source",
|
|
255
|
+
}))),
|
|
256
|
+
success: Schema.Literal(true),
|
|
257
|
+
});
|
|
258
|
+
export const dismissAttackSurfaceReportIssue = API.make(() => ({
|
|
259
|
+
input: DismissAttackSurfaceReportIssueRequest,
|
|
260
|
+
output: DismissAttackSurfaceReportIssueResponse,
|
|
261
|
+
errors: [],
|
|
262
|
+
}));
|
|
263
|
+
export const SeverityAttackSurfaceReportIssueRequest =
|
|
264
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
265
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
266
|
+
dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
|
|
267
|
+
issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class")),
|
|
268
|
+
issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class~neq")),
|
|
269
|
+
issueType: Schema.optional(Schema.Array(Schema.Literals([
|
|
270
|
+
"compliance_violation",
|
|
271
|
+
"email_security",
|
|
272
|
+
"exposed_infrastructure",
|
|
273
|
+
"insecure_configuration",
|
|
274
|
+
"weak_authentication",
|
|
275
|
+
"configuration_suggestion",
|
|
276
|
+
]))).pipe(T.HttpQuery("issue_type")),
|
|
277
|
+
issueTypeNeq: Schema.optional(Schema.Array(Schema.Literals([
|
|
278
|
+
"compliance_violation",
|
|
279
|
+
"email_security",
|
|
280
|
+
"exposed_infrastructure",
|
|
281
|
+
"insecure_configuration",
|
|
282
|
+
"weak_authentication",
|
|
283
|
+
"configuration_suggestion",
|
|
284
|
+
]))).pipe(T.HttpQuery("issue_type~neq")),
|
|
285
|
+
product: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product")),
|
|
286
|
+
productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product~neq")),
|
|
287
|
+
severity: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity")),
|
|
288
|
+
severityNeq: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity~neq")),
|
|
289
|
+
subject: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject")),
|
|
290
|
+
subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject~neq")),
|
|
291
|
+
}).pipe(T.Http({
|
|
292
|
+
method: "GET",
|
|
293
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/issues/severity",
|
|
294
|
+
}));
|
|
295
|
+
export const SeverityAttackSurfaceReportIssueResponse =
|
|
296
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
297
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
298
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
299
|
+
})).pipe(T.ResponsePath("result"));
|
|
300
|
+
export const severityAttackSurfaceReportIssue = API.make(() => ({
|
|
301
|
+
input: SeverityAttackSurfaceReportIssueRequest,
|
|
302
|
+
output: SeverityAttackSurfaceReportIssueResponse,
|
|
303
|
+
errors: [],
|
|
304
|
+
}));
|
|
305
|
+
export const TypeAttackSurfaceReportIssueRequest =
|
|
306
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
307
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
308
|
+
dismissed: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("dismissed")),
|
|
309
|
+
issueClass: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class")),
|
|
310
|
+
issueClassNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("issue_class~neq")),
|
|
311
|
+
issueType: Schema.optional(Schema.Array(Schema.Literals([
|
|
312
|
+
"compliance_violation",
|
|
313
|
+
"email_security",
|
|
314
|
+
"exposed_infrastructure",
|
|
315
|
+
"insecure_configuration",
|
|
316
|
+
"weak_authentication",
|
|
317
|
+
"configuration_suggestion",
|
|
318
|
+
]))).pipe(T.HttpQuery("issue_type")),
|
|
319
|
+
issueTypeNeq: Schema.optional(Schema.Array(Schema.Literals([
|
|
320
|
+
"compliance_violation",
|
|
321
|
+
"email_security",
|
|
322
|
+
"exposed_infrastructure",
|
|
323
|
+
"insecure_configuration",
|
|
324
|
+
"weak_authentication",
|
|
325
|
+
"configuration_suggestion",
|
|
326
|
+
]))).pipe(T.HttpQuery("issue_type~neq")),
|
|
327
|
+
product: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product")),
|
|
328
|
+
productNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("product~neq")),
|
|
329
|
+
severity: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity")),
|
|
330
|
+
severityNeq: Schema.optional(Schema.Array(Schema.Literals(["low", "moderate", "critical"]))).pipe(T.HttpQuery("severity~neq")),
|
|
331
|
+
subject: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject")),
|
|
332
|
+
subjectNeq: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("subject~neq")),
|
|
333
|
+
}).pipe(T.Http({
|
|
334
|
+
method: "GET",
|
|
335
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/issues/type",
|
|
336
|
+
}));
|
|
337
|
+
export const TypeAttackSurfaceReportIssueResponse =
|
|
338
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
339
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
340
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
341
|
+
})).pipe(T.ResponsePath("result"));
|
|
342
|
+
export const typeAttackSurfaceReportIssue = API.make(() => ({
|
|
343
|
+
input: TypeAttackSurfaceReportIssueRequest,
|
|
344
|
+
output: TypeAttackSurfaceReportIssueResponse,
|
|
345
|
+
errors: [],
|
|
346
|
+
}));
|
|
347
|
+
export const GetAttackSurfaceReportIssueTypeRequest =
|
|
348
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
349
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
350
|
+
}).pipe(T.Http({
|
|
351
|
+
method: "GET",
|
|
352
|
+
path: "/accounts/{account_id}/intel/attack-surface-report/issue-types",
|
|
353
|
+
}));
|
|
354
|
+
export const GetAttackSurfaceReportIssueTypeResponse =
|
|
355
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
356
|
+
result: Schema.Array(Schema.String),
|
|
357
|
+
});
|
|
358
|
+
export const getAttackSurfaceReportIssueType = API.makePaginated(() => ({
|
|
359
|
+
input: GetAttackSurfaceReportIssueTypeRequest,
|
|
360
|
+
output: GetAttackSurfaceReportIssueTypeResponse,
|
|
361
|
+
errors: [],
|
|
362
|
+
pagination: {
|
|
363
|
+
mode: "single",
|
|
364
|
+
items: "result",
|
|
365
|
+
},
|
|
366
|
+
}));
|
|
367
|
+
export const ListDnsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
368
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
369
|
+
ipv4: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv4")),
|
|
370
|
+
startEndParams: Schema.optional(Schema.Struct({
|
|
371
|
+
end: Schema.optional(Schema.String),
|
|
372
|
+
start: Schema.optional(Schema.String),
|
|
373
|
+
})).pipe(T.HttpQuery("start_end_params")),
|
|
374
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/dns" }));
|
|
375
|
+
export const ListDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
376
|
+
result: Schema.Struct({
|
|
377
|
+
items: Schema.optional(Schema.Union([
|
|
378
|
+
Schema.Array(Schema.Struct({
|
|
379
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
380
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
381
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
382
|
+
reverseRecords: Schema.optional(Schema.Union([
|
|
383
|
+
Schema.Array(Schema.Struct({
|
|
384
|
+
firstSeen: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
385
|
+
hostname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
386
|
+
lastSeen: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
387
|
+
}).pipe(Schema.encodeKeys({
|
|
388
|
+
firstSeen: "first_seen",
|
|
389
|
+
hostname: "hostname",
|
|
390
|
+
lastSeen: "last_seen",
|
|
391
|
+
}))),
|
|
392
|
+
Schema.Null,
|
|
393
|
+
])),
|
|
394
|
+
}).pipe(Schema.encodeKeys({
|
|
395
|
+
count: "count",
|
|
396
|
+
page: "page",
|
|
397
|
+
perPage: "per_page",
|
|
398
|
+
reverseRecords: "reverse_records",
|
|
399
|
+
}))),
|
|
400
|
+
Schema.Null,
|
|
401
|
+
])),
|
|
402
|
+
}),
|
|
403
|
+
resultInfo: Schema.Struct({
|
|
404
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
405
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
406
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
407
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
408
|
+
}).pipe(Schema.encodeKeys({
|
|
409
|
+
count: "count",
|
|
410
|
+
page: "page",
|
|
411
|
+
perPage: "per_page",
|
|
412
|
+
totalCount: "total_count",
|
|
413
|
+
})),
|
|
414
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
415
|
+
export const listDns = API.makePaginated(() => ({
|
|
416
|
+
input: ListDnsRequest,
|
|
417
|
+
output: ListDnsResponse,
|
|
418
|
+
errors: [],
|
|
419
|
+
pagination: {
|
|
420
|
+
mode: "page",
|
|
421
|
+
inputToken: "page",
|
|
422
|
+
outputToken: "resultInfo.page",
|
|
423
|
+
items: "result.items",
|
|
424
|
+
pageSize: "perPage",
|
|
425
|
+
},
|
|
426
|
+
}));
|
|
427
|
+
export const GetDomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
428
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
429
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
430
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/domain" }));
|
|
431
|
+
export const GetDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
432
|
+
additionalInformation: Schema.optional(Schema.Union([
|
|
433
|
+
Schema.Struct({
|
|
434
|
+
suspectedMalwareFamily: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
435
|
+
}).pipe(Schema.encodeKeys({
|
|
436
|
+
suspectedMalwareFamily: "suspected_malware_family",
|
|
437
|
+
})),
|
|
438
|
+
Schema.Null,
|
|
439
|
+
])),
|
|
440
|
+
application: Schema.optional(Schema.Union([
|
|
441
|
+
Schema.Struct({
|
|
442
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
443
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
444
|
+
}),
|
|
445
|
+
Schema.Null,
|
|
446
|
+
])),
|
|
447
|
+
contentCategories: Schema.optional(Schema.Union([
|
|
448
|
+
Schema.Array(Schema.Struct({
|
|
449
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
450
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
451
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
452
|
+
}).pipe(Schema.encodeKeys({
|
|
453
|
+
id: "id",
|
|
454
|
+
name: "name",
|
|
455
|
+
superCategoryId: "super_category_id",
|
|
456
|
+
}))),
|
|
457
|
+
Schema.Null,
|
|
458
|
+
])),
|
|
459
|
+
domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
460
|
+
inheritedContentCategories: Schema.optional(Schema.Union([
|
|
461
|
+
Schema.Array(Schema.Struct({
|
|
462
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
463
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
464
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
465
|
+
}).pipe(Schema.encodeKeys({
|
|
466
|
+
id: "id",
|
|
467
|
+
name: "name",
|
|
468
|
+
superCategoryId: "super_category_id",
|
|
469
|
+
}))),
|
|
470
|
+
Schema.Null,
|
|
471
|
+
])),
|
|
472
|
+
inheritedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
473
|
+
inheritedRiskTypes: Schema.optional(Schema.Union([
|
|
474
|
+
Schema.Array(Schema.Struct({
|
|
475
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
476
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
477
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
478
|
+
}).pipe(Schema.encodeKeys({
|
|
479
|
+
id: "id",
|
|
480
|
+
name: "name",
|
|
481
|
+
superCategoryId: "super_category_id",
|
|
482
|
+
}))),
|
|
483
|
+
Schema.Null,
|
|
484
|
+
])),
|
|
485
|
+
popularityRank: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
486
|
+
resolvesToRefs: Schema.optional(Schema.Union([
|
|
487
|
+
Schema.Array(Schema.Struct({
|
|
488
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
489
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
490
|
+
})),
|
|
491
|
+
Schema.Null,
|
|
492
|
+
])),
|
|
493
|
+
riskScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
494
|
+
riskTypes: Schema.optional(Schema.Union([
|
|
495
|
+
Schema.Array(Schema.Struct({
|
|
496
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
497
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
498
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
499
|
+
}).pipe(Schema.encodeKeys({
|
|
500
|
+
id: "id",
|
|
501
|
+
name: "name",
|
|
502
|
+
superCategoryId: "super_category_id",
|
|
503
|
+
}))),
|
|
504
|
+
Schema.Null,
|
|
505
|
+
])),
|
|
506
|
+
})
|
|
507
|
+
.pipe(Schema.encodeKeys({
|
|
508
|
+
additionalInformation: "additional_information",
|
|
509
|
+
application: "application",
|
|
510
|
+
contentCategories: "content_categories",
|
|
511
|
+
domain: "domain",
|
|
512
|
+
inheritedContentCategories: "inherited_content_categories",
|
|
513
|
+
inheritedFrom: "inherited_from",
|
|
514
|
+
inheritedRiskTypes: "inherited_risk_types",
|
|
515
|
+
popularityRank: "popularity_rank",
|
|
516
|
+
resolvesToRefs: "resolves_to_refs",
|
|
517
|
+
riskScore: "risk_score",
|
|
518
|
+
riskTypes: "risk_types",
|
|
519
|
+
}))
|
|
520
|
+
.pipe(T.ResponsePath("result"));
|
|
521
|
+
export const getDomain = API.make(() => ({
|
|
522
|
+
input: GetDomainRequest,
|
|
523
|
+
output: GetDomainResponse,
|
|
524
|
+
errors: [],
|
|
525
|
+
}));
|
|
526
|
+
export const GetDomainBulkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
527
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
528
|
+
domain: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("domain")),
|
|
529
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/domain/bulk" }));
|
|
530
|
+
export const GetDomainBulkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
531
|
+
additionalInformation: Schema.optional(Schema.Union([
|
|
532
|
+
Schema.Struct({
|
|
533
|
+
suspectedMalwareFamily: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
534
|
+
}).pipe(Schema.encodeKeys({
|
|
535
|
+
suspectedMalwareFamily: "suspected_malware_family",
|
|
536
|
+
})),
|
|
537
|
+
Schema.Null,
|
|
538
|
+
])),
|
|
539
|
+
application: Schema.optional(Schema.Union([
|
|
540
|
+
Schema.Struct({
|
|
541
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
542
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
543
|
+
}),
|
|
544
|
+
Schema.Null,
|
|
545
|
+
])),
|
|
546
|
+
contentCategories: Schema.optional(Schema.Union([
|
|
547
|
+
Schema.Array(Schema.Struct({
|
|
548
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
549
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
550
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
551
|
+
}).pipe(Schema.encodeKeys({
|
|
552
|
+
id: "id",
|
|
553
|
+
name: "name",
|
|
554
|
+
superCategoryId: "super_category_id",
|
|
555
|
+
}))),
|
|
556
|
+
Schema.Null,
|
|
557
|
+
])),
|
|
558
|
+
domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
559
|
+
inheritedContentCategories: Schema.optional(Schema.Union([
|
|
560
|
+
Schema.Array(Schema.Struct({
|
|
561
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
562
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
563
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
564
|
+
}).pipe(Schema.encodeKeys({
|
|
565
|
+
id: "id",
|
|
566
|
+
name: "name",
|
|
567
|
+
superCategoryId: "super_category_id",
|
|
568
|
+
}))),
|
|
569
|
+
Schema.Null,
|
|
570
|
+
])),
|
|
571
|
+
inheritedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
572
|
+
inheritedRiskTypes: Schema.optional(Schema.Union([
|
|
573
|
+
Schema.Array(Schema.Struct({
|
|
574
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
575
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
576
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
577
|
+
}).pipe(Schema.encodeKeys({
|
|
578
|
+
id: "id",
|
|
579
|
+
name: "name",
|
|
580
|
+
superCategoryId: "super_category_id",
|
|
581
|
+
}))),
|
|
582
|
+
Schema.Null,
|
|
583
|
+
])),
|
|
584
|
+
popularityRank: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
585
|
+
riskScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
586
|
+
riskTypes: Schema.optional(Schema.Union([
|
|
587
|
+
Schema.Array(Schema.Struct({
|
|
588
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
589
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
590
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
591
|
+
}).pipe(Schema.encodeKeys({
|
|
592
|
+
id: "id",
|
|
593
|
+
name: "name",
|
|
594
|
+
superCategoryId: "super_category_id",
|
|
595
|
+
}))),
|
|
596
|
+
Schema.Null,
|
|
597
|
+
])),
|
|
598
|
+
}).pipe(Schema.encodeKeys({
|
|
599
|
+
additionalInformation: "additional_information",
|
|
600
|
+
application: "application",
|
|
601
|
+
contentCategories: "content_categories",
|
|
602
|
+
domain: "domain",
|
|
603
|
+
inheritedContentCategories: "inherited_content_categories",
|
|
604
|
+
inheritedFrom: "inherited_from",
|
|
605
|
+
inheritedRiskTypes: "inherited_risk_types",
|
|
606
|
+
popularityRank: "popularity_rank",
|
|
607
|
+
riskScore: "risk_score",
|
|
608
|
+
riskTypes: "risk_types",
|
|
609
|
+
}))).pipe(T.ResponsePath("result"));
|
|
610
|
+
export const getDomainBulk = API.make(() => ({
|
|
611
|
+
input: GetDomainBulkRequest,
|
|
612
|
+
output: GetDomainBulkResponse,
|
|
613
|
+
errors: [],
|
|
614
|
+
}));
|
|
615
|
+
export const GetDomainHistoryRequest =
|
|
616
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
617
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
618
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
619
|
+
}).pipe(T.Http({
|
|
620
|
+
method: "GET",
|
|
621
|
+
path: "/accounts/{account_id}/intel/domain-history",
|
|
622
|
+
}));
|
|
623
|
+
export const GetDomainHistoryResponse =
|
|
624
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
625
|
+
categorizations: Schema.optional(Schema.Union([
|
|
626
|
+
Schema.Array(Schema.Struct({
|
|
627
|
+
categories: Schema.optional(Schema.Union([
|
|
628
|
+
Schema.Array(Schema.Struct({
|
|
629
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
630
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
631
|
+
})),
|
|
632
|
+
Schema.Null,
|
|
633
|
+
])),
|
|
634
|
+
end: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
635
|
+
start: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
636
|
+
})),
|
|
637
|
+
Schema.Null,
|
|
638
|
+
])),
|
|
639
|
+
domain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
640
|
+
})).pipe(T.ResponsePath("result"));
|
|
641
|
+
export const getDomainHistory = API.make(() => ({
|
|
642
|
+
input: GetDomainHistoryRequest,
|
|
643
|
+
output: GetDomainHistoryResponse,
|
|
644
|
+
errors: [],
|
|
645
|
+
}));
|
|
646
|
+
export const GetIndicatorFeedRequest =
|
|
647
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
648
|
+
feedId: Schema.Number.pipe(T.HttpPath("feedId")),
|
|
649
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
650
|
+
}).pipe(T.Http({
|
|
651
|
+
method: "GET",
|
|
652
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}",
|
|
653
|
+
}));
|
|
654
|
+
export const GetIndicatorFeedResponse =
|
|
655
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
656
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
657
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
658
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
659
|
+
isAttributable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
660
|
+
isDownloadable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
661
|
+
isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
662
|
+
latestUploadStatus: Schema.optional(Schema.Union([
|
|
663
|
+
Schema.Literals([
|
|
664
|
+
"Mirroring",
|
|
665
|
+
"Unifying",
|
|
666
|
+
"Loading",
|
|
667
|
+
"Provisioning",
|
|
668
|
+
"Complete",
|
|
669
|
+
"Error",
|
|
670
|
+
]),
|
|
671
|
+
Schema.Null,
|
|
672
|
+
])),
|
|
673
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
674
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
675
|
+
providerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
676
|
+
providerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
677
|
+
})
|
|
678
|
+
.pipe(Schema.encodeKeys({
|
|
679
|
+
id: "id",
|
|
680
|
+
createdOn: "created_on",
|
|
681
|
+
description: "description",
|
|
682
|
+
isAttributable: "is_attributable",
|
|
683
|
+
isDownloadable: "is_downloadable",
|
|
684
|
+
isPublic: "is_public",
|
|
685
|
+
latestUploadStatus: "latest_upload_status",
|
|
686
|
+
modifiedOn: "modified_on",
|
|
687
|
+
name: "name",
|
|
688
|
+
providerId: "provider_id",
|
|
689
|
+
providerName: "provider_name",
|
|
690
|
+
}))
|
|
691
|
+
.pipe(T.ResponsePath("result"));
|
|
692
|
+
export const getIndicatorFeed = API.make(() => ({
|
|
693
|
+
input: GetIndicatorFeedRequest,
|
|
694
|
+
output: GetIndicatorFeedResponse,
|
|
695
|
+
errors: [],
|
|
696
|
+
}));
|
|
697
|
+
export const ListIndicatorFeedsRequest =
|
|
698
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
699
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
700
|
+
}).pipe(T.Http({
|
|
701
|
+
method: "GET",
|
|
702
|
+
path: "/accounts/{account_id}/intel/indicator-feeds",
|
|
703
|
+
}));
|
|
704
|
+
export const ListIndicatorFeedsResponse =
|
|
705
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
706
|
+
result: Schema.Array(Schema.Struct({
|
|
707
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
708
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
709
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
710
|
+
isAttributable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
711
|
+
isDownloadable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
712
|
+
isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
713
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
714
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
715
|
+
}).pipe(Schema.encodeKeys({
|
|
716
|
+
id: "id",
|
|
717
|
+
createdOn: "created_on",
|
|
718
|
+
description: "description",
|
|
719
|
+
isAttributable: "is_attributable",
|
|
720
|
+
isDownloadable: "is_downloadable",
|
|
721
|
+
isPublic: "is_public",
|
|
722
|
+
modifiedOn: "modified_on",
|
|
723
|
+
name: "name",
|
|
724
|
+
}))),
|
|
725
|
+
});
|
|
726
|
+
export const listIndicatorFeeds = API.makePaginated(() => ({
|
|
727
|
+
input: ListIndicatorFeedsRequest,
|
|
728
|
+
output: ListIndicatorFeedsResponse,
|
|
729
|
+
errors: [],
|
|
730
|
+
pagination: {
|
|
731
|
+
mode: "single",
|
|
732
|
+
items: "result",
|
|
733
|
+
},
|
|
734
|
+
}));
|
|
735
|
+
export const CreateIndicatorFeedRequest =
|
|
736
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
737
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
738
|
+
description: Schema.optional(Schema.String),
|
|
739
|
+
name: Schema.optional(Schema.String),
|
|
740
|
+
}).pipe(T.Http({
|
|
741
|
+
method: "POST",
|
|
742
|
+
path: "/accounts/{account_id}/intel/indicator-feeds",
|
|
743
|
+
}));
|
|
744
|
+
export const CreateIndicatorFeedResponse =
|
|
745
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
746
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
747
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
748
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
749
|
+
isAttributable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
750
|
+
isDownloadable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
751
|
+
isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
752
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
753
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
754
|
+
})
|
|
755
|
+
.pipe(Schema.encodeKeys({
|
|
756
|
+
id: "id",
|
|
757
|
+
createdOn: "created_on",
|
|
758
|
+
description: "description",
|
|
759
|
+
isAttributable: "is_attributable",
|
|
760
|
+
isDownloadable: "is_downloadable",
|
|
761
|
+
isPublic: "is_public",
|
|
762
|
+
modifiedOn: "modified_on",
|
|
763
|
+
name: "name",
|
|
764
|
+
}))
|
|
765
|
+
.pipe(T.ResponsePath("result"));
|
|
766
|
+
export const createIndicatorFeed = API.make(() => ({
|
|
767
|
+
input: CreateIndicatorFeedRequest,
|
|
768
|
+
output: CreateIndicatorFeedResponse,
|
|
769
|
+
errors: [],
|
|
770
|
+
}));
|
|
771
|
+
export const UpdateIndicatorFeedRequest =
|
|
772
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
773
|
+
feedId: Schema.Number.pipe(T.HttpPath("feedId")),
|
|
774
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
775
|
+
description: Schema.optional(Schema.String),
|
|
776
|
+
isAttributable: Schema.optional(Schema.Boolean),
|
|
777
|
+
isDownloadable: Schema.optional(Schema.Boolean),
|
|
778
|
+
isPublic: Schema.optional(Schema.Boolean),
|
|
779
|
+
name: Schema.optional(Schema.String),
|
|
780
|
+
}).pipe(Schema.encodeKeys({
|
|
781
|
+
description: "description",
|
|
782
|
+
isAttributable: "is_attributable",
|
|
783
|
+
isDownloadable: "is_downloadable",
|
|
784
|
+
isPublic: "is_public",
|
|
785
|
+
name: "name",
|
|
786
|
+
}), T.Http({
|
|
787
|
+
method: "PUT",
|
|
788
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}",
|
|
789
|
+
}));
|
|
790
|
+
export const UpdateIndicatorFeedResponse =
|
|
791
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
792
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
793
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
794
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
795
|
+
isAttributable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
796
|
+
isDownloadable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
797
|
+
isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
798
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
799
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
800
|
+
})
|
|
801
|
+
.pipe(Schema.encodeKeys({
|
|
802
|
+
id: "id",
|
|
803
|
+
createdOn: "created_on",
|
|
804
|
+
description: "description",
|
|
805
|
+
isAttributable: "is_attributable",
|
|
806
|
+
isDownloadable: "is_downloadable",
|
|
807
|
+
isPublic: "is_public",
|
|
808
|
+
modifiedOn: "modified_on",
|
|
809
|
+
name: "name",
|
|
810
|
+
}))
|
|
811
|
+
.pipe(T.ResponsePath("result"));
|
|
812
|
+
export const updateIndicatorFeed = API.make(() => ({
|
|
813
|
+
input: UpdateIndicatorFeedRequest,
|
|
814
|
+
output: UpdateIndicatorFeedResponse,
|
|
815
|
+
errors: [],
|
|
816
|
+
}));
|
|
817
|
+
export const DataIndicatorFeedRequest =
|
|
818
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
819
|
+
feedId: Schema.Number.pipe(T.HttpPath("feedId")),
|
|
820
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
821
|
+
}).pipe(T.Http({
|
|
822
|
+
method: "GET",
|
|
823
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}/data",
|
|
824
|
+
}));
|
|
825
|
+
export const DataIndicatorFeedResponse =
|
|
826
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
827
|
+
export const dataIndicatorFeed = API.make(() => ({
|
|
828
|
+
input: DataIndicatorFeedRequest,
|
|
829
|
+
output: DataIndicatorFeedResponse,
|
|
830
|
+
errors: [],
|
|
831
|
+
}));
|
|
832
|
+
export const ListIndicatorFeedPermissionsRequest =
|
|
833
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
834
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
835
|
+
}).pipe(T.Http({
|
|
836
|
+
method: "GET",
|
|
837
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/permissions/view",
|
|
838
|
+
}));
|
|
839
|
+
export const ListIndicatorFeedPermissionsResponse =
|
|
840
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
841
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
842
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
843
|
+
isAttributable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
844
|
+
isDownloadable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
845
|
+
isPublic: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
846
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
847
|
+
}).pipe(Schema.encodeKeys({
|
|
848
|
+
id: "id",
|
|
849
|
+
description: "description",
|
|
850
|
+
isAttributable: "is_attributable",
|
|
851
|
+
isDownloadable: "is_downloadable",
|
|
852
|
+
isPublic: "is_public",
|
|
853
|
+
name: "name",
|
|
854
|
+
}))).pipe(T.ResponsePath("result"));
|
|
855
|
+
export const listIndicatorFeedPermissions = API.make(() => ({
|
|
856
|
+
input: ListIndicatorFeedPermissionsRequest,
|
|
857
|
+
output: ListIndicatorFeedPermissionsResponse,
|
|
858
|
+
errors: [],
|
|
859
|
+
}));
|
|
860
|
+
export const CreateIndicatorFeedPermissionRequest =
|
|
861
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
862
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
863
|
+
accountTag: Schema.optional(Schema.String),
|
|
864
|
+
feedId: Schema.optional(Schema.Number),
|
|
865
|
+
}).pipe(Schema.encodeKeys({ accountTag: "account_tag", feedId: "feed_id" }), T.Http({
|
|
866
|
+
method: "PUT",
|
|
867
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/permissions/add",
|
|
868
|
+
}));
|
|
869
|
+
export const CreateIndicatorFeedPermissionResponse =
|
|
870
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
871
|
+
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
872
|
+
}).pipe(T.ResponsePath("result"));
|
|
873
|
+
export const createIndicatorFeedPermission = API.make(() => ({
|
|
874
|
+
input: CreateIndicatorFeedPermissionRequest,
|
|
875
|
+
output: CreateIndicatorFeedPermissionResponse,
|
|
876
|
+
errors: [],
|
|
877
|
+
}));
|
|
878
|
+
export const DeleteIndicatorFeedPermissionRequest =
|
|
879
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
880
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
881
|
+
accountTag: Schema.optional(Schema.String),
|
|
882
|
+
feedId: Schema.optional(Schema.Number),
|
|
883
|
+
}).pipe(Schema.encodeKeys({ accountTag: "account_tag", feedId: "feed_id" }), T.Http({
|
|
884
|
+
method: "PUT",
|
|
885
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/permissions/remove",
|
|
886
|
+
}));
|
|
887
|
+
export const DeleteIndicatorFeedPermissionResponse =
|
|
888
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
889
|
+
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
890
|
+
}).pipe(T.ResponsePath("result"));
|
|
891
|
+
export const deleteIndicatorFeedPermission = API.make(() => ({
|
|
892
|
+
input: DeleteIndicatorFeedPermissionRequest,
|
|
893
|
+
output: DeleteIndicatorFeedPermissionResponse,
|
|
894
|
+
errors: [],
|
|
895
|
+
}));
|
|
896
|
+
export const PutIndicatorFeedSnapshotRequest =
|
|
897
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
898
|
+
feedId: Schema.Number.pipe(T.HttpPath("feedId")),
|
|
899
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
900
|
+
source: Schema.optional(Schema.String),
|
|
901
|
+
}).pipe(T.Http({
|
|
902
|
+
method: "PUT",
|
|
903
|
+
path: "/accounts/{account_id}/intel/indicator-feeds/{feedId}/snapshot",
|
|
904
|
+
contentType: "multipart",
|
|
905
|
+
}));
|
|
906
|
+
export const PutIndicatorFeedSnapshotResponse =
|
|
907
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
908
|
+
fileId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
909
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
910
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
911
|
+
})
|
|
912
|
+
.pipe(Schema.encodeKeys({
|
|
913
|
+
fileId: "file_id",
|
|
914
|
+
filename: "filename",
|
|
915
|
+
status: "status",
|
|
916
|
+
}))
|
|
917
|
+
.pipe(T.ResponsePath("result"));
|
|
918
|
+
export const putIndicatorFeedSnapshot = API.make(() => ({
|
|
919
|
+
input: PutIndicatorFeedSnapshotRequest,
|
|
920
|
+
output: PutIndicatorFeedSnapshotResponse,
|
|
921
|
+
errors: [],
|
|
922
|
+
}));
|
|
923
|
+
export const GetIpRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
924
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
925
|
+
ipv4: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv4")),
|
|
926
|
+
ipv6: Schema.optional(Schema.String).pipe(T.HttpQuery("ipv6")),
|
|
927
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/ip" }));
|
|
928
|
+
export const GetIpResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
929
|
+
belongsToRef: Schema.optional(Schema.Union([
|
|
930
|
+
Schema.Struct({
|
|
931
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
932
|
+
country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
933
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
934
|
+
type: Schema.optional(Schema.Union([
|
|
935
|
+
Schema.Literals(["hosting_provider", "isp", "organization"]),
|
|
936
|
+
Schema.Null,
|
|
937
|
+
])),
|
|
938
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
939
|
+
}),
|
|
940
|
+
Schema.Null,
|
|
941
|
+
])),
|
|
942
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
943
|
+
riskTypes: Schema.optional(Schema.Union([
|
|
944
|
+
Schema.Array(Schema.Struct({
|
|
945
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
946
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
947
|
+
superCategoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
948
|
+
}).pipe(Schema.encodeKeys({
|
|
949
|
+
id: "id",
|
|
950
|
+
name: "name",
|
|
951
|
+
superCategoryId: "super_category_id",
|
|
952
|
+
}))),
|
|
953
|
+
Schema.Null,
|
|
954
|
+
])),
|
|
955
|
+
}).pipe(Schema.encodeKeys({
|
|
956
|
+
belongsToRef: "belongs_to_ref",
|
|
957
|
+
ip: "ip",
|
|
958
|
+
riskTypes: "risk_types",
|
|
959
|
+
}))).pipe(T.ResponsePath("result"));
|
|
960
|
+
export const getIp = API.make(() => ({
|
|
961
|
+
input: GetIpRequest,
|
|
962
|
+
output: GetIpResponse,
|
|
963
|
+
errors: [],
|
|
964
|
+
}));
|
|
965
|
+
export const GetIpListRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
966
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
967
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/ip-list" }));
|
|
968
|
+
export const GetIpListResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
969
|
+
result: Schema.Array(Schema.Struct({
|
|
970
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
971
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
972
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
973
|
+
})),
|
|
974
|
+
});
|
|
975
|
+
export const getIpList = API.makePaginated(() => ({
|
|
976
|
+
input: GetIpListRequest,
|
|
977
|
+
output: GetIpListResponse,
|
|
978
|
+
errors: [],
|
|
979
|
+
pagination: {
|
|
980
|
+
mode: "single",
|
|
981
|
+
items: "result",
|
|
982
|
+
},
|
|
983
|
+
}));
|
|
984
|
+
export const CreateMiscategorizationRequest =
|
|
985
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
986
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
987
|
+
contentAdds: Schema.optional(Schema.Array(Schema.Number)),
|
|
988
|
+
contentRemoves: Schema.optional(Schema.Array(Schema.Number)),
|
|
989
|
+
indicatorType: Schema.optional(Schema.Literals(["domain", "ipv4", "ipv6", "url"])),
|
|
990
|
+
ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
991
|
+
securityAdds: Schema.optional(Schema.Array(Schema.Number)),
|
|
992
|
+
securityRemoves: Schema.optional(Schema.Array(Schema.Number)),
|
|
993
|
+
url: Schema.optional(Schema.String),
|
|
994
|
+
}).pipe(Schema.encodeKeys({
|
|
995
|
+
contentAdds: "content_adds",
|
|
996
|
+
contentRemoves: "content_removes",
|
|
997
|
+
indicatorType: "indicator_type",
|
|
998
|
+
ip: "ip",
|
|
999
|
+
securityAdds: "security_adds",
|
|
1000
|
+
securityRemoves: "security_removes",
|
|
1001
|
+
url: "url",
|
|
1002
|
+
}), T.Http({
|
|
1003
|
+
method: "POST",
|
|
1004
|
+
path: "/accounts/{account_id}/intel/miscategorization",
|
|
1005
|
+
}));
|
|
1006
|
+
export const CreateMiscategorizationResponse =
|
|
1007
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1008
|
+
errors: Schema.Array(Schema.Struct({
|
|
1009
|
+
code: Schema.Number,
|
|
1010
|
+
message: Schema.String,
|
|
1011
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1012
|
+
source: Schema.optional(Schema.Union([
|
|
1013
|
+
Schema.Struct({
|
|
1014
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1015
|
+
}),
|
|
1016
|
+
Schema.Null,
|
|
1017
|
+
])),
|
|
1018
|
+
}).pipe(Schema.encodeKeys({
|
|
1019
|
+
code: "code",
|
|
1020
|
+
message: "message",
|
|
1021
|
+
documentationUrl: "documentation_url",
|
|
1022
|
+
source: "source",
|
|
1023
|
+
}))),
|
|
1024
|
+
messages: Schema.Array(Schema.Struct({
|
|
1025
|
+
code: Schema.Number,
|
|
1026
|
+
message: Schema.String,
|
|
1027
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1028
|
+
source: Schema.optional(Schema.Union([
|
|
1029
|
+
Schema.Struct({
|
|
1030
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1031
|
+
}),
|
|
1032
|
+
Schema.Null,
|
|
1033
|
+
])),
|
|
1034
|
+
}).pipe(Schema.encodeKeys({
|
|
1035
|
+
code: "code",
|
|
1036
|
+
message: "message",
|
|
1037
|
+
documentationUrl: "documentation_url",
|
|
1038
|
+
source: "source",
|
|
1039
|
+
}))),
|
|
1040
|
+
success: Schema.Literal(true),
|
|
1041
|
+
});
|
|
1042
|
+
export const createMiscategorization = API.make(() => ({
|
|
1043
|
+
input: CreateMiscategorizationRequest,
|
|
1044
|
+
output: CreateMiscategorizationResponse,
|
|
1045
|
+
errors: [],
|
|
1046
|
+
}));
|
|
1047
|
+
export const ListSinkholesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1048
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1049
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/sinkholes" }));
|
|
1050
|
+
export const ListSinkholesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1051
|
+
result: Schema.Array(Schema.Struct({
|
|
1052
|
+
id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1053
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1054
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1055
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1056
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1057
|
+
r2Bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1058
|
+
r2Id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1059
|
+
}).pipe(Schema.encodeKeys({
|
|
1060
|
+
id: "id",
|
|
1061
|
+
accountTag: "account_tag",
|
|
1062
|
+
createdOn: "created_on",
|
|
1063
|
+
modifiedOn: "modified_on",
|
|
1064
|
+
name: "name",
|
|
1065
|
+
r2Bucket: "r2_bucket",
|
|
1066
|
+
r2Id: "r2_id",
|
|
1067
|
+
}))),
|
|
1068
|
+
});
|
|
1069
|
+
export const listSinkholes = API.makePaginated(() => ({
|
|
1070
|
+
input: ListSinkholesRequest,
|
|
1071
|
+
output: ListSinkholesResponse,
|
|
1072
|
+
errors: [],
|
|
1073
|
+
pagination: {
|
|
1074
|
+
mode: "single",
|
|
1075
|
+
items: "result",
|
|
1076
|
+
},
|
|
1077
|
+
}));
|
|
1078
|
+
export const GetWhoiRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1079
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1080
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
1081
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/intel/whois" }));
|
|
1082
|
+
export const GetWhoiResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1083
|
+
dnssec: Schema.Boolean,
|
|
1084
|
+
domain: Schema.String,
|
|
1085
|
+
extension: Schema.String,
|
|
1086
|
+
found: Schema.Boolean,
|
|
1087
|
+
nameservers: Schema.Array(Schema.String),
|
|
1088
|
+
punycode: Schema.String,
|
|
1089
|
+
registrant: Schema.String,
|
|
1090
|
+
registrar: Schema.String,
|
|
1091
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1092
|
+
administrativeCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1093
|
+
administrativeCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1094
|
+
administrativeEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1095
|
+
administrativeFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1096
|
+
administrativeFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1097
|
+
administrativeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1098
|
+
administrativeName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1099
|
+
administrativeOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1100
|
+
administrativePhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1101
|
+
administrativePhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1102
|
+
administrativePostalCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1103
|
+
administrativeProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1104
|
+
administrativeReferralUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1105
|
+
administrativeStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1106
|
+
billingCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1107
|
+
billingCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1108
|
+
billingEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1109
|
+
billingFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1110
|
+
billingFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1111
|
+
billingId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1112
|
+
billingName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1113
|
+
billingOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1114
|
+
billingPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1115
|
+
billingPhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1116
|
+
billingPostalCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1117
|
+
billingProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1118
|
+
billingReferralUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1119
|
+
billingStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1120
|
+
createdDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1121
|
+
createdDateRaw: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1122
|
+
expirationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1123
|
+
expirationDateRaw: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1124
|
+
registrantCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1125
|
+
registrantCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1126
|
+
registrantEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1127
|
+
registrantFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1128
|
+
registrantFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1129
|
+
registrantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1130
|
+
registrantName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1131
|
+
registrantOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1132
|
+
registrantPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1133
|
+
registrantPhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1134
|
+
registrantPostalCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1135
|
+
registrantProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1136
|
+
registrantReferralUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1137
|
+
registrantStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1138
|
+
registrarCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1139
|
+
registrarCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1140
|
+
registrarEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1141
|
+
registrarFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1142
|
+
registrarFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1143
|
+
registrarId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1144
|
+
registrarName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1145
|
+
registrarOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1146
|
+
registrarPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1147
|
+
registrarPhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1148
|
+
registrarPostalCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1149
|
+
registrarProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1150
|
+
registrarReferralUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1151
|
+
registrarStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1152
|
+
status: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1153
|
+
technicalCity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1154
|
+
technicalCountry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1155
|
+
technicalEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1156
|
+
technicalFax: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1157
|
+
technicalFaxExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1158
|
+
technicalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1159
|
+
technicalName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1160
|
+
technicalOrg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1161
|
+
technicalPhone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1162
|
+
technicalPhoneExt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1163
|
+
technicalPostalCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1164
|
+
technicalProvince: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1165
|
+
technicalReferralUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1166
|
+
technicalStreet: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1167
|
+
updatedDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1168
|
+
updatedDateRaw: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1169
|
+
whoisServer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1170
|
+
})
|
|
1171
|
+
.pipe(Schema.encodeKeys({
|
|
1172
|
+
dnssec: "dnssec",
|
|
1173
|
+
domain: "domain",
|
|
1174
|
+
extension: "extension",
|
|
1175
|
+
found: "found",
|
|
1176
|
+
nameservers: "nameservers",
|
|
1177
|
+
punycode: "punycode",
|
|
1178
|
+
registrant: "registrant",
|
|
1179
|
+
registrar: "registrar",
|
|
1180
|
+
id: "id",
|
|
1181
|
+
administrativeCity: "administrative_city",
|
|
1182
|
+
administrativeCountry: "administrative_country",
|
|
1183
|
+
administrativeEmail: "administrative_email",
|
|
1184
|
+
administrativeFax: "administrative_fax",
|
|
1185
|
+
administrativeFaxExt: "administrative_fax_ext",
|
|
1186
|
+
administrativeId: "administrative_id",
|
|
1187
|
+
administrativeName: "administrative_name",
|
|
1188
|
+
administrativeOrg: "administrative_org",
|
|
1189
|
+
administrativePhone: "administrative_phone",
|
|
1190
|
+
administrativePhoneExt: "administrative_phone_ext",
|
|
1191
|
+
administrativePostalCode: "administrative_postal_code",
|
|
1192
|
+
administrativeProvince: "administrative_province",
|
|
1193
|
+
administrativeReferralUrl: "administrative_referral_url",
|
|
1194
|
+
administrativeStreet: "administrative_street",
|
|
1195
|
+
billingCity: "billing_city",
|
|
1196
|
+
billingCountry: "billing_country",
|
|
1197
|
+
billingEmail: "billing_email",
|
|
1198
|
+
billingFax: "billing_fax",
|
|
1199
|
+
billingFaxExt: "billing_fax_ext",
|
|
1200
|
+
billingId: "billing_id",
|
|
1201
|
+
billingName: "billing_name",
|
|
1202
|
+
billingOrg: "billing_org",
|
|
1203
|
+
billingPhone: "billing_phone",
|
|
1204
|
+
billingPhoneExt: "billing_phone_ext",
|
|
1205
|
+
billingPostalCode: "billing_postal_code",
|
|
1206
|
+
billingProvince: "billing_province",
|
|
1207
|
+
billingReferralUrl: "billing_referral_url",
|
|
1208
|
+
billingStreet: "billing_street",
|
|
1209
|
+
createdDate: "created_date",
|
|
1210
|
+
createdDateRaw: "created_date_raw",
|
|
1211
|
+
expirationDate: "expiration_date",
|
|
1212
|
+
expirationDateRaw: "expiration_date_raw",
|
|
1213
|
+
registrantCity: "registrant_city",
|
|
1214
|
+
registrantCountry: "registrant_country",
|
|
1215
|
+
registrantEmail: "registrant_email",
|
|
1216
|
+
registrantFax: "registrant_fax",
|
|
1217
|
+
registrantFaxExt: "registrant_fax_ext",
|
|
1218
|
+
registrantId: "registrant_id",
|
|
1219
|
+
registrantName: "registrant_name",
|
|
1220
|
+
registrantOrg: "registrant_org",
|
|
1221
|
+
registrantPhone: "registrant_phone",
|
|
1222
|
+
registrantPhoneExt: "registrant_phone_ext",
|
|
1223
|
+
registrantPostalCode: "registrant_postal_code",
|
|
1224
|
+
registrantProvince: "registrant_province",
|
|
1225
|
+
registrantReferralUrl: "registrant_referral_url",
|
|
1226
|
+
registrantStreet: "registrant_street",
|
|
1227
|
+
registrarCity: "registrar_city",
|
|
1228
|
+
registrarCountry: "registrar_country",
|
|
1229
|
+
registrarEmail: "registrar_email",
|
|
1230
|
+
registrarFax: "registrar_fax",
|
|
1231
|
+
registrarFaxExt: "registrar_fax_ext",
|
|
1232
|
+
registrarId: "registrar_id",
|
|
1233
|
+
registrarName: "registrar_name",
|
|
1234
|
+
registrarOrg: "registrar_org",
|
|
1235
|
+
registrarPhone: "registrar_phone",
|
|
1236
|
+
registrarPhoneExt: "registrar_phone_ext",
|
|
1237
|
+
registrarPostalCode: "registrar_postal_code",
|
|
1238
|
+
registrarProvince: "registrar_province",
|
|
1239
|
+
registrarReferralUrl: "registrar_referral_url",
|
|
1240
|
+
registrarStreet: "registrar_street",
|
|
1241
|
+
status: "status",
|
|
1242
|
+
technicalCity: "technical_city",
|
|
1243
|
+
technicalCountry: "technical_country",
|
|
1244
|
+
technicalEmail: "technical_email",
|
|
1245
|
+
technicalFax: "technical_fax",
|
|
1246
|
+
technicalFaxExt: "technical_fax_ext",
|
|
1247
|
+
technicalId: "technical_id",
|
|
1248
|
+
technicalName: "technical_name",
|
|
1249
|
+
technicalOrg: "technical_org",
|
|
1250
|
+
technicalPhone: "technical_phone",
|
|
1251
|
+
technicalPhoneExt: "technical_phone_ext",
|
|
1252
|
+
technicalPostalCode: "technical_postal_code",
|
|
1253
|
+
technicalProvince: "technical_province",
|
|
1254
|
+
technicalReferralUrl: "technical_referral_url",
|
|
1255
|
+
technicalStreet: "technical_street",
|
|
1256
|
+
updatedDate: "updated_date",
|
|
1257
|
+
updatedDateRaw: "updated_date_raw",
|
|
1258
|
+
whoisServer: "whois_server",
|
|
1259
|
+
}))
|
|
1260
|
+
.pipe(T.ResponsePath("result"));
|
|
1261
|
+
export const getWhoi = API.make(() => ({
|
|
1262
|
+
input: GetWhoiRequest,
|
|
1263
|
+
output: GetWhoiResponse,
|
|
1264
|
+
errors: [],
|
|
1265
|
+
}));
|
|
1266
|
+
//# sourceMappingURL=intel.js.map
|