From c21073a7ec6fd23fc4c087508a0c23c70c069cde Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 24 Apr 2024 20:54:59 +0000
Subject: [PATCH 001/122] feat(api): OpenAPI spec update via Stainless API
(#371)
---
.github/workflows/publish-npm.yml | 2 +-
.github/workflows/release-doctor.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index 285da6d7c0..1f5fe1ffba 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
index 86102f95ed..3008e5bc96 100644
--- a/.github/workflows/release-doctor.yml
+++ b/.github/workflows/release-doctor.yml
@@ -10,7 +10,7 @@ jobs:
if: github.repository == 'cloudflare/cloudflare-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Check release environment
run: |
From 647a60397a4ec8249d8e53fbf199503e03ce2e42 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 24 Apr 2024 23:03:55 +0000
Subject: [PATCH 002/122] feat(api): OpenAPI spec update via Stainless API
(#373)
---
api.md | 39 +-
src/resources/accounts/members.ts | 17 +-
.../addressing/address-maps/accounts.ts | 11 +-
.../addressing/address-maps/address-maps.ts | 17 +-
src/resources/addressing/address-maps/ips.ts | 11 +-
.../addressing/address-maps/zones.ts | 13 +-
.../addressing/prefixes/delegations.ts | 11 +-
src/resources/addressing/prefixes/prefixes.ts | 17 +-
src/resources/alerting/policies.ts | 233 +-
src/resources/cache/smart-tiered-cache.ts | 17 +-
src/resources/cache/variants.ts | 11 +-
.../hostname-associations.ts | 4 +-
src/resources/challenges/widgets.ts | 10 +-
.../cloudforce-one/requests/priority.ts | 6 +-
.../custom-certificates.ts | 38 +-
.../custom-hostnames/custom-hostnames.ts | 45 +-
.../custom-hostnames/fallback-origin.ts | 16 +-
src/resources/custom-nameservers.ts | 16 +-
src/resources/dns/firewall/firewall.ts | 53 +-
src/resources/dns/records.ts | 269 +-
src/resources/dnssec.ts | 11 +-
.../email-routing/rules/catch-alls.ts | 26 +-
src/resources/email-routing/rules/rules.ts | 40 +-
src/resources/filters.ts | 11 +-
src/resources/firewall/access-rules.ts | 123 +-
src/resources/firewall/firewall.ts | 3 -
src/resources/firewall/index.ts | 3 -
src/resources/firewall/lockdowns.ts | 11 +-
src/resources/firewall/rules.ts | 23 +-
src/resources/firewall/ua-rules.ts | 11 +-
src/resources/firewall/waf/index.ts | 1 -
src/resources/firewall/waf/overrides.ts | 12 +-
src/resources/firewall/waf/waf.ts | 1 -
src/resources/healthchecks/healthchecks.ts | 121 +-
src/resources/healthchecks/previews.ts | 23 +-
src/resources/hostnames/settings/tls.ts | 7 +-
src/resources/hyperdrive/configs.ts | 6 +-
src/resources/hyperdrive/hyperdrive.ts | 27 +
src/resources/images/v1/v1.ts | 16 +-
src/resources/images/v1/variants.ts | 17 +-
src/resources/intel/asn/asn.ts | 6 +-
src/resources/intel/asn/subnets.ts | 2 +-
.../attack-surface-report.ts | 3 -
.../intel/attack-surface-report/index.ts | 3 -
.../intel/attack-surface-report/issues.ts | 94 +-
src/resources/keyless-certificates.ts | 38 +-
src/resources/kv/namespaces/bulk.ts | 17 +-
src/resources/kv/namespaces/namespaces.ts | 17 +-
src/resources/kv/namespaces/values.ts | 17 +-
.../load-balancers/load-balancers.ts | 749 +++++-
.../load-balancers/monitors/monitors.ts | 17 +-
src/resources/load-balancers/pools/pools.ts | 45 +-
src/resources/logpush/jobs.ts | 112 +-
src/resources/logs/control/cmb/config.ts | 16 +-
.../configs/configs.ts | 17 +-
.../magic-network-monitoring/rules/rules.ts | 17 +-
.../magic-transit/cf-interconnects.ts | 4 +-
src/resources/magic-transit/gre-tunnels.ts | 19 +-
src/resources/magic-transit/index.ts | 34 +-
src/resources/magic-transit/ipsec-tunnels.ts | 21 +-
src/resources/magic-transit/magic-transit.ts | 48 +-
src/resources/magic-transit/routes.ts | 59 +-
src/resources/magic-transit/sites/acls.ts | 64 +-
src/resources/magic-transit/sites/lans.ts | 105 +-
src/resources/magic-transit/sites/sites.ts | 35 +-
src/resources/magic-transit/sites/wans.ts | 42 +-
src/resources/managed-headers.ts | 16 +-
src/resources/memberships.ts | 10 +-
.../mtls-certificates/mtls-certificates.ts | 17 +-
src/resources/origin-ca-certificates.ts | 5 +-
.../hostnames/certificates.ts | 11 +-
.../origin-tls-client-auth.ts | 17 +-
src/resources/pagerules/pagerules.ts | 85 +-
.../pages/projects/deployments/deployments.ts | 11 +-
src/resources/pages/projects/domains.ts | 11 +-
src/resources/pages/projects/projects.ts | 30 +-
src/resources/pcaps/pcaps.ts | 34 +-
src/resources/queues/consumers.ts | 17 +-
src/resources/queues/queues.ts | 16 +-
src/resources/r2/sippy.ts | 6 +-
src/resources/rate-limits.ts | 10 +-
src/resources/rules/lists/items.ts | 33 +-
src/resources/rules/lists/lists.ts | 43 +-
src/resources/rulesets/phases/phases.ts | 30 +-
src/resources/rulesets/rules.ts | 2343 ++++++++++++++---
src/resources/rulesets/rulesets.ts | 60 +-
src/resources/secondary-dns/acls.ts | 17 +-
src/resources/secondary-dns/incoming.ts | 17 +-
.../secondary-dns/outgoing/outgoing.ts | 17 +-
src/resources/secondary-dns/peers.ts | 18 +-
src/resources/secondary-dns/tsigs.ts | 18 +-
src/resources/shared.ts | 8 +
.../spectrum/analytics/events/bytimes.ts | 2 +-
.../spectrum/analytics/events/events.ts | 2 +
.../spectrum/analytics/events/summaries.ts | 2 +-
src/resources/spectrum/apps.ts | 22 +-
src/resources/spectrum/index.ts | 1 -
src/resources/spectrum/spectrum.ts | 82 +-
src/resources/ssl/analyze.ts | 2 +-
.../certificate-packs/certificate-packs.ts | 19 +-
src/resources/ssl/certificate-packs/order.ts | 2 +-
.../stream/captions/language/language.ts | 17 +-
src/resources/stream/clip.ts | 2 +-
src/resources/stream/copy.ts | 2 +-
src/resources/stream/direct-upload.ts | 2 +-
src/resources/stream/keys.ts | 16 +-
.../stream/live-inputs/live-inputs.ts | 10 +-
src/resources/stream/live-inputs/outputs.ts | 11 +-
src/resources/stream/stream.ts | 12 +-
src/resources/stream/watermarks.ts | 17 +-
src/resources/stream/webhooks.ts | 16 +-
src/resources/subscriptions.ts | 23 +-
src/resources/user/index.ts | 3 -
src/resources/user/organizations.ts | 11 +-
src/resources/user/subscriptions.ts | 93 +-
src/resources/user/tokens/index.ts | 1 -
src/resources/user/tokens/tokens.ts | 53 +-
src/resources/user/user.ts | 3 -
src/resources/vectorize/indexes.ts | 14 +-
src/resources/waiting-rooms/events/events.ts | 17 +-
src/resources/waiting-rooms/rules.ts | 17 +-
src/resources/waiting-rooms/waiting-rooms.ts | 67 +-
src/resources/warp-connector.ts | 16 +-
src/resources/web3/hostnames/hostnames.ts | 12 +-
src/resources/web3/hostnames/index.ts | 1 -
.../content-lists/content-lists.ts | 1 -
.../content-lists/entries.ts | 6 +-
.../content-lists/index.ts | 1 -
src/resources/web3/index.ts | 1 -
src/resources/web3/web3.ts | 1 -
.../dispatch/namespaces/scripts/content.ts | 2 +-
.../dispatch/namespaces/scripts/scripts.ts | 15 +-
.../dispatch/namespaces/scripts/settings.ts | 8 +-
src/resources/workers/domains.ts | 11 +-
src/resources/workers/scripts/content.ts | 2 +-
src/resources/workers/scripts/deployments.ts | 9 +-
src/resources/workers/scripts/scripts.ts | 14 +-
src/resources/workers/scripts/settings.ts | 2 +-
src/resources/workers/scripts/tail.ts | 34 +-
src/resources/workers/workers.ts | 305 +++
src/resources/zero-trust/access/access.ts | 340 ++-
.../access/applications/applications.ts | 285 +-
.../access/applications/policies.ts | 36 +-
.../access/applications/user-policy-checks.ts | 6 +-
src/resources/zero-trust/access/bookmarks.ts | 11 +-
.../access/certificates/certificates.ts | 9 +-
.../access/certificates/settings.ts | 22 +-
src/resources/zero-trust/access/groups.ts | 12 +-
src/resources/zero-trust/access/index.ts | 1 -
src/resources/zero-trust/devices/dex-tests.ts | 25 +-
src/resources/zero-trust/devices/networks.ts | 18 +-
.../zero-trust/devices/policies/excludes.ts | 21 +-
.../devices/policies/fallback-domains.ts | 19 +-
.../zero-trust/devices/policies/includes.ts | 21 +-
.../zero-trust/devices/policies/policies.ts | 17 +-
.../devices/posture/integrations.ts | 18 +-
.../zero-trust/devices/posture/posture.ts | 392 ++-
.../zero-trust/dlp/profiles/custom.ts | 41 +-
.../zero-trust/dlp/profiles/predefined.ts | 2 +-
.../zero-trust/dlp/profiles/profiles.ts | 27 +
.../zero-trust/gateway/configurations.ts | 248 +-
.../zero-trust/gateway/lists/lists.ts | 28 +-
src/resources/zero-trust/gateway/locations.ts | 29 +-
.../zero-trust/gateway/proxy-endpoints.ts | 28 +-
src/resources/zero-trust/gateway/rules.ts | 416 ++-
.../zero-trust/identity-providers.ts | 199 +-
.../zero-trust/networks/virtual-networks.ts | 17 +-
src/resources/zero-trust/organizations.ts | 31 +-
.../zero-trust/tunnels/connections.ts | 17 +-
src/resources/zero-trust/tunnels/tunnels.ts | 16 +-
src/resources/zones/dns-settings.ts | 12 +-
.../automatic-platform-optimization.ts | 39 +-
.../zones/settings/h2-prioritization.ts | 19 +-
.../zones/settings/image-resizing.ts | 20 +-
src/resources/zones/settings/nel.ts | 26 +-
.../zones/settings/orange-to-orange.ts | 18 +-
src/resources/zones/settings/polish.ts | 22 +-
.../zones/settings/proxy-read-timeout.ts | 17 +-
src/resources/zones/settings/rocket-loader.ts | 26 +-
.../zones/settings/ssl-recommender.ts | 19 +-
src/resources/zones/subscriptions.ts | 6 +-
tests/api-resources/accounts/members.test.ts | 2 -
.../addressing/address-maps/accounts.test.ts | 4 +-
.../address-maps/address-maps.test.ts | 2 -
.../addressing/address-maps/ips.test.ts | 4 +-
.../addressing/address-maps/zones.test.ts | 12 +-
.../addressing/prefixes/delegations.test.ts | 4 +-
.../addressing/prefixes/prefixes.test.ts | 2 -
.../cache/smart-tiered-cache.test.ts | 2 -
tests/api-resources/cache/variants.test.ts | 10 +-
.../custom-certificates.test.ts | 2 -
.../custom-hostnames/custom-hostnames.test.ts | 2 -
.../custom-hostnames/fallback-origin.test.ts | 2 -
.../api-resources/custom-nameservers.test.ts | 2 -
.../dns/firewall/firewall.test.ts | 2 -
tests/api-resources/dns/records.test.ts | 2 -
tests/api-resources/dnssec.test.ts | 10 +-
tests/api-resources/filters.test.ts | 16 +-
.../firewall/access-rules.test.ts | 9 +-
.../api-resources/firewall/lockdowns.test.ts | 18 +-
tests/api-resources/firewall/rules.test.ts | 13 +-
tests/api-resources/firewall/ua-rules.test.ts | 18 +-
.../firewall/waf/overrides.test.ts | 18 +-
.../healthchecks/healthchecks.test.ts | 2 -
.../healthchecks/previews.test.ts | 2 -
tests/api-resources/images/v1/v1.test.ts | 2 -
.../api-resources/images/v1/variants.test.ts | 2 -
.../keyless-certificates.test.ts | 2 -
.../api-resources/kv/namespaces/bulk.test.ts | 2 -
.../kv/namespaces/namespaces.test.ts | 2 -
.../kv/namespaces/values.test.ts | 4 +-
.../load-balancers/load-balancers.test.ts | 2 -
.../load-balancers/monitors/monitors.test.ts | 2 -
.../load-balancers/pools/pools.test.ts | 2 -
tests/api-resources/logpush/jobs.test.ts | 9 +-
.../logs/control/cmb/config.test.ts | 2 -
.../configs/configs.test.ts | 2 -
.../rules/rules.test.ts | 4 +-
.../magic-transit/gre-tunnels.test.ts | 2 -
.../magic-transit/ipsec-tunnels.test.ts | 2 -
.../magic-transit/routes.test.ts | 4 -
.../magic-transit/sites/acls.test.ts | 4 +-
.../magic-transit/sites/lans.test.ts | 4 +-
.../magic-transit/sites/sites.test.ts | 2 -
.../magic-transit/sites/wans.test.ts | 4 +-
tests/api-resources/memberships.test.ts | 11 +-
.../mtls-certificates.test.ts | 2 -
.../origin-ca-certificates.test.ts | 13 +-
.../hostnames/certificates.test.ts | 4 +-
.../origin-tls-client-auth.test.ts | 2 -
.../api-resources/pagerules/pagerules.test.ts | 2 -
.../projects/deployments/deployments.test.ts | 4 +-
.../pages/projects/domains.test.ts | 4 +-
.../pages/projects/projects.test.ts | 2 -
tests/api-resources/queues/consumers.test.ts | 4 +-
tests/api-resources/queues/queues.test.ts | 2 -
tests/api-resources/rate-limits.test.ts | 16 +-
tests/api-resources/rules/lists/items.test.ts | 1 -
tests/api-resources/rules/lists/lists.test.ts | 2 -
.../api-resources/secondary-dns/acls.test.ts | 2 -
.../secondary-dns/incoming.test.ts | 2 -
.../secondary-dns/outgoing/outgoing.test.ts | 2 -
.../api-resources/secondary-dns/peers.test.ts | 2 -
.../api-resources/secondary-dns/tsigs.test.ts | 2 -
tests/api-resources/spectrum/apps.test.ts | 18 +-
.../certificate-packs.test.ts | 2 -
.../stream/captions/language/language.test.ts | 4 +-
tests/api-resources/stream/keys.test.ts | 2 -
.../stream/live-inputs/live-inputs.test.ts | 2 -
.../stream/live-inputs/outputs.test.ts | 4 +-
tests/api-resources/stream/stream.test.ts | 2 -
tests/api-resources/stream/watermarks.test.ts | 2 -
tests/api-resources/stream/webhooks.test.ts | 2 -
tests/api-resources/subscriptions.test.ts | 18 +-
.../api-resources/user/organizations.test.ts | 13 +-
.../api-resources/user/subscriptions.test.ts | 13 +-
.../api-resources/user/tokens/tokens.test.ts | 11 +-
.../waiting-rooms/events/events.test.ts | 4 +-
.../api-resources/waiting-rooms/rules.test.ts | 4 +-
.../waiting-rooms/waiting-rooms.test.ts | 2 -
tests/api-resources/warp-connector.test.ts | 2 -
.../web3/hostnames/hostnames.test.ts | 18 +-
.../content-lists/entries.test.ts | 20 +-
.../namespaces/scripts/scripts.test.ts | 4 +-
tests/api-resources/workers/domains.test.ts | 2 -
.../workers/scripts/scripts.test.ts | 2 -
.../workers/scripts/tail.test.ts | 4 +-
.../zero-trust/access/bookmarks.test.ts | 18 +-
.../zero-trust/devices/networks.test.ts | 4 +-
.../devices/policies/policies.test.ts | 4 +-
.../devices/posture/integrations.test.ts | 4 +-
.../devices/posture/posture.test.ts | 4 +-
.../zero-trust/dlp/profiles/custom.test.ts | 4 +-
.../zero-trust/gateway/lists/lists.test.ts | 3 +-
.../zero-trust/gateway/locations.test.ts | 3 +-
.../gateway/proxy-endpoints.test.ts | 4 +-
.../zero-trust/gateway/rules.test.ts | 3 +-
.../networks/virtual-networks.test.ts | 4 +-
.../zero-trust/tunnels/connections.test.ts | 4 +-
.../zero-trust/tunnels/tunnels.test.ts | 2 -
280 files changed, 7459 insertions(+), 2461 deletions(-)
diff --git a/api.md b/api.md
index bdf6ec535d..7b7e9a2151 100644
--- a/api.md
+++ b/api.md
@@ -71,7 +71,7 @@ Methods:
- client.originCACertificates.create({ ...params }) -> OriginCACertificateCreateResponse
- client.originCACertificates.list({ ...params }) -> OriginCACertificatesSinglePage
-- client.originCACertificates.delete(certificateId, { ...params }) -> OriginCACertificateDeleteResponse
+- client.originCACertificates.delete(certificateId) -> OriginCACertificateDeleteResponse
- client.originCACertificates.get(certificateId) -> OriginCACertificateGetResponse
# IPs
@@ -99,7 +99,7 @@ Methods:
- client.memberships.update(membershipId, { ...params }) -> MembershipUpdateResponse
- client.memberships.list({ ...params }) -> MembershipsV4PagePaginationArray
-- client.memberships.delete(membershipId, { ...params }) -> MembershipDeleteResponse
+- client.memberships.delete(membershipId) -> MembershipDeleteResponse
- client.memberships.get(membershipId) -> MembershipGetResponse
# User
@@ -167,7 +167,7 @@ Types:
Methods:
- client.user.organizations.list({ ...params }) -> OrganizationsV4PagePaginationArray
-- client.user.organizations.delete(organizationId, { ...params }) -> OrganizationDeleteResponse
+- client.user.organizations.delete(organizationId) -> OrganizationDeleteResponse
- client.user.organizations.get(organizationId) -> OrganizationGetResponse
## Subscriptions
@@ -186,7 +186,7 @@ Types:
Methods:
- client.user.subscriptions.update(identifier, { ...params }) -> SubscriptionUpdateResponse
-- client.user.subscriptions.delete(identifier, { ...params }) -> SubscriptionDeleteResponse
+- client.user.subscriptions.delete(identifier) -> SubscriptionDeleteResponse
- client.user.subscriptions.edit(identifier, { ...params }) -> SubscriptionEditResponse
- client.user.subscriptions.get() -> SubscriptionGetResponse | null
@@ -209,7 +209,7 @@ Methods:
- client.user.tokens.create({ ...params }) -> TokenCreateResponse
- client.user.tokens.update(tokenId, { ...params }) -> TokenUpdateResponse
- client.user.tokens.list({ ...params }) -> TokenListResponsesV4PagePaginationArray
-- client.user.tokens.delete(tokenId, { ...params }) -> TokenDeleteResponse | null
+- client.user.tokens.delete(tokenId) -> TokenDeleteResponse | null
- client.user.tokens.get(tokenId) -> TokenGetResponse
- client.user.tokens.verify() -> TokenVerifyResponse
@@ -1176,7 +1176,7 @@ Methods:
- client.subscriptions.create(identifier, { ...params }) -> SubscriptionCreateResponse
- client.subscriptions.update(accountIdentifier, subscriptionIdentifier, { ...params }) -> SubscriptionUpdateResponse
- client.subscriptions.list(accountIdentifier) -> SubscriptionsSinglePage
-- client.subscriptions.delete(accountIdentifier, subscriptionIdentifier, { ...params }) -> SubscriptionDeleteResponse
+- client.subscriptions.delete(accountIdentifier, subscriptionIdentifier) -> SubscriptionDeleteResponse
- client.subscriptions.get(identifier) -> SubscriptionGetResponse
# ACM
@@ -1552,7 +1552,7 @@ Methods:
- client.filters.create(zoneIdentifier, { ...params }) -> FilterCreateResponse | null
- client.filters.update(zoneIdentifier, id, { ...params }) -> FirewallFilter
- client.filters.list(zoneIdentifier, { ...params }) -> FirewallFiltersV4PagePaginationArray
-- client.filters.delete(zoneIdentifier, id, { ...params }) -> FirewallFilter
+- client.filters.delete(zoneIdentifier, id) -> FirewallFilter
- client.filters.get(zoneIdentifier, id) -> FirewallFilter
# Firewall
@@ -1573,7 +1573,7 @@ Methods:
- client.firewall.lockdowns.create(zoneIdentifier, { ...params }) -> Lockdown
- client.firewall.lockdowns.update(zoneIdentifier, id, { ...params }) -> Lockdown
- client.firewall.lockdowns.list(zoneIdentifier, { ...params }) -> LockdownsV4PagePaginationArray
-- client.firewall.lockdowns.delete(zoneIdentifier, id, { ...params }) -> LockdownDeleteResponse
+- client.firewall.lockdowns.delete(zoneIdentifier, id) -> LockdownDeleteResponse
- client.firewall.lockdowns.get(zoneIdentifier, id) -> Lockdown
## Rules
@@ -1591,7 +1591,7 @@ Methods:
- client.firewall.rules.create(zoneIdentifier, { ...params }) -> RuleCreateResponse | null
- client.firewall.rules.update(zoneIdentifier, id, { ...params }) -> FirewallRule
- client.firewall.rules.list(zoneIdentifier, { ...params }) -> FirewallRulesV4PagePaginationArray
-- client.firewall.rules.delete(zoneIdentifier, id, { ...params }) -> FirewallRule
+- client.firewall.rules.delete(zoneIdentifier, id) -> FirewallRule
- client.firewall.rules.edit(zoneIdentifier, id, { ...params }) -> RuleEditResponse | null
- client.firewall.rules.get(zoneIdentifier, { ...params }) -> FirewallRule
@@ -1633,7 +1633,7 @@ Methods:
- client.firewall.uaRules.create(zoneIdentifier, { ...params }) -> UARuleCreateResponse
- client.firewall.uaRules.update(zoneIdentifier, id, { ...params }) -> UARuleUpdateResponse
- client.firewall.uaRules.list(zoneIdentifier, { ...params }) -> UARuleListResponsesV4PagePaginationArray
-- client.firewall.uaRules.delete(zoneIdentifier, id, { ...params }) -> UARuleDeleteResponse
+- client.firewall.uaRules.delete(zoneIdentifier, id) -> UARuleDeleteResponse
- client.firewall.uaRules.get(zoneIdentifier, id) -> UARuleGetResponse
## WAF
@@ -1653,7 +1653,7 @@ Methods:
- client.firewall.waf.overrides.create(zoneIdentifier, { ...params }) -> Override
- client.firewall.waf.overrides.update(zoneIdentifier, id, { ...params }) -> Override
- client.firewall.waf.overrides.list(zoneIdentifier, { ...params }) -> OverridesV4PagePaginationArray
-- client.firewall.waf.overrides.delete(zoneIdentifier, id, { ...params }) -> OverrideDeleteResponse
+- client.firewall.waf.overrides.delete(zoneIdentifier, id) -> OverrideDeleteResponse
- client.firewall.waf.overrides.get(zoneIdentifier, id) -> Override
### Packages
@@ -1991,7 +1991,7 @@ Methods:
- client.rateLimits.create(zoneIdentifier, { ...params }) -> RateLimitCreateResponse
- client.rateLimits.list(zoneIdentifier, { ...params }) -> RateLimitsV4PagePaginationArray
-- client.rateLimits.delete(zoneIdentifier, id, { ...params }) -> RateLimitDeleteResponse
+- client.rateLimits.delete(zoneIdentifier, id) -> RateLimitDeleteResponse
- client.rateLimits.edit(zoneIdentifier, id, { ...params }) -> RateLimitEditResponse
- client.rateLimits.get(zoneIdentifier, id) -> RateLimitGetResponse
@@ -2211,7 +2211,7 @@ Methods:
- client.web3.hostnames.create(zoneIdentifier, { ...params }) -> Hostname
- client.web3.hostnames.list(zoneIdentifier) -> HostnamesSinglePage
-- client.web3.hostnames.delete(zoneIdentifier, identifier, { ...params }) -> HostnameDeleteResponse | null
+- client.web3.hostnames.delete(zoneIdentifier, identifier) -> HostnameDeleteResponse | null
- client.web3.hostnames.edit(zoneIdentifier, identifier, { ...params }) -> Hostname
- client.web3.hostnames.get(zoneIdentifier, identifier) -> Hostname
@@ -2243,7 +2243,7 @@ Methods:
- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.create(zoneIdentifier, identifier, { ...params }) -> EntryCreateResponse
- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.update(zoneIdentifier, identifier, contentListEntryIdentifier, { ...params }) -> EntryUpdateResponse
- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.list(zoneIdentifier, identifier) -> EntryListResponse | null
-- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.delete(zoneIdentifier, identifier, contentListEntryIdentifier, { ...params }) -> EntryDeleteResponse | null
+- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.delete(zoneIdentifier, identifier, contentListEntryIdentifier) -> EntryDeleteResponse | null
- client.web3.hostnames.ipfsUniversalPaths.contentLists.entries.get(zoneIdentifier, identifier, contentListEntryIdentifier) -> EntryGetResponse
# Workers
@@ -2421,7 +2421,7 @@ Types:
Methods:
- client.kv.namespaces.bulk.update(namespaceId, [ ...body ]) -> BulkUpdateResponse
-- client.kv.namespaces.bulk.delete(namespaceId, [ ...body ]) -> BulkDeleteResponse
+- client.kv.namespaces.bulk.delete(namespaceId, { ...params }) -> BulkDeleteResponse
### Keys
@@ -2757,7 +2757,7 @@ Methods:
- client.spectrum.apps.create(zone, { ...params }) -> AppCreateResponse | null
- client.spectrum.apps.update(zone, appId, { ...params }) -> AppUpdateResponse | null
- client.spectrum.apps.list(zone, { ...params }) -> AppListResponsesV4PagePaginationArray
-- client.spectrum.apps.delete(zone, appId, { ...params }) -> AppDeleteResponse | null
+- client.spectrum.apps.delete(zone, appId) -> AppDeleteResponse | null
- client.spectrum.apps.get(zone, appId) -> AppGetResponse
# Addressing
@@ -3206,11 +3206,8 @@ Methods:
Types:
-- IssueClass
- IssueType
-- Product
- SeverityQueryParam
-- Subject
- IssueListResponse
- IssueClassResponse
- IssueDismissResponse
@@ -3290,8 +3287,6 @@ Methods:
Types:
-- ColoName
-- ColoRegion
- Scope
- RouteCreateResponse
- RouteUpdateResponse
@@ -4519,7 +4514,7 @@ Methods:
- client.zeroTrust.access.bookmarks.create(identifier, uuid, { ...params }) -> Bookmark
- client.zeroTrust.access.bookmarks.update(identifier, uuid, { ...params }) -> Bookmark
- client.zeroTrust.access.bookmarks.list(identifier) -> BookmarksSinglePage
-- client.zeroTrust.access.bookmarks.delete(identifier, uuid, { ...params }) -> BookmarkDeleteResponse
+- client.zeroTrust.access.bookmarks.delete(identifier, uuid) -> BookmarkDeleteResponse
- client.zeroTrust.access.bookmarks.get(identifier, uuid) -> Bookmark
### Keys
diff --git a/src/resources/accounts/members.ts b/src/resources/accounts/members.ts
index d4c2a857dd..a40ca1e0fe 100644
--- a/src/resources/accounts/members.ts
+++ b/src/resources/accounts/members.ts
@@ -59,12 +59,11 @@ export class Members extends APIResource {
params: MemberDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
- this._client.delete(`/accounts/${account_id}/members/${memberId}`, {
- body: body,
- ...options,
- }) as Core.APIPromise<{ result: MemberDeleteResponse | null }>
+ this._client.delete(`/accounts/${account_id}/members/${memberId}`, options) as Core.APIPromise<{
+ result: MemberDeleteResponse | null;
+ }>
)._thenUnwrap((obj) => obj.result);
}
@@ -285,15 +284,7 @@ export interface MemberListParams extends V4PagePaginationArrayParams {
}
export interface MemberDeleteParams {
- /**
- * Path param:
- */
account_id: unknown;
-
- /**
- * Body param:
- */
- body: unknown;
}
export interface MemberGetParams {
diff --git a/src/resources/addressing/address-maps/accounts.ts b/src/resources/addressing/address-maps/accounts.ts
index 484e26530b..9f143a53d2 100644
--- a/src/resources/addressing/address-maps/accounts.ts
+++ b/src/resources/addressing/address-maps/accounts.ts
@@ -30,11 +30,11 @@ export class Accounts extends APIResource {
params: AccountDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
this._client.delete(
`/accounts/${account_id}/addressing/address_maps/${addressMapId}/accounts/${account_id}`,
- { body: body, ...options },
+ options,
) as Core.APIPromise<{ result: AccountDeleteResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -58,14 +58,9 @@ export interface AccountUpdateParams {
export interface AccountDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export namespace Accounts {
diff --git a/src/resources/addressing/address-maps/address-maps.ts b/src/resources/addressing/address-maps/address-maps.ts
index 923c0b426f..be14930dc1 100644
--- a/src/resources/addressing/address-maps/address-maps.ts
+++ b/src/resources/addressing/address-maps/address-maps.ts
@@ -53,12 +53,12 @@ export class AddressMaps extends APIResource {
params: AddressMapDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
- this._client.delete(`/accounts/${account_id}/addressing/address_maps/${addressMapId}`, {
- body: body,
- ...options,
- }) as Core.APIPromise<{ result: AddressMapDeleteResponse | null }>
+ this._client.delete(
+ `/accounts/${account_id}/addressing/address_maps/${addressMapId}`,
+ options,
+ ) as Core.APIPromise<{ result: AddressMapDeleteResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -343,14 +343,9 @@ export interface AddressMapListParams {
export interface AddressMapDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export interface AddressMapEditParams {
diff --git a/src/resources/addressing/address-maps/ips.ts b/src/resources/addressing/address-maps/ips.ts
index 3ef96f0e7e..ed142658ff 100644
--- a/src/resources/addressing/address-maps/ips.ts
+++ b/src/resources/addressing/address-maps/ips.ts
@@ -32,11 +32,11 @@ export class IPs extends APIResource {
params: IPDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
this._client.delete(
`/accounts/${account_id}/addressing/address_maps/${addressMapId}/ips/${ipAddress}`,
- { body: body, ...options },
+ options,
) as Core.APIPromise<{ result: IPDeleteResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -60,14 +60,9 @@ export interface IPUpdateParams {
export interface IPDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export namespace IPs {
diff --git a/src/resources/addressing/address-maps/zones.ts b/src/resources/addressing/address-maps/zones.ts
index 877421bd34..21437b1052 100644
--- a/src/resources/addressing/address-maps/zones.ts
+++ b/src/resources/addressing/address-maps/zones.ts
@@ -30,11 +30,11 @@ export class Zones extends APIResource {
params: ZoneDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { zone_id, account_id, body } = params;
+ const { zone_id, account_id } = params;
return (
this._client.delete(
`/accounts/${account_id}/addressing/address_maps/${addressMapId}/zones/${zone_id}`,
- { body: body, ...options },
+ options,
) as Core.APIPromise<{ result: ZoneDeleteResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -63,19 +63,14 @@ export interface ZoneUpdateParams {
export interface ZoneDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
zone_id: string;
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export namespace Zones {
diff --git a/src/resources/addressing/prefixes/delegations.ts b/src/resources/addressing/prefixes/delegations.ts
index ebccd55199..4ffec2585b 100644
--- a/src/resources/addressing/prefixes/delegations.ts
+++ b/src/resources/addressing/prefixes/delegations.ts
@@ -48,11 +48,11 @@ export class Delegations extends APIResource {
params: DelegationDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
this._client.delete(
`/accounts/${account_id}/addressing/prefixes/${prefixId}/delegations/${delegationId}`,
- { body: body, ...options },
+ options,
) as Core.APIPromise<{ result: DelegationDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -120,14 +120,9 @@ export interface DelegationListParams {
export interface DelegationDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export namespace Delegations {
diff --git a/src/resources/addressing/prefixes/prefixes.ts b/src/resources/addressing/prefixes/prefixes.ts
index 0fae0b98ce..935cc861e1 100644
--- a/src/resources/addressing/prefixes/prefixes.ts
+++ b/src/resources/addressing/prefixes/prefixes.ts
@@ -47,12 +47,12 @@ export class Prefixes extends APIResource {
params: PrefixDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { account_id, body } = params;
+ const { account_id } = params;
return (
- this._client.delete(`/accounts/${account_id}/addressing/prefixes/${prefixId}`, {
- body: body,
- ...options,
- }) as Core.APIPromise<{ result: PrefixDeleteResponse | null }>
+ this._client.delete(
+ `/accounts/${account_id}/addressing/prefixes/${prefixId}`,
+ options,
+ ) as Core.APIPromise<{ result: PrefixDeleteResponse | null }>
)._thenUnwrap((obj) => obj.result);
}
@@ -183,14 +183,9 @@ export interface PrefixListParams {
export interface PrefixDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
account_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export interface PrefixEditParams {
diff --git a/src/resources/alerting/policies.ts b/src/resources/alerting/policies.ts
index 68e4c65a2f..ae84cbb279 100644
--- a/src/resources/alerting/policies.ts
+++ b/src/resources/alerting/policies.ts
@@ -99,6 +99,21 @@ export namespace Mechanism {
}
}
+/**
+ * List of IDs that will be used when dispatching a notification. IDs for email
+ * type will be the email address.
+ */
+export type MechanismParam = Record>;
+
+export namespace MechanismParam {
+ export interface UnnamedSchemaWithMapParent1 {
+ /**
+ * UUID
+ */
+ id?: string | string;
+ }
+}
+
export interface Policy {
/**
* The unique identifier of a notification policy
@@ -410,6 +425,216 @@ export interface PolicyFilter {
zones?: Array;
}
+/**
+ * Optional filters that allow you to be alerted only on a subset of events for
+ * that alert type based on some criteria. This is only available for select alert
+ * types. See alert type documentation for more details.
+ */
+export interface PolicyFilterParam {
+ /**
+ * Usage depends on specific alert type
+ */
+ actions?: Array;
+
+ /**
+ * Used for configuring radar_notification
+ */
+ affected_asns?: Array;
+
+ /**
+ * Used for configuring incident_alert. A list of identifiers for each component to
+ * monitor.
+ */
+ affected_components?: Array;
+
+ /**
+ * Used for configuring radar_notification
+ */
+ affected_locations?: Array;
+
+ /**
+ * Used for configuring maintenance_event_notification
+ */
+ airport_code?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ alert_trigger_preferences?: Array;
+
+ /**
+ * Used for configuring magic_tunnel_health_check_event
+ */
+ alert_trigger_preferences_value?: Array<'99.0' | '98.0' | '97.0'>;
+
+ /**
+ * Used for configuring load_balancing_pool_enablement_alert
+ */
+ enabled?: Array;
+
+ /**
+ * Used for configuring pages_event_alert
+ */
+ environment?: Array;
+
+ /**
+ * Used for configuring pages_event_alert
+ */
+ event?: Array;
+
+ /**
+ * Used for configuring load_balancing_health_alert
+ */
+ event_source?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ event_type?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ group_by?: Array;
+
+ /**
+ * Used for configuring health_check_status_notification
+ */
+ health_check_id?: Array;
+
+ /**
+ * Used for configuring incident_alert
+ */
+ incident_impact?: Array<
+ 'INCIDENT_IMPACT_NONE' | 'INCIDENT_IMPACT_MINOR' | 'INCIDENT_IMPACT_MAJOR' | 'INCIDENT_IMPACT_CRITICAL'
+ >;
+
+ /**
+ * Used for configuring stream_live_notifications
+ */
+ input_id?: Array;
+
+ /**
+ * Used for configuring billing_usage_alert
+ */
+ limit?: Array;
+
+ /**
+ * Used for configuring logo_match_alert
+ */
+ logo_tag?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l4_alert
+ */
+ megabits_per_second?: Array;
+
+ /**
+ * Used for configuring load_balancing_health_alert
+ */
+ new_health?: Array;
+
+ /**
+ * Used for configuring tunnel_health_event
+ */
+ new_status?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l4_alert
+ */
+ packets_per_second?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ pool_id?: Array;
+
+ /**
+ * Used for configuring billing_usage_alert
+ */
+ product?: Array;
+
+ /**
+ * Used for configuring pages_event_alert
+ */
+ project_id?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l4_alert
+ */
+ protocol?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ query_tag?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l7_alert
+ */
+ requests_per_second?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ selectors?: Array;
+
+ /**
+ * Used for configuring clickhouse_alert_fw_ent_anomaly
+ */
+ services?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ slo?: Array;
+
+ /**
+ * Used for configuring health_check_status_notification
+ */
+ status?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l7_alert
+ */
+ target_hostname?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l4_alert
+ */
+ target_ip?: Array;
+
+ /**
+ * Used for configuring advanced_ddos_attack_l7_alert
+ */
+ target_zone_name?: Array;
+
+ /**
+ * Used for configuring traffic_anomalies_alert
+ */
+ traffic_exclusions?: Array<'security_events'>;
+
+ /**
+ * Used for configuring tunnel_health_event
+ */
+ tunnel_id?: Array;
+
+ /**
+ * Used for configuring magic_tunnel_health_check_event
+ */
+ tunnel_name?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ where?: Array;
+
+ /**
+ * Usage depends on specific alert type
+ */
+ zones?: Array;
+}
+
export interface PolicyCreateResponse {
/**
* UUID
@@ -503,7 +728,7 @@ export interface PolicyCreateParams {
* Body param: List of IDs that will be used when dispatching a notification. IDs
* for email type will be the email address.
*/
- mechanisms: Mechanism;
+ mechanisms: MechanismParam;
/**
* Body param: Name of the policy.
@@ -520,7 +745,7 @@ export interface PolicyCreateParams {
* events for that alert type based on some criteria. This is only available for
* select alert types. See alert type documentation for more details.
*/
- filters?: PolicyFilter;
+ filters?: PolicyFilterParam;
}
export interface PolicyUpdateParams {
@@ -606,13 +831,13 @@ export interface PolicyUpdateParams {
* events for that alert type based on some criteria. This is only available for
* select alert types. See alert type documentation for more details.
*/
- filters?: PolicyFilter;
+ filters?: PolicyFilterParam;
/**
* Body param: List of IDs that will be used when dispatching a notification. IDs
* for email type will be the email address.
*/
- mechanisms?: Mechanism;
+ mechanisms?: MechanismParam;
/**
* Body param: Name of the policy.
diff --git a/src/resources/cache/smart-tiered-cache.ts b/src/resources/cache/smart-tiered-cache.ts
index 6181c2fc72..fe6a1f6b9d 100644
--- a/src/resources/cache/smart-tiered-cache.ts
+++ b/src/resources/cache/smart-tiered-cache.ts
@@ -12,12 +12,12 @@ export class SmartTieredCache extends APIResource {
params: SmartTieredCacheDeleteParams,
options?: Core.RequestOptions,
): Core.APIPromise {
- const { zone_id, body } = params;
+ const { zone_id } = params;
return (
- this._client.delete(`/zones/${zone_id}/cache/tiered_cache_smart_topology_enable`, {
- body: body,
- ...options,
- }) as Core.APIPromise<{ result: SmartTieredCacheDeleteResponse }>
+ this._client.delete(
+ `/zones/${zone_id}/cache/tiered_cache_smart_topology_enable`,
+ options,
+ ) as Core.APIPromise<{ result: SmartTieredCacheDeleteResponse }>
)._thenUnwrap((obj) => obj.result);
}
@@ -62,14 +62,9 @@ export type SmartTieredCacheGetResponse = unknown | string | null;
export interface SmartTieredCacheDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
zone_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export interface SmartTieredCacheEditParams {
diff --git a/src/resources/cache/variants.ts b/src/resources/cache/variants.ts
index 9091c57c95..5cbc4e0355 100644
--- a/src/resources/cache/variants.ts
+++ b/src/resources/cache/variants.ts
@@ -13,9 +13,9 @@ export class Variants extends APIResource {
* be indicated with BYPASS cache status in the response headers.
*/
delete(params: VariantDeleteParams, options?: Core.RequestOptions): Core.APIPromise {
- const { zone_id, body } = params;
+ const { zone_id } = params;
return (
- this._client.delete(`/zones/${zone_id}/cache/variants`, { body: body, ...options }) as Core.APIPromise<{
+ this._client.delete(`/zones/${zone_id}/cache/variants`, options) as Core.APIPromise<{
result: CacheVariant;
}>
)._thenUnwrap((obj) => obj.result);
@@ -274,14 +274,9 @@ export namespace VariantGetResponse {
export interface VariantDeleteParams {
/**
- * Path param: Identifier
+ * Identifier
*/
zone_id: string;
-
- /**
- * Body param:
- */
- body: unknown;
}
export interface VariantEditParams {
diff --git a/src/resources/certificate-authorities/hostname-associations.ts b/src/resources/certificate-authorities/hostname-associations.ts
index ac5bd7a641..514dc3ba28 100644
--- a/src/resources/certificate-authorities/hostname-associations.ts
+++ b/src/resources/certificate-authorities/hostname-associations.ts
@@ -40,6 +40,8 @@ export class HostnameAssociations extends APIResource {
export type HostnameAssociation = string;
+export type HostnameAssociationParam = string;
+
export interface TLSHostnameAssociation {
hostnames?: Array;
@@ -68,7 +70,7 @@ export interface HostnameAssociationUpdateParams {
/**
* Body param:
*/
- hostnames?: Array;
+ hostnames?: Array;
/**
* Body param: The UUID for a certificate that was uploaded to the mTLS Certificate
diff --git a/src/resources/challenges/widgets.ts b/src/resources/challenges/widgets.ts
index ec23613a7b..1881e27f5d 100644
--- a/src/resources/challenges/widgets.ts
+++ b/src/resources/challenges/widgets.ts
@@ -171,6 +171,12 @@ export interface Widget {
*/
export type WidgetDomain = string;
+/**
+ * Hosts as a hostname or IPv4/IPv6 address represented by strings. The widget will
+ * only work on these domains, and their subdomains.
+ */
+export type WidgetDomainParam = string;
+
/**
* A Turnstile Widgets configuration as it appears in listings
*/
@@ -236,7 +242,7 @@ export interface WidgetCreateParams {
/**
* Body param:
*/
- domains: Array;
+ domains: Array;
/**
* Body param: Widget Mode
@@ -303,7 +309,7 @@ export interface WidgetUpdateParams {
/**
* Body param:
*/
- domains: Array;
+ domains: Array;
/**
* Body param: Widget Mode
diff --git a/src/resources/cloudforce-one/requests/priority.ts b/src/resources/cloudforce-one/requests/priority.ts
index f01a1b698c..9457ae859b 100644
--- a/src/resources/cloudforce-one/requests/priority.ts
+++ b/src/resources/cloudforce-one/requests/priority.ts
@@ -86,6 +86,8 @@ export class PriorityResource extends APIResource {
export type Label = string;
+export type LabelParam = string;
+
export interface Priority {
/**
* UUID
@@ -151,7 +153,7 @@ export interface PriorityCreateParams {
/**
* List of labels
*/
- labels: Array