cloudflare 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/package.json +1 -1
- package/resources/addressing/prefixes/prefixes.d.ts +16 -8
- package/resources/addressing/prefixes/prefixes.d.ts.map +1 -1
- package/resources/addressing/prefixes/prefixes.js.map +1 -1
- package/resources/addressing/prefixes/prefixes.mjs.map +1 -1
- package/resources/ai/ai.d.ts +4 -0
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +5 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +5 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/index.d.ts +1 -0
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +4 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/to-markdown.d.ts +29 -0
- package/resources/ai/to-markdown.d.ts.map +1 -0
- package/resources/ai/to-markdown.js +27 -0
- package/resources/ai/to-markdown.js.map +1 -0
- package/resources/ai/to-markdown.mjs +22 -0
- package/resources/ai/to-markdown.mjs.map +1 -0
- package/resources/ai-gateway/ai-gateway.d.ts +204 -12
- package/resources/ai-gateway/ai-gateway.d.ts.map +1 -1
- package/resources/ai-gateway/ai-gateway.js.map +1 -1
- package/resources/ai-gateway/ai-gateway.mjs.map +1 -1
- package/resources/ai-gateway/logs.d.ts +2 -2
- package/resources/ai-gateway/logs.d.ts.map +1 -1
- package/resources/ai-gateway/logs.js.map +1 -1
- package/resources/ai-gateway/logs.mjs.map +1 -1
- package/resources/alerting/destinations/pagerduty.d.ts +9 -21
- package/resources/alerting/destinations/pagerduty.d.ts.map +1 -1
- package/resources/alerting/destinations/pagerduty.js.map +1 -1
- package/resources/alerting/destinations/pagerduty.mjs.map +1 -1
- package/resources/alerting/destinations/webhooks.d.ts +9 -21
- package/resources/alerting/destinations/webhooks.d.ts.map +1 -1
- package/resources/alerting/destinations/webhooks.js.map +1 -1
- package/resources/alerting/destinations/webhooks.mjs.map +1 -1
- package/resources/alerting/policies.d.ts +10 -3
- package/resources/alerting/policies.d.ts.map +1 -1
- package/resources/alerting/policies.js.map +1 -1
- package/resources/alerting/policies.mjs.map +1 -1
- package/resources/bot-management.d.ts +49 -0
- package/resources/bot-management.d.ts.map +1 -1
- package/resources/bot-management.js +1 -0
- package/resources/bot-management.js.map +1 -1
- package/resources/bot-management.mjs +1 -0
- package/resources/bot-management.mjs.map +1 -1
- package/resources/browser-rendering/json.d.ts +3 -3
- package/resources/browser-rendering/json.d.ts.map +1 -1
- package/resources/browser-rendering/links.d.ts +4 -0
- package/resources/browser-rendering/links.d.ts.map +1 -1
- package/resources/calls/turn.d.ts.map +1 -1
- package/resources/calls/turn.js +1 -1
- package/resources/calls/turn.js.map +1 -1
- package/resources/calls/turn.mjs +1 -1
- package/resources/calls/turn.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.d.ts +0 -47
- package/resources/cloudforce-one/threat-events/crons.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.js +0 -30
- package/resources/cloudforce-one/threat-events/crons.js.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.mjs +0 -30
- package/resources/cloudforce-one/threat-events/crons.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts +0 -120
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.js +0 -16
- package/resources/cloudforce-one/threat-events/datasets/health.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.mjs +0 -16
- package/resources/cloudforce-one/threat-events/datasets/health.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/index.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/index.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/index.js.map +1 -1
- package/resources/cloudforce-one/threat-events/index.mjs +1 -1
- package/resources/cloudforce-one/threat-events/index.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/tags.d.ts +79 -4
- package/resources/cloudforce-one/threat-events/tags.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/tags.js +2 -2
- package/resources/cloudforce-one/threat-events/tags.mjs +2 -2
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +27 -4
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.js +2 -0
- package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.mjs +2 -0
- package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
- package/resources/dns/dns.d.ts +4 -4
- package/resources/dns/dns.d.ts.map +1 -1
- package/resources/dns/dns.js +1 -0
- package/resources/dns/dns.js.map +1 -1
- package/resources/dns/dns.mjs +2 -1
- package/resources/dns/dns.mjs.map +1 -1
- package/resources/dns/index.d.ts +2 -2
- package/resources/dns/index.d.ts.map +1 -1
- package/resources/dns/index.js +2 -1
- package/resources/dns/index.js.map +1 -1
- package/resources/dns/index.mjs +1 -1
- package/resources/dns/index.mjs.map +1 -1
- package/resources/dns/records.d.ts +174 -5
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js +60 -6
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs +59 -6
- package/resources/dns/records.mjs.map +1 -1
- package/resources/dns/settings/account/account.d.ts +48 -45
- package/resources/dns/settings/account/account.d.ts.map +1 -1
- package/resources/dns/settings/account/account.js.map +1 -1
- package/resources/dns/settings/account/account.mjs.map +1 -1
- package/resources/dns/settings/index.d.ts +1 -1
- package/resources/dns/settings/index.d.ts.map +1 -1
- package/resources/dns/settings/index.js.map +1 -1
- package/resources/dns/settings/index.mjs.map +1 -1
- package/resources/dns/settings/settings.d.ts +0 -87
- package/resources/dns/settings/settings.d.ts.map +1 -1
- package/resources/dns/settings/settings.js.map +1 -1
- package/resources/dns/settings/settings.mjs.map +1 -1
- package/resources/dns/settings/zone.d.ts +49 -46
- package/resources/dns/settings/zone.d.ts.map +1 -1
- package/resources/dns-firewall/dns-firewall.d.ts +156 -48
- package/resources/dns-firewall/dns-firewall.d.ts.map +1 -1
- package/resources/dns-firewall/dns-firewall.js.map +1 -1
- package/resources/dns-firewall/dns-firewall.mjs.map +1 -1
- package/resources/email-routing/dns.d.ts +2 -4
- package/resources/email-routing/dns.d.ts.map +1 -1
- package/resources/email-routing/dns.js +0 -2
- package/resources/email-routing/dns.js.map +1 -1
- package/resources/email-routing/dns.mjs +0 -2
- package/resources/email-routing/dns.mjs.map +1 -1
- package/resources/email-security/settings/domains.d.ts +6 -0
- package/resources/email-security/settings/domains.d.ts.map +1 -1
- package/resources/email-security/settings/domains.js.map +1 -1
- package/resources/email-security/settings/domains.mjs.map +1 -1
- package/resources/images/v1/stats.d.ts +3 -1
- package/resources/images/v1/stats.d.ts.map +1 -1
- package/resources/images/v1/stats.js +3 -1
- package/resources/images/v1/stats.js.map +1 -1
- package/resources/images/v1/stats.mjs +3 -1
- package/resources/images/v1/stats.mjs.map +1 -1
- package/resources/intel/indicator-feeds/downloads.d.ts +0 -36
- package/resources/intel/indicator-feeds/downloads.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/downloads.js +0 -15
- package/resources/intel/indicator-feeds/downloads.js.map +1 -1
- package/resources/intel/indicator-feeds/downloads.mjs +0 -15
- package/resources/intel/indicator-feeds/downloads.mjs.map +1 -1
- package/resources/intel/indicator-feeds/index.d.ts +1 -1
- package/resources/intel/indicator-feeds/index.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/index.js.map +1 -1
- package/resources/intel/indicator-feeds/index.mjs.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts +2 -2
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.js.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.mjs.map +1 -1
- package/resources/load-balancers/index.d.ts +1 -0
- package/resources/load-balancers/index.d.ts.map +1 -1
- package/resources/load-balancers/index.js +4 -1
- package/resources/load-balancers/index.js.map +1 -1
- package/resources/load-balancers/index.mjs +1 -0
- package/resources/load-balancers/index.mjs.map +1 -1
- package/resources/load-balancers/load-balancers.d.ts +4 -0
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/load-balancers.js +5 -0
- package/resources/load-balancers/load-balancers.js.map +1 -1
- package/resources/load-balancers/load-balancers.mjs +5 -0
- package/resources/load-balancers/load-balancers.mjs.map +1 -1
- package/resources/load-balancers/monitor-groups.d.ts +313 -0
- package/resources/load-balancers/monitor-groups.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups.js +153 -0
- package/resources/load-balancers/monitor-groups.js.map +1 -0
- package/resources/load-balancers/monitor-groups.mjs +148 -0
- package/resources/load-balancers/monitor-groups.mjs.map +1 -0
- package/resources/load-balancers/pools/pools.d.ts +20 -0
- package/resources/load-balancers/pools/pools.d.ts.map +1 -1
- package/resources/load-balancers/pools/pools.js.map +1 -1
- package/resources/load-balancers/pools/pools.mjs.map +1 -1
- package/resources/logs/rayid.d.ts +1 -1
- package/resources/logs/received/fields.d.ts +1 -1
- package/resources/logs/received/received.d.ts +1 -1
- package/resources/magic-transit/cf-interconnects.d.ts +25 -0
- package/resources/magic-transit/cf-interconnects.d.ts.map +1 -1
- package/resources/magic-transit/gre-tunnels.d.ts +40 -0
- package/resources/magic-transit/gre-tunnels.d.ts.map +1 -1
- package/resources/magic-transit/ipsec-tunnels.d.ts +124 -0
- package/resources/magic-transit/ipsec-tunnels.d.ts.map +1 -1
- package/resources/magic-transit/pcaps/download.d.ts +1 -1
- package/resources/magic-transit/pcaps/ownership.d.ts +4 -4
- package/resources/magic-transit/pcaps/pcaps.d.ts +6 -6
- package/resources/magic-transit/pcaps/pcaps.js +1 -1
- package/resources/magic-transit/pcaps/pcaps.mjs +1 -1
- package/resources/page-rules.d.ts +20 -4
- package/resources/page-rules.d.ts.map +1 -1
- package/resources/page-rules.js +20 -4
- package/resources/page-rules.js.map +1 -1
- package/resources/page-rules.mjs +20 -4
- package/resources/page-rules.mjs.map +1 -1
- package/resources/page-shield/connections.d.ts +1 -1
- package/resources/page-shield/cookies.d.ts +1 -1
- package/resources/page-shield/scripts.d.ts +1 -1
- package/resources/radar/ai/inference/summary.d.ts +2 -10
- package/resources/radar/ai/inference/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/summary.js.map +1 -1
- package/resources/radar/ai/inference/summary.mjs.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts +2 -10
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.js.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.mjs.map +1 -1
- package/resources/radar/entities/asns.d.ts +56 -1
- package/resources/radar/entities/asns.d.ts.map +1 -1
- package/resources/radar/entities/asns.js +6 -0
- package/resources/radar/entities/asns.js.map +1 -1
- package/resources/radar/entities/asns.mjs +6 -0
- package/resources/radar/entities/asns.mjs.map +1 -1
- package/resources/radar/entities/entities.d.ts +2 -2
- package/resources/radar/entities/entities.d.ts.map +1 -1
- package/resources/radar/entities/entities.js.map +1 -1
- package/resources/radar/entities/entities.mjs.map +1 -1
- package/resources/radar/entities/index.d.ts +1 -1
- package/resources/radar/entities/index.d.ts.map +1 -1
- package/resources/radar/entities/index.js.map +1 -1
- package/resources/radar/entities/index.mjs.map +1 -1
- package/resources/radar/http/ases/ases.d.ts +7 -0
- package/resources/radar/http/ases/ases.d.ts.map +1 -1
- package/resources/radar/http/ases/ases.js.map +1 -1
- package/resources/radar/http/ases/ases.mjs.map +1 -1
- package/resources/radar/http/ases/bot-class.d.ts +7 -0
- package/resources/radar/http/ases/bot-class.d.ts.map +1 -1
- package/resources/radar/http/ases/browser-family.d.ts +7 -0
- package/resources/radar/http/ases/browser-family.d.ts.map +1 -1
- package/resources/radar/http/ases/device-type.d.ts +7 -0
- package/resources/radar/http/ases/device-type.d.ts.map +1 -1
- package/resources/radar/http/ases/http-method.d.ts +7 -0
- package/resources/radar/http/ases/http-method.d.ts.map +1 -1
- package/resources/radar/http/ases/http-protocol.d.ts +7 -0
- package/resources/radar/http/ases/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/ases/ip-version.d.ts +7 -0
- package/resources/radar/http/ases/ip-version.d.ts.map +1 -1
- package/resources/radar/http/ases/os.d.ts +7 -0
- package/resources/radar/http/ases/os.d.ts.map +1 -1
- package/resources/radar/http/ases/tls-version.d.ts +7 -0
- package/resources/radar/http/ases/tls-version.d.ts.map +1 -1
- package/resources/radar/http/http.d.ts +7 -0
- package/resources/radar/http/http.d.ts.map +1 -1
- package/resources/radar/http/http.js.map +1 -1
- package/resources/radar/http/http.mjs.map +1 -1
- package/resources/radar/http/locations/bot-class.d.ts +7 -0
- package/resources/radar/http/locations/bot-class.d.ts.map +1 -1
- package/resources/radar/http/locations/browser-family.d.ts +7 -0
- package/resources/radar/http/locations/browser-family.d.ts.map +1 -1
- package/resources/radar/http/locations/device-type.d.ts +7 -0
- package/resources/radar/http/locations/device-type.d.ts.map +1 -1
- package/resources/radar/http/locations/http-method.d.ts +7 -0
- package/resources/radar/http/locations/http-method.d.ts.map +1 -1
- package/resources/radar/http/locations/http-protocol.d.ts +7 -0
- package/resources/radar/http/locations/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/locations/ip-version.d.ts +7 -0
- package/resources/radar/http/locations/ip-version.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.d.ts +7 -0
- package/resources/radar/http/locations/locations.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.js.map +1 -1
- package/resources/radar/http/locations/locations.mjs.map +1 -1
- package/resources/radar/http/locations/os.d.ts +7 -0
- package/resources/radar/http/locations/os.d.ts.map +1 -1
- package/resources/radar/http/locations/tls-version.d.ts +7 -0
- package/resources/radar/http/locations/tls-version.d.ts.map +1 -1
- package/resources/radar/http/summary.d.ts +64 -38
- package/resources/radar/http/summary.d.ts.map +1 -1
- package/resources/radar/http/summary.js.map +1 -1
- package/resources/radar/http/summary.mjs.map +1 -1
- package/resources/radar/http/timeseries-groups.d.ts +80 -50
- package/resources/radar/http/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/http/timeseries-groups.js.map +1 -1
- package/resources/radar/http/timeseries-groups.mjs.map +1 -1
- package/resources/radar/http/top.d.ts +14 -0
- package/resources/radar/http/top.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/summary.d.ts +2 -10
- package/resources/radar/leaked-credentials/summary.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/summary.js.map +1 -1
- package/resources/radar/leaked-credentials/summary.mjs.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts +2 -10
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.js.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.mjs.map +1 -1
- package/resources/radar/netflows/netflows.d.ts +15 -4
- package/resources/radar/netflows/netflows.d.ts.map +1 -1
- package/resources/radar/netflows/netflows.js.map +1 -1
- package/resources/radar/netflows/netflows.mjs.map +1 -1
- package/resources/radar/netflows/top.d.ts +14 -0
- package/resources/radar/netflows/top.d.ts.map +1 -1
- package/resources/radar/search.d.ts +2 -2
- package/resources/radar/search.d.ts.map +1 -1
- package/resources/request-tracers/traces.d.ts +1 -1
- package/resources/resource-sharing/recipients.d.ts +77 -1
- package/resources/resource-sharing/recipients.d.ts.map +1 -1
- package/resources/resource-sharing/recipients.js +5 -2
- package/resources/resource-sharing/recipients.js.map +1 -1
- package/resources/resource-sharing/recipients.mjs +5 -2
- package/resources/resource-sharing/recipients.mjs.map +1 -1
- package/resources/resource-sharing/resource-sharing.d.ts +347 -2
- package/resources/resource-sharing/resource-sharing.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.js +5 -2
- package/resources/resource-sharing/resource-sharing.js.map +1 -1
- package/resources/resource-sharing/resource-sharing.mjs +5 -2
- package/resources/resource-sharing/resource-sharing.mjs.map +1 -1
- package/resources/resource-sharing/resources.d.ts +7 -7
- package/resources/resource-sharing/resources.d.ts.map +1 -1
- package/resources/resource-sharing/resources.js.map +1 -1
- package/resources/resource-sharing/resources.mjs.map +1 -1
- package/resources/rules/lists/items.d.ts +9 -0
- package/resources/rules/lists/items.d.ts.map +1 -1
- package/resources/rules/lists/items.js +9 -0
- package/resources/rules/lists/items.js.map +1 -1
- package/resources/rules/lists/items.mjs +9 -0
- package/resources/rules/lists/items.mjs.map +1 -1
- package/resources/snippets/snippets.d.ts +1 -4
- package/resources/snippets/snippets.d.ts.map +1 -1
- package/resources/snippets/snippets.js.map +1 -1
- package/resources/snippets/snippets.mjs.map +1 -1
- package/resources/stream/downloads.d.ts +4 -2
- package/resources/stream/downloads.d.ts.map +1 -1
- package/resources/stream/downloads.js +4 -2
- package/resources/stream/downloads.js.map +1 -1
- package/resources/stream/downloads.mjs +4 -2
- package/resources/stream/downloads.mjs.map +1 -1
- package/resources/workers/beta/beta.d.ts +2 -2
- package/resources/workers/beta/beta.d.ts.map +1 -1
- package/resources/workers/beta/beta.js.map +1 -1
- package/resources/workers/beta/beta.mjs.map +1 -1
- package/resources/workers/beta/index.d.ts +1 -1
- package/resources/workers/beta/index.d.ts.map +1 -1
- package/resources/workers/beta/index.js.map +1 -1
- package/resources/workers/beta/index.mjs.map +1 -1
- package/resources/workers/beta/workers/index.d.ts +1 -1
- package/resources/workers/beta/workers/index.d.ts.map +1 -1
- package/resources/workers/beta/workers/index.js.map +1 -1
- package/resources/workers/beta/workers/index.mjs.map +1 -1
- package/resources/workers/beta/workers/versions.d.ts +276 -17
- package/resources/workers/beta/workers/versions.d.ts.map +1 -1
- package/resources/workers/beta/workers/versions.js +8 -7
- package/resources/workers/beta/workers/versions.js.map +1 -1
- package/resources/workers/beta/workers/versions.mjs +8 -7
- package/resources/workers/beta/workers/versions.mjs.map +1 -1
- package/resources/workers/beta/workers/workers.d.ts +133 -18
- package/resources/workers/beta/workers/workers.d.ts.map +1 -1
- package/resources/workers/beta/workers/workers.js +35 -4
- package/resources/workers/beta/workers/workers.js.map +1 -1
- package/resources/workers/beta/workers/workers.mjs +35 -4
- package/resources/workers/beta/workers/workers.mjs.map +1 -1
- package/resources/workers/index.d.ts +1 -1
- package/resources/workers/index.d.ts.map +1 -1
- package/resources/workers/index.js.map +1 -1
- package/resources/workers/index.mjs.map +1 -1
- package/resources/workers/scripts/index.d.ts +1 -1
- package/resources/workers/scripts/index.d.ts.map +1 -1
- package/resources/workers/scripts/index.js.map +1 -1
- package/resources/workers/scripts/index.mjs.map +1 -1
- package/resources/workers/scripts/script-and-version-settings.d.ts +354 -15
- package/resources/workers/scripts/script-and-version-settings.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +206 -10
- package/resources/workers/scripts/scripts.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.js +17 -0
- package/resources/workers/scripts/scripts.js.map +1 -1
- package/resources/workers/scripts/scripts.mjs +17 -0
- package/resources/workers/scripts/scripts.mjs.map +1 -1
- package/resources/workers/scripts/secrets.d.ts +10 -2
- package/resources/workers/scripts/secrets.d.ts.map +1 -1
- package/resources/workers/scripts/secrets.js +10 -4
- package/resources/workers/scripts/secrets.js.map +1 -1
- package/resources/workers/scripts/secrets.mjs +10 -4
- package/resources/workers/scripts/secrets.mjs.map +1 -1
- package/resources/workers/scripts/settings.d.ts +12 -0
- package/resources/workers/scripts/settings.d.ts.map +1 -1
- package/resources/workers/scripts/versions.d.ts +327 -12
- package/resources/workers/scripts/versions.d.ts.map +1 -1
- package/resources/workers/scripts/versions.js.map +1 -1
- package/resources/workers/scripts/versions.mjs.map +1 -1
- package/resources/workers/workers.d.ts +2 -2
- package/resources/workers/workers.d.ts.map +1 -1
- package/resources/workers/workers.js.map +1 -1
- package/resources/workers/workers.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts +109 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +121 -9
- 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/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts +10 -2
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js +4 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs +4 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts +354 -15
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.d.ts +2 -8
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.js +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.mjs +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.mjs.map +1 -1
- package/resources/workflows/instances/instances.d.ts +5 -0
- package/resources/workflows/instances/instances.d.ts.map +1 -1
- package/resources/workflows/instances/instances.js.map +1 -1
- package/resources/workflows/instances/instances.mjs.map +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +0 -84
- 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/bookmarks.d.ts +0 -2
- package/resources/zero-trust/access/bookmarks.d.ts.map +1 -1
- package/resources/zero-trust/access/bookmarks.js.map +1 -1
- package/resources/zero-trust/access/bookmarks.mjs.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.d.ts +0 -2
- package/resources/zero-trust/access/certificates/certificates.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.js.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.mjs.map +1 -1
- package/resources/zero-trust/access/custom-pages.d.ts +0 -20
- package/resources/zero-trust/access/custom-pages.d.ts.map +1 -1
- package/resources/zero-trust/access/custom-pages.js.map +1 -1
- package/resources/zero-trust/access/custom-pages.mjs.map +1 -1
- package/resources/zero-trust/access/groups.d.ts +0 -8
- package/resources/zero-trust/access/groups.d.ts.map +1 -1
- package/resources/zero-trust/access/groups.js.map +1 -1
- package/resources/zero-trust/access/groups.mjs.map +1 -1
- package/resources/zero-trust/access/service-tokens.d.ts +37 -8
- package/resources/zero-trust/access/service-tokens.d.ts.map +1 -1
- package/resources/zero-trust/access/service-tokens.js +5 -2
- package/resources/zero-trust/access/service-tokens.js.map +1 -1
- package/resources/zero-trust/access/service-tokens.mjs +5 -2
- package/resources/zero-trust/access/service-tokens.mjs.map +1 -1
- package/resources/zero-trust/access/tags.d.ts +0 -6
- package/resources/zero-trust/access/tags.d.ts.map +1 -1
- package/resources/zero-trust/access/tags.js.map +1 -1
- package/resources/zero-trust/access/tags.mjs.map +1 -1
- package/resources/zero-trust/devices/devices_.d.ts +94 -1
- package/resources/zero-trust/devices/devices_.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices_.js +5 -2
- package/resources/zero-trust/devices/devices_.js.map +1 -1
- package/resources/zero-trust/devices/devices_.mjs +5 -2
- package/resources/zero-trust/devices/devices_.mjs.map +1 -1
- package/resources/zero-trust/devices/registrations.d.ts +70 -1
- package/resources/zero-trust/devices/registrations.d.ts.map +1 -1
- package/resources/zero-trust/devices/registrations.js +5 -2
- package/resources/zero-trust/devices/registrations.js.map +1 -1
- package/resources/zero-trust/devices/registrations.mjs +5 -2
- package/resources/zero-trust/devices/registrations.mjs.map +1 -1
- package/resources/zero-trust/gateway/app-types.d.ts +10 -10
- package/resources/zero-trust/gateway/app-types.js +1 -1
- package/resources/zero-trust/gateway/app-types.mjs +1 -1
- package/resources/zero-trust/gateway/audit-ssh-settings.d.ts +11 -11
- package/resources/zero-trust/gateway/audit-ssh-settings.js +5 -5
- package/resources/zero-trust/gateway/audit-ssh-settings.mjs +5 -5
- package/resources/zero-trust/gateway/categories.d.ts +17 -19
- package/resources/zero-trust/gateway/categories.d.ts.map +1 -1
- package/resources/zero-trust/gateway/categories.js +1 -1
- package/resources/zero-trust/gateway/categories.js.map +1 -1
- package/resources/zero-trust/gateway/categories.mjs +1 -1
- package/resources/zero-trust/gateway/categories.mjs.map +1 -1
- package/resources/zero-trust/gateway/certificates.d.ts +84 -83
- package/resources/zero-trust/gateway/certificates.d.ts.map +1 -1
- package/resources/zero-trust/gateway/certificates.js +7 -7
- package/resources/zero-trust/gateway/certificates.js.map +1 -1
- package/resources/zero-trust/gateway/certificates.mjs +7 -7
- package/resources/zero-trust/gateway/certificates.mjs.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.d.ts +212 -192
- package/resources/zero-trust/gateway/configurations/configurations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.js +7 -7
- package/resources/zero-trust/gateway/configurations/configurations.js.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.mjs +7 -7
- package/resources/zero-trust/gateway/configurations/configurations.mjs.map +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.d.ts +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.js +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.mjs +1 -1
- package/resources/zero-trust/gateway/gateway.d.ts +8 -8
- package/resources/zero-trust/gateway/gateway.js +2 -2
- package/resources/zero-trust/gateway/gateway.mjs +2 -2
- package/resources/zero-trust/gateway/lists/items.d.ts +2 -2
- package/resources/zero-trust/gateway/lists/items.js +1 -1
- package/resources/zero-trust/gateway/lists/items.mjs +1 -1
- package/resources/zero-trust/gateway/lists/lists.d.ts +32 -32
- package/resources/zero-trust/gateway/lists/lists.js +3 -3
- package/resources/zero-trust/gateway/lists/lists.mjs +3 -3
- package/resources/zero-trust/gateway/locations.d.ts +84 -98
- package/resources/zero-trust/gateway/locations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/locations.js +5 -5
- package/resources/zero-trust/gateway/locations.js.map +1 -1
- package/resources/zero-trust/gateway/locations.mjs +5 -5
- package/resources/zero-trust/gateway/locations.mjs.map +1 -1
- package/resources/zero-trust/gateway/logging.d.ts +60 -23
- package/resources/zero-trust/gateway/logging.d.ts.map +1 -1
- package/resources/zero-trust/gateway/logging.js +2 -2
- package/resources/zero-trust/gateway/logging.mjs +2 -2
- package/resources/zero-trust/gateway/proxy-endpoints.d.ts +16 -16
- package/resources/zero-trust/gateway/proxy-endpoints.js +5 -5
- package/resources/zero-trust/gateway/proxy-endpoints.mjs +5 -5
- package/resources/zero-trust/gateway/rules.d.ts +514 -439
- package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
- package/resources/zero-trust/gateway/rules.js +8 -10
- package/resources/zero-trust/gateway/rules.js.map +1 -1
- package/resources/zero-trust/gateway/rules.mjs +8 -10
- package/resources/zero-trust/gateway/rules.mjs.map +1 -1
- package/resources/zero-trust/networks/hostname-routes.d.ts +188 -0
- package/resources/zero-trust/networks/hostname-routes.d.ts.map +1 -0
- package/resources/zero-trust/networks/hostname-routes.js +100 -0
- package/resources/zero-trust/networks/hostname-routes.js.map +1 -0
- package/resources/zero-trust/networks/hostname-routes.mjs +95 -0
- package/resources/zero-trust/networks/hostname-routes.mjs.map +1 -0
- package/resources/zero-trust/networks/index.d.ts +1 -0
- package/resources/zero-trust/networks/index.d.ts.map +1 -1
- package/resources/zero-trust/networks/index.js +4 -1
- package/resources/zero-trust/networks/index.js.map +1 -1
- package/resources/zero-trust/networks/index.mjs +1 -0
- package/resources/zero-trust/networks/index.mjs.map +1 -1
- package/resources/zero-trust/networks/networks.d.ts +4 -0
- package/resources/zero-trust/networks/networks.d.ts.map +1 -1
- package/resources/zero-trust/networks/networks.js +5 -0
- package/resources/zero-trust/networks/networks.js.map +1 -1
- package/resources/zero-trust/networks/networks.mjs +5 -0
- package/resources/zero-trust/networks/networks.mjs.map +1 -1
- package/resources/zero-trust/organizations/doh.d.ts +0 -6
- package/resources/zero-trust/organizations/doh.d.ts.map +1 -1
- package/resources/zero-trust/organizations/organizations.d.ts +0 -2
- package/resources/zero-trust/organizations/organizations.d.ts.map +1 -1
- package/resources/zero-trust/organizations/organizations.js.map +1 -1
- package/resources/zero-trust/organizations/organizations.mjs.map +1 -1
- package/resources/zero-trust/tunnels/cloudflared/configurations.d.ts +0 -24
- package/resources/zero-trust/tunnels/cloudflared/configurations.d.ts.map +1 -1
- package/src/resources/addressing/prefixes/prefixes.ts +16 -8
- package/src/resources/ai/ai.ts +17 -0
- package/src/resources/ai/index.ts +6 -0
- package/src/resources/ai/to-markdown.ts +61 -0
- package/src/resources/ai-gateway/ai-gateway.ts +282 -12
- package/src/resources/ai-gateway/logs.ts +4 -2
- package/src/resources/alerting/destinations/pagerduty.ts +12 -25
- package/src/resources/alerting/destinations/webhooks.ts +12 -25
- package/src/resources/alerting/policies.ts +14 -3
- package/src/resources/bot-management.ts +61 -0
- package/src/resources/browser-rendering/json.ts +1 -1
- package/src/resources/browser-rendering/links.ts +5 -0
- package/src/resources/calls/turn.ts +5 -1
- package/src/resources/cloudforce-one/threat-events/crons.ts +1 -67
- package/src/resources/cloudforce-one/threat-events/datasets/datasets.ts +2 -6
- package/src/resources/cloudforce-one/threat-events/datasets/health.ts +1 -175
- package/src/resources/cloudforce-one/threat-events/datasets/index.ts +1 -1
- package/src/resources/cloudforce-one/threat-events/index.ts +1 -7
- package/src/resources/cloudforce-one/threat-events/tags.ts +110 -5
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +45 -10
- package/src/resources/dns/dns.ts +15 -2
- package/src/resources/dns/index.ts +7 -1
- package/src/resources/dns/records.ts +267 -8
- package/src/resources/dns/settings/account/account.ts +48 -45
- package/src/resources/dns/settings/index.ts +1 -1
- package/src/resources/dns/settings/settings.ts +0 -104
- package/src/resources/dns/settings/zone.ts +49 -46
- package/src/resources/dns-firewall/dns-firewall.ts +156 -48
- package/src/resources/email-routing/dns.ts +2 -4
- package/src/resources/email-security/settings/domains.ts +12 -0
- package/src/resources/images/v1/stats.ts +3 -1
- package/src/resources/intel/indicator-feeds/downloads.ts +1 -55
- package/src/resources/intel/indicator-feeds/index.ts +1 -1
- package/src/resources/intel/indicator-feeds/indicator-feeds.ts +2 -6
- package/src/resources/load-balancers/index.ts +11 -0
- package/src/resources/load-balancers/load-balancers.ts +27 -0
- package/src/resources/load-balancers/monitor-groups.ts +436 -0
- package/src/resources/load-balancers/pools/pools.ts +24 -0
- package/src/resources/logs/rayid.ts +1 -1
- package/src/resources/logs/received/fields.ts +1 -1
- package/src/resources/logs/received/received.ts +1 -1
- package/src/resources/magic-transit/cf-interconnects.ts +30 -0
- package/src/resources/magic-transit/gre-tunnels.ts +48 -0
- package/src/resources/magic-transit/ipsec-tunnels.ts +144 -0
- package/src/resources/magic-transit/pcaps/download.ts +1 -1
- package/src/resources/magic-transit/pcaps/ownership.ts +4 -4
- package/src/resources/magic-transit/pcaps/pcaps.ts +6 -6
- package/src/resources/page-rules.ts +20 -4
- package/src/resources/page-shield/connections.ts +1 -1
- package/src/resources/page-shield/cookies.ts +1 -1
- package/src/resources/page-shield/scripts.ts +1 -1
- package/src/resources/radar/ai/inference/summary.ts +2 -10
- package/src/resources/radar/ai/inference/timeseries-groups/summary.ts +2 -10
- package/src/resources/radar/entities/asns.ts +86 -0
- package/src/resources/radar/entities/entities.ts +4 -0
- package/src/resources/radar/entities/index.ts +2 -0
- package/src/resources/radar/http/ases/ases.ts +8 -0
- package/src/resources/radar/http/ases/bot-class.ts +8 -0
- package/src/resources/radar/http/ases/browser-family.ts +8 -0
- package/src/resources/radar/http/ases/device-type.ts +8 -0
- package/src/resources/radar/http/ases/http-method.ts +8 -0
- package/src/resources/radar/http/ases/http-protocol.ts +8 -0
- package/src/resources/radar/http/ases/ip-version.ts +8 -0
- package/src/resources/radar/http/ases/os.ts +8 -0
- package/src/resources/radar/http/ases/tls-version.ts +8 -0
- package/src/resources/radar/http/http.ts +8 -0
- package/src/resources/radar/http/locations/bot-class.ts +8 -0
- package/src/resources/radar/http/locations/browser-family.ts +8 -0
- package/src/resources/radar/http/locations/device-type.ts +8 -0
- package/src/resources/radar/http/locations/http-method.ts +8 -0
- package/src/resources/radar/http/locations/http-protocol.ts +8 -0
- package/src/resources/radar/http/locations/ip-version.ts +8 -0
- package/src/resources/radar/http/locations/locations.ts +8 -0
- package/src/resources/radar/http/locations/os.ts +8 -0
- package/src/resources/radar/http/locations/tls-version.ts +8 -0
- package/src/resources/radar/http/summary.ts +72 -38
- package/src/resources/radar/http/timeseries-groups.ts +90 -50
- package/src/resources/radar/http/top.ts +16 -0
- package/src/resources/radar/leaked-credentials/summary.ts +2 -10
- package/src/resources/radar/leaked-credentials/timeseries-groups.ts +2 -10
- package/src/resources/radar/netflows/netflows.ts +17 -4
- package/src/resources/radar/netflows/top.ts +16 -0
- package/src/resources/radar/search.ts +2 -0
- package/src/resources/request-tracers/traces.ts +1 -1
- package/src/resources/resource-sharing/recipients.ts +100 -6
- package/src/resources/resource-sharing/resource-sharing.ts +470 -6
- package/src/resources/resource-sharing/resources.ts +49 -7
- package/src/resources/rules/lists/items.ts +9 -0
- package/src/resources/snippets/snippets.ts +2 -5
- package/src/resources/stream/downloads.ts +4 -2
- package/src/resources/workers/beta/beta.ts +2 -0
- package/src/resources/workers/beta/index.ts +1 -0
- package/src/resources/workers/beta/workers/index.ts +1 -0
- package/src/resources/workers/beta/workers/versions.ts +331 -16
- package/src/resources/workers/beta/workers/workers.ts +160 -18
- package/src/resources/workers/index.ts +2 -0
- package/src/resources/workers/scripts/index.ts +2 -0
- package/src/resources/workers/scripts/script-and-version-settings.ts +438 -12
- package/src/resources/workers/scripts/scripts.ts +261 -8
- package/src/resources/workers/scripts/secrets.ts +22 -12
- package/src/resources/workers/scripts/settings.ts +15 -0
- package/src/resources/workers/scripts/versions.ts +405 -9
- package/src/resources/workers/workers.ts +4 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts +136 -4
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +149 -8
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts +16 -6
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +438 -12
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts +2 -8
- package/src/resources/workflows/instances/instances.ts +6 -0
- package/src/resources/zero-trust/access/applications/applications.ts +0 -168
- package/src/resources/zero-trust/access/bookmarks.ts +0 -4
- package/src/resources/zero-trust/access/certificates/certificates.ts +0 -4
- package/src/resources/zero-trust/access/custom-pages.ts +0 -28
- package/src/resources/zero-trust/access/groups.ts +0 -16
- package/src/resources/zero-trust/access/service-tokens.ts +47 -20
- package/src/resources/zero-trust/access/tags.ts +0 -9
- package/src/resources/zero-trust/devices/devices_.ts +114 -6
- package/src/resources/zero-trust/devices/registrations.ts +88 -6
- package/src/resources/zero-trust/gateway/app-types.ts +10 -10
- package/src/resources/zero-trust/gateway/audit-ssh-settings.ts +11 -11
- package/src/resources/zero-trust/gateway/categories.ts +17 -19
- package/src/resources/zero-trust/gateway/certificates.ts +84 -83
- package/src/resources/zero-trust/gateway/configurations/configurations.ts +212 -192
- package/src/resources/zero-trust/gateway/configurations/custom-certificate.ts +1 -1
- package/src/resources/zero-trust/gateway/gateway.ts +8 -8
- package/src/resources/zero-trust/gateway/lists/items.ts +2 -2
- package/src/resources/zero-trust/gateway/lists/lists.ts +32 -32
- package/src/resources/zero-trust/gateway/locations.ts +84 -98
- package/src/resources/zero-trust/gateway/logging.ts +60 -23
- package/src/resources/zero-trust/gateway/proxy-endpoints.ts +16 -16
- package/src/resources/zero-trust/gateway/rules.ts +515 -440
- package/src/resources/zero-trust/networks/hostname-routes.ts +283 -0
- package/src/resources/zero-trust/networks/index.ts +10 -0
- package/src/resources/zero-trust/networks/networks.ts +25 -0
- package/src/resources/zero-trust/organizations/doh.ts +0 -12
- package/src/resources/zero-trust/organizations/organizations.ts +0 -4
- package/src/resources/zero-trust/tunnels/cloudflared/configurations.ts +0 -28
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -196,6 +196,26 @@ export class Scripts extends APIResource {
|
|
|
196
196
|
headers: { Accept: 'application/javascript', ...options?.headers },
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Search for Workers in an account.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```ts
|
|
205
|
+
* const response = await client.workers.scripts.search({
|
|
206
|
+
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
|
|
207
|
+
* });
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
search(params: ScriptSearchParams, options?: Core.RequestOptions): Core.APIPromise<ScriptSearchResponse> {
|
|
211
|
+
const { account_id, ...query } = params;
|
|
212
|
+
return (
|
|
213
|
+
this._client.get(`/accounts/${account_id}/workers/scripts-search`, {
|
|
214
|
+
query,
|
|
215
|
+
...options,
|
|
216
|
+
}) as Core.APIPromise<{ result: ScriptSearchResponse }>
|
|
217
|
+
)._thenUnwrap((obj) => obj.result);
|
|
218
|
+
}
|
|
199
219
|
}
|
|
200
220
|
|
|
201
221
|
export class ScriptsSinglePage extends SinglePage<Script> {}
|
|
@@ -349,6 +369,11 @@ export interface ScriptSetting {
|
|
|
349
369
|
*/
|
|
350
370
|
observability?: ScriptSetting.Observability | null;
|
|
351
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Tags associated with the Worker.
|
|
374
|
+
*/
|
|
375
|
+
tags?: Array<string>;
|
|
376
|
+
|
|
352
377
|
/**
|
|
353
378
|
* List of Workers that will consume logs from the attached Worker.
|
|
354
379
|
*/
|
|
@@ -394,10 +419,20 @@ export namespace ScriptSetting {
|
|
|
394
419
|
*/
|
|
395
420
|
invocation_logs: boolean;
|
|
396
421
|
|
|
422
|
+
/**
|
|
423
|
+
* A list of destinations where logs will be exported to.
|
|
424
|
+
*/
|
|
425
|
+
destinations?: Array<string>;
|
|
426
|
+
|
|
397
427
|
/**
|
|
398
428
|
* The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
|
|
399
429
|
*/
|
|
400
430
|
head_sampling_rate?: number | null;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Whether log persistence is enabled for the Worker.
|
|
434
|
+
*/
|
|
435
|
+
persist?: boolean;
|
|
401
436
|
}
|
|
402
437
|
}
|
|
403
438
|
}
|
|
@@ -544,6 +579,47 @@ export type ScriptDeleteResponse = unknown;
|
|
|
544
579
|
|
|
545
580
|
export type ScriptGetResponse = string;
|
|
546
581
|
|
|
582
|
+
export type ScriptSearchResponse = Array<ScriptSearchResponse.ScriptSearchResponseItem>;
|
|
583
|
+
|
|
584
|
+
export namespace ScriptSearchResponse {
|
|
585
|
+
export interface ScriptSearchResponseItem {
|
|
586
|
+
/**
|
|
587
|
+
* When the script was created.
|
|
588
|
+
*/
|
|
589
|
+
created_on: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* When the script was last modified.
|
|
593
|
+
*/
|
|
594
|
+
modified_on: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Name of the script, used in URLs and route configuration.
|
|
598
|
+
*/
|
|
599
|
+
script_name: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Identifier.
|
|
603
|
+
*/
|
|
604
|
+
script_tag: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Whether the environment is the default environment.
|
|
608
|
+
*/
|
|
609
|
+
environment_is_default?: boolean;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Name of the environment.
|
|
613
|
+
*/
|
|
614
|
+
environment_name?: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Name of the service.
|
|
618
|
+
*/
|
|
619
|
+
service_name?: string;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
547
623
|
export interface ScriptUpdateParams {
|
|
548
624
|
/**
|
|
549
625
|
* Path param: Identifier.
|
|
@@ -589,9 +665,12 @@ export namespace ScriptUpdateParams {
|
|
|
589
665
|
| Metadata.WorkersBindingKindAssets
|
|
590
666
|
| Metadata.WorkersBindingKindBrowser
|
|
591
667
|
| Metadata.WorkersBindingKindD1
|
|
668
|
+
| Metadata.WorkersBindingKindDataBlob
|
|
592
669
|
| Metadata.WorkersBindingKindDispatchNamespace
|
|
593
670
|
| Metadata.WorkersBindingKindDurableObjectNamespace
|
|
594
671
|
| Metadata.WorkersBindingKindHyperdrive
|
|
672
|
+
| Metadata.WorkersBindingKindInherit
|
|
673
|
+
| Metadata.WorkersBindingKindImages
|
|
595
674
|
| Metadata.WorkersBindingKindJson
|
|
596
675
|
| Metadata.WorkersBindingKindKVNamespace
|
|
597
676
|
| Metadata.WorkersBindingKindMTLSCertificate
|
|
@@ -600,19 +679,21 @@ export namespace ScriptUpdateParams {
|
|
|
600
679
|
| Metadata.WorkersBindingKindQueue
|
|
601
680
|
| Metadata.WorkersBindingKindR2Bucket
|
|
602
681
|
| Metadata.WorkersBindingKindSecretText
|
|
682
|
+
| Metadata.WorkersBindingKindSendEmail
|
|
603
683
|
| Metadata.WorkersBindingKindService
|
|
604
684
|
| Metadata.WorkersBindingKindTailConsumer
|
|
685
|
+
| Metadata.WorkersBindingKindTextBlob
|
|
605
686
|
| Metadata.WorkersBindingKindVectorize
|
|
606
687
|
| Metadata.WorkersBindingKindVersionMetadata
|
|
607
688
|
| Metadata.WorkersBindingKindSecretsStoreSecret
|
|
608
689
|
| Metadata.WorkersBindingKindSecretKey
|
|
609
690
|
| Metadata.WorkersBindingKindWorkflow
|
|
691
|
+
| Metadata.WorkersBindingKindWasmModule
|
|
610
692
|
>;
|
|
611
693
|
|
|
612
694
|
/**
|
|
613
|
-
* Name of the
|
|
614
|
-
*
|
|
615
|
-
* `service worker syntax` Worker.
|
|
695
|
+
* Name of the uploaded file that contains the script (e.g. the file adding a
|
|
696
|
+
* listener to the `fetch` event). Indicates a `service worker syntax` Worker.
|
|
616
697
|
*/
|
|
617
698
|
body_part?: string;
|
|
618
699
|
|
|
@@ -651,8 +732,8 @@ export namespace ScriptUpdateParams {
|
|
|
651
732
|
logpush?: boolean;
|
|
652
733
|
|
|
653
734
|
/**
|
|
654
|
-
* Name of the
|
|
655
|
-
*
|
|
735
|
+
* Name of the uploaded file that contains the main module (e.g. the file exporting
|
|
736
|
+
* a `fetch` handler). Indicates a `module syntax` Worker.
|
|
656
737
|
*/
|
|
657
738
|
main_module?: string;
|
|
658
739
|
|
|
@@ -819,6 +900,24 @@ export namespace ScriptUpdateParams {
|
|
|
819
900
|
type: 'd1';
|
|
820
901
|
}
|
|
821
902
|
|
|
903
|
+
export interface WorkersBindingKindDataBlob {
|
|
904
|
+
/**
|
|
905
|
+
* A JavaScript variable name for the binding.
|
|
906
|
+
*/
|
|
907
|
+
name: string;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* The name of the file containing the data content. Only accepted for
|
|
911
|
+
* `service worker syntax` Workers.
|
|
912
|
+
*/
|
|
913
|
+
part: string;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* @deprecated The kind of resource that the binding provides.
|
|
917
|
+
*/
|
|
918
|
+
type: 'data_blob';
|
|
919
|
+
}
|
|
920
|
+
|
|
822
921
|
export interface WorkersBindingKindDispatchNamespace {
|
|
823
922
|
/**
|
|
824
923
|
* A JavaScript variable name for the binding.
|
|
@@ -926,6 +1025,44 @@ export namespace ScriptUpdateParams {
|
|
|
926
1025
|
type: 'hyperdrive';
|
|
927
1026
|
}
|
|
928
1027
|
|
|
1028
|
+
export interface WorkersBindingKindInherit {
|
|
1029
|
+
/**
|
|
1030
|
+
* The name of the inherited binding.
|
|
1031
|
+
*/
|
|
1032
|
+
name: string;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* The kind of resource that the binding provides.
|
|
1036
|
+
*/
|
|
1037
|
+
type: 'inherit';
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* The old name of the inherited binding. If set, the binding will be renamed from
|
|
1041
|
+
* `old_name` to `name` in the new version. If not set, the binding will keep the
|
|
1042
|
+
* same name between versions.
|
|
1043
|
+
*/
|
|
1044
|
+
old_name?: string;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Identifier for the version to inherit the binding from, which can be the version
|
|
1048
|
+
* ID or the literal "latest" to inherit from the latest version. Defaults to
|
|
1049
|
+
* inheriting the binding from the latest version.
|
|
1050
|
+
*/
|
|
1051
|
+
version_id?: string;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
export interface WorkersBindingKindImages {
|
|
1055
|
+
/**
|
|
1056
|
+
* A JavaScript variable name for the binding.
|
|
1057
|
+
*/
|
|
1058
|
+
name: string;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* The kind of resource that the binding provides.
|
|
1062
|
+
*/
|
|
1063
|
+
type: 'images';
|
|
1064
|
+
}
|
|
1065
|
+
|
|
929
1066
|
export interface WorkersBindingKindJson {
|
|
930
1067
|
/**
|
|
931
1068
|
* JSON data to use.
|
|
@@ -1043,6 +1180,13 @@ export namespace ScriptUpdateParams {
|
|
|
1043
1180
|
* The kind of resource that the binding provides.
|
|
1044
1181
|
*/
|
|
1045
1182
|
type: 'r2_bucket';
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* The
|
|
1186
|
+
* [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions)
|
|
1187
|
+
* of the R2 bucket.
|
|
1188
|
+
*/
|
|
1189
|
+
jurisdiction?: 'eu' | 'fedramp';
|
|
1046
1190
|
}
|
|
1047
1191
|
|
|
1048
1192
|
export interface WorkersBindingKindSecretText {
|
|
@@ -1062,12 +1206,34 @@ export namespace ScriptUpdateParams {
|
|
|
1062
1206
|
type: 'secret_text';
|
|
1063
1207
|
}
|
|
1064
1208
|
|
|
1065
|
-
export interface
|
|
1209
|
+
export interface WorkersBindingKindSendEmail {
|
|
1066
1210
|
/**
|
|
1067
|
-
*
|
|
1211
|
+
* A JavaScript variable name for the binding.
|
|
1068
1212
|
*/
|
|
1069
|
-
|
|
1213
|
+
name: string;
|
|
1070
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* The kind of resource that the binding provides.
|
|
1217
|
+
*/
|
|
1218
|
+
type: 'send_email';
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* List of allowed destination addresses.
|
|
1222
|
+
*/
|
|
1223
|
+
allowed_destination_addresses?: Array<string>;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* List of allowed sender addresses.
|
|
1227
|
+
*/
|
|
1228
|
+
allowed_sender_addresses?: Array<string>;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Destination address for the email.
|
|
1232
|
+
*/
|
|
1233
|
+
destination_address?: string;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export interface WorkersBindingKindService {
|
|
1071
1237
|
/**
|
|
1072
1238
|
* A JavaScript variable name for the binding.
|
|
1073
1239
|
*/
|
|
@@ -1082,6 +1248,11 @@ export namespace ScriptUpdateParams {
|
|
|
1082
1248
|
* The kind of resource that the binding provides.
|
|
1083
1249
|
*/
|
|
1084
1250
|
type: 'service';
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* Optional environment if the Worker utilizes one.
|
|
1254
|
+
*/
|
|
1255
|
+
environment?: string;
|
|
1085
1256
|
}
|
|
1086
1257
|
|
|
1087
1258
|
export interface WorkersBindingKindTailConsumer {
|
|
@@ -1101,6 +1272,24 @@ export namespace ScriptUpdateParams {
|
|
|
1101
1272
|
type: 'tail_consumer';
|
|
1102
1273
|
}
|
|
1103
1274
|
|
|
1275
|
+
export interface WorkersBindingKindTextBlob {
|
|
1276
|
+
/**
|
|
1277
|
+
* A JavaScript variable name for the binding.
|
|
1278
|
+
*/
|
|
1279
|
+
name: string;
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* The name of the file containing the text content. Only accepted for
|
|
1283
|
+
* `service worker syntax` Workers.
|
|
1284
|
+
*/
|
|
1285
|
+
part: string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @deprecated The kind of resource that the binding provides.
|
|
1289
|
+
*/
|
|
1290
|
+
type: 'text_blob';
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1104
1293
|
export interface WorkersBindingKindVectorize {
|
|
1105
1294
|
/**
|
|
1106
1295
|
* Name of the Vectorize index to bind to.
|
|
@@ -1225,6 +1414,24 @@ export namespace ScriptUpdateParams {
|
|
|
1225
1414
|
script_name?: string;
|
|
1226
1415
|
}
|
|
1227
1416
|
|
|
1417
|
+
export interface WorkersBindingKindWasmModule {
|
|
1418
|
+
/**
|
|
1419
|
+
* A JavaScript variable name for the binding.
|
|
1420
|
+
*/
|
|
1421
|
+
name: string;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* The name of the file containing the WebAssembly module content. Only accepted
|
|
1425
|
+
* for `service worker syntax` Workers.
|
|
1426
|
+
*/
|
|
1427
|
+
part: string;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* @deprecated The kind of resource that the binding provides.
|
|
1431
|
+
*/
|
|
1432
|
+
type: 'wasm_module';
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1228
1435
|
/**
|
|
1229
1436
|
* Limits to apply for this Worker.
|
|
1230
1437
|
*/
|
|
@@ -1291,10 +1498,20 @@ export namespace ScriptUpdateParams {
|
|
|
1291
1498
|
*/
|
|
1292
1499
|
invocation_logs: boolean;
|
|
1293
1500
|
|
|
1501
|
+
/**
|
|
1502
|
+
* A list of destinations where logs will be exported to.
|
|
1503
|
+
*/
|
|
1504
|
+
destinations?: Array<string>;
|
|
1505
|
+
|
|
1294
1506
|
/**
|
|
1295
1507
|
* The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
|
|
1296
1508
|
*/
|
|
1297
1509
|
head_sampling_rate?: number | null;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Whether log persistence is enabled for the Worker.
|
|
1513
|
+
*/
|
|
1514
|
+
persist?: boolean;
|
|
1298
1515
|
}
|
|
1299
1516
|
}
|
|
1300
1517
|
|
|
@@ -1346,6 +1563,40 @@ export interface ScriptGetParams {
|
|
|
1346
1563
|
account_id: string;
|
|
1347
1564
|
}
|
|
1348
1565
|
|
|
1566
|
+
export interface ScriptSearchParams {
|
|
1567
|
+
/**
|
|
1568
|
+
* Path param: Identifier.
|
|
1569
|
+
*/
|
|
1570
|
+
account_id: string;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Query param: Worker ID (also called tag) to search for. Only exact matches are
|
|
1574
|
+
* returned.
|
|
1575
|
+
*/
|
|
1576
|
+
id?: string;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Query param: Worker name to search for. Both exact and partial matches are
|
|
1580
|
+
* returned.
|
|
1581
|
+
*/
|
|
1582
|
+
name?: string;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Query param: Property to sort results by. Results are sorted in ascending order.
|
|
1586
|
+
*/
|
|
1587
|
+
order_by?: 'created_on' | 'modified_on' | 'name';
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Query param: Current page.
|
|
1591
|
+
*/
|
|
1592
|
+
page?: number;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Query param: Items per page.
|
|
1596
|
+
*/
|
|
1597
|
+
per_page?: number;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1349
1600
|
Scripts.ScriptsSinglePage = ScriptsSinglePage;
|
|
1350
1601
|
Scripts.Assets = AssetsAPIAssets;
|
|
1351
1602
|
Scripts.Subdomain = Subdomain;
|
|
@@ -1367,11 +1618,13 @@ export declare namespace Scripts {
|
|
|
1367
1618
|
type ScriptUpdateResponse as ScriptUpdateResponse,
|
|
1368
1619
|
type ScriptDeleteResponse as ScriptDeleteResponse,
|
|
1369
1620
|
type ScriptGetResponse as ScriptGetResponse,
|
|
1621
|
+
type ScriptSearchResponse as ScriptSearchResponse,
|
|
1370
1622
|
ScriptsSinglePage as ScriptsSinglePage,
|
|
1371
1623
|
type ScriptUpdateParams as ScriptUpdateParams,
|
|
1372
1624
|
type ScriptListParams as ScriptListParams,
|
|
1373
1625
|
type ScriptDeleteParams as ScriptDeleteParams,
|
|
1374
1626
|
type ScriptGetParams as ScriptGetParams,
|
|
1627
|
+
type ScriptSearchParams as ScriptSearchParams,
|
|
1375
1628
|
};
|
|
1376
1629
|
|
|
1377
1630
|
export { AssetsAPIAssets as Assets };
|
|
@@ -80,12 +80,12 @@ export class Secrets extends APIResource {
|
|
|
80
80
|
params: SecretDeleteParams,
|
|
81
81
|
options?: Core.RequestOptions,
|
|
82
82
|
): Core.APIPromise<SecretDeleteResponse | null> {
|
|
83
|
-
const { account_id } = params;
|
|
83
|
+
const { account_id, url_encoded } = params;
|
|
84
84
|
return (
|
|
85
|
-
this._client.delete(
|
|
86
|
-
|
|
87
|
-
options,
|
|
88
|
-
) as Core.APIPromise<{ result: SecretDeleteResponse | null }>
|
|
85
|
+
this._client.delete(`/accounts/${account_id}/workers/scripts/${scriptName}/secrets/${secretName}`, {
|
|
86
|
+
query: { url_encoded },
|
|
87
|
+
...options,
|
|
88
|
+
}) as Core.APIPromise<{ result: SecretDeleteResponse | null }>
|
|
89
89
|
)._thenUnwrap((obj) => obj.result);
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -107,12 +107,12 @@ export class Secrets extends APIResource {
|
|
|
107
107
|
params: SecretGetParams,
|
|
108
108
|
options?: Core.RequestOptions,
|
|
109
109
|
): Core.APIPromise<SecretGetResponse> {
|
|
110
|
-
const { account_id } = params;
|
|
110
|
+
const { account_id, ...query } = params;
|
|
111
111
|
return (
|
|
112
|
-
this._client.get(
|
|
113
|
-
|
|
114
|
-
options,
|
|
115
|
-
) as Core.APIPromise<{ result: SecretGetResponse }>
|
|
112
|
+
this._client.get(`/accounts/${account_id}/workers/scripts/${scriptName}/secrets/${secretName}`, {
|
|
113
|
+
query,
|
|
114
|
+
...options,
|
|
115
|
+
}) as Core.APIPromise<{ result: SecretGetResponse }>
|
|
116
116
|
)._thenUnwrap((obj) => obj.result);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -367,16 +367,26 @@ export interface SecretListParams {
|
|
|
367
367
|
|
|
368
368
|
export interface SecretDeleteParams {
|
|
369
369
|
/**
|
|
370
|
-
* Identifier.
|
|
370
|
+
* Path param: Identifier.
|
|
371
371
|
*/
|
|
372
372
|
account_id: string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Query param: Flag that indicates whether the secret name is URL encoded.
|
|
376
|
+
*/
|
|
377
|
+
url_encoded?: boolean;
|
|
373
378
|
}
|
|
374
379
|
|
|
375
380
|
export interface SecretGetParams {
|
|
376
381
|
/**
|
|
377
|
-
* Identifier.
|
|
382
|
+
* Path param: Identifier.
|
|
378
383
|
*/
|
|
379
384
|
account_id: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Query param: Flag that indicates whether the secret name is URL encoded.
|
|
388
|
+
*/
|
|
389
|
+
url_encoded?: boolean;
|
|
380
390
|
}
|
|
381
391
|
|
|
382
392
|
Secrets.SecretListResponsesSinglePage = SecretListResponsesSinglePage;
|
|
@@ -79,6 +79,11 @@ export interface SettingEditParams {
|
|
|
79
79
|
*/
|
|
80
80
|
observability?: SettingEditParams.Observability | null;
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Body param: Tags associated with the Worker.
|
|
84
|
+
*/
|
|
85
|
+
tags?: Array<string>;
|
|
86
|
+
|
|
82
87
|
/**
|
|
83
88
|
* Body param: List of Workers that will consume logs from the attached Worker.
|
|
84
89
|
*/
|
|
@@ -124,10 +129,20 @@ export namespace SettingEditParams {
|
|
|
124
129
|
*/
|
|
125
130
|
invocation_logs: boolean;
|
|
126
131
|
|
|
132
|
+
/**
|
|
133
|
+
* A list of destinations where logs will be exported to.
|
|
134
|
+
*/
|
|
135
|
+
destinations?: Array<string>;
|
|
136
|
+
|
|
127
137
|
/**
|
|
128
138
|
* The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
|
|
129
139
|
*/
|
|
130
140
|
head_sampling_rate?: number | null;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Whether log persistence is enabled for the Worker.
|
|
144
|
+
*/
|
|
145
|
+
persist?: boolean;
|
|
131
146
|
}
|
|
132
147
|
}
|
|
133
148
|
}
|