cloudflare 4.4.0 → 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 +72 -0
- package/README.md +2 -4
- package/core.d.ts +7 -4
- package/core.d.ts.map +1 -1
- package/core.js +16 -9
- package/core.js.map +1 -1
- package/core.mjs +16 -9
- package/core.mjs.map +1 -1
- package/index.d.mts +4 -1
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- 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/resources/zones/index.d.ts +1 -1
- package/resources/zones/index.d.ts.map +1 -1
- package/resources/zones/index.js.map +1 -1
- package/resources/zones/index.mjs +1 -1
- package/resources/zones/index.mjs.map +1 -1
- package/resources/zones/subscriptions.d.ts +74 -0
- package/resources/zones/subscriptions.d.ts.map +1 -1
- package/resources/zones/subscriptions.js +44 -0
- package/resources/zones/subscriptions.js.map +1 -1
- package/resources/zones/subscriptions.mjs +44 -0
- package/resources/zones/subscriptions.mjs.map +1 -1
- package/resources/zones/zones.d.ts +2 -2
- package/resources/zones/zones.d.ts.map +1 -1
- package/resources/zones/zones.js.map +1 -1
- package/resources/zones/zones.mjs +1 -1
- package/resources/zones/zones.mjs.map +1 -1
- package/src/core.ts +17 -8
- package/src/index.ts +11 -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/resources/zones/index.ts +6 -1
- package/src/resources/zones/subscriptions.ts +117 -1
- package/src/resources/zones/zones.ts +12 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -141,7 +141,7 @@ export interface CustomProfile {
|
|
|
141
141
|
| CustomProfile.PredefinedEntry
|
|
142
142
|
| CustomProfile.IntegrationEntry
|
|
143
143
|
| CustomProfile.ExactDataEntry
|
|
144
|
-
| CustomProfile.
|
|
144
|
+
| CustomProfile.DocumentFingerprintEntry
|
|
145
145
|
| CustomProfile.WordListEntry
|
|
146
146
|
>;
|
|
147
147
|
|
|
@@ -253,7 +253,7 @@ export namespace CustomProfile {
|
|
|
253
253
|
updated_at: string;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
export interface
|
|
256
|
+
export interface DocumentFingerprintEntry {
|
|
257
257
|
id: string;
|
|
258
258
|
|
|
259
259
|
created_at: string;
|
|
@@ -262,7 +262,7 @@ export namespace CustomProfile {
|
|
|
262
262
|
|
|
263
263
|
name: string;
|
|
264
264
|
|
|
265
|
-
type: '
|
|
265
|
+
type: 'document_fingerprint';
|
|
266
266
|
|
|
267
267
|
updated_at: string;
|
|
268
268
|
}
|
|
@@ -363,6 +363,7 @@ export interface CustomCreateParams {
|
|
|
363
363
|
| CustomCreateParams.Predefined
|
|
364
364
|
| CustomCreateParams.Integration
|
|
365
365
|
| CustomCreateParams.ExactData
|
|
366
|
+
| CustomCreateParams.UnionMember4
|
|
366
367
|
>;
|
|
367
368
|
}
|
|
368
369
|
|
|
@@ -414,6 +415,14 @@ export namespace CustomCreateParams {
|
|
|
414
415
|
|
|
415
416
|
entry_type: 'exact_data';
|
|
416
417
|
}
|
|
418
|
+
|
|
419
|
+
export interface UnionMember4 {
|
|
420
|
+
enabled: boolean;
|
|
421
|
+
|
|
422
|
+
entry_id: string;
|
|
423
|
+
|
|
424
|
+
entry_type: 'document_fingerprint';
|
|
425
|
+
}
|
|
417
426
|
}
|
|
418
427
|
|
|
419
428
|
export interface CustomUpdateParams {
|
|
@@ -468,7 +477,10 @@ export interface CustomUpdateParams {
|
|
|
468
477
|
* Body param: Other entries, e.g. predefined or integration.
|
|
469
478
|
*/
|
|
470
479
|
shared_entries?: Array<
|
|
471
|
-
|
|
480
|
+
| CustomUpdateParams.Predefined
|
|
481
|
+
| CustomUpdateParams.Integration
|
|
482
|
+
| CustomUpdateParams.ExactData
|
|
483
|
+
| CustomUpdateParams.UnionMember3
|
|
472
484
|
>;
|
|
473
485
|
}
|
|
474
486
|
|
|
@@ -514,6 +526,14 @@ export namespace CustomUpdateParams {
|
|
|
514
526
|
|
|
515
527
|
entry_type: 'exact_data';
|
|
516
528
|
}
|
|
529
|
+
|
|
530
|
+
export interface UnionMember3 {
|
|
531
|
+
enabled: boolean;
|
|
532
|
+
|
|
533
|
+
entry_id: string;
|
|
534
|
+
|
|
535
|
+
entry_type: 'document_fingerprint';
|
|
536
|
+
}
|
|
517
537
|
}
|
|
518
538
|
|
|
519
539
|
export interface CustomDeleteParams {
|
|
@@ -13,7 +13,10 @@ export {
|
|
|
13
13
|
export {
|
|
14
14
|
Predefined,
|
|
15
15
|
type PredefinedProfile,
|
|
16
|
+
type PredefinedDeleteResponse,
|
|
17
|
+
type PredefinedCreateParams,
|
|
16
18
|
type PredefinedUpdateParams,
|
|
19
|
+
type PredefinedDeleteParams,
|
|
17
20
|
type PredefinedGetParams,
|
|
18
21
|
} from './predefined';
|
|
19
22
|
export {
|
|
@@ -6,6 +6,31 @@ import * as CustomAPI from './custom';
|
|
|
6
6
|
import * as ProfilesAPI from './profiles';
|
|
7
7
|
|
|
8
8
|
export class Predefined extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a DLP predefined profile. Only supports enabling/disabling entries.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const profile =
|
|
15
|
+
* await client.zeroTrust.dlp.profiles.predefined.create({
|
|
16
|
+
* account_id: 'account_id',
|
|
17
|
+
* profile_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(
|
|
22
|
+
params: PredefinedCreateParams,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<ProfilesAPI.Profile> {
|
|
25
|
+
const { account_id, ...body } = params;
|
|
26
|
+
return (
|
|
27
|
+
this._client.post(`/accounts/${account_id}/dlp/profiles/predefined`, {
|
|
28
|
+
body,
|
|
29
|
+
...options,
|
|
30
|
+
}) as Core.APIPromise<{ result: ProfilesAPI.Profile }>
|
|
31
|
+
)._thenUnwrap((obj) => obj.result);
|
|
32
|
+
}
|
|
33
|
+
|
|
9
34
|
/**
|
|
10
35
|
* Updates a DLP predefined profile. Only supports enabling/disabling entries.
|
|
11
36
|
*
|
|
@@ -32,6 +57,33 @@ export class Predefined extends APIResource {
|
|
|
32
57
|
)._thenUnwrap((obj) => obj.result);
|
|
33
58
|
}
|
|
34
59
|
|
|
60
|
+
/**
|
|
61
|
+
* This is a no-op as predefined profiles can't be deleted but is needed for our
|
|
62
|
+
* generated terraform API
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const predefined =
|
|
67
|
+
* await client.zeroTrust.dlp.profiles.predefined.delete(
|
|
68
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
69
|
+
* { account_id: 'account_id' },
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
delete(
|
|
74
|
+
profileId: string,
|
|
75
|
+
params: PredefinedDeleteParams,
|
|
76
|
+
options?: Core.RequestOptions,
|
|
77
|
+
): Core.APIPromise<PredefinedDeleteResponse | null> {
|
|
78
|
+
const { account_id } = params;
|
|
79
|
+
return (
|
|
80
|
+
this._client.delete(
|
|
81
|
+
`/accounts/${account_id}/dlp/profiles/predefined/${profileId}`,
|
|
82
|
+
options,
|
|
83
|
+
) as Core.APIPromise<{ result: PredefinedDeleteResponse | null }>
|
|
84
|
+
)._thenUnwrap((obj) => obj.result);
|
|
85
|
+
}
|
|
86
|
+
|
|
35
87
|
/**
|
|
36
88
|
* Fetches a predefined DLP profile by id.
|
|
37
89
|
*
|
|
@@ -72,7 +124,7 @@ export interface PredefinedProfile {
|
|
|
72
124
|
| PredefinedProfile.PredefinedEntry
|
|
73
125
|
| PredefinedProfile.IntegrationEntry
|
|
74
126
|
| PredefinedProfile.ExactDataEntry
|
|
75
|
-
| PredefinedProfile.
|
|
127
|
+
| PredefinedProfile.DocumentFingerprintEntry
|
|
76
128
|
| PredefinedProfile.WordListEntry
|
|
77
129
|
>;
|
|
78
130
|
|
|
@@ -185,7 +237,7 @@ export namespace PredefinedProfile {
|
|
|
185
237
|
updated_at: string;
|
|
186
238
|
}
|
|
187
239
|
|
|
188
|
-
export interface
|
|
240
|
+
export interface DocumentFingerprintEntry {
|
|
189
241
|
id: string;
|
|
190
242
|
|
|
191
243
|
created_at: string;
|
|
@@ -194,7 +246,7 @@ export namespace PredefinedProfile {
|
|
|
194
246
|
|
|
195
247
|
name: string;
|
|
196
248
|
|
|
197
|
-
type: '
|
|
249
|
+
type: 'document_fingerprint';
|
|
198
250
|
|
|
199
251
|
updated_at: string;
|
|
200
252
|
}
|
|
@@ -218,6 +270,59 @@ export namespace PredefinedProfile {
|
|
|
218
270
|
}
|
|
219
271
|
}
|
|
220
272
|
|
|
273
|
+
export type PredefinedDeleteResponse = unknown;
|
|
274
|
+
|
|
275
|
+
export interface PredefinedCreateParams {
|
|
276
|
+
/**
|
|
277
|
+
* Path param:
|
|
278
|
+
*/
|
|
279
|
+
account_id: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Body param:
|
|
283
|
+
*/
|
|
284
|
+
profile_id: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Body param:
|
|
288
|
+
*/
|
|
289
|
+
ai_context_enabled?: boolean;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Body param:
|
|
293
|
+
*/
|
|
294
|
+
allowed_match_count?: number | null;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Body param:
|
|
298
|
+
*/
|
|
299
|
+
confidence_threshold?: string | null;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Body param: Scan the context of predefined entries to only return matches
|
|
303
|
+
* surrounded by keywords.
|
|
304
|
+
*/
|
|
305
|
+
context_awareness?: ProfilesAPI.ContextAwarenessParam;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @deprecated Body param:
|
|
309
|
+
*/
|
|
310
|
+
entries?: Array<PredefinedCreateParams.Entry>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Body param:
|
|
314
|
+
*/
|
|
315
|
+
ocr_enabled?: boolean;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export namespace PredefinedCreateParams {
|
|
319
|
+
export interface Entry {
|
|
320
|
+
id: string;
|
|
321
|
+
|
|
322
|
+
enabled: boolean;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
221
326
|
export interface PredefinedUpdateParams {
|
|
222
327
|
/**
|
|
223
328
|
* Path param:
|
|
@@ -264,6 +369,10 @@ export namespace PredefinedUpdateParams {
|
|
|
264
369
|
}
|
|
265
370
|
}
|
|
266
371
|
|
|
372
|
+
export interface PredefinedDeleteParams {
|
|
373
|
+
account_id: string;
|
|
374
|
+
}
|
|
375
|
+
|
|
267
376
|
export interface PredefinedGetParams {
|
|
268
377
|
account_id: string;
|
|
269
378
|
}
|
|
@@ -271,7 +380,10 @@ export interface PredefinedGetParams {
|
|
|
271
380
|
export declare namespace Predefined {
|
|
272
381
|
export {
|
|
273
382
|
type PredefinedProfile as PredefinedProfile,
|
|
383
|
+
type PredefinedDeleteResponse as PredefinedDeleteResponse,
|
|
384
|
+
type PredefinedCreateParams as PredefinedCreateParams,
|
|
274
385
|
type PredefinedUpdateParams as PredefinedUpdateParams,
|
|
386
|
+
type PredefinedDeleteParams as PredefinedDeleteParams,
|
|
275
387
|
type PredefinedGetParams as PredefinedGetParams,
|
|
276
388
|
};
|
|
277
389
|
}
|
|
@@ -17,6 +17,9 @@ import {
|
|
|
17
17
|
import * as PredefinedAPI from './predefined';
|
|
18
18
|
import {
|
|
19
19
|
Predefined,
|
|
20
|
+
PredefinedCreateParams,
|
|
21
|
+
PredefinedDeleteParams,
|
|
22
|
+
PredefinedDeleteResponse,
|
|
20
23
|
PredefinedGetParams,
|
|
21
24
|
PredefinedProfile as PredefinedAPIPredefinedProfile,
|
|
22
25
|
PredefinedUpdateParams,
|
|
@@ -138,7 +141,7 @@ export namespace Profile {
|
|
|
138
141
|
| CustomProfile.PredefinedEntry
|
|
139
142
|
| CustomProfile.IntegrationEntry
|
|
140
143
|
| CustomProfile.ExactDataEntry
|
|
141
|
-
| CustomProfile.
|
|
144
|
+
| CustomProfile.DocumentFingerprintEntry
|
|
142
145
|
| CustomProfile.WordListEntry
|
|
143
146
|
>;
|
|
144
147
|
|
|
@@ -252,7 +255,7 @@ export namespace Profile {
|
|
|
252
255
|
updated_at: string;
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
export interface
|
|
258
|
+
export interface DocumentFingerprintEntry {
|
|
256
259
|
id: string;
|
|
257
260
|
|
|
258
261
|
created_at: string;
|
|
@@ -261,7 +264,7 @@ export namespace Profile {
|
|
|
261
264
|
|
|
262
265
|
name: string;
|
|
263
266
|
|
|
264
|
-
type: '
|
|
267
|
+
type: 'document_fingerprint';
|
|
265
268
|
|
|
266
269
|
updated_at: string;
|
|
267
270
|
}
|
|
@@ -298,7 +301,7 @@ export namespace Profile {
|
|
|
298
301
|
| PredefinedProfile.PredefinedEntry
|
|
299
302
|
| PredefinedProfile.IntegrationEntry
|
|
300
303
|
| PredefinedProfile.ExactDataEntry
|
|
301
|
-
| PredefinedProfile.
|
|
304
|
+
| PredefinedProfile.DocumentFingerprintEntry
|
|
302
305
|
| PredefinedProfile.WordListEntry
|
|
303
306
|
>;
|
|
304
307
|
|
|
@@ -413,7 +416,7 @@ export namespace Profile {
|
|
|
413
416
|
updated_at: string;
|
|
414
417
|
}
|
|
415
418
|
|
|
416
|
-
export interface
|
|
419
|
+
export interface DocumentFingerprintEntry {
|
|
417
420
|
id: string;
|
|
418
421
|
|
|
419
422
|
created_at: string;
|
|
@@ -422,7 +425,7 @@ export namespace Profile {
|
|
|
422
425
|
|
|
423
426
|
name: string;
|
|
424
427
|
|
|
425
|
-
type: '
|
|
428
|
+
type: 'document_fingerprint';
|
|
426
429
|
|
|
427
430
|
updated_at: string;
|
|
428
431
|
}
|
|
@@ -456,7 +459,7 @@ export namespace Profile {
|
|
|
456
459
|
| IntegrationProfile.PredefinedEntry
|
|
457
460
|
| IntegrationProfile.IntegrationEntry
|
|
458
461
|
| IntegrationProfile.ExactDataEntry
|
|
459
|
-
| IntegrationProfile.
|
|
462
|
+
| IntegrationProfile.DocumentFingerprintEntry
|
|
460
463
|
| IntegrationProfile.WordListEntry
|
|
461
464
|
>;
|
|
462
465
|
|
|
@@ -558,7 +561,7 @@ export namespace Profile {
|
|
|
558
561
|
updated_at: string;
|
|
559
562
|
}
|
|
560
563
|
|
|
561
|
-
export interface
|
|
564
|
+
export interface DocumentFingerprintEntry {
|
|
562
565
|
id: string;
|
|
563
566
|
|
|
564
567
|
created_at: string;
|
|
@@ -567,7 +570,7 @@ export namespace Profile {
|
|
|
567
570
|
|
|
568
571
|
name: string;
|
|
569
572
|
|
|
570
|
-
type: '
|
|
573
|
+
type: 'document_fingerprint';
|
|
571
574
|
|
|
572
575
|
updated_at: string;
|
|
573
576
|
}
|
|
@@ -657,7 +660,10 @@ export declare namespace Profiles {
|
|
|
657
660
|
export {
|
|
658
661
|
Predefined as Predefined,
|
|
659
662
|
type PredefinedAPIPredefinedProfile as PredefinedProfile,
|
|
663
|
+
type PredefinedDeleteResponse as PredefinedDeleteResponse,
|
|
664
|
+
type PredefinedCreateParams as PredefinedCreateParams,
|
|
660
665
|
type PredefinedUpdateParams as PredefinedUpdateParams,
|
|
666
|
+
type PredefinedDeleteParams as PredefinedDeleteParams,
|
|
661
667
|
type PredefinedGetParams as PredefinedGetParams,
|
|
662
668
|
};
|
|
663
669
|
}
|
|
@@ -215,6 +215,17 @@ export interface BlockPageSettings {
|
|
|
215
215
|
*/
|
|
216
216
|
name?: string;
|
|
217
217
|
|
|
218
|
+
/**
|
|
219
|
+
* This setting was shared via the Orgs API and cannot be edited by the current
|
|
220
|
+
* account
|
|
221
|
+
*/
|
|
222
|
+
read_only?: boolean;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Account tag of account that shared this setting
|
|
226
|
+
*/
|
|
227
|
+
source_account?: string;
|
|
228
|
+
|
|
218
229
|
/**
|
|
219
230
|
* If mode is customized_block_page: suppress detailed info at the bottom of the
|
|
220
231
|
* block page.
|
|
@@ -394,6 +405,17 @@ export interface ExtendedEmailMatching {
|
|
|
394
405
|
* criteria in Firewall policies.
|
|
395
406
|
*/
|
|
396
407
|
enabled?: boolean;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* This setting was shared via the Orgs API and cannot be edited by the current
|
|
411
|
+
* account
|
|
412
|
+
*/
|
|
413
|
+
read_only?: boolean;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Account tag of account that shared this setting
|
|
417
|
+
*/
|
|
418
|
+
source_account?: string;
|
|
397
419
|
}
|
|
398
420
|
|
|
399
421
|
/**
|
|
@@ -441,11 +463,6 @@ export interface GatewayConfigurationSettings {
|
|
|
441
463
|
*/
|
|
442
464
|
antivirus?: AntiVirusSettings | null;
|
|
443
465
|
|
|
444
|
-
/**
|
|
445
|
-
* Setting to enable App Control
|
|
446
|
-
*/
|
|
447
|
-
'app-control-settings'?: GatewayConfigurationSettings.AppControlSettings | null;
|
|
448
|
-
|
|
449
466
|
/**
|
|
450
467
|
* Block page layout settings.
|
|
451
468
|
*/
|
|
@@ -505,16 +522,6 @@ export interface GatewayConfigurationSettings {
|
|
|
505
522
|
}
|
|
506
523
|
|
|
507
524
|
export namespace GatewayConfigurationSettings {
|
|
508
|
-
/**
|
|
509
|
-
* Setting to enable App Control
|
|
510
|
-
*/
|
|
511
|
-
export interface AppControlSettings {
|
|
512
|
-
/**
|
|
513
|
-
* Enable App Control
|
|
514
|
-
*/
|
|
515
|
-
enabled?: boolean;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
525
|
/**
|
|
519
526
|
* Certificate settings for Gateway TLS interception. If not specified, the
|
|
520
527
|
* Cloudflare Root CA will be used.
|
|
@@ -568,11 +575,6 @@ export interface GatewayConfigurationSettingsParam {
|
|
|
568
575
|
*/
|
|
569
576
|
antivirus?: AntiVirusSettingsParam | null;
|
|
570
577
|
|
|
571
|
-
/**
|
|
572
|
-
* Setting to enable App Control
|
|
573
|
-
*/
|
|
574
|
-
'app-control-settings'?: GatewayConfigurationSettingsParam.AppControlSettings | null;
|
|
575
|
-
|
|
576
578
|
/**
|
|
577
579
|
* Block page layout settings.
|
|
578
580
|
*/
|
|
@@ -632,16 +634,6 @@ export interface GatewayConfigurationSettingsParam {
|
|
|
632
634
|
}
|
|
633
635
|
|
|
634
636
|
export namespace GatewayConfigurationSettingsParam {
|
|
635
|
-
/**
|
|
636
|
-
* Setting to enable App Control
|
|
637
|
-
*/
|
|
638
|
-
export interface AppControlSettings {
|
|
639
|
-
/**
|
|
640
|
-
* Enable App Control
|
|
641
|
-
*/
|
|
642
|
-
enabled?: boolean;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
637
|
/**
|
|
646
638
|
* Certificate settings for Gateway TLS interception. If not specified, the
|
|
647
639
|
* Cloudflare Root CA will be used.
|
|
@@ -168,18 +168,6 @@ export interface GatewayItem {
|
|
|
168
168
|
value?: string;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
export interface GatewayItemParam {
|
|
172
|
-
/**
|
|
173
|
-
* The description of the list item, if present
|
|
174
|
-
*/
|
|
175
|
-
description?: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The value of the item in a list.
|
|
179
|
-
*/
|
|
180
|
-
value?: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
171
|
export interface GatewayList {
|
|
184
172
|
/**
|
|
185
173
|
* API Resource UUID tag.
|
|
@@ -271,9 +259,23 @@ export interface ListCreateParams {
|
|
|
271
259
|
description?: string;
|
|
272
260
|
|
|
273
261
|
/**
|
|
274
|
-
* Body param:
|
|
262
|
+
* Body param: items to add to the list.
|
|
275
263
|
*/
|
|
276
|
-
items?: Array<
|
|
264
|
+
items?: Array<ListCreateParams.Item>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export namespace ListCreateParams {
|
|
268
|
+
export interface Item {
|
|
269
|
+
/**
|
|
270
|
+
* The description of the list item, if present
|
|
271
|
+
*/
|
|
272
|
+
description?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The value of the item in a list.
|
|
276
|
+
*/
|
|
277
|
+
value?: string;
|
|
278
|
+
}
|
|
277
279
|
}
|
|
278
280
|
|
|
279
281
|
export interface ListUpdateParams {
|
|
@@ -293,9 +295,23 @@ export interface ListUpdateParams {
|
|
|
293
295
|
description?: string;
|
|
294
296
|
|
|
295
297
|
/**
|
|
296
|
-
* Body param:
|
|
298
|
+
* Body param: items to add to the list.
|
|
297
299
|
*/
|
|
298
|
-
items?: Array<
|
|
300
|
+
items?: Array<ListUpdateParams.Item>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export namespace ListUpdateParams {
|
|
304
|
+
export interface Item {
|
|
305
|
+
/**
|
|
306
|
+
* The description of the list item, if present
|
|
307
|
+
*/
|
|
308
|
+
description?: string;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The value of the item in a list.
|
|
312
|
+
*/
|
|
313
|
+
value?: string;
|
|
314
|
+
}
|
|
299
315
|
}
|
|
300
316
|
|
|
301
317
|
export interface ListListParams {
|
|
@@ -417,7 +417,7 @@ export interface RuleSetting {
|
|
|
417
417
|
* Add custom headers to allowed requests, in the form of key-value pairs. Keys are
|
|
418
418
|
* header names, pointing to an array with its header value(s).
|
|
419
419
|
*/
|
|
420
|
-
add_headers?:
|
|
420
|
+
add_headers?: { [key: string]: string } | null;
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* Set by parent MSP accounts to enable their children to bypass this rule.
|
|
@@ -846,7 +846,7 @@ export interface RuleSettingParam {
|
|
|
846
846
|
* Add custom headers to allowed requests, in the form of key-value pairs. Keys are
|
|
847
847
|
* header names, pointing to an array with its header value(s).
|
|
848
848
|
*/
|
|
849
|
-
add_headers?:
|
|
849
|
+
add_headers?: { [key: string]: string } | null;
|
|
850
850
|
|
|
851
851
|
/**
|
|
852
852
|
* Set by parent MSP accounts to enable their children to bypass this rule.
|
|
@@ -53,7 +53,7 @@ export class Behaviours extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface BehaviourUpdateResponse {
|
|
56
|
-
behaviors:
|
|
56
|
+
behaviors: { [key: string]: BehaviourUpdateResponse.Behaviors };
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export namespace BehaviourUpdateResponse {
|
|
@@ -65,7 +65,7 @@ export namespace BehaviourUpdateResponse {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface BehaviourGetResponse {
|
|
68
|
-
behaviors:
|
|
68
|
+
behaviors: { [key: string]: BehaviourGetResponse.Behaviors };
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export namespace BehaviourGetResponse {
|
|
@@ -89,7 +89,7 @@ export interface BehaviourUpdateParams {
|
|
|
89
89
|
/**
|
|
90
90
|
* Body param:
|
|
91
91
|
*/
|
|
92
|
-
behaviors:
|
|
92
|
+
behaviors: { [key: string]: BehaviourUpdateParams.Behaviors };
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export namespace BehaviourUpdateParams {
|
|
@@ -91,5 +91,10 @@ export {
|
|
|
91
91
|
type SettingEditParams,
|
|
92
92
|
type SettingGetParams,
|
|
93
93
|
} from './settings';
|
|
94
|
-
export {
|
|
94
|
+
export {
|
|
95
|
+
Subscriptions,
|
|
96
|
+
type SubscriptionCreateParams,
|
|
97
|
+
type SubscriptionUpdateParams,
|
|
98
|
+
type SubscriptionGetParams,
|
|
99
|
+
} from './subscriptions';
|
|
95
100
|
export { Zones } from './zones';
|
|
@@ -1,5 +1,121 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as Shared from '../shared';
|
|
4
6
|
|
|
5
|
-
export class Subscriptions extends APIResource {
|
|
7
|
+
export class Subscriptions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a zone subscription, either plan or add-ons.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const subscription =
|
|
14
|
+
* await client.zones.subscriptions.create({
|
|
15
|
+
* zone_id: '506e3185e9c882d175a2d0cb0093d9f2',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(
|
|
20
|
+
params: SubscriptionCreateParams,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<Shared.Subscription> {
|
|
23
|
+
const { zone_id, ...body } = params;
|
|
24
|
+
return (
|
|
25
|
+
this._client.post(`/zones/${zone_id}/subscription`, { body, ...options }) as Core.APIPromise<{
|
|
26
|
+
result: Shared.Subscription;
|
|
27
|
+
}>
|
|
28
|
+
)._thenUnwrap((obj) => obj.result);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Updates zone subscriptions, either plan or add-ons.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const subscription =
|
|
37
|
+
* await client.zones.subscriptions.update({
|
|
38
|
+
* zone_id: '506e3185e9c882d175a2d0cb0093d9f2',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
update(
|
|
43
|
+
params: SubscriptionUpdateParams,
|
|
44
|
+
options?: Core.RequestOptions,
|
|
45
|
+
): Core.APIPromise<Shared.Subscription> {
|
|
46
|
+
const { zone_id, ...body } = params;
|
|
47
|
+
return (
|
|
48
|
+
this._client.put(`/zones/${zone_id}/subscription`, { body, ...options }) as Core.APIPromise<{
|
|
49
|
+
result: Shared.Subscription;
|
|
50
|
+
}>
|
|
51
|
+
)._thenUnwrap((obj) => obj.result);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Lists zone subscription details.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const subscription = await client.zones.subscriptions.get({
|
|
60
|
+
* zone_id: '506e3185e9c882d175a2d0cb0093d9f2',
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
get(params: SubscriptionGetParams, options?: Core.RequestOptions): Core.APIPromise<Shared.Subscription> {
|
|
65
|
+
const { zone_id } = params;
|
|
66
|
+
return (
|
|
67
|
+
this._client.get(`/zones/${zone_id}/subscription`, options) as Core.APIPromise<{
|
|
68
|
+
result: Shared.Subscription;
|
|
69
|
+
}>
|
|
70
|
+
)._thenUnwrap((obj) => obj.result);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface SubscriptionCreateParams {
|
|
75
|
+
/**
|
|
76
|
+
* Path param: Subscription identifier tag.
|
|
77
|
+
*/
|
|
78
|
+
zone_id: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Body param: How often the subscription is renewed automatically.
|
|
82
|
+
*/
|
|
83
|
+
frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly';
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Body param: The rate plan applied to the subscription.
|
|
87
|
+
*/
|
|
88
|
+
rate_plan?: Shared.RatePlanParam;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface SubscriptionUpdateParams {
|
|
92
|
+
/**
|
|
93
|
+
* Path param: Subscription identifier tag.
|
|
94
|
+
*/
|
|
95
|
+
zone_id: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Body param: How often the subscription is renewed automatically.
|
|
99
|
+
*/
|
|
100
|
+
frequency?: 'weekly' | 'monthly' | 'quarterly' | 'yearly';
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Body param: The rate plan applied to the subscription.
|
|
104
|
+
*/
|
|
105
|
+
rate_plan?: Shared.RatePlanParam;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface SubscriptionGetParams {
|
|
109
|
+
/**
|
|
110
|
+
* Subscription identifier tag.
|
|
111
|
+
*/
|
|
112
|
+
zone_id: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export declare namespace Subscriptions {
|
|
116
|
+
export {
|
|
117
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
118
|
+
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
119
|
+
type SubscriptionGetParams as SubscriptionGetParams,
|
|
120
|
+
};
|
|
121
|
+
}
|