cloudflare 4.4.1 → 4.5.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 +59 -0
- package/README.md +2 -4
- package/core.d.ts +2 -2
- package/core.d.ts.map +1 -1
- package/core.js +5 -3
- package/core.js.map +1 -1
- package/core.mjs +5 -3
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts/tokens/index.d.ts +1 -1
- package/resources/accounts/tokens/index.d.ts.map +1 -1
- package/resources/accounts/tokens/index.js +1 -2
- package/resources/accounts/tokens/index.js.map +1 -1
- package/resources/accounts/tokens/index.mjs +1 -1
- package/resources/accounts/tokens/index.mjs.map +1 -1
- package/resources/accounts/tokens/permission-groups.d.ts +41 -22
- package/resources/accounts/tokens/permission-groups.d.ts.map +1 -1
- package/resources/accounts/tokens/permission-groups.js +12 -15
- package/resources/accounts/tokens/permission-groups.js.map +1 -1
- package/resources/accounts/tokens/permission-groups.mjs +11 -13
- package/resources/accounts/tokens/permission-groups.mjs.map +1 -1
- package/resources/accounts/tokens/tokens.d.ts +8 -19
- package/resources/accounts/tokens/tokens.d.ts.map +1 -1
- package/resources/accounts/tokens/tokens.js +2 -14
- package/resources/accounts/tokens/tokens.js.map +1 -1
- package/resources/accounts/tokens/tokens.mjs +3 -15
- package/resources/accounts/tokens/tokens.mjs.map +1 -1
- package/resources/ai/ai.d.ts +6 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai-gateway/logs.d.ts +3 -1
- package/resources/ai-gateway/logs.d.ts.map +1 -1
- package/resources/alerting/available-alerts.d.ts +3 -1
- package/resources/alerting/available-alerts.d.ts.map +1 -1
- package/resources/alerting/destinations/eligible.d.ts +3 -1
- package/resources/alerting/destinations/eligible.d.ts.map +1 -1
- package/resources/api-gateway/discovery/operations.d.ts +6 -2
- package/resources/api-gateway/discovery/operations.d.ts.map +1 -1
- package/resources/api-gateway/operations/schema-validation.d.ts +9 -29
- package/resources/api-gateway/operations/schema-validation.d.ts.map +1 -1
- package/resources/api-gateway/operations/schema-validation.js +3 -27
- package/resources/api-gateway/operations/schema-validation.js.map +1 -1
- package/resources/api-gateway/operations/schema-validation.mjs +3 -27
- package/resources/api-gateway/operations/schema-validation.mjs.map +1 -1
- package/resources/api-gateway/settings/schema-validation.d.ts +3 -22
- package/resources/api-gateway/settings/schema-validation.d.ts.map +1 -1
- package/resources/api-gateway/settings/schema-validation.js +3 -22
- package/resources/api-gateway/settings/schema-validation.js.map +1 -1
- package/resources/api-gateway/settings/schema-validation.mjs +3 -22
- package/resources/api-gateway/settings/schema-validation.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.d.ts +1 -9
- package/resources/api-gateway/user-schemas/hosts.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.js +1 -9
- package/resources/api-gateway/user-schemas/hosts.js.map +1 -1
- package/resources/api-gateway/user-schemas/hosts.mjs +1 -9
- package/resources/api-gateway/user-schemas/hosts.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/operations.d.ts +1 -10
- package/resources/api-gateway/user-schemas/operations.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/operations.js +1 -10
- package/resources/api-gateway/user-schemas/operations.js.map +1 -1
- package/resources/api-gateway/user-schemas/operations.mjs +1 -10
- package/resources/api-gateway/user-schemas/operations.mjs.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.d.ts +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.d.ts.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.js +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.js.map +1 -1
- package/resources/api-gateway/user-schemas/user-schemas.mjs +5 -42
- package/resources/api-gateway/user-schemas/user-schemas.mjs.map +1 -1
- package/resources/bot-management.d.ts +36 -24
- package/resources/bot-management.d.ts.map +1 -1
- package/resources/brand-protection/brand-protection.d.ts +205 -0
- package/resources/brand-protection/brand-protection.d.ts.map +1 -0
- package/resources/brand-protection/brand-protection.js +85 -0
- package/resources/brand-protection/brand-protection.js.map +1 -0
- package/resources/brand-protection/brand-protection.mjs +58 -0
- package/resources/brand-protection/brand-protection.mjs.map +1 -0
- package/resources/brand-protection/index.d.ts +6 -0
- package/resources/brand-protection/index.d.ts.map +1 -0
- package/resources/brand-protection/index.js +15 -0
- package/resources/brand-protection/index.js.map +1 -0
- package/resources/brand-protection/index.mjs +7 -0
- package/resources/brand-protection/index.mjs.map +1 -0
- package/resources/brand-protection/logo-matches.d.ts +4 -0
- package/resources/brand-protection/logo-matches.d.ts.map +1 -0
- package/resources/brand-protection/logo-matches.js +9 -0
- package/resources/brand-protection/logo-matches.js.map +1 -0
- package/resources/brand-protection/logo-matches.mjs +5 -0
- package/resources/brand-protection/logo-matches.mjs.map +1 -0
- package/resources/brand-protection/logos.d.ts +4 -0
- package/resources/brand-protection/logos.d.ts.map +1 -0
- package/resources/brand-protection/logos.js +9 -0
- package/resources/brand-protection/logos.js.map +1 -0
- package/resources/brand-protection/logos.mjs +5 -0
- package/resources/brand-protection/logos.mjs.map +1 -0
- package/resources/brand-protection/matches.d.ts +4 -0
- package/resources/brand-protection/matches.d.ts.map +1 -0
- package/resources/brand-protection/matches.js +9 -0
- package/resources/brand-protection/matches.js.map +1 -0
- package/resources/brand-protection/matches.mjs +5 -0
- package/resources/brand-protection/matches.mjs.map +1 -0
- package/resources/brand-protection/queries.d.ts +4 -0
- package/resources/brand-protection/queries.d.ts.map +1 -0
- package/resources/brand-protection/queries.js +9 -0
- package/resources/brand-protection/queries.js.map +1 -0
- package/resources/brand-protection/queries.mjs +5 -0
- package/resources/brand-protection/queries.mjs.map +1 -0
- package/resources/brand-protection.d.ts +1 -188
- package/resources/brand-protection.d.ts.map +1 -1
- package/resources/brand-protection.js +15 -39
- package/resources/brand-protection.js.map +1 -1
- package/resources/brand-protection.mjs +1 -37
- package/resources/brand-protection.mjs.map +1 -1
- package/resources/browser-rendering/content.d.ts +3 -1
- package/resources/browser-rendering/content.d.ts.map +1 -1
- package/resources/browser-rendering/json.d.ts +9 -3
- package/resources/browser-rendering/json.d.ts.map +1 -1
- package/resources/browser-rendering/links.d.ts +3 -1
- package/resources/browser-rendering/links.d.ts.map +1 -1
- package/resources/browser-rendering/markdown.d.ts +3 -1
- package/resources/browser-rendering/markdown.d.ts.map +1 -1
- package/resources/browser-rendering/pdf.d.ts +87 -1
- package/resources/browser-rendering/pdf.d.ts.map +1 -1
- package/resources/browser-rendering/scrape.d.ts +3 -1
- package/resources/browser-rendering/scrape.d.ts.map +1 -1
- package/resources/browser-rendering/screenshot.d.ts +3 -1
- package/resources/browser-rendering/screenshot.d.ts.map +1 -1
- package/resources/browser-rendering/snapshot.d.ts +3 -1
- package/resources/browser-rendering/snapshot.d.ts.map +1 -1
- package/resources/cache/cache.d.ts +3 -1
- package/resources/cache/cache.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +20 -52
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.js +0 -4
- package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.mjs +0 -4
- package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
- package/resources/custom-hostnames/certificate-pack/certificates.d.ts +3 -1
- package/resources/custom-hostnames/certificate-pack/certificates.d.ts.map +1 -1
- package/resources/custom-hostnames/custom-hostnames.d.ts +21 -7
- package/resources/custom-hostnames/custom-hostnames.d.ts.map +1 -1
- package/resources/dns/records.d.ts +661 -658
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js +3 -0
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs +3 -0
- package/resources/dns/records.mjs.map +1 -1
- package/resources/dns-firewall/reverse-dns.d.ts +9 -3
- package/resources/dns-firewall/reverse-dns.d.ts.map +1 -1
- package/resources/email-security/investigate/investigate.d.ts +8 -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/investigate/move.d.ts +10 -10
- package/resources/email-security/investigate/move.d.ts.map +1 -1
- package/resources/email-security/settings/domains.d.ts +3 -3
- package/resources/email-security/settings/domains.d.ts.map +1 -1
- package/resources/email-security/settings/trusted-domains.d.ts +5 -5
- package/resources/email-security/settings/trusted-domains.d.ts.map +1 -1
- package/resources/firewall/lockdowns.d.ts +2 -2
- package/resources/firewall/ua-rules.d.ts +171 -6
- package/resources/firewall/ua-rules.d.ts.map +1 -1
- package/resources/firewall/ua-rules.js.map +1 -1
- package/resources/firewall/ua-rules.mjs.map +1 -1
- package/resources/firewall/waf/overrides.d.ts +10 -4
- package/resources/firewall/waf/overrides.d.ts.map +1 -1
- package/resources/healthchecks/healthchecks.d.ts +6 -2
- package/resources/healthchecks/healthchecks.d.ts.map +1 -1
- package/resources/hyperdrive/configs.d.ts +15 -0
- package/resources/hyperdrive/configs.d.ts.map +1 -1
- package/resources/hyperdrive/configs.js.map +1 -1
- package/resources/hyperdrive/configs.mjs.map +1 -1
- package/resources/hyperdrive/hyperdrive.d.ts +5 -0
- package/resources/hyperdrive/hyperdrive.d.ts.map +1 -1
- package/resources/hyperdrive/hyperdrive.js.map +1 -1
- package/resources/hyperdrive/hyperdrive.mjs.map +1 -1
- package/resources/images/v1/v1.d.ts +5 -1
- package/resources/images/v1/v1.d.ts.map +1 -1
- package/resources/images/v1/v1.js.map +1 -1
- package/resources/images/v1/v1.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/kv/namespaces/keys.d.ts +44 -52
- package/resources/kv/namespaces/keys.d.ts.map +1 -1
- package/resources/kv/namespaces/keys.js +3 -4
- package/resources/kv/namespaces/keys.js.map +1 -1
- package/resources/kv/namespaces/keys.mjs +3 -4
- package/resources/kv/namespaces/keys.mjs.map +1 -1
- package/resources/kv/namespaces/metadata.d.ts +2 -5
- package/resources/kv/namespaces/metadata.d.ts.map +1 -1
- package/resources/kv/namespaces/namespaces.d.ts +46 -51
- package/resources/kv/namespaces/namespaces.d.ts.map +1 -1
- package/resources/kv/namespaces/namespaces.js +4 -5
- package/resources/kv/namespaces/namespaces.js.map +1 -1
- package/resources/kv/namespaces/namespaces.mjs +4 -5
- package/resources/kv/namespaces/namespaces.mjs.map +1 -1
- package/resources/kv/namespaces/values.d.ts +10 -12
- package/resources/kv/namespaces/values.d.ts.map +1 -1
- package/resources/kv/namespaces/values.js +1 -7
- package/resources/kv/namespaces/values.js.map +1 -1
- package/resources/kv/namespaces/values.mjs +1 -7
- package/resources/kv/namespaces/values.mjs.map +1 -1
- package/resources/load-balancers/load-balancers.d.ts +60 -20
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/monitors/monitors.d.ts +12 -4
- package/resources/load-balancers/monitors/monitors.d.ts.map +1 -1
- package/resources/load-balancers/monitors/previews.d.ts +6 -2
- package/resources/load-balancers/monitors/previews.d.ts.map +1 -1
- package/resources/load-balancers/pools/health.d.ts +6 -2
- package/resources/load-balancers/pools/health.d.ts.map +1 -1
- package/resources/load-balancers/previews.d.ts +6 -2
- package/resources/load-balancers/previews.d.ts.map +1 -1
- package/resources/logpush/jobs.d.ts +63 -35
- package/resources/logpush/jobs.d.ts.map +1 -1
- package/resources/logpush/jobs.js +39 -0
- package/resources/logpush/jobs.js.map +1 -1
- package/resources/logpush/jobs.mjs +39 -0
- package/resources/logpush/jobs.mjs.map +1 -1
- package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts +15 -5
- package/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.d.ts.map +1 -1
- package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts +195 -65
- package/resources/magic-cloud-networking/on-ramps/on-ramps.d.ts.map +1 -1
- package/resources/magic-cloud-networking/resources.d.ts +30 -10
- package/resources/magic-cloud-networking/resources.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.d.ts +106 -2
- package/resources/magic-transit/connectors/connectors.d.ts.map +1 -1
- package/resources/magic-transit/connectors/connectors.js +33 -1
- package/resources/magic-transit/connectors/connectors.js.map +1 -1
- package/resources/magic-transit/connectors/connectors.mjs +33 -1
- package/resources/magic-transit/connectors/connectors.mjs.map +1 -1
- package/resources/magic-transit/connectors/index.d.ts +1 -1
- package/resources/magic-transit/connectors/index.d.ts.map +1 -1
- package/resources/magic-transit/connectors/index.js.map +1 -1
- package/resources/magic-transit/connectors/index.mjs.map +1 -1
- package/resources/magic-transit/index.d.ts +1 -1
- package/resources/magic-transit/index.d.ts.map +1 -1
- package/resources/magic-transit/index.js.map +1 -1
- package/resources/magic-transit/index.mjs.map +1 -1
- package/resources/magic-transit/magic-transit.d.ts +2 -2
- package/resources/magic-transit/magic-transit.d.ts.map +1 -1
- package/resources/magic-transit/magic-transit.js.map +1 -1
- package/resources/magic-transit/magic-transit.mjs.map +1 -1
- package/resources/magic-transit/sites/lans.d.ts +6 -2
- package/resources/magic-transit/sites/lans.d.ts.map +1 -1
- package/resources/page-rules.d.ts +12 -4
- package/resources/page-rules.d.ts.map +1 -1
- package/resources/pages/projects/projects.d.ts +237 -79
- package/resources/pages/projects/projects.d.ts.map +1 -1
- package/resources/pages/projects/projects.js.map +1 -1
- package/resources/pages/projects/projects.mjs.map +1 -1
- package/resources/radar/ai/bots/summary.d.ts +3 -1
- package/resources/radar/ai/bots/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/summary.d.ts +6 -2
- package/resources/radar/ai/inference/summary.d.ts.map +1 -1
- package/resources/radar/as112/summary.d.ts +6 -2
- package/resources/radar/as112/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer3/summary.d.ts +9 -3
- package/resources/radar/attacks/layer3/summary.d.ts.map +1 -1
- package/resources/radar/attacks/layer7/summary.d.ts +15 -5
- package/resources/radar/attacks/layer7/summary.d.ts.map +1 -1
- package/resources/radar/bots/bots.d.ts +588 -0
- package/resources/radar/bots/bots.d.ts.map +1 -0
- package/resources/radar/bots/bots.js +73 -0
- package/resources/radar/bots/bots.js.map +1 -0
- package/resources/radar/bots/bots.mjs +46 -0
- package/resources/radar/bots/bots.mjs.map +1 -0
- package/resources/radar/bots/index.d.ts +3 -0
- package/resources/radar/bots/index.d.ts.map +1 -0
- package/resources/radar/bots/index.js +9 -0
- package/resources/radar/bots/index.js.map +1 -0
- package/resources/radar/bots/index.mjs +4 -0
- package/resources/radar/bots/index.mjs.map +1 -0
- package/resources/radar/bots/web-crawlers.d.ts +258 -0
- package/resources/radar/bots/web-crawlers.d.ts.map +1 -0
- package/resources/radar/bots/web-crawlers.js +28 -0
- package/resources/radar/bots/web-crawlers.js.map +1 -0
- package/resources/radar/bots/web-crawlers.mjs +24 -0
- package/resources/radar/bots/web-crawlers.mjs.map +1 -0
- package/resources/radar/bots.d.ts +2 -0
- package/resources/radar/bots.d.ts.map +1 -0
- package/resources/radar/bots.js +19 -0
- package/resources/radar/bots.js.map +1 -0
- package/resources/radar/bots.mjs +3 -0
- package/resources/radar/bots.mjs.map +1 -0
- package/resources/radar/dns/summary.d.ts +6 -2
- package/resources/radar/dns/summary.d.ts.map +1 -1
- package/resources/radar/entities/asns.d.ts +0 -12
- package/resources/radar/entities/asns.d.ts.map +1 -1
- package/resources/radar/index.d.ts +1 -0
- package/resources/radar/index.d.ts.map +1 -1
- package/resources/radar/index.js +25 -23
- package/resources/radar/index.js.map +1 -1
- package/resources/radar/index.mjs +1 -0
- package/resources/radar/index.mjs.map +1 -1
- package/resources/radar/radar.d.ts +4 -0
- package/resources/radar/radar.d.ts.map +1 -1
- package/resources/radar/radar.js +4 -0
- package/resources/radar/radar.js.map +1 -1
- package/resources/radar/radar.mjs +4 -0
- package/resources/radar/radar.mjs.map +1 -1
- package/resources/radar/search.d.ts +3 -3
- package/resources/radar/search.d.ts.map +1 -1
- package/resources/radar/search.js +1 -1
- package/resources/radar/search.mjs +1 -1
- package/resources/radar/verified-bots/top.d.ts +2 -9
- package/resources/radar/verified-bots/top.d.ts.map +1 -1
- package/resources/radar/verified-bots/top.js.map +1 -1
- package/resources/radar/verified-bots/top.mjs.map +1 -1
- package/resources/rate-limits.d.ts +4 -4
- package/resources/request-tracers/traces.d.ts +6 -2
- package/resources/request-tracers/traces.d.ts.map +1 -1
- package/resources/rules/index.d.ts +1 -1
- package/resources/rules/index.d.ts.map +1 -1
- package/resources/rules/index.js +2 -1
- package/resources/rules/index.js.map +1 -1
- package/resources/rules/index.mjs +1 -1
- package/resources/rules/index.mjs.map +1 -1
- package/resources/rules/lists/bulk-operations.d.ts +17 -38
- package/resources/rules/lists/bulk-operations.d.ts.map +1 -1
- package/resources/rules/lists/index.d.ts +2 -2
- package/resources/rules/lists/index.d.ts.map +1 -1
- package/resources/rules/lists/index.js +3 -1
- package/resources/rules/lists/index.js.map +1 -1
- package/resources/rules/lists/index.mjs +2 -2
- package/resources/rules/lists/index.mjs.map +1 -1
- package/resources/rules/lists/items.d.ts +114 -159
- package/resources/rules/lists/items.d.ts.map +1 -1
- package/resources/rules/lists/items.js +20 -15
- package/resources/rules/lists/items.js.map +1 -1
- package/resources/rules/lists/items.mjs +18 -14
- package/resources/rules/lists/items.mjs.map +1 -1
- package/resources/rules/lists/lists.d.ts +119 -237
- package/resources/rules/lists/lists.d.ts.map +1 -1
- package/resources/rules/lists/lists.js +13 -4
- package/resources/rules/lists/lists.js.map +1 -1
- package/resources/rules/lists/lists.mjs +12 -4
- package/resources/rules/lists/lists.mjs.map +1 -1
- package/resources/rules/rules.d.ts +2 -2
- package/resources/rules/rules.d.ts.map +1 -1
- package/resources/rules/rules.js +1 -0
- package/resources/rules/rules.js.map +1 -1
- package/resources/rules/rules.mjs +2 -1
- package/resources/rules/rules.mjs.map +1 -1
- package/resources/rulesets/rules.d.ts +36 -12
- package/resources/rulesets/rules.d.ts.map +1 -1
- package/resources/schema-validation/settings/operations.d.ts +6 -2
- package/resources/schema-validation/settings/operations.d.ts.map +1 -1
- package/resources/shared.d.ts +13 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/spectrum/analytics/events/bytimes.d.ts +9 -3
- package/resources/spectrum/analytics/events/bytimes.d.ts.map +1 -1
- package/resources/spectrum/analytics/events/summaries.d.ts +9 -3
- package/resources/spectrum/analytics/events/summaries.d.ts.map +1 -1
- package/resources/url-scanner/scans.d.ts +6 -2
- package/resources/url-scanner/scans.d.ts.map +1 -1
- package/resources/user/tokens/index.d.ts +1 -1
- package/resources/user/tokens/index.d.ts.map +1 -1
- package/resources/user/tokens/index.js.map +1 -1
- package/resources/user/tokens/index.mjs.map +1 -1
- package/resources/user/tokens/permission-groups.d.ts +12 -1
- package/resources/user/tokens/permission-groups.d.ts.map +1 -1
- package/resources/user/tokens/permission-groups.js +9 -13
- package/resources/user/tokens/permission-groups.js.map +1 -1
- package/resources/user/tokens/permission-groups.mjs +9 -13
- package/resources/user/tokens/permission-groups.mjs.map +1 -1
- package/resources/user/tokens/tokens.d.ts +8 -19
- package/resources/user/tokens/tokens.d.ts.map +1 -1
- package/resources/user/tokens/tokens.js +2 -13
- package/resources/user/tokens/tokens.js.map +1 -1
- package/resources/user/tokens/tokens.mjs +2 -13
- package/resources/user/tokens/tokens.mjs.map +1 -1
- package/resources/workers/assets/upload.d.ts +3 -1
- package/resources/workers/assets/upload.d.ts.map +1 -1
- package/resources/workers/observability/telemetry.d.ts +26 -6
- package/resources/workers/observability/telemetry.d.ts.map +1 -1
- package/resources/workers/scripts/assets/upload.d.ts +3 -1
- package/resources/workers/scripts/assets/upload.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +10 -2
- package/resources/workers/scripts/scripts.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.js.map +1 -1
- package/resources/workers/scripts/scripts.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts +3 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +10 -2
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.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/zaraz/config.d.ts +84 -28
- package/resources/zaraz/config.d.ts.map +1 -1
- package/resources/zaraz/history/configs.d.ts +3 -1
- package/resources/zaraz/history/configs.d.ts.map +1 -1
- package/resources/zaraz/zaraz.d.ts +18 -6
- package/resources/zaraz/zaraz.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +50 -15
- package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/applications.js.map +1 -1
- package/resources/zero-trust/access/applications/applications.mjs.map +1 -1
- package/resources/zero-trust/access/applications/policies.d.ts +46 -2
- package/resources/zero-trust/access/applications/policies.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/policies.js.map +1 -1
- package/resources/zero-trust/access/applications/policies.mjs.map +1 -1
- package/resources/zero-trust/access/users/active-sessions.d.ts +9 -3
- package/resources/zero-trust/access/users/active-sessions.d.ts.map +1 -1
- package/resources/zero-trust/access/users/last-seen-identity.d.ts +6 -2
- package/resources/zero-trust/access/users/last-seen-identity.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices_.d.ts +1 -1
- package/resources/zero-trust/devices/dex-tests.d.ts +1 -1
- package/resources/zero-trust/devices/dex-tests.js +1 -1
- package/resources/zero-trust/devices/dex-tests.mjs +1 -1
- package/resources/zero-trust/devices/override-codes.d.ts +3 -1
- package/resources/zero-trust/devices/override-codes.d.ts.map +1 -1
- package/resources/zero-trust/devices/registrations.d.ts +4 -4
- package/resources/zero-trust/dex/commands/commands.d.ts +3 -1
- package/resources/zero-trust/dex/commands/commands.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/datasets.d.ts +3 -3
- package/resources/zero-trust/dlp/datasets/datasets.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/upload.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/upload.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/versions/entries.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/versions/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/datasets/versions/versions.d.ts +1 -1
- package/resources/zero-trust/dlp/datasets/versions/versions.d.ts.map +1 -1
- package/resources/zero-trust/dlp/dlp.d.ts +2 -2
- package/resources/zero-trust/dlp/dlp.d.ts.map +1 -1
- package/resources/zero-trust/dlp/dlp.js +2 -2
- package/resources/zero-trust/dlp/dlp.js.map +1 -1
- package/resources/zero-trust/dlp/dlp.mjs +2 -2
- package/resources/zero-trust/dlp/dlp.mjs.map +1 -1
- package/resources/zero-trust/dlp/email/rules.d.ts +3 -1
- package/resources/zero-trust/dlp/email/rules.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries/custom.d.ts +219 -0
- package/resources/zero-trust/dlp/entries/custom.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/custom.js +68 -0
- package/resources/zero-trust/dlp/entries/custom.js.map +1 -0
- package/resources/zero-trust/dlp/entries/custom.mjs +64 -0
- package/resources/zero-trust/dlp/entries/custom.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.d.ts +413 -0
- package/resources/zero-trust/dlp/entries/entries.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.js +140 -0
- package/resources/zero-trust/dlp/entries/entries.js.map +1 -0
- package/resources/zero-trust/dlp/entries/entries.mjs +112 -0
- package/resources/zero-trust/dlp/entries/entries.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/index.d.ts +5 -0
- package/resources/zero-trust/dlp/entries/index.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/index.js +14 -0
- package/resources/zero-trust/dlp/entries/index.js.map +1 -0
- package/resources/zero-trust/dlp/entries/index.mjs +6 -0
- package/resources/zero-trust/dlp/entries/index.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.d.ts +98 -0
- package/resources/zero-trust/dlp/entries/integration.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.js +65 -0
- package/resources/zero-trust/dlp/entries/integration.js.map +1 -0
- package/resources/zero-trust/dlp/entries/integration.mjs +61 -0
- package/resources/zero-trust/dlp/entries/integration.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.d.ts +122 -0
- package/resources/zero-trust/dlp/entries/predefined.d.ts.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.js +65 -0
- package/resources/zero-trust/dlp/entries/predefined.js.map +1 -0
- package/resources/zero-trust/dlp/entries/predefined.mjs +61 -0
- package/resources/zero-trust/dlp/entries/predefined.mjs.map +1 -0
- package/resources/zero-trust/dlp/entries.d.ts +1 -400
- package/resources/zero-trust/dlp/entries.d.ts.map +1 -1
- package/resources/zero-trust/dlp/entries.js +15 -98
- package/resources/zero-trust/dlp/entries.js.map +1 -1
- package/resources/zero-trust/dlp/entries.mjs +1 -95
- package/resources/zero-trust/dlp/entries.mjs.map +1 -1
- package/resources/zero-trust/dlp/index.d.ts +1 -1
- package/resources/zero-trust/dlp/index.d.ts.map +1 -1
- package/resources/zero-trust/dlp/index.js +6 -6
- package/resources/zero-trust/dlp/index.js.map +1 -1
- package/resources/zero-trust/dlp/index.mjs +1 -1
- package/resources/zero-trust/dlp/profiles/custom.d.ts +15 -5
- package/resources/zero-trust/dlp/profiles/custom.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.d.ts +1 -1
- package/resources/zero-trust/dlp/profiles/index.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/index.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.d.ts +76 -4
- package/resources/zero-trust/dlp/profiles/predefined.d.ts.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.js +36 -0
- package/resources/zero-trust/dlp/profiles/predefined.js.map +1 -1
- package/resources/zero-trust/dlp/profiles/predefined.mjs +36 -0
- package/resources/zero-trust/dlp/profiles/predefined.mjs.map +1 -1
- package/resources/zero-trust/dlp/profiles/profiles.d.ts +11 -11
- 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/gateway/configurations/configurations.d.ts +18 -26
- package/resources/zero-trust/gateway/configurations/configurations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.js.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.mjs.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.d.ts +28 -14
- package/resources/zero-trust/gateway/lists/lists.d.ts.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.js.map +1 -1
- package/resources/zero-trust/gateway/lists/lists.mjs.map +1 -1
- package/resources/zero-trust/gateway/rules.d.ts +6 -2
- package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
- package/resources/zero-trust/risk-scoring/behaviours.d.ts +9 -3
- package/resources/zero-trust/risk-scoring/behaviours.d.ts.map +1 -1
- package/src/core.ts +6 -4
- package/src/index.ts +3 -1
- package/src/resources/accounts/tokens/index.ts +0 -1
- package/src/resources/accounts/tokens/permission-groups.ts +59 -36
- package/src/resources/accounts/tokens/tokens.ts +7 -21
- package/src/resources/ai/ai.ts +2 -2
- package/src/resources/ai-gateway/logs.ts +1 -1
- package/src/resources/alerting/available-alerts.ts +1 -1
- package/src/resources/alerting/destinations/eligible.ts +1 -1
- package/src/resources/api-gateway/discovery/operations.ts +2 -2
- package/src/resources/api-gateway/operations/schema-validation.ts +5 -29
- package/src/resources/api-gateway/settings/schema-validation.ts +3 -22
- package/src/resources/api-gateway/user-schemas/hosts.ts +1 -9
- package/src/resources/api-gateway/user-schemas/operations.ts +1 -10
- package/src/resources/api-gateway/user-schemas/user-schemas.ts +5 -42
- package/src/resources/bot-management.ts +36 -24
- package/src/resources/brand-protection/brand-protection.ts +275 -0
- package/src/resources/brand-protection/index.ts +7 -0
- package/src/resources/brand-protection/logo-matches.ts +5 -0
- package/src/resources/brand-protection/logos.ts +5 -0
- package/src/resources/brand-protection/matches.ts +5 -0
- package/src/resources/brand-protection/queries.ts +5 -0
- package/src/resources/brand-protection.ts +1 -247
- package/src/resources/browser-rendering/content.ts +1 -1
- package/src/resources/browser-rendering/json.ts +3 -3
- package/src/resources/browser-rendering/links.ts +1 -1
- package/src/resources/browser-rendering/markdown.ts +1 -1
- package/src/resources/browser-rendering/pdf.ts +106 -1
- package/src/resources/browser-rendering/scrape.ts +1 -1
- package/src/resources/browser-rendering/screenshot.ts +1 -1
- package/src/resources/browser-rendering/snapshot.ts +1 -1
- package/src/resources/cache/cache.ts +1 -1
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +19 -87
- package/src/resources/custom-hostnames/certificate-pack/certificates.ts +1 -1
- package/src/resources/custom-hostnames/custom-hostnames.ts +7 -7
- package/src/resources/dns/records.ts +773 -770
- package/src/resources/dns-firewall/reverse-dns.ts +3 -3
- package/src/resources/email-security/investigate/investigate.ts +10 -0
- package/src/resources/email-security/investigate/move.ts +12 -12
- package/src/resources/email-security/settings/domains.ts +3 -3
- package/src/resources/email-security/settings/trusted-domains.ts +5 -5
- package/src/resources/firewall/lockdowns.ts +2 -2
- package/src/resources/firewall/ua-rules.ts +199 -6
- package/src/resources/firewall/waf/overrides.ts +4 -4
- package/src/resources/healthchecks/healthchecks.ts +2 -2
- package/src/resources/hyperdrive/configs.ts +18 -0
- package/src/resources/hyperdrive/hyperdrive.ts +6 -0
- package/src/resources/images/v1/v1.ts +6 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/kv/namespaces/keys.ts +38 -52
- package/src/resources/kv/namespaces/metadata.ts +2 -5
- package/src/resources/kv/namespaces/namespaces.ts +40 -51
- package/src/resources/kv/namespaces/values.ts +12 -19
- package/src/resources/load-balancers/load-balancers.ts +20 -20
- package/src/resources/load-balancers/monitors/monitors.ts +4 -4
- package/src/resources/load-balancers/monitors/previews.ts +2 -2
- package/src/resources/load-balancers/pools/health.ts +2 -2
- package/src/resources/load-balancers/previews.ts +2 -2
- package/src/resources/logpush/jobs.ts +63 -35
- package/src/resources/magic-cloud-networking/catalog-syncs/catalog-syncs.ts +5 -5
- package/src/resources/magic-cloud-networking/on-ramps/on-ramps.ts +65 -65
- package/src/resources/magic-cloud-networking/resources.ts +10 -10
- package/src/resources/magic-transit/connectors/connectors.ts +167 -1
- package/src/resources/magic-transit/connectors/index.ts +4 -0
- package/src/resources/magic-transit/index.ts +4 -0
- package/src/resources/magic-transit/magic-transit.ts +8 -0
- package/src/resources/magic-transit/sites/lans.ts +2 -2
- package/src/resources/page-rules.ts +4 -4
- package/src/resources/pages/projects/projects.ts +93 -88
- package/src/resources/radar/ai/bots/summary.ts +1 -1
- package/src/resources/radar/ai/inference/summary.ts +2 -2
- package/src/resources/radar/as112/summary.ts +2 -2
- package/src/resources/radar/attacks/layer3/summary.ts +3 -3
- package/src/resources/radar/attacks/layer7/summary.ts +5 -5
- package/src/resources/radar/bots/bots.ts +927 -0
- package/src/resources/radar/bots/index.ts +22 -0
- package/src/resources/radar/bots/web-crawlers.ts +384 -0
- package/src/resources/radar/bots.ts +3 -0
- package/src/resources/radar/dns/summary.ts +2 -2
- package/src/resources/radar/entities/asns.ts +0 -15
- package/src/resources/radar/index.ts +13 -0
- package/src/resources/radar/radar.ts +30 -0
- package/src/resources/radar/search.ts +3 -3
- package/src/resources/radar/verified-bots/top.ts +2 -9
- package/src/resources/rate-limits.ts +4 -4
- package/src/resources/request-tracers/traces.ts +2 -2
- package/src/resources/rules/index.ts +1 -1
- package/src/resources/rules/lists/bulk-operations.ts +17 -45
- package/src/resources/rules/lists/index.ts +2 -1
- package/src/resources/rules/lists/items.ts +128 -181
- package/src/resources/rules/lists/lists.ts +141 -286
- package/src/resources/rules/rules.ts +3 -2
- package/src/resources/rulesets/rules.ts +40 -40
- package/src/resources/schema-validation/settings/operations.ts +2 -2
- package/src/resources/shared.ts +3 -3
- package/src/resources/spectrum/analytics/events/bytimes.ts +3 -3
- package/src/resources/spectrum/analytics/events/summaries.ts +3 -3
- package/src/resources/url-scanner/scans.ts +2 -2
- package/src/resources/user/tokens/index.ts +1 -0
- package/src/resources/user/tokens/permission-groups.ts +29 -5
- package/src/resources/user/tokens/tokens.ts +9 -18
- package/src/resources/workers/assets/upload.ts +1 -1
- package/src/resources/workers/observability/telemetry.ts +30 -30
- package/src/resources/workers/scripts/assets/upload.ts +1 -1
- package/src/resources/workers/scripts/scripts.ts +9 -2
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/asset-upload.ts +1 -1
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +9 -2
- package/src/resources/workflows/instances/instances.ts +7 -0
- package/src/resources/zaraz/config.ts +38 -36
- package/src/resources/zaraz/history/configs.ts +1 -1
- package/src/resources/zaraz/zaraz.ts +6 -6
- package/src/resources/zero-trust/access/applications/applications.ts +21 -15
- package/src/resources/zero-trust/access/applications/policies.ts +54 -0
- package/src/resources/zero-trust/access/users/active-sessions.ts +3 -3
- package/src/resources/zero-trust/access/users/last-seen-identity.ts +2 -2
- package/src/resources/zero-trust/devices/devices_.ts +1 -1
- package/src/resources/zero-trust/devices/dex-tests.ts +1 -1
- package/src/resources/zero-trust/devices/override-codes.ts +1 -1
- package/src/resources/zero-trust/devices/registrations.ts +4 -4
- package/src/resources/zero-trust/dex/commands/commands.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/datasets.ts +3 -3
- package/src/resources/zero-trust/dlp/datasets/upload.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/versions/entries.ts +1 -1
- package/src/resources/zero-trust/dlp/datasets/versions/versions.ts +1 -1
- package/src/resources/zero-trust/dlp/dlp.ts +15 -15
- package/src/resources/zero-trust/dlp/email/rules.ts +1 -1
- package/src/resources/zero-trust/dlp/entries/custom.ts +342 -0
- package/src/resources/zero-trust/dlp/entries/entries.ts +727 -0
- package/src/resources/zero-trust/dlp/entries/index.ts +43 -0
- package/src/resources/zero-trust/dlp/entries/integration.ts +165 -0
- package/src/resources/zero-trust/dlp/entries/predefined.ts +191 -0
- package/src/resources/zero-trust/dlp/entries.ts +1 -658
- package/src/resources/zero-trust/dlp/index.ts +1 -1
- package/src/resources/zero-trust/dlp/profiles/custom.ts +24 -4
- package/src/resources/zero-trust/dlp/profiles/index.ts +3 -0
- package/src/resources/zero-trust/dlp/profiles/predefined.ts +115 -3
- package/src/resources/zero-trust/dlp/profiles/profiles.ts +15 -9
- package/src/resources/zero-trust/gateway/configurations/configurations.ts +22 -30
- package/src/resources/zero-trust/gateway/lists/lists.ts +32 -16
- package/src/resources/zero-trust/gateway/rules.ts +2 -2
- package/src/resources/zero-trust/risk-scoring/behaviours.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { APIResource } from "../../../../resource.js";
|
|
2
|
+
import * as Core from "../../../../core.js";
|
|
3
|
+
import * as CustomAPI from "./custom.js";
|
|
4
|
+
import { Custom, CustomCreateParams, CustomCreateResponse, CustomDeleteParams, CustomDeleteResponse, CustomUpdateParams, CustomUpdateResponse } from "./custom.js";
|
|
5
|
+
import * as IntegrationAPI from "./integration.js";
|
|
6
|
+
import { Integration, IntegrationCreateParams, IntegrationCreateResponse, IntegrationDeleteParams, IntegrationDeleteResponse, IntegrationUpdateParams, IntegrationUpdateResponse } from "./integration.js";
|
|
7
|
+
import * as PredefinedAPI from "./predefined.js";
|
|
8
|
+
import { Predefined, PredefinedCreateParams, PredefinedCreateResponse, PredefinedDeleteParams, PredefinedDeleteResponse, PredefinedUpdateParams, PredefinedUpdateResponse } from "./predefined.js";
|
|
9
|
+
import * as ProfilesCustomAPI from "../profiles/custom.js";
|
|
10
|
+
import { SinglePage } from "../../../../pagination.js";
|
|
11
|
+
export declare class Entries extends APIResource {
|
|
12
|
+
custom: CustomAPI.Custom;
|
|
13
|
+
predefined: PredefinedAPI.Predefined;
|
|
14
|
+
integration: IntegrationAPI.Integration;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a DLP custom entry.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const entry = await client.zeroTrust.dlp.entries.create({
|
|
21
|
+
* account_id: 'account_id',
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* name: 'name',
|
|
24
|
+
* pattern: { regex: 'regex' },
|
|
25
|
+
* profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(params: EntryCreateParams, options?: Core.RequestOptions): Core.APIPromise<EntryCreateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Updates a DLP entry.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const entry = await client.zeroTrust.dlp.entries.update(
|
|
36
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
37
|
+
* {
|
|
38
|
+
* account_id: 'account_id',
|
|
39
|
+
* name: 'name',
|
|
40
|
+
* pattern: { regex: 'regex' },
|
|
41
|
+
* type: 'custom',
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
update(entryId: string, params: EntryUpdateParams, options?: Core.RequestOptions): Core.APIPromise<EntryUpdateResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Lists all DLP entries in an account.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const entryListResponse of client.zeroTrust.dlp.entries.list(
|
|
54
|
+
* { account_id: 'account_id' },
|
|
55
|
+
* )) {
|
|
56
|
+
* // ...
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
list(params: EntryListParams, options?: Core.RequestOptions): Core.PagePromise<EntryListResponsesSinglePage, EntryListResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Deletes a DLP custom entry.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const entry = await client.zeroTrust.dlp.entries.delete(
|
|
67
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
68
|
+
* { account_id: 'account_id' },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(entryId: string, params: EntryDeleteParams, options?: Core.RequestOptions): Core.APIPromise<EntryDeleteResponse | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Fetches a DLP entry by ID.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const entry = await client.zeroTrust.dlp.entries.get(
|
|
79
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
80
|
+
* { account_id: 'account_id' },
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
get(entryId: string, params: EntryGetParams, options?: Core.RequestOptions): Core.APIPromise<EntryGetResponse>;
|
|
85
|
+
}
|
|
86
|
+
export declare class EntryListResponsesSinglePage extends SinglePage<EntryListResponse> {
|
|
87
|
+
}
|
|
88
|
+
export interface EntryCreateResponse {
|
|
89
|
+
id: string;
|
|
90
|
+
created_at: string;
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
name: string;
|
|
93
|
+
pattern: ProfilesCustomAPI.Pattern;
|
|
94
|
+
updated_at: string;
|
|
95
|
+
profile_id?: string | null;
|
|
96
|
+
}
|
|
97
|
+
export type EntryUpdateResponse = EntryUpdateResponse.CustomEntry | EntryUpdateResponse.PredefinedEntry | EntryUpdateResponse.IntegrationEntry | EntryUpdateResponse.ExactDataEntry | EntryUpdateResponse.DocumentFingerprintEntry | EntryUpdateResponse.WordListEntry;
|
|
98
|
+
export declare namespace EntryUpdateResponse {
|
|
99
|
+
interface CustomEntry {
|
|
100
|
+
id: string;
|
|
101
|
+
created_at: string;
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
name: string;
|
|
104
|
+
pattern: ProfilesCustomAPI.Pattern;
|
|
105
|
+
type: 'custom';
|
|
106
|
+
updated_at: string;
|
|
107
|
+
profile_id?: string | null;
|
|
108
|
+
}
|
|
109
|
+
interface PredefinedEntry {
|
|
110
|
+
id: string;
|
|
111
|
+
confidence: PredefinedEntry.Confidence;
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
name: string;
|
|
114
|
+
type: 'predefined';
|
|
115
|
+
profile_id?: string | null;
|
|
116
|
+
}
|
|
117
|
+
namespace PredefinedEntry {
|
|
118
|
+
interface Confidence {
|
|
119
|
+
/**
|
|
120
|
+
* Indicates whether this entry has AI remote service validation.
|
|
121
|
+
*/
|
|
122
|
+
ai_context_available: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Indicates whether this entry has any form of validation that is not an AI remote
|
|
125
|
+
* service.
|
|
126
|
+
*/
|
|
127
|
+
available: boolean;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
interface IntegrationEntry {
|
|
131
|
+
id: string;
|
|
132
|
+
created_at: string;
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
name: string;
|
|
135
|
+
type: 'integration';
|
|
136
|
+
updated_at: string;
|
|
137
|
+
profile_id?: string | null;
|
|
138
|
+
}
|
|
139
|
+
interface ExactDataEntry {
|
|
140
|
+
id: string;
|
|
141
|
+
/**
|
|
142
|
+
* Only applies to custom word lists. Determines if the words should be matched in
|
|
143
|
+
* a case-sensitive manner Cannot be set to false if secret is true
|
|
144
|
+
*/
|
|
145
|
+
case_sensitive: boolean;
|
|
146
|
+
created_at: string;
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
name: string;
|
|
149
|
+
secret: boolean;
|
|
150
|
+
type: 'exact_data';
|
|
151
|
+
updated_at: string;
|
|
152
|
+
}
|
|
153
|
+
interface DocumentFingerprintEntry {
|
|
154
|
+
id: string;
|
|
155
|
+
created_at: string;
|
|
156
|
+
enabled: boolean;
|
|
157
|
+
name: string;
|
|
158
|
+
type: 'document_fingerprint';
|
|
159
|
+
updated_at: string;
|
|
160
|
+
}
|
|
161
|
+
interface WordListEntry {
|
|
162
|
+
id: string;
|
|
163
|
+
created_at: string;
|
|
164
|
+
enabled: boolean;
|
|
165
|
+
name: string;
|
|
166
|
+
type: 'word_list';
|
|
167
|
+
updated_at: string;
|
|
168
|
+
word_list: unknown;
|
|
169
|
+
profile_id?: string | null;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export type EntryListResponse = EntryListResponse.CustomEntry | EntryListResponse.PredefinedEntry | EntryListResponse.IntegrationEntry | EntryListResponse.ExactDataEntry | EntryListResponse.DocumentFingerprintEntry | EntryListResponse.WordListEntry;
|
|
173
|
+
export declare namespace EntryListResponse {
|
|
174
|
+
interface CustomEntry {
|
|
175
|
+
id: string;
|
|
176
|
+
created_at: string;
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
name: string;
|
|
179
|
+
pattern: ProfilesCustomAPI.Pattern;
|
|
180
|
+
type: 'custom';
|
|
181
|
+
updated_at: string;
|
|
182
|
+
profile_id?: string | null;
|
|
183
|
+
}
|
|
184
|
+
interface PredefinedEntry {
|
|
185
|
+
id: string;
|
|
186
|
+
confidence: PredefinedEntry.Confidence;
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
name: string;
|
|
189
|
+
type: 'predefined';
|
|
190
|
+
profile_id?: string | null;
|
|
191
|
+
}
|
|
192
|
+
namespace PredefinedEntry {
|
|
193
|
+
interface Confidence {
|
|
194
|
+
/**
|
|
195
|
+
* Indicates whether this entry has AI remote service validation.
|
|
196
|
+
*/
|
|
197
|
+
ai_context_available: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Indicates whether this entry has any form of validation that is not an AI remote
|
|
200
|
+
* service.
|
|
201
|
+
*/
|
|
202
|
+
available: boolean;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
interface IntegrationEntry {
|
|
206
|
+
id: string;
|
|
207
|
+
created_at: string;
|
|
208
|
+
enabled: boolean;
|
|
209
|
+
name: string;
|
|
210
|
+
type: 'integration';
|
|
211
|
+
updated_at: string;
|
|
212
|
+
profile_id?: string | null;
|
|
213
|
+
}
|
|
214
|
+
interface ExactDataEntry {
|
|
215
|
+
id: string;
|
|
216
|
+
/**
|
|
217
|
+
* Only applies to custom word lists. Determines if the words should be matched in
|
|
218
|
+
* a case-sensitive manner Cannot be set to false if secret is true
|
|
219
|
+
*/
|
|
220
|
+
case_sensitive: boolean;
|
|
221
|
+
created_at: string;
|
|
222
|
+
enabled: boolean;
|
|
223
|
+
name: string;
|
|
224
|
+
secret: boolean;
|
|
225
|
+
type: 'exact_data';
|
|
226
|
+
updated_at: string;
|
|
227
|
+
}
|
|
228
|
+
interface DocumentFingerprintEntry {
|
|
229
|
+
id: string;
|
|
230
|
+
created_at: string;
|
|
231
|
+
enabled: boolean;
|
|
232
|
+
name: string;
|
|
233
|
+
type: 'document_fingerprint';
|
|
234
|
+
updated_at: string;
|
|
235
|
+
}
|
|
236
|
+
interface WordListEntry {
|
|
237
|
+
id: string;
|
|
238
|
+
created_at: string;
|
|
239
|
+
enabled: boolean;
|
|
240
|
+
name: string;
|
|
241
|
+
type: 'word_list';
|
|
242
|
+
updated_at: string;
|
|
243
|
+
word_list: unknown;
|
|
244
|
+
profile_id?: string | null;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
export type EntryDeleteResponse = unknown;
|
|
248
|
+
export type EntryGetResponse = EntryGetResponse.CustomEntry | EntryGetResponse.PredefinedEntry | EntryGetResponse.IntegrationEntry | EntryGetResponse.ExactDataEntry | EntryGetResponse.DocumentFingerprintEntry | EntryGetResponse.WordListEntry;
|
|
249
|
+
export declare namespace EntryGetResponse {
|
|
250
|
+
interface CustomEntry {
|
|
251
|
+
id: string;
|
|
252
|
+
created_at: string;
|
|
253
|
+
enabled: boolean;
|
|
254
|
+
name: string;
|
|
255
|
+
pattern: ProfilesCustomAPI.Pattern;
|
|
256
|
+
type: 'custom';
|
|
257
|
+
updated_at: string;
|
|
258
|
+
profile_id?: string | null;
|
|
259
|
+
}
|
|
260
|
+
interface PredefinedEntry {
|
|
261
|
+
id: string;
|
|
262
|
+
confidence: PredefinedEntry.Confidence;
|
|
263
|
+
enabled: boolean;
|
|
264
|
+
name: string;
|
|
265
|
+
type: 'predefined';
|
|
266
|
+
profile_id?: string | null;
|
|
267
|
+
}
|
|
268
|
+
namespace PredefinedEntry {
|
|
269
|
+
interface Confidence {
|
|
270
|
+
/**
|
|
271
|
+
* Indicates whether this entry has AI remote service validation.
|
|
272
|
+
*/
|
|
273
|
+
ai_context_available: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Indicates whether this entry has any form of validation that is not an AI remote
|
|
276
|
+
* service.
|
|
277
|
+
*/
|
|
278
|
+
available: boolean;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
interface IntegrationEntry {
|
|
282
|
+
id: string;
|
|
283
|
+
created_at: string;
|
|
284
|
+
enabled: boolean;
|
|
285
|
+
name: string;
|
|
286
|
+
type: 'integration';
|
|
287
|
+
updated_at: string;
|
|
288
|
+
profile_id?: string | null;
|
|
289
|
+
}
|
|
290
|
+
interface ExactDataEntry {
|
|
291
|
+
id: string;
|
|
292
|
+
/**
|
|
293
|
+
* Only applies to custom word lists. Determines if the words should be matched in
|
|
294
|
+
* a case-sensitive manner Cannot be set to false if secret is true
|
|
295
|
+
*/
|
|
296
|
+
case_sensitive: boolean;
|
|
297
|
+
created_at: string;
|
|
298
|
+
enabled: boolean;
|
|
299
|
+
name: string;
|
|
300
|
+
secret: boolean;
|
|
301
|
+
type: 'exact_data';
|
|
302
|
+
updated_at: string;
|
|
303
|
+
}
|
|
304
|
+
interface DocumentFingerprintEntry {
|
|
305
|
+
id: string;
|
|
306
|
+
created_at: string;
|
|
307
|
+
enabled: boolean;
|
|
308
|
+
name: string;
|
|
309
|
+
type: 'document_fingerprint';
|
|
310
|
+
updated_at: string;
|
|
311
|
+
}
|
|
312
|
+
interface WordListEntry {
|
|
313
|
+
id: string;
|
|
314
|
+
created_at: string;
|
|
315
|
+
enabled: boolean;
|
|
316
|
+
name: string;
|
|
317
|
+
type: 'word_list';
|
|
318
|
+
updated_at: string;
|
|
319
|
+
word_list: unknown;
|
|
320
|
+
profile_id?: string | null;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
export interface EntryCreateParams {
|
|
324
|
+
/**
|
|
325
|
+
* Path param:
|
|
326
|
+
*/
|
|
327
|
+
account_id: string;
|
|
328
|
+
/**
|
|
329
|
+
* Body param:
|
|
330
|
+
*/
|
|
331
|
+
enabled: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* Body param:
|
|
334
|
+
*/
|
|
335
|
+
name: string;
|
|
336
|
+
/**
|
|
337
|
+
* Body param:
|
|
338
|
+
*/
|
|
339
|
+
pattern: ProfilesCustomAPI.PatternParam;
|
|
340
|
+
/**
|
|
341
|
+
* Body param:
|
|
342
|
+
*/
|
|
343
|
+
profile_id: string;
|
|
344
|
+
}
|
|
345
|
+
export type EntryUpdateParams = EntryUpdateParams.Variant0 | EntryUpdateParams.Variant1 | EntryUpdateParams.Variant2;
|
|
346
|
+
export declare namespace EntryUpdateParams {
|
|
347
|
+
interface Variant0 {
|
|
348
|
+
/**
|
|
349
|
+
* Path param:
|
|
350
|
+
*/
|
|
351
|
+
account_id: string;
|
|
352
|
+
/**
|
|
353
|
+
* Body param:
|
|
354
|
+
*/
|
|
355
|
+
name: string;
|
|
356
|
+
/**
|
|
357
|
+
* Body param:
|
|
358
|
+
*/
|
|
359
|
+
pattern: ProfilesCustomAPI.PatternParam;
|
|
360
|
+
/**
|
|
361
|
+
* Body param:
|
|
362
|
+
*/
|
|
363
|
+
type: 'custom';
|
|
364
|
+
/**
|
|
365
|
+
* Body param:
|
|
366
|
+
*/
|
|
367
|
+
enabled?: boolean;
|
|
368
|
+
}
|
|
369
|
+
interface Variant1 {
|
|
370
|
+
/**
|
|
371
|
+
* Path param:
|
|
372
|
+
*/
|
|
373
|
+
account_id: string;
|
|
374
|
+
/**
|
|
375
|
+
* Body param:
|
|
376
|
+
*/
|
|
377
|
+
type: 'predefined';
|
|
378
|
+
/**
|
|
379
|
+
* Body param:
|
|
380
|
+
*/
|
|
381
|
+
enabled?: boolean;
|
|
382
|
+
}
|
|
383
|
+
interface Variant2 {
|
|
384
|
+
/**
|
|
385
|
+
* Path param:
|
|
386
|
+
*/
|
|
387
|
+
account_id: string;
|
|
388
|
+
/**
|
|
389
|
+
* Body param:
|
|
390
|
+
*/
|
|
391
|
+
type: 'integration';
|
|
392
|
+
/**
|
|
393
|
+
* Body param:
|
|
394
|
+
*/
|
|
395
|
+
enabled?: boolean;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
export interface EntryListParams {
|
|
399
|
+
account_id: string;
|
|
400
|
+
}
|
|
401
|
+
export interface EntryDeleteParams {
|
|
402
|
+
account_id: string;
|
|
403
|
+
}
|
|
404
|
+
export interface EntryGetParams {
|
|
405
|
+
account_id: string;
|
|
406
|
+
}
|
|
407
|
+
export declare namespace Entries {
|
|
408
|
+
export { type EntryCreateResponse as EntryCreateResponse, type EntryUpdateResponse as EntryUpdateResponse, type EntryListResponse as EntryListResponse, type EntryDeleteResponse as EntryDeleteResponse, type EntryGetResponse as EntryGetResponse, EntryListResponsesSinglePage as EntryListResponsesSinglePage, type EntryCreateParams as EntryCreateParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, type EntryGetParams as EntryGetParams, };
|
|
409
|
+
export { Custom as Custom, type CustomCreateResponse as CustomCreateResponse, type CustomUpdateResponse as CustomUpdateResponse, type CustomDeleteResponse as CustomDeleteResponse, type CustomCreateParams as CustomCreateParams, type CustomUpdateParams as CustomUpdateParams, type CustomDeleteParams as CustomDeleteParams, };
|
|
410
|
+
export { Predefined as Predefined, type PredefinedCreateResponse as PredefinedCreateResponse, type PredefinedUpdateResponse as PredefinedUpdateResponse, type PredefinedDeleteResponse as PredefinedDeleteResponse, type PredefinedCreateParams as PredefinedCreateParams, type PredefinedUpdateParams as PredefinedUpdateParams, type PredefinedDeleteParams as PredefinedDeleteParams, };
|
|
411
|
+
export { Integration as Integration, type IntegrationCreateResponse as IntegrationCreateResponse, type IntegrationUpdateResponse as IntegrationUpdateResponse, type IntegrationDeleteResponse as IntegrationDeleteResponse, type IntegrationCreateParams as IntegrationCreateParams, type IntegrationUpdateParams as IntegrationUpdateParams, type IntegrationDeleteParams as IntegrationDeleteParams, };
|
|
412
|
+
}
|
|
413
|
+
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../src/resources/zero-trust/dlp/entries/entries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AA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IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.EntryListResponsesSinglePage = exports.Entries = void 0;
|
|
28
|
+
const resource_1 = require("../../../../resource.js");
|
|
29
|
+
const CustomAPI = __importStar(require("./custom.js"));
|
|
30
|
+
const custom_1 = require("./custom.js");
|
|
31
|
+
const IntegrationAPI = __importStar(require("./integration.js"));
|
|
32
|
+
const integration_1 = require("./integration.js");
|
|
33
|
+
const PredefinedAPI = __importStar(require("./predefined.js"));
|
|
34
|
+
const predefined_1 = require("./predefined.js");
|
|
35
|
+
const pagination_1 = require("../../../../pagination.js");
|
|
36
|
+
class Entries extends resource_1.APIResource {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.custom = new CustomAPI.Custom(this._client);
|
|
40
|
+
this.predefined = new PredefinedAPI.Predefined(this._client);
|
|
41
|
+
this.integration = new IntegrationAPI.Integration(this._client);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a DLP custom entry.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const entry = await client.zeroTrust.dlp.entries.create({
|
|
49
|
+
* account_id: 'account_id',
|
|
50
|
+
* enabled: true,
|
|
51
|
+
* name: 'name',
|
|
52
|
+
* pattern: { regex: 'regex' },
|
|
53
|
+
* profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
create(params, options) {
|
|
58
|
+
const { account_id, ...body } = params;
|
|
59
|
+
return this._client.post(`/accounts/${account_id}/dlp/entries`, { body, ...options })._thenUnwrap((obj) => obj.result);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Updates a DLP entry.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const entry = await client.zeroTrust.dlp.entries.update(
|
|
67
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
68
|
+
* {
|
|
69
|
+
* account_id: 'account_id',
|
|
70
|
+
* name: 'name',
|
|
71
|
+
* pattern: { regex: 'regex' },
|
|
72
|
+
* type: 'custom',
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(entryId, params, options) {
|
|
78
|
+
const { account_id, ...body } = params;
|
|
79
|
+
return this._client.put(`/accounts/${account_id}/dlp/entries/${entryId}`, {
|
|
80
|
+
body,
|
|
81
|
+
...options,
|
|
82
|
+
})._thenUnwrap((obj) => obj.result);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Lists all DLP entries in an account.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* // Automatically fetches more pages as needed.
|
|
90
|
+
* for await (const entryListResponse of client.zeroTrust.dlp.entries.list(
|
|
91
|
+
* { account_id: 'account_id' },
|
|
92
|
+
* )) {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
list(params, options) {
|
|
98
|
+
const { account_id } = params;
|
|
99
|
+
return this._client.getAPIList(`/accounts/${account_id}/dlp/entries`, EntryListResponsesSinglePage, options);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Deletes a DLP custom entry.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const entry = await client.zeroTrust.dlp.entries.delete(
|
|
107
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
108
|
+
* { account_id: 'account_id' },
|
|
109
|
+
* );
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
delete(entryId, params, options) {
|
|
113
|
+
const { account_id } = params;
|
|
114
|
+
return this._client.delete(`/accounts/${account_id}/dlp/entries/${entryId}`, options)._thenUnwrap((obj) => obj.result);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Fetches a DLP entry by ID.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* const entry = await client.zeroTrust.dlp.entries.get(
|
|
122
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
123
|
+
* { account_id: 'account_id' },
|
|
124
|
+
* );
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
get(entryId, params, options) {
|
|
128
|
+
const { account_id } = params;
|
|
129
|
+
return this._client.get(`/accounts/${account_id}/dlp/entries/${entryId}`, options)._thenUnwrap((obj) => obj.result);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.Entries = Entries;
|
|
133
|
+
class EntryListResponsesSinglePage extends pagination_1.SinglePage {
|
|
134
|
+
}
|
|
135
|
+
exports.EntryListResponsesSinglePage = EntryListResponsesSinglePage;
|
|
136
|
+
Entries.EntryListResponsesSinglePage = EntryListResponsesSinglePage;
|
|
137
|
+
Entries.Custom = custom_1.Custom;
|
|
138
|
+
Entries.Predefined = predefined_1.Predefined;
|
|
139
|
+
Entries.Integration = integration_1.Integration;
|
|
140
|
+
//# sourceMappingURL=entries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries.js","sourceRoot":"","sources":["../../../../src/resources/zero-trust/dlp/entries/entries.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,sDAAmD;AAEnD,uDAAsC;AACtC,wCAQkB;AAClB,iEAAgD;AAChD,kDAQuB;AACvB,+DAA8C;AAC9C,gDAQsB;AAEtB,0DAAoD;AAEpD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,C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AO,EAAE,EAAE,OAAO,CAG9E,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,OAAe,EACf,MAAsB,EACtB,OAA6B;QAE7B,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,UAAU,gBAAgB,OAAO,EAAE,EAAE,OAAO,CAG3E,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACF;AAlID,0BAkIC;AAED,MAAa,4BAA6B,SAAQ,uBAA6B;CAAG;AAAlF,oEAAkF;AA4flF,OAAO,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;AACpE,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC;AAChC,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../resource.mjs";
|
|
3
|
+
import * as CustomAPI from "./custom.mjs";
|
|
4
|
+
import { Custom, } from "./custom.mjs";
|
|
5
|
+
import * as IntegrationAPI from "./integration.mjs";
|
|
6
|
+
import { Integration, } from "./integration.mjs";
|
|
7
|
+
import * as PredefinedAPI from "./predefined.mjs";
|
|
8
|
+
import { Predefined, } from "./predefined.mjs";
|
|
9
|
+
import { SinglePage } from "../../../../pagination.mjs";
|
|
10
|
+
export class Entries extends APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.custom = new CustomAPI.Custom(this._client);
|
|
14
|
+
this.predefined = new PredefinedAPI.Predefined(this._client);
|
|
15
|
+
this.integration = new IntegrationAPI.Integration(this._client);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a DLP custom entry.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const entry = await client.zeroTrust.dlp.entries.create({
|
|
23
|
+
* account_id: 'account_id',
|
|
24
|
+
* enabled: true,
|
|
25
|
+
* name: 'name',
|
|
26
|
+
* pattern: { regex: 'regex' },
|
|
27
|
+
* profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(params, options) {
|
|
32
|
+
const { account_id, ...body } = params;
|
|
33
|
+
return this._client.post(`/accounts/${account_id}/dlp/entries`, { body, ...options })._thenUnwrap((obj) => obj.result);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Updates a DLP entry.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const entry = await client.zeroTrust.dlp.entries.update(
|
|
41
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
42
|
+
* {
|
|
43
|
+
* account_id: 'account_id',
|
|
44
|
+
* name: 'name',
|
|
45
|
+
* pattern: { regex: 'regex' },
|
|
46
|
+
* type: 'custom',
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
update(entryId, params, options) {
|
|
52
|
+
const { account_id, ...body } = params;
|
|
53
|
+
return this._client.put(`/accounts/${account_id}/dlp/entries/${entryId}`, {
|
|
54
|
+
body,
|
|
55
|
+
...options,
|
|
56
|
+
})._thenUnwrap((obj) => obj.result);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Lists all DLP entries in an account.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* // Automatically fetches more pages as needed.
|
|
64
|
+
* for await (const entryListResponse of client.zeroTrust.dlp.entries.list(
|
|
65
|
+
* { account_id: 'account_id' },
|
|
66
|
+
* )) {
|
|
67
|
+
* // ...
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
list(params, options) {
|
|
72
|
+
const { account_id } = params;
|
|
73
|
+
return this._client.getAPIList(`/accounts/${account_id}/dlp/entries`, EntryListResponsesSinglePage, options);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Deletes a DLP custom entry.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const entry = await client.zeroTrust.dlp.entries.delete(
|
|
81
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
82
|
+
* { account_id: 'account_id' },
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
delete(entryId, params, options) {
|
|
87
|
+
const { account_id } = params;
|
|
88
|
+
return this._client.delete(`/accounts/${account_id}/dlp/entries/${entryId}`, options)._thenUnwrap((obj) => obj.result);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Fetches a DLP entry by ID.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const entry = await client.zeroTrust.dlp.entries.get(
|
|
96
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
97
|
+
* { account_id: 'account_id' },
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
get(entryId, params, options) {
|
|
102
|
+
const { account_id } = params;
|
|
103
|
+
return this._client.get(`/accounts/${account_id}/dlp/entries/${entryId}`, options)._thenUnwrap((obj) => obj.result);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class EntryListResponsesSinglePage extends SinglePage {
|
|
107
|
+
}
|
|
108
|
+
Entries.EntryListResponsesSinglePage = EntryListResponsesSinglePage;
|
|
109
|
+
Entries.Custom = Custom;
|
|
110
|
+
Entries.Predefined = Predefined;
|
|
111
|
+
Entries.Integration = Integration;
|
|
112
|
+
//# sourceMappingURL=entries.mjs.map
|