cloudflare 6.0.0 → 6.2.0
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/CHANGELOG.md +293 -0
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/index.mjs +6 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/acm/custom-trust-store.d.ts +9 -6
- package/resources/acm/custom-trust-store.d.ts.map +1 -1
- package/resources/acm/custom-trust-store.js +5 -4
- package/resources/acm/custom-trust-store.js.map +1 -1
- package/resources/acm/custom-trust-store.mjs +5 -4
- package/resources/acm/custom-trust-store.mjs.map +1 -1
- package/resources/ai-gateway/ai-gateway.d.ts +241 -0
- package/resources/ai-gateway/ai-gateway.d.ts.map +1 -1
- package/resources/ai-gateway/ai-gateway.js +4 -0
- package/resources/ai-gateway/ai-gateway.js.map +1 -1
- package/resources/ai-gateway/ai-gateway.mjs +4 -0
- package/resources/ai-gateway/ai-gateway.mjs.map +1 -1
- package/resources/ai-gateway/billing/billing.d.ts +202 -0
- package/resources/ai-gateway/billing/billing.d.ts.map +1 -0
- package/resources/ai-gateway/billing/billing.js +111 -0
- package/resources/ai-gateway/billing/billing.js.map +1 -0
- package/resources/ai-gateway/billing/billing.mjs +84 -0
- package/resources/ai-gateway/billing/billing.mjs.map +1 -0
- package/resources/ai-gateway/billing/index.d.ts +4 -0
- package/resources/ai-gateway/billing/index.d.ts.map +1 -0
- package/resources/ai-gateway/billing/index.js +11 -0
- package/resources/ai-gateway/billing/index.js.map +1 -0
- package/resources/ai-gateway/billing/index.mjs +5 -0
- package/resources/ai-gateway/billing/index.mjs.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.d.ts +90 -0
- package/resources/ai-gateway/billing/spending-limit.d.ts.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.js +60 -0
- package/resources/ai-gateway/billing/spending-limit.js.map +1 -0
- package/resources/ai-gateway/billing/spending-limit.mjs +56 -0
- package/resources/ai-gateway/billing/spending-limit.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/config.d.ts +84 -0
- package/resources/ai-gateway/billing/topup/config.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/config.js +59 -0
- package/resources/ai-gateway/billing/topup/config.js.map +1 -0
- package/resources/ai-gateway/billing/topup/config.mjs +55 -0
- package/resources/ai-gateway/billing/topup/config.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/index.d.ts +3 -0
- package/resources/ai-gateway/billing/topup/index.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/index.js +9 -0
- package/resources/ai-gateway/billing/topup/index.js.map +1 -0
- package/resources/ai-gateway/billing/topup/index.mjs +4 -0
- package/resources/ai-gateway/billing/topup/index.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.d.ts +83 -0
- package/resources/ai-gateway/billing/topup/topup.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.js +76 -0
- package/resources/ai-gateway/billing/topup/topup.js.map +1 -0
- package/resources/ai-gateway/billing/topup/topup.mjs +49 -0
- package/resources/ai-gateway/billing/topup/topup.mjs.map +1 -0
- package/resources/ai-gateway/billing/topup.d.ts +2 -0
- package/resources/ai-gateway/billing/topup.d.ts.map +1 -0
- package/resources/ai-gateway/billing/topup.js +19 -0
- package/resources/ai-gateway/billing/topup.js.map +1 -0
- package/resources/ai-gateway/billing/topup.mjs +3 -0
- package/resources/ai-gateway/billing/topup.mjs.map +1 -0
- package/resources/ai-gateway/billing.d.ts +2 -0
- package/resources/ai-gateway/billing.d.ts.map +1 -0
- package/resources/ai-gateway/billing.js +19 -0
- package/resources/ai-gateway/billing.js.map +1 -0
- package/resources/ai-gateway/billing.mjs +3 -0
- package/resources/ai-gateway/billing.mjs.map +1 -0
- package/resources/ai-gateway/dynamic-routing.d.ts +17 -0
- package/resources/ai-gateway/dynamic-routing.d.ts.map +1 -1
- package/resources/ai-gateway/dynamic-routing.js +5 -2
- package/resources/ai-gateway/dynamic-routing.js.map +1 -1
- package/resources/ai-gateway/dynamic-routing.mjs +5 -2
- package/resources/ai-gateway/dynamic-routing.mjs.map +1 -1
- package/resources/ai-gateway/index.d.ts +1 -0
- package/resources/ai-gateway/index.d.ts.map +1 -1
- package/resources/ai-gateway/index.js +3 -1
- package/resources/ai-gateway/index.js.map +1 -1
- package/resources/ai-gateway/index.mjs +1 -0
- package/resources/ai-gateway/index.mjs.map +1 -1
- package/resources/ai-security/ai-security.d.ts +70 -0
- package/resources/ai-security/ai-security.d.ts.map +1 -0
- package/resources/ai-security/ai-security.js +69 -0
- package/resources/ai-security/ai-security.js.map +1 -0
- package/resources/ai-security/ai-security.mjs +42 -0
- package/resources/ai-security/ai-security.mjs.map +1 -0
- package/resources/ai-security/custom-topics.d.ts +105 -0
- package/resources/ai-security/custom-topics.d.ts.map +1 -0
- package/resources/ai-security/custom-topics.js +48 -0
- package/resources/ai-security/custom-topics.js.map +1 -0
- package/resources/ai-security/custom-topics.mjs +44 -0
- package/resources/ai-security/custom-topics.mjs.map +1 -0
- package/resources/ai-security/index.d.ts +3 -0
- package/resources/ai-security/index.d.ts.map +1 -0
- package/resources/ai-security/index.js +9 -0
- package/resources/ai-security/index.js.map +1 -0
- package/resources/ai-security/index.mjs +4 -0
- package/resources/ai-security/index.mjs.map +1 -0
- package/resources/ai-security.d.ts +2 -0
- package/resources/ai-security.d.ts.map +1 -0
- package/resources/ai-security.js +19 -0
- package/resources/ai-security.js.map +1 -0
- package/resources/ai-security.mjs +3 -0
- package/resources/ai-security.mjs.map +1 -0
- package/resources/aisearch/instances/instances.d.ts +112 -21
- package/resources/aisearch/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/instances/instances.js.map +1 -1
- package/resources/aisearch/instances/instances.mjs.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.d.ts +112 -21
- package/resources/aisearch/namespaces/instances/instances.d.ts.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.js.map +1 -1
- package/resources/aisearch/namespaces/instances/instances.mjs.map +1 -1
- package/resources/billing/usage.d.ts +3 -1
- package/resources/billing/usage.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/d1/d1.d.ts +3 -3
- package/resources/d1/database/database.d.ts +17 -0
- package/resources/d1/database/database.d.ts.map +1 -1
- package/resources/d1/database/database.js.map +1 -1
- package/resources/d1/database/database.mjs.map +1 -1
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.d.ts +26 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.js +59 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.mjs +32 -0
- package/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.d.ts +180 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.js +99 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.mjs +71 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.d.ts +157 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/allowlist.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.d.ts +7 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.js +20 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.mjs +8 -0
- package/resources/ddos-protection/advanced-tcp-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.js +11 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.d.ts +157 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.d.ts +257 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.js +129 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.mjs +100 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/prefixes.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.d.ts +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.js +42 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.mjs +38 -0
- package/resources/ddos-protection/advanced-tcp-protection/status.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.d.ts +174 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.js +96 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.mjs +68 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.d.ts +150 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.d.ts +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.js +13 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.mjs +5 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.d.ts +203 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.d.ts +234 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.js +98 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.mjs +70 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.d.ts +14 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.js +45 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.mjs +18 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/syn-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.d.ts +174 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.js +96 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.mjs +68 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.d.ts +150 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.d.ts +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.js +13 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.mjs +5 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.d.ts +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.js +10 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.mjs +4 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.d.ts +190 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.js +57 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.mjs +53 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.d.ts +220 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.js +98 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.mjs +70 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.d.ts +14 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.js +45 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.mjs +18 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.mjs.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.d.ts +2 -0
- package/resources/ddos-protection/advanced-tcp-protection.d.ts.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.js +19 -0
- package/resources/ddos-protection/advanced-tcp-protection.js.map +1 -0
- package/resources/ddos-protection/advanced-tcp-protection.mjs +3 -0
- package/resources/ddos-protection/advanced-tcp-protection.mjs.map +1 -0
- package/resources/ddos-protection/ddos-protection.d.ts +10 -0
- package/resources/ddos-protection/ddos-protection.d.ts.map +1 -0
- package/resources/ddos-protection/ddos-protection.js +39 -0
- package/resources/ddos-protection/ddos-protection.js.map +1 -0
- package/resources/ddos-protection/ddos-protection.mjs +12 -0
- package/resources/ddos-protection/ddos-protection.mjs.map +1 -0
- package/resources/ddos-protection/index.d.ts +3 -0
- package/resources/ddos-protection/index.d.ts.map +1 -0
- package/resources/ddos-protection/index.js +9 -0
- package/resources/ddos-protection/index.js.map +1 -0
- package/resources/ddos-protection/index.mjs +4 -0
- package/resources/ddos-protection/index.mjs.map +1 -0
- package/resources/ddos-protection.d.ts +2 -0
- package/resources/ddos-protection.d.ts.map +1 -0
- package/resources/ddos-protection.js +19 -0
- package/resources/ddos-protection.js.map +1 -0
- package/resources/ddos-protection.mjs +3 -0
- package/resources/ddos-protection.mjs.map +1 -0
- package/resources/email-security/investigate/investigate.d.ts +10 -0
- package/resources/email-security/investigate/investigate.d.ts.map +1 -1
- package/resources/email-security/investigate/investigate.js.map +1 -1
- package/resources/email-security/investigate/investigate.mjs.map +1 -1
- package/resources/email-security/submissions.d.ts +6 -0
- package/resources/email-security/submissions.d.ts.map +1 -1
- package/resources/email-security/submissions.js.map +1 -1
- package/resources/email-security/submissions.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts +101 -1
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.js.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.mjs.map +1 -1
- package/resources/intel/miscategorizations.d.ts +5 -0
- package/resources/intel/miscategorizations.d.ts.map +1 -1
- package/resources/intel/miscategorizations.js +5 -0
- package/resources/intel/miscategorizations.js.map +1 -1
- package/resources/intel/miscategorizations.mjs +5 -0
- package/resources/intel/miscategorizations.mjs.map +1 -1
- package/resources/load-balancers/index.d.ts +1 -1
- package/resources/load-balancers/index.d.ts.map +1 -1
- package/resources/load-balancers/index.js +9 -9
- package/resources/load-balancers/index.js.map +1 -1
- package/resources/load-balancers/index.mjs +1 -1
- package/resources/load-balancers/load-balancers.d.ts +2 -2
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/load-balancers.js +2 -2
- package/resources/load-balancers/load-balancers.js.map +1 -1
- package/resources/load-balancers/load-balancers.mjs +2 -2
- package/resources/load-balancers/load-balancers.mjs.map +1 -1
- package/resources/load-balancers/monitor-groups/index.d.ts +3 -0
- package/resources/load-balancers/monitor-groups/index.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/index.js +11 -0
- package/resources/load-balancers/monitor-groups/index.js.map +1 -0
- package/resources/load-balancers/monitor-groups/index.mjs +4 -0
- package/resources/load-balancers/monitor-groups/index.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.d.ts +299 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.js +181 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.js.map +1 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.mjs +153 -0
- package/resources/load-balancers/monitor-groups/monitor-groups.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups/references.d.ts +38 -0
- package/resources/load-balancers/monitor-groups/references.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups/references.js +32 -0
- package/resources/load-balancers/monitor-groups/references.js.map +1 -0
- package/resources/load-balancers/monitor-groups/references.mjs +27 -0
- package/resources/load-balancers/monitor-groups/references.mjs.map +1 -0
- package/resources/load-balancers/monitor-groups.d.ts +1 -312
- package/resources/load-balancers/monitor-groups.d.ts.map +1 -1
- package/resources/load-balancers/monitor-groups.js +15 -149
- package/resources/load-balancers/monitor-groups.js.map +1 -1
- package/resources/load-balancers/monitor-groups.mjs +1 -146
- package/resources/load-balancers/monitor-groups.mjs.map +1 -1
- package/resources/radar/bgp/bgp.d.ts +2 -2
- package/resources/radar/bgp/bgp.d.ts.map +1 -1
- package/resources/radar/bgp/bgp.js +2 -2
- package/resources/radar/bgp/bgp.js.map +1 -1
- package/resources/radar/bgp/bgp.mjs +2 -2
- package/resources/radar/bgp/bgp.mjs.map +1 -1
- package/resources/radar/bgp/index.d.ts +1 -1
- package/resources/radar/bgp/index.d.ts.map +1 -1
- package/resources/radar/bgp/index.js +8 -8
- package/resources/radar/bgp/index.js.map +1 -1
- package/resources/radar/bgp/index.mjs +1 -1
- package/resources/radar/bgp/ips/index.d.ts +3 -0
- package/resources/radar/bgp/ips/index.d.ts.map +1 -0
- package/resources/radar/bgp/ips/index.js +9 -0
- package/resources/radar/bgp/ips/index.js.map +1 -0
- package/resources/radar/bgp/ips/index.mjs +4 -0
- package/resources/radar/bgp/ips/index.mjs.map +1 -0
- package/resources/radar/bgp/ips/ips.d.ts +187 -0
- package/resources/radar/bgp/ips/ips.d.ts.map +1 -0
- package/resources/radar/bgp/ips/ips.js +46 -0
- package/resources/radar/bgp/ips/ips.js.map +1 -0
- package/resources/radar/bgp/ips/ips.mjs +19 -0
- package/resources/radar/bgp/ips/ips.mjs.map +1 -0
- package/resources/radar/bgp/ips/top.d.ts +55 -0
- package/resources/radar/bgp/ips/top.d.ts.map +1 -0
- package/resources/radar/bgp/ips/top.js +16 -0
- package/resources/radar/bgp/ips/top.js.map +1 -0
- package/resources/radar/bgp/ips/top.mjs +12 -0
- package/resources/radar/bgp/ips/top.mjs.map +1 -0
- package/resources/radar/bgp/ips.d.ts +1 -182
- package/resources/radar/bgp/ips.d.ts.map +1 -1
- package/resources/radar/bgp/ips.js +15 -12
- package/resources/radar/bgp/ips.js.map +1 -1
- package/resources/radar/bgp/ips.mjs +1 -10
- package/resources/radar/bgp/ips.mjs.map +1 -1
- package/resources/radar/bgp/rpki/index.d.ts +1 -0
- package/resources/radar/bgp/rpki/index.d.ts.map +1 -1
- package/resources/radar/bgp/rpki/index.js +3 -1
- package/resources/radar/bgp/rpki/index.js.map +1 -1
- package/resources/radar/bgp/rpki/index.mjs +1 -0
- package/resources/radar/bgp/rpki/index.mjs.map +1 -1
- package/resources/radar/bgp/rpki/roas.d.ts +78 -0
- package/resources/radar/bgp/rpki/roas.d.ts.map +1 -0
- package/resources/radar/bgp/rpki/roas.js +16 -0
- package/resources/radar/bgp/rpki/roas.js.map +1 -0
- package/resources/radar/bgp/rpki/roas.mjs +12 -0
- package/resources/radar/bgp/rpki/roas.mjs.map +1 -0
- package/resources/radar/bgp/rpki/rpki.d.ts +4 -0
- package/resources/radar/bgp/rpki/rpki.d.ts.map +1 -1
- package/resources/radar/bgp/rpki/rpki.js +4 -0
- package/resources/radar/bgp/rpki/rpki.js.map +1 -1
- package/resources/radar/bgp/rpki/rpki.mjs +4 -0
- package/resources/radar/bgp/rpki/rpki.mjs.map +1 -1
- package/resources/radar/dns/dns.d.ts +3 -3
- package/resources/radar/dns/dns.d.ts.map +1 -1
- package/resources/radar/dns/dns.js.map +1 -1
- package/resources/radar/dns/dns.mjs.map +1 -1
- package/resources/radar/http/http.d.ts +19 -4
- package/resources/radar/http/http.d.ts.map +1 -1
- package/resources/radar/http/http.js.map +1 -1
- package/resources/radar/http/http.mjs.map +1 -1
- package/resources/radar/post-quantum/tls.d.ts +28 -3
- package/resources/radar/post-quantum/tls.d.ts.map +1 -1
- package/resources/radar/post-quantum/tls.js +3 -2
- package/resources/radar/post-quantum/tls.js.map +1 -1
- package/resources/radar/post-quantum/tls.mjs +3 -2
- package/resources/radar/post-quantum/tls.mjs.map +1 -1
- package/resources/radar/quality/iqi.d.ts +1 -3
- package/resources/radar/quality/iqi.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.d.ts +14 -7
- package/resources/resource-sharing/resource-sharing.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.js.map +1 -1
- package/resources/resource-sharing/resource-sharing.mjs.map +1 -1
- package/resources/resource-sharing/resources.d.ts +7 -7
- package/resources/resource-sharing/resources.d.ts.map +1 -1
- package/resources/resource-sharing/resources.js.map +1 -1
- package/resources/resource-sharing/resources.mjs.map +1 -1
- package/resources/secrets-store/stores/stores.d.ts +11 -2
- package/resources/secrets-store/stores/stores.d.ts.map +1 -1
- package/resources/secrets-store/stores/stores.js +9 -3
- package/resources/secrets-store/stores/stores.js.map +1 -1
- package/resources/secrets-store/stores/stores.mjs +9 -3
- package/resources/secrets-store/stores/stores.mjs.map +1 -1
- package/resources/security-center/insights/audit-logs.d.ts +192 -0
- package/resources/security-center/insights/audit-logs.d.ts.map +1 -0
- package/resources/security-center/insights/audit-logs.js +64 -0
- package/resources/security-center/insights/audit-logs.js.map +1 -0
- package/resources/security-center/insights/audit-logs.mjs +58 -0
- package/resources/security-center/insights/audit-logs.mjs.map +1 -0
- package/resources/security-center/insights/class.d.ts +8 -0
- package/resources/security-center/insights/class.d.ts.map +1 -1
- package/resources/security-center/insights/class.js.map +1 -1
- package/resources/security-center/insights/class.mjs.map +1 -1
- package/resources/security-center/insights/classification.d.ts +77 -0
- package/resources/security-center/insights/classification.d.ts.map +1 -0
- package/resources/security-center/insights/classification.js +43 -0
- package/resources/security-center/insights/classification.js.map +1 -0
- package/resources/security-center/insights/classification.mjs +39 -0
- package/resources/security-center/insights/classification.mjs.map +1 -0
- package/resources/security-center/insights/context.d.ts +31 -0
- package/resources/security-center/insights/context.d.ts.map +1 -0
- package/resources/security-center/insights/context.js +26 -0
- package/resources/security-center/insights/context.js.map +1 -0
- package/resources/security-center/insights/context.mjs +22 -0
- package/resources/security-center/insights/context.mjs.map +1 -0
- package/resources/security-center/insights/index.d.ts +3 -0
- package/resources/security-center/insights/index.d.ts.map +1 -1
- package/resources/security-center/insights/index.js +9 -1
- package/resources/security-center/insights/index.js.map +1 -1
- package/resources/security-center/insights/index.mjs +3 -0
- package/resources/security-center/insights/index.mjs.map +1 -1
- package/resources/security-center/insights/insights.d.ts +30 -0
- package/resources/security-center/insights/insights.d.ts.map +1 -1
- package/resources/security-center/insights/insights.js +22 -0
- package/resources/security-center/insights/insights.js.map +1 -1
- package/resources/security-center/insights/insights.mjs +22 -0
- package/resources/security-center/insights/insights.mjs.map +1 -1
- package/resources/security-center/insights/severity.d.ts +8 -0
- package/resources/security-center/insights/severity.d.ts.map +1 -1
- package/resources/security-center/insights/severity.js.map +1 -1
- package/resources/security-center/insights/severity.mjs.map +1 -1
- package/resources/security-center/insights/type.d.ts +7 -0
- package/resources/security-center/insights/type.d.ts.map +1 -1
- package/resources/security-center/insights/type.js.map +1 -1
- package/resources/security-center/insights/type.mjs.map +1 -1
- package/resources/url-scanner/scans.d.ts +36 -0
- package/resources/url-scanner/scans.d.ts.map +1 -1
- package/resources/user/user.d.ts +10 -2
- package/resources/user/user.d.ts.map +1 -1
- package/resources/user/user.js.map +1 -1
- package/resources/user/user.mjs.map +1 -1
- package/resources/workflows/instances/instances.d.ts +5 -0
- package/resources/workflows/instances/instances.d.ts.map +1 -1
- package/resources/workflows/instances/instances.js.map +1 -1
- package/resources/workflows/instances/instances.mjs.map +1 -1
- package/resources/zero-trust/access/logs/access-requests.d.ts +19 -8
- package/resources/zero-trust/access/logs/access-requests.d.ts.map +1 -1
- package/resources/zero-trust/access/logs/scim/updates.d.ts +20 -8
- package/resources/zero-trust/access/logs/scim/updates.d.ts.map +1 -1
- package/resources/zero-trust/access/logs/scim/updates.js.map +1 -1
- package/resources/zero-trust/access/logs/scim/updates.mjs.map +1 -1
- package/resources/zero-trust/devices/deployment-groups.d.ts +203 -0
- package/resources/zero-trust/devices/deployment-groups.d.ts.map +1 -0
- package/resources/zero-trust/devices/deployment-groups.js +111 -0
- package/resources/zero-trust/devices/deployment-groups.js.map +1 -0
- package/resources/zero-trust/devices/deployment-groups.mjs +106 -0
- package/resources/zero-trust/devices/deployment-groups.mjs.map +1 -0
- package/resources/zero-trust/devices/devices.d.ts +4 -0
- package/resources/zero-trust/devices/devices.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices.js +5 -0
- package/resources/zero-trust/devices/devices.js.map +1 -1
- package/resources/zero-trust/devices/devices.mjs +5 -0
- package/resources/zero-trust/devices/devices.mjs.map +1 -1
- package/resources/zero-trust/devices/fleet-status.d.ts +4 -0
- package/resources/zero-trust/devices/fleet-status.d.ts.map +1 -1
- package/resources/zero-trust/devices/index.d.ts +1 -0
- package/resources/zero-trust/devices/index.d.ts.map +1 -1
- package/resources/zero-trust/devices/index.js +4 -1
- package/resources/zero-trust/devices/index.js.map +1 -1
- package/resources/zero-trust/devices/index.mjs +1 -0
- package/resources/zero-trust/devices/index.mjs.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.d.ts +4 -0
- package/resources/zero-trust/dex/fleet-status/devices.d.ts.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.js.map +1 -1
- package/resources/zero-trust/dex/fleet-status/devices.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.js.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.d.ts +71 -26
- package/resources/zero-trust/dlp/entries/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.js.map +1 -1
- package/resources/zero-trust/dlp/entries/entries.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/integration.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.js.map +1 -1
- package/resources/zero-trust/dlp/entries/integration.mjs.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.d.ts +59 -25
- package/resources/zero-trust/dlp/entries/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.js.map +1 -1
- package/resources/zero-trust/dlp/entries/predefined.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/custom.d.ts +24 -2
- package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts +12 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.d.ts +60 -5
- package/resources/zero-trust/dlp/profiles/profiles.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.mjs.map +1 -1
- package/resources/zero-trust/identity-providers/scim/groups.d.ts +10 -4
- package/resources/zero-trust/identity-providers/scim/groups.d.ts.map +1 -1
- package/resources/zero-trust/identity-providers/scim/groups.js.map +1 -1
- package/resources/zero-trust/identity-providers/scim/groups.mjs.map +1 -1
- package/resources/zero-trust/identity-providers/scim/users.d.ts +10 -4
- package/resources/zero-trust/identity-providers/scim/users.d.ts.map +1 -1
- package/resources/zero-trust/identity-providers/scim/users.js.map +1 -1
- package/resources/zero-trust/identity-providers/scim/users.mjs.map +1 -1
- package/resources/zero-trust/index.d.ts +1 -0
- package/resources/zero-trust/index.d.ts.map +1 -1
- package/resources/zero-trust/index.js +8 -6
- package/resources/zero-trust/index.js.map +1 -1
- package/resources/zero-trust/index.mjs +1 -0
- package/resources/zero-trust/index.mjs.map +1 -1
- package/resources/zero-trust/resource-library/applications.d.ts +238 -0
- package/resources/zero-trust/resource-library/applications.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/applications.js +47 -0
- package/resources/zero-trust/resource-library/applications.js.map +1 -0
- package/resources/zero-trust/resource-library/applications.mjs +42 -0
- package/resources/zero-trust/resource-library/applications.mjs.map +1 -0
- package/resources/zero-trust/resource-library/categories.d.ts +94 -0
- package/resources/zero-trust/resource-library/categories.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/categories.js +47 -0
- package/resources/zero-trust/resource-library/categories.js.map +1 -0
- package/resources/zero-trust/resource-library/categories.mjs +42 -0
- package/resources/zero-trust/resource-library/categories.mjs.map +1 -0
- package/resources/zero-trust/resource-library/index.d.ts +4 -0
- package/resources/zero-trust/resource-library/index.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/index.js +13 -0
- package/resources/zero-trust/resource-library/index.js.map +1 -0
- package/resources/zero-trust/resource-library/index.mjs +5 -0
- package/resources/zero-trust/resource-library/index.mjs.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.d.ts +14 -0
- package/resources/zero-trust/resource-library/resource-library.d.ts.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.js +45 -0
- package/resources/zero-trust/resource-library/resource-library.js.map +1 -0
- package/resources/zero-trust/resource-library/resource-library.mjs +18 -0
- package/resources/zero-trust/resource-library/resource-library.mjs.map +1 -0
- package/resources/zero-trust/resource-library.d.ts +2 -0
- package/resources/zero-trust/resource-library.d.ts.map +1 -0
- package/resources/zero-trust/resource-library.js +19 -0
- package/resources/zero-trust/resource-library.js.map +1 -0
- package/resources/zero-trust/resource-library.mjs +3 -0
- package/resources/zero-trust/resource-library.mjs.map +1 -0
- package/resources/zero-trust/zero-trust.d.ts +4 -0
- package/resources/zero-trust/zero-trust.d.ts.map +1 -1
- package/resources/zero-trust/zero-trust.js +4 -0
- package/resources/zero-trust/zero-trust.js.map +1 -1
- package/resources/zero-trust/zero-trust.mjs +4 -0
- package/resources/zero-trust/zero-trust.mjs.map +1 -1
- package/resources/zones/custom-nameservers.d.ts +4 -0
- package/resources/zones/custom-nameservers.d.ts.map +1 -1
- package/resources/zones/custom-nameservers.js.map +1 -1
- package/resources/zones/custom-nameservers.mjs.map +1 -1
- package/resources/zones/settings.d.ts +52 -2
- package/resources/zones/settings.d.ts.map +1 -1
- package/resources/zones/zones.d.ts +6 -0
- package/resources/zones/zones.d.ts.map +1 -1
- package/resources/zones/zones.js.map +1 -1
- package/resources/zones/zones.mjs.map +1 -1
- package/src/index.ts +10 -0
- package/src/resources/acm/custom-trust-store.ts +9 -6
- package/src/resources/ai-gateway/ai-gateway.ts +449 -0
- package/src/resources/ai-gateway/api.md +56 -0
- package/src/resources/ai-gateway/billing/billing.ts +363 -0
- package/src/resources/ai-gateway/billing/index.ts +29 -0
- package/src/resources/ai-gateway/billing/spending-limit.ts +148 -0
- package/src/resources/ai-gateway/billing/topup/config.ts +133 -0
- package/src/resources/ai-gateway/billing/topup/index.ts +18 -0
- package/src/resources/ai-gateway/billing/topup/topup.ts +139 -0
- package/src/resources/ai-gateway/billing/topup.ts +3 -0
- package/src/resources/ai-gateway/billing.ts +3 -0
- package/src/resources/ai-gateway/dynamic-routing.ts +30 -2
- package/src/resources/ai-gateway/index.ts +11 -0
- package/src/resources/ai-security/ai-security.ts +117 -0
- package/src/resources/ai-security/api.md +23 -0
- package/src/resources/ai-security/custom-topics.ts +143 -0
- package/src/resources/ai-security/index.ts +10 -0
- package/src/resources/ai-security.ts +3 -0
- package/src/resources/aisearch/instances/instances.ts +119 -21
- package/src/resources/aisearch/namespaces/instances/instances.ts +119 -21
- package/src/resources/billing/usage.ts +3 -1
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +1 -1
- package/src/resources/d1/d1.ts +3 -3
- package/src/resources/d1/database/database.ts +19 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/advanced-tcp-protection.ts +93 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/allowlist.ts +277 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist/items.ts +233 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/allowlist.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/index.ts +35 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/index.ts +24 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/items.ts +233 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes/prefixes.ts +377 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/prefixes.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/status.ts +87 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/filters.ts +266 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters/items.ts +224 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/filters.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/index.ts +23 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/items.ts +287 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules/rules.ts +337 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/rules.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection/syn-protection.ts +59 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/syn-protection.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/filters.ts +266 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters/items.ts +224 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/filters.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/index.ts +23 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/index.ts +21 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/items.ts +271 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules/rules.ts +320 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/rules.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection/tcp-flow-protection.ts +59 -0
- package/src/resources/ddos-protection/advanced-tcp-protection/tcp-flow-protection.ts +3 -0
- package/src/resources/ddos-protection/advanced-tcp-protection.ts +3 -0
- package/src/resources/ddos-protection/api.md +189 -0
- package/src/resources/ddos-protection/ddos-protection.ts +16 -0
- package/src/resources/ddos-protection/index.ts +4 -0
- package/src/resources/ddos-protection.ts +3 -0
- package/src/resources/email-security/investigate/investigate.ts +17 -0
- package/src/resources/email-security/submissions.ts +7 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/intel/indicator-feeds/indicator-feeds.ts +118 -1
- package/src/resources/intel/miscategorizations.ts +5 -0
- package/src/resources/load-balancers/api.md +17 -7
- package/src/resources/load-balancers/index.ts +1 -1
- package/src/resources/load-balancers/load-balancers.ts +12 -12
- package/src/resources/load-balancers/monitor-groups/index.ts +19 -0
- package/src/resources/load-balancers/monitor-groups/monitor-groups.ts +433 -0
- package/src/resources/load-balancers/monitor-groups/references.ts +63 -0
- package/src/resources/load-balancers/monitor-groups.ts +1 -434
- package/src/resources/radar/api.md +22 -2
- package/src/resources/radar/bgp/bgp.ts +2 -2
- package/src/resources/radar/bgp/index.ts +1 -1
- package/src/resources/radar/bgp/ips/index.ts +4 -0
- package/src/resources/radar/bgp/ips/ips.ts +295 -0
- package/src/resources/radar/bgp/ips/top.ts +84 -0
- package/src/resources/radar/bgp/ips.ts +1 -285
- package/src/resources/radar/bgp/rpki/index.ts +1 -0
- package/src/resources/radar/bgp/rpki/roas.ts +120 -0
- package/src/resources/radar/bgp/rpki/rpki.ts +10 -0
- package/src/resources/radar/dns/dns.ts +7 -4
- package/src/resources/radar/http/http.ts +24 -0
- package/src/resources/radar/post-quantum/tls.ts +32 -3
- package/src/resources/radar/quality/iqi.ts +2 -6
- package/src/resources/resource-sharing/resource-sharing.ts +21 -6
- package/src/resources/resource-sharing/resources.ts +14 -7
- package/src/resources/secrets-store/stores/stores.ts +17 -7
- package/src/resources/security-center/api.md +32 -0
- package/src/resources/security-center/insights/audit-logs.ts +313 -0
- package/src/resources/security-center/insights/class.ts +8 -0
- package/src/resources/security-center/insights/classification.ts +127 -0
- package/src/resources/security-center/insights/context.ts +46 -0
- package/src/resources/security-center/insights/index.ts +15 -0
- package/src/resources/security-center/insights/insights.ts +62 -0
- package/src/resources/security-center/insights/severity.ts +8 -0
- package/src/resources/security-center/insights/type.ts +7 -0
- package/src/resources/url-scanner/scans.ts +58 -0
- package/src/resources/user/user.ts +12 -2
- package/src/resources/workflows/instances/instances.ts +6 -0
- package/src/resources/zero-trust/access/logs/access-requests.ts +19 -8
- package/src/resources/zero-trust/access/logs/scim/updates.ts +20 -8
- package/src/resources/zero-trust/api.md +41 -0
- package/src/resources/zero-trust/devices/deployment-groups.ts +302 -0
- package/src/resources/zero-trust/devices/devices.ts +29 -0
- package/src/resources/zero-trust/devices/fleet-status.ts +5 -0
- package/src/resources/zero-trust/devices/index.ts +11 -0
- package/src/resources/zero-trust/dex/fleet-status/devices.ts +5 -0
- package/src/resources/zero-trust/dlp/entries/custom.ts +78 -25
- package/src/resources/zero-trust/dlp/entries/entries.ts +96 -25
- package/src/resources/zero-trust/dlp/entries/integration.ts +78 -25
- package/src/resources/zero-trust/dlp/entries/predefined.ts +78 -25
- package/src/resources/zero-trust/dlp/profiles/custom.ts +36 -0
- package/src/resources/zero-trust/dlp/profiles/predefined.ts +18 -0
- package/src/resources/zero-trust/dlp/profiles/profiles.ts +90 -0
- package/src/resources/zero-trust/identity-providers/scim/groups.ts +10 -4
- package/src/resources/zero-trust/identity-providers/scim/users.ts +10 -4
- package/src/resources/zero-trust/index.ts +1 -0
- package/src/resources/zero-trust/resource-library/applications.ts +315 -0
- package/src/resources/zero-trust/resource-library/categories.ts +140 -0
- package/src/resources/zero-trust/resource-library/index.ts +19 -0
- package/src/resources/zero-trust/resource-library/resource-library.ts +51 -0
- package/src/resources/zero-trust/resource-library.ts +3 -0
- package/src/resources/zero-trust/zero-trust.ts +6 -0
- package/src/resources/zones/custom-nameservers.ts +5 -0
- package/src/resources/zones/settings.ts +60 -0
- package/src/resources/zones/zones.ts +7 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -70,7 +70,10 @@ class Stores extends resource_1.APIResource {
|
|
|
70
70
|
return this._client.getAPIList(`/accounts/${account_id}/secrets_store/stores`, StoreListResponsesV4PagePaginationArray, { query, ...options });
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
* Deletes a single store
|
|
73
|
+
* Deletes a single store. By default, a store that still contains secrets cannot
|
|
74
|
+
* be deleted and returns HTTP 409 (Conflict) with the "store_not_empty" error.
|
|
75
|
+
* Pass `force=true` to cascade-delete all secrets in the store. Empty stores are
|
|
76
|
+
* always deleted regardless of the force parameter.
|
|
74
77
|
*
|
|
75
78
|
* @example
|
|
76
79
|
* ```ts
|
|
@@ -81,8 +84,11 @@ class Stores extends resource_1.APIResource {
|
|
|
81
84
|
* ```
|
|
82
85
|
*/
|
|
83
86
|
delete(storeId, params, options) {
|
|
84
|
-
const { account_id } = params;
|
|
85
|
-
return this._client.delete(`/accounts/${account_id}/secrets_store/stores/${storeId}`,
|
|
87
|
+
const { account_id, force } = params;
|
|
88
|
+
return this._client.delete(`/accounts/${account_id}/secrets_store/stores/${storeId}`, {
|
|
89
|
+
query: { force },
|
|
90
|
+
...options,
|
|
91
|
+
})._thenUnwrap((obj) => obj.result);
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
94
|
exports.Stores = Stores;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.js","sourceRoot":"","sources":["../../../src/resources/secrets-store/stores/stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,yDAAwC;AACxC,0CAkBmB;AACnB,uDAA8F;AAE9F,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version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,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA5ED,wBA4EC;AAED,MAAa,uCAAwC,SAAQ,kCAAwC;CAAG;AAAxG,0FAAwG;AAwGxG,MAAM,CAAC,uCAAuC,GAAG,uCAAuC,CAAC;AACzF,MAAM,CAAC,OAAO,GAAG,iBAAO,CAAC;AACzB,MAAM,CAAC,+BAA+B,GAAG,yCAA+B,CAAC;AACzE,MAAM,CAAC,wCAAwC,GAAG,kDAAwC,CAAC"}
|
|
@@ -44,7 +44,10 @@ export class Stores extends APIResource {
|
|
|
44
44
|
return this._client.getAPIList(`/accounts/${account_id}/secrets_store/stores`, StoreListResponsesV4PagePaginationArray, { query, ...options });
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Deletes a single store
|
|
47
|
+
* Deletes a single store. By default, a store that still contains secrets cannot
|
|
48
|
+
* be deleted and returns HTTP 409 (Conflict) with the "store_not_empty" error.
|
|
49
|
+
* Pass `force=true` to cascade-delete all secrets in the store. Empty stores are
|
|
50
|
+
* always deleted regardless of the force parameter.
|
|
48
51
|
*
|
|
49
52
|
* @example
|
|
50
53
|
* ```ts
|
|
@@ -55,8 +58,11 @@ export class Stores extends APIResource {
|
|
|
55
58
|
* ```
|
|
56
59
|
*/
|
|
57
60
|
delete(storeId, params, options) {
|
|
58
|
-
const { account_id } = params;
|
|
59
|
-
return this._client.delete(`/accounts/${account_id}/secrets_store/stores/${storeId}`,
|
|
61
|
+
const { account_id, force } = params;
|
|
62
|
+
return this._client.delete(`/accounts/${account_id}/secrets_store/stores/${storeId}`, {
|
|
63
|
+
query: { force },
|
|
64
|
+
...options,
|
|
65
|
+
})._thenUnwrap((obj) => obj.result);
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
export class StoreListResponsesV4PagePaginationArray extends V4PagePaginationArray {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.mjs","sourceRoot":"","sources":["../../../src/resources/secrets-store/stores/stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,UAAU;OACf,EAKL,+BAA+B,EAW/B,wCAAwC,EACxC,OAAO,GACR;OACM,EAAE,qBAAqB,EAAoC;AAElE,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"stores.mjs","sourceRoot":"","sources":["../../../src/resources/secrets-store/stores/stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,UAAU;OACf,EAKL,+BAA+B,EAW/B,wCAAwC,EACxC,OAAO,GACR;OACM,EAAE,qBAAqB,EAAoC;AAElE,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2ErE,CAAC;IAzEC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAyB,EAAE,OAA6B;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,UAAU,uBAAuB,EAAE;YAChE,IAAI;YACJ,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAuB,EACvB,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,aAAa,UAAU,uBAAuB,EAC9C,uCAAuC,EACvC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,OAAe,EACf,MAAyB,EACzB,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACrC,OACE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,UAAU,yBAAyB,OAAO,EAAE,EAAE;YAC7E,KAAK,EAAE,EAAE,KAAK,EAAE;YAChB,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAED,MAAM,OAAO,uCAAwC,SAAQ,qBAAwC;CAAG;AAwGxG,MAAM,CAAC,uCAAuC,GAAG,uCAAuC,CAAC;AACzF,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,MAAM,CAAC,+BAA+B,GAAG,+BAA+B,CAAC;AACzE,MAAM,CAAC,wCAAwC,GAAG,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
import { CursorPagination, type CursorPaginationParams } from "../../../pagination.js";
|
|
4
|
+
export declare class AuditLogs extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists audit log entries for all Security Center insights in the account or zone,
|
|
7
|
+
* showing changes to insight status and classification.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Automatically fetches more pages as needed.
|
|
12
|
+
* for await (const auditLogListResponse of client.securityCenter.insights.auditLogs.list(
|
|
13
|
+
* { account_id: 'account_id' },
|
|
14
|
+
* )) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(params?: AuditLogListParams, options?: Core.RequestOptions): Core.PagePromise<AuditLogListResponsesCursorPagination, AuditLogListResponse>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.PagePromise<AuditLogListResponsesCursorPagination, AuditLogListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Lists audit log entries for a specific Security Center insight, showing changes
|
|
23
|
+
* to its status and classification over time.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Automatically fetches more pages as needed.
|
|
28
|
+
* for await (const auditLogListByInsightResponse of client.securityCenter.insights.auditLogs.listByInsight(
|
|
29
|
+
* 'issue_id',
|
|
30
|
+
* { account_id: 'account_id' },
|
|
31
|
+
* )) {
|
|
32
|
+
* // ...
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
listByInsight(issueId: string, params?: AuditLogListByInsightParams, options?: Core.RequestOptions): Core.PagePromise<AuditLogListByInsightResponsesCursorPagination, AuditLogListByInsightResponse>;
|
|
37
|
+
listByInsight(issueId: string, options?: Core.RequestOptions): Core.PagePromise<AuditLogListByInsightResponsesCursorPagination, AuditLogListByInsightResponse>;
|
|
38
|
+
}
|
|
39
|
+
export declare class AuditLogListResponsesCursorPagination extends CursorPagination<AuditLogListResponse> {
|
|
40
|
+
}
|
|
41
|
+
export declare class AuditLogListByInsightResponsesCursorPagination extends CursorPagination<AuditLogListByInsightResponse> {
|
|
42
|
+
}
|
|
43
|
+
export interface AuditLogListResponse {
|
|
44
|
+
/**
|
|
45
|
+
* UUIDv7 identifier for the audit log entry, time-ordered.
|
|
46
|
+
*/
|
|
47
|
+
id?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The timestamp when the change occurred.
|
|
50
|
+
*/
|
|
51
|
+
changed_at?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The actor that made the change. 'system' for automated changes, or a user
|
|
54
|
+
* identifier.
|
|
55
|
+
*/
|
|
56
|
+
changed_by?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The value of the field after the change. Null if the field was cleared.
|
|
59
|
+
*/
|
|
60
|
+
current_value?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* The field that was changed.
|
|
63
|
+
*/
|
|
64
|
+
field_changed?: 'status' | 'user_classification';
|
|
65
|
+
/**
|
|
66
|
+
* The ID of the insight this audit log entry relates to.
|
|
67
|
+
*/
|
|
68
|
+
issue_id?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The value of the field before the change. Null if the field was not previously
|
|
71
|
+
* set.
|
|
72
|
+
*/
|
|
73
|
+
previous_value?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Optional rationale provided for the change.
|
|
76
|
+
*/
|
|
77
|
+
rationale?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The zone ID associated with the insight. Only present for zone-level insights.
|
|
80
|
+
*/
|
|
81
|
+
zone_id?: number;
|
|
82
|
+
}
|
|
83
|
+
export interface AuditLogListByInsightResponse {
|
|
84
|
+
/**
|
|
85
|
+
* UUIDv7 identifier for the audit log entry, time-ordered.
|
|
86
|
+
*/
|
|
87
|
+
id?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The timestamp when the change occurred.
|
|
90
|
+
*/
|
|
91
|
+
changed_at?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The actor that made the change. 'system' for automated changes, or a user
|
|
94
|
+
* identifier.
|
|
95
|
+
*/
|
|
96
|
+
changed_by?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The value of the field after the change. Null if the field was cleared.
|
|
99
|
+
*/
|
|
100
|
+
current_value?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The field that was changed.
|
|
103
|
+
*/
|
|
104
|
+
field_changed?: 'status' | 'user_classification';
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the insight this audit log entry relates to.
|
|
107
|
+
*/
|
|
108
|
+
issue_id?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The value of the field before the change. Null if the field was not previously
|
|
111
|
+
* set.
|
|
112
|
+
*/
|
|
113
|
+
previous_value?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Optional rationale provided for the change.
|
|
116
|
+
*/
|
|
117
|
+
rationale?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The zone ID associated with the insight. Only present for zone-level insights.
|
|
120
|
+
*/
|
|
121
|
+
zone_id?: number;
|
|
122
|
+
}
|
|
123
|
+
export interface AuditLogListParams extends CursorPaginationParams {
|
|
124
|
+
/**
|
|
125
|
+
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
|
|
126
|
+
* Zone ID.
|
|
127
|
+
*/
|
|
128
|
+
account_id?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Path param: The Zone ID to use for this endpoint. Mutually exclusive with the
|
|
131
|
+
* Account ID.
|
|
132
|
+
*/
|
|
133
|
+
zone_id?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Query param: Filter entries changed before this timestamp (RFC 3339).
|
|
136
|
+
*/
|
|
137
|
+
before?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Query param: Filter by the actor that made the change.
|
|
140
|
+
*/
|
|
141
|
+
changed_by?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Query param: Filter by the field that was changed.
|
|
144
|
+
*/
|
|
145
|
+
field_changed?: 'status' | 'user_classification';
|
|
146
|
+
/**
|
|
147
|
+
* Query param: Sort order for results. Use 'asc' for oldest first or 'desc' for
|
|
148
|
+
* newest first.
|
|
149
|
+
*/
|
|
150
|
+
order?: 'asc' | 'desc';
|
|
151
|
+
/**
|
|
152
|
+
* Query param: Filter entries changed at or after this timestamp (RFC 3339).
|
|
153
|
+
*/
|
|
154
|
+
since?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface AuditLogListByInsightParams extends CursorPaginationParams {
|
|
157
|
+
/**
|
|
158
|
+
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
|
|
159
|
+
* Zone ID.
|
|
160
|
+
*/
|
|
161
|
+
account_id?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Path param: The Zone ID to use for this endpoint. Mutually exclusive with the
|
|
164
|
+
* Account ID.
|
|
165
|
+
*/
|
|
166
|
+
zone_id?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Query param: Filter entries changed before this timestamp (RFC 3339).
|
|
169
|
+
*/
|
|
170
|
+
before?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Query param: Filter by the actor that made the change.
|
|
173
|
+
*/
|
|
174
|
+
changed_by?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Query param: Filter by the field that was changed.
|
|
177
|
+
*/
|
|
178
|
+
field_changed?: 'status' | 'user_classification';
|
|
179
|
+
/**
|
|
180
|
+
* Query param: Sort order for results. Use 'asc' for oldest first or 'desc' for
|
|
181
|
+
* newest first.
|
|
182
|
+
*/
|
|
183
|
+
order?: 'asc' | 'desc';
|
|
184
|
+
/**
|
|
185
|
+
* Query param: Filter entries changed at or after this timestamp (RFC 3339).
|
|
186
|
+
*/
|
|
187
|
+
since?: string;
|
|
188
|
+
}
|
|
189
|
+
export declare namespace AuditLogs {
|
|
190
|
+
export { type AuditLogListResponse as AuditLogListResponse, type AuditLogListByInsightResponse as AuditLogListByInsightResponse, AuditLogListResponsesCursorPagination as AuditLogListResponsesCursorPagination, AuditLogListByInsightResponsesCursorPagination as AuditLogListByInsightResponsesCursorPagination, type AuditLogListParams as AuditLogListParams, type AuditLogListByInsightParams as AuditLogListByInsightParams, };
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=audit-logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.d.ts","sourceRoot":"","sources":["../../../src/resources/security-center/insights/audit-logs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEpF,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;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;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,qBAAqB,CAAC;IAEjD;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,qCAAqC,IAAI,qCAAqC,EAC9E,8CAA8C,IAAI,8CAA8C,EAChG,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AuditLogListByInsightResponsesCursorPagination = exports.AuditLogListResponsesCursorPagination = exports.AuditLogs = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
const core_1 = require("../../../core.js");
|
|
7
|
+
const error_1 = require("../../../error.js");
|
|
8
|
+
const pagination_1 = require("../../../pagination.js");
|
|
9
|
+
class AuditLogs extends resource_1.APIResource {
|
|
10
|
+
list(params = {}, options) {
|
|
11
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
12
|
+
return this.list({}, params);
|
|
13
|
+
}
|
|
14
|
+
const { account_id, zone_id, ...query } = params;
|
|
15
|
+
if (!account_id && !zone_id) {
|
|
16
|
+
throw new error_1.CloudflareError('You must provide either account_id or zone_id.');
|
|
17
|
+
}
|
|
18
|
+
if (account_id && zone_id) {
|
|
19
|
+
throw new error_1.CloudflareError('You cannot provide both account_id and zone_id.');
|
|
20
|
+
}
|
|
21
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
22
|
+
{
|
|
23
|
+
accountOrZone: 'accounts',
|
|
24
|
+
accountOrZoneId: account_id,
|
|
25
|
+
}
|
|
26
|
+
: {
|
|
27
|
+
accountOrZone: 'zones',
|
|
28
|
+
accountOrZoneId: zone_id,
|
|
29
|
+
};
|
|
30
|
+
return this._client.getAPIList(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/audit-log`, AuditLogListResponsesCursorPagination, { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
listByInsight(issueId, params = {}, options) {
|
|
33
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
34
|
+
return this.listByInsight(issueId, {}, params);
|
|
35
|
+
}
|
|
36
|
+
const { account_id, zone_id, ...query } = params;
|
|
37
|
+
if (!account_id && !zone_id) {
|
|
38
|
+
throw new error_1.CloudflareError('You must provide either account_id or zone_id.');
|
|
39
|
+
}
|
|
40
|
+
if (account_id && zone_id) {
|
|
41
|
+
throw new error_1.CloudflareError('You cannot provide both account_id and zone_id.');
|
|
42
|
+
}
|
|
43
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
44
|
+
{
|
|
45
|
+
accountOrZone: 'accounts',
|
|
46
|
+
accountOrZoneId: account_id,
|
|
47
|
+
}
|
|
48
|
+
: {
|
|
49
|
+
accountOrZone: 'zones',
|
|
50
|
+
accountOrZoneId: zone_id,
|
|
51
|
+
};
|
|
52
|
+
return this._client.getAPIList(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/${issueId}/audit-log`, AuditLogListByInsightResponsesCursorPagination, { query, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.AuditLogs = AuditLogs;
|
|
56
|
+
class AuditLogListResponsesCursorPagination extends pagination_1.CursorPagination {
|
|
57
|
+
}
|
|
58
|
+
exports.AuditLogListResponsesCursorPagination = AuditLogListResponsesCursorPagination;
|
|
59
|
+
class AuditLogListByInsightResponsesCursorPagination extends pagination_1.CursorPagination {
|
|
60
|
+
}
|
|
61
|
+
exports.AuditLogListByInsightResponsesCursorPagination = AuditLogListByInsightResponsesCursorPagination;
|
|
62
|
+
AuditLogs.AuditLogListResponsesCursorPagination = AuditLogListResponsesCursorPagination;
|
|
63
|
+
AuditLogs.AuditLogListByInsightResponsesCursorPagination = AuditLogListByInsightResponsesCursorPagination;
|
|
64
|
+
//# sourceMappingURL=audit-logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.js","sourceRoot":"","sources":["../../../src/resources/security-center/insights/audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAEjD,6CAAiD;AACjD,uDAAoF;AAEpF,MAAa,SAAU,SAAQ,sBAAW;IAsBxC,IAAI,CACF,SAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAC9B;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,uBAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,uBAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,aAAa,IAAI,eAAe,qCAAqC,EACzE,qCAAqC,EACrC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IA0BD,aAAa,CACX,OAAe,EACf,SAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SAChD;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,uBAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,uBAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,aAAa,IAAI,eAAe,6BAA6B,OAAO,YAAY,EACpF,8CAA8C,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AA5GD,8BA4GC;AAED,MAAa,qCAAsC,SAAQ,6BAAsC;CAAG;AAApG,sFAAoG;AAEpG,MAAa,8CAA+C,SAAQ,6BAA+C;CAAG;AAAtH,wGAAsH;AAoLtH,SAAS,CAAC,qCAAqC,GAAG,qCAAqC,CAAC;AACxF,SAAS,CAAC,8CAA8C,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../../core.mjs";
|
|
4
|
+
import { CloudflareError } from "../../../error.mjs";
|
|
5
|
+
import { CursorPagination } from "../../../pagination.mjs";
|
|
6
|
+
export class AuditLogs extends APIResource {
|
|
7
|
+
list(params = {}, options) {
|
|
8
|
+
if (isRequestOptions(params)) {
|
|
9
|
+
return this.list({}, params);
|
|
10
|
+
}
|
|
11
|
+
const { account_id, zone_id, ...query } = params;
|
|
12
|
+
if (!account_id && !zone_id) {
|
|
13
|
+
throw new CloudflareError('You must provide either account_id or zone_id.');
|
|
14
|
+
}
|
|
15
|
+
if (account_id && zone_id) {
|
|
16
|
+
throw new CloudflareError('You cannot provide both account_id and zone_id.');
|
|
17
|
+
}
|
|
18
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
19
|
+
{
|
|
20
|
+
accountOrZone: 'accounts',
|
|
21
|
+
accountOrZoneId: account_id,
|
|
22
|
+
}
|
|
23
|
+
: {
|
|
24
|
+
accountOrZone: 'zones',
|
|
25
|
+
accountOrZoneId: zone_id,
|
|
26
|
+
};
|
|
27
|
+
return this._client.getAPIList(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/audit-log`, AuditLogListResponsesCursorPagination, { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
listByInsight(issueId, params = {}, options) {
|
|
30
|
+
if (isRequestOptions(params)) {
|
|
31
|
+
return this.listByInsight(issueId, {}, params);
|
|
32
|
+
}
|
|
33
|
+
const { account_id, zone_id, ...query } = params;
|
|
34
|
+
if (!account_id && !zone_id) {
|
|
35
|
+
throw new CloudflareError('You must provide either account_id or zone_id.');
|
|
36
|
+
}
|
|
37
|
+
if (account_id && zone_id) {
|
|
38
|
+
throw new CloudflareError('You cannot provide both account_id and zone_id.');
|
|
39
|
+
}
|
|
40
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
41
|
+
{
|
|
42
|
+
accountOrZone: 'accounts',
|
|
43
|
+
accountOrZoneId: account_id,
|
|
44
|
+
}
|
|
45
|
+
: {
|
|
46
|
+
accountOrZone: 'zones',
|
|
47
|
+
accountOrZoneId: zone_id,
|
|
48
|
+
};
|
|
49
|
+
return this._client.getAPIList(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/${issueId}/audit-log`, AuditLogListByInsightResponsesCursorPagination, { query, ...options });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class AuditLogListResponsesCursorPagination extends CursorPagination {
|
|
53
|
+
}
|
|
54
|
+
export class AuditLogListByInsightResponsesCursorPagination extends CursorPagination {
|
|
55
|
+
}
|
|
56
|
+
AuditLogs.AuditLogListResponsesCursorPagination = AuditLogListResponsesCursorPagination;
|
|
57
|
+
AuditLogs.AuditLogListByInsightResponsesCursorPagination = AuditLogListByInsightResponsesCursorPagination;
|
|
58
|
+
//# sourceMappingURL=audit-logs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.mjs","sourceRoot":"","sources":["../../../src/resources/security-center/insights/audit-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,eAAe,EAAE;OACnB,EAAE,gBAAgB,EAA+B;AAExD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAsBxC,IAAI,CACF,SAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAC9B;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,eAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,eAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAA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AAQ,gBAAsC;CAAG;AAEpG,MAAM,OAAO,8CAA+C,SAAQ,gBAA+C;CAAG;AAoLtH,SAAS,CAAC,qCAAqC,GAAG,qCAAqC,CAAC;AACxF,SAAS,CAAC,8CAA8C,GAAG,8CAA8C,CAAC"}
|
|
@@ -4,6 +4,14 @@ import * as IssuesAPI from "../../intel/attack-surface-report/issues.js";
|
|
|
4
4
|
export declare class Class extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves Security Center insight counts aggregated by classification class.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const classes =
|
|
11
|
+
* await client.securityCenter.insights.class.get({
|
|
12
|
+
* account_id: 'account_id',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
get(params?: ClassGetParams, options?: Core.RequestOptions): Core.APIPromise<ClassGetResponse>;
|
|
9
17
|
get(options?: Core.RequestOptions): Core.APIPromise<ClassGetResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,0CAA0C,CAAC;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,0CAA0C,CAAC;AAGtE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,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CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,6CAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,6CAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAcpC,GAAG,CACD,SAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAC7B;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,uBAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,uBAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,aAAa,IAAI,eAAe,iCAAiC,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AA7CD,sBA6CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.mjs","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,eAAe,EAAE;AAE1B,MAAM,OAAO,KAAM,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"class.mjs","sourceRoot":"","sources":["../../../src/resources/security-center/insights/class.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,eAAe,EAAE;AAE1B,MAAM,OAAO,KAAM,SAAQ,WAAW;IAcpC,GAAG,CACD,SAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAC7B;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,eAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,eAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,aAAa,IAAI,eAAe,iCAAiC,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CACF,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
export declare class Classification extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the user classification for a Security Center insight. Valid values are
|
|
6
|
+
* 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot
|
|
7
|
+
* change directly between classification values - must reset to null first.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const classification =
|
|
12
|
+
* await client.securityCenter.insights.classification.update(
|
|
13
|
+
* 'issue_id',
|
|
14
|
+
* { account_id: 'account_id' },
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
update(issueId: string, params: ClassificationUpdateParams, options?: Core.RequestOptions): Core.APIPromise<ClassificationUpdateResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface ClassificationUpdateResponse {
|
|
21
|
+
errors: Array<ClassificationUpdateResponse.Error>;
|
|
22
|
+
messages: Array<ClassificationUpdateResponse.Message>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the API call was successful.
|
|
25
|
+
*/
|
|
26
|
+
success: true;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace ClassificationUpdateResponse {
|
|
29
|
+
interface Error {
|
|
30
|
+
code: number;
|
|
31
|
+
message: string;
|
|
32
|
+
documentation_url?: string;
|
|
33
|
+
source?: Error.Source;
|
|
34
|
+
}
|
|
35
|
+
namespace Error {
|
|
36
|
+
interface Source {
|
|
37
|
+
pointer?: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
interface Message {
|
|
41
|
+
code: number;
|
|
42
|
+
message: string;
|
|
43
|
+
documentation_url?: string;
|
|
44
|
+
source?: Message.Source;
|
|
45
|
+
}
|
|
46
|
+
namespace Message {
|
|
47
|
+
interface Source {
|
|
48
|
+
pointer?: string;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface ClassificationUpdateParams {
|
|
53
|
+
/**
|
|
54
|
+
* Path param: The Account ID to use for this endpoint. Mutually exclusive with the
|
|
55
|
+
* Zone ID.
|
|
56
|
+
*/
|
|
57
|
+
account_id?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Path param: The Zone ID to use for this endpoint. Mutually exclusive with the
|
|
60
|
+
* Account ID.
|
|
61
|
+
*/
|
|
62
|
+
zone_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Body param: User-defined classification for the insight. Can be
|
|
65
|
+
* 'false_positive', 'accept_risk', 'other', or null.
|
|
66
|
+
*/
|
|
67
|
+
classification?: 'false_positive' | 'accept_risk' | 'other' | null;
|
|
68
|
+
/**
|
|
69
|
+
* Body param: Rationale for the classification change. Required when
|
|
70
|
+
* classification is 'accept_risk' or 'other'.
|
|
71
|
+
*/
|
|
72
|
+
rationale?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Classification {
|
|
75
|
+
export { type ClassificationUpdateResponse as ClassificationUpdateResponse, type ClassificationUpdateParams as ClassificationUpdateParams, };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=classification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classification.d.ts","sourceRoot":"","sources":["../../../src/resources/security-center/insights/classification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,C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AI,CAAC;IAEnE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Classification = void 0;
|
|
5
|
+
const resource_1 = require("../../../resource.js");
|
|
6
|
+
const error_1 = require("../../../error.js");
|
|
7
|
+
class Classification extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Updates the user classification for a Security Center insight. Valid values are
|
|
10
|
+
* 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot
|
|
11
|
+
* change directly between classification values - must reset to null first.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const classification =
|
|
16
|
+
* await client.securityCenter.insights.classification.update(
|
|
17
|
+
* 'issue_id',
|
|
18
|
+
* { account_id: 'account_id' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
update(issueId, params, options) {
|
|
23
|
+
const { account_id, zone_id, ...body } = params;
|
|
24
|
+
if (!account_id && !zone_id) {
|
|
25
|
+
throw new error_1.CloudflareError('You must provide either account_id or zone_id.');
|
|
26
|
+
}
|
|
27
|
+
if (account_id && zone_id) {
|
|
28
|
+
throw new error_1.CloudflareError('You cannot provide both account_id and zone_id.');
|
|
29
|
+
}
|
|
30
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
31
|
+
{
|
|
32
|
+
accountOrZone: 'accounts',
|
|
33
|
+
accountOrZoneId: account_id,
|
|
34
|
+
}
|
|
35
|
+
: {
|
|
36
|
+
accountOrZone: 'zones',
|
|
37
|
+
accountOrZoneId: zone_id,
|
|
38
|
+
};
|
|
39
|
+
return this._client.patch(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/${issueId}/classification`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Classification = Classification;
|
|
43
|
+
//# sourceMappingURL=classification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classification.js","sourceRoot":"","sources":["../../../src/resources/security-center/insights/classification.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAEhD,6CAAiD;AAEjD,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,OAAe,EACf,MAAkC,EAClC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,uBAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,uBAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,IAAI,aAAa,IAAI,eAAe,6BAA6B,OAAO,iBAAiB,EACzF,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;CACF;AA1CD,wCA0CC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../resource.mjs";
|
|
3
|
+
import { CloudflareError } from "../../../error.mjs";
|
|
4
|
+
export class Classification extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Updates the user classification for a Security Center insight. Valid values are
|
|
7
|
+
* 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot
|
|
8
|
+
* change directly between classification values - must reset to null first.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const classification =
|
|
13
|
+
* await client.securityCenter.insights.classification.update(
|
|
14
|
+
* 'issue_id',
|
|
15
|
+
* { account_id: 'account_id' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
update(issueId, params, options) {
|
|
20
|
+
const { account_id, zone_id, ...body } = params;
|
|
21
|
+
if (!account_id && !zone_id) {
|
|
22
|
+
throw new CloudflareError('You must provide either account_id or zone_id.');
|
|
23
|
+
}
|
|
24
|
+
if (account_id && zone_id) {
|
|
25
|
+
throw new CloudflareError('You cannot provide both account_id and zone_id.');
|
|
26
|
+
}
|
|
27
|
+
const { accountOrZone, accountOrZoneId } = account_id ?
|
|
28
|
+
{
|
|
29
|
+
accountOrZone: 'accounts',
|
|
30
|
+
accountOrZoneId: account_id,
|
|
31
|
+
}
|
|
32
|
+
: {
|
|
33
|
+
accountOrZone: 'zones',
|
|
34
|
+
accountOrZoneId: zone_id,
|
|
35
|
+
};
|
|
36
|
+
return this._client.patch(`/${accountOrZone}/${accountOrZoneId}/security-center/insights/${issueId}/classification`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=classification.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classification.mjs","sourceRoot":"","sources":["../../../src/resources/security-center/insights/classification.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,eAAe,EAAE;AAE1B,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,OAAe,EACf,MAAkC,EAClC,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE;YAC3B,MAAM,IAAI,eAAe,CAAC,gDAAgD,CAAC,CAAC;SAC7E;QACD,IAAI,UAAU,IAAI,OAAO,EAAE;YACzB,MAAM,IAAI,eAAe,CAAC,iDAAiD,CAAC,CAAC;SAC9E;QACD,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GACtC,UAAU,CAAC,CAAC;YACV;gBACE,aAAa,EAAE,UAAU;gBACzB,eAAe,EAAE,UAAU;aAC5B;YACH,CAAC,CAAC;gBACE,aAAa,EAAE,OAAO;gBACtB,eAAe,EAAE,OAAO;aACzB,CAAC;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,IAAI,aAAa,IAAI,eAAe,6BAA6B,OAAO,iBAAiB,EACzF,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;CACF"}
|