@distilled.cloud/cloudflare 0.0.0 → 0.2.3
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 +41 -7
- package/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +245 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +37 -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/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +68 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +329 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +57 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58929 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,3876 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare CLOUDFORCE-ONE API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service cloudforce-one
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
import { UploadableSchema } from "../schemas";
|
|
15
|
+
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// BinaryStorage
|
|
18
|
+
// =============================================================================
|
|
19
|
+
|
|
20
|
+
export interface GetBinaryStorageRequest {
|
|
21
|
+
hash: string;
|
|
22
|
+
/** Account ID. */
|
|
23
|
+
accountId: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const GetBinaryStorageRequest =
|
|
27
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
28
|
+
hash: Schema.String.pipe(T.HttpPath("hash")),
|
|
29
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
30
|
+
}).pipe(
|
|
31
|
+
T.Http({
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: "/accounts/{account_id}/cloudforce-one/binary/{hash}",
|
|
34
|
+
}),
|
|
35
|
+
) as unknown as Schema.Schema<GetBinaryStorageRequest>;
|
|
36
|
+
|
|
37
|
+
export type GetBinaryStorageResponse = unknown;
|
|
38
|
+
|
|
39
|
+
export const GetBinaryStorageResponse =
|
|
40
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetBinaryStorageResponse>;
|
|
41
|
+
|
|
42
|
+
export type GetBinaryStorageError = DefaultErrors;
|
|
43
|
+
|
|
44
|
+
export const getBinaryStorage: API.OperationMethod<
|
|
45
|
+
GetBinaryStorageRequest,
|
|
46
|
+
GetBinaryStorageResponse,
|
|
47
|
+
GetBinaryStorageError,
|
|
48
|
+
Credentials | HttpClient.HttpClient
|
|
49
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
50
|
+
input: GetBinaryStorageRequest,
|
|
51
|
+
output: GetBinaryStorageResponse,
|
|
52
|
+
errors: [],
|
|
53
|
+
}));
|
|
54
|
+
|
|
55
|
+
export interface CreateBinaryStorageRequest {
|
|
56
|
+
/** Path param: Account ID. */
|
|
57
|
+
accountId: string;
|
|
58
|
+
/** Body param: The binary file content to upload. */
|
|
59
|
+
file: File | Blob;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const CreateBinaryStorageRequest =
|
|
63
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
64
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
65
|
+
file: UploadableSchema.pipe(T.HttpFormDataFile()),
|
|
66
|
+
}).pipe(
|
|
67
|
+
T.Http({
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: "/accounts/{account_id}/cloudforce-one/binary",
|
|
70
|
+
contentType: "multipart",
|
|
71
|
+
}),
|
|
72
|
+
) as unknown as Schema.Schema<CreateBinaryStorageRequest>;
|
|
73
|
+
|
|
74
|
+
export interface CreateBinaryStorageResponse {
|
|
75
|
+
contentType: string;
|
|
76
|
+
md5: string;
|
|
77
|
+
sha1: string;
|
|
78
|
+
sha256: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const CreateBinaryStorageResponse =
|
|
82
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
83
|
+
contentType: Schema.String,
|
|
84
|
+
md5: Schema.String,
|
|
85
|
+
sha1: Schema.String,
|
|
86
|
+
sha256: Schema.String,
|
|
87
|
+
}).pipe(
|
|
88
|
+
Schema.encodeKeys({
|
|
89
|
+
contentType: "content_type",
|
|
90
|
+
md5: "md5",
|
|
91
|
+
sha1: "sha1",
|
|
92
|
+
sha256: "sha256",
|
|
93
|
+
}),
|
|
94
|
+
) as unknown as Schema.Schema<CreateBinaryStorageResponse>;
|
|
95
|
+
|
|
96
|
+
export type CreateBinaryStorageError = DefaultErrors;
|
|
97
|
+
|
|
98
|
+
export const createBinaryStorage: API.OperationMethod<
|
|
99
|
+
CreateBinaryStorageRequest,
|
|
100
|
+
CreateBinaryStorageResponse,
|
|
101
|
+
CreateBinaryStorageError,
|
|
102
|
+
Credentials | HttpClient.HttpClient
|
|
103
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
104
|
+
input: CreateBinaryStorageRequest,
|
|
105
|
+
output: CreateBinaryStorageResponse,
|
|
106
|
+
errors: [],
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
// =============================================================================
|
|
110
|
+
// Request
|
|
111
|
+
// =============================================================================
|
|
112
|
+
|
|
113
|
+
export interface GetRequestRequest {
|
|
114
|
+
requestId: string;
|
|
115
|
+
/** Identifier. */
|
|
116
|
+
accountId: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export const GetRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
120
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
121
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
122
|
+
}).pipe(
|
|
123
|
+
T.Http({
|
|
124
|
+
method: "GET",
|
|
125
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
|
|
126
|
+
}),
|
|
127
|
+
) as unknown as Schema.Schema<GetRequestRequest>;
|
|
128
|
+
|
|
129
|
+
export interface GetRequestResponse {
|
|
130
|
+
/** UUID. */
|
|
131
|
+
id: string;
|
|
132
|
+
/** Request content. */
|
|
133
|
+
content: string;
|
|
134
|
+
created: string;
|
|
135
|
+
priority: string;
|
|
136
|
+
/** Requested information from request. */
|
|
137
|
+
request: string;
|
|
138
|
+
/** Brief description of the request. */
|
|
139
|
+
summary: string;
|
|
140
|
+
/** The CISA defined Traffic Light Protocol (TLP). */
|
|
141
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
142
|
+
updated: string;
|
|
143
|
+
completed?: string | null;
|
|
144
|
+
/** Tokens for the request messages. */
|
|
145
|
+
messageTokens?: number | null;
|
|
146
|
+
/** Readable Request ID. */
|
|
147
|
+
readableId?: string | null;
|
|
148
|
+
/** Request Status. */
|
|
149
|
+
status?:
|
|
150
|
+
| "open"
|
|
151
|
+
| "accepted"
|
|
152
|
+
| "reported"
|
|
153
|
+
| "approved"
|
|
154
|
+
| "completed"
|
|
155
|
+
| "declined"
|
|
156
|
+
| null;
|
|
157
|
+
/** Tokens for the request. */
|
|
158
|
+
tokens?: number | null;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export const GetRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
162
|
+
id: Schema.String,
|
|
163
|
+
content: Schema.String,
|
|
164
|
+
created: Schema.String,
|
|
165
|
+
priority: Schema.String,
|
|
166
|
+
request: Schema.String,
|
|
167
|
+
summary: Schema.String,
|
|
168
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
169
|
+
updated: Schema.String,
|
|
170
|
+
completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
171
|
+
messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
172
|
+
readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
173
|
+
status: Schema.optional(
|
|
174
|
+
Schema.Union([
|
|
175
|
+
Schema.Literals([
|
|
176
|
+
"open",
|
|
177
|
+
"accepted",
|
|
178
|
+
"reported",
|
|
179
|
+
"approved",
|
|
180
|
+
"completed",
|
|
181
|
+
"declined",
|
|
182
|
+
]),
|
|
183
|
+
Schema.Null,
|
|
184
|
+
]),
|
|
185
|
+
),
|
|
186
|
+
tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
187
|
+
}).pipe(
|
|
188
|
+
Schema.encodeKeys({
|
|
189
|
+
id: "id",
|
|
190
|
+
content: "content",
|
|
191
|
+
created: "created",
|
|
192
|
+
priority: "priority",
|
|
193
|
+
request: "request",
|
|
194
|
+
summary: "summary",
|
|
195
|
+
tlp: "tlp",
|
|
196
|
+
updated: "updated",
|
|
197
|
+
completed: "completed",
|
|
198
|
+
messageTokens: "message_tokens",
|
|
199
|
+
readableId: "readable_id",
|
|
200
|
+
status: "status",
|
|
201
|
+
tokens: "tokens",
|
|
202
|
+
}),
|
|
203
|
+
) as unknown as Schema.Schema<GetRequestResponse>;
|
|
204
|
+
|
|
205
|
+
export type GetRequestError = DefaultErrors;
|
|
206
|
+
|
|
207
|
+
export const getRequest: API.OperationMethod<
|
|
208
|
+
GetRequestRequest,
|
|
209
|
+
GetRequestResponse,
|
|
210
|
+
GetRequestError,
|
|
211
|
+
Credentials | HttpClient.HttpClient
|
|
212
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
213
|
+
input: GetRequestRequest,
|
|
214
|
+
output: GetRequestResponse,
|
|
215
|
+
errors: [],
|
|
216
|
+
}));
|
|
217
|
+
|
|
218
|
+
export interface ListRequestsRequest {
|
|
219
|
+
/** Path param: Identifier. */
|
|
220
|
+
accountId: string;
|
|
221
|
+
/** Body param: Page number of results. */
|
|
222
|
+
page: number;
|
|
223
|
+
/** Body param: Number of results per page. */
|
|
224
|
+
perPage: number;
|
|
225
|
+
/** Body param: Retrieve requests completed after this time. */
|
|
226
|
+
completedAfter?: string;
|
|
227
|
+
/** Body param: Retrieve requests completed before this time. */
|
|
228
|
+
completedBefore?: string;
|
|
229
|
+
/** Body param: Retrieve requests created after this time. */
|
|
230
|
+
createdAfter?: string;
|
|
231
|
+
/** Body param: Retrieve requests created before this time. */
|
|
232
|
+
createdBefore?: string;
|
|
233
|
+
/** Body param: Requested information from request. */
|
|
234
|
+
requestType?: string;
|
|
235
|
+
/** Body param: Field to sort results by. */
|
|
236
|
+
sortBy?: string;
|
|
237
|
+
/** Body param: Sort order (asc or desc). */
|
|
238
|
+
sortOrder?: "asc" | "desc";
|
|
239
|
+
/** Body param: Request Status. */
|
|
240
|
+
status?:
|
|
241
|
+
| "open"
|
|
242
|
+
| "accepted"
|
|
243
|
+
| "reported"
|
|
244
|
+
| "approved"
|
|
245
|
+
| "completed"
|
|
246
|
+
| "declined";
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const ListRequestsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
250
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
251
|
+
page: Schema.Number,
|
|
252
|
+
perPage: Schema.Number,
|
|
253
|
+
completedAfter: Schema.optional(Schema.String),
|
|
254
|
+
completedBefore: Schema.optional(Schema.String),
|
|
255
|
+
createdAfter: Schema.optional(Schema.String),
|
|
256
|
+
createdBefore: Schema.optional(Schema.String),
|
|
257
|
+
requestType: Schema.optional(Schema.String),
|
|
258
|
+
sortBy: Schema.optional(Schema.String),
|
|
259
|
+
sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
|
|
260
|
+
status: Schema.optional(
|
|
261
|
+
Schema.Literals([
|
|
262
|
+
"open",
|
|
263
|
+
"accepted",
|
|
264
|
+
"reported",
|
|
265
|
+
"approved",
|
|
266
|
+
"completed",
|
|
267
|
+
"declined",
|
|
268
|
+
]),
|
|
269
|
+
),
|
|
270
|
+
}).pipe(
|
|
271
|
+
Schema.encodeKeys({
|
|
272
|
+
page: "page",
|
|
273
|
+
perPage: "per_page",
|
|
274
|
+
completedAfter: "completed_after",
|
|
275
|
+
completedBefore: "completed_before",
|
|
276
|
+
createdAfter: "created_after",
|
|
277
|
+
createdBefore: "created_before",
|
|
278
|
+
requestType: "request_type",
|
|
279
|
+
sortBy: "sort_by",
|
|
280
|
+
sortOrder: "sort_order",
|
|
281
|
+
status: "status",
|
|
282
|
+
}),
|
|
283
|
+
T.Http({
|
|
284
|
+
method: "POST",
|
|
285
|
+
path: "/accounts/{account_id}/cloudforce-one/requests",
|
|
286
|
+
}),
|
|
287
|
+
) as unknown as Schema.Schema<ListRequestsRequest>;
|
|
288
|
+
|
|
289
|
+
export type ListRequestsResponse = {
|
|
290
|
+
id: string;
|
|
291
|
+
created: string;
|
|
292
|
+
priority: "routine" | "high" | "urgent";
|
|
293
|
+
request: string;
|
|
294
|
+
summary: string;
|
|
295
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
296
|
+
updated: string;
|
|
297
|
+
completed?: string | null;
|
|
298
|
+
messageTokens?: number | null;
|
|
299
|
+
readableId?: string | null;
|
|
300
|
+
status?:
|
|
301
|
+
| "open"
|
|
302
|
+
| "accepted"
|
|
303
|
+
| "reported"
|
|
304
|
+
| "approved"
|
|
305
|
+
| "completed"
|
|
306
|
+
| "declined"
|
|
307
|
+
| null;
|
|
308
|
+
tokens?: number | null;
|
|
309
|
+
}[];
|
|
310
|
+
|
|
311
|
+
export const ListRequestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
312
|
+
Schema.Struct({
|
|
313
|
+
id: Schema.String,
|
|
314
|
+
created: Schema.String,
|
|
315
|
+
priority: Schema.Literals(["routine", "high", "urgent"]),
|
|
316
|
+
request: Schema.String,
|
|
317
|
+
summary: Schema.String,
|
|
318
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
319
|
+
updated: Schema.String,
|
|
320
|
+
completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
321
|
+
messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
322
|
+
readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
323
|
+
status: Schema.optional(
|
|
324
|
+
Schema.Union([
|
|
325
|
+
Schema.Literals([
|
|
326
|
+
"open",
|
|
327
|
+
"accepted",
|
|
328
|
+
"reported",
|
|
329
|
+
"approved",
|
|
330
|
+
"completed",
|
|
331
|
+
"declined",
|
|
332
|
+
]),
|
|
333
|
+
Schema.Null,
|
|
334
|
+
]),
|
|
335
|
+
),
|
|
336
|
+
tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
337
|
+
}).pipe(
|
|
338
|
+
Schema.encodeKeys({
|
|
339
|
+
id: "id",
|
|
340
|
+
created: "created",
|
|
341
|
+
priority: "priority",
|
|
342
|
+
request: "request",
|
|
343
|
+
summary: "summary",
|
|
344
|
+
tlp: "tlp",
|
|
345
|
+
updated: "updated",
|
|
346
|
+
completed: "completed",
|
|
347
|
+
messageTokens: "message_tokens",
|
|
348
|
+
readableId: "readable_id",
|
|
349
|
+
status: "status",
|
|
350
|
+
tokens: "tokens",
|
|
351
|
+
}),
|
|
352
|
+
),
|
|
353
|
+
) as unknown as Schema.Schema<ListRequestsResponse>;
|
|
354
|
+
|
|
355
|
+
export type ListRequestsError = DefaultErrors;
|
|
356
|
+
|
|
357
|
+
export const listRequests: API.OperationMethod<
|
|
358
|
+
ListRequestsRequest,
|
|
359
|
+
ListRequestsResponse,
|
|
360
|
+
ListRequestsError,
|
|
361
|
+
Credentials | HttpClient.HttpClient
|
|
362
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
363
|
+
input: ListRequestsRequest,
|
|
364
|
+
output: ListRequestsResponse,
|
|
365
|
+
errors: [],
|
|
366
|
+
}));
|
|
367
|
+
|
|
368
|
+
export interface CreateRequestRequest {
|
|
369
|
+
/** Path param: Identifier. */
|
|
370
|
+
accountId: string;
|
|
371
|
+
/** Body param: Request content. */
|
|
372
|
+
content?: string;
|
|
373
|
+
/** Body param: Priority for analyzing the request. */
|
|
374
|
+
priority?: string;
|
|
375
|
+
/** Body param: Requested information from request. */
|
|
376
|
+
requestType?: string;
|
|
377
|
+
/** Body param: Brief description of the request. */
|
|
378
|
+
summary?: string;
|
|
379
|
+
/** Body param: The CISA defined Traffic Light Protocol (TLP). */
|
|
380
|
+
tlp?: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export const CreateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
384
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
385
|
+
content: Schema.optional(Schema.String),
|
|
386
|
+
priority: Schema.optional(Schema.String),
|
|
387
|
+
requestType: Schema.optional(Schema.String),
|
|
388
|
+
summary: Schema.optional(Schema.String),
|
|
389
|
+
tlp: Schema.optional(
|
|
390
|
+
Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
391
|
+
),
|
|
392
|
+
}).pipe(
|
|
393
|
+
Schema.encodeKeys({
|
|
394
|
+
content: "content",
|
|
395
|
+
priority: "priority",
|
|
396
|
+
requestType: "request_type",
|
|
397
|
+
summary: "summary",
|
|
398
|
+
tlp: "tlp",
|
|
399
|
+
}),
|
|
400
|
+
T.Http({
|
|
401
|
+
method: "POST",
|
|
402
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/new",
|
|
403
|
+
}),
|
|
404
|
+
) as unknown as Schema.Schema<CreateRequestRequest>;
|
|
405
|
+
|
|
406
|
+
export interface CreateRequestResponse {
|
|
407
|
+
/** UUID. */
|
|
408
|
+
id: string;
|
|
409
|
+
/** Request content. */
|
|
410
|
+
content: string;
|
|
411
|
+
created: string;
|
|
412
|
+
priority: string;
|
|
413
|
+
/** Requested information from request. */
|
|
414
|
+
request: string;
|
|
415
|
+
/** Brief description of the request. */
|
|
416
|
+
summary: string;
|
|
417
|
+
/** The CISA defined Traffic Light Protocol (TLP). */
|
|
418
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
419
|
+
updated: string;
|
|
420
|
+
completed?: string | null;
|
|
421
|
+
/** Tokens for the request messages. */
|
|
422
|
+
messageTokens?: number | null;
|
|
423
|
+
/** Readable Request ID. */
|
|
424
|
+
readableId?: string | null;
|
|
425
|
+
/** Request Status. */
|
|
426
|
+
status?:
|
|
427
|
+
| "open"
|
|
428
|
+
| "accepted"
|
|
429
|
+
| "reported"
|
|
430
|
+
| "approved"
|
|
431
|
+
| "completed"
|
|
432
|
+
| "declined"
|
|
433
|
+
| null;
|
|
434
|
+
/** Tokens for the request. */
|
|
435
|
+
tokens?: number | null;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export const CreateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
439
|
+
id: Schema.String,
|
|
440
|
+
content: Schema.String,
|
|
441
|
+
created: Schema.String,
|
|
442
|
+
priority: Schema.String,
|
|
443
|
+
request: Schema.String,
|
|
444
|
+
summary: Schema.String,
|
|
445
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
446
|
+
updated: Schema.String,
|
|
447
|
+
completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
448
|
+
messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
449
|
+
readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
450
|
+
status: Schema.optional(
|
|
451
|
+
Schema.Union([
|
|
452
|
+
Schema.Literals([
|
|
453
|
+
"open",
|
|
454
|
+
"accepted",
|
|
455
|
+
"reported",
|
|
456
|
+
"approved",
|
|
457
|
+
"completed",
|
|
458
|
+
"declined",
|
|
459
|
+
]),
|
|
460
|
+
Schema.Null,
|
|
461
|
+
]),
|
|
462
|
+
),
|
|
463
|
+
tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
464
|
+
}).pipe(
|
|
465
|
+
Schema.encodeKeys({
|
|
466
|
+
id: "id",
|
|
467
|
+
content: "content",
|
|
468
|
+
created: "created",
|
|
469
|
+
priority: "priority",
|
|
470
|
+
request: "request",
|
|
471
|
+
summary: "summary",
|
|
472
|
+
tlp: "tlp",
|
|
473
|
+
updated: "updated",
|
|
474
|
+
completed: "completed",
|
|
475
|
+
messageTokens: "message_tokens",
|
|
476
|
+
readableId: "readable_id",
|
|
477
|
+
status: "status",
|
|
478
|
+
tokens: "tokens",
|
|
479
|
+
}),
|
|
480
|
+
) as unknown as Schema.Schema<CreateRequestResponse>;
|
|
481
|
+
|
|
482
|
+
export type CreateRequestError = DefaultErrors;
|
|
483
|
+
|
|
484
|
+
export const createRequest: API.OperationMethod<
|
|
485
|
+
CreateRequestRequest,
|
|
486
|
+
CreateRequestResponse,
|
|
487
|
+
CreateRequestError,
|
|
488
|
+
Credentials | HttpClient.HttpClient
|
|
489
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
490
|
+
input: CreateRequestRequest,
|
|
491
|
+
output: CreateRequestResponse,
|
|
492
|
+
errors: [],
|
|
493
|
+
}));
|
|
494
|
+
|
|
495
|
+
export interface UpdateRequestRequest {
|
|
496
|
+
requestId: string;
|
|
497
|
+
/** Path param: Identifier. */
|
|
498
|
+
accountId: string;
|
|
499
|
+
/** Body param: Request content. */
|
|
500
|
+
content?: string;
|
|
501
|
+
/** Body param: Priority for analyzing the request. */
|
|
502
|
+
priority?: string;
|
|
503
|
+
/** Body param: Requested information from request. */
|
|
504
|
+
requestType?: string;
|
|
505
|
+
/** Body param: Brief description of the request. */
|
|
506
|
+
summary?: string;
|
|
507
|
+
/** Body param: The CISA defined Traffic Light Protocol (TLP). */
|
|
508
|
+
tlp?: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export const UpdateRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
512
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
513
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
514
|
+
content: Schema.optional(Schema.String),
|
|
515
|
+
priority: Schema.optional(Schema.String),
|
|
516
|
+
requestType: Schema.optional(Schema.String),
|
|
517
|
+
summary: Schema.optional(Schema.String),
|
|
518
|
+
tlp: Schema.optional(
|
|
519
|
+
Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
520
|
+
),
|
|
521
|
+
}).pipe(
|
|
522
|
+
Schema.encodeKeys({
|
|
523
|
+
content: "content",
|
|
524
|
+
priority: "priority",
|
|
525
|
+
requestType: "request_type",
|
|
526
|
+
summary: "summary",
|
|
527
|
+
tlp: "tlp",
|
|
528
|
+
}),
|
|
529
|
+
T.Http({
|
|
530
|
+
method: "PUT",
|
|
531
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
|
|
532
|
+
}),
|
|
533
|
+
) as unknown as Schema.Schema<UpdateRequestRequest>;
|
|
534
|
+
|
|
535
|
+
export interface UpdateRequestResponse {
|
|
536
|
+
/** UUID. */
|
|
537
|
+
id: string;
|
|
538
|
+
/** Request content. */
|
|
539
|
+
content: string;
|
|
540
|
+
created: string;
|
|
541
|
+
priority: string;
|
|
542
|
+
/** Requested information from request. */
|
|
543
|
+
request: string;
|
|
544
|
+
/** Brief description of the request. */
|
|
545
|
+
summary: string;
|
|
546
|
+
/** The CISA defined Traffic Light Protocol (TLP). */
|
|
547
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
548
|
+
updated: string;
|
|
549
|
+
completed?: string | null;
|
|
550
|
+
/** Tokens for the request messages. */
|
|
551
|
+
messageTokens?: number | null;
|
|
552
|
+
/** Readable Request ID. */
|
|
553
|
+
readableId?: string | null;
|
|
554
|
+
/** Request Status. */
|
|
555
|
+
status?:
|
|
556
|
+
| "open"
|
|
557
|
+
| "accepted"
|
|
558
|
+
| "reported"
|
|
559
|
+
| "approved"
|
|
560
|
+
| "completed"
|
|
561
|
+
| "declined"
|
|
562
|
+
| null;
|
|
563
|
+
/** Tokens for the request. */
|
|
564
|
+
tokens?: number | null;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export const UpdateRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
568
|
+
id: Schema.String,
|
|
569
|
+
content: Schema.String,
|
|
570
|
+
created: Schema.String,
|
|
571
|
+
priority: Schema.String,
|
|
572
|
+
request: Schema.String,
|
|
573
|
+
summary: Schema.String,
|
|
574
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
575
|
+
updated: Schema.String,
|
|
576
|
+
completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
577
|
+
messageTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
578
|
+
readableId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
579
|
+
status: Schema.optional(
|
|
580
|
+
Schema.Union([
|
|
581
|
+
Schema.Literals([
|
|
582
|
+
"open",
|
|
583
|
+
"accepted",
|
|
584
|
+
"reported",
|
|
585
|
+
"approved",
|
|
586
|
+
"completed",
|
|
587
|
+
"declined",
|
|
588
|
+
]),
|
|
589
|
+
Schema.Null,
|
|
590
|
+
]),
|
|
591
|
+
),
|
|
592
|
+
tokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
593
|
+
}).pipe(
|
|
594
|
+
Schema.encodeKeys({
|
|
595
|
+
id: "id",
|
|
596
|
+
content: "content",
|
|
597
|
+
created: "created",
|
|
598
|
+
priority: "priority",
|
|
599
|
+
request: "request",
|
|
600
|
+
summary: "summary",
|
|
601
|
+
tlp: "tlp",
|
|
602
|
+
updated: "updated",
|
|
603
|
+
completed: "completed",
|
|
604
|
+
messageTokens: "message_tokens",
|
|
605
|
+
readableId: "readable_id",
|
|
606
|
+
status: "status",
|
|
607
|
+
tokens: "tokens",
|
|
608
|
+
}),
|
|
609
|
+
) as unknown as Schema.Schema<UpdateRequestResponse>;
|
|
610
|
+
|
|
611
|
+
export type UpdateRequestError = DefaultErrors;
|
|
612
|
+
|
|
613
|
+
export const updateRequest: API.OperationMethod<
|
|
614
|
+
UpdateRequestRequest,
|
|
615
|
+
UpdateRequestResponse,
|
|
616
|
+
UpdateRequestError,
|
|
617
|
+
Credentials | HttpClient.HttpClient
|
|
618
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
619
|
+
input: UpdateRequestRequest,
|
|
620
|
+
output: UpdateRequestResponse,
|
|
621
|
+
errors: [],
|
|
622
|
+
}));
|
|
623
|
+
|
|
624
|
+
export interface DeleteRequestRequest {
|
|
625
|
+
requestId: string;
|
|
626
|
+
/** Identifier. */
|
|
627
|
+
accountId: string;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export const DeleteRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
631
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
632
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
633
|
+
}).pipe(
|
|
634
|
+
T.Http({
|
|
635
|
+
method: "DELETE",
|
|
636
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}",
|
|
637
|
+
}),
|
|
638
|
+
) as unknown as Schema.Schema<DeleteRequestRequest>;
|
|
639
|
+
|
|
640
|
+
export interface DeleteRequestResponse {
|
|
641
|
+
errors: {
|
|
642
|
+
code: number;
|
|
643
|
+
message: string;
|
|
644
|
+
documentationUrl?: string | null;
|
|
645
|
+
source?: { pointer?: string | null } | null;
|
|
646
|
+
}[];
|
|
647
|
+
messages: {
|
|
648
|
+
code: number;
|
|
649
|
+
message: string;
|
|
650
|
+
documentationUrl?: string | null;
|
|
651
|
+
source?: { pointer?: string | null } | null;
|
|
652
|
+
}[];
|
|
653
|
+
/** Whether the API call was successful. */
|
|
654
|
+
success: true;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export const DeleteRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
658
|
+
errors: Schema.Array(
|
|
659
|
+
Schema.Struct({
|
|
660
|
+
code: Schema.Number,
|
|
661
|
+
message: Schema.String,
|
|
662
|
+
documentationUrl: Schema.optional(
|
|
663
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
664
|
+
),
|
|
665
|
+
source: Schema.optional(
|
|
666
|
+
Schema.Union([
|
|
667
|
+
Schema.Struct({
|
|
668
|
+
pointer: Schema.optional(
|
|
669
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
670
|
+
),
|
|
671
|
+
}),
|
|
672
|
+
Schema.Null,
|
|
673
|
+
]),
|
|
674
|
+
),
|
|
675
|
+
}).pipe(
|
|
676
|
+
Schema.encodeKeys({
|
|
677
|
+
code: "code",
|
|
678
|
+
message: "message",
|
|
679
|
+
documentationUrl: "documentation_url",
|
|
680
|
+
source: "source",
|
|
681
|
+
}),
|
|
682
|
+
),
|
|
683
|
+
),
|
|
684
|
+
messages: Schema.Array(
|
|
685
|
+
Schema.Struct({
|
|
686
|
+
code: Schema.Number,
|
|
687
|
+
message: Schema.String,
|
|
688
|
+
documentationUrl: Schema.optional(
|
|
689
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
690
|
+
),
|
|
691
|
+
source: Schema.optional(
|
|
692
|
+
Schema.Union([
|
|
693
|
+
Schema.Struct({
|
|
694
|
+
pointer: Schema.optional(
|
|
695
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
696
|
+
),
|
|
697
|
+
}),
|
|
698
|
+
Schema.Null,
|
|
699
|
+
]),
|
|
700
|
+
),
|
|
701
|
+
}).pipe(
|
|
702
|
+
Schema.encodeKeys({
|
|
703
|
+
code: "code",
|
|
704
|
+
message: "message",
|
|
705
|
+
documentationUrl: "documentation_url",
|
|
706
|
+
source: "source",
|
|
707
|
+
}),
|
|
708
|
+
),
|
|
709
|
+
),
|
|
710
|
+
success: Schema.Literal(true),
|
|
711
|
+
}) as unknown as Schema.Schema<DeleteRequestResponse>;
|
|
712
|
+
|
|
713
|
+
export type DeleteRequestError = DefaultErrors;
|
|
714
|
+
|
|
715
|
+
export const deleteRequest: API.OperationMethod<
|
|
716
|
+
DeleteRequestRequest,
|
|
717
|
+
DeleteRequestResponse,
|
|
718
|
+
DeleteRequestError,
|
|
719
|
+
Credentials | HttpClient.HttpClient
|
|
720
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
721
|
+
input: DeleteRequestRequest,
|
|
722
|
+
output: DeleteRequestResponse,
|
|
723
|
+
errors: [],
|
|
724
|
+
}));
|
|
725
|
+
|
|
726
|
+
export interface ConstantsRequestRequest {
|
|
727
|
+
/** Identifier. */
|
|
728
|
+
accountId: string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export const ConstantsRequestRequest =
|
|
732
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
733
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
734
|
+
}).pipe(
|
|
735
|
+
T.Http({
|
|
736
|
+
method: "GET",
|
|
737
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/constants",
|
|
738
|
+
}),
|
|
739
|
+
) as unknown as Schema.Schema<ConstantsRequestRequest>;
|
|
740
|
+
|
|
741
|
+
export interface ConstantsRequestResponse {
|
|
742
|
+
priority?: ("routine" | "high" | "urgent")[] | null;
|
|
743
|
+
status?:
|
|
744
|
+
| (
|
|
745
|
+
| "open"
|
|
746
|
+
| "accepted"
|
|
747
|
+
| "reported"
|
|
748
|
+
| "approved"
|
|
749
|
+
| "completed"
|
|
750
|
+
| "declined"
|
|
751
|
+
)[]
|
|
752
|
+
| null;
|
|
753
|
+
tlp?: ("clear" | "amber" | "amber-strict" | "green" | "red")[] | null;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export const ConstantsRequestResponse =
|
|
757
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
758
|
+
priority: Schema.optional(
|
|
759
|
+
Schema.Union([
|
|
760
|
+
Schema.Array(Schema.Literals(["routine", "high", "urgent"])),
|
|
761
|
+
Schema.Null,
|
|
762
|
+
]),
|
|
763
|
+
),
|
|
764
|
+
status: Schema.optional(
|
|
765
|
+
Schema.Union([
|
|
766
|
+
Schema.Array(
|
|
767
|
+
Schema.Literals([
|
|
768
|
+
"open",
|
|
769
|
+
"accepted",
|
|
770
|
+
"reported",
|
|
771
|
+
"approved",
|
|
772
|
+
"completed",
|
|
773
|
+
"declined",
|
|
774
|
+
]),
|
|
775
|
+
),
|
|
776
|
+
Schema.Null,
|
|
777
|
+
]),
|
|
778
|
+
),
|
|
779
|
+
tlp: Schema.optional(
|
|
780
|
+
Schema.Union([
|
|
781
|
+
Schema.Array(
|
|
782
|
+
Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
783
|
+
),
|
|
784
|
+
Schema.Null,
|
|
785
|
+
]),
|
|
786
|
+
),
|
|
787
|
+
}) as unknown as Schema.Schema<ConstantsRequestResponse>;
|
|
788
|
+
|
|
789
|
+
export type ConstantsRequestError = DefaultErrors;
|
|
790
|
+
|
|
791
|
+
export const constantsRequest: API.OperationMethod<
|
|
792
|
+
ConstantsRequestRequest,
|
|
793
|
+
ConstantsRequestResponse,
|
|
794
|
+
ConstantsRequestError,
|
|
795
|
+
Credentials | HttpClient.HttpClient
|
|
796
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
797
|
+
input: ConstantsRequestRequest,
|
|
798
|
+
output: ConstantsRequestResponse,
|
|
799
|
+
errors: [],
|
|
800
|
+
}));
|
|
801
|
+
|
|
802
|
+
export interface QuotaRequestRequest {
|
|
803
|
+
/** Identifier. */
|
|
804
|
+
accountId: string;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export const QuotaRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
808
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
809
|
+
}).pipe(
|
|
810
|
+
T.Http({
|
|
811
|
+
method: "GET",
|
|
812
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/quota",
|
|
813
|
+
}),
|
|
814
|
+
) as unknown as Schema.Schema<QuotaRequestRequest>;
|
|
815
|
+
|
|
816
|
+
export interface QuotaRequestResponse {
|
|
817
|
+
/** Anniversary date is when annual quota limit is refreshed. */
|
|
818
|
+
anniversaryDate?: string | null;
|
|
819
|
+
/** Quarter anniversary date is when quota limit is refreshed each quarter. */
|
|
820
|
+
quarterAnniversaryDate?: string | null;
|
|
821
|
+
/** Tokens for the quarter. */
|
|
822
|
+
quota?: number | null;
|
|
823
|
+
/** Tokens remaining for the quarter. */
|
|
824
|
+
remaining?: number | null;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export const QuotaRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
828
|
+
anniversaryDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
829
|
+
quarterAnniversaryDate: Schema.optional(
|
|
830
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
831
|
+
),
|
|
832
|
+
quota: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
833
|
+
remaining: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
834
|
+
}).pipe(
|
|
835
|
+
Schema.encodeKeys({
|
|
836
|
+
anniversaryDate: "anniversary_date",
|
|
837
|
+
quarterAnniversaryDate: "quarter_anniversary_date",
|
|
838
|
+
quota: "quota",
|
|
839
|
+
remaining: "remaining",
|
|
840
|
+
}),
|
|
841
|
+
) as unknown as Schema.Schema<QuotaRequestResponse>;
|
|
842
|
+
|
|
843
|
+
export type QuotaRequestError = DefaultErrors;
|
|
844
|
+
|
|
845
|
+
export const quotaRequest: API.OperationMethod<
|
|
846
|
+
QuotaRequestRequest,
|
|
847
|
+
QuotaRequestResponse,
|
|
848
|
+
QuotaRequestError,
|
|
849
|
+
Credentials | HttpClient.HttpClient
|
|
850
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
851
|
+
input: QuotaRequestRequest,
|
|
852
|
+
output: QuotaRequestResponse,
|
|
853
|
+
errors: [],
|
|
854
|
+
}));
|
|
855
|
+
|
|
856
|
+
export interface TypesRequestRequest {
|
|
857
|
+
/** Identifier. */
|
|
858
|
+
accountId: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export const TypesRequestRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
862
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
863
|
+
}).pipe(
|
|
864
|
+
T.Http({
|
|
865
|
+
method: "GET",
|
|
866
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/types",
|
|
867
|
+
}),
|
|
868
|
+
) as unknown as Schema.Schema<TypesRequestRequest>;
|
|
869
|
+
|
|
870
|
+
export type TypesRequestResponse = string[];
|
|
871
|
+
|
|
872
|
+
export const TypesRequestResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
873
|
+
Schema.String,
|
|
874
|
+
) as unknown as Schema.Schema<TypesRequestResponse>;
|
|
875
|
+
|
|
876
|
+
export type TypesRequestError = DefaultErrors;
|
|
877
|
+
|
|
878
|
+
export const typesRequest: API.OperationMethod<
|
|
879
|
+
TypesRequestRequest,
|
|
880
|
+
TypesRequestResponse,
|
|
881
|
+
TypesRequestError,
|
|
882
|
+
Credentials | HttpClient.HttpClient
|
|
883
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
884
|
+
input: TypesRequestRequest,
|
|
885
|
+
output: TypesRequestResponse,
|
|
886
|
+
errors: [],
|
|
887
|
+
}));
|
|
888
|
+
|
|
889
|
+
// =============================================================================
|
|
890
|
+
// RequestAsset
|
|
891
|
+
// =============================================================================
|
|
892
|
+
|
|
893
|
+
export interface GetRequestAssetRequest {
|
|
894
|
+
requestId: string;
|
|
895
|
+
assetId: string;
|
|
896
|
+
/** Identifier. */
|
|
897
|
+
accountId: string;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export const GetRequestAssetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
901
|
+
{
|
|
902
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
903
|
+
assetId: Schema.String.pipe(T.HttpPath("assetId")),
|
|
904
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
905
|
+
},
|
|
906
|
+
).pipe(
|
|
907
|
+
T.Http({
|
|
908
|
+
method: "GET",
|
|
909
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
|
|
910
|
+
}),
|
|
911
|
+
) as unknown as Schema.Schema<GetRequestAssetRequest>;
|
|
912
|
+
|
|
913
|
+
export type GetRequestAssetResponse = {
|
|
914
|
+
id: number;
|
|
915
|
+
name: string;
|
|
916
|
+
created?: string | null;
|
|
917
|
+
description?: string | null;
|
|
918
|
+
fileType?: string | null;
|
|
919
|
+
}[];
|
|
920
|
+
|
|
921
|
+
export const GetRequestAssetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
922
|
+
Schema.Struct({
|
|
923
|
+
id: Schema.Number,
|
|
924
|
+
name: Schema.String,
|
|
925
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
926
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
927
|
+
fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
928
|
+
}).pipe(
|
|
929
|
+
Schema.encodeKeys({
|
|
930
|
+
id: "id",
|
|
931
|
+
name: "name",
|
|
932
|
+
created: "created",
|
|
933
|
+
description: "description",
|
|
934
|
+
fileType: "file_type",
|
|
935
|
+
}),
|
|
936
|
+
),
|
|
937
|
+
) as unknown as Schema.Schema<GetRequestAssetResponse>;
|
|
938
|
+
|
|
939
|
+
export type GetRequestAssetError = DefaultErrors;
|
|
940
|
+
|
|
941
|
+
export const getRequestAsset: API.OperationMethod<
|
|
942
|
+
GetRequestAssetRequest,
|
|
943
|
+
GetRequestAssetResponse,
|
|
944
|
+
GetRequestAssetError,
|
|
945
|
+
Credentials | HttpClient.HttpClient
|
|
946
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
947
|
+
input: GetRequestAssetRequest,
|
|
948
|
+
output: GetRequestAssetResponse,
|
|
949
|
+
errors: [],
|
|
950
|
+
}));
|
|
951
|
+
|
|
952
|
+
export interface CreateRequestAssetRequest {
|
|
953
|
+
requestId: string;
|
|
954
|
+
/** Path param: Identifier. */
|
|
955
|
+
accountId: string;
|
|
956
|
+
/** Body param: Page number of results. */
|
|
957
|
+
page: number;
|
|
958
|
+
/** Body param: Number of results per page. */
|
|
959
|
+
perPage: number;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export const CreateRequestAssetRequest =
|
|
963
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
964
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
965
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
966
|
+
page: Schema.Number,
|
|
967
|
+
perPage: Schema.Number,
|
|
968
|
+
}).pipe(
|
|
969
|
+
Schema.encodeKeys({ page: "page", perPage: "per_page" }),
|
|
970
|
+
T.Http({
|
|
971
|
+
method: "POST",
|
|
972
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset",
|
|
973
|
+
}),
|
|
974
|
+
) as unknown as Schema.Schema<CreateRequestAssetRequest>;
|
|
975
|
+
|
|
976
|
+
export type CreateRequestAssetResponse = {
|
|
977
|
+
id: number;
|
|
978
|
+
name: string;
|
|
979
|
+
created?: string | null;
|
|
980
|
+
description?: string | null;
|
|
981
|
+
fileType?: string | null;
|
|
982
|
+
}[];
|
|
983
|
+
|
|
984
|
+
export const CreateRequestAssetResponse =
|
|
985
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
986
|
+
Schema.Struct({
|
|
987
|
+
id: Schema.Number,
|
|
988
|
+
name: Schema.String,
|
|
989
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
990
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
991
|
+
fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
992
|
+
}).pipe(
|
|
993
|
+
Schema.encodeKeys({
|
|
994
|
+
id: "id",
|
|
995
|
+
name: "name",
|
|
996
|
+
created: "created",
|
|
997
|
+
description: "description",
|
|
998
|
+
fileType: "file_type",
|
|
999
|
+
}),
|
|
1000
|
+
),
|
|
1001
|
+
) as unknown as Schema.Schema<CreateRequestAssetResponse>;
|
|
1002
|
+
|
|
1003
|
+
export type CreateRequestAssetError = DefaultErrors;
|
|
1004
|
+
|
|
1005
|
+
export const createRequestAsset: API.OperationMethod<
|
|
1006
|
+
CreateRequestAssetRequest,
|
|
1007
|
+
CreateRequestAssetResponse,
|
|
1008
|
+
CreateRequestAssetError,
|
|
1009
|
+
Credentials | HttpClient.HttpClient
|
|
1010
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1011
|
+
input: CreateRequestAssetRequest,
|
|
1012
|
+
output: CreateRequestAssetResponse,
|
|
1013
|
+
errors: [],
|
|
1014
|
+
}));
|
|
1015
|
+
|
|
1016
|
+
export interface UpdateRequestAssetRequest {
|
|
1017
|
+
requestId: string;
|
|
1018
|
+
assetId: string;
|
|
1019
|
+
/** Path param: Identifier. */
|
|
1020
|
+
accountId: string;
|
|
1021
|
+
/** Body param: Asset file to upload. */
|
|
1022
|
+
source?: string;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export const UpdateRequestAssetRequest =
|
|
1026
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1027
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1028
|
+
assetId: Schema.String.pipe(T.HttpPath("assetId")),
|
|
1029
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1030
|
+
source: Schema.optional(Schema.String),
|
|
1031
|
+
}).pipe(
|
|
1032
|
+
T.Http({
|
|
1033
|
+
method: "PUT",
|
|
1034
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
|
|
1035
|
+
}),
|
|
1036
|
+
) as unknown as Schema.Schema<UpdateRequestAssetRequest>;
|
|
1037
|
+
|
|
1038
|
+
export interface UpdateRequestAssetResponse {
|
|
1039
|
+
/** Asset ID. */
|
|
1040
|
+
id: number;
|
|
1041
|
+
/** Asset name. */
|
|
1042
|
+
name: string;
|
|
1043
|
+
/** Defines the asset creation time. */
|
|
1044
|
+
created?: string | null;
|
|
1045
|
+
/** Asset description. */
|
|
1046
|
+
description?: string | null;
|
|
1047
|
+
/** Asset file type. */
|
|
1048
|
+
fileType?: string | null;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export const UpdateRequestAssetResponse =
|
|
1052
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1053
|
+
id: Schema.Number,
|
|
1054
|
+
name: Schema.String,
|
|
1055
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1056
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1057
|
+
fileType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1058
|
+
}).pipe(
|
|
1059
|
+
Schema.encodeKeys({
|
|
1060
|
+
id: "id",
|
|
1061
|
+
name: "name",
|
|
1062
|
+
created: "created",
|
|
1063
|
+
description: "description",
|
|
1064
|
+
fileType: "file_type",
|
|
1065
|
+
}),
|
|
1066
|
+
) as unknown as Schema.Schema<UpdateRequestAssetResponse>;
|
|
1067
|
+
|
|
1068
|
+
export type UpdateRequestAssetError = DefaultErrors;
|
|
1069
|
+
|
|
1070
|
+
export const updateRequestAsset: API.OperationMethod<
|
|
1071
|
+
UpdateRequestAssetRequest,
|
|
1072
|
+
UpdateRequestAssetResponse,
|
|
1073
|
+
UpdateRequestAssetError,
|
|
1074
|
+
Credentials | HttpClient.HttpClient
|
|
1075
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1076
|
+
input: UpdateRequestAssetRequest,
|
|
1077
|
+
output: UpdateRequestAssetResponse,
|
|
1078
|
+
errors: [],
|
|
1079
|
+
}));
|
|
1080
|
+
|
|
1081
|
+
export interface DeleteRequestAssetRequest {
|
|
1082
|
+
requestId: string;
|
|
1083
|
+
assetId: string;
|
|
1084
|
+
/** Identifier. */
|
|
1085
|
+
accountId: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export const DeleteRequestAssetRequest =
|
|
1089
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1090
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1091
|
+
assetId: Schema.String.pipe(T.HttpPath("assetId")),
|
|
1092
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1093
|
+
}).pipe(
|
|
1094
|
+
T.Http({
|
|
1095
|
+
method: "DELETE",
|
|
1096
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/asset/{assetId}",
|
|
1097
|
+
}),
|
|
1098
|
+
) as unknown as Schema.Schema<DeleteRequestAssetRequest>;
|
|
1099
|
+
|
|
1100
|
+
export interface DeleteRequestAssetResponse {
|
|
1101
|
+
errors: {
|
|
1102
|
+
code: number;
|
|
1103
|
+
message: string;
|
|
1104
|
+
documentationUrl?: string | null;
|
|
1105
|
+
source?: { pointer?: string | null } | null;
|
|
1106
|
+
}[];
|
|
1107
|
+
messages: {
|
|
1108
|
+
code: number;
|
|
1109
|
+
message: string;
|
|
1110
|
+
documentationUrl?: string | null;
|
|
1111
|
+
source?: { pointer?: string | null } | null;
|
|
1112
|
+
}[];
|
|
1113
|
+
/** Whether the API call was successful. */
|
|
1114
|
+
success: true;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
export const DeleteRequestAssetResponse =
|
|
1118
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1119
|
+
errors: Schema.Array(
|
|
1120
|
+
Schema.Struct({
|
|
1121
|
+
code: Schema.Number,
|
|
1122
|
+
message: Schema.String,
|
|
1123
|
+
documentationUrl: Schema.optional(
|
|
1124
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1125
|
+
),
|
|
1126
|
+
source: Schema.optional(
|
|
1127
|
+
Schema.Union([
|
|
1128
|
+
Schema.Struct({
|
|
1129
|
+
pointer: Schema.optional(
|
|
1130
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1131
|
+
),
|
|
1132
|
+
}),
|
|
1133
|
+
Schema.Null,
|
|
1134
|
+
]),
|
|
1135
|
+
),
|
|
1136
|
+
}).pipe(
|
|
1137
|
+
Schema.encodeKeys({
|
|
1138
|
+
code: "code",
|
|
1139
|
+
message: "message",
|
|
1140
|
+
documentationUrl: "documentation_url",
|
|
1141
|
+
source: "source",
|
|
1142
|
+
}),
|
|
1143
|
+
),
|
|
1144
|
+
),
|
|
1145
|
+
messages: Schema.Array(
|
|
1146
|
+
Schema.Struct({
|
|
1147
|
+
code: Schema.Number,
|
|
1148
|
+
message: Schema.String,
|
|
1149
|
+
documentationUrl: Schema.optional(
|
|
1150
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1151
|
+
),
|
|
1152
|
+
source: Schema.optional(
|
|
1153
|
+
Schema.Union([
|
|
1154
|
+
Schema.Struct({
|
|
1155
|
+
pointer: Schema.optional(
|
|
1156
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1157
|
+
),
|
|
1158
|
+
}),
|
|
1159
|
+
Schema.Null,
|
|
1160
|
+
]),
|
|
1161
|
+
),
|
|
1162
|
+
}).pipe(
|
|
1163
|
+
Schema.encodeKeys({
|
|
1164
|
+
code: "code",
|
|
1165
|
+
message: "message",
|
|
1166
|
+
documentationUrl: "documentation_url",
|
|
1167
|
+
source: "source",
|
|
1168
|
+
}),
|
|
1169
|
+
),
|
|
1170
|
+
),
|
|
1171
|
+
success: Schema.Literal(true),
|
|
1172
|
+
}) as unknown as Schema.Schema<DeleteRequestAssetResponse>;
|
|
1173
|
+
|
|
1174
|
+
export type DeleteRequestAssetError = DefaultErrors;
|
|
1175
|
+
|
|
1176
|
+
export const deleteRequestAsset: API.OperationMethod<
|
|
1177
|
+
DeleteRequestAssetRequest,
|
|
1178
|
+
DeleteRequestAssetResponse,
|
|
1179
|
+
DeleteRequestAssetError,
|
|
1180
|
+
Credentials | HttpClient.HttpClient
|
|
1181
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1182
|
+
input: DeleteRequestAssetRequest,
|
|
1183
|
+
output: DeleteRequestAssetResponse,
|
|
1184
|
+
errors: [],
|
|
1185
|
+
}));
|
|
1186
|
+
|
|
1187
|
+
// =============================================================================
|
|
1188
|
+
// RequestMessage
|
|
1189
|
+
// =============================================================================
|
|
1190
|
+
|
|
1191
|
+
export interface GetRequestMessageRequest {
|
|
1192
|
+
requestId: string;
|
|
1193
|
+
/** Path param: Identifier. */
|
|
1194
|
+
accountId: string;
|
|
1195
|
+
/** Body param: Page number of results. */
|
|
1196
|
+
page: number;
|
|
1197
|
+
/** Body param: Number of results per page. */
|
|
1198
|
+
perPage: number;
|
|
1199
|
+
/** Body param: Retrieve mes ges created after this time. */
|
|
1200
|
+
after?: string;
|
|
1201
|
+
/** Body param: Retrieve messages created before this time. */
|
|
1202
|
+
before?: string;
|
|
1203
|
+
/** Body param: Field to sort results by. */
|
|
1204
|
+
sortBy?: string;
|
|
1205
|
+
/** Body param: Sort order (asc or desc). */
|
|
1206
|
+
sortOrder?: "asc" | "desc";
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
export const GetRequestMessageRequest =
|
|
1210
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1211
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1212
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1213
|
+
page: Schema.Number,
|
|
1214
|
+
perPage: Schema.Number,
|
|
1215
|
+
after: Schema.optional(Schema.String),
|
|
1216
|
+
before: Schema.optional(Schema.String),
|
|
1217
|
+
sortBy: Schema.optional(Schema.String),
|
|
1218
|
+
sortOrder: Schema.optional(Schema.Literals(["asc", "desc"])),
|
|
1219
|
+
}).pipe(
|
|
1220
|
+
Schema.encodeKeys({
|
|
1221
|
+
page: "page",
|
|
1222
|
+
perPage: "per_page",
|
|
1223
|
+
after: "after",
|
|
1224
|
+
before: "before",
|
|
1225
|
+
sortBy: "sort_by",
|
|
1226
|
+
sortOrder: "sort_order",
|
|
1227
|
+
}),
|
|
1228
|
+
T.Http({
|
|
1229
|
+
method: "POST",
|
|
1230
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message",
|
|
1231
|
+
}),
|
|
1232
|
+
) as unknown as Schema.Schema<GetRequestMessageRequest>;
|
|
1233
|
+
|
|
1234
|
+
export type GetRequestMessageResponse = {
|
|
1235
|
+
code: number;
|
|
1236
|
+
message: string;
|
|
1237
|
+
documentationUrl?: string | null;
|
|
1238
|
+
source?: { pointer?: string | null } | null;
|
|
1239
|
+
}[];
|
|
1240
|
+
|
|
1241
|
+
export const GetRequestMessageResponse =
|
|
1242
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1243
|
+
Schema.Struct({
|
|
1244
|
+
code: Schema.Number,
|
|
1245
|
+
message: Schema.String,
|
|
1246
|
+
documentationUrl: Schema.optional(
|
|
1247
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1248
|
+
),
|
|
1249
|
+
source: Schema.optional(
|
|
1250
|
+
Schema.Union([
|
|
1251
|
+
Schema.Struct({
|
|
1252
|
+
pointer: Schema.optional(
|
|
1253
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1254
|
+
),
|
|
1255
|
+
}),
|
|
1256
|
+
Schema.Null,
|
|
1257
|
+
]),
|
|
1258
|
+
),
|
|
1259
|
+
}).pipe(
|
|
1260
|
+
Schema.encodeKeys({
|
|
1261
|
+
code: "code",
|
|
1262
|
+
message: "message",
|
|
1263
|
+
documentationUrl: "documentation_url",
|
|
1264
|
+
source: "source",
|
|
1265
|
+
}),
|
|
1266
|
+
),
|
|
1267
|
+
) as unknown as Schema.Schema<GetRequestMessageResponse>;
|
|
1268
|
+
|
|
1269
|
+
export type GetRequestMessageError = DefaultErrors;
|
|
1270
|
+
|
|
1271
|
+
export const getRequestMessage: API.OperationMethod<
|
|
1272
|
+
GetRequestMessageRequest,
|
|
1273
|
+
GetRequestMessageResponse,
|
|
1274
|
+
GetRequestMessageError,
|
|
1275
|
+
Credentials | HttpClient.HttpClient
|
|
1276
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1277
|
+
input: GetRequestMessageRequest,
|
|
1278
|
+
output: GetRequestMessageResponse,
|
|
1279
|
+
errors: [],
|
|
1280
|
+
}));
|
|
1281
|
+
|
|
1282
|
+
export interface CreateRequestMessageRequest {
|
|
1283
|
+
requestId: string;
|
|
1284
|
+
/** Path param: Identifier. */
|
|
1285
|
+
accountId: string;
|
|
1286
|
+
/** Body param: Content of message. */
|
|
1287
|
+
content?: string;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
export const CreateRequestMessageRequest =
|
|
1291
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1292
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1293
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1294
|
+
content: Schema.optional(Schema.String),
|
|
1295
|
+
}).pipe(
|
|
1296
|
+
T.Http({
|
|
1297
|
+
method: "POST",
|
|
1298
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/new",
|
|
1299
|
+
}),
|
|
1300
|
+
) as unknown as Schema.Schema<CreateRequestMessageRequest>;
|
|
1301
|
+
|
|
1302
|
+
export interface CreateRequestMessageResponse {
|
|
1303
|
+
code: number;
|
|
1304
|
+
message: string;
|
|
1305
|
+
documentationUrl?: string | null;
|
|
1306
|
+
source?: { pointer?: string | null } | null;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export const CreateRequestMessageResponse =
|
|
1310
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1311
|
+
code: Schema.Number,
|
|
1312
|
+
message: Schema.String,
|
|
1313
|
+
documentationUrl: Schema.optional(
|
|
1314
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1315
|
+
),
|
|
1316
|
+
source: Schema.optional(
|
|
1317
|
+
Schema.Union([
|
|
1318
|
+
Schema.Struct({
|
|
1319
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1320
|
+
}),
|
|
1321
|
+
Schema.Null,
|
|
1322
|
+
]),
|
|
1323
|
+
),
|
|
1324
|
+
}).pipe(
|
|
1325
|
+
Schema.encodeKeys({
|
|
1326
|
+
code: "code",
|
|
1327
|
+
message: "message",
|
|
1328
|
+
documentationUrl: "documentation_url",
|
|
1329
|
+
source: "source",
|
|
1330
|
+
}),
|
|
1331
|
+
) as unknown as Schema.Schema<CreateRequestMessageResponse>;
|
|
1332
|
+
|
|
1333
|
+
export type CreateRequestMessageError = DefaultErrors;
|
|
1334
|
+
|
|
1335
|
+
export const createRequestMessage: API.OperationMethod<
|
|
1336
|
+
CreateRequestMessageRequest,
|
|
1337
|
+
CreateRequestMessageResponse,
|
|
1338
|
+
CreateRequestMessageError,
|
|
1339
|
+
Credentials | HttpClient.HttpClient
|
|
1340
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1341
|
+
input: CreateRequestMessageRequest,
|
|
1342
|
+
output: CreateRequestMessageResponse,
|
|
1343
|
+
errors: [],
|
|
1344
|
+
}));
|
|
1345
|
+
|
|
1346
|
+
export interface UpdateRequestMessageRequest {
|
|
1347
|
+
requestId: string;
|
|
1348
|
+
messageId: number;
|
|
1349
|
+
/** Path param: Identifier. */
|
|
1350
|
+
accountId: string;
|
|
1351
|
+
/** Body param: Content of message. */
|
|
1352
|
+
content?: string;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
export const UpdateRequestMessageRequest =
|
|
1356
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1357
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1358
|
+
messageId: Schema.Number.pipe(T.HttpPath("messageId")),
|
|
1359
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1360
|
+
content: Schema.optional(Schema.String),
|
|
1361
|
+
}).pipe(
|
|
1362
|
+
T.Http({
|
|
1363
|
+
method: "PUT",
|
|
1364
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
|
|
1365
|
+
}),
|
|
1366
|
+
) as unknown as Schema.Schema<UpdateRequestMessageRequest>;
|
|
1367
|
+
|
|
1368
|
+
export interface UpdateRequestMessageResponse {
|
|
1369
|
+
code: number;
|
|
1370
|
+
message: string;
|
|
1371
|
+
documentationUrl?: string | null;
|
|
1372
|
+
source?: { pointer?: string | null } | null;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
export const UpdateRequestMessageResponse =
|
|
1376
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1377
|
+
code: Schema.Number,
|
|
1378
|
+
message: Schema.String,
|
|
1379
|
+
documentationUrl: Schema.optional(
|
|
1380
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1381
|
+
),
|
|
1382
|
+
source: Schema.optional(
|
|
1383
|
+
Schema.Union([
|
|
1384
|
+
Schema.Struct({
|
|
1385
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1386
|
+
}),
|
|
1387
|
+
Schema.Null,
|
|
1388
|
+
]),
|
|
1389
|
+
),
|
|
1390
|
+
}).pipe(
|
|
1391
|
+
Schema.encodeKeys({
|
|
1392
|
+
code: "code",
|
|
1393
|
+
message: "message",
|
|
1394
|
+
documentationUrl: "documentation_url",
|
|
1395
|
+
source: "source",
|
|
1396
|
+
}),
|
|
1397
|
+
) as unknown as Schema.Schema<UpdateRequestMessageResponse>;
|
|
1398
|
+
|
|
1399
|
+
export type UpdateRequestMessageError = DefaultErrors;
|
|
1400
|
+
|
|
1401
|
+
export const updateRequestMessage: API.OperationMethod<
|
|
1402
|
+
UpdateRequestMessageRequest,
|
|
1403
|
+
UpdateRequestMessageResponse,
|
|
1404
|
+
UpdateRequestMessageError,
|
|
1405
|
+
Credentials | HttpClient.HttpClient
|
|
1406
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1407
|
+
input: UpdateRequestMessageRequest,
|
|
1408
|
+
output: UpdateRequestMessageResponse,
|
|
1409
|
+
errors: [],
|
|
1410
|
+
}));
|
|
1411
|
+
|
|
1412
|
+
export interface DeleteRequestMessageRequest {
|
|
1413
|
+
requestId: string;
|
|
1414
|
+
messageId: number;
|
|
1415
|
+
/** Identifier. */
|
|
1416
|
+
accountId: string;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
export const DeleteRequestMessageRequest =
|
|
1420
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1421
|
+
requestId: Schema.String.pipe(T.HttpPath("requestId")),
|
|
1422
|
+
messageId: Schema.Number.pipe(T.HttpPath("messageId")),
|
|
1423
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1424
|
+
}).pipe(
|
|
1425
|
+
T.Http({
|
|
1426
|
+
method: "DELETE",
|
|
1427
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/{requestId}/message/{messageId}",
|
|
1428
|
+
}),
|
|
1429
|
+
) as unknown as Schema.Schema<DeleteRequestMessageRequest>;
|
|
1430
|
+
|
|
1431
|
+
export interface DeleteRequestMessageResponse {
|
|
1432
|
+
errors: {
|
|
1433
|
+
code: number;
|
|
1434
|
+
message: string;
|
|
1435
|
+
documentationUrl?: string | null;
|
|
1436
|
+
source?: { pointer?: string | null } | null;
|
|
1437
|
+
}[];
|
|
1438
|
+
messages: {
|
|
1439
|
+
code: number;
|
|
1440
|
+
message: string;
|
|
1441
|
+
documentationUrl?: string | null;
|
|
1442
|
+
source?: { pointer?: string | null } | null;
|
|
1443
|
+
}[];
|
|
1444
|
+
/** Whether the API call was successful. */
|
|
1445
|
+
success: true;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export const DeleteRequestMessageResponse =
|
|
1449
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1450
|
+
errors: Schema.Array(
|
|
1451
|
+
Schema.Struct({
|
|
1452
|
+
code: Schema.Number,
|
|
1453
|
+
message: Schema.String,
|
|
1454
|
+
documentationUrl: Schema.optional(
|
|
1455
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1456
|
+
),
|
|
1457
|
+
source: Schema.optional(
|
|
1458
|
+
Schema.Union([
|
|
1459
|
+
Schema.Struct({
|
|
1460
|
+
pointer: Schema.optional(
|
|
1461
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1462
|
+
),
|
|
1463
|
+
}),
|
|
1464
|
+
Schema.Null,
|
|
1465
|
+
]),
|
|
1466
|
+
),
|
|
1467
|
+
}).pipe(
|
|
1468
|
+
Schema.encodeKeys({
|
|
1469
|
+
code: "code",
|
|
1470
|
+
message: "message",
|
|
1471
|
+
documentationUrl: "documentation_url",
|
|
1472
|
+
source: "source",
|
|
1473
|
+
}),
|
|
1474
|
+
),
|
|
1475
|
+
),
|
|
1476
|
+
messages: Schema.Array(
|
|
1477
|
+
Schema.Struct({
|
|
1478
|
+
code: Schema.Number,
|
|
1479
|
+
message: Schema.String,
|
|
1480
|
+
documentationUrl: Schema.optional(
|
|
1481
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1482
|
+
),
|
|
1483
|
+
source: Schema.optional(
|
|
1484
|
+
Schema.Union([
|
|
1485
|
+
Schema.Struct({
|
|
1486
|
+
pointer: Schema.optional(
|
|
1487
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1488
|
+
),
|
|
1489
|
+
}),
|
|
1490
|
+
Schema.Null,
|
|
1491
|
+
]),
|
|
1492
|
+
),
|
|
1493
|
+
}).pipe(
|
|
1494
|
+
Schema.encodeKeys({
|
|
1495
|
+
code: "code",
|
|
1496
|
+
message: "message",
|
|
1497
|
+
documentationUrl: "documentation_url",
|
|
1498
|
+
source: "source",
|
|
1499
|
+
}),
|
|
1500
|
+
),
|
|
1501
|
+
),
|
|
1502
|
+
success: Schema.Literal(true),
|
|
1503
|
+
}) as unknown as Schema.Schema<DeleteRequestMessageResponse>;
|
|
1504
|
+
|
|
1505
|
+
export type DeleteRequestMessageError = DefaultErrors;
|
|
1506
|
+
|
|
1507
|
+
export const deleteRequestMessage: API.OperationMethod<
|
|
1508
|
+
DeleteRequestMessageRequest,
|
|
1509
|
+
DeleteRequestMessageResponse,
|
|
1510
|
+
DeleteRequestMessageError,
|
|
1511
|
+
Credentials | HttpClient.HttpClient
|
|
1512
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1513
|
+
input: DeleteRequestMessageRequest,
|
|
1514
|
+
output: DeleteRequestMessageResponse,
|
|
1515
|
+
errors: [],
|
|
1516
|
+
}));
|
|
1517
|
+
|
|
1518
|
+
// =============================================================================
|
|
1519
|
+
// RequestPriority
|
|
1520
|
+
// =============================================================================
|
|
1521
|
+
|
|
1522
|
+
export interface GetRequestPriorityRequest {
|
|
1523
|
+
priorityId: string;
|
|
1524
|
+
/** Identifier. */
|
|
1525
|
+
accountId: string;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
export const GetRequestPriorityRequest =
|
|
1529
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1530
|
+
priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
|
|
1531
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1532
|
+
}).pipe(
|
|
1533
|
+
T.Http({
|
|
1534
|
+
method: "GET",
|
|
1535
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
|
|
1536
|
+
}),
|
|
1537
|
+
) as unknown as Schema.Schema<GetRequestPriorityRequest>;
|
|
1538
|
+
|
|
1539
|
+
export type GetRequestPriorityResponse = unknown;
|
|
1540
|
+
|
|
1541
|
+
export const GetRequestPriorityResponse =
|
|
1542
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetRequestPriorityResponse>;
|
|
1543
|
+
|
|
1544
|
+
export type GetRequestPriorityError = DefaultErrors;
|
|
1545
|
+
|
|
1546
|
+
export const getRequestPriority: API.OperationMethod<
|
|
1547
|
+
GetRequestPriorityRequest,
|
|
1548
|
+
GetRequestPriorityResponse,
|
|
1549
|
+
GetRequestPriorityError,
|
|
1550
|
+
Credentials | HttpClient.HttpClient
|
|
1551
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1552
|
+
input: GetRequestPriorityRequest,
|
|
1553
|
+
output: GetRequestPriorityResponse,
|
|
1554
|
+
errors: [],
|
|
1555
|
+
}));
|
|
1556
|
+
|
|
1557
|
+
export interface CreateRequestPriorityRequest {
|
|
1558
|
+
/** Path param: Identifier. */
|
|
1559
|
+
accountId: string;
|
|
1560
|
+
/** Body param: List of labels. */
|
|
1561
|
+
labels: string[];
|
|
1562
|
+
/** Body param: Priority. */
|
|
1563
|
+
priority: number;
|
|
1564
|
+
/** Body param: Requirement. */
|
|
1565
|
+
requirement: string;
|
|
1566
|
+
/** Body param: The CISA defined Traffic Light Protocol (TLP). */
|
|
1567
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
export const CreateRequestPriorityRequest =
|
|
1571
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1572
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1573
|
+
labels: Schema.Array(Schema.String),
|
|
1574
|
+
priority: Schema.Number,
|
|
1575
|
+
requirement: Schema.String,
|
|
1576
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
1577
|
+
}).pipe(
|
|
1578
|
+
T.Http({
|
|
1579
|
+
method: "POST",
|
|
1580
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/priority/new",
|
|
1581
|
+
}),
|
|
1582
|
+
) as unknown as Schema.Schema<CreateRequestPriorityRequest>;
|
|
1583
|
+
|
|
1584
|
+
export interface CreateRequestPriorityResponse {
|
|
1585
|
+
/** UUID. */
|
|
1586
|
+
id: string;
|
|
1587
|
+
/** Priority creation time. */
|
|
1588
|
+
created: string;
|
|
1589
|
+
/** List of labels. */
|
|
1590
|
+
labels: string[];
|
|
1591
|
+
/** Priority. */
|
|
1592
|
+
priority: number;
|
|
1593
|
+
/** Requirement. */
|
|
1594
|
+
requirement: string;
|
|
1595
|
+
/** The CISA defined Traffic Light Protocol (TLP). */
|
|
1596
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
1597
|
+
/** Priority last updated time. */
|
|
1598
|
+
updated: string;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export const CreateRequestPriorityResponse =
|
|
1602
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1603
|
+
id: Schema.String,
|
|
1604
|
+
created: Schema.String,
|
|
1605
|
+
labels: Schema.Array(Schema.String),
|
|
1606
|
+
priority: Schema.Number,
|
|
1607
|
+
requirement: Schema.String,
|
|
1608
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
1609
|
+
updated: Schema.String,
|
|
1610
|
+
}) as unknown as Schema.Schema<CreateRequestPriorityResponse>;
|
|
1611
|
+
|
|
1612
|
+
export type CreateRequestPriorityError = DefaultErrors;
|
|
1613
|
+
|
|
1614
|
+
export const createRequestPriority: API.OperationMethod<
|
|
1615
|
+
CreateRequestPriorityRequest,
|
|
1616
|
+
CreateRequestPriorityResponse,
|
|
1617
|
+
CreateRequestPriorityError,
|
|
1618
|
+
Credentials | HttpClient.HttpClient
|
|
1619
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1620
|
+
input: CreateRequestPriorityRequest,
|
|
1621
|
+
output: CreateRequestPriorityResponse,
|
|
1622
|
+
errors: [],
|
|
1623
|
+
}));
|
|
1624
|
+
|
|
1625
|
+
export interface UpdateRequestPriorityRequest {
|
|
1626
|
+
priorityId: string;
|
|
1627
|
+
/** Path param: Identifier. */
|
|
1628
|
+
accountId: string;
|
|
1629
|
+
/** Body param: List of labels. */
|
|
1630
|
+
labels: string[];
|
|
1631
|
+
/** Body param: Priority. */
|
|
1632
|
+
priority: number;
|
|
1633
|
+
/** Body param: Requirement. */
|
|
1634
|
+
requirement: string;
|
|
1635
|
+
/** Body param: The CISA defined Traffic Light Protocol (TLP). */
|
|
1636
|
+
tlp: "clear" | "amber" | "amber-strict" | "green" | "red";
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
export const UpdateRequestPriorityRequest =
|
|
1640
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1641
|
+
priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
|
|
1642
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1643
|
+
labels: Schema.Array(Schema.String),
|
|
1644
|
+
priority: Schema.Number,
|
|
1645
|
+
requirement: Schema.String,
|
|
1646
|
+
tlp: Schema.Literals(["clear", "amber", "amber-strict", "green", "red"]),
|
|
1647
|
+
}).pipe(
|
|
1648
|
+
T.Http({
|
|
1649
|
+
method: "PUT",
|
|
1650
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
|
|
1651
|
+
}),
|
|
1652
|
+
) as unknown as Schema.Schema<UpdateRequestPriorityRequest>;
|
|
1653
|
+
|
|
1654
|
+
export type UpdateRequestPriorityResponse = unknown;
|
|
1655
|
+
|
|
1656
|
+
export const UpdateRequestPriorityResponse =
|
|
1657
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<UpdateRequestPriorityResponse>;
|
|
1658
|
+
|
|
1659
|
+
export type UpdateRequestPriorityError = DefaultErrors;
|
|
1660
|
+
|
|
1661
|
+
export const updateRequestPriority: API.OperationMethod<
|
|
1662
|
+
UpdateRequestPriorityRequest,
|
|
1663
|
+
UpdateRequestPriorityResponse,
|
|
1664
|
+
UpdateRequestPriorityError,
|
|
1665
|
+
Credentials | HttpClient.HttpClient
|
|
1666
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1667
|
+
input: UpdateRequestPriorityRequest,
|
|
1668
|
+
output: UpdateRequestPriorityResponse,
|
|
1669
|
+
errors: [],
|
|
1670
|
+
}));
|
|
1671
|
+
|
|
1672
|
+
export interface DeleteRequestPriorityRequest {
|
|
1673
|
+
priorityId: string;
|
|
1674
|
+
/** Identifier. */
|
|
1675
|
+
accountId: string;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
export const DeleteRequestPriorityRequest =
|
|
1679
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1680
|
+
priorityId: Schema.String.pipe(T.HttpPath("priorityId")),
|
|
1681
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1682
|
+
}).pipe(
|
|
1683
|
+
T.Http({
|
|
1684
|
+
method: "DELETE",
|
|
1685
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/priority/{priorityId}",
|
|
1686
|
+
}),
|
|
1687
|
+
) as unknown as Schema.Schema<DeleteRequestPriorityRequest>;
|
|
1688
|
+
|
|
1689
|
+
export interface DeleteRequestPriorityResponse {
|
|
1690
|
+
errors: {
|
|
1691
|
+
code: number;
|
|
1692
|
+
message: string;
|
|
1693
|
+
documentationUrl?: string | null;
|
|
1694
|
+
source?: { pointer?: string | null } | null;
|
|
1695
|
+
}[];
|
|
1696
|
+
messages: {
|
|
1697
|
+
code: number;
|
|
1698
|
+
message: string;
|
|
1699
|
+
documentationUrl?: string | null;
|
|
1700
|
+
source?: { pointer?: string | null } | null;
|
|
1701
|
+
}[];
|
|
1702
|
+
/** Whether the API call was successful. */
|
|
1703
|
+
success: true;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export const DeleteRequestPriorityResponse =
|
|
1707
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1708
|
+
errors: Schema.Array(
|
|
1709
|
+
Schema.Struct({
|
|
1710
|
+
code: Schema.Number,
|
|
1711
|
+
message: Schema.String,
|
|
1712
|
+
documentationUrl: Schema.optional(
|
|
1713
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1714
|
+
),
|
|
1715
|
+
source: Schema.optional(
|
|
1716
|
+
Schema.Union([
|
|
1717
|
+
Schema.Struct({
|
|
1718
|
+
pointer: Schema.optional(
|
|
1719
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1720
|
+
),
|
|
1721
|
+
}),
|
|
1722
|
+
Schema.Null,
|
|
1723
|
+
]),
|
|
1724
|
+
),
|
|
1725
|
+
}).pipe(
|
|
1726
|
+
Schema.encodeKeys({
|
|
1727
|
+
code: "code",
|
|
1728
|
+
message: "message",
|
|
1729
|
+
documentationUrl: "documentation_url",
|
|
1730
|
+
source: "source",
|
|
1731
|
+
}),
|
|
1732
|
+
),
|
|
1733
|
+
),
|
|
1734
|
+
messages: Schema.Array(
|
|
1735
|
+
Schema.Struct({
|
|
1736
|
+
code: Schema.Number,
|
|
1737
|
+
message: Schema.String,
|
|
1738
|
+
documentationUrl: Schema.optional(
|
|
1739
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1740
|
+
),
|
|
1741
|
+
source: Schema.optional(
|
|
1742
|
+
Schema.Union([
|
|
1743
|
+
Schema.Struct({
|
|
1744
|
+
pointer: Schema.optional(
|
|
1745
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1746
|
+
),
|
|
1747
|
+
}),
|
|
1748
|
+
Schema.Null,
|
|
1749
|
+
]),
|
|
1750
|
+
),
|
|
1751
|
+
}).pipe(
|
|
1752
|
+
Schema.encodeKeys({
|
|
1753
|
+
code: "code",
|
|
1754
|
+
message: "message",
|
|
1755
|
+
documentationUrl: "documentation_url",
|
|
1756
|
+
source: "source",
|
|
1757
|
+
}),
|
|
1758
|
+
),
|
|
1759
|
+
),
|
|
1760
|
+
success: Schema.Literal(true),
|
|
1761
|
+
}) as unknown as Schema.Schema<DeleteRequestPriorityResponse>;
|
|
1762
|
+
|
|
1763
|
+
export type DeleteRequestPriorityError = DefaultErrors;
|
|
1764
|
+
|
|
1765
|
+
export const deleteRequestPriority: API.OperationMethod<
|
|
1766
|
+
DeleteRequestPriorityRequest,
|
|
1767
|
+
DeleteRequestPriorityResponse,
|
|
1768
|
+
DeleteRequestPriorityError,
|
|
1769
|
+
Credentials | HttpClient.HttpClient
|
|
1770
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1771
|
+
input: DeleteRequestPriorityRequest,
|
|
1772
|
+
output: DeleteRequestPriorityResponse,
|
|
1773
|
+
errors: [],
|
|
1774
|
+
}));
|
|
1775
|
+
|
|
1776
|
+
export interface QuotaRequestPriorityRequest {
|
|
1777
|
+
/** Identifier. */
|
|
1778
|
+
accountId: string;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
export const QuotaRequestPriorityRequest =
|
|
1782
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1783
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1784
|
+
}).pipe(
|
|
1785
|
+
T.Http({
|
|
1786
|
+
method: "GET",
|
|
1787
|
+
path: "/accounts/{account_id}/cloudforce-one/requests/priority/quota",
|
|
1788
|
+
}),
|
|
1789
|
+
) as unknown as Schema.Schema<QuotaRequestPriorityRequest>;
|
|
1790
|
+
|
|
1791
|
+
export type QuotaRequestPriorityResponse = unknown;
|
|
1792
|
+
|
|
1793
|
+
export const QuotaRequestPriorityResponse =
|
|
1794
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<QuotaRequestPriorityResponse>;
|
|
1795
|
+
|
|
1796
|
+
export type QuotaRequestPriorityError = DefaultErrors;
|
|
1797
|
+
|
|
1798
|
+
export const quotaRequestPriority: API.OperationMethod<
|
|
1799
|
+
QuotaRequestPriorityRequest,
|
|
1800
|
+
QuotaRequestPriorityResponse,
|
|
1801
|
+
QuotaRequestPriorityError,
|
|
1802
|
+
Credentials | HttpClient.HttpClient
|
|
1803
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1804
|
+
input: QuotaRequestPriorityRequest,
|
|
1805
|
+
output: QuotaRequestPriorityResponse,
|
|
1806
|
+
errors: [],
|
|
1807
|
+
}));
|
|
1808
|
+
|
|
1809
|
+
// =============================================================================
|
|
1810
|
+
// ScanConfig
|
|
1811
|
+
// =============================================================================
|
|
1812
|
+
|
|
1813
|
+
export interface ListScanConfigsRequest {
|
|
1814
|
+
/** Defines the Account ID. */
|
|
1815
|
+
accountId: string;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
export const ListScanConfigsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1819
|
+
{
|
|
1820
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1821
|
+
},
|
|
1822
|
+
).pipe(
|
|
1823
|
+
T.Http({
|
|
1824
|
+
method: "GET",
|
|
1825
|
+
path: "/accounts/{account_id}/cloudforce-one/scans/config",
|
|
1826
|
+
}),
|
|
1827
|
+
) as unknown as Schema.Schema<ListScanConfigsRequest>;
|
|
1828
|
+
|
|
1829
|
+
export type ListScanConfigsResponse = {
|
|
1830
|
+
id: string;
|
|
1831
|
+
accountId: string;
|
|
1832
|
+
frequency: number;
|
|
1833
|
+
ips: string[];
|
|
1834
|
+
ports: string[];
|
|
1835
|
+
}[];
|
|
1836
|
+
|
|
1837
|
+
export const ListScanConfigsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1838
|
+
Schema.Struct({
|
|
1839
|
+
id: Schema.String,
|
|
1840
|
+
accountId: Schema.String,
|
|
1841
|
+
frequency: Schema.Number,
|
|
1842
|
+
ips: Schema.Array(Schema.String),
|
|
1843
|
+
ports: Schema.Array(Schema.String),
|
|
1844
|
+
}).pipe(
|
|
1845
|
+
Schema.encodeKeys({
|
|
1846
|
+
id: "id",
|
|
1847
|
+
accountId: "account_id",
|
|
1848
|
+
frequency: "frequency",
|
|
1849
|
+
ips: "ips",
|
|
1850
|
+
ports: "ports",
|
|
1851
|
+
}),
|
|
1852
|
+
),
|
|
1853
|
+
) as unknown as Schema.Schema<ListScanConfigsResponse>;
|
|
1854
|
+
|
|
1855
|
+
export type ListScanConfigsError = DefaultErrors;
|
|
1856
|
+
|
|
1857
|
+
export const listScanConfigs: API.OperationMethod<
|
|
1858
|
+
ListScanConfigsRequest,
|
|
1859
|
+
ListScanConfigsResponse,
|
|
1860
|
+
ListScanConfigsError,
|
|
1861
|
+
Credentials | HttpClient.HttpClient
|
|
1862
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1863
|
+
input: ListScanConfigsRequest,
|
|
1864
|
+
output: ListScanConfigsResponse,
|
|
1865
|
+
errors: [],
|
|
1866
|
+
}));
|
|
1867
|
+
|
|
1868
|
+
export interface CreateScanConfigRequest {
|
|
1869
|
+
/** Path param: Defines the Account ID. */
|
|
1870
|
+
accountId: string;
|
|
1871
|
+
/** Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
|
|
1872
|
+
ips: string[];
|
|
1873
|
+
/** Body param: Defines the number of days between each scan (0 = One-off scan). */
|
|
1874
|
+
frequency?: number;
|
|
1875
|
+
/** Body param: Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open */
|
|
1876
|
+
ports?: string[];
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export const CreateScanConfigRequest =
|
|
1880
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1881
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1882
|
+
ips: Schema.Array(Schema.String),
|
|
1883
|
+
frequency: Schema.optional(Schema.Number),
|
|
1884
|
+
ports: Schema.optional(Schema.Array(Schema.String)),
|
|
1885
|
+
}).pipe(
|
|
1886
|
+
T.Http({
|
|
1887
|
+
method: "POST",
|
|
1888
|
+
path: "/accounts/{account_id}/cloudforce-one/scans/config",
|
|
1889
|
+
}),
|
|
1890
|
+
) as unknown as Schema.Schema<CreateScanConfigRequest>;
|
|
1891
|
+
|
|
1892
|
+
export interface CreateScanConfigResponse {
|
|
1893
|
+
/** Defines the Config ID. */
|
|
1894
|
+
id: string;
|
|
1895
|
+
accountId: string;
|
|
1896
|
+
/** Defines the number of days between each scan (0 = One-off scan). */
|
|
1897
|
+
frequency: number;
|
|
1898
|
+
/** Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
|
|
1899
|
+
ips: string[];
|
|
1900
|
+
/** Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports. */
|
|
1901
|
+
ports: string[];
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export const CreateScanConfigResponse =
|
|
1905
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1906
|
+
id: Schema.String,
|
|
1907
|
+
accountId: Schema.String,
|
|
1908
|
+
frequency: Schema.Number,
|
|
1909
|
+
ips: Schema.Array(Schema.String),
|
|
1910
|
+
ports: Schema.Array(Schema.String),
|
|
1911
|
+
}).pipe(
|
|
1912
|
+
Schema.encodeKeys({
|
|
1913
|
+
id: "id",
|
|
1914
|
+
accountId: "account_id",
|
|
1915
|
+
frequency: "frequency",
|
|
1916
|
+
ips: "ips",
|
|
1917
|
+
ports: "ports",
|
|
1918
|
+
}),
|
|
1919
|
+
) as unknown as Schema.Schema<CreateScanConfigResponse>;
|
|
1920
|
+
|
|
1921
|
+
export type CreateScanConfigError = DefaultErrors;
|
|
1922
|
+
|
|
1923
|
+
export const createScanConfig: API.OperationMethod<
|
|
1924
|
+
CreateScanConfigRequest,
|
|
1925
|
+
CreateScanConfigResponse,
|
|
1926
|
+
CreateScanConfigError,
|
|
1927
|
+
Credentials | HttpClient.HttpClient
|
|
1928
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1929
|
+
input: CreateScanConfigRequest,
|
|
1930
|
+
output: CreateScanConfigResponse,
|
|
1931
|
+
errors: [],
|
|
1932
|
+
}));
|
|
1933
|
+
|
|
1934
|
+
export interface PatchScanConfigRequest {
|
|
1935
|
+
configId: string;
|
|
1936
|
+
/** Path param: Defines the Account ID. */
|
|
1937
|
+
accountId: string;
|
|
1938
|
+
/** Body param: Defines the number of days between each scan (0 = One-off scan). */
|
|
1939
|
+
frequency?: number;
|
|
1940
|
+
/** Body param: Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
|
|
1941
|
+
ips?: string[];
|
|
1942
|
+
/** Body param: Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open */
|
|
1943
|
+
ports?: string[];
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
export const PatchScanConfigRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1947
|
+
{
|
|
1948
|
+
configId: Schema.String.pipe(T.HttpPath("configId")),
|
|
1949
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1950
|
+
frequency: Schema.optional(Schema.Number),
|
|
1951
|
+
ips: Schema.optional(Schema.Array(Schema.String)),
|
|
1952
|
+
ports: Schema.optional(Schema.Array(Schema.String)),
|
|
1953
|
+
},
|
|
1954
|
+
).pipe(
|
|
1955
|
+
T.Http({
|
|
1956
|
+
method: "PATCH",
|
|
1957
|
+
path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
|
|
1958
|
+
}),
|
|
1959
|
+
) as unknown as Schema.Schema<PatchScanConfigRequest>;
|
|
1960
|
+
|
|
1961
|
+
export interface PatchScanConfigResponse {
|
|
1962
|
+
/** Defines the Config ID. */
|
|
1963
|
+
id: string;
|
|
1964
|
+
accountId: string;
|
|
1965
|
+
/** Defines the number of days between each scan (0 = One-off scan). */
|
|
1966
|
+
frequency: number;
|
|
1967
|
+
/** Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000. */
|
|
1968
|
+
ips: string[];
|
|
1969
|
+
/** Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports. */
|
|
1970
|
+
ports: string[];
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
export const PatchScanConfigResponse =
|
|
1974
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1975
|
+
id: Schema.String,
|
|
1976
|
+
accountId: Schema.String,
|
|
1977
|
+
frequency: Schema.Number,
|
|
1978
|
+
ips: Schema.Array(Schema.String),
|
|
1979
|
+
ports: Schema.Array(Schema.String),
|
|
1980
|
+
}).pipe(
|
|
1981
|
+
Schema.encodeKeys({
|
|
1982
|
+
id: "id",
|
|
1983
|
+
accountId: "account_id",
|
|
1984
|
+
frequency: "frequency",
|
|
1985
|
+
ips: "ips",
|
|
1986
|
+
ports: "ports",
|
|
1987
|
+
}),
|
|
1988
|
+
) as unknown as Schema.Schema<PatchScanConfigResponse>;
|
|
1989
|
+
|
|
1990
|
+
export type PatchScanConfigError = DefaultErrors;
|
|
1991
|
+
|
|
1992
|
+
export const patchScanConfig: API.OperationMethod<
|
|
1993
|
+
PatchScanConfigRequest,
|
|
1994
|
+
PatchScanConfigResponse,
|
|
1995
|
+
PatchScanConfigError,
|
|
1996
|
+
Credentials | HttpClient.HttpClient
|
|
1997
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1998
|
+
input: PatchScanConfigRequest,
|
|
1999
|
+
output: PatchScanConfigResponse,
|
|
2000
|
+
errors: [],
|
|
2001
|
+
}));
|
|
2002
|
+
|
|
2003
|
+
export interface DeleteScanConfigRequest {
|
|
2004
|
+
configId: string;
|
|
2005
|
+
/** Defines the Account ID. */
|
|
2006
|
+
accountId: string;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
export const DeleteScanConfigRequest =
|
|
2010
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2011
|
+
configId: Schema.String.pipe(T.HttpPath("configId")),
|
|
2012
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2013
|
+
}).pipe(
|
|
2014
|
+
T.Http({
|
|
2015
|
+
method: "DELETE",
|
|
2016
|
+
path: "/accounts/{account_id}/cloudforce-one/scans/config/{configId}",
|
|
2017
|
+
}),
|
|
2018
|
+
) as unknown as Schema.Schema<DeleteScanConfigRequest>;
|
|
2019
|
+
|
|
2020
|
+
export type DeleteScanConfigResponse = unknown;
|
|
2021
|
+
|
|
2022
|
+
export const DeleteScanConfigResponse =
|
|
2023
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteScanConfigResponse>;
|
|
2024
|
+
|
|
2025
|
+
export type DeleteScanConfigError = DefaultErrors;
|
|
2026
|
+
|
|
2027
|
+
export const deleteScanConfig: API.OperationMethod<
|
|
2028
|
+
DeleteScanConfigRequest,
|
|
2029
|
+
DeleteScanConfigResponse,
|
|
2030
|
+
DeleteScanConfigError,
|
|
2031
|
+
Credentials | HttpClient.HttpClient
|
|
2032
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2033
|
+
input: DeleteScanConfigRequest,
|
|
2034
|
+
output: DeleteScanConfigResponse,
|
|
2035
|
+
errors: [],
|
|
2036
|
+
}));
|
|
2037
|
+
|
|
2038
|
+
// =============================================================================
|
|
2039
|
+
// ScanResult
|
|
2040
|
+
// =============================================================================
|
|
2041
|
+
|
|
2042
|
+
export interface GetScanResultRequest {
|
|
2043
|
+
configId: string;
|
|
2044
|
+
/** Defines the Account ID. */
|
|
2045
|
+
accountId: string;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
export const GetScanResultRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2049
|
+
configId: Schema.String.pipe(T.HttpPath("configId")),
|
|
2050
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2051
|
+
}).pipe(
|
|
2052
|
+
T.Http({
|
|
2053
|
+
method: "GET",
|
|
2054
|
+
path: "/accounts/{account_id}/cloudforce-one/scans/results/{configId}",
|
|
2055
|
+
}),
|
|
2056
|
+
) as unknown as Schema.Schema<GetScanResultRequest>;
|
|
2057
|
+
|
|
2058
|
+
export interface GetScanResultResponse {
|
|
2059
|
+
"1.1.1.1": {
|
|
2060
|
+
number?: number | null;
|
|
2061
|
+
proto?: string | null;
|
|
2062
|
+
status?: string | null;
|
|
2063
|
+
}[];
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export const GetScanResultResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2067
|
+
"1.1.1.1": Schema.Array(
|
|
2068
|
+
Schema.Struct({
|
|
2069
|
+
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2070
|
+
proto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2071
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2072
|
+
}),
|
|
2073
|
+
),
|
|
2074
|
+
}) as unknown as Schema.Schema<GetScanResultResponse>;
|
|
2075
|
+
|
|
2076
|
+
export type GetScanResultError = DefaultErrors;
|
|
2077
|
+
|
|
2078
|
+
export const getScanResult: API.OperationMethod<
|
|
2079
|
+
GetScanResultRequest,
|
|
2080
|
+
GetScanResultResponse,
|
|
2081
|
+
GetScanResultError,
|
|
2082
|
+
Credentials | HttpClient.HttpClient
|
|
2083
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2084
|
+
input: GetScanResultRequest,
|
|
2085
|
+
output: GetScanResultResponse,
|
|
2086
|
+
errors: [],
|
|
2087
|
+
}));
|
|
2088
|
+
|
|
2089
|
+
// =============================================================================
|
|
2090
|
+
// ThreatEvent
|
|
2091
|
+
// =============================================================================
|
|
2092
|
+
|
|
2093
|
+
export interface GetThreatEventRequest {
|
|
2094
|
+
eventId: string;
|
|
2095
|
+
/** Account ID. */
|
|
2096
|
+
accountId: string;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
export const GetThreatEventRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2100
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
2101
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2102
|
+
}).pipe(
|
|
2103
|
+
T.Http({
|
|
2104
|
+
method: "GET",
|
|
2105
|
+
path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
|
|
2106
|
+
}),
|
|
2107
|
+
) as unknown as Schema.Schema<GetThreatEventRequest>;
|
|
2108
|
+
|
|
2109
|
+
export interface GetThreatEventResponse {
|
|
2110
|
+
attacker: string;
|
|
2111
|
+
attackerCountry: string;
|
|
2112
|
+
category: string;
|
|
2113
|
+
date: string;
|
|
2114
|
+
event: string;
|
|
2115
|
+
hasChildren: boolean;
|
|
2116
|
+
indicator: string;
|
|
2117
|
+
indicatorType: string;
|
|
2118
|
+
indicatorTypeId: number;
|
|
2119
|
+
killChain: number;
|
|
2120
|
+
mitreAttack: string[];
|
|
2121
|
+
numReferenced: number;
|
|
2122
|
+
numReferences: number;
|
|
2123
|
+
rawId: string;
|
|
2124
|
+
referenced: string[];
|
|
2125
|
+
referencedIds: number[];
|
|
2126
|
+
references: string[];
|
|
2127
|
+
referencesIds: number[];
|
|
2128
|
+
tags: string[];
|
|
2129
|
+
targetCountry: string;
|
|
2130
|
+
targetIndustry: string;
|
|
2131
|
+
tlp: string;
|
|
2132
|
+
uuid: string;
|
|
2133
|
+
insight?: string | null;
|
|
2134
|
+
releasabilityId?: string | null;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
export const GetThreatEventResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2138
|
+
{
|
|
2139
|
+
attacker: Schema.String,
|
|
2140
|
+
attackerCountry: Schema.String,
|
|
2141
|
+
category: Schema.String,
|
|
2142
|
+
date: Schema.String,
|
|
2143
|
+
event: Schema.String,
|
|
2144
|
+
hasChildren: Schema.Boolean,
|
|
2145
|
+
indicator: Schema.String,
|
|
2146
|
+
indicatorType: Schema.String,
|
|
2147
|
+
indicatorTypeId: Schema.Number,
|
|
2148
|
+
killChain: Schema.Number,
|
|
2149
|
+
mitreAttack: Schema.Array(Schema.String),
|
|
2150
|
+
numReferenced: Schema.Number,
|
|
2151
|
+
numReferences: Schema.Number,
|
|
2152
|
+
rawId: Schema.String,
|
|
2153
|
+
referenced: Schema.Array(Schema.String),
|
|
2154
|
+
referencedIds: Schema.Array(Schema.Number),
|
|
2155
|
+
references: Schema.Array(Schema.String),
|
|
2156
|
+
referencesIds: Schema.Array(Schema.Number),
|
|
2157
|
+
tags: Schema.Array(Schema.String),
|
|
2158
|
+
targetCountry: Schema.String,
|
|
2159
|
+
targetIndustry: Schema.String,
|
|
2160
|
+
tlp: Schema.String,
|
|
2161
|
+
uuid: Schema.String,
|
|
2162
|
+
insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2163
|
+
releasabilityId: Schema.optional(
|
|
2164
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2165
|
+
),
|
|
2166
|
+
},
|
|
2167
|
+
) as unknown as Schema.Schema<GetThreatEventResponse>;
|
|
2168
|
+
|
|
2169
|
+
export type GetThreatEventError = DefaultErrors;
|
|
2170
|
+
|
|
2171
|
+
export const getThreatEvent: API.OperationMethod<
|
|
2172
|
+
GetThreatEventRequest,
|
|
2173
|
+
GetThreatEventResponse,
|
|
2174
|
+
GetThreatEventError,
|
|
2175
|
+
Credentials | HttpClient.HttpClient
|
|
2176
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2177
|
+
input: GetThreatEventRequest,
|
|
2178
|
+
output: GetThreatEventResponse,
|
|
2179
|
+
errors: [],
|
|
2180
|
+
}));
|
|
2181
|
+
|
|
2182
|
+
export interface ListThreatEventsRequest {
|
|
2183
|
+
/** Path param: Account ID. */
|
|
2184
|
+
accountId: string;
|
|
2185
|
+
/** Query param: */
|
|
2186
|
+
datasetId?: string[];
|
|
2187
|
+
/** Query param: */
|
|
2188
|
+
forceRefresh?: boolean;
|
|
2189
|
+
/** Query param: */
|
|
2190
|
+
format?: "json" | "stix2";
|
|
2191
|
+
/** Query param: */
|
|
2192
|
+
order?: "asc" | "desc";
|
|
2193
|
+
/** Query param: */
|
|
2194
|
+
orderBy?: string;
|
|
2195
|
+
/** Query param: */
|
|
2196
|
+
page?: number;
|
|
2197
|
+
/** Query param: */
|
|
2198
|
+
pageSize?: number;
|
|
2199
|
+
/** Query param: */
|
|
2200
|
+
search?: {
|
|
2201
|
+
field?: string;
|
|
2202
|
+
op?:
|
|
2203
|
+
| "equals"
|
|
2204
|
+
| "not"
|
|
2205
|
+
| "gt"
|
|
2206
|
+
| "gte"
|
|
2207
|
+
| "lt"
|
|
2208
|
+
| "lte"
|
|
2209
|
+
| "like"
|
|
2210
|
+
| "contains"
|
|
2211
|
+
| "startsWith"
|
|
2212
|
+
| "endsWith"
|
|
2213
|
+
| "in"
|
|
2214
|
+
| "find";
|
|
2215
|
+
value?: string | number | (string | number)[];
|
|
2216
|
+
}[];
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
export const ListThreatEventsRequest =
|
|
2220
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2221
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2222
|
+
datasetId: Schema.optional(Schema.Array(Schema.String)).pipe(
|
|
2223
|
+
T.HttpQuery("datasetId"),
|
|
2224
|
+
),
|
|
2225
|
+
forceRefresh: Schema.optional(Schema.Boolean).pipe(
|
|
2226
|
+
T.HttpQuery("forceRefresh"),
|
|
2227
|
+
),
|
|
2228
|
+
format: Schema.optional(Schema.Literals(["json", "stix2"])).pipe(
|
|
2229
|
+
T.HttpQuery("format"),
|
|
2230
|
+
),
|
|
2231
|
+
order: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
2232
|
+
T.HttpQuery("order"),
|
|
2233
|
+
),
|
|
2234
|
+
orderBy: Schema.optional(Schema.String).pipe(T.HttpQuery("orderBy")),
|
|
2235
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2236
|
+
pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("pageSize")),
|
|
2237
|
+
search: Schema.optional(
|
|
2238
|
+
Schema.Array(
|
|
2239
|
+
Schema.Struct({
|
|
2240
|
+
field: Schema.optional(Schema.String),
|
|
2241
|
+
op: Schema.optional(
|
|
2242
|
+
Schema.Literals([
|
|
2243
|
+
"equals",
|
|
2244
|
+
"not",
|
|
2245
|
+
"gt",
|
|
2246
|
+
"gte",
|
|
2247
|
+
"lt",
|
|
2248
|
+
"lte",
|
|
2249
|
+
"like",
|
|
2250
|
+
"contains",
|
|
2251
|
+
"startsWith",
|
|
2252
|
+
"endsWith",
|
|
2253
|
+
"in",
|
|
2254
|
+
"find",
|
|
2255
|
+
]),
|
|
2256
|
+
),
|
|
2257
|
+
value: Schema.optional(
|
|
2258
|
+
Schema.Union([
|
|
2259
|
+
Schema.String,
|
|
2260
|
+
Schema.Number,
|
|
2261
|
+
Schema.Array(Schema.Union([Schema.String, Schema.Number])),
|
|
2262
|
+
]),
|
|
2263
|
+
),
|
|
2264
|
+
}),
|
|
2265
|
+
),
|
|
2266
|
+
).pipe(T.HttpQuery("search")),
|
|
2267
|
+
}).pipe(
|
|
2268
|
+
T.Http({
|
|
2269
|
+
method: "GET",
|
|
2270
|
+
path: "/accounts/{account_id}/cloudforce-one/events",
|
|
2271
|
+
}),
|
|
2272
|
+
) as unknown as Schema.Schema<ListThreatEventsRequest>;
|
|
2273
|
+
|
|
2274
|
+
export type ListThreatEventsResponse = {
|
|
2275
|
+
attacker: string;
|
|
2276
|
+
attackerCountry: string;
|
|
2277
|
+
category: string;
|
|
2278
|
+
date: string;
|
|
2279
|
+
event: string;
|
|
2280
|
+
hasChildren: boolean;
|
|
2281
|
+
indicator: string;
|
|
2282
|
+
indicatorType: string;
|
|
2283
|
+
indicatorTypeId: number;
|
|
2284
|
+
killChain: number;
|
|
2285
|
+
mitreAttack: string[];
|
|
2286
|
+
numReferenced: number;
|
|
2287
|
+
numReferences: number;
|
|
2288
|
+
rawId: string;
|
|
2289
|
+
referenced: string[];
|
|
2290
|
+
referencedIds: number[];
|
|
2291
|
+
references: string[];
|
|
2292
|
+
referencesIds: number[];
|
|
2293
|
+
tags: string[];
|
|
2294
|
+
targetCountry: string;
|
|
2295
|
+
targetIndustry: string;
|
|
2296
|
+
tlp: string;
|
|
2297
|
+
uuid: string;
|
|
2298
|
+
insight?: string | null;
|
|
2299
|
+
releasabilityId?: string | null;
|
|
2300
|
+
}[];
|
|
2301
|
+
|
|
2302
|
+
export const ListThreatEventsResponse =
|
|
2303
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
2304
|
+
Schema.Struct({
|
|
2305
|
+
attacker: Schema.String,
|
|
2306
|
+
attackerCountry: Schema.String,
|
|
2307
|
+
category: Schema.String,
|
|
2308
|
+
date: Schema.String,
|
|
2309
|
+
event: Schema.String,
|
|
2310
|
+
hasChildren: Schema.Boolean,
|
|
2311
|
+
indicator: Schema.String,
|
|
2312
|
+
indicatorType: Schema.String,
|
|
2313
|
+
indicatorTypeId: Schema.Number,
|
|
2314
|
+
killChain: Schema.Number,
|
|
2315
|
+
mitreAttack: Schema.Array(Schema.String),
|
|
2316
|
+
numReferenced: Schema.Number,
|
|
2317
|
+
numReferences: Schema.Number,
|
|
2318
|
+
rawId: Schema.String,
|
|
2319
|
+
referenced: Schema.Array(Schema.String),
|
|
2320
|
+
referencedIds: Schema.Array(Schema.Number),
|
|
2321
|
+
references: Schema.Array(Schema.String),
|
|
2322
|
+
referencesIds: Schema.Array(Schema.Number),
|
|
2323
|
+
tags: Schema.Array(Schema.String),
|
|
2324
|
+
targetCountry: Schema.String,
|
|
2325
|
+
targetIndustry: Schema.String,
|
|
2326
|
+
tlp: Schema.String,
|
|
2327
|
+
uuid: Schema.String,
|
|
2328
|
+
insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2329
|
+
releasabilityId: Schema.optional(
|
|
2330
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2331
|
+
),
|
|
2332
|
+
}),
|
|
2333
|
+
) as unknown as Schema.Schema<ListThreatEventsResponse>;
|
|
2334
|
+
|
|
2335
|
+
export type ListThreatEventsError = DefaultErrors;
|
|
2336
|
+
|
|
2337
|
+
export const listThreatEvents: API.OperationMethod<
|
|
2338
|
+
ListThreatEventsRequest,
|
|
2339
|
+
ListThreatEventsResponse,
|
|
2340
|
+
ListThreatEventsError,
|
|
2341
|
+
Credentials | HttpClient.HttpClient
|
|
2342
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2343
|
+
input: ListThreatEventsRequest,
|
|
2344
|
+
output: ListThreatEventsResponse,
|
|
2345
|
+
errors: [],
|
|
2346
|
+
}));
|
|
2347
|
+
|
|
2348
|
+
export interface CreateThreatEventRequest {
|
|
2349
|
+
/** Path param: Account ID. */
|
|
2350
|
+
accountId: string;
|
|
2351
|
+
/** Body param: */
|
|
2352
|
+
category: string;
|
|
2353
|
+
/** Body param: */
|
|
2354
|
+
date: string;
|
|
2355
|
+
/** Body param: */
|
|
2356
|
+
event: string;
|
|
2357
|
+
/** Body param: */
|
|
2358
|
+
raw: { data: Record<string, unknown> | null; source?: string; tlp?: string };
|
|
2359
|
+
/** Body param: */
|
|
2360
|
+
tlp: string;
|
|
2361
|
+
/** Body param: */
|
|
2362
|
+
attacker?: string | null;
|
|
2363
|
+
/** Body param: */
|
|
2364
|
+
attackerCountry?: string;
|
|
2365
|
+
/** Body param: */
|
|
2366
|
+
datasetId?: string;
|
|
2367
|
+
/** Body param: */
|
|
2368
|
+
indicator?: string;
|
|
2369
|
+
/** Body param: Array of indicators for this event. Supports multiple indicators per event for complex scenarios. */
|
|
2370
|
+
indicators?: { indicatorType: string; value: string }[];
|
|
2371
|
+
/** Body param: */
|
|
2372
|
+
indicatorType?: string;
|
|
2373
|
+
/** Body param: */
|
|
2374
|
+
insight?: string;
|
|
2375
|
+
/** Body param: */
|
|
2376
|
+
tags?: string[];
|
|
2377
|
+
/** Body param: */
|
|
2378
|
+
targetCountry?: string;
|
|
2379
|
+
/** Body param: */
|
|
2380
|
+
targetIndustry?: string;
|
|
2381
|
+
/** Body param: Optional UUID for the event. Only used when preserveUuid=true in bulk create. Must be a valid UUID format. */
|
|
2382
|
+
uuid?: string;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
export const CreateThreatEventRequest =
|
|
2386
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2387
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2388
|
+
category: Schema.String,
|
|
2389
|
+
date: Schema.String,
|
|
2390
|
+
event: Schema.String,
|
|
2391
|
+
raw: Schema.Struct({
|
|
2392
|
+
data: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
2393
|
+
source: Schema.optional(Schema.String),
|
|
2394
|
+
tlp: Schema.optional(Schema.String),
|
|
2395
|
+
}),
|
|
2396
|
+
tlp: Schema.String,
|
|
2397
|
+
attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2398
|
+
attackerCountry: Schema.optional(Schema.String),
|
|
2399
|
+
datasetId: Schema.optional(Schema.String),
|
|
2400
|
+
indicator: Schema.optional(Schema.String),
|
|
2401
|
+
indicators: Schema.optional(
|
|
2402
|
+
Schema.Array(
|
|
2403
|
+
Schema.Struct({
|
|
2404
|
+
indicatorType: Schema.String,
|
|
2405
|
+
value: Schema.String,
|
|
2406
|
+
}),
|
|
2407
|
+
),
|
|
2408
|
+
),
|
|
2409
|
+
indicatorType: Schema.optional(Schema.String),
|
|
2410
|
+
insight: Schema.optional(Schema.String),
|
|
2411
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2412
|
+
targetCountry: Schema.optional(Schema.String),
|
|
2413
|
+
targetIndustry: Schema.optional(Schema.String),
|
|
2414
|
+
uuid: Schema.optional(Schema.String),
|
|
2415
|
+
}).pipe(
|
|
2416
|
+
T.Http({
|
|
2417
|
+
method: "POST",
|
|
2418
|
+
path: "/accounts/{account_id}/cloudforce-one/events/create",
|
|
2419
|
+
}),
|
|
2420
|
+
) as unknown as Schema.Schema<CreateThreatEventRequest>;
|
|
2421
|
+
|
|
2422
|
+
export interface CreateThreatEventResponse {
|
|
2423
|
+
attacker: string;
|
|
2424
|
+
attackerCountry: string;
|
|
2425
|
+
category: string;
|
|
2426
|
+
date: string;
|
|
2427
|
+
event: string;
|
|
2428
|
+
hasChildren: boolean;
|
|
2429
|
+
indicator: string;
|
|
2430
|
+
indicatorType: string;
|
|
2431
|
+
indicatorTypeId: number;
|
|
2432
|
+
killChain: number;
|
|
2433
|
+
mitreAttack: string[];
|
|
2434
|
+
numReferenced: number;
|
|
2435
|
+
numReferences: number;
|
|
2436
|
+
rawId: string;
|
|
2437
|
+
referenced: string[];
|
|
2438
|
+
referencedIds: number[];
|
|
2439
|
+
references: string[];
|
|
2440
|
+
referencesIds: number[];
|
|
2441
|
+
tags: string[];
|
|
2442
|
+
targetCountry: string;
|
|
2443
|
+
targetIndustry: string;
|
|
2444
|
+
tlp: string;
|
|
2445
|
+
uuid: string;
|
|
2446
|
+
insight?: string | null;
|
|
2447
|
+
releasabilityId?: string | null;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
export const CreateThreatEventResponse =
|
|
2451
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2452
|
+
attacker: Schema.String,
|
|
2453
|
+
attackerCountry: Schema.String,
|
|
2454
|
+
category: Schema.String,
|
|
2455
|
+
date: Schema.String,
|
|
2456
|
+
event: Schema.String,
|
|
2457
|
+
hasChildren: Schema.Boolean,
|
|
2458
|
+
indicator: Schema.String,
|
|
2459
|
+
indicatorType: Schema.String,
|
|
2460
|
+
indicatorTypeId: Schema.Number,
|
|
2461
|
+
killChain: Schema.Number,
|
|
2462
|
+
mitreAttack: Schema.Array(Schema.String),
|
|
2463
|
+
numReferenced: Schema.Number,
|
|
2464
|
+
numReferences: Schema.Number,
|
|
2465
|
+
rawId: Schema.String,
|
|
2466
|
+
referenced: Schema.Array(Schema.String),
|
|
2467
|
+
referencedIds: Schema.Array(Schema.Number),
|
|
2468
|
+
references: Schema.Array(Schema.String),
|
|
2469
|
+
referencesIds: Schema.Array(Schema.Number),
|
|
2470
|
+
tags: Schema.Array(Schema.String),
|
|
2471
|
+
targetCountry: Schema.String,
|
|
2472
|
+
targetIndustry: Schema.String,
|
|
2473
|
+
tlp: Schema.String,
|
|
2474
|
+
uuid: Schema.String,
|
|
2475
|
+
insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2476
|
+
releasabilityId: Schema.optional(
|
|
2477
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2478
|
+
),
|
|
2479
|
+
}) as unknown as Schema.Schema<CreateThreatEventResponse>;
|
|
2480
|
+
|
|
2481
|
+
export type CreateThreatEventError = DefaultErrors;
|
|
2482
|
+
|
|
2483
|
+
export const createThreatEvent: API.OperationMethod<
|
|
2484
|
+
CreateThreatEventRequest,
|
|
2485
|
+
CreateThreatEventResponse,
|
|
2486
|
+
CreateThreatEventError,
|
|
2487
|
+
Credentials | HttpClient.HttpClient
|
|
2488
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2489
|
+
input: CreateThreatEventRequest,
|
|
2490
|
+
output: CreateThreatEventResponse,
|
|
2491
|
+
errors: [],
|
|
2492
|
+
}));
|
|
2493
|
+
|
|
2494
|
+
export interface PatchThreatEventRequest {
|
|
2495
|
+
eventId: string;
|
|
2496
|
+
/** Path param: Account ID. */
|
|
2497
|
+
accountId: string;
|
|
2498
|
+
/** Body param: */
|
|
2499
|
+
attacker?: string | null;
|
|
2500
|
+
/** Body param: */
|
|
2501
|
+
attackerCountry?: string;
|
|
2502
|
+
/** Body param: */
|
|
2503
|
+
category?: string;
|
|
2504
|
+
/** Body param: */
|
|
2505
|
+
createdAt?: string;
|
|
2506
|
+
/** Body param: */
|
|
2507
|
+
datasetId?: string;
|
|
2508
|
+
/** Body param: */
|
|
2509
|
+
date?: string;
|
|
2510
|
+
/** Body param: */
|
|
2511
|
+
event?: string;
|
|
2512
|
+
/** Body param: */
|
|
2513
|
+
indicator?: string;
|
|
2514
|
+
/** Body param: */
|
|
2515
|
+
indicatorType?: string;
|
|
2516
|
+
/** Body param: */
|
|
2517
|
+
insight?: string;
|
|
2518
|
+
/** Body param: */
|
|
2519
|
+
raw?: {
|
|
2520
|
+
data?: Record<string, unknown> | null;
|
|
2521
|
+
source?: string;
|
|
2522
|
+
tlp?: string;
|
|
2523
|
+
};
|
|
2524
|
+
/** Body param: */
|
|
2525
|
+
targetCountry?: string;
|
|
2526
|
+
/** Body param: */
|
|
2527
|
+
targetIndustry?: string;
|
|
2528
|
+
/** Body param: */
|
|
2529
|
+
tlp?: string;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
export const PatchThreatEventRequest =
|
|
2533
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2534
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
2535
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2536
|
+
attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2537
|
+
attackerCountry: Schema.optional(Schema.String),
|
|
2538
|
+
category: Schema.optional(Schema.String),
|
|
2539
|
+
createdAt: Schema.optional(Schema.String),
|
|
2540
|
+
datasetId: Schema.optional(Schema.String),
|
|
2541
|
+
date: Schema.optional(Schema.String),
|
|
2542
|
+
event: Schema.optional(Schema.String),
|
|
2543
|
+
indicator: Schema.optional(Schema.String),
|
|
2544
|
+
indicatorType: Schema.optional(Schema.String),
|
|
2545
|
+
insight: Schema.optional(Schema.String),
|
|
2546
|
+
raw: Schema.optional(
|
|
2547
|
+
Schema.Struct({
|
|
2548
|
+
data: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
2549
|
+
source: Schema.optional(Schema.String),
|
|
2550
|
+
tlp: Schema.optional(Schema.String),
|
|
2551
|
+
}),
|
|
2552
|
+
),
|
|
2553
|
+
targetCountry: Schema.optional(Schema.String),
|
|
2554
|
+
targetIndustry: Schema.optional(Schema.String),
|
|
2555
|
+
tlp: Schema.optional(Schema.String),
|
|
2556
|
+
}).pipe(
|
|
2557
|
+
T.Http({
|
|
2558
|
+
method: "PATCH",
|
|
2559
|
+
path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
|
|
2560
|
+
}),
|
|
2561
|
+
) as unknown as Schema.Schema<PatchThreatEventRequest>;
|
|
2562
|
+
|
|
2563
|
+
export interface PatchThreatEventResponse {
|
|
2564
|
+
attacker: string;
|
|
2565
|
+
attackerCountry: string;
|
|
2566
|
+
category: string;
|
|
2567
|
+
date: string;
|
|
2568
|
+
event: string;
|
|
2569
|
+
hasChildren: boolean;
|
|
2570
|
+
indicator: string;
|
|
2571
|
+
indicatorType: string;
|
|
2572
|
+
indicatorTypeId: number;
|
|
2573
|
+
killChain: number;
|
|
2574
|
+
mitreAttack: string[];
|
|
2575
|
+
numReferenced: number;
|
|
2576
|
+
numReferences: number;
|
|
2577
|
+
rawId: string;
|
|
2578
|
+
referenced: string[];
|
|
2579
|
+
referencedIds: number[];
|
|
2580
|
+
references: string[];
|
|
2581
|
+
referencesIds: number[];
|
|
2582
|
+
tags: string[];
|
|
2583
|
+
targetCountry: string;
|
|
2584
|
+
targetIndustry: string;
|
|
2585
|
+
tlp: string;
|
|
2586
|
+
uuid: string;
|
|
2587
|
+
insight?: string | null;
|
|
2588
|
+
releasabilityId?: string | null;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export const PatchThreatEventResponse =
|
|
2592
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2593
|
+
attacker: Schema.String,
|
|
2594
|
+
attackerCountry: Schema.String,
|
|
2595
|
+
category: Schema.String,
|
|
2596
|
+
date: Schema.String,
|
|
2597
|
+
event: Schema.String,
|
|
2598
|
+
hasChildren: Schema.Boolean,
|
|
2599
|
+
indicator: Schema.String,
|
|
2600
|
+
indicatorType: Schema.String,
|
|
2601
|
+
indicatorTypeId: Schema.Number,
|
|
2602
|
+
killChain: Schema.Number,
|
|
2603
|
+
mitreAttack: Schema.Array(Schema.String),
|
|
2604
|
+
numReferenced: Schema.Number,
|
|
2605
|
+
numReferences: Schema.Number,
|
|
2606
|
+
rawId: Schema.String,
|
|
2607
|
+
referenced: Schema.Array(Schema.String),
|
|
2608
|
+
referencedIds: Schema.Array(Schema.Number),
|
|
2609
|
+
references: Schema.Array(Schema.String),
|
|
2610
|
+
referencesIds: Schema.Array(Schema.Number),
|
|
2611
|
+
tags: Schema.Array(Schema.String),
|
|
2612
|
+
targetCountry: Schema.String,
|
|
2613
|
+
targetIndustry: Schema.String,
|
|
2614
|
+
tlp: Schema.String,
|
|
2615
|
+
uuid: Schema.String,
|
|
2616
|
+
insight: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2617
|
+
releasabilityId: Schema.optional(
|
|
2618
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2619
|
+
),
|
|
2620
|
+
}) as unknown as Schema.Schema<PatchThreatEventResponse>;
|
|
2621
|
+
|
|
2622
|
+
export type PatchThreatEventError = DefaultErrors;
|
|
2623
|
+
|
|
2624
|
+
export const patchThreatEvent: API.OperationMethod<
|
|
2625
|
+
PatchThreatEventRequest,
|
|
2626
|
+
PatchThreatEventResponse,
|
|
2627
|
+
PatchThreatEventError,
|
|
2628
|
+
Credentials | HttpClient.HttpClient
|
|
2629
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2630
|
+
input: PatchThreatEventRequest,
|
|
2631
|
+
output: PatchThreatEventResponse,
|
|
2632
|
+
errors: [],
|
|
2633
|
+
}));
|
|
2634
|
+
|
|
2635
|
+
export interface DeleteThreatEventRequest {
|
|
2636
|
+
eventId: string;
|
|
2637
|
+
/** Account ID. */
|
|
2638
|
+
accountId: string;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
export const DeleteThreatEventRequest =
|
|
2642
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2643
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
2644
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2645
|
+
}).pipe(
|
|
2646
|
+
T.Http({
|
|
2647
|
+
method: "DELETE",
|
|
2648
|
+
path: "/accounts/{account_id}/cloudforce-one/events/{eventId}",
|
|
2649
|
+
}),
|
|
2650
|
+
) as unknown as Schema.Schema<DeleteThreatEventRequest>;
|
|
2651
|
+
|
|
2652
|
+
export interface DeleteThreatEventResponse {
|
|
2653
|
+
uuid: string;
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
export const DeleteThreatEventResponse =
|
|
2657
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2658
|
+
uuid: Schema.String,
|
|
2659
|
+
}) as unknown as Schema.Schema<DeleteThreatEventResponse>;
|
|
2660
|
+
|
|
2661
|
+
export type DeleteThreatEventError = DefaultErrors;
|
|
2662
|
+
|
|
2663
|
+
export const deleteThreatEvent: API.OperationMethod<
|
|
2664
|
+
DeleteThreatEventRequest,
|
|
2665
|
+
DeleteThreatEventResponse,
|
|
2666
|
+
DeleteThreatEventError,
|
|
2667
|
+
Credentials | HttpClient.HttpClient
|
|
2668
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2669
|
+
input: DeleteThreatEventRequest,
|
|
2670
|
+
output: DeleteThreatEventResponse,
|
|
2671
|
+
errors: [],
|
|
2672
|
+
}));
|
|
2673
|
+
|
|
2674
|
+
export interface BulkCreateThreatEventsRequest {
|
|
2675
|
+
/** Path param: Account ID. */
|
|
2676
|
+
accountId: string;
|
|
2677
|
+
/** Body param: */
|
|
2678
|
+
data: {
|
|
2679
|
+
category: string;
|
|
2680
|
+
date: string;
|
|
2681
|
+
event: string;
|
|
2682
|
+
raw: {
|
|
2683
|
+
data: Record<string, unknown> | null;
|
|
2684
|
+
source?: string;
|
|
2685
|
+
tlp?: string;
|
|
2686
|
+
};
|
|
2687
|
+
tlp: string;
|
|
2688
|
+
accountId?: number;
|
|
2689
|
+
attacker?: string | null;
|
|
2690
|
+
attackerCountry?: string;
|
|
2691
|
+
datasetId?: string;
|
|
2692
|
+
indicator?: string;
|
|
2693
|
+
indicators?: { indicatorType: string; value: string }[];
|
|
2694
|
+
indicatorType?: string;
|
|
2695
|
+
insight?: string;
|
|
2696
|
+
tags?: string[];
|
|
2697
|
+
targetCountry?: string;
|
|
2698
|
+
targetIndustry?: string;
|
|
2699
|
+
uuid?: string;
|
|
2700
|
+
}[];
|
|
2701
|
+
/** Body param: */
|
|
2702
|
+
datasetId: string;
|
|
2703
|
+
/** Body param: When true, use provided UUIDs from event data instead of generating new ones. Used for migration scenarios where original UUIDs must be preserved. Duplicate UUIDs will be skipped. */
|
|
2704
|
+
preserveUuid?: boolean;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
export const BulkCreateThreatEventsRequest =
|
|
2708
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2709
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2710
|
+
data: Schema.Array(
|
|
2711
|
+
Schema.Struct({
|
|
2712
|
+
category: Schema.String,
|
|
2713
|
+
date: Schema.String,
|
|
2714
|
+
event: Schema.String,
|
|
2715
|
+
raw: Schema.Struct({
|
|
2716
|
+
data: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
2717
|
+
source: Schema.optional(Schema.String),
|
|
2718
|
+
tlp: Schema.optional(Schema.String),
|
|
2719
|
+
}),
|
|
2720
|
+
tlp: Schema.String,
|
|
2721
|
+
accountId: Schema.optional(Schema.Number),
|
|
2722
|
+
attacker: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2723
|
+
attackerCountry: Schema.optional(Schema.String),
|
|
2724
|
+
datasetId: Schema.optional(Schema.String),
|
|
2725
|
+
indicator: Schema.optional(Schema.String),
|
|
2726
|
+
indicators: Schema.optional(
|
|
2727
|
+
Schema.Array(
|
|
2728
|
+
Schema.Struct({
|
|
2729
|
+
indicatorType: Schema.String,
|
|
2730
|
+
value: Schema.String,
|
|
2731
|
+
}),
|
|
2732
|
+
),
|
|
2733
|
+
),
|
|
2734
|
+
indicatorType: Schema.optional(Schema.String),
|
|
2735
|
+
insight: Schema.optional(Schema.String),
|
|
2736
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
2737
|
+
targetCountry: Schema.optional(Schema.String),
|
|
2738
|
+
targetIndustry: Schema.optional(Schema.String),
|
|
2739
|
+
uuid: Schema.optional(Schema.String),
|
|
2740
|
+
}),
|
|
2741
|
+
),
|
|
2742
|
+
datasetId: Schema.String,
|
|
2743
|
+
preserveUuid: Schema.optional(Schema.Boolean),
|
|
2744
|
+
}).pipe(
|
|
2745
|
+
T.Http({
|
|
2746
|
+
method: "POST",
|
|
2747
|
+
path: "/accounts/{account_id}/cloudforce-one/events/create/bulk",
|
|
2748
|
+
}),
|
|
2749
|
+
) as unknown as Schema.Schema<BulkCreateThreatEventsRequest>;
|
|
2750
|
+
|
|
2751
|
+
export interface BulkCreateThreatEventsResponse {
|
|
2752
|
+
/** Number of events created */
|
|
2753
|
+
createdEventsCount: number;
|
|
2754
|
+
/** Number of new tags created in SoT */
|
|
2755
|
+
createdTagsCount: number;
|
|
2756
|
+
/** Number of errors encountered */
|
|
2757
|
+
errorCount: number;
|
|
2758
|
+
/** Number of indicators queued for async processing */
|
|
2759
|
+
queuedIndicatorsCount: number;
|
|
2760
|
+
/** Number of events skipped due to duplicate UUID (only when preserveUuid=true) */
|
|
2761
|
+
skippedEventsCount: number;
|
|
2762
|
+
/** Correlation ID for async indicator processing */
|
|
2763
|
+
createBulkEventsRequestId?: string | null;
|
|
2764
|
+
/** Array of error details */
|
|
2765
|
+
errors?: { error: string; eventIndex: number }[] | null;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
export const BulkCreateThreatEventsResponse =
|
|
2769
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2770
|
+
createdEventsCount: Schema.Number,
|
|
2771
|
+
createdTagsCount: Schema.Number,
|
|
2772
|
+
errorCount: Schema.Number,
|
|
2773
|
+
queuedIndicatorsCount: Schema.Number,
|
|
2774
|
+
skippedEventsCount: Schema.Number,
|
|
2775
|
+
createBulkEventsRequestId: Schema.optional(
|
|
2776
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2777
|
+
),
|
|
2778
|
+
errors: Schema.optional(
|
|
2779
|
+
Schema.Union([
|
|
2780
|
+
Schema.Array(
|
|
2781
|
+
Schema.Struct({
|
|
2782
|
+
error: Schema.String,
|
|
2783
|
+
eventIndex: Schema.Number,
|
|
2784
|
+
}),
|
|
2785
|
+
),
|
|
2786
|
+
Schema.Null,
|
|
2787
|
+
]),
|
|
2788
|
+
),
|
|
2789
|
+
}) as unknown as Schema.Schema<BulkCreateThreatEventsResponse>;
|
|
2790
|
+
|
|
2791
|
+
export type BulkCreateThreatEventsError = DefaultErrors;
|
|
2792
|
+
|
|
2793
|
+
export const bulkCreateThreatEvents: API.OperationMethod<
|
|
2794
|
+
BulkCreateThreatEventsRequest,
|
|
2795
|
+
BulkCreateThreatEventsResponse,
|
|
2796
|
+
BulkCreateThreatEventsError,
|
|
2797
|
+
Credentials | HttpClient.HttpClient
|
|
2798
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2799
|
+
input: BulkCreateThreatEventsRequest,
|
|
2800
|
+
output: BulkCreateThreatEventsResponse,
|
|
2801
|
+
errors: [],
|
|
2802
|
+
}));
|
|
2803
|
+
|
|
2804
|
+
// =============================================================================
|
|
2805
|
+
// ThreatEventAttacker
|
|
2806
|
+
// =============================================================================
|
|
2807
|
+
|
|
2808
|
+
export interface ListThreatEventAttackersRequest {
|
|
2809
|
+
/** Path param: Account ID. */
|
|
2810
|
+
accountId: string;
|
|
2811
|
+
/** Query param: Array of dataset IDs to query attackers from. If not provided, uses the default dataset. */
|
|
2812
|
+
datasetIds?: string[];
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
export const ListThreatEventAttackersRequest =
|
|
2816
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2817
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2818
|
+
datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
|
|
2819
|
+
T.HttpQuery("datasetIds"),
|
|
2820
|
+
),
|
|
2821
|
+
}).pipe(
|
|
2822
|
+
T.Http({
|
|
2823
|
+
method: "GET",
|
|
2824
|
+
path: "/accounts/{account_id}/cloudforce-one/events/attackers",
|
|
2825
|
+
}),
|
|
2826
|
+
) as unknown as Schema.Schema<ListThreatEventAttackersRequest>;
|
|
2827
|
+
|
|
2828
|
+
export interface ListThreatEventAttackersResponse {
|
|
2829
|
+
items: { type: string };
|
|
2830
|
+
type: string;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
export const ListThreatEventAttackersResponse =
|
|
2834
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2835
|
+
items: Schema.Struct({
|
|
2836
|
+
type: Schema.String,
|
|
2837
|
+
}),
|
|
2838
|
+
type: Schema.String,
|
|
2839
|
+
}) as unknown as Schema.Schema<ListThreatEventAttackersResponse>;
|
|
2840
|
+
|
|
2841
|
+
export type ListThreatEventAttackersError = DefaultErrors;
|
|
2842
|
+
|
|
2843
|
+
export const listThreatEventAttackers: API.OperationMethod<
|
|
2844
|
+
ListThreatEventAttackersRequest,
|
|
2845
|
+
ListThreatEventAttackersResponse,
|
|
2846
|
+
ListThreatEventAttackersError,
|
|
2847
|
+
Credentials | HttpClient.HttpClient
|
|
2848
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2849
|
+
input: ListThreatEventAttackersRequest,
|
|
2850
|
+
output: ListThreatEventAttackersResponse,
|
|
2851
|
+
errors: [],
|
|
2852
|
+
}));
|
|
2853
|
+
|
|
2854
|
+
// =============================================================================
|
|
2855
|
+
// ThreatEventCategory
|
|
2856
|
+
// =============================================================================
|
|
2857
|
+
|
|
2858
|
+
export interface GetThreatEventCategoryRequest {
|
|
2859
|
+
categoryId: string;
|
|
2860
|
+
/** Account ID. */
|
|
2861
|
+
accountId: string;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
export const GetThreatEventCategoryRequest =
|
|
2865
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2866
|
+
categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
|
|
2867
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2868
|
+
}).pipe(
|
|
2869
|
+
T.Http({
|
|
2870
|
+
method: "GET",
|
|
2871
|
+
path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
|
|
2872
|
+
}),
|
|
2873
|
+
) as unknown as Schema.Schema<GetThreatEventCategoryRequest>;
|
|
2874
|
+
|
|
2875
|
+
export interface GetThreatEventCategoryResponse {
|
|
2876
|
+
killChain: number;
|
|
2877
|
+
name: string;
|
|
2878
|
+
uuid: string;
|
|
2879
|
+
mitreAttack?: string[] | null;
|
|
2880
|
+
shortname?: string | null;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
export const GetThreatEventCategoryResponse =
|
|
2884
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2885
|
+
killChain: Schema.Number,
|
|
2886
|
+
name: Schema.String,
|
|
2887
|
+
uuid: Schema.String,
|
|
2888
|
+
mitreAttack: Schema.optional(
|
|
2889
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2890
|
+
),
|
|
2891
|
+
shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2892
|
+
}) as unknown as Schema.Schema<GetThreatEventCategoryResponse>;
|
|
2893
|
+
|
|
2894
|
+
export type GetThreatEventCategoryError = DefaultErrors;
|
|
2895
|
+
|
|
2896
|
+
export const getThreatEventCategory: API.OperationMethod<
|
|
2897
|
+
GetThreatEventCategoryRequest,
|
|
2898
|
+
GetThreatEventCategoryResponse,
|
|
2899
|
+
GetThreatEventCategoryError,
|
|
2900
|
+
Credentials | HttpClient.HttpClient
|
|
2901
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2902
|
+
input: GetThreatEventCategoryRequest,
|
|
2903
|
+
output: GetThreatEventCategoryResponse,
|
|
2904
|
+
errors: [],
|
|
2905
|
+
}));
|
|
2906
|
+
|
|
2907
|
+
export interface ListThreatEventCategoriesRequest {
|
|
2908
|
+
/** Path param: Account ID. */
|
|
2909
|
+
accountId: string;
|
|
2910
|
+
/** Query param: Array of dataset IDs to query categories from. If not provided, uses the default dataset. */
|
|
2911
|
+
datasetIds?: string[];
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
export const ListThreatEventCategoriesRequest =
|
|
2915
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2916
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2917
|
+
datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
|
|
2918
|
+
T.HttpQuery("datasetIds"),
|
|
2919
|
+
),
|
|
2920
|
+
}).pipe(
|
|
2921
|
+
T.Http({
|
|
2922
|
+
method: "GET",
|
|
2923
|
+
path: "/accounts/{account_id}/cloudforce-one/events/categories",
|
|
2924
|
+
}),
|
|
2925
|
+
) as unknown as Schema.Schema<ListThreatEventCategoriesRequest>;
|
|
2926
|
+
|
|
2927
|
+
export type ListThreatEventCategoriesResponse = {
|
|
2928
|
+
killChain: number;
|
|
2929
|
+
name: string;
|
|
2930
|
+
uuid: string;
|
|
2931
|
+
mitreAttack?: string[] | null;
|
|
2932
|
+
shortname?: string | null;
|
|
2933
|
+
}[];
|
|
2934
|
+
|
|
2935
|
+
export const ListThreatEventCategoriesResponse =
|
|
2936
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
2937
|
+
Schema.Struct({
|
|
2938
|
+
killChain: Schema.Number,
|
|
2939
|
+
name: Schema.String,
|
|
2940
|
+
uuid: Schema.String,
|
|
2941
|
+
mitreAttack: Schema.optional(
|
|
2942
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2943
|
+
),
|
|
2944
|
+
shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2945
|
+
}),
|
|
2946
|
+
) as unknown as Schema.Schema<ListThreatEventCategoriesResponse>;
|
|
2947
|
+
|
|
2948
|
+
export type ListThreatEventCategoriesError = DefaultErrors;
|
|
2949
|
+
|
|
2950
|
+
export const listThreatEventCategories: API.OperationMethod<
|
|
2951
|
+
ListThreatEventCategoriesRequest,
|
|
2952
|
+
ListThreatEventCategoriesResponse,
|
|
2953
|
+
ListThreatEventCategoriesError,
|
|
2954
|
+
Credentials | HttpClient.HttpClient
|
|
2955
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2956
|
+
input: ListThreatEventCategoriesRequest,
|
|
2957
|
+
output: ListThreatEventCategoriesResponse,
|
|
2958
|
+
errors: [],
|
|
2959
|
+
}));
|
|
2960
|
+
|
|
2961
|
+
export interface CreateThreatEventCategoryRequest {
|
|
2962
|
+
/** Path param: Account ID. */
|
|
2963
|
+
accountId: string;
|
|
2964
|
+
/** Body param: */
|
|
2965
|
+
killChain: number;
|
|
2966
|
+
/** Body param: */
|
|
2967
|
+
name: string;
|
|
2968
|
+
/** Body param: */
|
|
2969
|
+
mitreAttack?: string[];
|
|
2970
|
+
/** Body param: */
|
|
2971
|
+
shortname?: string;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
export const CreateThreatEventCategoryRequest =
|
|
2975
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2976
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2977
|
+
killChain: Schema.Number,
|
|
2978
|
+
name: Schema.String,
|
|
2979
|
+
mitreAttack: Schema.optional(Schema.Array(Schema.String)),
|
|
2980
|
+
shortname: Schema.optional(Schema.String),
|
|
2981
|
+
}).pipe(
|
|
2982
|
+
T.Http({
|
|
2983
|
+
method: "POST",
|
|
2984
|
+
path: "/accounts/{account_id}/cloudforce-one/events/categories/create",
|
|
2985
|
+
}),
|
|
2986
|
+
) as unknown as Schema.Schema<CreateThreatEventCategoryRequest>;
|
|
2987
|
+
|
|
2988
|
+
export interface CreateThreatEventCategoryResponse {
|
|
2989
|
+
killChain: number;
|
|
2990
|
+
name: string;
|
|
2991
|
+
uuid: string;
|
|
2992
|
+
mitreAttack?: string[] | null;
|
|
2993
|
+
shortname?: string | null;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
export const CreateThreatEventCategoryResponse =
|
|
2997
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2998
|
+
killChain: Schema.Number,
|
|
2999
|
+
name: Schema.String,
|
|
3000
|
+
uuid: Schema.String,
|
|
3001
|
+
mitreAttack: Schema.optional(
|
|
3002
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3003
|
+
),
|
|
3004
|
+
shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3005
|
+
}) as unknown as Schema.Schema<CreateThreatEventCategoryResponse>;
|
|
3006
|
+
|
|
3007
|
+
export type CreateThreatEventCategoryError = DefaultErrors;
|
|
3008
|
+
|
|
3009
|
+
export const createThreatEventCategory: API.OperationMethod<
|
|
3010
|
+
CreateThreatEventCategoryRequest,
|
|
3011
|
+
CreateThreatEventCategoryResponse,
|
|
3012
|
+
CreateThreatEventCategoryError,
|
|
3013
|
+
Credentials | HttpClient.HttpClient
|
|
3014
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3015
|
+
input: CreateThreatEventCategoryRequest,
|
|
3016
|
+
output: CreateThreatEventCategoryResponse,
|
|
3017
|
+
errors: [],
|
|
3018
|
+
}));
|
|
3019
|
+
|
|
3020
|
+
export interface PatchThreatEventCategoryRequest {
|
|
3021
|
+
categoryId: string;
|
|
3022
|
+
/** Path param: Account ID. */
|
|
3023
|
+
accountId: string;
|
|
3024
|
+
/** Body param: */
|
|
3025
|
+
killChain?: number;
|
|
3026
|
+
/** Body param: */
|
|
3027
|
+
mitreAttack?: string[];
|
|
3028
|
+
/** Body param: */
|
|
3029
|
+
name?: string;
|
|
3030
|
+
/** Body param: */
|
|
3031
|
+
shortname?: string;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
export const PatchThreatEventCategoryRequest =
|
|
3035
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3036
|
+
categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
|
|
3037
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3038
|
+
killChain: Schema.optional(Schema.Number),
|
|
3039
|
+
mitreAttack: Schema.optional(Schema.Array(Schema.String)),
|
|
3040
|
+
name: Schema.optional(Schema.String),
|
|
3041
|
+
shortname: Schema.optional(Schema.String),
|
|
3042
|
+
}).pipe(
|
|
3043
|
+
T.Http({
|
|
3044
|
+
method: "PATCH",
|
|
3045
|
+
path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
|
|
3046
|
+
}),
|
|
3047
|
+
) as unknown as Schema.Schema<PatchThreatEventCategoryRequest>;
|
|
3048
|
+
|
|
3049
|
+
export interface PatchThreatEventCategoryResponse {
|
|
3050
|
+
killChain: number;
|
|
3051
|
+
name: string;
|
|
3052
|
+
uuid: string;
|
|
3053
|
+
mitreAttack?: string[] | null;
|
|
3054
|
+
shortname?: string | null;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
export const PatchThreatEventCategoryResponse =
|
|
3058
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3059
|
+
killChain: Schema.Number,
|
|
3060
|
+
name: Schema.String,
|
|
3061
|
+
uuid: Schema.String,
|
|
3062
|
+
mitreAttack: Schema.optional(
|
|
3063
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3064
|
+
),
|
|
3065
|
+
shortname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3066
|
+
}) as unknown as Schema.Schema<PatchThreatEventCategoryResponse>;
|
|
3067
|
+
|
|
3068
|
+
export type PatchThreatEventCategoryError = DefaultErrors;
|
|
3069
|
+
|
|
3070
|
+
export const patchThreatEventCategory: API.OperationMethod<
|
|
3071
|
+
PatchThreatEventCategoryRequest,
|
|
3072
|
+
PatchThreatEventCategoryResponse,
|
|
3073
|
+
PatchThreatEventCategoryError,
|
|
3074
|
+
Credentials | HttpClient.HttpClient
|
|
3075
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3076
|
+
input: PatchThreatEventCategoryRequest,
|
|
3077
|
+
output: PatchThreatEventCategoryResponse,
|
|
3078
|
+
errors: [],
|
|
3079
|
+
}));
|
|
3080
|
+
|
|
3081
|
+
export interface DeleteThreatEventCategoryRequest {
|
|
3082
|
+
categoryId: string;
|
|
3083
|
+
/** Account ID. */
|
|
3084
|
+
accountId: string;
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
export const DeleteThreatEventCategoryRequest =
|
|
3088
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3089
|
+
categoryId: Schema.String.pipe(T.HttpPath("categoryId")),
|
|
3090
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3091
|
+
}).pipe(
|
|
3092
|
+
T.Http({
|
|
3093
|
+
method: "DELETE",
|
|
3094
|
+
path: "/accounts/{account_id}/cloudforce-one/events/categories/{categoryId}",
|
|
3095
|
+
}),
|
|
3096
|
+
) as unknown as Schema.Schema<DeleteThreatEventCategoryRequest>;
|
|
3097
|
+
|
|
3098
|
+
export interface DeleteThreatEventCategoryResponse {
|
|
3099
|
+
uuid: string;
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
export const DeleteThreatEventCategoryResponse =
|
|
3103
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3104
|
+
uuid: Schema.String,
|
|
3105
|
+
}) as unknown as Schema.Schema<DeleteThreatEventCategoryResponse>;
|
|
3106
|
+
|
|
3107
|
+
export type DeleteThreatEventCategoryError = DefaultErrors;
|
|
3108
|
+
|
|
3109
|
+
export const deleteThreatEventCategory: API.OperationMethod<
|
|
3110
|
+
DeleteThreatEventCategoryRequest,
|
|
3111
|
+
DeleteThreatEventCategoryResponse,
|
|
3112
|
+
DeleteThreatEventCategoryError,
|
|
3113
|
+
Credentials | HttpClient.HttpClient
|
|
3114
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3115
|
+
input: DeleteThreatEventCategoryRequest,
|
|
3116
|
+
output: DeleteThreatEventCategoryResponse,
|
|
3117
|
+
errors: [],
|
|
3118
|
+
}));
|
|
3119
|
+
|
|
3120
|
+
// =============================================================================
|
|
3121
|
+
// ThreatEventCountry
|
|
3122
|
+
// =============================================================================
|
|
3123
|
+
|
|
3124
|
+
export interface ListThreatEventCountriesRequest {
|
|
3125
|
+
/** Account ID. */
|
|
3126
|
+
accountId: string;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
export const ListThreatEventCountriesRequest =
|
|
3130
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3131
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3132
|
+
}).pipe(
|
|
3133
|
+
T.Http({
|
|
3134
|
+
method: "GET",
|
|
3135
|
+
path: "/accounts/{account_id}/cloudforce-one/events/countries",
|
|
3136
|
+
}),
|
|
3137
|
+
) as unknown as Schema.Schema<ListThreatEventCountriesRequest>;
|
|
3138
|
+
|
|
3139
|
+
export type ListThreatEventCountriesResponse = {
|
|
3140
|
+
result: { alpha3: string; name: string }[];
|
|
3141
|
+
success: string;
|
|
3142
|
+
}[];
|
|
3143
|
+
|
|
3144
|
+
export const ListThreatEventCountriesResponse =
|
|
3145
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
3146
|
+
Schema.Struct({
|
|
3147
|
+
result: Schema.Array(
|
|
3148
|
+
Schema.Struct({
|
|
3149
|
+
alpha3: Schema.String,
|
|
3150
|
+
name: Schema.String,
|
|
3151
|
+
}),
|
|
3152
|
+
),
|
|
3153
|
+
success: Schema.String,
|
|
3154
|
+
}),
|
|
3155
|
+
) as unknown as Schema.Schema<ListThreatEventCountriesResponse>;
|
|
3156
|
+
|
|
3157
|
+
export type ListThreatEventCountriesError = DefaultErrors;
|
|
3158
|
+
|
|
3159
|
+
export const listThreatEventCountries: API.OperationMethod<
|
|
3160
|
+
ListThreatEventCountriesRequest,
|
|
3161
|
+
ListThreatEventCountriesResponse,
|
|
3162
|
+
ListThreatEventCountriesError,
|
|
3163
|
+
Credentials | HttpClient.HttpClient
|
|
3164
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3165
|
+
input: ListThreatEventCountriesRequest,
|
|
3166
|
+
output: ListThreatEventCountriesResponse,
|
|
3167
|
+
errors: [],
|
|
3168
|
+
}));
|
|
3169
|
+
|
|
3170
|
+
// =============================================================================
|
|
3171
|
+
// ThreatEventDataset
|
|
3172
|
+
// =============================================================================
|
|
3173
|
+
|
|
3174
|
+
export interface GetThreatEventDatasetRequest {
|
|
3175
|
+
datasetId: string;
|
|
3176
|
+
/** Account ID. */
|
|
3177
|
+
accountId: string;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
export const GetThreatEventDatasetRequest =
|
|
3181
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3182
|
+
datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
|
|
3183
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3184
|
+
}).pipe(
|
|
3185
|
+
T.Http({
|
|
3186
|
+
method: "GET",
|
|
3187
|
+
path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
|
|
3188
|
+
}),
|
|
3189
|
+
) as unknown as Schema.Schema<GetThreatEventDatasetRequest>;
|
|
3190
|
+
|
|
3191
|
+
export interface GetThreatEventDatasetResponse {
|
|
3192
|
+
isPublic: boolean;
|
|
3193
|
+
name: string;
|
|
3194
|
+
uuid: string;
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
export const GetThreatEventDatasetResponse =
|
|
3198
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3199
|
+
isPublic: Schema.Boolean,
|
|
3200
|
+
name: Schema.String,
|
|
3201
|
+
uuid: Schema.String,
|
|
3202
|
+
}) as unknown as Schema.Schema<GetThreatEventDatasetResponse>;
|
|
3203
|
+
|
|
3204
|
+
export type GetThreatEventDatasetError = DefaultErrors;
|
|
3205
|
+
|
|
3206
|
+
export const getThreatEventDataset: API.OperationMethod<
|
|
3207
|
+
GetThreatEventDatasetRequest,
|
|
3208
|
+
GetThreatEventDatasetResponse,
|
|
3209
|
+
GetThreatEventDatasetError,
|
|
3210
|
+
Credentials | HttpClient.HttpClient
|
|
3211
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3212
|
+
input: GetThreatEventDatasetRequest,
|
|
3213
|
+
output: GetThreatEventDatasetResponse,
|
|
3214
|
+
errors: [],
|
|
3215
|
+
}));
|
|
3216
|
+
|
|
3217
|
+
export interface ListThreatEventDatasetsRequest {
|
|
3218
|
+
/** Account ID. */
|
|
3219
|
+
accountId: string;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
export const ListThreatEventDatasetsRequest =
|
|
3223
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3224
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3225
|
+
}).pipe(
|
|
3226
|
+
T.Http({
|
|
3227
|
+
method: "GET",
|
|
3228
|
+
path: "/accounts/{account_id}/cloudforce-one/events/dataset",
|
|
3229
|
+
}),
|
|
3230
|
+
) as unknown as Schema.Schema<ListThreatEventDatasetsRequest>;
|
|
3231
|
+
|
|
3232
|
+
export type ListThreatEventDatasetsResponse = {
|
|
3233
|
+
isPublic: boolean;
|
|
3234
|
+
name: string;
|
|
3235
|
+
uuid: string;
|
|
3236
|
+
}[];
|
|
3237
|
+
|
|
3238
|
+
export const ListThreatEventDatasetsResponse =
|
|
3239
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
3240
|
+
Schema.Struct({
|
|
3241
|
+
isPublic: Schema.Boolean,
|
|
3242
|
+
name: Schema.String,
|
|
3243
|
+
uuid: Schema.String,
|
|
3244
|
+
}),
|
|
3245
|
+
) as unknown as Schema.Schema<ListThreatEventDatasetsResponse>;
|
|
3246
|
+
|
|
3247
|
+
export type ListThreatEventDatasetsError = DefaultErrors;
|
|
3248
|
+
|
|
3249
|
+
export const listThreatEventDatasets: API.OperationMethod<
|
|
3250
|
+
ListThreatEventDatasetsRequest,
|
|
3251
|
+
ListThreatEventDatasetsResponse,
|
|
3252
|
+
ListThreatEventDatasetsError,
|
|
3253
|
+
Credentials | HttpClient.HttpClient
|
|
3254
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3255
|
+
input: ListThreatEventDatasetsRequest,
|
|
3256
|
+
output: ListThreatEventDatasetsResponse,
|
|
3257
|
+
errors: [],
|
|
3258
|
+
}));
|
|
3259
|
+
|
|
3260
|
+
export interface CreateThreatEventDatasetRequest {
|
|
3261
|
+
/** Path param: Account ID. */
|
|
3262
|
+
accountId: string;
|
|
3263
|
+
/** Body param: If true, then anyone can search the dataset. If false, then its limited to the account. */
|
|
3264
|
+
isPublic: boolean;
|
|
3265
|
+
/** Body param: Used to describe the dataset within the account context. */
|
|
3266
|
+
name: string;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
export const CreateThreatEventDatasetRequest =
|
|
3270
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3271
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3272
|
+
isPublic: Schema.Boolean,
|
|
3273
|
+
name: Schema.String,
|
|
3274
|
+
}).pipe(
|
|
3275
|
+
T.Http({
|
|
3276
|
+
method: "POST",
|
|
3277
|
+
path: "/accounts/{account_id}/cloudforce-one/events/dataset/create",
|
|
3278
|
+
}),
|
|
3279
|
+
) as unknown as Schema.Schema<CreateThreatEventDatasetRequest>;
|
|
3280
|
+
|
|
3281
|
+
export interface CreateThreatEventDatasetResponse {
|
|
3282
|
+
isPublic: boolean;
|
|
3283
|
+
name: string;
|
|
3284
|
+
uuid: string;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
export const CreateThreatEventDatasetResponse =
|
|
3288
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3289
|
+
isPublic: Schema.Boolean,
|
|
3290
|
+
name: Schema.String,
|
|
3291
|
+
uuid: Schema.String,
|
|
3292
|
+
}) as unknown as Schema.Schema<CreateThreatEventDatasetResponse>;
|
|
3293
|
+
|
|
3294
|
+
export type CreateThreatEventDatasetError = DefaultErrors;
|
|
3295
|
+
|
|
3296
|
+
export const createThreatEventDataset: API.OperationMethod<
|
|
3297
|
+
CreateThreatEventDatasetRequest,
|
|
3298
|
+
CreateThreatEventDatasetResponse,
|
|
3299
|
+
CreateThreatEventDatasetError,
|
|
3300
|
+
Credentials | HttpClient.HttpClient
|
|
3301
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3302
|
+
input: CreateThreatEventDatasetRequest,
|
|
3303
|
+
output: CreateThreatEventDatasetResponse,
|
|
3304
|
+
errors: [],
|
|
3305
|
+
}));
|
|
3306
|
+
|
|
3307
|
+
export interface PatchThreatEventDatasetRequest {
|
|
3308
|
+
datasetId: string;
|
|
3309
|
+
/** Path param: Account ID. */
|
|
3310
|
+
accountId: string;
|
|
3311
|
+
/** Body param: If true, then anyone can search the dataset. If false, then its limited to the account. */
|
|
3312
|
+
isPublic: boolean;
|
|
3313
|
+
/** Body param: Used to describe the dataset within the account context. */
|
|
3314
|
+
name: string;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
export const PatchThreatEventDatasetRequest =
|
|
3318
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3319
|
+
datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
|
|
3320
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3321
|
+
isPublic: Schema.Boolean,
|
|
3322
|
+
name: Schema.String,
|
|
3323
|
+
}).pipe(
|
|
3324
|
+
T.Http({
|
|
3325
|
+
method: "PATCH",
|
|
3326
|
+
path: "/accounts/{account_id}/cloudforce-one/events/dataset/{datasetId}",
|
|
3327
|
+
}),
|
|
3328
|
+
) as unknown as Schema.Schema<PatchThreatEventDatasetRequest>;
|
|
3329
|
+
|
|
3330
|
+
export interface PatchThreatEventDatasetResponse {
|
|
3331
|
+
isPublic: boolean;
|
|
3332
|
+
name: string;
|
|
3333
|
+
uuid: string;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
export const PatchThreatEventDatasetResponse =
|
|
3337
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3338
|
+
isPublic: Schema.Boolean,
|
|
3339
|
+
name: Schema.String,
|
|
3340
|
+
uuid: Schema.String,
|
|
3341
|
+
}) as unknown as Schema.Schema<PatchThreatEventDatasetResponse>;
|
|
3342
|
+
|
|
3343
|
+
export type PatchThreatEventDatasetError = DefaultErrors;
|
|
3344
|
+
|
|
3345
|
+
export const patchThreatEventDataset: API.OperationMethod<
|
|
3346
|
+
PatchThreatEventDatasetRequest,
|
|
3347
|
+
PatchThreatEventDatasetResponse,
|
|
3348
|
+
PatchThreatEventDatasetError,
|
|
3349
|
+
Credentials | HttpClient.HttpClient
|
|
3350
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3351
|
+
input: PatchThreatEventDatasetRequest,
|
|
3352
|
+
output: PatchThreatEventDatasetResponse,
|
|
3353
|
+
errors: [],
|
|
3354
|
+
}));
|
|
3355
|
+
|
|
3356
|
+
export interface RawThreatEventDatasetRequest {
|
|
3357
|
+
datasetId: string;
|
|
3358
|
+
eventId: string;
|
|
3359
|
+
/** Account ID. */
|
|
3360
|
+
accountId: string;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
export const RawThreatEventDatasetRequest =
|
|
3364
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3365
|
+
datasetId: Schema.String.pipe(T.HttpPath("datasetId")),
|
|
3366
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3367
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3368
|
+
}).pipe(
|
|
3369
|
+
T.Http({
|
|
3370
|
+
method: "GET",
|
|
3371
|
+
path: "/accounts/{account_id}/cloudforce-one/events/raw/{datasetId}/{eventId}",
|
|
3372
|
+
}),
|
|
3373
|
+
) as unknown as Schema.Schema<RawThreatEventDatasetRequest>;
|
|
3374
|
+
|
|
3375
|
+
export interface RawThreatEventDatasetResponse {
|
|
3376
|
+
id: string;
|
|
3377
|
+
accountId: number;
|
|
3378
|
+
created: string;
|
|
3379
|
+
data: unknown;
|
|
3380
|
+
source: string;
|
|
3381
|
+
tlp: string;
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
export const RawThreatEventDatasetResponse =
|
|
3385
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3386
|
+
id: Schema.String,
|
|
3387
|
+
accountId: Schema.Number,
|
|
3388
|
+
created: Schema.String,
|
|
3389
|
+
data: Schema.Unknown,
|
|
3390
|
+
source: Schema.String,
|
|
3391
|
+
tlp: Schema.String,
|
|
3392
|
+
}) as unknown as Schema.Schema<RawThreatEventDatasetResponse>;
|
|
3393
|
+
|
|
3394
|
+
export type RawThreatEventDatasetError = DefaultErrors;
|
|
3395
|
+
|
|
3396
|
+
export const rawThreatEventDataset: API.OperationMethod<
|
|
3397
|
+
RawThreatEventDatasetRequest,
|
|
3398
|
+
RawThreatEventDatasetResponse,
|
|
3399
|
+
RawThreatEventDatasetError,
|
|
3400
|
+
Credentials | HttpClient.HttpClient
|
|
3401
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3402
|
+
input: RawThreatEventDatasetRequest,
|
|
3403
|
+
output: RawThreatEventDatasetResponse,
|
|
3404
|
+
errors: [],
|
|
3405
|
+
}));
|
|
3406
|
+
|
|
3407
|
+
// =============================================================================
|
|
3408
|
+
// ThreatEventEventTag
|
|
3409
|
+
// =============================================================================
|
|
3410
|
+
|
|
3411
|
+
export interface CreateThreatEventEventTagRequest {
|
|
3412
|
+
eventId: string;
|
|
3413
|
+
/** Path param: Account ID. */
|
|
3414
|
+
accountId: string;
|
|
3415
|
+
/** Body param: */
|
|
3416
|
+
tags: string[];
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
export const CreateThreatEventEventTagRequest =
|
|
3420
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3421
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3422
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3423
|
+
tags: Schema.Array(Schema.String),
|
|
3424
|
+
}).pipe(
|
|
3425
|
+
T.Http({
|
|
3426
|
+
method: "POST",
|
|
3427
|
+
path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}/create",
|
|
3428
|
+
}),
|
|
3429
|
+
) as unknown as Schema.Schema<CreateThreatEventEventTagRequest>;
|
|
3430
|
+
|
|
3431
|
+
export interface CreateThreatEventEventTagResponse {
|
|
3432
|
+
success: boolean;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
export const CreateThreatEventEventTagResponse =
|
|
3436
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3437
|
+
success: Schema.Boolean,
|
|
3438
|
+
}) as unknown as Schema.Schema<CreateThreatEventEventTagResponse>;
|
|
3439
|
+
|
|
3440
|
+
export type CreateThreatEventEventTagError = DefaultErrors;
|
|
3441
|
+
|
|
3442
|
+
export const createThreatEventEventTag: API.OperationMethod<
|
|
3443
|
+
CreateThreatEventEventTagRequest,
|
|
3444
|
+
CreateThreatEventEventTagResponse,
|
|
3445
|
+
CreateThreatEventEventTagError,
|
|
3446
|
+
Credentials | HttpClient.HttpClient
|
|
3447
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3448
|
+
input: CreateThreatEventEventTagRequest,
|
|
3449
|
+
output: CreateThreatEventEventTagResponse,
|
|
3450
|
+
errors: [],
|
|
3451
|
+
}));
|
|
3452
|
+
|
|
3453
|
+
export interface DeleteThreatEventEventTagRequest {
|
|
3454
|
+
eventId: string;
|
|
3455
|
+
/** Account ID. */
|
|
3456
|
+
accountId: string;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
export const DeleteThreatEventEventTagRequest =
|
|
3460
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3461
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3462
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3463
|
+
}).pipe(
|
|
3464
|
+
T.Http({
|
|
3465
|
+
method: "DELETE",
|
|
3466
|
+
path: "/accounts/{account_id}/cloudforce-one/events/event_tag/{eventId}",
|
|
3467
|
+
}),
|
|
3468
|
+
) as unknown as Schema.Schema<DeleteThreatEventEventTagRequest>;
|
|
3469
|
+
|
|
3470
|
+
export interface DeleteThreatEventEventTagResponse {
|
|
3471
|
+
success: boolean;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
export const DeleteThreatEventEventTagResponse =
|
|
3475
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3476
|
+
success: Schema.Boolean,
|
|
3477
|
+
}) as unknown as Schema.Schema<DeleteThreatEventEventTagResponse>;
|
|
3478
|
+
|
|
3479
|
+
export type DeleteThreatEventEventTagError = DefaultErrors;
|
|
3480
|
+
|
|
3481
|
+
export const deleteThreatEventEventTag: API.OperationMethod<
|
|
3482
|
+
DeleteThreatEventEventTagRequest,
|
|
3483
|
+
DeleteThreatEventEventTagResponse,
|
|
3484
|
+
DeleteThreatEventEventTagError,
|
|
3485
|
+
Credentials | HttpClient.HttpClient
|
|
3486
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3487
|
+
input: DeleteThreatEventEventTagRequest,
|
|
3488
|
+
output: DeleteThreatEventEventTagResponse,
|
|
3489
|
+
errors: [],
|
|
3490
|
+
}));
|
|
3491
|
+
|
|
3492
|
+
// =============================================================================
|
|
3493
|
+
// ThreatEventIndicatorType
|
|
3494
|
+
// =============================================================================
|
|
3495
|
+
|
|
3496
|
+
export interface ListThreatEventIndicatorTypesRequest {
|
|
3497
|
+
/** Account ID. */
|
|
3498
|
+
accountId: string;
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
export const ListThreatEventIndicatorTypesRequest =
|
|
3502
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3503
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3504
|
+
}).pipe(
|
|
3505
|
+
T.Http({
|
|
3506
|
+
method: "GET",
|
|
3507
|
+
path: "/accounts/{account_id}/cloudforce-one/events/indicatorTypes",
|
|
3508
|
+
}),
|
|
3509
|
+
) as unknown as Schema.Schema<ListThreatEventIndicatorTypesRequest>;
|
|
3510
|
+
|
|
3511
|
+
export interface ListThreatEventIndicatorTypesResponse {
|
|
3512
|
+
items: { type: string };
|
|
3513
|
+
type: string;
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
export const ListThreatEventIndicatorTypesResponse =
|
|
3517
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3518
|
+
items: Schema.Struct({
|
|
3519
|
+
type: Schema.String,
|
|
3520
|
+
}),
|
|
3521
|
+
type: Schema.String,
|
|
3522
|
+
}) as unknown as Schema.Schema<ListThreatEventIndicatorTypesResponse>;
|
|
3523
|
+
|
|
3524
|
+
export type ListThreatEventIndicatorTypesError = DefaultErrors;
|
|
3525
|
+
|
|
3526
|
+
export const listThreatEventIndicatorTypes: API.OperationMethod<
|
|
3527
|
+
ListThreatEventIndicatorTypesRequest,
|
|
3528
|
+
ListThreatEventIndicatorTypesResponse,
|
|
3529
|
+
ListThreatEventIndicatorTypesError,
|
|
3530
|
+
Credentials | HttpClient.HttpClient
|
|
3531
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3532
|
+
input: ListThreatEventIndicatorTypesRequest,
|
|
3533
|
+
output: ListThreatEventIndicatorTypesResponse,
|
|
3534
|
+
errors: [],
|
|
3535
|
+
}));
|
|
3536
|
+
|
|
3537
|
+
// =============================================================================
|
|
3538
|
+
// ThreatEventRaw
|
|
3539
|
+
// =============================================================================
|
|
3540
|
+
|
|
3541
|
+
export interface GetThreatEventRawRequest {
|
|
3542
|
+
eventId: string;
|
|
3543
|
+
rawId: string;
|
|
3544
|
+
/** Account ID. */
|
|
3545
|
+
accountId: string;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
export const GetThreatEventRawRequest =
|
|
3549
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3550
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3551
|
+
rawId: Schema.String.pipe(T.HttpPath("rawId")),
|
|
3552
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3553
|
+
}).pipe(
|
|
3554
|
+
T.Http({
|
|
3555
|
+
method: "GET",
|
|
3556
|
+
path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
|
|
3557
|
+
}),
|
|
3558
|
+
) as unknown as Schema.Schema<GetThreatEventRawRequest>;
|
|
3559
|
+
|
|
3560
|
+
export interface GetThreatEventRawResponse {
|
|
3561
|
+
id: string;
|
|
3562
|
+
accountId: number;
|
|
3563
|
+
created: string;
|
|
3564
|
+
data: unknown;
|
|
3565
|
+
source: string;
|
|
3566
|
+
tlp: string;
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
export const GetThreatEventRawResponse =
|
|
3570
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3571
|
+
id: Schema.String,
|
|
3572
|
+
accountId: Schema.Number,
|
|
3573
|
+
created: Schema.String,
|
|
3574
|
+
data: Schema.Unknown,
|
|
3575
|
+
source: Schema.String,
|
|
3576
|
+
tlp: Schema.String,
|
|
3577
|
+
}) as unknown as Schema.Schema<GetThreatEventRawResponse>;
|
|
3578
|
+
|
|
3579
|
+
export type GetThreatEventRawError = DefaultErrors;
|
|
3580
|
+
|
|
3581
|
+
export const getThreatEventRaw: API.OperationMethod<
|
|
3582
|
+
GetThreatEventRawRequest,
|
|
3583
|
+
GetThreatEventRawResponse,
|
|
3584
|
+
GetThreatEventRawError,
|
|
3585
|
+
Credentials | HttpClient.HttpClient
|
|
3586
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3587
|
+
input: GetThreatEventRawRequest,
|
|
3588
|
+
output: GetThreatEventRawResponse,
|
|
3589
|
+
errors: [],
|
|
3590
|
+
}));
|
|
3591
|
+
|
|
3592
|
+
export interface PatchThreatEventRawRequest {
|
|
3593
|
+
eventId: string;
|
|
3594
|
+
rawId: string;
|
|
3595
|
+
/** Path param: Account ID. */
|
|
3596
|
+
accountId: string;
|
|
3597
|
+
/** Body param: */
|
|
3598
|
+
data?: unknown;
|
|
3599
|
+
/** Body param: */
|
|
3600
|
+
source?: string;
|
|
3601
|
+
/** Body param: */
|
|
3602
|
+
tlp?: string;
|
|
3603
|
+
}
|
|
3604
|
+
|
|
3605
|
+
export const PatchThreatEventRawRequest =
|
|
3606
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3607
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3608
|
+
rawId: Schema.String.pipe(T.HttpPath("rawId")),
|
|
3609
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3610
|
+
data: Schema.optional(Schema.Unknown),
|
|
3611
|
+
source: Schema.optional(Schema.String),
|
|
3612
|
+
tlp: Schema.optional(Schema.String),
|
|
3613
|
+
}).pipe(
|
|
3614
|
+
T.Http({
|
|
3615
|
+
method: "PATCH",
|
|
3616
|
+
path: "/accounts/{account_id}/cloudforce-one/events/{eventId}/raw/{rawId}",
|
|
3617
|
+
}),
|
|
3618
|
+
) as unknown as Schema.Schema<PatchThreatEventRawRequest>;
|
|
3619
|
+
|
|
3620
|
+
export interface PatchThreatEventRawResponse {
|
|
3621
|
+
id: string;
|
|
3622
|
+
data: unknown;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
export const PatchThreatEventRawResponse =
|
|
3626
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3627
|
+
id: Schema.String,
|
|
3628
|
+
data: Schema.Unknown,
|
|
3629
|
+
}) as unknown as Schema.Schema<PatchThreatEventRawResponse>;
|
|
3630
|
+
|
|
3631
|
+
export type PatchThreatEventRawError = DefaultErrors;
|
|
3632
|
+
|
|
3633
|
+
export const patchThreatEventRaw: API.OperationMethod<
|
|
3634
|
+
PatchThreatEventRawRequest,
|
|
3635
|
+
PatchThreatEventRawResponse,
|
|
3636
|
+
PatchThreatEventRawError,
|
|
3637
|
+
Credentials | HttpClient.HttpClient
|
|
3638
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3639
|
+
input: PatchThreatEventRawRequest,
|
|
3640
|
+
output: PatchThreatEventRawResponse,
|
|
3641
|
+
errors: [],
|
|
3642
|
+
}));
|
|
3643
|
+
|
|
3644
|
+
// =============================================================================
|
|
3645
|
+
// ThreatEventRelate
|
|
3646
|
+
// =============================================================================
|
|
3647
|
+
|
|
3648
|
+
export interface DeleteThreatEventRelateRequest {
|
|
3649
|
+
eventId: string;
|
|
3650
|
+
/** Account ID. */
|
|
3651
|
+
accountId: string;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
export const DeleteThreatEventRelateRequest =
|
|
3655
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3656
|
+
eventId: Schema.String.pipe(T.HttpPath("eventId")),
|
|
3657
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3658
|
+
}).pipe(
|
|
3659
|
+
T.Http({
|
|
3660
|
+
method: "DELETE",
|
|
3661
|
+
path: "/accounts/{account_id}/cloudforce-one/events/relate/{eventId}",
|
|
3662
|
+
}),
|
|
3663
|
+
) as unknown as Schema.Schema<DeleteThreatEventRelateRequest>;
|
|
3664
|
+
|
|
3665
|
+
export interface DeleteThreatEventRelateResponse {
|
|
3666
|
+
success: boolean;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
export const DeleteThreatEventRelateResponse =
|
|
3670
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3671
|
+
success: Schema.Boolean,
|
|
3672
|
+
}) as unknown as Schema.Schema<DeleteThreatEventRelateResponse>;
|
|
3673
|
+
|
|
3674
|
+
export type DeleteThreatEventRelateError = DefaultErrors;
|
|
3675
|
+
|
|
3676
|
+
export const deleteThreatEventRelate: API.OperationMethod<
|
|
3677
|
+
DeleteThreatEventRelateRequest,
|
|
3678
|
+
DeleteThreatEventRelateResponse,
|
|
3679
|
+
DeleteThreatEventRelateError,
|
|
3680
|
+
Credentials | HttpClient.HttpClient
|
|
3681
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3682
|
+
input: DeleteThreatEventRelateRequest,
|
|
3683
|
+
output: DeleteThreatEventRelateResponse,
|
|
3684
|
+
errors: [],
|
|
3685
|
+
}));
|
|
3686
|
+
|
|
3687
|
+
// =============================================================================
|
|
3688
|
+
// ThreatEventTag
|
|
3689
|
+
// =============================================================================
|
|
3690
|
+
|
|
3691
|
+
export interface CreateThreatEventTagRequest {
|
|
3692
|
+
/** Path param: Account ID. */
|
|
3693
|
+
accountId: string;
|
|
3694
|
+
/** Body param: */
|
|
3695
|
+
value: string;
|
|
3696
|
+
/** Body param: */
|
|
3697
|
+
activeDuration?: string;
|
|
3698
|
+
/** Body param: */
|
|
3699
|
+
actorCategory?: string;
|
|
3700
|
+
/** Body param: */
|
|
3701
|
+
aliasGroupNames?: string[];
|
|
3702
|
+
/** Body param: */
|
|
3703
|
+
aliasGroupNamesInternal?: string[];
|
|
3704
|
+
/** Body param: */
|
|
3705
|
+
analyticPriority?: number;
|
|
3706
|
+
/** Body param: */
|
|
3707
|
+
attributionConfidence?: string;
|
|
3708
|
+
/** Body param: */
|
|
3709
|
+
attributionOrganization?: string;
|
|
3710
|
+
/** Body param: */
|
|
3711
|
+
categoryUuid?: string;
|
|
3712
|
+
/** Body param: */
|
|
3713
|
+
externalReferenceLinks?: string[];
|
|
3714
|
+
/** Body param: */
|
|
3715
|
+
internalDescription?: string;
|
|
3716
|
+
/** Body param: */
|
|
3717
|
+
motive?: string;
|
|
3718
|
+
/** Body param: */
|
|
3719
|
+
opsecLevel?: string;
|
|
3720
|
+
/** Body param: */
|
|
3721
|
+
originCountryISO?: string;
|
|
3722
|
+
/** Body param: */
|
|
3723
|
+
priority?: number;
|
|
3724
|
+
/** Body param: */
|
|
3725
|
+
sophisticationLevel?: string;
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
export const CreateThreatEventTagRequest =
|
|
3729
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3730
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3731
|
+
value: Schema.String,
|
|
3732
|
+
activeDuration: Schema.optional(Schema.String),
|
|
3733
|
+
actorCategory: Schema.optional(Schema.String),
|
|
3734
|
+
aliasGroupNames: Schema.optional(Schema.Array(Schema.String)),
|
|
3735
|
+
aliasGroupNamesInternal: Schema.optional(Schema.Array(Schema.String)),
|
|
3736
|
+
analyticPriority: Schema.optional(Schema.Number),
|
|
3737
|
+
attributionConfidence: Schema.optional(Schema.String),
|
|
3738
|
+
attributionOrganization: Schema.optional(Schema.String),
|
|
3739
|
+
categoryUuid: Schema.optional(Schema.String),
|
|
3740
|
+
externalReferenceLinks: Schema.optional(Schema.Array(Schema.String)),
|
|
3741
|
+
internalDescription: Schema.optional(Schema.String),
|
|
3742
|
+
motive: Schema.optional(Schema.String),
|
|
3743
|
+
opsecLevel: Schema.optional(Schema.String),
|
|
3744
|
+
originCountryISO: Schema.optional(Schema.String),
|
|
3745
|
+
priority: Schema.optional(Schema.Number),
|
|
3746
|
+
sophisticationLevel: Schema.optional(Schema.String),
|
|
3747
|
+
}).pipe(
|
|
3748
|
+
T.Http({
|
|
3749
|
+
method: "POST",
|
|
3750
|
+
path: "/accounts/{account_id}/cloudforce-one/events/tags/create",
|
|
3751
|
+
}),
|
|
3752
|
+
) as unknown as Schema.Schema<CreateThreatEventTagRequest>;
|
|
3753
|
+
|
|
3754
|
+
export interface CreateThreatEventTagResponse {
|
|
3755
|
+
uuid: string;
|
|
3756
|
+
value: string;
|
|
3757
|
+
activeDuration?: string | null;
|
|
3758
|
+
actorCategory?: string | null;
|
|
3759
|
+
aliasGroupNames?: string[] | null;
|
|
3760
|
+
aliasGroupNamesInternal?: string[] | null;
|
|
3761
|
+
analyticPriority?: number | null;
|
|
3762
|
+
attributionConfidence?: string | null;
|
|
3763
|
+
attributionOrganization?: string | null;
|
|
3764
|
+
categoryName?: string | null;
|
|
3765
|
+
categoryUuid?: string | null;
|
|
3766
|
+
externalReferenceLinks?: string[] | null;
|
|
3767
|
+
internalDescription?: string | null;
|
|
3768
|
+
motive?: string | null;
|
|
3769
|
+
opsecLevel?: string | null;
|
|
3770
|
+
originCountryISO?: string | null;
|
|
3771
|
+
priority?: number | null;
|
|
3772
|
+
sophisticationLevel?: string | null;
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
export const CreateThreatEventTagResponse =
|
|
3776
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3777
|
+
uuid: Schema.String,
|
|
3778
|
+
value: Schema.String,
|
|
3779
|
+
activeDuration: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3780
|
+
actorCategory: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3781
|
+
aliasGroupNames: Schema.optional(
|
|
3782
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3783
|
+
),
|
|
3784
|
+
aliasGroupNamesInternal: Schema.optional(
|
|
3785
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3786
|
+
),
|
|
3787
|
+
analyticPriority: Schema.optional(
|
|
3788
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3789
|
+
),
|
|
3790
|
+
attributionConfidence: Schema.optional(
|
|
3791
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3792
|
+
),
|
|
3793
|
+
attributionOrganization: Schema.optional(
|
|
3794
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3795
|
+
),
|
|
3796
|
+
categoryName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3797
|
+
categoryUuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3798
|
+
externalReferenceLinks: Schema.optional(
|
|
3799
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3800
|
+
),
|
|
3801
|
+
internalDescription: Schema.optional(
|
|
3802
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3803
|
+
),
|
|
3804
|
+
motive: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3805
|
+
opsecLevel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3806
|
+
originCountryISO: Schema.optional(
|
|
3807
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3808
|
+
),
|
|
3809
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3810
|
+
sophisticationLevel: Schema.optional(
|
|
3811
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3812
|
+
),
|
|
3813
|
+
}) as unknown as Schema.Schema<CreateThreatEventTagResponse>;
|
|
3814
|
+
|
|
3815
|
+
export type CreateThreatEventTagError = DefaultErrors;
|
|
3816
|
+
|
|
3817
|
+
export const createThreatEventTag: API.OperationMethod<
|
|
3818
|
+
CreateThreatEventTagRequest,
|
|
3819
|
+
CreateThreatEventTagResponse,
|
|
3820
|
+
CreateThreatEventTagError,
|
|
3821
|
+
Credentials | HttpClient.HttpClient
|
|
3822
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3823
|
+
input: CreateThreatEventTagRequest,
|
|
3824
|
+
output: CreateThreatEventTagResponse,
|
|
3825
|
+
errors: [],
|
|
3826
|
+
}));
|
|
3827
|
+
|
|
3828
|
+
// =============================================================================
|
|
3829
|
+
// ThreatEventTargetIndustry
|
|
3830
|
+
// =============================================================================
|
|
3831
|
+
|
|
3832
|
+
export interface ListThreatEventTargetIndustriesRequest {
|
|
3833
|
+
/** Path param: Account ID. */
|
|
3834
|
+
accountId: string;
|
|
3835
|
+
/** Query param: Array of dataset IDs to query target industries from. If not provided, uses the default dataset. */
|
|
3836
|
+
datasetIds?: string[];
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
export const ListThreatEventTargetIndustriesRequest =
|
|
3840
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3841
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3842
|
+
datasetIds: Schema.optional(Schema.Array(Schema.String)).pipe(
|
|
3843
|
+
T.HttpQuery("datasetIds"),
|
|
3844
|
+
),
|
|
3845
|
+
}).pipe(
|
|
3846
|
+
T.Http({
|
|
3847
|
+
method: "GET",
|
|
3848
|
+
path: "/accounts/{account_id}/cloudforce-one/events/targetIndustries",
|
|
3849
|
+
}),
|
|
3850
|
+
) as unknown as Schema.Schema<ListThreatEventTargetIndustriesRequest>;
|
|
3851
|
+
|
|
3852
|
+
export interface ListThreatEventTargetIndustriesResponse {
|
|
3853
|
+
items: { type: string };
|
|
3854
|
+
type: string;
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
export const ListThreatEventTargetIndustriesResponse =
|
|
3858
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3859
|
+
items: Schema.Struct({
|
|
3860
|
+
type: Schema.String,
|
|
3861
|
+
}),
|
|
3862
|
+
type: Schema.String,
|
|
3863
|
+
}) as unknown as Schema.Schema<ListThreatEventTargetIndustriesResponse>;
|
|
3864
|
+
|
|
3865
|
+
export type ListThreatEventTargetIndustriesError = DefaultErrors;
|
|
3866
|
+
|
|
3867
|
+
export const listThreatEventTargetIndustries: API.OperationMethod<
|
|
3868
|
+
ListThreatEventTargetIndustriesRequest,
|
|
3869
|
+
ListThreatEventTargetIndustriesResponse,
|
|
3870
|
+
ListThreatEventTargetIndustriesError,
|
|
3871
|
+
Credentials | HttpClient.HttpClient
|
|
3872
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3873
|
+
input: ListThreatEventTargetIndustriesRequest,
|
|
3874
|
+
output: ListThreatEventTargetIndustriesResponse,
|
|
3875
|
+
errors: [],
|
|
3876
|
+
}));
|